System overview
How turbo-12f stacks its Go packages, enforces zero external Go dependencies, and separates no-net/http core binaries from HTTP companion and driver processes.
turbo-12f keeps its Go runtime small, deterministic, and isolated from direct HTTP linking. Core and containment binaries (t12, t12-cage, t12-container) link no net/http while they verify code and hash-chained evidence, while companion processes and subprocess adapters handle UI HTTP, AI harnesses, Cloudflare, and GitHub.
Core & cages (no net/http)
- Zero Go dependencies: Builds with the Go standard library only.
- No HTTP code:
t12,t12-cage, andt12-containerlink zero HTTP clients or servers. - Deterministic gates: Scripts verify every test, diff, and hash chain.
Companion processes & UI
- Web workbench (
t12-ui): Serves the React app, manages auth/Observer, and shells out tot12. - Subprocess & network adapters:
t12-adapterholds HTTP/token integrations (context7, SRE probes), whilet12calls subprocess adapters (ghcli,ghissue,ghrepo,fbreport). - AI harnesses:
agy,omp, andclauderun behind RPC wrappers and guard hooks.
New to turbo-12f?
Read The factory pipeline first for a plain-language overview before diving into Go packages.
Six-layer package stack
The target v2 design in design.md stacks Go packages from storage up to CLI and HTTP entry points.
| Layer | Packages | Responsibility |
|---|---|---|
| Foundation | internal/store, internal/schema, internal/gitio, internal/dag, internal/envfile, internal/access, internal/project | Atomic JSON, tool schemas, git helpers, DAG ordering, configs, auth store |
| Record & specs | internal/record, internal/spec, internal/rollup, internal/approvals, v1 internal/model | Hash-chained logs, OpenSpec views, lint rules, rollups, approvals |
| Containment | internal/sandbox, internal/cage, internal/container, internal/readonlysession, *rpc, internal/docs, internal/served, internal/skillmap, internal/runner, internal/eval, internal/bencheval | Landlock/Docker cages, revert guards, harness RPCs, Context7 socket, skill checks, role evals & bench grading |
| Roles & merge | internal/roles/*, internal/mergequeue, internal/mergepolicy, internal/adapters/* | Thirteen role packages, staging rebase queue, policy rules, external adapters |
| Orchestration | internal/orchestrator, internal/observer, internal/setup, internal/docschat | Lane DAG scheduling, slot pools, file locks, failure routing, Observer loop, onboarding setup, docs chat |
| Entry points | internal/cli, internal/ui, cmd/* | CLI dispatch, embedded React dashboard with SSE, and 12 helper binaries |
Factory architecture across six layers
Six Go package layers align with downward dependencies from CLI and UI entry points down to Foundation storage.
Click any node or press PlayDownward import rule
In the target architecture, dependencies flow strictly downward. Roles never import each other or the orchestrator, and only the orchestrator writes lane progression events to the log.
While the v1-to-v2 transition finishes, go list shows five places where packages still cross layer boundaries:
| Package | Temporary imports | Why it exists today |
|---|---|---|
internal/roles/context | orchestrator, schema, *rpc, project, spec, record, skillmap, gitio, store, catalogue, root | Drives conversation turns, readiness checks, and harness runners |
internal/roles/release | orchestrator, rollup, project, record, served, gitio, store | Coordinates release checks, bisection, and fix-lane additions |
internal/ui | roles/context, roles/release, omprpc, readonlysession, observer, access, approvals, record, rollup, project, spec, gitio, store, net/http | Serves dashboard views, access controls, and embedded Observer controls |
internal/observer | roles/context, roles/release, schema, orchestrator, approvals, access, record, rollup, readonlysession, store, root | Scans waiting work and runs session.go via Actor and Hands without importing internal/ui |
| Sibling roles & rollup | qc ← uicheck/deslop; engineer ← qc; strategist ← orchestrator; orchestrator/analyzer ← rollup | Shares helper functions and Plan schemas across adjacent stages |
Zero-dependency Go stdlib rule
go.mod targets Go 1.27, excludes docs-site via ignore ./docs-site, and has zero require lines. Every binary in cmd/ builds strictly with the Go standard library.
External Node tooling is isolated to internal/ui/web (bun and vite-plus for embedded UI assets) and docs-site. Neither directory adds third-party Go modules.
Core and network boundary
turbo-12f splits binaries into no net/http core/containment programs and HTTP-capable companion or driver programs so containment code cannot accidentally link HTTP clients or server stacks.
| Program group | Binaries | Network and model policy |
|---|---|---|
Core & cages (no net/http) | cmd/t12, cmd/t12-cage, cmd/t12-container | Zero net/http; v2 t12 invokes local harnesses and subprocess adapters (ghcli, ghissue, ghrepo, fbreport) while cages run offline |
| Web UI server | cmd/t12-ui | Serves SPA, auth, approvals, and Observer; forks sibling t12 for mutations |
| Network adapters | cmd/t12-adapter, plus v1 t12-runner, t12-cc, t12-job, t12-queue | Links net/http directly (t12-adapter) or transitively (internal/adapters/common, internal/skills); handles Context7 Unix-socket proxy, intake, delivery, and SRE HTTP probes |
| Helper tools | cmd/t12-mutate, cmd/t12-wizard, cmd/t12-bench | Runs Go mutation testing, host setup, and FactoryBench grading outside cages (zero net/http) |
When a no net/http component needs direct HTTP calls or UI actions, it calls a sibling binary across an OS process or Unix-socket boundary (sibling("t12") in cmd/t12-ui, t12-adapter sre probe --url in SRE, or t12-adapter context7 serve for caged docs lookups).
Boundary check
TestTheCoreAndTheCageProgramsLinkNoNetworkCode in naming_test.go checks t12, t12-cage, and t12-container with go list -buildvcs=false -deps for net/http (internal/roles/context uses internal/schema rather than internal/contextcreator or internal/drive).
Process and network boundary
Core and containment binaries link no net/http while companion processes handle UI HTTP, model turns, SRE probes, and Context7 lookups.
Click any node or press PlayKey takeaway
Keeping the Go core stdlib-only and offline lets turbo-12f verify every build inside air-gapped cages while confining credentials and network calls to thin sibling adapters.
Next steps
Autonomy, people, and Observer
Understand team roles, the four factory autonomy modes, two-operator safety rules, and the optional Observer assistant.
Request lifecycle and orchestration
End-to-end execution from ask and confirm through Strategist DAG lanes, capacity scheduling, autonomy modes, and failure recovery ladders.