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.
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
| ADR | Decision | Current status |
|---|---|---|
| ADR 0001 | Keep Go host tools instead of BAML parsing | Active |
| ADR 0002 | Order QC by trust pyramid; drop t12-tia and integration tier | Superseded by v2 11-role split (pyramid and no-integration rule kept) |
| ADR 0003 | Require factory features to beat baseline on FactoryBench | Active, amended for v2 cutover parity ($60 spend cap) |
| ADR 0004 | Replace 10 s wall-clock tier kill with ~100 ms per-test CPU budgets + mutation | Active, amended to run baseline timing in DevOps Project Gate |
Accepted and superseded decisions
ADR 0001 keeps host tools over BAML
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-py0.226.3,b.parse.<Kind>Answerinexperiments/baml/run.py). - Evidence: Across
5runs per cell onanalyzer,red, andreviewer(claude-{sonnet,haiku,opus}-5-5), host tools hit5/5accepted calls with0refusals; BAML added~45%output tokens and20%–25%cost onanalyzer, plus4refusals and a1244 stail run onreviewer. - Reopen rule: Reopens only if a weaker model raises recorded refused-call counts.
ADR 0002 replaced v1 gates before v2 superseded it
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(verifyskills), and parallelreviewer-bugs/reviewer-qualityClaude Opus 5.5 reviews while deletingt12-tiaandtests/integration. - Outcome: In v2,
QCruns deterministicstatic,E2E, andui-checkscripts only, whileRed team,Deslop, andCode reviewrun as dedicated lane roles (plus optional releaseqc.explorer).
ADR 0003 requires features to beat the baseline
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-12freached29kGo lines across10programs 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
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 swall 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
prepareto the DevOps Project Gate (internal/limitsmeasures TypeScript per-test CPU viaprocess.threadCpuUsage(), emittingshould-fixfindings 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 gateD7(#227,#229), cataloguesD8, DeslopD13–D14, Red teamD15–D16, UI baselinesD17–D18, Context7 proxyD30, skill mapD29, and Strategist DAG +gitio.SyncOntoStaging(#224). - Operations & delivery:
D28config proposals, CLI reporting (D23,D24,D31), release gates (D19,D26), SRE watch/triage (D21,D22), andweb-reactstarter (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), andt12-benchgrading.
| Area | Current state | Blocked on |
|---|---|---|
Cloud deploys (H10, D42) | devops.Promote runs dry-run only; SRE reports nothing deployed | Cloudflare account and API token |
Project GitHub repos (D32, E4, D20) | Local release PR bodies stored as evidence | Real project remotes for mirrors, CI drift checks, and branch protection |
FactoryBench parity (D38–D41, E9–E10, F1–F3) | Pending comparative runs | External 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-ups | Tracked in handoff.md | omarchy 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
Extend the factory
Step-by-step recipes to add CLI verbs, UI actions, project settings, prompts, role skills, review rules, catalogues, and diagrams.
Troubleshoot host and run issues
Diagnose and fix macOS, Colima cage, SSH auth, mode.json, Request Review approval, merge sync, verification, mail, and Operator lockout issues.