Brief for approval

otto P1 and P2: make the loop self-sufficient

26 September 2026. Owner: Stevan. Operator for this run: the session agent. Feature slug otto-spine. Read time three minutes. Back to the retrospective.

Problem

otto cleared 30 of 30 stories on Navigation 2026, but only with scaffolding built by hand around it: account failover and a usage guard, PRD backups, a babysitter counting stories, a conversion that failed silently on expired auth, a crash on an apostrophe in a block reason, a go notification that sat in a terminal for 87 minutes, and four blocks resolved by editing JSON by hand. Every one of these recurs on the next feature.

Outcome

otto runs a converted PRD unattended for a working day: it fails loudly before it starts if auth or loops are missing, reaches a phone or Slack when it needs a person, stops at a spend cap, refuses to raise the model tier without an approval, reports honest counts, backs up its own state, rotates accounts, records every operator decision, and refuses a source change that leaves the design document untouched. No teammate front door yet; that is P3 and waits behind the gate in the retrospective.

Interaction model, agreed 26 September. Two human gates per feature: approve the plan and approve the release. Every other decision is a timed card with a default; after thirty minutes the recommended option applies and is recorded. Only money over the cap, production and a shared-host takeover wait for a named person. The aim is a reliable software factory, measured by throughput, first-pass yield, escaped defects and predictability rather than the number of doors.

In scope, P1 loop fixes

  • Auth preflight in otto's exact environment; plan convert fails loudly
  • Safe block reasons (the apostrophe crash)
  • Status file counts only passes:true, names the current task, carries a heartbeat age
  • Distinct exit codes; the iteration budget is not silently capped
  • Automatic backups of the PRD and progress files
  • OTTO_NOTIFY_CMD to Slack or phone for block, stall, exit, cap and completion
  • budget and routing in the JSON, enforced: pause at the cap with a card; no tier raise without an approval
  • Declared feedback loops when detection finds none
  • owner: human stories are never executed
  • Template publishes the fields the code already reads
  • HLDD guard: path-to-section map; a touched path needs a new or changed claim in its section, named in the commit

In scope, P2 resilience

  • Account pool: tokens, usage read per iteration, thresholds, switch that stops, checkpoints, re-pins, relaunches
  • Rate-limit detection in text mode
  • otto resolve <story> waive|amend|add-story|env: backup, record, reset counters, relaunch
  • operatorDecisions[] and the triage card for a block
  • otto approve <gate> writing approvals[] with the artefact hash
  • Minimal per-repository profile: loops, hosts, notify channel
  • Shared-host claim with a name and expiry; a second claim is refused with a card

Amendment, 26 September, after the end-state recommendation: P1 stays as bash work, done now. P2 is built in the new engine (ottod) rather than in bash, as the engine's first milestone after it passes the existing 44 black-box smoke tests. Executors stay subscription CLIs with per-story model and effort; no vendor SDK. Decision 9 below records it.

Out of scope

The otto feature front door and skill, design boards with direct feedback, environment preflight beyond auth and loops, per-host baselines, release adapters, the HLDD export tool. The navigation HLDD is a separate one-story job that runs right after this.

Success measures for this run

Factory measures (a non-Stevan driver finishes a small feature through the two gates plus exception cards only; first-pass yield, blocks and time to resolve, escaped defects, cost and wall clock against the navigation baseline; zero unrecorded approvals; a run resumes after a crash or rate limit without a human) are measured on the feature that follows, not on this run.

Constraints

Bash on Linux; a pinned copy through OTTO_HOME against a worktree of the otto repository; skills installed only after merge; the checker told the domain is a bash CLI. Models per policy: Opus for the loop and skill code, Sonnet for fake scenarios and mechanical edits, Fable only for the prompt and template prose, gpt-6-astra as the checker. Subscription accounts for the build; API spend only for the checker unless you set otherwise.

Decisions needed

#QuestionDefault if you say nothing
1Who drives the first non-Stevan feature after this run?Phil, through the two gates on his phone or Slack, with an agent operating; with two gates there is little else to drive. You are not involved per feature once the profile holds the cap, routing, exit bar, production approver and escalation policy.
2Notification channel for cards?Slack direct message plus terminal. Phone push if Remote Control is connected.
3Spend cap for an otto run and the action at the cap?Cap set per run in the JSON; at the cap the run pauses and sends a card. Proposed cap for this run: subscription only, $25 API for the checker.
4May a run raise the model tier above the default on its own?No. It needs an approvals[] entry.
5HLDD guard rule?Path-to-section map, one new or changed claim per touched section, named in the commit. Export tooling later.
6Shared-host claim expiry?Eight hours, renewable by the operator; a second claim is refused with a card.
7Where are "Feature Rails P1 and P2" and "Navigation HLDD" tracked?This brief and the docs folder until you name a board.
8Effort and order?About 12 stories in P1 (bash, hours each) and 8 in P2 (in the new engine); P1 in a day, the engine to parity plus P2 in two to three calendar weeks with review between milestones. Order: brief, P1 PRD and pack, P1 build, navigation HLDD story, then the engine.
9Engine language and shape (see the end-state page)?Go: a daemon plus thin CLI in one static binary, SQLite event log, executors as subscription CLIs behind config-driven adapters (claude -p and codex exec through their JSON streams, model and effort per story, no vendor SDK), web command centre served by the daemon, Slack bot in socket mode, MCP server. No desktop app. Runs on your own box. TypeScript on Bun if you would rather one language for UI and bot.
10Adopt the additions from the ten-project history?Yes. P1 adds <-safe reasons, a convert that never overwrites a tracked file, a watcher that survives parks, usage on a bare otto implement, git-excluded runtime files, persisted block counters and portable process groups. P2 adds the credential and access preflight with a blocker ledger first, timed defaults on parks, per-provider capacity with mid-run fallback, evidence levels in the schema, lane caps and a remote runner. Profiles carry the checker rubric and design applicability; a metric-gated run type follows the front door.

To approve: reply "approve" with any numbered changes, for example "approve, 2 = phone only, 3 = $50".

On approval the next steps are an otto-plan PRD for P1 and P2 converged by the panel, then a plain-English review pack for a second go. No code is written before the pack is approved.