Cockpit — Gitorio as the one-stop harness & orchestration platform¶
Decision record (2026-09-18): GitFactory (gitorio) as the one front door for designing, running and refining harnesses, with this hub as its runtime.
Status: Accepted direction (2026-09-18). Implementation phased; this ADR is the contract. Related: HARNESS.md (six-layer architecture), HARNESS-OPS.md (fleet ops + local stack), UX-HARNESS.md (UX capability kit), DASH.md (registry + CLI).
Decision¶
Gitorio is the product UI — the single local cockpit for defining, designing, managing, monitoring, and refining AI harnesses and orchestration across the fleet.
bamr87 is the platform runtime — registry, fleet.yml contract, kits, tools/dash / dash-gen, fan-out, data lake, and Phoenix. Humans should not need a second ops GUI.
GitHub Pages (tools/dash serve, :4000) is the console's page built static — a projection of committed _data/*.yml that becomes write-capable only when a visitor connects GitHub or a running console (CONSOLE-PAGES.md).
Gitorio (cockpit) ──jobs/API──► bamr87 devenv (tools/dash, kits, fan-out)
│ │
│ reads │ writes via PR / working tree only
▼ ▼
hub YAML + lake.sqlite + Phoenix fleet repos (Actions, switches, factory--*.yml)
│
▼
GitHub Pages = read-only billboard
Why¶
The local stack already exists as three services (HARNESS-OPS):
| Service | Role today | Role under this ADR |
|---|---|---|
Harness Console :4001 |
Write-capable ops UI over allowlisted tools/dash |
Bridge / job API until Gitorio absorbs its tabs; then headless or removed |
Data lake + Phoenix :6006 |
Local extract/review/traces | Unchanged backend for Insight / Traces |
Pages / tools/dash serve :4000 |
The console's page, static (snapshot); GitHub or a console can be connected from it | Public face of whatever front door wins |
Gitorio already owns Design (canvas/compiler), Fleet Observe, and a Harness tab that ports dash-gen harness. The gap is not philosophy — it is one front door.
Non-negotiables¶
- Source of truth stays files in bamr87 (
_data/projects.yml,_data/fleet.yml, kitVERSIONs, generated registries). Gitorio edits them only through allowlisted dash jobs (diff + confirm + PR / working-tree), never silent pushes tomain. - No second contract store inside Gitorio (no parallel caps DB). Blueprints consume caps and kill switches; they do not replace
fleet.yml. - Compiler output remains plain GitHub Actions YAML in leaf repos. Production must not require Gitorio to be online.
- Lake, Phoenix and the log plane stay local-only (gitignored lake; Docker volumes for the indices; no run-log publication to Pages).
- Draft-only / never-merge agent behavior and fan-out PR discipline are unchanged.
- Pages never gains write UI.
Cockpit map (tab → backend)¶
| Gitorio surface | Operator job | Backend |
|---|---|---|
| Floor | Design / compile blueprints → factory--*.yml |
Gitorio compiler (existing) |
| Fleet | Roster, lines, live status, arm/disarm | harness_registry.yml + GitHub Actions API |
| Harness | Six-layer scorecard + trip wires | Hub YAML + live Fleet Ops eval (existing parity) |
| Caps | Edit fleet.yml blocks with diff |
Allowlisted tools/dash config ops (console Config today) |
| Deploy | Kit gaps → dry-run → PR | fanout.yml (kit harness) / tools/dash harnesses deploy |
| Auth | Credential presence for this process / gh |
Console Auth semantics (env / gh auth, never echo secrets) |
| Insight | Cost, waste, attention | tools/dash lake review (+ committed usage ledgers) |
| Logs | Search every CI and container line | Elasticsearch/Kibana :5601 (embedded in the console's Observe tab; joins to Traces on trace.id) |
| Metrics | Volume, error rate, agent spend over time | Grafana :3001 over the same indices |
| Traces | Per-run agent trees | Phoenix :6006 (embed or deep-link by run/session id) |
| UX | Surfaces, evidence, critique queue | templates/ux-audit + ux: on projects + future ux_registry.yml |
| Jobs | Live log of allowlisted ops | Same job runner the console uses |
| Docs | Operator maps | Existing delivered maps / docs tab |
Local topology¶
# from a bamr87 checkout with submodules (control-plane root)
docker compose up -d devenv phoenix console # engine + lake API bridge + traces
# gitorio: app vite (compose service TBD) → http://127.0.0.1:5173
# phoenix → http://127.0.0.1:6006
# pages build (tools/dash serve, optional) → http://127.0.0.1:4000
# console bridge (until absorbed) → http://127.0.0.1:4001
Target UX: one entrypoint, e.g. tools/dash cockpit / make cockpit, that brings up the stack and opens Gitorio.
Environment contract (illustrative):
| Var | Purpose |
|---|---|
BAMR87_ROOT |
Mount/path to hub checkout |
DASH_API |
Base URL for allowlisted jobs (console :4001 or successor) |
PHOENIX_URL |
Trace UI |
HUB_REPO |
Default bamr87/bamr87 for hub reads |
Phased delivery¶
Phase 0 — Platform glue¶
- Compose (or documented parallel) run of Gitorio against bamr87 devenv
- Gitorio can read hub files + call dash job API + open Phoenix
tools/dash cockpit(or equivalent) documented in HARNESS-OPS
Phase 1 — Absorb console (order matters)¶
- Caps —
fleet.ymlblock editor with diff + confirm - Deploy — gaps dry-run → apply/PR
- Auth — parity with console credential rules
- Jobs — allowlisted ops + live logs
Then stop sending operators to:4001by default (API may remain).
Phase 2 — Unified Attention¶
- One home board: trip wires ∪ harness gaps ∪ spend anomalies ∪ UX NEW fingerprints
- Insight tab over lake review JSON
Phase 3 — UX module¶
- Inventory from
projects.ymlux:+ kit stamp - Evidence browser; critique only after caps + leaf gate exist (see UX-HARNESS.md)
Phase 4 — Refine-in-product¶
- From a failure → propose guide / sensor / cap / blueprint patch
- Still lands as PR; ratchet remains file-based (HARNESS.md)
Explicitly out of scope (for now)¶
- Rewriting
tools/dashin TypeScript - Replacing Phoenix with a custom trace product
- Making Pages interactive
- Aggregate (monthly / workspace) dollar enforcement. Per-run
--max-budget-usdceilings are enforced at every call site (HARNESS checklist #7), but they use the CLI's client-side estimate and do not bound the fleet total. Prerequisite before heavy critique automation. - Multi-tenant SaaS packaging
Consequences¶
Good: One bookmark for orchestration; VS Code for code; Pages for shareable static status; clear shell/engine split.
Tradeoff: Gitorio must stay honest about allowlists and PR-only writes — a cockpit that bypasses tools/dash would recreate the silent-push failure mode the harness was built to prevent.
Follow-up: Gitorio epic tracks Phase 0–4; bamr87 tracks compose/cockpit entrypoint and any headless console API cleanup.
Acceptance (Phase 0 done when)¶
- Operator can start local stack and use only Gitorio to view Harness + Fleet against live hub data
- At least one write path (Caps or Deploy) goes through allowlisted dash jobs with confirm + diff
- Pages remains read-only; lake/Phoenix remain local
- This doc linked from HARNESS-OPS.md “local stack” section