R&D / Personal AI Assistant

OpenClaw Engineering / engctl

My personal AI assistant, with an engineering foundation under it. I hand it real work in plain words and get back finished results with their evidence. Agents do the judgment; a deterministic controller keeps the record and checks everything that leaves.

speccheckseffectsrequestacceptedagents: judgmentcontroller: proof
My role
Architecture, controller design and product direction, with extensive AI-assisted implementation
Focus
AI Engineering, Workflow Automation, Deterministic Verification, MCP Tools

Problem

An AI assistant in an editor speeds up typing, not engineering. Real work needs requirements that survive sessions, the right specialist at each step, checks that actually ran, and changes to code, GitHub and data that someone authorized.

Approach

Hand it the work, in plain words

I talk to it from a chat or a shell. What comes back is not a suggestion to act on but finished work, with the evidence that it was done.

Build this.
A change on its own branch, tested, with a pull request.
Review this pull request.
Findings tied to the exact commit, posted as a review.
Why is this failing?
A diagnosis, with its evidence and a way to reproduce it.
Plan this.
A spec, and the work broken into tickets.
Is it ready, and is it safe?
Independent browser, API and accessibility checks, or a focused security review.
Ship it.
Merge, promotion and deployment, each one confirmed.

AI does the judgment, the controller does the bookkeeping

Too little control and an agent acts on the wrong branch; too much and I approve every step. engctl sits in between: each agent gets a bounded role, its own skills and context, and an isolated worktree, so it can work on its own, while the controller keeps state, logs, authorization and checks. The checks are deterministic, so they cost no tokens, and a failed one returns the work for repair.

Mechanism

Three gates between an agent and the world

Agents explore, plan, write and review. Every time their work returns to the task's record it meets a gate the controller holds.

  1. Before work starts

    Spec

    The request, its limits and the effects it may have are checked against real authorization. Only then are specialists started.

  2. Before anything is believed

    Checks

    Each result is validated field by field; tests, types, lint and browser runs execute against the exact commit. A failure goes back as a repair packet.

  3. Before anything leaves

    Effects

    Pushing a branch and posting a review are journaled, run once and verified. Merge and deploy wait for your explicit word.

One task, step by step

  • Operator (agent)

    Reads the request and writes the task spec: requirements, settings and the effects it may have.

  • Spec gate (controller)

    Checks the spec against real limits and authorization, then starts the right specialists.

  • Specialists (agents)

    The right ones for the task, from seven roles: Manager, Developer, Planner, QA, Reviewer, Security and Researcher. The Developer builds in an isolated worktree; each returns a typed result.

  • Checks gate (controller)

    Validates each result field by field, then runs tests, types, lint and browser checks against the exact commit. A failed check returns to the specialists as a repair packet.

  • Effects gate (controller)

    Pushes the branch and posts the review, each once and verified afterwards. Merge and deploy wait for your explicit word.

  • Accepted result

    Status reports what ran, what changed and what failed, from verified state. The task, its evidence and its next step live in files and Git, so a lost session resumes where it stopped.

The same loop runs nine kinds of work

  • Development

    Plan, implement and review a change across repositories, with a Planner, Developer, Reviewer and QA. Ends in a validated commit and a published branch.

  • PR review

    Review pull requests at their exact head and base, with a Reviewer and the Manager. Ends in a verified review on GitHub.

  • Investigation

    A Researcher reproduces and explains a bug with evidence. Ends in findings with a reproduction.

  • Planning

    The Planner and Manager turn intent into a spec and a ticket breakdown.

  • Verification

    QA runs independent browser, API and accessibility checks. Ends in an evidence bundle per commit.

  • Security audit

    A focused review of authentication, data and attack surface. Ends in findings by severity.

  • Data and database

    Queries, migrations and data checks with guardrails. A migration is proven on a fresh database first.

  • Maintenance

    Dependencies, branches, issue and pull-request upkeep and triage, as journaled Git and GitHub edits.

  • Release

    Merge, promote and deploy as separate decisions, run by the controller on your word and verified afterwards.

Solution

What the loop is given to work with

  • Curated skills and real tools

    Hash-pinned skills per role and MCP tools for browsers, audits, design and data, with a record of what each run actually used. The Developer edits and commits only inside its own worktree.

  • Model routing and failover

    Every role has its own model, reasoning level and fallback chain across providers. Only real provider errors trigger a switch.

  • Database access with guardrails

    Agents query through read-only access or disposable PostgreSQL containers; migrations are proven on a fresh database first.

  • Automations

    Schedules and events, like a new pull request or a failed CI run, start the same workflows with the same checks and limits.

Not only for code

Nothing in the foundation is specific to software. Skills, tools and available sources determine what each task can take on. The same controlled workflow applies to investigation and research alongside building and review; it also provides a foundation for source-grounded analysis and content work.

Outcome

Every request becomes a durable, verifiable workflow: agents do the judgment work with the right skills and tools, and nothing ships until the controller has checked the result and recorded the effect.

The difference

Not AI inside an editor, but a professional engineering workflow with AI inside it.

The same request, specialists, checks and authorization rules apply whether the work is a feature, a review, a database change or a release.