The Founder Decides Twice: A Universal Pipeline for an Agent Fleet
Ten stages, two human decisions: how one contract governs plans with named evidence, PRs with before/after pictures, one-line review verdicts and a corrections log that turns repeated feedback into rules.

I run a small fleet of coding agents. Headless Claude Code executors pick tasks off a GitHub board, work in their own Docker containers, and open pull requests. Interactive sessions on my laptop do the design work and review what the fleet produces. The pieces of a process already existed as separate skills: one for specs, one for plans, one for review. What I wanted was a single development pipeline for everything, with one definition of "done", one verdict at the end of review, and a place where my corrections are written down instead of living only in chat.
So I wrote one contract for all of it. It is a single file, PIPELINE.md, and every task, from a one-line fix to a new project, flows through the same ten stages. This article walks through those stages, the two places where I, the founder, actually make a decision, and what an adversarial review of the contract itself caught before it shipped.
The core rule: two human decisions
The pipeline has ten stages. I make exactly two decisions in it.

Everything between those two points belongs to agents and to gates that do not need me. That constraint shaped every other choice. If a stage needs my judgment, it has to fold into one of those two moments, or it has to become a check that a machine can run. A pipeline that pings the founder at every step is not automation. It is a to-do list with extra steps.
The ten stages
| # | Stage | What happens | Gate |
|---|---|---|---|
| 0 | Intent | raw request in plain words | a ritual level is chosen |
| 1 | Spec | user story, acceptance criteria, non-goals | only for large or vague work |
| 2 | Track | an issue on the board, status In Progress | the issue exists |
| 3 | Plan | approach, with proof named for every step | founder approves |
| 4 | Slice | plan cut into independent vertical slices | each slice can merge alone |
| 5 | Execute | branch in its own worktree, commits reference the issue | tests green, evidence produced |
| 6 | PR | a fixed contract for the description | contract complete |
| 7 | Review | parallel review agents, one verdict | 🟢 / 🟡 / 🔴 |
| 8 | Merge | PR lands on main | founder merges |
| 9 | Learn | corrections and process findings logged | rule proposed on recurrence |
Not every task walks all ten. Stage 0 picks an explicit ritual level:
quick, standard or greenfield. A localized fix in an existing repo is quick and skips the spec. A multi-file feature is standard. Only a new project gets the full spec ceremony. The level is stated on the first line of output and a caller override always wins over the model's own guess. The lighter levels cut up-front paperwork only. Review, tests and the danger-class gate stay at every level.Stage 3: every plan step names its proof
The single most useful rule in the whole contract is one line. Every plan step ends with an arrow and the evidence that will prove it:

- Add the cache dirs to the rebuildable list
→ evidence: projects-sweep test "caches stay garbage" passes
Retarget stacked PRs before the parent merges
→ evidence: rule present in the Merge stage row
The evidence can be a test name, a command with its expected result, a file, or a before/after picture. This does two things. When I approve a plan, I am approving what "done" will look like, not just a list of intentions. And when the PR arrives, the reviewer has a checklist that was written before the code existed, so the author cannot quietly redefine success after the fact. The PR later reports each piece of evidence, step by step.
For headless executors the plan is a file, plan.md, committed as the first commit of the PR branch. The spec stays read-only for the agent. If reality contradicts the spec, the executor does not edit the spec. It marks the conflict with 🤖❓ in the PR description, leaves the PR as a draft, and stops. I resolve it at review. There is no user to ask mid-run, so a blocking question becomes an asynchronous flag instead of a live prompt that nobody will ever answer.
Stage 5: who does the work
Execution follows a model ladder. Cheap models read, mid-tier models do bulk, the strongest model verifies, and the session model keeps the judgment:
Each session that writes files works in its own git worktree. Several agent sessions share one machine, and a shared working tree with sessions that switch branches under each other is a lost-update machine. Worktrees make that structurally impossible.
Stage 6: a PR is a contract, not a diff
Git shows what changed. It never shows why, and it never shows what the change looks like to a person. So every PR description carries the same sections:

For the fleet I made the screenshots possible rather than just required. The executor image now ships headless Chromium and a small helper. The helper renders only loopback and local file URLs, because its job is to photograph the app the container itself is serving, not to browse the web. It commits the images to a separate evidence branch, never the PR branch, and prints image links pinned to the exact commit, so the main branch never carries screenshot files. Adding Chromium cost roughly 380 to 391 MB of image layer. I compared the Debian package against the Playwright build and they came out about the same size, so I took the distribution package.
On the fleet side, a missing picture is a review finding of minor severity, never a blocker. A missing screenshot should get fixed, but it should not stall a correct change.
Stage 7: review ends in one verdict
Review runs as parallel sub-agents. Two of them check the classic axes:
A third pass was added with this pipeline: Minimality and Process. Minimality asks whether the diff is the smallest change that does the job: no speculative abstractions, no unrelated edits riding along, no new dependency where an existing one already fits. Two of its checks are hard and two are judgment calls, and the review states which is which. Process checks whether the work followed the pipeline. Does the PR description have its Summary? Does every plan step report its evidence? Is a visible change backed by a picture or an explicit "not captured"? Is the danger class stated?
Its findings are capped at five, so the pass cannot drown the real review in nitpicks.
The review ends with one line that is never trimmed:
After two rounds of 🟡 the open list goes to me instead of a third automated round. Two rounds without convergence usually means the disagreement is about intent, and intent is my call.
There is one deliberate exception. The fleet daemon parses the reviewer's verdict as a plain-text line, VERDICT: APPROVE or VERDICT: REQUEST_CHANGES. That wire format stays, and the emoji verdict lives in the interactive review only. A contract that breaks a working parser to look consistent is worse than a documented exception.
The danger-class gate
Some changes get an extra stage no matter the ritual level. Anything touching authentication or authorization, money or balances, a contract between two services, a database migration, or the fix for a security finding must get an external adversarial pass before merge. Interactively that is an Opus verifier agent whose job is to refute the change, not to approve it. On the fleet, a PR the Claude reviewer approved also goes to a skeptic model from a different vendor, a Codex model, and my own review round comes last. Either way the verdict, the findings and the fixes are recorded in the PR body, because an unrecorded adversarial pass is indistinguishable from none.
The fleet image is in that class too. Changing what every executor container runs is a change to every future task, so the PR that added Chromium went through the verifier. It came back with five minor findings, all fixed before merge. Among them: a code comment that claimed the URL allowlist was a security boundary when it is only a guard rail; two images with the same file name collapsing onto one path; temporary directories leaking on failure; dev servers bound to all interfaces instead of loopback; and a page that holds a request open, so the screenshot timer never fired. That last one now has a wall-clock fallback and a test.
Stage 9: corrections become rules, slowly
The last stage is where the pipeline learns. When I correct an agent ("not like that", "again?"), or when review reports a Process failure, the session appends a row to a dated corrections log:

| Date | Source | Words | Theme | Where | Status |
|---|---|---|---|---|---|
The Words column keeps my exact phrasing, with anything private redacted. For a review finding it holds the session's own statement of the problem, never text copied from the PR. A PR is written by an agent, and copying its text into a rule file would be a quiet path for an instruction to promote itself.
A row is not a rule. The log proposes a rule only when the same theme shows up in two independent sightings. A single correction can be a one-off. Two separate occurrences are a pattern. When a rule is proposed, the session writes it in its own words and ships it in a separate PR, so a rule change is reviewed like code and never slips in beside a feature. Rules can also be retired, with a row saying why.
The log came to life the same day it shipped. While tidying up after merging this very pipeline, I asked why the cleanup had landed on me again. Old worktrees, a leftover branch, folders waiting for a decision: none of it should have needed me. That question became the first row in the log, under a theme called cleanup-lands-on-founder. A short interview with the agent then turned the root causes into four decisions. A cleanup tool learned that linter caches and a hook log are safe to delete. Stacked PRs now get retargeted before their parent merges. Evidence branches are marked permanent. The agent asks me only about folders that genuinely need a human. The fixes merged the same day. One sighting means status "noted". If the theme comes back, it becomes a rule.
What review of the contract itself caught
The first version of this pipeline went through the same adversarial verifier it prescribes. It found three blocking problems, and each one was a design flaw rather than a typo.
Process checks that could never pass. Checks against history, such as "does the commit reference an issue", failed on merge commits and on work with no issue at all. A gate that can never clear trains everyone to ignore it. Those checks became report-only, with an explicit "not applicable" case. The checks on the PR body, which the author fully controls, stayed as real gates.
Re-reviews counted as recurrence. Reviewing the same PR twice would have logged the same finding twice and promoted a rule from what was really one sighting. The rule became "independent sightings only", and runs from the review skill's own A/B test harness are never logged at all.
Incomplete scope for the fleet. The first plan changed the interactive review but left the fleet's executor and reviewer prompts behind, so headless PRs would have kept the old contract. The plan was widened before any code was written.
None of these would have shown up in my own reading. I wrote the contract, so I shared its blind spots. That is the whole argument for an outside adversarial pass, and it applied to the pipeline as much as to any feature.
What changed in practice
The practical difference is where my attention goes. I read a plan where every step already says how it will be proven. I read a PR that opens with a plain-language summary and a before/after picture. I read one verdict line instead of interpreting a list of notes. The rest belongs to stages that run without me, and when I do have to step in and correct something, the correction is written down with a date and my exact words, so the next time it happens it can turn into a rule instead of the same conversation again.
Two decisions, ten stages, and a written trail for everything in between.
FAQ
Why only two founder decisions?
Because every extra approval point is a place where the fleet waits for a human. Approving the plan fixes intent and what "done" looks like. Merging accepts the result. Everything else can be expressed as a gate that runs without me.
Does every task go through all ten stages?
No. A ritual level is chosen at the start. A quick fix skips the spec, and only new projects get the full spec ceremony. Review, tests and the danger-class gate apply at every level.
What if a screenshot cannot be taken?
The PR says so explicitly, gives the reason, and names each view a person must check by hand. A visible change with no picture and no explanation counts as a process finding.
Why wait for two sightings before making a rule?
One correction can be an exception. Two independent occurrences of the same theme show a pattern worth encoding. Promoting on the first sighting would fill the rule files with one-offs.
Who writes the rule text?
The session that proposes it, in its own words. Text is never copied from a PR or from a sub-agent's output, and every rule change ships in its own reviewed PR.
Related reading
Maksym Tytarenko
AI & SaaS Development Expert at Tytarenko AI Agency
Get the next article in your inbox
One email when a new article is published. No spam, unsubscribe in one click.
Related Articles
Streamlining AI Agent Deployments: From Frequent Restarts to Efficiency
My agent fleet logged 10 deploys and 12 restarts in one day, and restarts kept killing in-flight reviews. A drain flag, a quiet probe, and batched merges cut that to 2 or 3 restarts a day without touching the agent loop.
12 min readAI & ML878 Files, Two Lines of Risk: How My Agent Vets a Fast-Moving Upstream
Upstream moved past my vetted pin 40 times in 51 days. An AI agent vetted every delta; 16 stopped at HIGH. The latest, 878 files, stopped in ten minutes on two carried findings.
11 min readAI & MLEnhancing AI Review Processes: From Effort Allocation to Test Evidence
A placebo skeptic with zero reasoning tokens refuted every pull request and burned $93 of inference in one evening. How my autonomous agent fleet made review trustworthy: per-role reasoning effort, a real test-evidence gate, and turn-level verification of both.
12 min readReady to Build Your AI-Powered Solution?
Let's discuss how we can help you leverage AI to transform your business.
Get in Touch