Read this page instead of the product requirements document (PRD). P1 is phase 1 of the otto plan that you approved on 26 September.
Status in one line. The PRD is at revision 6.1, and seven review rounds ran on it. The checker, otto check, found no blocker in any round. The round-5 panel found two blockers, and revision 6 fixed both. Round 7 checked revision 6.1 and found 16 majors. Like every round, its verdict is FIX-FIRST, which means fix before a build. Nine of the 16 repeat earlier requests. Seven are new, and section 6 lists them as items 13 to 19. The PRD's rule sends these findings to you, and we apply none of them unless you say so.
What "go" means. We convert the PRD into otto's task file and split it into about 30 parts. The installed otto builds the parts in a separate checkout. We install nothing until you review the result. If you say no, no story runs.
Short path, about six minutes. For the decision alone, read the status box above, then sections 6, 7 and 9.
P1 fixes the faults in otto's build loop that the navigation build showed. It is 20 stories of bash changes to otto's engine, tests, README and skills. otto runs the stories one at a time, in one chain.
otto.sh and plan.sh.factory/p1.otto resolve, otto approve, profiles or host claims.otto feature front door, design boards or release adapters.otto plan convert makes from a PRD.tests/smoke.sh./prd-task-sizer tool. It splits large stories into parts before a build.This section is for the operator: Stevan today, Phil next.
Each way a run ends has its own code, and the final status shows the same code. Today otto exits 1 even after a clean finish.
| Code | Meaning | What to do |
|---|---|---|
| 0 | Complete. Every open story passed. | Nothing. Human-owned stories can still wait. |
| 1 | Failed. An executor error after retries, a failed write or a crash. | Read the log before you relaunch. |
| 2 | Usage. A bare otto implement, a bad number or a bad flag. otto writes nothing. | Correct the command. |
| 3 | Preflight. A check failed at the start, or the login failed during the run. A relaunch after a crash also stops here when the plan changed. | Read exit_check in the status. For usage, wait for quota or switch account. For plan, check the change, then relaunch with --accept-plan-change. Otherwise, fix the check. |
| 4 | Parked. Nothing can run, and one or more stories have parked. | Fix the story, delete its parked field and relaunch. |
| 5 | Blocked. Nothing can run. Open stories wait on blocked or human-owned work. | Resolve the named cause, then relaunch. |
| 6 | Cap. The iteration count ran out, and work remains. | Relaunch. Only this code allows an automatic relaunch. |
| 7 | Budget. The PRD's budget forbids the next launch. | Ask a person. Never relaunch automatically. |
| 8 | Locked. Another live run owns this PRD. otto writes nothing. | Do not start a second run. |
| 129, 130, 143 | Interrupted by a hang-up signal, Ctrl-C or a terminate signal. | Someone stopped the run. Relaunch when ready. |
| watch 9 | otto watch: the run died without a final status. | Check the machine, then relaunch. |
| watch 10 | otto watch itself failed. | Fix the watcher. The run can still be alive. |
Set OTTO_NOTIFY_CMD to any command. otto passes it a one-line message and structured data. The data names the machine, repository, branch and PRD, and each story that needs a person. It also lists the next commands and marks one as recommended.
| Event | When otto sends it | Needs a person |
|---|---|---|
| start | Once, after the preflight passes. | No |
| block | A story blocks, but does not park yet. | No |
| stall | otto stops an executor that went silent. | No |
| park | otto parks a story. | Yes |
| complete | The run ends with exit 0. | Only when human-owned stories wait |
| cap | The run ends with exit 6 or exit 7. | No for 6. Yes for 7. |
| exit | The run ends with any other code that writes a status. | Yes |
budget block in the task file caps launches, tokens or both.otto budget reset clears them.cap message that needs a person.routing block sets a default executor, one for user-interface stories and an optional tier ladder.--allow-tier-raise. otto logs each raise in decisions.log.routing block, otto works as today.Before the first launch, otto runs nine checks. The last check makes one short, real login call per engine, Claude or Codex.
exit_check names the check.otto preflight runs the same checks by hand and writes nothing.otto plan convert checks the login first. A failed conversion now prints its reason.The guard is off unless the task file has an hldd block. The block maps code paths to headings in one design document.
HLDD: <heading>.otto runs every story except OTTO-018 on Claude Opus, in this order. Each story adds its own smoke tests, and each part ends in one commit. The suite grows from 44 to 256 tests. The sizer splits six stories into parts, so the build has about 30 parts. A person does OTTO-018 on a Mac, and otto never selects it.
| Story | Purpose | Done when | Parts |
|---|---|---|---|
| OTTO-001Test foundation | Isolates the tests from the installed otto and the real models, and adds lint and live-check tools. | The suite reports 53 passed in under three minutes, lint finds nothing, and the installed otto stays unchanged. | 2 |
| OTTO-002Safe result tags | Stores each block reason exactly, and applies each result only to the story that otto selected. | otto stores reasons with an apostrophe, < or shell code exactly, and never runs them. | 1 |
| OTTO-003Runtime files out of git | Keeps otto's runtime files out of git and out of otto's own commits, from any folder. | After a run, git shows no runtime file in the status or in any otto commit. | 1 |
| OTTO-004State, backups, lock | Keeps backups, block counts and a run lock in one .otto folder per repository. | Backups rotate, a relaunch keeps block counts, and a second run on the same PRD exits 8. | 2 |
| OTTO-005Honest status file | Puts the status file beside the PRD, and derives its counts from the PRD at every write. | The status counts only passed stories, names the current story, and its heartbeat moves during long steps. | 1 |
| OTTO-006Exit codes | Ends every run through one exit path that sets a distinct exit code. | Clean, parked, blocked and capped runs exit 0, 4, 5 and 6, and the status shows the same code. | 1 |
| OTTO-007Signals and crashes | Stops the executor with otto, records each process before it starts, and protects the plan from executors. | After Ctrl-C or a crash no executor survives, and otto reverts executor edits to the plan. | 4 |
| OTTO-008Preflight | Checks tools, templates, the PRD and each engine's login before the first story. | A bad login stops the run in seconds with exit 3 and a line that quotes the error. | 3 |
| OTTO-009Safe conversion | Makes otto plan convert check the login, fail with a reason and never overwrite a task file. | A bad login exits 3, and conversion never overwrites an existing, tracked or linked file. | 2 |
| OTTO-010Human-owned stories | Never runs a human-owned story, and rejects an executor name that otto does not know. | A human-owned story shows as waiting and never launches, and a misspelt executor exits 3. | 1 |
| OTTO-011Notifications | Sends start, block, stall, park and end events to your command, with the next action to take. | Each event arrives once, and a failing or hanging notify command never changes the run. | 1 |
| OTTO-012Feedback loops | Reads the test and lint commands that a PRD declares, and looks for loops again before each story. | A declared loop appears in the prompt, and a PRD that declares nothing runs as today, with a warning. | 1 |
| OTTO-013Budget | Adds a launch and token cap to the task file, and the cap survives relaunches. | At the cap the run exits 7 and sends a message, and a relaunch exits 7 before any launch. | 1 |
| OTTO-014Routing and tier ceiling | Takes each story's executor from the task file, and refuses a higher tier without a logged flag. | A raise from a flag or a plan edit exits 3 without --allow-tier-raise, and otto logs each allowed raise. | 1 |
| OTTO-015HLDD guard | Refuses a story that changes mapped code but does not change and name its design section. | A mapped change without a section edit and an HLDD: line never passes, by any route. | 3 |
| OTTO-016otto watch | Lets otto watch find the status beside the PRD, keep watching through parks and end with the run. | Watch reports a park, keeps watching and exits with the run's code, and its own errors exit 10. | 1 |
| OTTO-017Portable process groups | Removes the need for setsid and Linux-only ps options, so supervision works on a Mac. | The Mac path runs on Linux with setsid blocked, and platform calls exist only in three functions. | 1 |
| OTTO-018Mac checkHUMAN-OWNEDPARKED | You run the whole suite once on a real Mac, with the system bash 3.2 and Homebrew bash 5. | Both runs pass, and the results are in docs/factory/otto-p1-macos-check.md. | 1, by you |
| OTTO-019Template, README, skills | Makes the task template, the conversion prompt, README, help text and otto skills match the code. | A real conversion maps owner, budget, routing, HLDD and loops, and no stale instruction remains. | 1 |
| OTTO-020Final verification | Runs every check again, runs the suite under bash 3.2.57 and replays the 35-story navigation PRD. | The suite shows 256 passed, all six replays match, and the installed otto stays unchanged. | 1 |
Every item on the brief's P1 list has at least one story. These parts of the brief are not delivered as written:
| Brief item | Stories | In P1 |
|---|---|---|
| The P1 list | ||
Login check before any launch, and a loud failure of otto plan convert | OTTO-008 OTTO-009 | DELIVERED |
| Safe block reasons | OTTO-002 | DELIVERED |
| A status that counts only passed stories, names the current story and shows the heartbeat age | OTTO-005 OTTO-016 | DELIVERED |
| Distinct exit codes, and no silent iteration cap | OTTO-006with 004, 007, 013 | DELIVERED |
| Automatic backups of the PRD and progress files | OTTO-004 | DELIVERED |
OTTO_NOTIFY_CMD to Slack or a phone for block, stall, exit, cap and completion | OTTO-011 | CHANGEDSlack and terminal only. No phone helper. |
| Budget enforced: pause at the cap with a card | OTTO-013 | CHANGEDThe run stops with exit 7. It counts launches and tokens, not money. |
| Routing enforced: no tier raise without an approval | OTTO-014 | CHANGEDA logged flag, not an approval record. |
| Declared feedback loops | OTTO-012 | DELIVERED |
owner: human stories never run | OTTO-010 | DELIVERED |
| The template publishes the fields that the code reads | OTTO-019 | DELIVERED |
| HLDD guard: a touched path needs a new or changed claim in its section, named in the commit | OTTO-015 | DELIVERED |
| History additions in P1 (brief decision 10) | ||
Reasons that contain < | OTTO-002 | DELIVERED |
| A conversion that never overwrites a tracked file | OTTO-009 | DELIVERED |
otto watch survives parks | OTTO-016 | DELIVERED |
Usage text on a bare otto implement | OTTO-006 | DELIVERED |
| Runtime files kept out of git | OTTO-003 | DELIVERED |
| Block counters that survive relaunches | OTTO-004 | DELIVERED |
| Portable process groups | OTTO-017 OTTO-018 | DELIVEREDHUMAN-OWNEDYou prove it on a real Mac. |
| Success measures | ||
| The suite grows from 44 by at least one scenario per story, and shellcheck is clean | AllOTTO-020 checks | DELIVERED256 tests. Lint reports zero findings. |
| A navigation replay covers block, resolve, rotate, cap and guard paths without a person | OTTO-020 | CHANGEDResolve and rotate need P2. |
| A block message reaches the channel within 60 seconds, and a capped run stops and asks | OTTO-011 OTTO-013 | CHANGEDThe Slack test runs only with a webhook. |
| Exit 0 on a completed PRD, and codes that tell blocked, parked and failed apart | OTTO-006 | DELIVERED |
| Outcome lines outside the list | ||
| otto fails loudly before it starts if loops are missing | OTTO-012 | CHANGEDA warning instead (item 12). |
| otto rotates accounts and records every operator decision | None | NOT IN P1Both are P2. |
You took items 1 to 12 on 26 September, and the PRD applies each one. Items 13 to 27 wait for your reply. If you say go, their default applies.
| Item | Decision | Default in the brief | In P1 |
|---|---|---|---|
| 1 | Notify channelbrief decision 2 | A Slack direct message and the terminal. A phone push when Remote Control is on. | Any command works. P1 ships Slack and terminal examples, but no phone helper. |
| 2 | Spend capbrief decision 3 | A cap per run. At the cap, the run pauses and sends a card. The checker gets $25. | The cap counts launches and reported tokens, not dollars. The run stops with exit 7. The $25 limit stays an operator rule. |
| 3 | Tier raisebrief decision 4 | No raise without an approval. | A raise needs the logged flag --allow-tier-raise. You accepted the ladder in section 2. |
| 4 | HLDD guard rulebrief decision 5 | A map from paths to sections. Each touched section needs a new or changed claim, named in the commit. | As written. The longest matching path decides the section. |
| 5 | Effort and orderbrief decision 8 | About 12 stories in one day. Then the navigation HLDD story, then the engine. | 20 stories and about 30 parts. The order does not change. |
| 6 | Engine and vendor kitsbrief decision 9, amendment | P2 goes into a new Go engine. Executors stay subscription tools, with no vendor SDK. | Bash only. The executor command lines do not change. |
| 7 | History additionsbrief decision 10 | Adopt them. | Each of the seven P1 additions has a story (section 4). |
Brief decisions 1, 6 and 7 do not change P1. Phil drives the next feature, host claims are P2, and tracking stays in the docs folder.
| Item | Decision | What it means |
|---|---|---|
| 8 | The lock follows the PRD path | One run owns a PRD, whatever folder or path starts it. |
| 9 | Exit 8 for a locked PRD | A second run prints one line and exits 8. It writes nothing and sends nothing. You also accepted the full exit-code table. |
| 10 | The budget persists | Relaunches and PRD edits keep the counts. Only a logged reset clears them. |
| 11 | Contract tags | A future engine must pass the 242 "contract" tests. The 14 "bash" tests check this code only. |
| 12 | The loops rule | A PRD without loops runs as today, with a warning. The value feedbackLoops: [] means "no gate" on purpose. The brief said "fails loudly". |
The PRD also holds the other panel choices. They cover the notify data, plan-change logging, conversion names, test isolation and crash recovery.
By the PRD's rule, round-7 majors come to you. Default if you say go: we do not apply them, and the build runs revision 6.1. Items 15 and 17 touch the checks of this build. The other five need rare conditions, or matter only for later features.
| Item | Story | Finding | Effect if we do not apply it |
|---|---|---|---|
| 13 OPEN | OTTO-004 | A lock takeover that pauses for more than 10 seconds can remove the lock of a newer run. | A rare race between two starts. |
| 14 OPEN | OTTO-004 | Two runs of different PRDs in one checkout share git, so one run can commit the work of the other. | It happens only when two PRDs run at the same time in one checkout. |
| 15 OPEN | OTTO-008 | Live checks use a throwaway home folder, and Codex is not logged in there. | The real Codex login check can fail, and OTTO-008 can park during the build. |
| 16 OPEN | OTTO-009 | The overwrite guard checks only the current repository. | A file that another repository tracks has no protection. |
| 17 OPEN | OTTO-011 | The Slack helper writes its proof into a folder that the test harness then deletes. | The Slack check cannot show its proof. |
| 18 OPEN | OTTO-014 | If you delete the routing block between runs, the tier ceiling goes away without the flag. | A plan edit can lift the ceiling. decisions.log still records the edit. |
| 19 OPEN | OTTO-015 | A retry fails when another story removed an earlier line, even when the retry adds a valid line. | False rejections when the guard is on. |
You did not answer these questions in the PRD. If you say go, each recommended default applies.
| Item | Default |
|---|---|
| 20 | Progress files stay out of git, and otto never commits them. If git already tracks one, otto warns. |
| 21 | P1 has no time budget. |
| 22 | A loop that the PRD declares replaces a detected loop of the same type. |
| 23 | A completion tag without its closing tag no longer counts as done. |
| 24 | Budget counts follow the PRD path, across its revisions and across branch switches. |
| 25 | Two PRDs in one folder share a status file. The second run exits 8 while the first is live. |
| 26 | You run OTTO-018 on a Mac after the review gate, before the engine work starts. |
| 27 | An executor value that starts with "human" marks the story as human-owned, as in the navigation PRD. |
Of the other two open questions, one is a test-harness detail. Section 2 covers the other.
| Risk | Mitigation |
|---|---|
| The build runs on the installed otto, which still has most of these faults. It exits 1 when it finishes, and its watcher stops at the first park. | Your hot-fix already stops the apostrophe crash. A .gitignore entry keeps runtime files out of the build branch. The operator reads the PRD for the truth and restarts the watcher after each park. |
| A wrapper script that relaunches on any non-zero code can loop on a park, a spent budget or a lock. | The README and both skills give one rule: relaunch on 6 only. Exit 7 means ask a person. Exit 8 means that another run is live. |
| Stricter result rules turn sloppy executor output into more blocks and parks. | otto puts the rejection reason into the next prompt. A story gets two attempts before it parks. |
| A test changes the installed otto, which other projects use now, or it calls a paid model. | The suite exits 2 if the installed copy changes. Stand-in claude and codex commands exit 97 and log the call. Tests run in throwaway repositories. |
| The round-7 findings stay open. Item 15 can park OTTO-008, and item 17 can hide the Slack proof. | Name items 15 and 17 in your reply, and we fix them before the build. If you do not, the operator fixes the test harness at the park and relaunches. |
ab20ebb. A .gitignore entry keeps runtime files out of the build branch. The operator pins a Claude account with credit and confirms the Codex login.prd-implementation-p1.json.owner field yet.install.sh, run the suite again and tag the release. One known conflict with your hot-fix resolves in favour of the new tag parser.Until step 8, the installed otto, its link and the installed skills stay unchanged. The smoke suite fails if any of them changes.
Cost and time. The build uses subscription accounts. Paid calls go only to the checker, and the brief capped them at $25. The PRD gives no time estimate. The brief estimated one day for 12 stories, and the PRD has 20 stories and about 30 parts.
Reply go, or no with the numbers of the items to change.
Items 1 to 27 are in section 6. An example: "no, 15 and 17: apply them before the build".
Your tasks. This reply. After the build, the review gate with the Slack test (step 7). Later, the Mac check (OTTO-018).
otto check found no blocker in any round. The round-5 panel found two blockers, and revision 6 fixed both.
Prepared 27 September 2026 from otto-p1/prd-p1.md, revision 6.1, commit 316f3d2. Other sources: the PRD's review log, the round-7 check prd-p1-check-r7.txt and the approved brief. The brief is online at ct-retro-6lh7-7g9v-646h.pages.dev/brief. Unlisted page: do not index.