James Schwahn
← All work

Governed AI-assisted engineering

Agents don’t get to declare themselves done.

Three cooperating systems that turn engineering rules — each traced to a real incident — into enforced code: fail-closed merge gates, audits of every “tests pass” claim, sandboxed CI behind an egress allowlist, and a separate reviewer session for builds.

Role
Architect and sole engineer
Period
Jun 2026 – present
Maturity
Live — internal production
Signals
Agentic coding point of view · Evals as release gates · Guardrails · Reviewer separation

The problem

Coding agents claim tests pass when they don’t, merge unverified work and run unsafe commands. Speed without verification just moves defects downstream.

statusverdictCoding agentbuilder sessionHookscommand guard · claim auditSandboxed CIegress allowlistReviewer sessionindependentMerge gatefail-closedmainprotected
Control pointComponentExternal

What I did

  • Wrote the fail-closed merge gate and the stop-hook that audits an agent’s test-pass claims against real output.
  • Built a supervision hub with a ledger, a status protocol enforced by hooks, and a two-minute poller.
  • Stood up sandboxed CI on an isolated VM behind an outbound allowlist that posts gate status back to pull requests.
  • Built a build orchestrator with deterministic gates, an independent reviewer session and automatic rollback.

Key decisions

Encode every rule as a hook or gate, not a prompt

Prompts are suggestions to a model; hooks and gates are enforced by the runtime. Rules that matter have to survive a model that ignores instructions.

Separate builder and reviewer sessions

A model grading its own work is a conflict of interest. Independent review is the same principle as separation of duties in finance.

Evidence

7,700

About 7,700 non-merge commits in 2026, roughly 80% co-authored with coding agents under review gates.

7,708 unique non-merge commits; 6,215 carry an agent co-author trailer (lower bound). Source: Git history across owned repositories, de-duplicated.

Repository verified

Feb–Nov 2026

Outcome & limits

Outcome

  • The working method behind 2026’s agent-assisted engineering: merge gates and claim audits enforced as hooks since June 2026.
  • Supervision timers, sandboxed CI and session archiving running daily.

Known limitations

  • Gate denial and block rates are not yet instrumented as metrics.
  • Single operator.

Stack

  • Python
  • TypeScript
  • Rust hook daemon
  • libvirt
  • GitHub Actions
  • Claude Agent SDK