Skip to Content
turbo-12f
Architecture

Delivery, operations, and Observer

How DevOps manages bootstraps and dry-run promotions, Release gates and bisects staging, SRE watches live URLs, and Observer resolves waiting items.

Explanation

Four components handle repository onboarding, staging-to-main releases, post-release monitoring, and optional unattended operator decisions (devops, release, sre, and internal/observer).

Onboard

DevOps

Bootstrap or adopt repos, run Project Gate, and build dry-run artifacts.

Gate

Release

Verify whole-tree staging checks, bisect failures, and merge to main.

Monitor

SRE

Probe live URLs, group errors by fingerprint, and triage or roll back.

Automate

Observer

Resolve waiting items every 10s via read-only UI sessions when enabled.

DevOps (internal/roles/devops)

internal/roles/devops runs pure Go automation (zero LLM calls) with defaultCommandTimeout = 10m. Standalone Install (deploy.go) retries timed-out installs up to InstallTimeoutRetries (2), while Gate and DeployDryRun run install once.

CapabilityFilesWhat Go does
Bootstrap, Init & Adoptbootstrap.go, adopt.goScaffolds templates (InitLocalProject) or adopts repos via project.Detect (Node.js, Go, Python, Rust, Effect-TS) onto staging or t12-staging.
Project Gategate.go, depscache.goVerifies .t12/, skillmap.Check(), branches, toolchain, deps-cache (propagating cleanup warnings in NotDone), and CheckCoverage.
Dry-run & Promotedeploy.go, promote.goBuilds staging in cage, saves <home>/artifacts/<project>/<tree>/dist, runs DryRunOnly{} (H10), and supports 24h RollBack

Release (internal/roles/release)

internal/roles/release is a pure Go gatekeeper triggered on the release lane, t12 release gate, and t12 release merge.

It reads <home>/release/<project>/ ledgers (checks, signoffs.jsonl, holds.jsonl) plus staging history, bisects failing trees (Bisect / AddFixLane), and promotes clean trees to main. On Adopted repos, release.Open pushes only the staging branch and opens the PR without creating a repo or pushing main. RenderPRBody (summary.go) formats PRs outcome-first with deslop.CheckProse warnings.

See Release and SRE for the 4-part gate, --no-ff merge sequence, and bisection rules.

SRE (internal/roles/sre)

internal/roles/sre pairs deterministic HTTP probing (t12-adapter sre probe --url) with a 10m NoCommands: true triage session (triage.go).

It writes normalized fingerprints under <home>/sre/<project>/fingerprints.json, files follow-up requests on project defects, or triggers devops.RollBack. See SRE watch, triage, and rollback.

Observer (internal/observer)

internal/observer runs inside t12-ui every 10s when enabled with scoped projects or conversations in <home>/access/observer.json. Each cycle picks the top waiting item in scope, injects UserProfile and any roles.observer override, and runs a 5m toolless observer.md session.

Waiting item priority order (kinds.go)

PriorityKindAllowed actionsRequired rightBlocked by active job
1commandallow, denyacceptorNone (never)
2approve-partapprove, send-backacceptoraction job
3stuckretry, waitrunaction or build
4answeranswer, decide-for-meeditoraction job
5confirmconfirm, answer, waitacceptoraction job
6buildbuild, waitacceptoraction or build
7signoffsignoff, hold, waitacceptoraction job
8holdhold, waitacceptoraction job
9releaserelease, waitacceptoraction or build

Key takeaway

Delivery and operations stay deterministic by default: DevOps, Release, and SRE use scripts for every gate, and even optional Observer automation runs toolless and writes an auditable decision per action.

Next steps

On this page