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.
Four components handle repository onboarding, staging-to-main releases, post-release monitoring, and optional unattended operator decisions (devops, release, sre, and internal/observer).
DevOps
Bootstrap or adopt repos, run Project Gate, and build dry-run artifacts.
Release
Verify whole-tree staging checks, bisect failures, and merge to main.
SRE
Probe live URLs, group errors by fingerprint, and triage or roll back.
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.
| Capability | Files | What Go does |
|---|---|---|
| Bootstrap, Init & Adopt | bootstrap.go, adopt.go | Scaffolds templates (InitLocalProject) or adopts repos via project.Detect (Node.js, Go, Python, Rust, Effect-TS) onto staging or t12-staging. |
| Project Gate | gate.go, depscache.go | Verifies .t12/, skillmap.Check(), branches, toolchain, deps-cache (propagating cleanup warnings in NotDone), and CheckCoverage. |
| Dry-run & Promote | deploy.go, promote.go | Builds 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)
| Priority | Kind | Allowed actions | Required right | Blocked by active job |
|---|---|---|---|---|
| 1 | command | allow, deny | acceptor | None (never) |
| 2 | approve-part | approve, send-back | acceptor | action job |
| 3 | stuck | retry, wait | run | action or build |
| 4 | answer | answer, decide-for-me | editor | action job |
| 5 | confirm | confirm, answer, wait | acceptor | action job |
| 6 | build | build, wait | acceptor | action or build |
| 7 | signoff | signoff, hold, wait | acceptor | action job |
| 8 | hold | hold, wait | acceptor | action job |
| 9 | release | release, wait | acceptor | action or build |
- Deduplication & lock checks:
signoffrequireschecks.Pass()and never overrides"held back".detectBuildscansrunEventsstrictly afterconfirmed.Seq, andobserverHands.Busychecks both UI jobs and external CLI requestflockfiles (actionBusy,buildBusy). - Handler execution & flags:
observerHandscallsui.Serverhandlers and passes--by observer(ask,run --answer),--observer(approve --send-back), andObserver: true(Commandapprovals). - Audit logs & recovery: Appends to
<home>/observer/log.jsonl(0644), writesHome.WriteDecision(Kind: "observer-" + kind,By: "observer",DecidedForYou: true), records"failed"in<home>/observer/inflight.json(0600) on crash restart, and mapshuman.resumedinbenchreport.Map.
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
Quality, hygiene, and review roles
Deterministic checks and read-only audits across QC, UI check, Explorer, Deslop, Red team, and Code review before merge policy evaluates a lane.
Record and evidence
How turbo-12f maintains tamper-evident hash-chained event logs, typed evidence reports, read-side rollups, and legacy v1 state models.