The factory, checked against every run

otto across ten projects

Every otto run on this box and on the Mac since January 2026, mined so the factory is not fitted to one WordPress build. Ten products, roughly 95 PRDs and 3,000 stories, on Rails, Node and Python, Next.js, a WordPress theme, a Cloudflare Worker, an Expo and React Native app with a native watch app, a native SwiftUI app for macOS and iOS, and a WhatsApp bot.

26 September 2026. For Stevan. Six Opus agents over the PRDs, progress logs, transcripts, git histories and otto's own commits; their reports are in docs/nav-audit-2026-09-22/retro-sources/runs-*.md and otto-evolution.md. Companion to the retrospective, the brief and the end state.

In one screen

10products, 7 stacks, one box plus a Mac, January to September
~3,000stories; the nav build was one percent of them
0blocks caused by code in the three biggest clusters; all were credentials, quotas, ops or a waiting human
4otto faults that recur on every stack: quote crash, silent convert, exit 1 on success, wrong status counts
22 h vs 13.6 hidle against working on the most recent run; people, not models, are the long pole
5projects that were green per story and broken end to end

The verdict on the plan. The two gates, the factory metrics and the Go engine survive contact with the history. Five things must change or be added: a preflight of credentials and access before any run, because that is what actually blocks; a "stages of done" contract, because a single pass flag let native apps ship with no native code; a per-project profile that also carries the checker rubric, because one rubric never reached SHIP on three PRDs; the design stage as a human-present step before the PRD with artefacts committed in the repo; and a second run type gated on a metric, because the owner left otto for goal loops whenever the work was about quality rather than features. A remote runner, a Mac, is a first-class concept for the engine, since every Apple build ran there.

The corpus

Dates corrected from git; the inventory's June dates were a bulk copy. Counts are unique stories after removing worktree duplicates.

ProjectType and stackWhenStoriesDesign stageRelease pathOutcome
ragKnowledge-base prototype, Node and PythonJan146 / 146nonenonestubbed later reset entirely
mctRails SEO pages on a live siteJan21 / 21noneCapistranolive otto six days old, owner editing the same tree
Kairos (last30)Native SwiftUI, macOS and iOS, 9 targetsFeb, on the Mac81 / 81tokens in text, no mockupsDMG plannediOS target broken at the end 306 UI and manual items with no evidence
compassRails admin, Postgres, SidekiqFeb to Mar50 / 53noneCapistranolive
murrayNext.js and Turborepo platform for a clientMar72 / 72nonestaging onlynever launched "all loops pass" with zero CI tests; redesigned by hand three times
loreFastAPI, SQLite and Qdrant, vanilla JS, PlaywrightApr to Jul1,140 / 1,121 in 61 PRDs9 PRDs from boards or mocksrsync, then guarded push; no stagingin daily use then 259 fix stories after 234 feature stories
ELAExpo and React Native, native watchOS, Next admin, Node APIMay to Jul, on the Mac~375watch UI from boards, committed in repoEAS to TestFlight to deviceTestFlight only Wear OS stories "complete" with no code; a seam bug found on device
partner-portalAffiliate portal, wireframe and data mapJun57 / 0wireframe then shotgunbuilt by another teamnever run
ct-whatsappDeterministic WhatsApp bot, Node and TypeScript, TwilioJul34 / 36skipped by decisionsandbox only30 of 30 green with a placeholder entry point then 13 fixes
Rolodex, Ask, LendingRails features in compass, codex and Opus mixedAug to Sep42 + 51 + 42Rolodex: boards before PRD; Ask: hand-made shotgun; Lending: a design storyCapistrano from branchlive founder testing added 8 of 42 stories
Navigation 2026WordPress theme, static then WordPress-managed menuSep30 / 30boards, 21 rounds, frozen before PRD./deploy, staging then productionlive evidence-quoting criteria throughout
jev copilotCloudflare Worker, Durable Objects, D1, R2, Vitest, PlaywrightSep, running116, 90 so farafter the PRD; pushed 88 to 116 storiesevery live story to the one production Workerrunning no stalls or rate limits; 22 idle hours

Never attempted: visionOS, native Android or Wear OS, a desktop app, a Slack bot as the product (compass-ask has Slack workers inside a Rails app), a pure script or tool. Those remain assumptions and the profile design below treats them as such.

What generalises

  1. A pass flag is a self-report. rag reported 146 of 146 and was stubbed. A lore review PRD over-claimed five of fourteen fixes; a stub audit found fabricated endpoints sixteen days after a reconciliation had confirmed them. ct-whatsapp passed thirty stories with a placeholder entry point. murray logged "all loops pass" sixty-eight times with no tests in CI. ELA closed Apple Watch and Wear OS stories with helper code and notes. The nav build is the counter-example: criteria that quote command output, live probes for integration-critical stories, and a walker render byte-compared to production. That discipline has to be the default, plus a walking-skeleton story first, a journey walk last, and periodic truth audits.
  2. Done has stages. On the watch app a build-only gate passed while the app could not be installed; a Release build had no debug hooks; a compiled target contained none of the eighteen authored files; a seam between Swift and TypeScript only failed on a device. Build, install, run, device, journey are different facts, and the contract needs them as evidence levels rather than one boolean. ELA's tri-state flags were a patch for this.
  3. Blocks are external and outlive runs. Every lore block was missing keys, SSH or a database connection. Five of nine compass blocks were credentials, quota or config. ELA's five pre-launch stories waited three months on Stripe, Twilio, AWS and Sumsub and never cleared. jev parked on a free-tier cap and on the operator's own gateway edit. A credential and access matrix checked before launch would have prevented all of them, and a blocker ledger that survives the run would have re-queued the rest when keys arrived.
  4. People are the long pole. jev worked 13.6 hours in 36 and waited 22, including a question that sat overnight. A Rolodex park went unwatched for six hours because otto watch exits on a park. A lore run sat at its iteration cap twice. The nav go waited 87 minutes on a terminal notice. Timed defaults, asynchronous cards and a watcher that survives parks matter more than executor speed.
  5. The harness must own its state. Model-written timestamps ran backwards; pass flags were reverted and restored by hand; git stash in a live worktree wiped otto's log three times; a 55 MB log and a stale status file were committed and inherited by later worktrees; otto plan convert writes a fixed filename and overwrote a tracked PRD twice. Status has to derive from an event log kept outside the worktree, and runtime files must be excluded by default.
  6. The same otto faults on every stack. A quote in a block reason crashed runs on compass, jev and the nav build; a < becomes "Blocked: unknown"; convert failed silently on expired auth on three projects; every clean run exits 1; the status count lags one story, counts parked as passed, and stays "executing" after a kill. Stalls have been fixed six times; rate limits never. None of this is WordPress-shaped.
  7. Executors fail differently. codex idles and compacts context and hits usage limits; Claude skips commits, stashes, and buffers output; one session cap killed every Claude agent at once while codex kept going. Mid-run switching under the same criteria worked on Lending. The engine needs per-provider capacity, fallback, and a watchdog that knows both failure shapes.
  8. Design belongs before the PRD, with a human present, in the repo. Late design pushed jev from 88 to 116 stories. A design pack built by reading stylesheets rather than rendered screens drifted; a command-centre shipped "wildly off" its mock with no parity gate; a dialog was redesigned after the build. Where boards preceded the PRD, on Rolodex, the watch UI and the nav, builds went clean. Headless executors never ran the interactive design skills, even when the PRD mandated them, and a user-local approval record would not reach another host. Bots, server work and fixes needed no design stage at all.
  9. One rubric fits nothing. otto check never reached SHIP on three PRDs, mostly by demanding dark-theme screenshots for light-only admin apps or a dark-only watch, and by re-raising splits. The checker needs a rubric per profile and the stop rule that already exists.
  10. Gate on deltas in legacy repos, and never waive platform gates. Repo-wide lint made most compass iterations prove failures were pre-existing and blocked the deploy story twice. A Metro release-bundle failure was waived ten times until TestFlight failed; Kairos ended with its iOS target broken. Baselines belong to the base commit; a red platform gate blocks or spawns a fix story.
  11. Quality work is a different run type. For answer accuracy and extraction quality the owner left otto for goal loops with frozen holdout evals, and compass used a 23 of 23 eval as its release gate. A feature graph cannot express "improve this number"; the factory needs a metric-gated run alongside the story DAG.
  12. Where the executor runs is part of the profile. Every Apple build ran on the Mac, where otto needed a shim for a missing setsid. The engine must treat a remote runner as normal, not as an exception.

What varies: the profile

This is what a per-project profile has to carry, drawn from what each type actually needed. Columns are the things that differed; rows are the types seen or asked for.

TypeRunner and toolchainLoops and environmentVerification lensesDesign stageRelease path and human-only steps
Rails appdevbox; Ruby via mise, Postgres, Redis, Chromeper-lane test DB, migrations serial, lint on the diff with a base-commit baseline, Figaro env per worktreescoped specs, system specs and screenshots, live probes, domain evalyes for admin UI, captured from rendered screensCapistrano from branch; DB backup; server config and data loads are human
Node or Python web productdevbox; venv or lockfile bootstrap that asserts imports resolvescoped and full loops, ports and DB paths per lane, memory cap per lane, known-failing baselinetype, lint, tests, live-stack Playwright in the theme set, mutation checks, prod smokeyes for new screens; not for ETL, eval, securitymerge, full suite, guarded deploy; needs a staging it never had
WordPress themedevbox with local containers; PHP 7.2 to 8.3declared loops (detection finds none), release gate script, per-host baselinesparity to the live bundle, crawl contract, link states, a11y, Lighthouse with measured budgetsyes, frozen before the PRDstaging by sha then production behind a flag; Tools page steps
Cloudflare Workerdevbox; wrangler, account tokens with scopes, Access service tokenstub mode dev server, D1 limits, secrets by stdin, spend capsvitest and workers pool, secrets scan, live probe on the deployed revision, PII checkyes for the live and review viewsneeds a staging or Access-protected preview it never had; then an explicit landing
Expo and React Nativea Mac runner; simulators, EAS, Maestro; otto shimmed for macOSrelease-bundle check, EAS profile and team id, signing and provisioning, device matrixbuild, install, launch, screenshot per device and state; Dynamic Type; negative probes on Releaseyes; boards to tokens to simulator shotsEAS to TestFlight to a founder device review; Apple account steps are human
Native Apple: iOS, macOS, watchOS, visionOSa Mac runner with pinned Xcode and runtimesshared scheme, UDID destination, ad-hoc signing for tests, in-memory stores for Keychainthe same stages, plus Swift and TypeScript tests on shared fixtures; device-gated stories in a live-probe registeryes; the theme set is per platformTestFlight or DMG; App Store policy as gates; visionOS untried
Bot (WhatsApp, Slack)devbox; stable webhook URL, tunnels, sandboxes registrycontract mocks, signed webhook probes, money switches off by default, redaction before commitwalking skeleton first, live probe last, eval harness for LLM bots, copy review instead of visual designnosender registration and platform verification are human; deploy state in the repo with health checks
Script or toolwherever it runsa command, a fixture, an expected outputthe fixturenonone
Quality goalas the productfrozen holdout set, scoring scriptthe metric, with a floor and a targetnopromote when the metric holds on the holdout

Design stage applicability, in one rule. Boards before the PRD whenever a person will judge a screen: new screens, portals, marketing pages, native apps. A design story inside the PRD for small additions to an existing surface. No design stage for bots, server and integration work, fixes and scripts; those get a copy review or an eval instead. The stage needs a human present and its output committed in the repository.

Stages of done, and a second run type

Evidence levels replace the pass flag

A story records the highest level it has proven, and the profile says which level a story of its kind needs before it counts:

  • built: compiles, types and lint pass on the diff.
  • tested: scoped tests quoted, mutation check where the profile asks.
  • installed and running: the artefact launched where it will run, a health endpoint or a launch screenshot.
  • probed live: a real request or a real device did the thing; output quoted.
  • journey: a walk through the feature end to end, screenshots read, not just counted.

The final story of any PRD is a journey walk, and the first is a walking skeleton, so a green board can never again hide a placeholder entry point.

Feature DAG and metric goal

The story graph is right for features. For "make the answers more accurate" or "improve extraction" the owner already runs goal loops with a frozen holdout and a numeric gate. The factory gets both as run types on the same engine and the same profile: the DAG picks the next eligible story; the goal run picks the next experiment, scores it against the holdout, keeps or reverts, and promotes when the floor holds. Same event log, same gates, same cards.

Changes to the plan

Against the brief and the end-state page. Everything here has a run behind it.

P1, still bash, still now

P2, in the engine

Profiles, checker and design, P3 and P4

End state

Unchanged in shape. Two additions: runners are first-class, so an Apple profile names a Mac and the engine ships work there; and the engine keeps a blocker ledger and a credential matrix as first-class state next to the event log.

Housekeeping the mining turned up

Live now. The July WhatsApp bot service on the devbox has been crash-looping since 12 September after a brief changed a shared port; its SQLite write-ahead log is 887 MB and the dev endpoint returns 502. Stopping and disabling it is your call; nothing else depends on it.

How this was produced

An inventory script found every PRD file, progress log and status file under the development directory and matched them to Claude Code transcript directories. Six Opus agents then mined one cluster each: lore with rag, the compass Rails family, jev, the Apple and mobile projects, the miscellany of bots and portals, and otto's own git history. They corrected the inventory in four places: PRDs duplicated across worktrees, bulk-copy dates read as run dates, keyword matches for stalls and rate limits that were product text, and one project tagged Vite that uses Vitest. Where two reports disagreed, git history won. Apple and mobile runs happened on the Mac, so their evidence is repository files rather than transcripts.