The Autopilot: 33 merged PRs and a leash with a gap

June 2026Retired

The Autopilot was an autonomous loop that ran beside Homies and did the QA work I would otherwise have scheduled by hand. It found work from live signals, put it through an approval stage, implemented it with a headless Claude session in an isolated git worktree, gated the result on the app's own npm run ci, and opened a pull request for me to merge. It never had a second operator and it never had a second reviewer.

Two things came out of it. The push guardrail was a rule with a gap: the worker's permissions denied git push by matching a command string, and a push stayed one allowed subprocess away. And the cheap predicate in front of the approval council did more than the judges: it refused 3 of the 4 drafts before any model was called, and the one draft a judge saw came back held.

It is retired. All of it was built in five days in June 2026, and nothing has been committed to it since. What survived is the rest of the guardrail design, which is the part I would build the same way again, and a production record short enough to read in full.

  1. Discoverylive signals became draft work items
  2. Approval counciltwo judges; only the Advocate ever ran in production
  3. Workerheadless, in a git worktree, gated on the app's CI
  4. Then, on each open pull request:
    • Board reconcilercorrected the board against real PR and CI state
    • Verify lanebuilt, never ran: a read-only auditor on the simulator
    • Keeperrebased stale pull requests; its merge was never armed

Outside the loop: I reviewed and merged every pull request by hand.

The six lanes as built, handing off through shared state on disk. The verify lane (dashed) was built and never ran. The worker was gated by the same harness as the Homies quality system, not its own.
  • 33of its PRs merged into the app
  • 299tests pinning the guardrails
  • 3 of 4drafts refused before any judge ran

The loop it ran

Six lanes ran on their own schedules and handed off through shared state on disk. Discovery turned live signals, crash reports, failed test runs, gate and doc drift, store reviews and a chat control channel, into draft work items. An approval council of two adversarial judges decided which drafts became queued work. A worker implemented each approved item and opened a pull request. A board reconciler corrected the kanban against real PR and CI state. A verify lane dispatched a read-only auditor. A keeper rebased stale pull requests and, only when explicitly armed, squash-merged them.

The worker is where the design decision lives. It ran as a headless session whose tool permissions denied git push and the GitHub CLI, so opening a pull request was the only write path it was given. I built that as the difference between a rule and a capability: a prompt that says never push to main can be misread, argued with, or dropped out of a long context, and a process with no push tool cannot push whatever it decides.

It was a weaker guarantee than I published. The denial was a pattern on a command string. The same allowlist let the worker run node and npm run, the session inherited the host environment, and the host pushed from the same worktree with the machine's credentials, so a push was one subprocess away. Nothing in the record suggests a session ever tried, and every merge arrived as a pull request I approved. The worker lacked one spelling of the capability and kept the capability. The long-form post has the detail, and what the next system did instead.

The verify lane is the one piece that was built and never exercised. The auditor was a read-only session in the pull request's own worktree: it reviewed the diff against the story, ran CI, exercised the simulator, recorded a verdict, and never edited the pull request, because a fix had to go back through the worker to be gated like any other change. One machine meant one iOS simulator, so the lane had to serialize behind a single in-process slot rather than run per audit. That constraint is the reason the lane existed in the shape it did, and it is also why it was wired last. No verify record survives on disk. The loop stopped before the lane ran against real work, and this page claims it as built rather than as proven.

Rules it could not break

The Autopilot ran under a policy file: which model it could use, how much it could spend, how much risk it could take without me. The hazard with a policy file is that something edits it into an unsafe shape, whether a bug, a half-written patch, or the agent itself. So the policy was never read as written. Every load and every save passed through one clamp, and the clamp had the last word.

Three properties came out of that, and they are the ones worth carrying to the next system. The first is that a forbidden state was unrepresentable rather than rejected: the clamp forced the safe shape and returned a complete policy instead of validating and throwing, so a corrupt file degraded to safe rather than to broken. The second is that every arming flag was strict-boolean, read as armed only on a literal true. A missing key, an older file, or a half-written value read as disarmed. Defaults decide what happens on the day something goes wrong, and the default here was always the quiet one.

The third is the one I did not plan. The invariant I cared about most, that the worker should not reach main, had no policy field at all. There was nothing to clamp, because there was nothing anyone could set. The tool allowlists became the single definition that the lanes, the org view and the clamp all derived from, so the ceiling for a code-writing role was the union of what the lanes actually ran, and could not lag behind a lane that gained a tool. That makes the list consistent everywhere it is used. It says nothing about what an entry on the list can reach, which is where this one leaked.

The Autopilot's hard guardrails and how each was enforced
GuardrailHow it was enforced
The worker was not given a way to touch mainIts tool permissions denied git push and the GitHub CLI, and no policy field could grant more. The denial matched a command string, and node and npm run were allowed, so this was a rule with a gap and not a missing capability.
Critical-risk work was never autonomousA risk classifier scored each item and the clamp pinned every execution ceiling at or below high, so critical could not be encoded as allowed.
Code was edited by a frontier modelModel names below the Sonnet floor were replaced at clamp time for any role that writes code.
Arming was opt-in on every flagAuto-merge, auto-reject, generative ideation and over-the-air shipping each read as armed only on a literal true. Absent or corrupt read as off.
Approval failed closedA missing or failed skeptic verdict on the approve path held the draft for a human rather than passing it.
Budget caps refused rather than warnedA daily dollar cap and a daily action cap were pre-flight gates. At the cap the scheduler declined the run and wrote the refusal to the audit log.
Two independent kill pathsAn environment flag and a policy switch each halted every lane on their own, checked in the same pure predicate the tests exercise.
Outside text was data, never instructionStore reviews, crash titles and chat messages were fenced, with the fence delimiters neutralized inside the untrusted text so a crafted body could not forge a closing marker.

The decision logic is pure, which is why 299 of the dashboard's 466 tests could pin it: who may be approved, what counts as stale, which model is allowed and which policy shapes are forbidden are all answerable without spawning a model or booting a simulator. Some of those tests audit the shipped presets and the shipped roster against the invariant list and assert the violation list comes back empty, including one that feeds the clamp a deliberately hostile policy, so a new preset cannot quietly widen the bounds.

The record agrees with the tests, which is the part I could not have arranged. Every critical-risk run in the surviving run records was one I launched by hand. No scheduler-triggered run ever ran above high, the clamped ceiling for implementation work, and every attempt in the record used a model at or above the floor.

The council that approved nothing

Before the worker touched anything, a draft had to clear a two-judge council. An Advocate argued the item's value, its clarity and whether it duplicated existing work. A Skeptic was given the opposite instruction and asked to refute it. A missing or failed Skeptic verdict on the approve path did not pass by default; it held the draft for me. I liked this design a great deal. Two models with opposing jobs and a fail-closed default seemed like the answer to the fact that a single model asked whether something is good will almost always say yes.

Here is the council's complete production record, and it is short enough to give in full. One morning in June the generative lane that drafts work items ran for the only time it ever ran and proposed 4 items. Four minutes later the council judged those same four. It held 4 of 4, approved nothing, rejected nothing, and pushed me a notification saying so.

3 of the four never reached a judge at all. One was classified critical, two sat above the approve ceiling, and the pure eligibility predicate refused all three before a model call was made, at no cost. The fourth reached the Advocate, which scored it and recommended a hold on its own. The Skeptic, the piece of the design I was proudest of, was never spawned in production, because no draft ever cleared the Advocate's floors.

What happened next is the part that justifies the whole stage. I read the four, approved 3 of them by hand, and the worker shipped all three: a settle-up mutation that needed an error rollback, a cold-start push notification that never routed, and a Hebrew expense form whose amount field ran in the wrong direction. All three merged. Only the critical one, which would have gated the home screen behind an activation checklist, stayed unbuilt. The council was not wrong about those three. It was right that they were real work and right that none of them was its call to make.

That record says something I would have argued against beforehand. The expensive adversarial layer never earned its cost, and the cheap deterministic predicate in front of it did the work. A predicate that reads a risk level and compares it to a ceiling costs nothing, answers the same way every time, and cannot be talked out of it. A judge costs a model call per draft and can be wrong in a new way each time. If I built this again the order would be the same and the emphasis would invert: spend the design effort on what can be decided without a model, and let the judges handle only what is left.

What it shipped

The record lives in the app's pull-request history: 33 merged pull requests, and one closed unmerged, a draft that did not pan out. The most common output was the one I would want from a test engineer: unit tests for code that had none. The very first thing it ever ran, before any of the lanes above existed, was a smoke story that asked it to unit-test one small untested utility.

Representative merged PRs the Autopilot opened against Homies
What it shippedKind
Unit tests for untested app utilities and for the billing webhook: category inference, invite-code formatting, WCAG contrast helpers, error handling, chore cadence, platform and entitlement derivationstests
Regression tests pinning behaviour that had none: an iOS background-mode build plugin, and the trial-sequencing funnel pathstests
Fixed a refused Apple null-email deep link, a dead-end presence nudge for non-owners, inaccurate chore cadence dots, a settle-up mutation with no error rollback, a cold-start push tap that never routed, a Hebrew amount field running in the wrong direction, and a win-back reminder that never re-armedbug fixes
Shipped features: the Fairness Balance card, kudos reactions, household streaks, a chore nudge, a weekly recap card, and collective milestonesfeatures
Caught gate and doc drift against real App Store and Play state, four separate timeshousekeeping

The exhibit: a high-risk feature, shipped in one pass

Fairness Balance, a new home-screen card

Trigger
The scheduler, with no human in the launch. Discovery proposed it and it came off the queue on a tick.
Risk
Classified high, a new user-facing feature on the home screen, and the hardest tier the ceiling allowed a scheduled run to take.
What it built
8 files in one attempt: a new React component and the home screen that mounts it, a pure balance util with a unit test, English and Hebrew locale strings, and two doc updates, with the app's CI green.
Cost and outcome
Outcome:$3.48, and merged.

The failures are the same size as the successes and sit in the same records. Of the completed runs, 42 in total, 33 succeeded, 8 failed inside the agent and 1 failed CI. Every one of those failures stopped at a pull request that was never opened or never merged, which is what the write boundary was for. Auto-merge was never armed, so each merge in that record was one I approved.

Why I stopped

It outgrew its own output. The whole build took five days. The last one, 15 June, is the day the full loop finally ran end to end, and it is also the day I added a code reviewer to gate an auto-merge that was never armed, a UI specialist, a designer, a screenshot lane, a survey signal and live token streaming so I could watch the worker type. None of those ran against real work. The last pull requests merged two days later and nothing has been committed to the repository since. By the end I was maintaining a staffed organisation whose lifetime output was 33 pull requests, a good share of them unit tests. The ratio stopped making sense well before the code stopped working.

Underneath that, the loop automated the typing and left the reviewing where it was. Every pull request still needed me to read it, and reading a diff an agent wrote takes about as long as reading one a person wrote. The council proved the point in the other direction: its whole job was to spend my attention for me, and the one time it ran it handed all four items straight back. The gates held, the invariants held, and what they were protecting was worth a few hours a week of my own attention either way. That is a useful answer, and five days is a cheap price for it.

What I would carry forward is narrow and I have carried it forward. Make the rule a missing capability wherever a missing capability will do, because that is the only guardrail that survives a bad day. Force the safe shape on write instead of validating on read. Read an absent flag as off. Spend the design budget on the gate that can decide without a model, and let the model handle what is left. The control plane that sat above this one, and stopped for its own reasons, is Hermes. The app all of it shipped into is Homies, and the harness that gated every change is described there. This site runs through the same kind of gates it describes.