Read this page instead of the product requirements document (PRD). It plans the rewrite of otto's engine from a bash script into one Go program, in five milestones with a review after each. Nothing you use today changes until the last story, which is yours.
Status in one line. The PRD is at revision 7. It went through five rounds of the codex checker, otto check, and one panel of four Opus reviewers. No round found a blocker. The panel found six, and revision 4 fixed all six. The checker's majors fell from 47 to 25, 24, 20 and 14. Every round's verdict was FIX-FIRST, as for P1. Revision 7 applies the last 14 majors and was not checked again, because the loop reached its cap of five rounds. The sizer and this gate backstop the rest.
What "go" means. We copy the branch to a standalone build folder, install Go for your user only, convert the PRD into otto's task file, and split it into about 115 parts. The installed otto builds them in order. The run stops seven times for a review, with exit 5 and a notification, and continues only when the operator clears the hold. Your part is the Mac run of the finished binary and the last story: accept the swap, or refuse it. If you say no, no story runs.
Short path, about eight minutes. For the decision alone, read the status box above, then sections 6, 7 and 9.
otto today is one bash script of about 5,900 lines plus a 1,600-line planner. P1 made it honest and safe to run unattended. This PRD replaces the script with one Go program that does the same things byte for byte, then adds what P1 could not: a daemon, resume after a crash, an account pool, a resolve and approve command, cards with defaults, profiles per repository, host claims, and executor adapters with a model and an effort per story. The executors stay the subscription command-line tools you pay for. No vendor software development kit (SDK) is used anywhere.
otto feature front door, design boards, release adapters, per-host baselines, the design-document export.After the swap. Until then, nothing.
otto plan, otto check, otto implement, otto watch, otto preflight, otto backup, otto budget reset, with the same flags.otto resolve to waive, amend, add a story or re-queue after an environment fix, each recorded as an operator decision.otto approve records the two gates with the hash of what you approved.claude:opus:high, codex::xhigh.Every otto story runs on Claude Opus unless the row says Sonnet or Fable. "Parts" is what the sizer splits the story into at convert time, at points the PRD fixes. A HOLD marks a story where the run stops before it starts, until the operator clears the hold after a review.
| Story | Purpose | Parts | Notes |
|---|---|---|---|
| M0 · Foundations | |||
| OTTOD-001Go skeleton | One Go module, pinned toolchain, pure Go, static builds for Linux and the Mac. | 1 | Sonnet |
| OTTOD-002Engine design document | Writes the engine's HLDD with one section per package group, so the HLDD guard applies to every engine story. | 1 | |
| OTTOD-003Ten new contract checks | Turns the behaviours P1 checked by hand into suite checks, so parity covers them. | 1 | Suite 256 → 266 |
| OTTOD-004Suite for both engines | One variable selects the binary under test; bash-only checks print a SKIP line. | 2 | |
| OTTOD-005Parity script | Runs the suite and the six navigation replays through both engines and compares digests, not just totals. | 1 | |
| OTTOD-006Go test harness | Black-box tests against a built binary with the same pins and guard as the bash suite. | 1 | |
| M1 · Parity | |||
| OTTOD-007CLI surface | Every subcommand, flag and knob parsed as the bash engine parses it. | 1 | HOLD M0 review |
| OTTOD-008PRD model | Order-preserving JSON that jq cannot tell from the bash engine's, story sets, human detection. | 2 | |
| OTTOD-009Event log | SQLite log per PRD as the source of truth; files derived from it; adoption of files the bash engine wrote. | 4 | |
| OTTOD-010State, backups, lock | The .otto/ layout, rotating backups, the run lock with stale takeover, the git exclude block. | 3 | |
| OTTOD-011Process groups | Every group recorded before it runs; the kill sequence; no orphans on any exit. | 1 | |
| OTTOD-012Status and finish | The status file with heartbeat and derived counts; one exit path. | 1 | |
| OTTOD-013Prompt and loops | Templates rendered literally; feedback loops detected before every story. | 3 | |
| OTTOD-014Launch and watchdog | Today's executor command lines; the stall watchdog on output and CPU time. | 4 | |
| OTTOD-015Attempt outcomes | Tags bound to the selected story; one authorisation path to passes: true; parks after repeated blocks. | 3 | Includes a real-executor run |
| OTTOD-016Protected plan | Snapshot, decisions log, reconciliation of executor edits, tamper checks. | 5 | |
| OTTOD-017Signals and recovery | Interrupt, terminate and hang-up end cleanly; a crash is recovered at the next launch. | 3 | |
| OTTOD-018Preflight | The nine checks in order and the real login probe per engine. | 2 | |
| OTTOD-019Notifications | The same events and card-grade payload as P1. | 3 | |
| OTTOD-020Budget | Launch and token caps that survive relaunches; exit 7. | 2 | |
| OTTOD-021Routing | The tier ladder and raises refused without the logged flag. | 1 | |
| OTTOD-022HLDD guard | Attribution by attempt, the section map, the commit-body rule. | 1 | HOLD after routing |
| OTTOD-023Convert and check | otto plan convert and otto check with the unchanged prompts. | 2 | |
| OTTOD-024Other plan commands | init, plan create, quick, iterate, full, append. | 5 | |
| OTTOD-025otto watch | The status follower, through parks and stalls. | 1 | |
| OTTOD-026Parity gate | Whole suite, parity script, replays A to F identical: 252 passed, 0 failed, 14 skipped. | 1 | |
| M2 · P2 natively | |||
| OTTOD-027Repository profile | otto.profile.json: schema, validation, precedence over flags and environment. | 3 | HOLD M1 review |
| OTTOD-028Credential preflight and ledger | Checks from the profile's credential matrix, including probes that must fail; a blocker ledger that outlives runs. | 4 | |
| OTTOD-029Limit detection | Provider login and rate-limit lines recognised inside the engine, including "You've hit your limit". | 1 | |
| OTTOD-030Account pool | Roster, token source and meter command from configuration; the pick rule on the three meters, stale rows handled. | 1 | |
| OTTOD-031Account switch | Stop, checkpoint, re-pin, relaunch inside the run; token redaction from the first pooled launch. | 5 | |
| OTTOD-032otto resolve | Waive, amend, add a story, re-queue; every action an operator decision. | 3 | HOLD after the pool |
| OTTOD-033Cards and timed defaults | The card format with options as argument lists; one timed default per story and class. | 3 | |
| OTTOD-034otto approve | Approvals with the artefact's hash; tier raises only through approvals; a routing block cannot be deleted away. | 3 | |
| OTTOD-035Host claims | Name and expiry, 8 hours, renewable; a second claim refused with a card. | 2 | |
| OTTOD-036Evidence levels | Built, tested, installed, probed, journey, checked against the current commit. | 1 | |
| OTTOD-037The daemon | Runs hosted on a local socket, lanes, confirmation codes minted in memory, a user service that survives restarts. | 8 | |
| OTTOD-038Resume | Idempotent steps; a daemon restart adopts and resumes its runs. | 5 | |
| OTTOD-039Remote runner, Linux side | A run dispatched to another machine over SSH, its status mirrored, claims held by the controller. | 9 | HOLD after resume |
| OTTOD-040Mac run | You run the remote runner and the final Mac binary on your Mac against the recorded hashes. | 1 | HUMAN-OWNED |
| M3 · Adapters | |||
| OTTOD-041Adapter specs | The spec format, loader and validator; today's command lines re-expressed as the two default specs. | 3 | HOLD M2 review |
| OTTOD-042claude stream spec | The typed stream-json spec with model and effort, opt-in. | 1 | |
| OTTOD-043codex json spec | The typed --json spec with model and effort, opt-in. | 1 | |
| OTTOD-044Model and effort per story | The grammar vendor[:model[:effort]]; every P1 value still valid. | 1 | |
| OTTOD-045Nested credentials | Executors' own claude calls get the pinned account, replacing the hand-made shim. | 1 | |
| OTTOD-046Typed adapters in the suite | The core scenarios also run through the typed specs; a third vendor shown as one spec file. | 1 | Sonnet |
| M4 · Swap readiness | |||
| OTTOD-047Install, swap, rollback | The installer builds or links the Go binary on request; the swap needs a release approval and refuses a mismatch. | 3 | HOLD M3 review · Sonnet, rollback check on Opus |
| OTTOD-048README and skills | The engine's commands, cards, adapters and profile documented; the otto skills updated. | 1 | Fable |
| OTTOD-049Final verification | Both suites, parity, replays, lint, vet, binary size, cold start, the Mac build, hashes recorded. | 1 | |
| OTTOD-050You approve the swap | Read the verification, run the Mac story, then accept the swap or refuse it. | 1 | HUMAN-OWNED |
| Item | Stories | Status |
|---|---|---|
| The brief's P2 list | ||
| Account pool with usage read and switch | OTTOD-030, 031 | DELIVERED |
| Text-mode rate-limit detection | OTTOD-029 | DELIVERED |
otto resolve waive, amend, add-story, env | OTTOD-032 | DELIVERED |
| Operator decisions and the block triage card | OTTOD-032, 033 | DELIVERED |
otto approve with the artefact hash | OTTOD-034 | DELIVERED |
| Per-repository profile | OTTOD-027 | DELIVERED |
| Shared-host claim with expiry | OTTOD-035 | DELIVERED |
| Decision 10's additions | ||
| Credential and access preflight, blocker ledger | OTTOD-028 | DELIVERED |
| Timed defaults on parks | OTTOD-033 | CHANGED one per story and class; never for waivers, budget, production, takeovers |
| Per-provider capacity with mid-run fallback | OTTOD-030, 031 | DELIVERED |
| Evidence levels in the schema | OTTOD-036 | DELIVERED |
| Lane caps | OTTOD-037 | CHANGED default 1, and 1 until executors run as a separate user |
| Remote runner | OTTOD-039, 040 | CHANGED Linux side and the Mac binary; the Mac run is yours |
| The end state | ||
| Go, one static binary, daemon plus thin CLI | OTTOD-001, 037 | CHANGED one command; ottod is the same file under another name |
| SQLite event log | OTTOD-009, 038 | DELIVERED from M1 |
| Executors as subscription CLIs behind config adapters, model and effort per story, no vendor SDK | OTTOD-041 to 045 | CHANGED the typed specs ship opt-in; today's command lines stay the default at the swap (decision 13) |
| Passes the smoke suite; the navigation PRD replays through both engines | OTTOD-004, 005, 026 | CHANGED the suite is 266 now, not 44; 252 apply to a binary |
| Swap the symlink, then adapters | OTTOD-047, 050 | CHANGED adapters before the swap (decision 10) |
| Web command centre, Slack bot, MCP server | — | NOT IN THIS PRD |
The checker. Five rounds of otto check (codex at extra-high effort). No blocker in any round. Each round's majors were consequences of the previous revision's additions, not reversals, so the author applied every one. The last round's 14 are applied in revision 7 without a further check.
The panel. Four Opus reviewers, one lens each, on revision 3. They found six blockers, 23 majors and 5 minors. Revision 4 applied them with the operator's steers where two lenses disagreed. The six blockers:
Declined, with reasons in the PRD's review log. Two PRDs may still share a worktree in a foreground run, because P1 documents it and parity needs it; the daemon reserves worktrees instead. The ps command is a runtime dependency, listed, not a breach of "one static binary". Split findings became mandatory split points, not new story IDs, so the PRD stays one file of 50 stories.
These are the PRD's open questions. Each has a default that applies if you say nothing. Reply with the number and your change to alter one.
Default: only cmd/otto; ottod is the same binary started under another name. The end state says one binary; the two-command layout is recorded as the alternative.
Default: one log per PRD under .otto/state/, each log's head kept machine-wide; lock, group records and status are never derived; outside changes adopted only after the lock and only when they weaken nothing.
Default: vendor[:model[:effort]], so claude:opus:high and codex::xhigh. Effort is not a tier and never needs the tier-raise approval.
Default: the pure-Go modernc.org/sqlite, pinned with its companion module; a fallback named.
Default: Go 1.27.1, installed for your user under ~/.local/go, no sudo, with toolchain downloads disabled.
Default: 50 stories in one file, 26 with fixed split points, about 115 parts; 280 iterations of budget; about four days of runs and about two weeks with the seven reviews. Recomputed at convert time if the sizer lands outside 105 to 125 parts.
Default: one run at a time, until executors run as a separate user (decision 11).
Default: environment and capacity parks re-queue; guard, unknown, tool and pre-existing parks re-queue once with the reason; credential parks wait for the ledger; upstream parks wait for a person; budget, production, takeover and waivers never default.
Default: otto.profile.json at the repository root for repository policy; your account tokens and meters in ~/.config/otto/pool.json; lanes in ~/.config/otto/daemon.json; codes only in memory.
Default: M3 before M4, so the swap carries the adapters. The end state had the swap first; either order works.
Default: a later PRD. It is the real cure for the same-user risks, and the precondition for more than one lane.
Default: you do this as an ops task outside otto: a separate user, or an agent that asks for a confirmation. Until then every run records the residual in the ledger, and the CurrencyTransfer profile gains a must-fail probe once the key has moved.
Default: no. Today's command lines stay the default through the swap. The typed specs are opt-in until you approve the budget-accounting change they bring: claude usage becomes reported.
Default: the operator watches the log and the terminal bell until you give a webhook; open since the P1 report.
~/.local/go for your user only, checksum verified. Module downloads happen once, at the first build.factory-p1-2026-09-27 and pre-factory-2026-09-26, and the installer's refuse-on-mismatch rule.Cost and time. The build runs on your subscription accounts through the pool's manual predecessor, the failover script. Paid calls go only to the checker, under the ChatGPT login. About four days of runs, about two weeks with the reviews, on the P1 pace of 29 parts in 15.5 hours plus about 12 minutes of suites per part.
Reply go, or no with the numbers of the decisions to change.
Decisions 1 to 14 are in section 6. An example: "go, 12 = I will move the key this week, 14 = here is the webhook".
Your tasks. This reply. Later, the Mac story (OTTOD-040) and the swap decision (OTTOD-050). Between them, nothing unless a hold raises something the pack did not cover.
otto check found no blocker in any round. The panel's six blockers were fixed in revision 4 and did not return.
Prepared 27 September 2026 from otto-engine/prd-engine.md, revision 7, commit 9f22732, its review log, the check files prd-engine-check-r1.txt to r5.txt, and the four panel reports. Companion pages: the P1 build report, the P1 review pack and the retrospective. The check history is also in CHECKS.md beside this page.