Skip to Content
turbo-12f
Factory fundamentals

The factory pipeline

How a plain-English request moves through specification, parallel lanes, failure recovery, and staging release checks.

Explanation

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.

Stage 1

Ask & confirm

Ground every requirement in your words and pass the spec and project gates.

Stage 2

Plan & build

The Tech Lead splits work into parallel parts; the Developer writes failing tests before production code.

Stage 3

Check & merge

QA runs the tests, the screens, and one review before DevOps lands the part on staging.

Stage 4

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.

StageThe question it answersOutput
Ask & confirmIs the request unambiguous and ready for the repo?A locked specification, plain-language summary, and clean staging base
Plan & buildWhat exactly changes, and do new tests fail first?A scoped file plan, failing base tests, and a passing candidate commit
Check & mergeDoes the candidate pass its tests, its screens, and a review?Deterministic verdicts, screenshot comparisons, and one review report
Release & watchDoes 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 memberWhat they do
Product OwnerTalks with you and writes the spec with its scenarios (the Context creator).
Tech LeadSplits the work into parts and plans each part: which files change and which tests prove it.
DeveloperWrites the failing tests first, then the code, inside an offline cage.
QARuns the tests, takes a picture of every screen, then reads the change once. Stops at the first check that fails.
DevOpsChecks 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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. DevOps merges parts one by one into staging. A single merge queue rebases each part onto staging, rechecks if anything shifted, and fast-forwards staging.
  6. Release checks test the combined app. Full E2E, screenshot checks, security scans, and a deploy dry run run against staging in both flows, and the result is kept for that staging tree. 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 to main. 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:

MechanismWhen it triggersWhat happens
Fix attemptA QA finding, failing test, lint or build error, or merge conflictReturns directly to the Developer with the exact failure output (3 attempts by default).
Retry tokenThe Developer cannot build the plan, or a part is too big for one changeSpends 1 token from the task's shared pool (2 by default) so the Tech Lead plans again.
ProblemSame root cause fails three times, or retry tokens run outPauses 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

On this page