Skip to Content
turbo-12f
Development

Architecture decisions and status

Why turbo-12f keeps host tools, replaces the v1 QC stage, gates features on FactoryBench, budgets per-test CPU, and what remains open.

Explanation

Architecture Decision Records under factory/docs/adr/ capture empirical measurements and structural boundaries for turbo-12f. The 22 Nov 2026 target redesign in docs/factory/design.md kept three of the four decisions, amended two, and superseded the v1 QC structure.

Decisions at a glance

ADRDecisionCurrent status
ADR 0001Keep Go host tools instead of BAML parsingActive
ADR 0002Order QC by trust pyramid; drop t12-tia and integration tierSuperseded by v2 11-role split (pyramid and no-integration rule kept)
ADR 0003Require factory features to beat baseline on FactoryBenchActive, amended for v2 cutover parity ($60 spend cap)
ADR 0004Replace 10 s wall-clock tier kill with ~100 ms per-test CPU budgets + mutationActive, amended to run baseline timing in DevOps Project Gate

Accepted and superseded decisions

ADR 0001 keeps host tools over BAML

READY

Active decision (issue #97)

Production code stays free of baml-py; structured JSON calls run through Go internal/tools and tools.Parse.

  • Context: Tested replacing host tools with BAML (baml-py 0.226.3, b.parse.<Kind>Answer in experiments/baml/run.py).
  • Evidence: Across 5 runs per cell on analyzer, red, and reviewer (claude-{sonnet,haiku,opus}-5-5), host tools hit 5/5 accepted calls with 0 refusals; BAML added ~45% output tokens and 20%–25% cost on analyzer, plus 4 refusals and a 1244 s tail run on reviewer.
  • Reopen rule: Reopens only if a weaker model raises recorded refused-call counts.

ADR 0002 replaced v1 gates before v2 superseded it

CHECKPOINT

Superseded by v2 11-role redesign

Trust-pyramid ordering and dropping tests/integration carry forward; separate v1 review and verifier sessions were replaced.

  • Context: ADR 0002 ordered v1 QC into static, verification (verify skills), and parallel reviewer-bugs/reviewer-quality Claude Opus 5.5 reviews while deleting t12-tia and tests/integration.
  • Outcome: In v2, QC runs deterministic static, E2E, and ui-check scripts only, while Red team, Deslop, and Code review run as dedicated lane roles (plus optional release qc.explorer).

ADR 0003 requires features to beat the baseline

READY

Active, amended for v2 cutover

Every kept or new v2 component must pass FactoryBench A/B parity (ConvoRelay-bench) against a single deep Claude Code + pstack baseline ($60 cap under H8/Q10).

  • Context: Enforced after turbo-12f reached 29k Go lines across 10 programs without comparative benchmarks. Hash-chained logs and locked tests remain exempt as integrity invariants.
  • v2 amendment: Features replaced by the 11-role catalogue (tdd-red/green/refactor, v1 reviewers/verifier, prepare, touches, t12-wizard) are cut by design without benchmark runs.

ADR 0004 replaces the 10 s kill with per-test CPU budgets

READY

Active, amended for DevOps Project Gate

Local ~100 ms per-added-test CPU budgets, 3-run median checks, ~3x runaway kills, and t12-mutate replace the brittle 10 s wall-clock tier kill.

  • Context: Killing an entire unit suite at 10 s wall time penalized correct changes for host load and suite growth. Hardware-dependent wall limits (100 ms / 10 s / 60 s) report locally rather than gating CI.
  • v2 amendment: Baseline timing moved from prepare to the DevOps Project Gate (internal/limits measures TypeScript per-test CPU via process.threadCpuUsage(), emitting should-fix findings on overruns).

Current build status and open gaps

Through late Nov 2026, walking skeleton items S1–S14, v2 core roles, and factory controls are merged:

  • Core lane execution & planning: H1, H2, spec gate D7 (#227, #229), catalogues D8, Deslop D13–D14, Red team D15–D16, UI baselines D17–D18, Context7 proxy D30, skill map D29, and Strategist DAG + gitio.SyncOntoStaging (#224).
  • Operations & delivery: D28 config proposals, CLI reporting (D23, D24, D31), release gates (D19, D26), SRE watch/triage (D21, D22), and web-react starter (A27–A29).
  • UI pages: t12 ui (D33–D37, E8) adds /c/:id, /onboarding, /connections, /observer, and /settings.
  • UI controls: Conversation permission, command approvals, scoped Observer (#216, #225, #451, #465), and live SSE canvas (#226, #466).
  • Evaluation & benchmarks: Evaluation profile E5, t12 eval (run/seams/capture), and t12-bench grading.
AreaCurrent stateBlocked on
Cloud deploys (H10, D42)devops.Promote runs dry-run only; SRE reports nothing deployedCloudflare account and API token
Project GitHub repos (D32, E4, D20)Local release PR bodies stored as evidenceReal project remotes for mirrors, CI drift checks, and branch protection
FactoryBench parity (D38–D41, E9–E10, F1–F3)Pending comparative runsExternal ConvoRelay-bench, multi-family model keys beyond Gemini, CI runner keys, and human trials
Legacy v1 cutover (G1)v1 flows coexist (TestTheCoreAndTheCageProgramsLinkNoNetworkCode already passes)FactoryBench parity completion
Host follow-upsTracked in handoff.mdomarchy run7 fixes, generic UI labels, post-merge lane container cleanup, and lane binary release checks

Key takeaway

Every architectural boundary in turbo-12f is empirical: host tools beat BAML on cost and reliability, mutation kills replace brittle wall timers, and FactoryBench parity gates the final v1 cutover.

Next steps

On this page