The factory pipeline
How a plain-English request moves through specification, parallel lanes, failure recovery, and staging release checks.
Every feature, bug fix, or incident moves through turbo-12f as a tracked request. Instead of one long agent chat, a small team of agents splits the work into focused stages with clear exit rules.
Ask & confirm
Ground every requirement in your words and pass the spec and project gates.
Plan & build
The Tech Lead splits work into parallel parts; the Developer writes failing tests before production code.
Check & merge
QA runs the tests, the screens, and one review before DevOps lands the part on staging.
Release & watch
Validate the combined staging tree, sign off, promote to main, and monitor health.
Pipeline at a glance
Each stage answers one question before passing work forward. Keeping these stages separate stops broken or unreviewed changes from hiding behind a generic "done" label.
| Stage | The question it answers | Output |
|---|---|---|
| Ask & confirm | Is the request unambiguous and ready for the repo? | A locked specification, plain-language summary, and clean staging base |
| Plan & build | What exactly changes, and do new tests fail first? | A scoped file plan, failing base tests, and a passing candidate commit |
| Check & merge | Does the candidate pass its tests, its screens, and a review? | Deterministic verdicts, screenshot comparisons, and one review report |
| Release & watch | Does the combined staging build pass end-to-end and human sign-off? | A signed-off release gate, --no-ff merge to main, and live health probes |
The team
By default each request runs as a small development team (the team flow). Each member is a role you would find on a real team, and each part of the work costs three agent sessions: plan, build, review.
| Team member | What they do |
|---|---|
| Product Owner | Talks with you and writes the spec with its scenarios (the Context creator). |
| Tech Lead | Splits the work into parts and plans each part: which files change and which tests prove it. |
| Developer | Writes the failing tests first, then the code, inside an offline cage. |
| QA | Runs the tests, takes a picture of every screen, then reads the change once. Stops at the first check that fails. |
| DevOps | Checks the merge policy, merges the part into staging, and runs a deploy dry run. These are scripts, not agents. |
A project can still choose the classic flow with the flow preference: it gives every check its own session (QC, UI check, Deslop, Red team, Code review, then SRE). On the same request and model, the team flow cost half as much and needed one extra try where classic needed eight (ADR 0006). A conversation keeps the flow it started with.
Follow a change through the pipeline
Imagine you ask to add category tags to your bakery blog.
- The Product Owner locks the scope. It clarifies how tags look, how readers filter posts, and confirms no new user roles are needed. You, as the person who opened the request, read the plain-language summary and confirm it.
- The Tech Lead splits and plans. Shared layout work runs first, while tag filtering and the author tag picker run as separate parts in isolated lanes. For each part it names the files to change and the tests that must fail before the change.
- The Developer builds each part. It writes those tests first, then the code, inside an offline cage. Before it hands a candidate on, the factory runs QC, the screen check and Red team's cross-origin check on it, and a failure comes back to the same session while it still holds the code.
- QA checks each part. Build, lint, unit, mutation, and browser E2E tests run first, then screenshots of every screen, then one review of the change against what you asked for. A finding goes straight back to the Developer.
- DevOps merges parts one by one into
staging. A single merge queue rebases each part ontostaging, rechecks if anything shifted, and fast-forwardsstaging. - Release checks test the combined app. Full E2E, screenshot checks, security scans, and a deploy dry run run against
stagingin both flows, and the result is kept for thatstagingtree. If Red team or the explorer proves a problem, the factory bisects which part caused it and launches a targeted fix lane. People then sign off each request, and a person merges the release PR tomain. Production then deploys to the person's own connected Cloudflare or Vercel account, checks that the site answers, and rolls back if it does not. With no account connected, production stays a dry run.
How failure recovery works
When a check fails inside a lane, the factory does not immediately give up or burn your whole budget. It climbs a predictable recovery ladder:
| Mechanism | When it triggers | What happens |
|---|---|---|
| Fix attempt | A QA finding, failing test, lint or build error, or merge conflict | Returns directly to the Developer with the exact failure output (3 attempts by default). |
| Retry token | The Developer cannot build the plan, or a part is too big for one change | Spends 1 token from the task's shared pool (2 by default) so the Tech Lead plans again. |
| Problem | Same root cause fails three times, or retry tokens run out | Pauses that lane and dependent lanes cleanly, raising a plain-language summary for a human. |
When an oversized part tries to add too many lines at once, the Tech Lead splits it into smaller parts at zero token cost rather than forcing an unreviewable diff, and the new parts start from the over-size code, which the factory keeps on a branch. In the classic flow, review, hygiene, and security findings also spend a retry token, and a Strategist session decides where a failure no rule covers goes. A person's answer to a paused lane, including "Try again.", reopens it with fresh fix attempts.
Key takeaway
Failure is treated as structured evidence, not a dead end: QA findings and mechanical bugs go back to the Developer, plans that cannot be built go back to the Tech Lead, and repeat blocks pause safely for a person.
Next steps
Safety, cages, and gates
See how offline cages, deterministic checks, and hash-chained logs enforce trust.
Autonomy, people, and Observer
Learn how autonomy modes, merge policies, and human roles control waiting points.
Request lifecycle (internals)
Inspect the Go orchestrator, slot pools, and failure routing rules.
Host and share the web app
Run t12 ui locally, on an always-on host, or in the cloud on Vercel, GitHub Actions, and Neon, with open sign-up, Sign in with GitHub, per-person connections, and teams.
Safety, cages, and gates
How turbo-12f separates AI code generation from deterministic gates, offline cages, per-person credentials, and tamper-evident audit logs kept in the database.