Project Management
The Project Management stack (the PM stack) is the system Drew works in while the fleet works underneath it. Its own description, in pm-stack/aggregator/src/program.ts, is exact: this dashboard is the aggregator of the PM stack — the one screen Drew lives in while the fleet works in GitHub, Kaneo, and Pad underneath. The stack joins work that lives in many places — GitHub issues and pull requests, a Kaneo board, Grist roadmap tables, roadmap files in repositories, the fleet work queue, agent sessions, and quota and health data — into one state that can be read on a laptop and answered from a phone.
There is no single source of truth inside the stack, and the stack does not pretend otherwise. Each source keeps its own record. The aggregator reads the sources, the projector links items across them, and disagreements between sources are shown on a dedicated page instead of being hidden. See The aggregator: one state, many sources and The projector and projections.
Why it exists
Work in this estate is spread across four repositories in the core set — developing-today/code, developing-today-forks/opencode, developing-today-forks/openchamber, and dezren39/darwin-nix — and across the services that track it. Without the PM stack, answering three ordinary questions means opening each source in turn: what needs Drew, what is moving, and what is blocked. The stack exists to answer those questions in one place, and to carry the answer back.
- One state to read. The aggregator polls and reads its sources and publishes pages and machine twins of the same data: an overview, a needs-you queue, a board, a roadmap, a program view, a queue view, quota and health views, and the rest of the 29 aggregator routes counted in the survey. The console presents 21 further views built for a phone. The full census is a reference chapter; the mental model is in The shape of the system.
- Questions that wait in one place. When work needs a decision, the question is raised as a decision set, a needs-Drew item, a prompt, or a console ask — eight question sets in total (F1–F8 in the survey). Each set has a defined answer route and a defined write-back. See Question sets and the answer-back flow.
- Answers that reach the work. An answer is not a note beside the work. A decision resolution is recorded and applied to the decisions ledger; a dashboard action is consumed by the orchestration pass, which is the single writer of Project fields; a console action is audit-logged before it is taken and then performed. The flows differ by surface, and this book keeps them separate.
- Push that reaches a phone. Waiting questions and incidents are pushed to subscribed devices, and the phone is an answering surface, not only an alert surface. The relay that would answer at the edge is built but not deployed, and its answer routes are not routed (D5); today answers go to the laptop aggregator. See Push notifications: detection to phone to answer.
Who it serves
- Drew, the owner. The primary reader and the only person the needs-you surfaces are built for. He reads the overview and the console’s Now view, answers questions in the Needs views, ranks issues, and follows items from issue to done.
- The orchestrator. The supervising agent work that keeps the fleet moving. It is the single writer of GitHub Project fields, consumes dashboard actions, and applies decision resolutions to the ledger. The aggregator service itself never writes GitHub labels; the console, as part of the same stack, does write labels through its own audited actions (D4).
- Agents and sessions. OpenCode and Muse sessions whose work is tracked as queue tasks, sessions, and items. Dispatch launches or enqueues their sessions; the claimant keeps claimed work moving; the registry records who ran what.
- Operators of the stack itself. Anyone keeping the laptop services, containers, edge Workers, timers, and guards running. The health page, the heal stack, and the operations chapters serve this reader.
What the stack is made of
The survey counted 36 components under pm-stack/ and its Nix packages. Grouped, they are:
| Group | What it contains |
|---|---|
| Core services | The aggregator (port 4870), the console (port 4872), the projector (port 7801), and pm-dispatch (port 4879) |
| External apps, integrated | Kaneo (execution board, port 5173), Grist (roadmap tables, port 8484), Pad (planning layer, port 7777), ready-for-agent (dispatch UI, port 6056) |
| Edge Workers | The console edge Worker, the decision-events Worker, the voice-line Worker, and the notify relay — the relay is recorded as not deployed in pm-stack/platform/workers.json (D5) |
| Execution | pm-dispatch, the OpenCode claimant, scheduled jobs, and the dispatch UI layer |
| Guards and safety nets | The Kaneo sync guard, the closure watchdog, the invariant sweeper, lane-guard, and the health hooks |
| Quota and usage | The quota gatherers and exporters, provider-usage, quota-check, and the usage surfaces behind the quota page |
| Shared contracts | The shared schema and the orchestration writer that writes orchestration state to the Turso fleet-platform store. See The shared schema |
The component-by-component account is Architecture.
How to read this book
- First hour: Installation and bootstrap, then Quickstart. You will know what runs where, and you will have read the console, answered a waiting question, and followed an item.
- Understanding the system: The shape of the system, then Architecture, then the concept chapter for the part you are working in.
- Answering and prioritising: The roadmap hierarchy: initiatives, projects, epics, aggregators states the real ladder — program, project, epic, task — and why “aggregator” is a service, not a hierarchy level (D10). Prioritisation: how order is decided and recorded covers the four places priority is recorded.
- Looking something up: the reference part lists every aggregator page, every console view, every question set, every worker, and every data store, one entry per item, in the same shape throughout.
- Changing the stack: the development and operations parts cover layout, building, adding a page or projection, running the services, and keeping this book current.
Conventions used in this book
- Code wins. Where a design document and the code disagree, this book states the code behaviour and cites the disagreement by number (D1–D14). Example: the deployed Kaneo board is the upstream image pinned in
pm-stack/compose.yml, not the fork the aggregator’s program text names (D1). - UNVERIFIED means UNVERIFIED. Where the survey could not establish a fact from the repository — a live process, an exact route, a version behind a digest — the chapter says UNVERIFIED in the sentence that needs the fact, and does not fill the gap with a plausible value.
- Counts are counted. Page counts, component counts, and class counts in this book come from the survey’s direct counts: 50 primary pages and routes (29 aggregator, 21 console), 36 components, eight notification preference classes (D14).
- Secrets are named, never valued. This book names files such as
pm-stack/BOOTSTRAP-CREDENTIALS.mdas the place a bootstrap record lives. It prints no secret value. - Placeholders are escaped. A value you supply is written as <name>, for example
/decisions/<setId>.
Sources. Survey files ~/workspace/pm-book/survey/apps.md, ~/workspace/pm-book/survey/website-pages.md, ~/workspace/pm-book/survey/roadmap.md, ~/workspace/pm-book/survey/disagreements.md; book shape from ~/workspace/pm-book/skeleton.md; repo paths pm-stack/README.md, pm-stack/PORTS.md, pm-stack/aggregator/src/program.ts, pm-stack/platform/workers.json.
Installation and bootstrap
The PM stack installs on one laptop host and at the Cloudflare edge. The laptop host is amd. One nixos-rebuild switch on that host deploys the stack, per pm-stack/README.md. This chapter states what that deployment contains, what runs as a container instead, what is deployed by other routes, and which bootstrap steps the survey could not verify. Steps the survey does not establish are marked UNVERIFIED; this book does not invent commands for them.
Start from the system as a whole in The shape of the system, then return here for the parts.
The deployed shape
| Part | How it runs | Port |
|---|---|---|
| Aggregator | Bun app, systemd user unit pm-aggregator | 4870 (freshness IPC on 4871) |
| Console | Bun app, systemd user unit pm-console | 4872 |
| Projector | Bun service, Nix package pkgs/pm-projector | 7801 |
| pm-dispatch | Bun intake service, public as dispatch.security.cab | 4879 |
| Tunnel | systemd user unit pm-tunnel, the amd-6-pm-stack Cloudflare Tunnel | — |
| Kaneo | Container, upstream image (D1), Postgres 16 sidecar | 5173, loopback |
| Grist | Container | 8484, loopback and tailnet |
| Pad | Container, Go binary and SQLite | 7777, loopback and tailnet |
| ready-for-agent | Upstream npm package ready-for-agent@1.1.0, systemd user unit, no container image | 6056, loopback and tailnet via socket proxy |
Ports are registered in pm-stack/PORTS.md, audited 2026-11-05. The aggregator dashboard binds 127.0.0.1:4870 and the tailnet; in public it is reached only behind the console gate at pm.security.cab, where the console proxies non-/console requests to the dashboard for a signed-in owner.
The NixOS deployment
The user units pm-aggregator, pm-projector, pm-dispatch, and pm-tunnel are declared in the NixOS module nixos/services/pm-stack. Deploying is a merge to the repository followed by nixos-rebuild switch on amd; since issue #8171, pm-git-sync never restarts PM services itself — deployment is by merge and rebuild, not by the sync script.
Nix packages in the tree are pkgs/pm-aggregator (the aggregator plus four script binaries: gather-quota, generate-digest, export-turso-stores, quota-weekly-review; it also bundles pm-stack/kaneo-projects.json and pm-stack/grist/seed/roadmap.json), pkgs/pm-dispatch, pkgs/pm-projector, and pkgs/pm-git-sync (a script wrapper, version 0.3.0).
There is no pkgs/pm-console, and the console is the one PM-stack app NixOS does not declare (T4, survey top-up 1): pm-console runs as the hand-installed user unit pm-console.service, copied from pm-stack/systemd/pm-console.service by pm-stack/console/install.sh, executing bun run src/server.ts straight out of the primary checkout on port 4872, and it is kept current by its own per-minute redeploy timer (pm-console-redeploy.timer), not by nixos-rebuild switch. A grep for pm-console over nixos/ and home/ returns nothing. Its edge release is below.
Repo copies of further unit files live in pm-stack/systemd/: pm-host-health with its timer, pm-invariant-sweeper with its timer, pm-kaneo-sync-guard with its timer, pm-quota-watchdog with its timer, pm-console-expose with its timer, pm-console-redeploy with its timer, and pm-console-android-release with its timer. Of these repo copies, only the pm-console* family is installed from this directory by a live script (pm-stack/console/install.sh); the pm-aggregator, pm-dispatch, and pm-tunnel copies in the same directory are the pre-NixOS files the NixOS module header says are kept beside that history in git (T4, survey top-up 1).
The containers
Kaneo, its Postgres, Pad, and Grist are containers, defined in pm-stack/compose.yml and the per-app compose files.
- Kaneo. The compose file pins the upstream image
ghcr.io/usekaneo/kaneo:2.47.0by digest. A fork exists atdeveloping-today-forks/kaneo, and the aggregator’s program text says the board runs that fork; the deployment code wins — the deployed board is upstream v2.47.0 (D1). Kaneo is public ashttps://kaneo.security.cabthrough the tunnel. Its four projects and their repositories are listed inpm-stack/kaneo-projects.json;pm-stack/connect-repo.shreads that file. - Grist.
pm-stack/grist/compose.ymlpinsgristlabs/grist-ossby digest with no tag. The README names v1.7.21; whether the pinned digest is v1.7.21 is UNVERIFIED (D2). Seed and maintenance scripts live inpm-stack/grist/:seed.sh,deploy.sh,reload-doc.sh. - Pad.
pm-stack/pad/compose.ymlpins Pad v0.18.1 by tag and digest. Its content in the repository is seed documents only, underpm-stack/pad/seed/, installed bypad/seed.sh. - ready-for-agent. No container.
pm-stack/ready-for-agent/install.shclones the four repositories;apply-config.shregisters them through the GraphQL API;config.jsonsets each repository’s default model and a merge policy of OFF — a human merges, always.
The edge and the phone
Three parts of the stack do not deploy by the laptop rebuild:
- The console edge Worker (
pm-console-edge) is deployed from GitHub Actions, perpm-stack/platform/workers.json. It serves the same console atpm.security.cabwhen the laptop is unreachable, and holds actions until the host returns. - The decision-events Worker is in service in
workers.jsonand is recorded there as deployed by hand. - The Android app is a trusted web activity wrapper around the console. The
pm-console-android-releaseservice and timer build and release it; the APK is served by the console itself to a signed-in owner.
The notify relay Worker, pm-notify, is recorded in workers.json as not deployed, with a null address (D5). Do not treat the relay as part of a working installation: the dead-man’s switch and the edge answer routes do not exist in production.
The Workers registry itself is pm-stack/platform/workers.json, which lists 20 Workers. The platform README still says eighteen; the JSON is the live list, held to the repository’s wrangler files by workers.test.ts (D6).
Keeping the laptop clone current
pm-git-sync (pm-stack/scripts/pm-git-sync.sh, packaged as pkgs/pm-git-sync) keeps the laptop’s primary clone on a clean, current main. It fails loudly on tracked dirt, quarantines untracked files and never deletes them, tags aside empty rebuild-marker commits, and otherwise fetches and pulls with fast-forward only. A dirty primary clone is therefore a stop condition for deployment, not a state to deploy over.
Bootstrap
The reconciled first-run order below is assembled from four places in pm-stack/README.md plus pm-stack/BOOTSTRAP-CREDENTIALS.md (survey top-up 1, T1). The docs give no single numbered bootstrap list; the order is a reconciliation, and its seams are inferred only from the README’s own dependency statements. Two points stay UNVERIFIED and are marked where they stand: the container first-start order inside nixos-rebuild switch (no document enumerates it; only NixOS unit After/Wants dependencies are verified), and which tunnel install path a fresh host should use today (the README hand-installs pm-tunnel.service even though the NixOS module also declares pm-tunnel; the docs do not say which path wins).
- Cold-restore stub warning.
pm-stack/COLD-RESTORE-RUNBOOK.mdis not the runbook; it is a stub pointing at the operative runbook,doc/pm-stack/COLD-RESTORE-RUNBOOK.md, since the 2026-11-22 rehearsal slice. - Roots of trust first, on a new computer only (cold restore). In order: Drew signs into Bitwarden and mints a BWS machine-account token (the token is not stored in BWS, by design); with it, fetch by name the restic passwords and the R2 and Supabase secrets for the backup and restore legs; Drew signs into Google interactively so rclone’s
driveremote gets a fresh OAuth token (this cannot be automated and is stored in no backup); fetch the 1Password service-account tokens from BWS by name. The SOPS age key is explicitly unresolved, tracked in its own gap issue, #10295 — referenced here, not solved. - Check out the repo and enter the stack directory. On laptop host
amdonly: check out the repo (or copypm-stack/plus../secrets) andcd pm-stack. - Apply the NixOS-managed runtime.
nixos-rebuild switch. The README’s gloss: “This owns Pad, Grist, ready-for-agent, Kaneo, and PostgreSQL.” The live manager is NixOS:nixos/services/pm-appsowns thepm-gristandpm-padOCI containers and the ready-for-agent systemd user unit;nixos/services/pm-stackowns thepm-kaneouser service (the Compose-backed Kaneo/PostgreSQL stack) plus the other PM user services and timers. The console is not in this step — it is hand-installed (see the NixOS deployment section above). - Install and start the tunnel connector. The README’s bring-up step hand-installs the unit:
install -Dm644 systemd/pm-tunnel.service ~/.config/systemd/user/pm-tunnel.service,systemctl --user daemon-reload,systemctl --user enable --now pm-tunnel.service. The tunnel is the Cloudflare Tunnel namedamd-6-pm-stack, remotely managed, mappingkaneo.security.cabtohttp://localhost:5173. UNVERIFIED: whether this hand-install or the NixOS module’s ownpm-tunneldeclaration is the path a fresh host uses today — both facts stand in the docs; neither is chosen there. - Verify.
curl --fail http://127.0.0.1:5173/api/healthandcurl --fail https://kaneo.security.cab/api/health. - What
deploy.shdoes when the Kaneo stack is (re)deployed. It decrypts../secrets/pm-stack.sops.yaml(SOPS/age) and renders mode-600 files besidecompose.yml:.envand the tunnel token files. Its path is: render,docker compose pull,docker compose up -d --force-recreate, pollhttp://127.0.0.1:5173/api/healthup to 30 times at 5-second intervals, then runkaneo-sync-guard.py— a failed guard marks the deploy failed. - Create the first Kaneo account, then close registration again. Registration renders closed by default, and a re-render must never silently reopen it: (1)
KANEO_OPEN_REGISTRATION=1 ./deploy.sh— one render with registration open; (2) create the admin account (thekaneo_admin_*credentials in SOPS) via the sign-up page orPOST /api/auth/sign-up/email; (3)./deploy.shagain, which rendersDISABLE_REGISTRATION=trueand recreates the container. Then create a workspace and the first project from the UI or the API. - Register the GitHub App — after the tunnel exists. The tunnel has to exist first, because the app’s webhook URL is
https://kaneo.security.cab/api/github-integration/webhook. Registration is a one-time browser step (GitHub offers no API for it): POSTpm-stack/github-app-manifest.jsonas themanifestfield to the org’s app-creation URL; exchange the returned code within the hour viaPOST https://api.github.com/app-manifests/{code}/conversions; put the four returned values intosecrets/pm-stack.sops.yaml, re-encrypt, file copies in Bitwarden and 1Password, and re-run./deploy.sh; install the app on the repositories to sync (Phase 1:developing-today/codeonly); then connect the repository in Kaneo’s project settings and import issues. After installation,./connect-repo.sh connect <slug>performs verify, connect, and import, and./connect-repo.sh statusreports every project without changing anything. - Phase 2 first-time bootstraps, each inside its already-running container or service. Pad:
pad initruns inside the NixOS-managedpm-padcontainer (for exampledocker exec pm-pad pad init); create the admin from thepad_admin_*SOPS credentials and the workspace Developing Today, mint a REST token namedpm-stack-automation, file it aspad_api_token, and runcd pad && ./seed.sh. Grist: the boot-key flow —POST /boot/loginwith the boot key and admin email; the admin is thegrist_admin_*account;POST /api/profile/apiKeyas the admin returns the key filed asgrist_api_key; thencd grist && ./seed.sh. ready-for-agent:cd ready-for-agent && ./install.sh, then./install.sh clone(the one-time clone of the repos it serves); every install run finishes by applyingready-for-agent/config.jsonthrough the GraphQL API viaapply-config.sh. - Cold restore has its own start order (a restore, not a first install), in
doc/pm-stack/COLD-RESTORE-RUNBOOK.md: declare and fence the old writer; provision the restore host after the roots-of-trust order in step 1; restore Kaneo, then Grist, then Pad, each with its integrity checks; start and smoke; measure RTO/RPO; record the drill report.
Two bootstrap facts are established and worth stating before any install:
- The Kaneo GitHub integration’s status-transition settings live only in Kaneo’s Postgres, in
integration.config.statusTransitionsper project. Nothing in the repository sets them. After a fresh Kaneo install or a Postgres restore, those settings must be checked directly, andpm-stack/kaneo-sync-guard.pyis the guard that asserts them: no transition targetsdone, merge goes to in-review, open goes to in-review, push goes to in-progress. The guard runs at deploy time and hourly on its timer, and exits 1 loudly on drift it cannot heal. - The aggregator’s Grist read needs the Grist base URL, document id, and API key from its configuration (
pm-stack/aggregator/src/config.ts). Secret values are not in this book; they are resolved by name through the fleet secrets route at run time.
After installation
Prove the seat in the order Quickstart uses: open the console, read the Now view, open the aggregator health page at /health — its machine twin is /api/health, with no .json suffix — and check that the manifest pages report render state. Runtime liveness of any individual service at the moment you read this is UNVERIFIED from the repository; the health page is the live source, not this book.
Sources. Survey files ~/workspace/pm-book/survey/apps.md (§1–§6, §13, §26, §36, Nix packages summary), ~/workspace/pm-book/survey/website-pages.md (introduction, §C), ~/workspace/pm-book/survey/disagreements.md (D1, D2, D5, D6); repo paths pm-stack/README.md, pm-stack/PORTS.md, pm-stack/compose.yml, pm-stack/grist/compose.yml, pm-stack/pad/compose.yml, pm-stack/platform/workers.json, nixos/services/pm-stack, pkgs/pm-aggregator/package.nix, pkgs/pm-git-sync/package.nix.
Quickstart
This quickstart does the three things the PM stack is used for every day: read the console, answer a waiting question, and follow an item. It assumes the stack is installed and reachable — see Installation and bootstrap — and it uses only surfaces the survey counted: the console’s hash views under /console/ and the aggregator’s pages behind the same gate at pm.security.cab.
1. Read the console
Open the console and land on #now, the Now view. Now shows the current board: work in progress and next-up work, from the console’s work module — queue counts, claimed work, queued work, and blocked work grouped by reason. Read it top to bottom; it is the phone-sized answer to “what is happening”.
Then read the other two daily views:
#next— Next: the next-up work and an operations preview.#more— More: the index of the remaining console views, plus links to every aggregator dashboard page grouped by the dashboard’s own page groups (Overview, Work, Ops, System).
The console has 21 hash views in total. The daily three are Now, Next, and Needs. The rest — queue, pull requests, ranked issues, agents, services, notifications, phones, roadmap, intake, and the platform and machine views — are reference material, listed view by view in the reference part of this book.
On the aggregator side, the front door is /, the Overview page: needs-you, projects, quotas, and health at a glance. Its machine twin is /api/overview.json. Every aggregator page has a twin of the same data unless the chapter for that page says otherwise; the decisions index is one of the exceptions in the manifest, although the server does implement a decisions write API (D7).
2. Answer a waiting question
Open #needs in the console. Needs is segmented, and the console picks the default segment by counts — questions first, then hands, then reviews:
| Segment | What waits there |
|---|---|
Questions (#needs/questions) | Decision sets: batched questions with options, raised for Drew |
Hands (#needs/hands) | Items carrying a hands:v1 marker: a physical action, an interactive login, a payment, or a signature — the four kinds the marker defines |
Reviews (#needs/reviews) | Open issues and pull requests labelled user/review, with no hands marker |
| Other | Escalated items labelled user/escalated with no stated action — in the census wording, the fleet’s to decide |
Answer a question in the Questions segment:
- Open the set. In list view the context is clipped to 280 characters; the single-question read gives the full context.
- Pick an option, or write free text. A question has 1–16 questions per set item and 0–12 options; a question with 0 options is a legitimate free-text-only question. A question’s mode is single or multi; version 1 defaults to single.
- Submit. Or defer — the console’s defer action is labelled “Decide for me”, with a lean that defaults to approve. Or request information instead of answering.
- To clear a set whose recommendations you accept, use the set’s accept-recommended action. It accepts the recommended option for each open question in the set, batched at 200 in the console; the dashboard cap noted in code is 256 submissions per request.
The same set exists on the aggregator at /decisions, and each set has its own page at /decisions/<setId>, reached with a token in the URL as ?t=<token>. The token in the answer-page URL is the authority for that page. First resolution wins per question, and a draft is deleted when its question resolves.
What happens to the answer: the resolution is recorded in the aggregator’s decisions store and exported for the decisions ledger; the dropped-thread catcher applies it to the ledger per question. The dashboard does not write the consequence itself. If the answer implies a Project status change, that change becomes a dashboard action and is performed by the orchestration pass, the Project’s single writer. The full model is in Question sets and the answer-back flow.
Two neighbouring answer routes belong in a first pass:
- Hands items. Do the physical action, then use “I did it”. The console posts a GitHub comment recording that the owner did it and deletes the
user/escalatedlabel. The aggregator census that listed the item never writes labels itself (D4). - Reviews and other items. Reply from the console. The reply is posted as a GitHub issue comment carrying the
<!-- owner-reply:v1 -->marker.
Every console action passes through one endpoint, POST /console/api/act, and is audit-logged before it is taken. An action that cannot be recorded is not taken. When the laptop is unreachable, the edge Worker holds the action and replays it through the same action table when the host returns.
3. Follow an item
Pick an item from Now, the board at /board, or the queue at /queue, and open its detail page at /item/<subject>. A subject names the source and the item: gh: for GitHub, kaneo:<slug>/<taskId> for a Kaneo card, grist:<docId>/Roadmap/<recId> for a roadmap row, plus session: and orch: subjects for sessions and orchestration items. An unresolved item id is a 404.
From the detail page:
/discuss/<subject>is the discussion surface for the same item. Dashboard comments are posted throughPOST /api/comments. The dashboard itself never writes GitHub; a fleet job applies the comment and reports the result back.- The projector’s links for the subject connect the item to its counterparts in the other sources — the same work as a GitHub issue, a Kaneo card, and a roadmap row. See The projector and projections.
/programand/program/<id>place the item in its project: status, roadmap, tracked work, and the epic rollup it belongs to. An epic is a Project item with Kind equal to Epic, and its children are resolved through native GitHub sub-issue parents — not inferred from labels. The ladder is stated in The roadmap hierarchy: initiatives, projects, epics, aggregators.
To watch work move rather than one item, use /today for the day’s objectives and per-project momentum, /queue for in-progress, blocked, recently completed, and next-up work across projects, and /events for the cross-stack chronological stream.
Ask for something new
#ask in the console is the owner’s own-words composer: type or dictate an instruction, and the console files an issue and enqueues a top-band packet — priority 10, the owner-prompt band — for triage. The thread list under the composer shows everything asked, with replies, and carries Reply and Mark done. Intake for a note, bug, or change goes through #more/intake, which files the issue with the route’s labels and rank and enqueues the packet in the same action.
Sources. Survey files ~/workspace/pm-book/survey/website-pages.md (§A–§F, question sets F1, F3, F5, F7), ~/workspace/pm-book/survey/roadmap.md (§1, §4), ~/workspace/pm-book/survey/disagreements.md (D4, D7); repo paths pm-stack/console/public/app.js, pm-stack/console/src/work.ts, pm-stack/console/src/actions.ts, pm-stack/console/src/server.ts, pm-stack/aggregator/src/pages.ts, pm-stack/aggregator/src/decisions.ts, pm-stack/aggregator/src/server.ts.
The shape of the system
The PM stack has six parts. One reads, one links, one launches, one set does the work, one is read on a screen, and one is carried in a pocket. This chapter is the whole system on one page; each part has its own chapter later in the book.
The six parts
| Part | What it is | Where it runs |
|---|---|---|
| Aggregator | The dashboard service. It reads every source, publishes one state as pages and machine twins, raises questions, and records answers and actions | Laptop host amd, port 4870 |
| Projector | The link registry and projection service. It records which items in different sources are the same work, and serves links and latest comments per subject | Laptop, port 7801 |
| Dispatch | pm-dispatch, the intake service. An authenticated request launches a session now or enqueues it as a queue task with a tracking issue | Laptop, port 4879, public as dispatch.security.cab |
| Workers | The things that do and watch the work: OpenCode sessions claimed by the claimant, the fleet queue’s lanes, Cloudflare Workers at the edge, and the guard and exporter jobs on timers | Laptop, GitHub Actions, and Cloudflare |
| Website | Two first-party web apps: the aggregator dashboard (29 routes) and the PM console (21 hash views) | Laptop, with the console also served at the edge |
| Phone | The console as an Android app, plus Web Push to subscribed devices. The phone reads the same state and answers through the same action table | Drew’s phone |
How a piece of work moves through the shape
- Work exists first in a source: a GitHub issue, a Kaneo card, a Grist roadmap row, a roadmap file in a repository, or a queue task. The stack creates none of these records by reading them.
- The projector links the records that are the same work. A webhook from GitHub (
POST /github/webhook, HMAC-checked, deduplicated by delivery GUID) and reconcile polls keep the links current. The projector never writes back to GitHub, Kaneo, Pad, or Grist, and never becomes a fifth source of truth. - The aggregator reads the sources and the projector, and publishes the joined state: board, roadmap, program, queue, needs-you, quota, and health. Where two sources disagree, both values are kept and the disagreement is listed on
/conflicts. - Work is launched through dispatch or claimed from the queue. Dispatch creates the tracking issue, enqueues a
repo-task/v1queue task, creates an OpenCode session on the laptop server, and claims the task fordispatch-opencodewith a 6-hour lease, in that order, after a placement guard checks the named model pool is not walled. - When work needs Drew, a question is raised on one of the eight question surfaces and a push is sent. Drew answers on the website or the phone. The answer is recorded, applied to the ledger or performed as an audited action, and the item’s next published state carries the result.
The rules the shape enforces
- Reading is not writing. The aggregator reads Kaneo read-only, reads Grist and the roadmap files, and reads the Project pool through the fleet feed. It does not edit Project fields and does not write GitHub labels (D4). The one exception inside the website is deliberate: dashboard comments and roadmap annotations are stored in the aggregator’s own stores, and anything that must change a source becomes an action for the writer that owns that source.
- One writer per record. The orchestrator is the single writer of GitHub Project fields. The orchestration writer writes orchestration state to the shared store in one transaction per pass. See The shared schema.
- Pad is planning only. The aggregator reads no Pad planning data; no source adapter consumes Pad content. It does probe Pad for health and topology, and Pad is a valid stack-token target (D3). Pad sits in the shape as a planning surface for people, not as a data source for the aggregator.
- The console is hand-installed, not NixOS-declared.
pm-consoleis the one PM-stack app the NixOS module does not declare: it runs as the hand-installed user unitpm-console.serviceon port 4872, installed bypm-stack/console/install.shand kept current by its own per-minute redeploy timer. See Installation and bootstrap. - The edge holds, the laptop decides. When the laptop is unreachable, the console edge Worker serves the console and holds actions and answers. Held work replays through the same action table when the host returns. The notify relay that would extend this to push answering at the edge is not deployed, and its answer routes are not routed (D5).
- The aggregator makes no model calls. The aggregator, console, dispatch, and projector make no LLM calls and no embedding calls of their own. Models enter the shape as things the stack routes work to and measures — dispatch pins model hints to quota pools, the quota pages measure pools — and in two adjacent components: the voice-line Worker’s speech inference and the Atlas embedding dependency, which belongs to Atlas, not to this stack.
Where each part is covered
Architecture groups all 36 surveyed components under this shape. The aggregator: one state, many sources covers the reader. The projector and projections covers the linker. Installation and bootstrap covers where each part runs and how it gets there.
Sources. Survey files ~/workspace/pm-book/survey/apps.md (§1–§14, deployment frame), ~/workspace/pm-book/survey/website-pages.md (introduction, §E–§F), ~/workspace/pm-book/survey/disagreements.md (D3, D4, D5); repo paths pm-stack/README.md, pm-stack/PORTS.md, pm-stack/projector/README.md, pm-stack/dispatch/README.md, pm-stack/aggregator/src/program.ts.
Architecture
The PM stack is 36 components in the survey’s count: every subdirectory of pm-stack/ named in the programme brief, plus the subdirectories and loose scripts present in the tree that the brief did not name (cloudflare-export/, meta-exporter/, private-laptop-bridge/, docs/, scripts/, tests/). This chapter groups the 36 into the six parts of The shape of the system and states, for each component, what it does and what it connects to. Detail lives in the concept chapter for each part; this chapter is the map.
Runtime liveness is not part of this map. The survey’s ground truth is the repository at commit 4d937b3 (2026-11-23); a component’s last-commit date is evidence of repository activity, not of a running service, and any claim about a live process is UNVERIFIED unless a repository file states it as a dated record.
Core services
Four Bun services on the laptop host amd carry the stack. One nixos-rebuild switch deploys them; their user units are declared in nixos/services/pm-stack.
| Component | Port | Job |
|---|---|---|
Aggregator (pm-stack/aggregator/, pkgs/pm-aggregator) | 4870 | The dashboard: about 180 modules covering pages, health, quota, decisions, prompts, alerts, and sources; plus scripts for quota gathering, the digest, the fleet-feed collector, charge candidates, and decision-set production |
Console (pm-stack/console/) | 4872 | The phone and owner app: a Bun server, a single-page app, an edge Worker, and an Android wrapper. Its modules split by concern — ops.ts for fleet verbs, work.ts for questions and asks, plan.ts for roadmap and intake, actions.ts for the audited action table, push.ts and notify.ts, devices.ts, auth.ts, sync.ts, docs.ts |
Projector (pm-stack/projector/, pkgs/pm-projector) | 7801 | Links and projections. See The projector and projections |
pm-dispatch (pm-stack/dispatch/, pkgs/pm-dispatch) | 4879 | Authenticated launch-or-enqueue intake for OpenCode sessions, with a placement guard that fails before commit on a walled quota pool |
Around them: pm-git-sync keeps the laptop’s primary clone on a clean current main and never restarts services; the tunnel unit publishes Kaneo and dispatch; and the unit files in pm-stack/systemd/ carry the timers for host health, the invariant sweeper, the Kaneo sync guard, the quota watchdog, and the console expose, redeploy, and Android-release jobs. Which of those repo copies are installed as-is and which are rendered by Nix is UNVERIFIED.
External apps, integrated
Four applications the stack did not write provide its boards, tables, planning surface, and one dispatch UI. The aggregator links to all four and reads three of them.
- Kaneo — the execution board. Container on port 5173, Postgres 16 sidecar, public as
https://kaneo.security.cab. The deployed image is upstream v2.47.0 pinned by digest inpm-stack/compose.yml; the fork atdeveloping-today-forks/kaneois not what compose runs (D1). Four projects, one repository each, listed inpm-stack/kaneo-projects.json. The aggregator reads Kaneo read-only; Kaneo’s own GitHub integration moves cards on push, pull request, merge, and issue close by status-transition automation held in Kaneo’s Postgres. See The Kaneo sync and the other PM apps. - Grist — the roadmap tables. Container on port 8484. The aggregator reads its
Roadmaptable as one roadmap source; on a title collision a repository roadmap file wins and the Grist row’s links are unioned in (D12). The compose file pins Grist by digest with no tag; the README’s v1.7.21 for that digest is UNVERIFIED (D2). - Pad — the planning layer. Container on port 7777, Pad v0.18.1. The aggregator reads no Pad planning data (D3); its repository content is seed plans. Pad is in the architecture as a human planning surface the stack links to and health-checks.
- ready-for-agent — a dispatch UI layer. Upstream npm package on port 6056, configured for the same four repositories as Kaneo, with merge policy OFF. The aggregator has a source adapter for it. How much dispatch traffic flows through it rather than through pm-dispatch is UNVERIFIED.
Edge Workers and the platform registry
pm-stack/platform/ is not a service. It is the registry: workers.json lists 20 Workers, and workers.test.ts holds that list to the repository’s wrangler files. The platform README’s count of eighteen is stale (D6). The console’s Platform screen is drawn from this file. Four of the 20 belong to this stack’s own operation:
| Worker | State in workers.json | Job |
|---|---|---|
pm-console-edge | Deployed from Actions | Serves the console when the laptop is away; holds actions and answers for replay |
decision-events | In service, deployed by hand | Decision-set activity events to Turso, to its own D1, and to a per-set Durable Object that fans out live to WebSocket subscribers |
voice-line | In service | Push-to-talk over a WebSocket in a Durable Object; Workers AI speech-to-text and text-to-speech; answers are template-built from intent and a Turso queue snapshot, with no LLM |
pm-notify (notify relay) | Not deployed, address null | The dead-man’s switch design: heartbeat in, one silence push out. Step 1 only in code; the event-mirror and edge answer-intake routes are not routed (D5) |
The other 16 Workers in the registry belong to the wider estate and are covered by their own books; the registry is the shared list, not a claim that this stack operates them.
Execution
Work is done by sessions, and three components govern how sessions start and stay honest:
- pm-dispatch (above) is the synchronous door: tracking issue, queue task, OpenCode session on the laptop server at
127.0.0.1:13420, immediate claim fordispatch-opencodewith a 6-hour lease. - The OpenCode claimant (
pm-stack/opencode-claimant/) is the standing lane. Each fire runs six steps: supervise and recover stuck bound sessions; gate candidates throughpoll.pyacross four queues; apply the concurrency cap — 36 claimant roots since 2026-11-05; launch, bind, and prompt; and log the fire.launch_one.pyis the per-task immediate-launch path. See The claimant: keeping sessions honest. - Scheduled jobs (
pm-stack/opencode-scheduled-jobs/) run OpenCode sessions on systemd timers. One pilot job ships:quota-freshness-summary, whose installer enables its timer only with--enableand whose README states the pilot is currently enabled. Its outputs are a latest log and a history file. See Scheduled jobs and the history they keep.
Supporting execution components: provider-usage snapshots provider and fleet state for failover model choice; opencode-usage-export exports usage from the OpenCode session store; scheduled-history reconciles OpenChamber scheduled-task runs against that same store and freezes terminal rows.
Guards, watchdogs, and safety nets
Automation that moves cards and closes issues is fenced by components whose only job is to check it:
- Kaneo sync guard (
pm-stack/kaneo-sync-guard.py) asserts every GitHub integration’s status transitions, heals drift, and exits 1 loudly. It runs at deploy and hourly. - Closure watchdog (
pm-stack/closure-watchdog.py) polls issue-close events in the Kaneo-covered repositories and reopens an automation close when the issue still has open sub-issues or the closing pull request carried no closing keyword. It runs every 15 minutes by a Muse sandbox cron job — its scheduler lives outside the laptop stack. - Invariant sweeper (
pm-stack/invariant-sweeper.py) sweeps the four Kaneo-synced repositories on a slow cadence for three invariants: a closed issue with non-completed sub-issues, an open issue carrying a done status, and a Kaneo–GitHub state mismatch. Default mode reports only;--actrepairs the first two under guard and still only reports the third. - Lane-guard (
pm-stack/lane-guard/) makes deterministic ownership and park-note checks for queue lanes, built after a blanket assignment caused more than 50 duplicate park notes in two days. - Health hooks (
pm-stack/health-hooks/) are failure-triggered, read-only troubleshoot-and-report hooks. The aggregator’s stack sentinel fires a hook once on a transition to three consecutive failures and once on recovery. Incidents append to a JSONL file and post, best-effort, to the alert throat. No remediation ships in a hook. - Host health collector (
pm-stack/host-health-collector.py) runs as a user service on a 5-minute timer and writes the JSON snapshot the aggregator derives watchdog tier items from. - Fleet monitor (
pm-stack/fleet-monitor/) is two report-only Python monitors, including the weekly adapter for the aggregator’s epic closure gate: a blocked epic is a finding, not a failure.
Quota, usage, and exporters
The quota page is fed by a family of gatherers and exporters: the aggregator’s own quota modules and gather script; cloudflare-export and meta-exporter, each a laptop exporter with service and timer (the Meta exporter’s README records a flow limitation — an absent tab yields a null PAYG balance); pm-stack/exporters/, the browser-dependent watchdog core for sources reachable only through a logged-in website, where the only adapter present is a synthetic fixture and live per-provider production use is UNVERIFIED; and quota-check, a single helper that reads the fleet-platform and fleet-mirror Turso stores over the libsql HTTP protocol with per-database tokens fetched by name — explicitly not the Turso CLI’s organisation token.
Ledgers, sync, and shared contracts
- External comms (
pm-stack/external-comms/) is the ledger and pusher for sends outside the estate’s own repositories: a record CLI, SQL migrations, and a systemd pusher that delivers rate-limited GitHub writes from the outbox. - Shared schema (
pm-stack/shared-schema/) is the shared-store contract layer: the orchestration writer, migrations, and guards for the Turso stores more than one component writes. See The shared schema. - Decision events flow from the aggregator’s sync script to Turso, to the decision-events Worker’s D1, and to its Durable Objects.
- Private laptop bridge (
pm-stack/private-laptop-bridge/) is Cloudflare-side bridge smoke tooling — bootstrap and upload smoke tests. What production surface it serves beyond smoke tests is UNVERIFIED. - Docs and operator scripts.
pm-stack/docs/was not enumerated in detail by the survey — its content beyond a last commit of 2026-11-18 is UNVERIFIED — and the design corpus lives at the repository root’sdoc/and as loose documents at thepm-stack/root, including the README that defines deployment, the port registry, the store-migration plan, the shared-schema map, and the design register, tracking manifest, and lineage manifest of 2026-11-11 and 2026-11-12.
Sources. Survey file ~/workspace/pm-book/survey/apps.md (§1–§36 complete, Nix packages summary); ~/workspace/pm-book/survey/disagreements.md (D1, D2, D5, D6); ~/workspace/pm-book/survey/website-pages.md (§C, §D); repo paths pm-stack/, pm-stack/platform/workers.json, pm-stack/PORTS.md, pkgs/pm-aggregator/, pkgs/pm-dispatch/, pkgs/pm-projector/, pkgs/pm-git-sync/.
The aggregator: one state, many sources
The aggregator is a Bun application on the laptop host amd, served as the systemd user unit pm-aggregator on port 4870. Port 4871 is its second, loopback-only listener — a separate Bun.serve on 127.0.0.1:4871 inside the aggregator process, commented in code: cross-process publishers get a separate loopback-only listener; it is never added to PM_AGG_HOSTS and never exposed through the Cloudflare tunnel (survey top-up 1, T5). Its only route is POST /publish, the only write seam for cross-process freshness publishers, which accepts a bounded (16 KiB) JSON freshness notice into the aggregator’s FreshnessStore and replies 202 — no source payload is accepted or returned. The known publisher is the projector. Browser-facing freshness delivery is a different seam on the main 4870 listener (GET /freshness/stream SSE and GET /api/freshness-events.json). It is the most active component in the stack — its last commit in the survey is 2026-11-23 — and it is the stack’s reader, publisher, question-raiser, and answer-recorder. Its own one-line account of itself stands: the one screen Drew lives in while the fleet works in GitHub, Kaneo, and Pad underneath (pm-stack/aggregator/src/program.ts).
This chapter states where its one state comes from, how it is published, and where the aggregator’s authority stops. The page-by-page census is reference material; the question machinery is in Question sets and the answer-back flow.
The sources
The aggregator’s sources are adapters in pm-stack/aggregator/src/sources/. Each source is read; none is written by the read.
| Source | How it is read | What it contributes |
|---|---|---|
| Kaneo | Sign-in at /api/auth/sign-in/email, then workspace, project, and paginated task reads in live.ts | Board items with subject kaneo:<slug>/<taskId> and deep links built by kaneoTaskUrl(); poll diffs feed activity and freshness, with gap and recovery tracking |
| GitHub Project #4 | Read verbatim through the fleet feed in projects.ts | Project pool items carrying Status, Area, Horizon, and Kind (Task or Epic) as single-select fields |
| Grist | GET <grist>/api/docs/<docId>/tables/Roadmap/records with a bearer API key, in live.ts | Roadmap rows with subject grist:<docId>/Roadmap/<recId> |
| Repository roadmap files | planning/roadmaps/*.md in developing-today/code and ROADMAP.md in dezren39/darwin-nix, in repo-roadmap.ts | Roadmap rows that win over Grist on a title collision; the Grist duplicate is noted in provenance and its links unioned in (#1738) |
| Projector | aggregator/src/sources/projector.ts | Links and latest comments per subject. See The projector and projections |
| ready-for-agent | aggregator/src/sources/ready-for-agent.ts, configured by PM_AGG_RFA_URL | Dispatch UI state for the four configured repositories |
| The fleet feed and queue | Feed collector scripts and queue reads | Session identity, orchestration state, queue position |
| Quota and billing sources | About 25 quota modules and the gather and billing scripts | Pool quotas, PAYG dollars, SaaS usage against limits, charge candidates |
Two sources the reader expects are absent, deliberately:
- Pad contributes no data. There is no source adapter for Pad content. The aggregator carries a Pad base URL in configuration (default
http://127.0.0.1:7777), a Pad service link, a health and topology probe, and acceptspadas a stack-token target alongsidekaneoandgrist. The README sentence “the aggregator reads no Pad data” is broader than the code: the reconciled statement is that the aggregator reads no Pad planning data and does probe Pad for health (D3). - The aggregator makes no model calls. No LLM calls and no embedding calls exist in its source. Its
/searchpage is a title and reference search over its own projections — board, roadmap, registry sessions, DNS, services, and tier items by title or linked issue or pull request reference — not a vector search.
From sources to one state
Reads become typed items in pm-stack/aggregator/src/model.ts. Subjects join the sources: gh: for GitHub, kaneo:, grist:, session:, and orch: for orchestration items. Around the items the aggregator builds the structures the pages render:
- The board, curated cross-repository work in progress. Kaneo columns map to canonical statuses in
status-taxonomy.ts(to-do, in-progress, in-flight, in-review, done), and board policy inboard-policy.tsfilters retired cards. When the Kaneo poll succeeds, the board’s provenance string records that the data is live from Kaneo, with done items aged out after 7 days. - The roadmap, merged from Grist, repository files, and Project pool and program data, with view filtering shared between the page and its twin. Two horizon vocabularies meet here and are not unified: repository and Grist rows use the buckets Now, Next, Later, Ideas, Ongoing, while aggregator tier items use
today,tomorrow,next-3-days,longer,incoming(D11). The console’s roadmap is a second, independent implementation, not a view of this one (D12). - Epics and programs. A pool item with Kind equal to Epic gains an
epicRefresolved through the native sub-issue parent of its children. Rollups group children byepicRefand count done against total; progress is weight, not counts — effort sizes xs, s, m, l carry weights 1, 4, 12, 40, unsized items contribute no weight and are counted visibly as unsized. An epic closure gate refuses closure while its subtree has open children or unmet conditions. - Conflicts. Where sources disagree — a Project Status against derived state is the standing example — the aggregator surfaces both values with the disagreement’s age on
/conflicts, a read-only queue of every live source disagreement. It does not pick a winner silently. - Freshness. Polls and feeds carry ages. The health assembly reports feed section ages and per-page render state; the same assembly feeds the
/healthpage and its twin/api/health.
Publication: pages and twins
The page manifest in pm-stack/aggregator/src/pages.ts registers 23 pages in four nav groups — Overview, Work, Ops, System — with a primary-or-dropdown curation per page. Six sub-route and detail pages bring the aggregator total to 29 routes: item detail, discuss, one project page, one quota service page, alert preferences, and the decision-set page. Most pages declare a machine twin (/api/overview.json, /api/board.json, /api/roadmap.json, and so on) serving the same data; Datastar fragments under /frag/ serve partial renders, and /freshness/stream is a server-sent-events stream.
Two manifest gaps are part of the reconciled behaviour, not errors to smooth over:
- The decisions page declares no API twin in the manifest, one of only three pages without one — yet the server implements the full decisions write API (
/api/decisions/<setId>/submit,/defer,/request-info,/events, and/api/decision-sets). A reader of the manifest alone would miss the entire write surface (D7). - The decision-set page
/decisions/<setId>is missing from the manifest’s sub-route parent map, somanifestRouteForreturns null for it and its renders sit outside the render registry that/api/healthreports (D8). The page exists; the health accounting does not cover it.
In public, the dashboard is reached only behind the console gate at pm.security.cab: the console proxies non-/console requests to the dashboard for a signed-in owner.
Questions, actions, and the limits of its authority
The aggregator raises the stack’s batched questions. Decision sets mirror groups of items from the Muse-side decisions ledger; a set’s items carry 1–16 questions each, and resolutions — answered, deferred, request-info — are recorded in the aggregator’s decisions store, exported for the ledger, and synced out to the decision-events Worker. Single needs-Drew questions ride notification candidates and are answered at POST /api/needs-drew/<ledgerId>/answer, where the per-question token in the URL is the authority. Which file a single-question answer ultimately writes is UNVERIFIED: the code names the question store in needs-drew.ts and routes the answer into the same resolution machinery, without unambiguously documenting the store (D9).
Structured answers on tier items go through dashboard actions (POST /api/actions, with a batch form): triage verbs including answer, snooze, escalate, and dismiss; status requests; session verbs; and preference settings. Consumers poll for new actions and report outcomes back. The aggregator records; it does not perform the source change.
That limit is the chapter’s central rule:
- The aggregator never writes GitHub labels. Its needs-Drew census header states the rule for its own service, and the code holds it. The stack as a whole does write labels — through the console’s audited actions — so “the aggregator never writes” and “the stack writes through the console” are both true, about different services (D4).
- The aggregator does not edit Project fields. The orchestrator is the Project’s single writer; a dashboard status change is a
status-requestaction that the orchestration pass consumes and performs. - The aggregator never writes GitHub at all from its comment surface: a dashboard comment is applied by a fleet job, which reports the GitHub result back.
- What the aggregator does own outright: its decisions store, its comments store, its roadmap annotations, its alert and notification ledgers, and its published state. Within those stores it is the writer, and the pages are the record.
One text inside the aggregator disagrees with the deployment it describes: its program page says the execution board runs the fork at developing-today-forks/kaneo. The compose file pins upstream v2.47.0. The deployment code wins, and this book states the board as upstream wherever the board’s version matters (D1).
Sources. Survey files ~/workspace/pm-book/survey/apps.md (§1, §2, §5, §7), ~/workspace/pm-book/survey/website-pages.md (§A–§D, §F1, §F2, §F5, §F6), ~/workspace/pm-book/survey/roadmap.md (§1–§4), ~/workspace/pm-book/survey/disagreements.md (D1, D3, D4, D7, D8, D9, D11, D12); repo paths pm-stack/aggregator/src/pages.ts, pm-stack/aggregator/src/server.ts, pm-stack/aggregator/src/model.ts, pm-stack/aggregator/src/sources/live.ts, pm-stack/aggregator/src/sources/projector.ts, pm-stack/aggregator/src/decisions.ts, pm-stack/aggregator/src/needs-drew.ts, pm-stack/compose.yml.
The projector and projections
The projector is a Bun service on port 7801, in pm-stack/projector/ and packaged as pkgs/pm-projector. Its README states its whole contract in one sentence: it links and projects; it never becomes a fifth source of truth and never writes back to GitHub, Kaneo, Pad, or Grist. Everything in this chapter is that contract worked out — what a link is, how links arrive, what a projection is, and who consumes it.
Read The aggregator: one state, many sources first if you have not: the aggregator is the projector’s named consumer in the surveyed code.
Why a separate service links
The stack’s sources each know their own items. GitHub knows issues and pull requests; Kaneo knows cards; Grist knows roadmap rows; the aggregator knows sessions and orchestration items. The same work exists in several of them at once — an issue, its board card, its roadmap row — and no source holds the cross-source identity. The projector holds exactly that: a registry of links between subjects, and projections built from the registry.
Keeping the registry in its own service enforces the limit in the README. The aggregator, which renders and raises questions, cannot quietly become the place cross-source identity is decided; the projector, which decides identity, cannot render the dashboard or write to a source. Each service’s failure and change surface stays separate.
Subjects and links
Items are named by subjects: gh: for GitHub items, kaneo:<slug>/<taskId> for Kaneo cards, grist:<docId>/Roadmap/<recId> for roadmap rows, plus session: and orch: subjects. A link records that two subjects are counterparts. The link registry is served over HTTP:
| Route | What it does |
|---|---|
GET /links | Read the registry |
POST /links | Add a link |
DELETE /links | Remove a link |
GET /items | Read projected items |
GET /comments | Read comments |
GET /subjects/<subject> | Read one subject: its links and activity |
The store’s schema is pm-stack/projector/schema.sql. Its inventory (survey top-up 1, T2) is 10 tables and 2 views:
| Table | What it holds |
|---|---|
pmp_items | GitHub issues and PRs keyed by repo-qualified ref owner/repo#N — the join key everywhere |
pmp_item_deletions | Durable deletion markers keyed by ref; makes item deletion absorbing against stale replays (#6782) |
pmp_comments | Comments across all repos, including PR reviews and review line comments Kaneo never syncs; primary key (id, kind); deleted is the tombstone flag |
pmp_links | The link registry: subject↔GitHub ref relations (tracks | implements | relates), human/agent-written through the registry routes. The map calls it the only non-rebuildable cross-service relationship in the projector schema |
pmp_deliveries | Webhook deliveries; the GitHub delivery GUID is the unique key, so a redelivered webhook is applied at most once |
pmp_delivery_errors | The first failed attempt per delivery, kept separately so a successful retry does not erase the original failure evidence |
pmp_sync_state | Reconciliation cursors, one per (repo, stream); streams are issues, prs, issue_comments, review_comments, reviews |
pmp_push_events | Push events recorded for audit and later exec-strip aggregation; the projector does not write back to GitHub |
pmp_hot_events | The append-only normalised change ledger over the webhook stream (#5204); seq is the monotonic cursor consumers paginate on |
pmp_consumer_checkpoints | Per-consumer sweep checkpoints over pmp_hot_events.seq; a checkpoint only ever moves forward |
Two SQL views are the projection surface: pmp_v_links_items, every link joined to the linked item’s live state and title, and pmp_v_subject_activity, one unified activity stream per subject, newest first. A projection, in this service’s vocabulary, is a derived read built from the registry — links joined to the items they connect, and activity rolled up per subject — not a copy of any source’s own tables.
How links stay current
Two intake paths keep the registry current:
- Webhook intake.
POST /github/webhookreceives GitHub deliveries. The endpoint checks the HMAC signature and deduplicates by delivery GUID, so a redelivered webhook does not create duplicate work. - Reconcile polls.
pm-stack/projector/src/reconcile.ts, driven throughsrc/cli.ts, polls and reconciles the registry against the sources. The host-health snapshot the aggregator consumes records the state of thepm-projector-reconciletimer among the units it tracks, which places the reconcile on the laptop’s timer set.
When sources conflict, there is no human dispute-resolution rule in the projector code — no disputed flag, no arbitration, no multi-writer vote (survey top-up 1, T3). What exists is a set of coded overwrite guards that decide every conflict mechanically, by source timestamp and by primary key. The projector’s own schema header states its posture: GitHub stays the source of truth for code work, Kaneo and Grist stay the source of truth for their own layers, and this database only holds links and projections; it is disposable and never writes back. The coded rules, one per object:
- Items — monotonic; a stale source never wins. The item upsert’s guard key is
source_updated_at: a stale source (olderupdated_at) never overwrites a newer stored item. - Items — deletion is absorbing, with one escape. An item whose ref carries a deletion marker is not recreated by an event at or before the deletion’s source timestamp (stale webhook replays, in-flight reconcile responses). An event strictly newer than the marker wins and clears it — GitHub is the source of truth, and such an event means the item demonstrably exists at a later source time than its deletion. The marker itself is monotonic: a later delete refreshes it, an older one never moves it backwards.
- Comments — monotonic guard plus tombstone absorption. A deleted (tombstoned) comment accepts no update at all; a live comment accepts only an update whose payload-reported last-update time is at or after the stored one. Tombstones are retained even when their item is deleted, because they are the absorbing guard that rejects stale comment replays. One named exception exists: the #3087 one-time migration correction for pre-fix review rows.
- Links and edges — last writer wins, silently, on the full key. The link upsert conflicts on
(subject, ref, relation)and replacesnote,created_by, andcreated_at; no history is kept. A differentrelationvalue is a different row, sotracksandrelatesfor the same subject↔ref coexist rather than dispute. Removal is a plain delete on the same key. No code path marks a link disputed, contested, or pending review. - Deliveries — first delivery id wins. Intake requires the delivery id; duplicates are recorded, not reapplied, and a failed first attempt is preserved in
pmp_delivery_errorseven when a retry later succeeds. - The projection contract behind all of the above: a projection writes only what the event proves — an absent field proves nothing, neither defaults a value nor erases a stored one — and the only timestamps a row carries are ones its own payload reported (#4302, audited in #4303).
- Checkpoints move forward only, and never past the high-water cursor the server issued for that sweep, so a failed sweep resumes from its old checkpoint and replays safely.
The queue view
The projector also serves an HTML queue view, in pm-stack/projector/src/queue-view.ts and queue-view-html.ts. Its route path is UNVERIFIED: the survey read the file names and the projector’s port, and did not establish the path the view is served on. The view exists; do not cite a URL for it from this book.
Who consumes the projections
The projector is also the known freshness publisher: its NixOS unit carries PM_AGG_FRESHNESS_URL=http://127.0.0.1:4871/publish, the aggregator’s loopback-only freshness IPC listener (survey top-up 1, T5; see The aggregator: one state, many sources).
The aggregator consumes the projector through pm-stack/aggregator/src/sources/projector.ts, which reads links and the latest comments per subject. That read is what lets an item detail page at /item/<subject> show the item’s counterparts in the other sources, and what lets discussion and comment state travel with the subject rather than with one source’s copy of the work.
No other consumer is established by the survey. In particular, whether the console reads the projector directly is UNVERIFIED; the console’s surveyed data paths run through its own work module and the aggregator’s twins.
The limits, stated as behaviour
- No write-back. The projector never writes to GitHub, Kaneo, Pad, or Grist. A wrong link is corrected in the registry — by
DELETE /linksand a correctedPOST /links— not by editing a source to match. - Not a source of truth. The registry is the authority for one fact only: which subjects are linked. The facts about the work — status, title, state — remain in the sources, and the aggregator’s conflict page, not the projector, is where source disagreements are published.
- Pad is inside the no-write-back list and outside the link sources the survey names. The README names Pad among the services the projector never writes back to. No surveyed adapter shows the projector reading Pad content; Pad has no subject form in the surveyed set. Treat Pad as protected by the contract, not as a linked source.
Architecture places the projector among the four core services; The shared schema covers the separate contract layer for the shared stores — the projector’s own schema is its own, and the two are not the same mechanism.
Sources. Survey file ~/workspace/pm-book/survey/apps.md (§7); ~/workspace/pm-book/survey/website-pages.md (§C, §G); repo paths pm-stack/projector/README.md, pm-stack/projector/schema.sql, pm-stack/projector/src/reconcile.ts, pm-stack/projector/src/cli.ts, pm-stack/projector/src/queue-view.ts, pm-stack/aggregator/src/sources/projector.ts, pkgs/pm-projector/.
The shared schema
The shared schema is the contract layer for the stores that more than one PM component writes. It lives in pm-stack/shared-schema/, with its inventory map at pm-stack/SHARED-SCHEMA-MAP.md and its migration plan at pm-stack/SHARED-SCHEMA-MIGRATION-PLAN.md. Its centre is orchestration state: the record of what the orchestration pass has published — tiers, items, and the state other surfaces read back — written to the Turso fleet-platform store by one writer, in one transaction per pass.
This chapter states what the survey establishes about the layer: the writer, the write rule, the migrations and guards, the table inventory (survey top-up 1, T2), and the single-writer rules it supports elsewhere in the stack.
Why a contract layer exists
The stack’s components share stores. The aggregator publishes orchestration state; the orchestration pass consumes dashboard actions and performs Project writes; decision events, quota records, alerts, and mirror data land in the same fleet-platform store family. Without a shared contract, each writer invents its own table shapes and its own write pattern, and a reader cannot tell which writer owns a row or whether a multi-row update landed whole.
The shared schema answers with three mechanisms: a map that inventories the shared stores, migrations that change their shape in the open, and a single writer for orchestration state that commits each pass as one transaction.
The orchestration writer
pm-stack/shared-schema/orchestration-writer.py, specified in pm-stack/shared-schema/ORCHESTRATION.md, is the writer for orchestration state to Turso fleet-platform. It was built under issues #5005 and #3142. Its rule is in its description: one transaction per pass. A pass that publishes a new orchestration state commits all of that pass’s writes together or not at all, so a reader never reads half a pass.
That rule pairs with the stack’s wider single-writer rule for portfolio state:
- The orchestrator is the single writer of GitHub Project fields. Agents and the dashboard do not edit Project fields directly; the aggregator reads the pool through the fleet feed (
pm-stack/README.md). - A dashboard status change is therefore not a write. It is a
status-requestaction, consumed by the orchestration pass, which performs the write itself and reports the outcome back throughPOST /api/actions/result. The item’s next published tier entry carries the acknowledgement. - Hierarchy and dependency edges are kept distinct in the same spirit: hierarchy is native GitHub sub-issue parents, dependencies are native
blockedByandblockingrelations, and prose is a substitute for neither (pm-stack/README.md; the dependency handling lives inaggregator/src/orchestration-dependency.ts,epic-graph.ts, andgraph.ts).
Migrations and guards
The directory carries migrations/ — the schema’s changes as migrations — and ainventory-turso-guards.sql, a set of SQL guards for the Turso inventory. Migration and orchestration tests sit alongside them in pm-stack/shared-schema/. The book’s rule for this layer follows from its shape: a shared-store change lands as a migration in this directory, with its test, not as an ad hoc change inside one component’s code.
The table inventory, from pm-stack/SHARED-SCHEMA-MAP.md, pm-stack/shared-schema/migrations/, and pm-stack/projector/schema.sql (survey top-up 1, T2):
The projector’s tables (owner/writer: the projector; the full treatment is in The projector and projections): 10 tables — pmp_items, pmp_item_deletions, pmp_comments, pmp_links, pmp_deliveries, pmp_delivery_errors, pmp_sync_state, pmp_push_events, pmp_hot_events, pmp_consumer_checkpoints — plus 2 views, pmp_v_links_items and pmp_v_subject_activity.
The shared-schema migration tables — 9 tables, and their live copies are in Turso: the PostgreSQL DDL in pm-stack/shared-schema/ is the original contract, the Supabase project they were first applied to has been deleted, and the Turso schema was created during the 2026-11-18 recovery (pm-stack/shared-schema/README.md). They are canonical when the aggregator runs with PM_AGG_STORE_BACKEND=turso; with the default file backend the JSON files remain authoritative. The nine: agg_actions (aggregator — one row per actions.json action record), shared_events (aggregator, cross-service — the cross-service event record with a SHA-256 hash chain), orch_runs (orchestration writer — one append-only row per orchestration pass), orch_items (orchestration writer — current tier and classification state, replaced per run in the writer’s transaction), agg_activity_ingestion (aggregator — per-source ingestion checkpoints and dedupe), agg_activity_gaps (aggregator — the activity gap ledger), agg_usage_snapshots (aggregator and usage writers — append-only usage observations), agg_store_documents (aggregator — keyed JSON documents), and shared_comments (aggregator — dashboard comments, the shared cross-service comment table of #1744).
Not yet tables: shared_items and shared_links are target group names only — the shared-schema README states the DDL does not finish the remaining agg_* / shared_* contracts, and #1744 acceptance criterion 3 remains unchecked. The canonical shared_links source today is the projector’s pmp_links. Several aggregator-owned stores are still files, not tables (among them fleet-feed.json, comments.json, actions.json, roadmap-annotations.json, views.json, the aggregator registry.json, and the quota caches), each with its agg_ target group named in the map.
What the shared schema is not
- It is not the projector’s schema. The projector’s link registry has its own schema at
pm-stack/projector/schema.sql, owned by the projector service. See The projector and projections. - It is not Kaneo’s Postgres. Kaneo’s integration settings, including the status-transition configuration, live in Kaneo’s own Postgres and are set by nothing in this repository. The store-migration plan at
pm-stack/STORE-MIGRATION-PLAN-6816.mddefines a gated cutover path off Kaneo Postgres toward Supabase, with presync and promote modes, a fence, and an exact-parity gate — a plan for a migration, recorded as gated, not a completed move. - It is not a hierarchy type system. No shared enum defines the roadmap ladder. Project pool Kind is exactly
TaskorEpicinaggregator/src/model.ts; programs are a document scheme and an Area value; “aggregator” names a service (D10). The shared schema carries shared store contracts, and the ladder’s types live in the systems that own each level. See The roadmap hierarchy: initiatives, projects, epics, aggregators. - It is not the quota store’s whole story. Quota-side records — pool guidance, forecasts, and reweight proposals — are recorded as records and pull requests, not applied as silent reprioritisation. Detail beyond that statement is UNVERIFIED in the survey this chapter draws on.
Reading the layer
For a change to shared state, read in this order: SHARED-SCHEMA-MAP.md for which store and which writer own the record; ORCHESTRATION.md for the orchestration writer’s contract; the migration files for the shape as it stands; and The aggregator: one state, many sources for how the published state is read back into pages. Architecture places the layer among the stack’s ledgers, sync, and shared contracts.
Sources. Survey files ~/workspace/pm-book/survey/apps.md (§25, §36, §1 store-migration pointer), ~/workspace/pm-book/survey/roadmap.md (§1, §3, §4), ~/workspace/pm-book/survey/disagreements.md (D10); repo paths pm-stack/shared-schema/ORCHESTRATION.md, pm-stack/shared-schema/orchestration-writer.py, pm-stack/shared-schema/migrations/, pm-stack/shared-schema/ainventory-turso-guards.sql, pm-stack/SHARED-SCHEMA-MAP.md, pm-stack/SHARED-SCHEMA-MIGRATION-PLAN.md, pm-stack/STORE-MIGRATION-PLAN-6816.md, pm-stack/README.md.
The roadmap hierarchy: initiatives, projects, epics, aggregators
The four types as the product conceives them
The programme frames the roadmap as four types: major initiatives, projects, epics, and aggregators. That frame is the product model. It names the grains Drew plans at: a major initiative sets direction, a project carries a tracked body of work under it, an epic groups related items inside a project, and an aggregator rolls the levels below it into one view.
What the code implements
The code implements a different ladder. This chapter follows the code where the two differ (D10).
- Kind is
Task | Epiconly. The GitHub Project fieldKindon Project #4 takes exactly two values,TaskandEpic(aggregator/src/model.ts). NoInitiativetype and noProjecttype exist in that field. The word “initiative” as a code-level type is UNVERIFIED: no file in the survey names anInitiativetype inaggregator/src/model.ts. - The initiative and project level rides on programs. Programs P1–P9 are a document scheme defined in
pm-stack/design-reprioritization-2026-11-12.md: P1 ID, P2 Atlas (rolling), P3 Fleet, P4 SaaS for ID/Atlas/fleet, P5 PM stack, P6 Turso+Cloudflare, P7 GitHub+dynamic compute, P8 Storage, P9 Lab. Each program carries a queue band. In live data a program surfaces as a project in the aggregator’s project registry and on the/program/\<id\>surface (aggregator/src/program.ts,project-config.ts,projects.ts), and as anAreavalue in the GitHub Project. - Projects exist twice. The portfolio project is one GitHub Project: org Project “Developing Today” (#4). Its items carry single-select fields Status, Area, Horizon, and Kind, read verbatim by the aggregator (
aggregator/src/projects.ts). The registry project is a second notion: a tracked programme with its own status and roadmap, derived from the registry, its tracked issues, and the Project pool. The/programpage is the hub for the second notion; Project #4 is the record for the first. - Epics are
Kind = Epicitems. ProjectKind=Epicis canonical. The aggregator reads the field and resolvesepicRefthrough native sub-issue parents; it does not infer epic membership from labels. Theepiclabel is a maintained mirror: every pool item withKind=Epiccarries it, and no other pool item does. Themeta/epiclabel is retired and has no consumer. - “Aggregator” names a service, not a node type. The aggregator is the dashboard service. Its own program page states the role: “This dashboard is the aggregator of the PM stack: the one screen Drew lives in while the fleet works in GitHub, Kaneo, and Pad underneath” (
aggregator/src/program.ts). No roll-up node type named aggregator exists in the PM schema (D10). The staging aggregator in Atlas (pkgs/atlas-search/crates/atlas-core/src/aggregate.rs) is a separate component and takes no part in this hierarchy.
The reconciled ladder, top to bottom: program (document scheme, surfaced as registry project and as Project Area) → project (registry entry plus Project #4) → epic (Kind=Epic item plus sub-issue parent) → task or item (Kind=Task pool item, GitHub issue or PR, Kaneo card, Grist or repo roadmap row).
How items join and roll up
Items join by refs, not by a shared table. A ref names its source: gh:…, kaneo:\<slug\>/\<id\>, grist:\<doc\>/Roadmap/\<id\>, session:…, orch:…. A bare issue or PR reference takes the form owner/repo#N.
Two edge kinds stay distinct. Hierarchy is the native GitHub sub-issue parent relation; it carries epic membership. Dependencies are the native blockedBy and blocking relations (aggregator/src/orchestration-dependency.ts, epic-graph.ts, graph.ts). Prose substitutes for neither edge kind.
Epic rollup groups children by epicRef and counts done against total (aggregator/src/epics.ts). A child counts as done by its state and status. Progress is weight, not counts (aggregator/src/weights.ts): effort/xs = 1, effort/s = 4, effort/m = 12, effort/l = 40, and effort/l is a floor flagged open-ended. An unsized item contributes no weight and is counted visibly as unsized; it is never zero-weighted. Summaries also split open weight by mode/*: physical and hybrid count as hands weight, alongside online and unmoded.
An epic closure gate guards the top of the rollup (epics.ts evaluateEpicClosureGate, scripts/epic-closure-gate.ts): an epic does not close while its complete subtree has open children or unmet conditions, and the gate enumerates blockers by condition. fleet-monitor/epic_close_check.py runs the gate report-only. Reparenting moves sub-issue parents (aggregator/src/epic-reparent.ts, scripts/epic-reparent.ts); scripts/check-epic-conformance.ts checks conformance.
The roadmap surfaces
The /roadmap page and its twin /api/roadmap.json merge rows from three sources: the Grist Roadmap table (sources/live.ts gristRoadmap()), repo files (planning/roadmaps/*.md in developing-today/code and ROADMAP.md in dezren39/darwin-nix, read by sources/repo-roadmap.ts), and Project-pool and program data. The merge rule is fixed: a title present in both a repo file and Grist collapses to the repo-file row, the Grist duplicate is noted in provenance, and its links are unioned in. Rows carry Title, Status, Horizon, Area, Intent-or-Notes, and Links. One filter function serves the page and its twin (filterRoadmapForView).
The /program page rolls up per project: distributions over Status, Area, Horizon, and Kind, epic rollups, tracked-issue state, and orchestration freshness. A Project Status that conflicts with derived state is surfaced, not hidden; /conflicts lists every live source disagreement.
Two horizon vocabularies, two roadmaps
“Horizon” has three live meanings, and this book does not collapse them (D11):
- Repo-file and Grist roadmap rows use the buckets
Now | Next | Later | Ideas | Ongoing(sources/repo-roadmap.ts, validated byroadmap-horizon.ts). - Aggregator tier items use
Horizon = today | tomorrow | next-3-days | longer | incoming(aggregator/src/model.ts). - Project #4 has its own
Horizonsingle-select. The aggregator reads its values verbatim from the Project; the Project defines them.
The console carries a second roadmap implementation (D12). console/src/plan.ts derives phases doing | now | next | later | built from labels, parses capabilities from a plan doc, and parses the plan doc’s markdown table into roadmap rows. It is not a client of the aggregator’s /api/roadmap.json. Order inside each surface is decided by the rules in Prioritisation: how order is decided and recorded.
Sources. Survey roadmap.md §§1–2; survey disagreements.md D10, D11, D12; code at laptop clone ~/git/code at 4d937b3 as cited inline.
Prioritisation: how order is decided and recorded
The rule
Priority is recorded in four places. The four records do not agree automatically. The /conflicts page exists in part because of that fact: it lists every live source disagreement with both values and the disagreement’s age. No single field in this stack is “the priority”. Each record below governs the surface that reads it.
1. Fleet queue priority: execution order
Queue tasks carry a numeric priority. The claimant and the console board take tasks in priority-then-age order: ORDER BY (priority IS NULL), priority ASC, created_at ASC (console/src/work.ts board()).
The band scale is 10 / 20 / 30 / 40 / 50 / 70 / 90. The 2026-11-12 reprioritisation scheme (pm-stack/design-reprioritization-2026-11-12.md) maps programs to bands: P1–P3 at band 20, P4–P6 at band 30, P7–P9 at band 40. The scheme document records the re-banding as applied on 2026-11-12 by the queue lane. An owner prompt submitted from the console takes the top band, 10 (promptPacket in console/src/work.ts).
The console writes this scale directly: PRIORITY_SCALE = [10, 20, 30, 40, 50, 70, 90] in console/src/ops.ts, and Ops.setTaskPriority writes a value from that scale onto a queue task.
2. Issue rank labels: the ranked-issues view
The console’s ranked-issues view orders open issues by rank label. The ranks are RANKS = [expedite, priority/critical, now, priority/high, next], with RANK_PRIORITY mapping each rank to a number (console/src/ops.ts). Ops.priorities() searches open issues carrying any rank label and sorts by rank, then by issue number.
Ops.setRank() writes in a fixed order: it adds the new rank label first, then removes the other rank labels. A failure mid-write never leaves an issue rankless.
Intake assigns ranks by kind. The route table in console/src/plan.ts (ROUTES) gives each intake kind its labels and its rank. A note, bug, or change submitted through console intake files a GitHub issue with the route’s labels and rank, and enqueues a queue packet in the same action: triage.enqueue for a new item, prompt.enqueue once an issue exists. New work enters the portfolio record and the execution queue together, with the rank from the route table.
3. Project fields: portfolio intent
Project #4 carries Horizon, Status, and Area per item, and effort weights carry progress (see The roadmap hierarchy: initiatives, projects, epics, aggregators). These fields record intent. They do not set execution order; the queue bands in §1 do.
The Project has a single writer: the orchestrator. The standing rule in pm-stack/README.md states it exactly: “Agents and the dashboard do not edit Project fields directly; the aggregator reads the pool through the fleet feed.” A dashboard status change is therefore a request, not a write. The dashboard records a status-request action; the orchestration pass consumes it, performs the write, and reports back through POST /api/actions/result. The item’s next published tier entry carries the acknowledgement.
The console is the exception path, and the exception is narrow (D4). The console writes labels and comments through gh and queue actions through the queue broker: rank changes (setRank), issue comments, queue verbs, and the hands-done label removal. Every console action is audit-logged before execution. The aggregator service itself never writes labels back; its header in aggregator/src/needs-drew.ts states that the aggregator never writes labels and names the orchestrator as label writer. Both statements are true at different scopes: the aggregator service writes no labels; the PM stack does, through the console (D4). Project fields and issue labels are different records, and this book keeps them separate.
4. Dashboard actions: recorded overrides
POST /api/actions carries two priority-relevant action kinds:
triageanswers: acknowledge, snooze, escalate, de-escalate, answer, delegate, dismiss. Escalate and de-escalate are tier overrides, and the reason is recorded with the override. Snooze suppresses an item until a named time and renders on the item as “snoozed by you”.status-request: the request path from §3.
Consumers poll GET /api/actions.json?state=new and return outcomes through POST /api/actions/result with outcome applied or rejected, the applying run, and a note.
5. The decision ledger
Decisions are recorded in a ledger, separate from all four records above. pm-stack/decisions-ledger-system.md (2026-11-11) defines the ledger that decision sets mirror. A decision set groups ledger items; an answer, defer, or request-info on a set records a resolution in the decisions store, and the dropped-thread catcher applies resolutions to the Muse-side decisions ledger per question. A consequence that changes Project state does not write through the dashboard; it becomes a status-request action under §4. The full answer flow is in Question sets and the answer-back flow.
6. Quota-side proposals
The /quota surface carries a fifth, adjacent mechanism: pool and route guidance, forecasts, and reweight proposals in aggregator/src/quota-guidance*.ts, quota-forecast*.ts, and quota-reweight*.ts, with scripts/quota-reweight-proposals.ts and scripts/quota-weekly-review.ts. These are proposals recorded as records and pull requests. They do not reprioritise silently. Detail beyond this pointer is UNVERIFIED in the survey this chapter rests on; the surfaces themselves are described in Health, quota and usage surfaces, and quota figures live in the LLM-plans chapters, not here.
Design record
Four design documents frame this chapter: design-register-2026-11-11.md (the register of PM designs), design-tracking-manifest-2026-11-11.md, lineage-manifest-2026-11-12.md (the lineage each piece descends from), and design-reprioritization-2026-11-12.md (the band scheme in §1). Where a design document and the code disagree, this book follows the code and cites the disagreement by number.
Sources. Survey roadmap.md §§3–4; survey disagreements.md D4; code at laptop clone ~/git/code at 4d937b3 as cited inline.
Question sets and the answer-back flow
One system, eight surfaces
The PM stack asks Drew questions on eight surfaces. The eight surfaces are one system: a question is raised against an item in the Muse-side decisions ledger, presented on a surface, answered once, and applied back to the ledger. This chapter treats the eight as one flow with eight front doors. The surfaces are F1–F8, following the survey’s numbering in website-pages.md §F.
Three invariants hold across the surfaces that record resolutions:
- First resolution wins. Per question, the first recorded resolution stands (
decisions.tsrecordResolutions). - Drafts die on resolution. When a question resolves, its drafts are deleted (
pruneResolvedDrafts). - An action that cannot be recorded is not taken. Every console action is audit-logged before execution (
console/src/server.ts).
F1. Decision sets: the batched question set
A decision set mirrors a group of items from the Muse-side decisions ledger (pending-questions.json, per the header of aggregator/src/decisions.ts). A set has items, addressed by ledgerId. An item has 1–16 questions. A question has a qid of the form \<ledgerId\>#\<1-based index\>, 0–12 options, a mode of single or multi (version 1 defaults to single), recommended option ids, context, description, detail, group, order, and version history. A question with 0 options is a free-text question and is legitimate.
Surfaces: the index at /decisions, one page per set at /decisions/\<setId\>?t=\<token\>, and the console segment #needs/questions, which reads the same sets from the decisions file (console/src/work.ts Work.questions()). The console list shows open questions only, newest set first, with context clipped to 280 characters; Work.question() returns the full context for one question.
Answers: the set page posts to /api/decisions/\<setId\>/submit, /defer, and /request-info, and sends draft and edit events to /api/decisions/\<setId\>/events. A resolution is one of three kinds: answered (option ids, free text, comment), deferred (with a lean of none, skeptical, or approve), or request-info. The page supports submit-all. The console supports “Accept <n> recommended” per set (Work.acceptRecommended), batched at 200; the dashboard cap noted in code is 256 per request.
Write-back: resolutions are recorded in the aggregator’s decisions store (recordResolutions), exported as resolution records for the ledger and fleet-feed path, and applied to the Muse-side ledger per question by the dropped-thread catcher. Decision events also sync out through scripts/sync-decision-events.ts to Turso and to the decision-events Worker, which fans new batches out live to the set page’s WebSocket subscribers. The delivery path is in Push notifications: detection to phone to answer.
Producers: scripts/raise-decision-set.ts posts a set through the alert throat (POST /api/alerts, decisionSet extension) and produces one push for the whole set. scripts/submit-decision-set.ts posts through POST /api/decision-sets and supports --refresh for standing ledger-mirror sets, including the standing open-questions set.
Two registry facts belong to this surface. The page manifest gives the decisions entry no API twin, yet the server implements the full decisions write API in this section (D7). And /decisions/\<setId\> is missing from the manifest’s SUBROUTE_PARENTS map, so decision-page renders sit outside the render registry that /api/health reports (D8). The page exists; the health accounting does not cover it.
F2. Needs-Drew single questions
A single raised question rides its push notification. The notification candidate carries the question: NotificationCandidate.needsDrew = {ledgerId, question, options} in aggregator/src/notifications.ts. The service worker turns the first two options into notification actions. A tap posts directly to POST /api/needs-drew/\<ledgerId\>/answer with the token and the chosen option id; no page opens. The answer page is the fallback and calls the same endpoint. The per-question token in the answer-page URL is the authority.
The write-back uses the same resolution machinery as F1: the ledger item’s question resolves. One fact is UNVERIFIED and this book does not resolve it (D9): decisions.ts names a question store in needs-drew.ts distinct from the decision-set store, while notifications.ts and the service worker route single-question answers into the same machinery, and the console reads sets from “the decisions file” for the same questions. Which file a single-question answer ultimately writes is not stated unambiguously in the code surveyed. This chapter describes the endpoint and the ledger application, and names no store for F2.
F3. Needs-Drew census sets: hands, reviews, escalated
The census is a different question shape: not a raised question, but every open item waiting on Drew. GET /api/needs-drew.json (aggregator/src/needs-drew.ts) collects open issues and PRs labelled user/review or user/escalated across the fleet repos, deduped, with hands:v1 markers of kind physical, interactive-login, payment, or signature. The console splits the census (Work.census()) into three sets: hands (an item carries a hands:v1 action), reviews (user/review, no hands marker), and other/escalated (no stated action; the fleet decides). Session-derived waiting items from /api/attention.json join the same view. On the phone the console names the segments Questions, Only you can do, Reviews, and Escalated (console/public/app.js viewNeeds); the default segment is chosen by counts: questions, then hands, then reviews.
Answers on census items are two console actions. Reply (need.comment) posts a GitHub issue comment carrying the marker <!-- owner-reply:v1 -->. I did it (hands.done, hands items only) posts the comment “Done by the owner…” and deletes the user/escalated label through gh. The aggregator census itself never writes labels; the console does (D4).
The census vocabulary in this section is the shipped vocabulary. The 2026-10-26 needs-user design document uses its own terms, and its acceptance line “#1007 appears in the queue” is impossible by design: #1007 is closed and the census is open-only. The code records that acceptance as “recorded on #1226 rather than claimed as met” (D13). This book uses the census vocabulary and treats the 2026-10-26 document as history.
F4. Prompt and chat questions
The aggregator prompt surface (/chat) is a threaded question channel. Routes: POST /api/prompt, GET /api/prompt/threads, GET /api/prompt/thread/\<id\>, attachments under /api/prompt/\<id\>/attachments/…, PATCH /api/prompt/\<id\>, GET /api/prompt/unread-count, and a WebSocket at /ws/prompt/\<id\>. A prompt submitted with notifications on produces a prompt-class push when it is answered or fails.
The console #ask view is the owner-facing form of the same idea, built on GitHub and the queue instead of the aggregator store. ask.send files an issue and enqueues a top-band (priority 10) triage packet, marked <!-- owner-prompt:v1 -->. Replies are read back from the issue. ask.reply and ask.close complete the action set.
F5. Dashboard comments and discuss
POST /api/comments records a dashboard-native comment. POST /api/comments/triage triages it, and POST /api/comments/github-result is the route the external poster uses to report the GitHub result back. The queue page is /comments; the twins are GET /api/comments.json and /api/comments/queue.json. The dashboard itself never writes GitHub: a fleet job applies and posts the comment, then reports the result back. A comment on an item is answered by the applying run’s outcome.
F6. Dashboard actions: structured answers on tier items
POST /api/actions and POST /api/actions/batch record structured answers against tier items. Consumers poll GET /api/actions.json?state=new; outcomes return through POST /api/actions/result. Action kinds: triage (acknowledge, snooze, escalate, de-escalate, answer, delegate, dismiss), status-request, session (poke, answer, stop; consumed by the fast session-action consumer for opencode-laptop), and preference (set-delegation-default). The triage answer verb is an answer-back: the consuming pass delivers the payload text, option, or answers as its own classification. An outage-queue variant exists at GET /api/actions/outage-queue.json with confirm and reject posts. Priority effects of these actions are in Prioritisation: how order is decided and recorded.
F7. Console generic actions
Every console answer in F1, F3, and F4 reaches its store through one endpoint: POST /console/api/act. The action table in console/src/actions.ts includes questions.answer, questions.defer (“Decide for me”, lean default approve), questions.accept, need.comment, hands.done, ask.send, ask.reply, and ask.close, alongside queue, priority, issue, service, and PR actions. Work.submit() in the console calls the dashboard’s own /api/decisions/\<setId\>/submit, so console answers and dashboard answers land in the same store.
When the laptop is unreachable, the console edge Worker holds the action and replays it through the same table when the host returns. Held actions and kept answers are the edge’s whole job; the #more/away view shows what the edge currently holds.
F8. Smaller answer-backs
- Reports.
POST /api/reports/resolveresolves a prose conflict by choosing a stored version.POST /api/reports/late-updaterecords a late update. Neither overwrites stored text silently;/reportsexists to resolve conflicts without overwriting. - Roadmap annotations.
POST /api/roadmap/annotationsandPOST /api/roadmap/annotations/aliasattach Drew-side notes and aliases to roadmap rows. The annotation store is the aggregator’s own (roadmap-annotations.ts), reconciled at render (roadmap-reconcile.ts). An annotation edits neither Grist nor the repo files. - Alerts. Acknowledge and close on
/alertswrite the incident lifecycle (open | acked | closed) in the alerts store. Preference toggles on/alerts/preferenceswrite the subscription’s class map, which the notification engine reads on its next tick.
Sources. Survey website-pages.md §F (F1–F8) and §§A–B, E; survey roadmap.md §4; survey push.md §§4a–4c; survey disagreements.md D4, D7, D8, D9, D13; code at laptop clone ~/git/code at 4d937b3 as cited inline.
Push notifications: detection to phone to answer
The shape
The aggregator on the laptop is the only detector and decider for ordinary notification classes. It sends Web Push (VAPID) directly to subscribed browsers and phones. A Cloudflare relay exists in code as a dead-man’s switch for the case where the laptop itself is silent; the relay is not deployed (§5, D5). The phone-side receivers are two service workers: the aggregator PWA worker (aggregator/src/sw-source.ts, served as /sw.js) and the console Android app’s worker (console/public/sw.js, inside a TWA). Which of the two workers owns a given phone’s subscription in production is UNVERIFIED from code alone.
Detect
Detection has three inputs:
- Incidents. The stack sentinel (
aggregator/scripts/stack-sentinel.ts), the watchdog and health modules (aggregator/src/watchdog*.ts,stack-health.ts,host-health.ts), the host-health collector (pm-stack/host-health-collector.py), and the health hooks (pm-stack/health-hooks/run.py). A health hook fires once on a transition to 3 consecutive failures and once on recovery. - State candidates.
buildNotificationCandidatesinaggregator/src/notifications.tsbuilds candidates from attention, quota, and health snapshots. - External producers.
POST /api/alertsinaggregator/src/server.tsis the alert throat. It takes a bearer intake token resolved by secret name. Its store and engine live inaggregator/src/alerts.ts, backed by Tursoalerts.*tables: incidents,push_subscriptions, andnotification_sends.
Decide
The engine in aggregator/src/alerts.ts (runAlertTick, runDashboardNotificationTick) applies, per subscription: class enablement, quiet hours, dedupe, a 6-hour cooldown (NOTIFICATION_COOLDOWN_MS), digest queueing and cancellation, and escalation.
- Quiet hours default to 23:00–07:00 America/Chicago (
DEFAULT_QUIET). Quiet hours hold every class except breakthrough classes. - Dedupe keys on subscription, class, object reference, and state fingerprint.
- A stored class map decides enablement per subscription. Legacy subscription rows default to
incidentonly; new subscriptions default to all eight classes on. - Every attempt is logged to
notification_sendsand to the notification history with one of these outcomes:sent,suppressed-quiet,suppressed-dedupe,suppressed-cooldown,gone,error,queued,queue-cancelled,recovered. The/notificationspage measures that log.
Non-breakthrough candidates that pass the filters are queued and delivered as one digest push. A state that disappears, or a class that is muted, cancels its pending digest entry.
The eight classes
Preference classes are the keys of NOTIFICATION_CLASS_DEFAULTS in aggregator/src/notifications.ts. The count is eight (D14). Issue #8882, now closed, described “six notification classes” in that file; the code has since added section-risk as the seventh and prompt as the eighth. This chapter enumerates the eight in the code, not the six in the issue.
incident— a watchdog reports something down. Always immediate; quiet hours never hold an incident. Breakthrough class. An incident also gets one escalation delivery. Acknowledge and close happen on/alerts.needs-drew— an item enters the needs-Drew tier on the attention page. This class carries raised single questions with tappable answers and decision sets (§6).quota-wall— a pool hits its limit well before reset, or a sole-door pool walls at all. “Well before” isQUOTA_WELL_BEFORE_RESET_MS= 24 hours innotifications.ts. Breakthrough for the sole-door case.quota-near-wall— a sole-door pool crosses 85% of a window.section-risk— a whole route section fails or is at severe risk (§4).stack-health— a monitored stack service starts failing its probe. Sentinel state is authoritative over health-derived candidates when both exist. Health hooks post incidents with thestackHealthextension.blocked-age— a needs-Drew item stays unacted for 24 hours, then 48 hours, then weekly. Digest-only, except the 48-hour step, which is a breakthrough. The thresholds areBLOCKED_AGE_REMINDER_MS(24 hours) andBLOCKED_AGE_BREAKTHROUGH_MS(48 hours).prompt— a prompt submitted with notifications on reaches an answer or fails. Two gates apply: the per-submission opt-in and this subscription-side class toggle.
Three delivery shapes sit outside the preference classes: digest (the queued delivery in §Decide), test (POST /api/push/test), and per-class test sends (POST /api/push/test-class, one landing URL per class). The relay-only stack.silent episode pushes in §5 ride the incident preference class.
The snapshot builder constructs candidates for six classes: needs-drew, blocked-age, quota-wall, quota-near-wall, section-risk, and stack-health. incident and prompt arrive through their own producers: alert intake and the prompt lifecycle.
Per-class toggles and quiet hours are set on /alerts/preferences. Subscription routes are POST /api/push/subscriptions, POST /api/push/test, POST /api/push/test-class, and GET /api/sw-probe.
Section-risk in detail
Class section-risk is the #8882 class. Its label is “Section failure / severe risk”. Drew’s order on the issue, 2026-11-12: “update push on phone add a option that shows pools that are pending wall, only alert me when each major section of workhorse speed specialist summit or small fail or severe risk and in that scenario show compact what is failed or at risk which are walled and soonest related resets.” The issue is closed.
Implementation, in aggregator/src/notifications.ts with the join in server.ts and leaf analysis in aggregator/src/aa.ts:
- The major sections are exactly
workhorse,speed,specialist,summit, andsmall. Scout is excluded, per the issue. - Section membership comes from the deployed OpenCode config’s
experimental.model_routes, joined to quota pools. - A pool is walled when its quota state is
walledor any measured window is at 100% or more. A pool inerror,stale, orlapsedstate never counts as serving. A pool is pending wall when it is not walled and any measured window is at 85% or more. - A section is FAILED when it has at least one serving pool and all serving pools are walled. FAILED is a breakthrough: it bypasses quiet hours and the digest. A section is at SEVERE RISK when it is not failed and every non-walled serving pool is pending wall. SEVERE RISK is not a breakthrough.
- One candidate is raised per section per state, with object reference
section:\<name\>. The body is the compact form from the issue: walled pools with soonest resets first, then pending pools with percent and reset, soonest first. The landing URL is/quota. Recovery uses the engine’s disappearance and recovery semantics; no second mechanism exists. - The issue records a subscription flip for Drew’s phone:
section-riskon,quota-wallandquota-near-walloff. Whether that flip was applied to the live subscription is UNVERIFIED: subscription state lives in the Turso alerts store, not in the repo.
Send: the laptop path, and the relay that is not deployed
The normal send path is aggregator/src/push.ts sendPush: Web Push with VAPID, direct from the laptop aggregator to the subscription endpoint. The VAPID public key is a constant in code; the private key is resolved by secret name; the subject is a mailto: value in code.
The relay path does not exist in production (D5). The facts, in order:
pm-stack/notify-relay/holds a Cloudflare Worker (pm-notify) built as a dead-man’s switch. The aggregator client (aggregator/src/notify-relay.ts) posts a heartbeat every 60 seconds (NOTIFY_RELAY_HEARTBEAT_MS) and mirrors push subscriptions to the relay. The relay re-arms an alarm at last-beat plus 150 seconds; on silence it sends onestack.silentpush, and on recovery one recovered push.pm-stack/platform/workers.jsonrecordspm-notifyas “not deployed”, with a null address. The relay README’s deploy section is the step-1 remainder, not done by the build PR.- With no relay URL configured, the aggregator side is inert. With no heartbeats arriving, the relay side is inert.
- The relay’s event-mirror route (
POST /mirror/event) and its answer routes (GET /answer/:ledgerId,POST /api/needs-drew/:ledgerId/answer) are not routed. The relay source header states it directly: those routes arrive with steps 2 and 3 and “are not routed yet”; every other path returns 404. The relay README’s route table lists them alongside the live routes, separated only by a “Lands in” column. The code wins (D5): today the edge answer-intake and the dead-man’s switch do not exist in production, and phone answers go to the laptop aggregator (§6).
One consequence is stated plainly: if the laptop dies, the heartbeat leg sends nothing today. Whether any other watchdog covers total laptop silence is UNVERIFIED.
The answer writes back
A single question: tap an answer
- A producer raises a question in the Muse-side decisions ledger. The aggregator’s needs-Drew candidate carries it: ledger id, question, and options.
- The push payload includes the answer block. The service worker turns the first two options into notification actions and stores the ledger id, the answer token (parsed from the answer-page URL’s
?t=parameter), and the answer URL in the notification data. - On
notificationclickwith an action, the service worker posts directly toPOST /api/needs-drew/\<ledgerId\>/answerwith the token and the tapped option id. No page opens. Errors in the service worker are silent; the answer page is the fallback and calls the same endpoint. - The endpoint records the resolution against the ledger item’s question, and the dropped-thread catcher applies resolutions to the Muse-side ledger per question. The store ambiguity for single-question answers is recorded as D9 and treated in Question sets and the answer-back flow.
A decision set: the page is the answer surface
- A set is raised through the alert throat (
POST /api/alerts,decisionSetextension) or throughPOST /api/decision-sets. The engine sends one push for the whole set. The tap opens/decisions/\<setId\>?t=\<token\>. A decision-set push carries no tappable answers by design: the page is the answer surface. - Submit, defer, or request-info on the page records resolutions in the decisions store, first resolution wins, and prunes drafts.
scripts/sync-decision-events.tsdrains the decision-event outbox to Turso and to the decision-events Worker, which pushes new batches live to the set page’s WebSocket subscribers. The page also polls/api/decisions/\<setId\>/events.
Other taps
- An incident tap opens
/alerts#incident-\<id\>; acknowledge and close there write the incident lifecycle in the alerts store. - A quota or section-risk tap opens
/quota. No answer-back exists; the page is a state view. - A needs-Drew or blocked-age tap opens
/attention, anchored to the item. Acting on the item is recorded as Drew activity, and that activity stops blocked-age escalation for the item’s reference. - A prompt tap opens
/chat. The answer itself was written by the responding session through the prompt thread. - A console-app notification tap opens the addressed console view. Console answers then flow through the audited
POST /console/api/acttable, or are held by the edge and replayed, and land in the same stores as the two flows above.
Worked trace: an outage
host-health-collector.py and sentinel probes fail → aggregator/scripts/stack-sentinel.ts registers the 3-failure transition → health-hooks/run.py runs read-only diagnosis, appends a JSONL incident, and posts to the alert throat → POST /api/alerts in server.ts checks the intake bearer → alerts.ts writes the incident row in Turso → runAlertTick classifies it incident, breakthrough, deduped → push.ts sendPush delivers by VAPID Web Push → the phone service worker shows the notification; a tap opens /alerts#incident-… → the attempt is logged in notification_sends → /notifications rolls the log up. The health surfaces behind the first steps are in Health, quota and usage surfaces.
Sources. Survey push.md §§1–5; survey website-pages.md §§B28, F1–F2; survey disagreements.md D5, D9, D14; issue #8882 (closed) as quoted in the survey; code at laptop clone ~/git/code at 4d937b3 as cited inline.
The Kaneo sync and the other PM apps
Kaneo: the execution board
Kaneo is the stack’s execution board: a Kanban web UI and API in a container on 127.0.0.1:5173, public as https://kaneo.security.cab through the amd-6-pm-stack Cloudflare Tunnel. A Postgres 16 sidecar holds its data in the pm-stack_postgres_data volume and exposes no host port.
The deployed image is the upstream image (D1). pm-stack/compose.yml pins ghcr.io/usekaneo/kaneo:2.47.0 by digest. The aggregator’s own program page text states that the board runs “our fork (developing-today-forks/kaneo) so multi-repo linking is on our schedule”, and the pm-stack/README.md Phase-1 framing repeats the fork programme. The deployment file wins: the board that runs is upstream v2.47.0. The fork exists as a repository, and fleet references were repointed to it (code#5454); the fork is not what compose runs. This chapter follows the deployment file (D1).
Kaneo holds four projects in the workspace “Developing Today”, one repository each, because upstream Kaneo allows one repository per project (pm-stack/kaneo-projects.json): code → developing-today/code, opencode → developing-today-forks/opencode, openchamber → developing-today-forks/openchamber, nix → dezren39/darwin-nix. pm-stack/connect-repo.sh reads that file to connect repositories.
How the aggregator reads Kaneo
The aggregator reads Kaneo read-only. It signs in through /api/auth/sign-in/email, then reads /api/workspace, /api/project, and paginated /api/task/tasks/\<projectId\> (aggregator/src/sources/live.ts, kaneoBoard()). Cards become board items with subject kaneo:\<slug\>/\<taskId\>; deep links are built by kaneoTaskUrl() in src/service-links.ts. Board policy filters out retired “ROADMAP Done table” cards (src/board-policy.ts). Kaneo columns map to canonical statuses in src/status-taxonomy.ts: to-do, in-progress, in-flight, in-review, done. Poll diffs feed the activity and freshness machinery, including gap and recovery tracking. When a poll succeeds, the board provenance string reads “live (Kaneo; done aged out after 7 days…)”.
A store-migration path off Kaneo Postgres exists and is gated: pm-stack/scripts/kaneo-cutover.sh and pm-stack/STORE-MIGRATION-PLAN-6816.md define a Kaneo-to-Supabase cutover with presync and promote modes, a fence, and an exact-parity gate.
The “Kaneo PM bot”
No component in the repository carries that name. The bot-like actor is Kaneo’s own GitHub integration: the developing.today GitHub App (manifest pm-stack/github-app-manifest.json, webhook https://kaneo.security.cab/api/github-integration/webhook). It acts by status-transition automation. It posts no comments and makes no decisions; it moves tasks when GitHub state changes (D1).
The transitions, per the fleet record in pm-stack/KANEO-GITHUB-SYNC.md (defect #7610):
- Branch push → task
in-progress. - PR open → task
in-review. - PR merge → task
in-review. This is a deliberate change, made 2026-11-14. The upstream default, merge →done, closed merely-referenced issues seconds after merge; the record names the casualties: #5866, #5767, openchamber#1831, #2381, #5772, #9060, #9078, #9106, #9568. - GitHub issue close → task
done, by Kaneo’s built-in fallback. - Reverse direction: when a task reaches Done, the sync applies
status:donelabels and closes the GitHub issue.
The transition settings live only in Kaneo’s Postgres, in integration.config.statusTransitions per project. Nothing in the repository sets them. If a separate “Kaneo PM bot” exists outside this repository — a Muse lane posting as a bot, for example — it is UNVERIFIED: no file under pm-stack/ or pkgs/pm-* names one.
The three guards
Three scripts keep the integration inside its rules.
Sync guard (pm-stack/kaneo-sync-guard.py). The guard asserts every GitHub integration’s transitions: no transition targets done; merge → in-review; open → in-review; push → in-progress. It heals drift in compact-JSON form and exits 1 loudly on failure. deploy.sh runs it, and the pm-kaneo-sync-guard systemd timer runs it hourly. The verified record in KANEO-GITHUB-SYNC.md is dated 2026-11-14: clean on all 4 integrations, and induced drift healed in one run. Tests: pm-stack/tests/test_kaneo_sync_guard.py.
Closure watchdog (pm-stack/closure-watchdog.py). The watchdog polls issue-close events in the Kaneo-covered repositories and reopens an automation close when the issue still has open sub-issues or the closing PR carried no closing keyword. Legitimate closes — keyword closes and human closes — are untouched. Per KANEO-GITHUB-SYNC.md, the watchdog runs every 15 minutes by a Muse sandbox cron job; its scheduler lives outside the laptop stack. The original sandbox-only script was lost in the 2026-11-21 sandbox recovery; the repo copy and its tests are the durable replacement.
Invariant sweeper (pm-stack/invariant-sweeper.py). The sweeper runs a slow-cadence deep sweep across the four Kaneo-synced repositories and checks three invariants: (a) a closed issue with non-completed sub-issues, (b) an open issue carrying status:done, (c) a Kaneo↔GitHub state mismatch. Default mode reports only. With --act it repairs (a) and (b) under the watchdog’s guards and still only reports (c). Its timer units live in pm-stack/systemd/. Invariant (a) is the same invariant the aggregator’s epic closure gate enforces from the other side (see The roadmap hierarchy: initiatives, projects, epics, aggregators).
Grist: the roadmap tables
Grist is a spreadsheet-database (Grist OSS) in a container on 127.0.0.1:8484, also reachable on the tailnet, with no tunnel hostname. The stack chose Grist over Baserow; the evaluation is in the PM design record, per the README.
Its version pin disagrees with its README (D2). The README’s Phase-2 table states gristlabs/grist-oss:v1.7.21, “pinned by digest”. pm-stack/grist/compose.yml names no tag at all: gristlabs/grist-oss pinned by digest only. Whether that digest is v1.7.21 is UNVERIFIED. This chapter follows the compose file (D2).
The aggregator reads Grist as a roadmap source: gristRoadmap() in aggregator/src/sources/live.ts reads GET \<grist\>/api/docs/\<docId\>/tables/Roadmap/records with a bearer API key and maps records to roadmap rows with subject grist:\<docId\>/Roadmap/\<recId\>. Seed and maintenance tooling lives in pm-stack/grist/: seed/roadmap.json, seed.sh, deploy.sh, reload-doc.sh, update-choice-options.py with CHOICE-OPTIONS.md (keeps Grist choice columns in sync), and validate-roadmap-seed.ts. Grist is one of three roadmap sources, and it loses title collisions to repo files; the merge rule is in The roadmap hierarchy: initiatives, projects, epics, aggregators (D12).
Pad: the planning layer
Pad (perpetualsoftware/pad) v0.18.1 is a Go binary with SQLite, in a container on 127.0.0.1:7777, also reachable on the tailnet. Its compose file pins tag and digest together.
The wiring is deliberately thin, and one README sentence overstates it (D3). The README states: “the aggregator reads no Pad data — Pad is the planning layer only.” The reconciled behaviour, which this chapter follows: the aggregator reads no Pad planning data — no source adapter consumes Pad content — and it does probe Pad for health and topology. The evidence for the probe half: aggregator/src/config.ts keeps a Pad base URL (default http://127.0.0.1:7777), src/service-links.ts lists pad as a service link alongside Kaneo and Grist, server.ts accepts pad as a stack-token exchange target, and PORTS.md records /api/health reporting Pad up on 7777 in the 2026-11-05 audit (D3).
Pad’s content in the repo is seed only: pad/seed/plans-pm-stack-design.md, plans-phase-1-as-built.md, and plans-phase-2-plan.md, loaded by pad/seed.sh. No code in the repository reads Pad plans back. Actual human use of the Pad UI is UNVERIFIED from the repository.
ready-for-agent: the dispatch UI layer
ready-for-agent is an upstream npm package (ready-for-agent@1.1.0, no container image) serving a UI and GraphQL API on port 6056, loopback and tailnet through a socket proxy, as a systemd user unit. Its config (ready-for-agent/config.json) registers the same four repositories as Kaneo. Each repository sets defaultModel: "opencode-go/kimi-k3.1-pro", mergePolicy: "OFF" — the config’s own words are “human merge always — never enable auto-merge here” — and includeAllIssueAuthors: true; none is paused. install.sh clones the repositories; apply-config.sh registers them through the GraphQL API idempotently. The aggregator reads it through a source adapter (aggregator/src/sources/ready-for-agent.ts). How much dispatch traffic flows through ready-for-agent against the stack’s own dispatch service is UNVERIFIED. The dispatch service itself is treated in Queues and dispatch methods, from the PM side.
The projector, briefly
The projector (pm-stack/projector/, port 7801) links the apps in this chapter without becoming another source. Its README states its limit exactly: “It links and projects; it never becomes a fifth source of truth and never writes back to GitHub / Kaneo / Pad / Grist.” It takes GitHub webhooks at POST /github/webhook (HMAC-checked, deduped by delivery GUID), reconciles by polling, and serves a link registry (GET|POST|DELETE /links) plus reads (GET /items, GET /comments, GET /subjects/\<subject\>). The aggregator consumes it through aggregator/src/sources/projector.ts for links and latest comments per subject.
Deployment frame
One nixos-rebuild switch on laptop host amd deploys the stack. The user units pm-aggregator, pm-projector, pm-dispatch, and pm-tunnel are declared in nixos/services/pm-stack; Kaneo, Postgres, Pad, and Grist are containers. Ports are registered in pm-stack/PORTS.md: aggregator 4870, freshness IPC 4871, console 4872, dispatch 4879, Kaneo 5173, ready-for-agent 6056, Pad 7777, projector 7801, Grist 8484.
Sources. Survey apps.md §§1–4, 7; survey roadmap.md §2; survey disagreements.md D1, D2, D3, D12; code at laptop clone ~/git/code at 4d937b3 as cited inline.
Queues and dispatch methods, from the PM side
Why this chapter exists
The fleet book owns the queue system: the broker, the task store, leases, and placement. This chapter describes the same machinery from the PM side: the points where the PM stack puts work into queues, takes work out of them, and shows queue state to Drew. Overlap with the fleet book is intended. Where the fleet book has the full treatment, this chapter links to it and does not duplicate it:
- The queue itself: The queue: tasks, lanes and leases.
- The bridge: The bridge: fleet messaging and its reference, fleet bridge.
- The queue client: The queue client.
- Dispatch from the fleet side: Dispatch and dispatch-test and fleet dispatch.
All five fleet-book URLs above were fetched live at assembly (2026-11-23) and serve the chapters named; the fleet book lives at pkgs/fleet/book/ in the repo, with no src/ folder. Voice spot-check against pkgs/fleet/book/concepts/queue.md: the fleet chapter’s claim rule — the claim pick is atomic, highest priority first (priority ASC, created_at ASC) — is the same rule this chapter states as priority-then-age order in §1 below. This chapter covers only the PM stack’s own dispatch surfaces; the fleet book carries the dispatch treatment from the fleet side.
The queues the PM stack sees
From the PM side, “the queue” is four concrete surfaces:
- The fleet queue. Tasks carry a numeric priority and are claimed in priority-then-age order. The band scale and the program-to-band mapping are recorded in Prioritisation: how order is decided and recorded. The PM stack reads this queue in the aggregator’s
/queuepage — in progress, blocked, recently completed, and next-up work across projects, with twins/api/queue.jsonand/api/orchestration.json— and in the console’s Now, Next, and Queue views. - The claimant’s four queues. The claimant’s candidate gate polls across four queues before launching a session (see The claimant: keeping sessions honest). The survey names the count, four, and the polling file,
poll.py; it does not name the four queues individually, and this chapter does not name them either. - The projector’s queue view. The projector serves an HTML queue view of its link and projection state (
pm-stack/projector/src/queue-view.ts,queue-view-html.ts, port 7801). Its route path is UNVERIFIED: the survey records the file names only. - Intake packets. Console intake and console prompts enter the queue as packets:
triage.enqueuefor new intake,prompt.enqueueonce an issue exists, and a top-band packet for an owner prompt from the console. An intake submission creates the GitHub issue and the queue packet in one action.
Dispatch method 1: pm-dispatch, launch-or-enqueue
The PM stack’s own dispatch service is pm-dispatch (pm-stack/dispatch/, pkgs/pm-dispatch/): a Bun intake service on port 4879, public as dispatch.security.cab. Its single entry point is POST /v1/sessions, and the service is API-only; no web UI exists in dispatch/src/.
One call performs the launch-or-enqueue sequence:
- Create the tracking GitHub issue, labelled
source/dispatch. - Enqueue a
repo-task/v1queue task. - Create an OpenCode session on the laptop server (127.0.0.1:13420).
- Claim the task immediately for
dispatch-opencode, with a 6-hour lease.
The service is authenticated. A placement guard (src/placement-guard.ts) runs before launch: it pins explicit OpenCode Go and ClinePass model hints to the active account’s quota pool, and fails pre-commit when that pool is walled. A walled pool therefore stops a dispatch before any issue, task, or session exists. An example caller workflow ships in dispatch/examples/dispatch-workflow.yml.
Dispatch method 2: the claimant, poll-and-launch
The claimant is the polling method. Where pm-dispatch launches in response to a call, the claimant polls its queues, gates candidates, applies its concurrency cap (36 claimant roots), and launches, binds, and prompts sessions itself. Its six-step fire, its immediate single-task path (launch_one.py), and its batch path (dispatch_batch.py) are treated in The claimant: keeping sessions honest.
The contrast that matters from the PM side: a pm-dispatch task is claimed at creation, by the service, for a named claimant identity. A claimant task is claimed at poll time, by the lane, under the cap. Both claims land on the same queue system the fleet book describes.
Dispatch method 3: ready-for-agent
ready-for-agent is the third method: an upstream dispatch UI with a GraphQL API on port 6056, registering the same four repositories as the Kaneo board, with merging set to OFF in its config — a human merges, always. Its registration, defaults, and aggregator adapter are treated in The Kaneo sync and the other PM apps. The split of real dispatch traffic between ready-for-agent and pm-dispatch is UNVERIFIED.
How the PM surfaces steer the queue
Dispatch from the PM side is not only launch. The console and dashboard steer already-queued work:
- Console queue actions.
POST /console/api/queue/\<task\>/\<action\>carries the queue verbs the console exposes, claim and block and the park family among them, executed through the queue broker and audit-logged before execution. - Console board order. The console board reads the queue in the priority-then-age order of §1 and shows counts, claimed, queued, and blocked-with-reason groups.
- Dashboard actions. A
sessionaction (poke, answer, stop) is consumed by the fast session-action consumer foropencode-laptop; atriageorstatus-requestaction is consumed by the orchestration pass. The action flow is treated in Question sets and the answer-back flow and Prioritisation: how order is decided and recorded. - Prompt packets. A console
#asksubmission files its issue and enqueues its packet at the top band, so an owner’s own words enter the same order as every other task, at the front of it.
What this chapter does not cover
Broker internals, lease mechanics beyond the dispatch lease stated above, placement rules beyond the pm-dispatch guard, and the transport that carries queue traffic are fleet-book subjects. This chapter links to that book at the head of the chapter and stops at the PM stack’s own surfaces: the queue as displayed, the packets as enqueued, and the three dispatch methods as the PM stack runs them.
Sources. Survey apps.md §§4, 7, 8, 19; survey roadmap.md §§3–4; survey website-pages.md §§A19, E, G; coverage ledger (fleet book chapter paths for the queue, bridge, and queue-client links); code at laptop clone ~/git/code at 4d937b3 as cited inline.
The claimant: keeping sessions honest
What the claimant is
The claimant is the OpenCode execution lane (pm-stack/opencode-claimant/, issue #3026). It takes queue tasks, launches OpenCode sessions for them on the laptop, binds each session to its task, and supervises the sessions it launched. Its name in this book is its job: a session that claims a task is held to that claim — supervised while it runs, recovered when it sticks, and capped so claims never exceed the concurrency the laptop carries.
The fire: six steps
claimant.py fires in six steps:
- Supervision and recovery. Bound sessions that are stuck are supervised and recovered first, before new work launches.
- Candidate gate.
poll.pypolls across four queues and gates candidates for launch. - Concurrency cap. Launches stop at the cap: 36 claimant roots, in force since 2026-11-05.
- Launch. A session is launched for the task.
- Bind and prompt. The session is bound to its task and given its prompt (
prompt.mdin the claimant directory). - Logging. The fire is logged to
~/.local/state/opencode-claimant/fires.jsonl.
The survey names the six-step shape and the step contents at this grain; the internal order of steps 4 and 5 inside a single launch is stated here as launch, then bind and prompt, following the survey’s step list.
The supporting tools
launch_one.pylaunches one task immediately, outside the polling cycle (#8187).dispatch_batch.pydispatches a batch of tasks.send_to_opencode.pysends input to a running OpenCode session.babysitter.pyandnudges.pycarry the supervision side: watching bound sessions and nudging them. The survey names both files and their place in the directory; their internal rules are beyond the depth the survey supports, and this chapter claims no more than their presence and role by name.- Migrations
migration-0021.sqlthroughmigration-0026.sqlcarry the claimant’s store changes. - A static page,
index.html, sits in the claimant directory. What it displays is UNVERIFIED: the survey records its existence and did not read its contents.
How honesty is enforced
Three mechanisms in the surveyed code do the work this chapter’s title names:
- Recovery before novelty. Step 1 runs before the candidate gate. A stuck bound session is recovered before its slot and its task are treated as free, so a task is not silently claimed twice by a replacement session while the first session still holds it.
- The cap is a count of roots. The concurrency cap counts claimant roots — 36 since 2026-11-05 — and the gate in step 2 admits candidates only under it. The cap is the bound that keeps claimed work equal to supervised work.
- Every fire leaves a record. Step 6 appends to
fires.jsonl. A launch with no log line is outside the design; the log is the audit surface for what the claimant started.
Two adjacent guards sit outside the claimant and protect the same invariant from the GitHub side. The lane guard (pm-stack/lane-guard/lane_guard.py) makes deterministic ownership and park-note checks for queue lanes: a lane counts as held only on explicit markers (held, user/owned, do-not-auto-edit); assignees and work/assigned never count as held. Its note check suppresses repeat park notes. The guard was built after repo-sweeper’s blanket assignment produced more than 50 duplicate park notes in two days (#7616). The claimant’s cap step is also a named secondary caller of the health hooks: a cap-step failure fires a read-only health hook (see Health, quota and usage surfaces).
Place in the stack
The claimant is one consumer of the queue among several. The dispatch service claims its own launched task immediately for dispatch-opencode with a 6-hour lease; the claimant polls and claims under its cap. Both flows, and the queue they share, are described in Queues and dispatch methods, from the PM side. Scheduled OpenCode sessions are a separate mechanism and are treated in Scheduled jobs and the history they keep.
The claimant directory carries a large test suite and a set of historical slice reports (SLICE1_*.md and .txt). The slice reports are history, not current specification. The component’s last commit in the surveyed clone is 2026-11-23, and the survey marks it actively developed.
Sources. Survey apps.md §§18–19; survey website-pages.md §G; code at laptop clone ~/git/code at 4d937b3 as cited inline.
Scheduled jobs and the history they keep
Two components, two jobs
This chapter covers two components with similar names and different jobs:
- opencode-scheduled-jobs (
pm-stack/opencode-scheduled-jobs/) runs work on a schedule: an OpenCode session fired by a systemd timer. - scheduled-history (
pm-stack/scheduled-history/) keeps the record: a reconciler that collects what OpenChamber’s scheduled tasks actually ran, and freezes the result.
The first component produces runs. The second component makes runs auditable after the fact.
The scheduled job: one pilot
opencode-scheduled-jobs ships exactly one pilot job. jobs.json defines it; its name is quota-freshness-summary. A systemd timer fires an OpenCode session that summarises quota freshness.
The installer is install-laptop.sh. It enables the timer only when run with --enable. The component README states the pilot’s current state in its own words: “this pilot is currently enabled.”
Outputs land in a fixed state directory: ~/.local/state/opencode-scheduled/quota-freshness-summary/, holding latest.log (the newest run’s output) and history.jsonl (one line per run, appended). The history file is the job’s own memory: latest state for a reader who wants the current answer, and an append-only line history for a reader who wants the sequence.
The component’s last commit in the surveyed clone is 2026-11-22.
The history collector
scheduled-history is a polling reconciler for OpenChamber scheduled-task runs (#2174). Its collector, collect.py, works in four steps:
- List. It reads scheduled runs from
openchamber schedule list --json. - Key. Each run is keyed by the pair (task id,
lastScheduledFor). The key is the identity of a scheduled occurrence: the same task scheduled again is a new run, and the same occurrence polled again is the same run. - Enrich. Token and cost figures for the run are read from the OpenCode session store and attached to the run’s row.
- Freeze. Terminal rows are frozen. A finished run’s record stops changing; later polls do not rewrite it.
A watchdog (watchdog.py) accompanies the collector. The component ships service and timer units, and tests. Its last commit in the surveyed clone is 2026-11-17.
The shared session store
Both halves of this chapter meet in the OpenCode session store. scheduled-history enriches its rows from that store. A third component reads the same store for a different surface: opencode-usage-export (pm-stack/opencode-usage-export/) runs opencode-usage-export.mjs under a service and timer and exports OpenCode usage from the session store (opencode.db, the #2072 exporter) for the quota and usage surfaces. The store is therefore a record three readers depend on: the history collector for per-run cost, the usage exporter for quota surfaces, and the sessions registry on the dashboard. Those surfaces are described in Health, quota and usage surfaces.
What the history guarantees, and what it does not
The guarantees come from the keying and freezing rules:
- A scheduled occurrence has exactly one identity, (task id,
lastScheduledFor), across polls. - A terminal row, once frozen, is the final record for that occurrence.
- Cost and token figures on a row come from the session store, not from the scheduler’s own report.
One limit is stated plainly: the survey establishes the collector’s design from its code and units, and does not probe a live run. Whether the collector’s timer is firing on the laptop today is UNVERIFIED in the survey this chapter rests on. The same limit applies to the pilot job’s recent output: the README states the pilot is enabled, and this chapter reports that statement as a repo record, not as a probed live state.
Neighbours
Scheduled jobs in this stack are deliberately small: one pilot job, one history collector. The stack’s recurring timers as a class — sync guards, sweeper, health collectors, exporters — are inventoried with their surfaces in Health, quota and usage surfaces and in The Kaneo sync and the other PM apps. The claimant’s polling cycle is not a scheduled job in this chapter’s sense; it is an execution lane, treated in The claimant: keeping sessions honest.
Sources. Survey apps.md §§20, 21, 24; code at laptop clone ~/git/code at 4d937b3 as cited inline.
Health, quota and usage surfaces
Scope of this chapter
This chapter describes surfaces: the pages, stores, and jobs that report health, quota, and usage. It quotes no quota figures. Figures — pool percentages, dollar amounts, reset times as live values — belong to the LLM-plans chapters, which own them as dated reads. A threshold that defines a notification class is a rule, not a figure, and appears in Push notifications: detection to phone to answer, not here.
The health page and its twin
/health and /api/health are one assembly: a single health context feeds both (aggregator/src/server.ts). The page reports live probes for every stack service, feed section ages, last job runs, this dashboard’s own render history, and the services-and-ports topology.
The sources named in code are aggregator/src/health.ts, stack-health.ts, host-health.ts, build-health.ts, watchdog*.ts, and slo*.ts, plus one component outside the aggregator package: the host-health collector (pm-stack/host-health-collector.py), a laptop user service on a 5-minute timer (pm-host-health service and timer). The collector writes the JSON snapshot the aggregator derives watchdog tier items from (#10141). It exists because the packaged aggregator cannot collect host state itself; the snapshot carries the claimant mode file, the backup last-run record, and user-unit and timer states for pm-git-sync, pm-projector-reconcile, pm-kaneo-sync-guard, and pm-dashboard-backup.
/api/health also returns the render registry: one entry per manifest page with its route, last rendered time, and ok flag (#1147). One page is outside that registry by a manifest gap: /decisions/\<setId\> is missing from SUBROUTE_PARENTS, so decision-page renders are not counted there (D8; see Question sets and the answer-back flow).
Health hooks: failure-triggered diagnosis
The health hooks (pm-stack/health-hooks/) are a Python runner (run.py) with two wrappers: pm-stack-reachable.sh and opencode-working.sh (#9571). Their contract is narrow:
- Trigger. The aggregator’s stack sentinel fires a hook once on a transition to 3 consecutive failures, and once on recovery. Two secondary callers fire the same hooks fire-and-forget: the claimant cap step and
launch_one.pyin lane-launch, and the aggregator live source (aggregator-tick). - Action. A hook run is read-only diagnosis and report. No remediation ships in the hooks.
- Record. Incidents append as JSONL to
~/.local/state/pm-aggregator/health-hook-incidents.jsonl, and the runner makes a best-effort post to the alert throat with thestackHealthextension. One shared 60-second deadline bounds the run.
A hook incident enters the same alert pipeline as every other incident; its path from throat to phone is traced in Push notifications: detection to phone to answer.
Report-only monitors
fleet-monitor (pm-stack/fleet-monitor/) holds two Python monitors. Both are report-only: a finding is a report, never an automatic repair and never a failure state.
epic_close_check.pyis the weekly adapter for the aggregator’s epic closure gate. A blocked epic is a finding, not a failure. The gate itself is described in The roadmap hierarchy: initiatives, projects, epics, aggregators.review_loop_checks.pyis the second monitor; the survey names it and its report-only character, and this chapter claims no more than that.
Both monitors carry tests. Their last commit in the surveyed clone is 2026-11-22.
The quota and usage pages
Two dashboard pages carry quota and usage:
/quota(Usage & billing), twin/api/quota.json, with a per-service detail page at/quota/service/\<id\>and refresh posts atPOST /quota/refreshandPOST /api/quota/refresh. The page reports token quotas per pool, pay-as-you-go dollars, and every SaaS service’s usage against its limits. The machinery behind it spans thequota-*.tsmodule family (current state, forecast, anomaly, reweight, admission, weekly review), the charges family (charges-catalog,charges-collect,charges-match), spend attribution and rollups, and the gather and forecast scripts. Reweight output is a proposal, recorded as a record or a pull request; it changes no order by itself (see Prioritisation: how order is decided and recorded)./aa(Cost Explorer), twin/api/aa.json, holds two tabs: the AA Explorer (Artificial Analysis measurements, frontier charts, and plan, API, and per-task efficiency) and the Model Explorer (every model in the fleet’s catalogues, with pool seats, plan, and measured value).
The console carries its own smaller equivalents: the #more/platform, #more/releases, #more/machines, and #more/services views, drawn from the platform registry and the ops layer.
The jobs behind the quota surfaces
Four exporter and checker components feed the pages above. None of them renders a page; each writes a store or a snapshot that a page reads.
- quota-check (
pm-stack/quota-check/) is one helper:turso-mirror-read.py(#6828). It reads the fleet-platform and fleet-mirror Turso databases per database over the libsql HTTP interface, with per-database tokens fetched by secret name and a single fallback. It explicitly does not use the Turso CLI’s org token. - provider-usage (
pm-stack/provider-usage/) ischeck-usage.py: a provider-usage and OpenCode fleet snapshot written for the “Jules keeper job”, which consults the snapshot when choosing a failover model.reconcile.pyand tests accompany it. Its snapshot paths point into a goal workspace, which marks it as a Muse-side job’s tooling kept in the repository. - Browser-dependent exporters (
pm-stack/exporters/) are the watchdog core for quota sources reachable only through a logged-in website (#6032). The decision core is built and tested: failure classes and a repair ladder inwatchdog-state.ts, and the top-rung hand-off inwatchdog-escalation.ts(incident issue first, then a queue task, then a NEEDS DREW surfacing line). The only adapter present is a synthetic fixture; Mistral is named as the first real adopter, with the Claude console and Open Design named as later adopters. Live per-provider production use is UNVERIFIED: only the fixture adapter ships. - Dedicated exporters.
pm-stack/cloudflare-export/(cloudflare-quota-export.mjs, service and timer) exports Cloudflare quota and usage into the quota system.pm-stack/meta-exporter/(meta-quota-export.mjs, service and timer) exports Meta quota and usage; its README records a flow limitation — an absent tab yields a null pay-as-you-go balance field. opencode-usage-export reads the OpenCode session store into the same surfaces and is treated in Scheduled jobs and the history they keep.
Reading the surfaces together
The three families answer three different questions, and this book keeps them apart. Health surfaces answer “is it up, and when did it last render and run”. Quota surfaces answer “what is consumed, against which limit, under which proposal”. Usage surfaces answer “what ran, and what did the session store record”. A red health probe is an incident input to the push pipeline. A quota state is an input to prioritisation proposals and to two notification classes. Neither family writes the other’s record.
Sources. Survey apps.md §§12, 15, 17, 21–23, 27–28, 30; survey website-pages.md §§C–D; survey disagreements.md D8; code at laptop clone ~/git/code at 4d937b3 as cited inline.
The aggregator website, page by page
The aggregator dashboard is a Bun application: routing in pm-stack/aggregator/src/server.ts, the page manifest in pm-stack/aggregator/src/pages.ts, renderers in pm-stack/aggregator/src/render.ts. It binds 127.0.0.1:4870 and the tailnet address. In public it sits behind the console gate at pm.security.cab: the console proxies non-/console GET and HEAD paths to the dashboard for a signed-in owner.
This chapter covers all 29 aggregator routes in the survey census: the 23 manifest pages in PAGES (pages.ts) and the 6 detail and sub-routes under them. Manifest entries carry a navigation group from PAGE_GROUPS in the same file — Overview, Work, Ops, System — and a curation flag, nav: primary or nav: dropdown (the #1497 curation). Every entry below follows the same shape: what the page is, its inputs, its defaults where the survey gives them, its behaviour, and its failure shapes where the survey records them. The HTTP and API surface behind these pages is in Aggregator HTTP routes and API; the phone surface is in The console, view by view.
/ — Overview
- What it is: The stack front door (#1134): needs-you, projects, quotas, and health at a glance. Manifest group Overview,
nav: primary. - Inputs: None recorded in the survey. Machine twin:
/api/overview.json. - Behaviour: The landing page of the dashboard; the item detail and discuss sub-routes (below) name it as their parent.
- Failure shapes: None recorded in the survey.
/today — Today
- What it is: The day’s top objectives and per-project momentum. Manifest group Overview,
nav: primary. - Inputs: The full form is
/today?full=1. Machine twin:/api/today.json. Fragment form:/frag/today. - Behaviour: Renders the day view from the canonical projection; the fragment form serves the Datastar partial for in-page refresh.
- Failure shapes: None recorded in the survey.
/digest — Digest
- What it is: The scheduled PM digest (#1278): moved, blocked, needs Drew, done, and quota outlook, drawn from the canonical projection. Manifest group Overview,
nav: dropdown. - Inputs: The archive form is
/digest?date=<date>. Machine twin:/api/digest.json; the digest list is/api/digests.json. - Behaviour: With no date, the page shows the current digest; with a date, the archived digest for that date.
- Failure shapes: None recorded in the survey.
/attention — Needs you
- What it is: The attention queue: NEEDS USER against NEEDS ORCHESTRATOR, and every live session. Manifest group Overview,
nav: primary. - Inputs: Machine twin:
/api/attention.json. Fragments exist under/frag/attention/*(recorded in a comment at the/attentionbranch ofserver.ts). - Behaviour: The page the needs-Drew and blocked-age push notifications land on, anchored to the item acted on.
- Failure shapes: None recorded in the survey.
/decisions — Decision sets
- What it is: The index of every raised decision set (#8867): new today, this week, and all sets, with open-question counts per set. Manifest group Overview,
nav: primary(promoted in #9354, per the comment inpages.ts). - Inputs: Each row opens the set’s own page,
/decisions/<setId>(below). - Defaults:
pages.tsdeclares noapi:twin for this page — one of only three manifest pages without one. The server implements a decisions API regardless; see D7 in the Sources note and The question sets, enumerated. - Behaviour: The index is a navigation surface over the decision sets; answering happens on the per-set page or in the console.
- Failure shapes: None recorded in the survey.
/reports — Reports
- What it is: Review report versions and resolve prose conflicts without overwriting stored text. Manifest group Work,
nav: dropdown. - Inputs: Machine twin:
/api/reports.json. Writes:POST /api/reports/resolveandPOST /api/reports/late-update. - Behaviour: A conflict resolves by choosing a stored version; the stored text itself is not overwritten.
- Failure shapes: None recorded in the survey.
/board — Board
- What it is: The curated cross-repo work-in-progress board. Manifest group Work,
nav: dropdown. - Inputs: Machine twin:
/api/board.json. Fragment form:/frag/board. - Behaviour: Board items carry provenance from their sources; the Kaneo poll feeds the board, and board policy filters retired “ROADMAP Done table” cards out.
- Failure shapes: None recorded in the survey.
/roadmap — Roadmap
- What it is: The program roadmap at every grain. Manifest group Work,
nav: primary. - Inputs: Machine twin:
/api/roadmap.json. The route preserves the view and filter parametersview,viewer, andvf.*. - Behaviour: Rows merge the Grist table, the repo files, and the project pool; on a title collision the repo file wins over Grist (#1738). Annotations write back through
POST /api/roadmap/annotationsandPOST /api/roadmap/annotations/alias. - Failure shapes: None recorded in the survey.
/conflicts — Source conflicts
- What it is: One read-only queue of every live source disagreement, with both values and its age. Manifest group Work,
nav: dropdown. - Inputs: Machine twin:
/api/conflicts.json. - Behaviour: Read-only by design: the page presents disagreements; it does not resolve them.
- Failure shapes: None recorded in the survey.
/quota — Usage & billing
- What it is: Token quotas, PAYG dollars, and every SaaS service’s usage against its limits. Manifest group Ops,
nav: primary. - Inputs: Machine twin:
/api/quota.json. Refresh:POST /quota/refreshandPOST /api/quota/refresh. One service’s detail page is/quota/service/<id>(below). - Behaviour: Data comes from the quota module family in
src/quota-*.ts(about 25 modules, including current state, forecast, anomaly, reweight, admission, and the weekly review) and the charges and spend machinery behind it (src/charges-*.ts,src/spend-*.ts,src/saas-extract.ts). - Failure shapes: None recorded in the survey.
/dns — DNS register
- What it is: Every domain: next renewal, unused, earmarked (#902’s register). Manifest group Ops,
nav: dropdown. - Inputs: Machine twin:
/api/dns.json. - Behaviour: A register view over the domain estate.
- Failure shapes: None recorded in the survey.
/aa — Cost Explorer
- What it is: Two tabs: the AA Explorer (Artificial Analysis measurements, frontier charts, plan, API, and per-task efficiency) and the Model Explorer (every model in the fleet’s catalogs, pool seats, plan, measured value). Manifest group Ops,
nav: dropdown. - Inputs: Machine twin:
/api/aa.json. The static computation asset is/assets/aa-explorer-computations.js. - Behaviour: The page reads the deployed OpenCode config’s provider catalogs and route definitions and joins them to Artificial Analysis measurements; it measures models and makes no model calls — see Model dependencies.
- Failure shapes: None recorded in the survey.
/sessions — Sessions
- What it is: The agent and session identity registry: who ran what, tokens, task links. Manifest group Ops,
nav: dropdown. - Inputs: Machine twin:
/api/registry.json. The twin is not/api/sessions.json. - Behaviour: Session records carry the session’s model or route as a provenance string.
- Failure shapes: None recorded in the survey.
/search — Search
- What it is: Search over board, roadmap, registry sessions, DNS, services, and tier items, by title or by linked issue or PR reference. Manifest group Ops,
nav: dropdown. - Inputs: Machine twin:
/api/search.json. - Behaviour: A title and reference search over the aggregator’s own projections. It is not a vector search and uses no embedding model — see Model dependencies.
- Failure shapes: None recorded in the survey.
/events — Events
- What it is: The cross-stack chronological stream of dashboard actions, orchestration publishes, and session outcomes. Manifest group Ops,
nav: dropdown. - Inputs: Machine twin:
/api/events.json, paginated;server.tsemits arel=nextlink for the next page. - Behaviour: The HTML page links to its twin.
- Failure shapes: None recorded in the survey.
/comments — Comments queue
- What it is: Dashboard comments still waiting on a loop (#1210): awaiting triage, GitHub comments pending and failed, kind and state counts, and the last error per failed item. Manifest group Work,
nav: dropdown. - Inputs: Machine twin:
/api/comments/queue.json; the full-list twin is/api/comments.json. - Behaviour: The dashboard itself never writes GitHub: a fleet job applies and posts comments and reports the result back through
POST /api/comments/github-result. - Failure shapes: A failed item shows its last error on this page.
/chat — Chat
- What it is: The prompt chat and session surface (#10035): every prompt submission in its thread — reply, cross-references, archive — plus the unread count behind the navigation badge. Manifest group Work,
nav: dropdown. - Inputs: The manifest names the twin
/api/prompt/threads. The full prompt route family is in Aggregator HTTP routes and API. - Behaviour: A prompt submitted with notifications on receives a
prompt-class push when it is answered or fails. - Failure shapes: A failed prompt is one of the two events that trigger the
prompt-class push.
/program — Program status
- What it is: The projects hub: every project’s status, roadmap, and tracked work. Manifest group Work,
nav: primary. - Inputs: Machine twin:
/api/program.json; the per-project twin is/api/program-project.json. One page per project lives under/program/<id>(below). - Behaviour: The projects-pool section of this page is the target of the
/projectsredirect (below). - Failure shapes: None recorded in the survey.
/queue — Queue
- What it is: In progress, blocked, recently completed, and next-up work across projects. Manifest group Work,
nav: primary. - Inputs: Machine twin:
/api/queue.json. Fragment form:/frag/queue. Orchestration twin:/api/orchestration.json. - Behaviour: A projection of queue state across projects; the queue itself is covered in the fleet book at https://developing-today.github.io/code/fleet/.
- Failure shapes: None recorded in the survey.
/health — Health
- What it is: Service and page health (#1147): live probes for every stack service, feed section ages, last job runs, this dashboard’s render history, and the services and ports topology (#1137). Manifest group System,
nav: primary. - Inputs: Machine twin:
/api/health— no.jsonsuffix. One health assembly feeds both the page and the twin. - Behaviour: Sources named in code:
src/health.ts,src/stack-health.ts,src/host-health.ts,src/build-health.ts, thesrc/watchdog*.tsandsrc/slo*.tsmodules, andpm-stack/host-health-collector.py, the laptop user-service snapshot the packaged aggregator cannot collect itself (claimant mode file, backup last run, and user-unit and timer states for pm-git-sync, pm-projector-reconcile, pm-kaneo-sync-guard, and pm-dashboard-backup). The twin additionally returns per-page render state: each manifest page’s route, last-rendered time, and ok flag — the #1147 render registry. - Failure shapes: A page whose renders fail appears in the twin’s render state with its ok flag false.
/alerts — Alerts
- What it is: The alert throat (#3676): sentinel incidents, Web Push delivery with one escalation, ack and close, and the Turso ledger behind them. Manifest group System,
nav: primary. - Inputs: Machine twin:
/api/alerts.json. Incidents carry the lifecycleopen,acked,closed(src/alerts.ts); ack and close happen on this page. The preferences sub-route is/alerts/preferences(below). - Behaviour: External producers enter through
POST /api/alerts; the engine insrc/alerts.tsdecides delivery per subscription. - Failure shapes: None recorded in the survey.
/notifications — Notifications
- What it is: Notification measurement (#3319): the weekly sent-against-acted-on roll-up over the alert throat’s send ledger, and display-only default-off proposals under 10%. Manifest group System,
nav: dropdown. - Inputs: Machine twin:
/api/notifications.json. - Behaviour: Display and measurement only; proposals on this page are default-off and display-only.
- Failure shapes: None recorded in the survey.
/pages — All pages
- What it is: The
pages.tsmanifest rendered as a page: every registered view in one place. Manifest group System,nav: dropdown. - Inputs:
pages.tsdeclares no twin for this page. - Behaviour: This page is the manifest’s self-listing; this chapter’s 23 manifest entries are its content.
- Failure shapes: None recorded in the survey.
/item/<subject> — Item detail
- What it is: The detail page for one item. Parent:
/. Recorded inSUBROUTE_PARENTSinpages.ts. - Inputs: Subject forms handled in
server.tsare object references with the prefixesgh:,session:, andorch:. The machine twin pattern is/api/item/<id>.json. - Behaviour: One page per subject, resolved from the reference in the path.
- Failure shapes: An unresolved id is a 404 case (#4969, comment in
server.ts).
/discuss/<subject> — Discuss
- What it is: The discussion and comment surface for one item. Parent:
/. Recorded inSUBROUTE_PARENTS. - Inputs: Writes go through
POST /api/comments. - Behaviour: Comments written here enter the dashboard comment store; the dashboard itself never writes GitHub — a fleet job applies the comment and reports back.
- Failure shapes: None recorded in the survey.
/program/<id> — One project
- What it is: One project’s page. Parent:
/program. Recorded inSUBROUTE_PARENTS. - Inputs: Data twin:
/api/program-project.json. - Behaviour: The per-project cut of the program hub: status, roadmap, and tracked work for the one project named in the path.
- Failure shapes: None recorded in the survey.
/quota/service/<id> — One service
- What it is: One SaaS or quota service’s detail page. Parent:
/quota. Recorded inSUBROUTE_PARENTS. - Inputs: Twin:
/api/quota/service.json, read inserver.tsin a?service=style. UNVERIFIED: the exact query contract beyond the route existing. - Behaviour: The per-service cut of the usage and billing page.
- Failure shapes: None recorded in the survey.
/alerts/preferences — Notification preferences
- What it is: The preferences surface for every notification class: per-class toggles, quiet hours, and a per-class test send. Parent:
/alerts. Recorded inSUBROUTE_PARENTS. - Inputs: Twin:
/api/alerts/preferences.json. The page reads stored subscriptions through the/api/push/subscriptionsupsert path (comment inserver.ts). - Defaults: All eight preference classes default on for a new subscription; quiet hours default to 23:00–07:00 America/Chicago. The eight classes are
incident,needs-drew,quota-wall,quota-near-wall,section-risk,stack-health,blocked-age, andprompt. D14: issue #8882’s premise of six classes is stale; the code defines eight. - Behaviour: Toggles write the subscription’s class map, which the engine reads on its next tick. Breakthrough classes ignore quiet hours: an incident is always immediate.
- Failure shapes: None recorded in the survey.
/decisions/<setId> — One decision set
- What it is: One decision set’s answer page, reached from
/decisionsand from the decision-set push. The model is in the header ofpm-stack/aggregator/src/decisions.ts. - Inputs: The token in the URL,
?t=<token>, is part of the address. Answers post to/api/decisions/<setId>/submit,/defer, and/request-info, with draft and edit events to/api/decisions/<setId>/events. - Behaviour: The page is the answer surface for a set: one push covers the whole set and its tap opens this page. Parent by navigation is the
/decisionsmanifest page. D8:SUBROUTE_PARENTSdoes not list this page, somanifestRouteForreturns null for it and its renders sit outside the #1147 render registry that/api/healthreports. - Failure shapes: None recorded in the survey.
/projects — Redirect, not a page
- What it is: Not a page. The route redirects to the projects-pool section of
/program(manifest comment inpages.ts; route branch inserver.ts). - Inputs: The redirect preserves the
view,viewer, andvf.*parameters. Its machine twin/api/projects.jsonstill serves. - Behaviour: Included in the census as the sixth sub-route so the redirect is on record; it renders no page of its own.
- Failure shapes: None recorded in the survey.
Sources: PM-SURVEY website census (pm-stack/aggregator/src/pages.ts, pm-stack/aggregator/src/server.ts, pm-stack/aggregator/src/render.ts, pm-stack/aggregator/src/decisions.ts, pm-stack/aggregator/src/notifications.ts, pm-stack/aggregator/src/alerts.ts), survey files website-pages.md, push.md, and disagreements.md (D7, D8, D14), census date 2026-11-23.
The console, view by view
The PM console is a Bun server (pm-stack/console/src/server.ts, base path /console, port 4872) serving a static single-page application: shell pm-stack/console/public/index.html (title “PM”, one <main id="view">, a bottom tab bar, and a global Ask/confirm <dialog id="ask">), logic in pm-stack/console/public/app.js, with outbox.js and sw.js alongside. Views are hash routes in the VIEWS map in app.js (at about line 2955); routing is parse() in the same file. An unknown hash falls back to now. The console is also served at the edge by the pm-console-edge Worker and wrapped as an Android TWA.
This chapter covers all 21 console hash views in the survey census, one entry each, in census order. Every entry follows the same shape: what the view is, its inputs, its defaults where the survey gives them, its behaviour, and its failure shapes where the survey records them. Console actions post to the generic endpoint POST /console/api/act, covered in The question sets, enumerated and Aggregator HTTP routes and API.
#now — Now
- What it is: The current board: in-progress and next work (
viewNow). - Inputs: Data from
Work.board()(console/src/work.ts): queue counts, claimed, queued, and blocked-reason groups. - Defaults: The fallback view: an unknown hash lands here.
- Behaviour: The console’s home view, drawn from the queue’s current state.
- Failure shapes: None recorded in the survey.
#next — Next
- What it is: Next-up work and the ops preview (
viewNext, extraops). - Inputs: None recorded in the survey beyond the view’s
VIEWSentry. - Behaviour: The forward-looking companion to
#now. - Failure shapes: None recorded in the survey.
#needs and #needs/<sub> — Needs me
- What it is: Everything waiting on the owner (
viewNeeds, extraquestions), split into segmented sub-views:questions,hands,reviews,other. - Inputs: The aggregator’s needs-Drew census,
GET /api/needs-drew.json, split byconsole/src/work.ts(Work.census()): hands items carry ahands:v1marker, reviews carry theuser/reviewlabel with no hands marker, and the rest are escalated items with no stated action. Session-derived waiting items come from/api/attention.json(Work.sessions(), tierneeds-drew). Decision sets appear underquestions, read from the decisions file byWork.questions(): open questions only, newest set first, context clipped to 280 characters in the list. - Defaults: The default segment is chosen by counts: questions first, then hands, then reviews.
- Behaviour: Answers happen in place: Reply posts
act("need.comment"); I did it on a hands item postsact("hands.done"). The full answer mechanics are in The question sets, enumerated. D13: the phone names the buckets Questions, Only you can do, Reviews, and Escalated; the census vocabulary in code is hands, reviews, and escalated/other. - Failure shapes: None recorded in the survey.
#ask and #ask/say=<text> — Ask
- What it is: The owner’s own-words instruction composer (
viewAsk): a textarea with Dictate via Web Speech where available, and the thread list of everything the owner has asked, with fleet replies, Reply, and Mark done. - Inputs: The
say=parameter is a prefill handed over by the Android app (share, selected text, or dictation; comment inviewAsk). Submitting postsact("ask.send"). - Behaviour:
ask.sendfiles a GitHub issue and enqueues a top-band (priority 10) triage packet; replies read back from the issue. The aggregator-side prompt surface is/chatin The aggregator website, page by page. - Failure shapes: None recorded in the survey.
#more — More
- What it is: The index of the
more/*views (viewMore, extraops). - Inputs: Links to every aggregator dashboard page, grouped by
PAGE_GROUPS, rendered from the dashboard manifest data (app.jsat about line 1185). - Behaviour: The console’s table of contents: the sixteen views below are reached from here.
- Failure shapes: None recorded in the survey.
#more/queue — Queue
- What it is: Queue tasks by status (
viewQueue). - Inputs: Actions post to
POST /console/api/queue/<task>/<action>(console/src/server.ts). - Behaviour: The console’s working cut of the queue; the aggregator’s cross-project cut is
/queue. - Failure shapes: None recorded in the survey.
#more/prs — Pull requests
- What it is: The open pull request list and detail (
viewPrs,ops). - Inputs: Merge posts to
POST /console/api/prs/<n>/merge(Ops.mergePr). - Behaviour: Review and merge from the phone.
- Failure shapes: None recorded in the survey.
#more/issues — Ranked issues
- What it is: Issues ordered by rank labels (
viewIssues,ops). - Inputs: Re-rank posts to
POST /console/api/priorities/<issue>/rank; comment posts toPOST /console/api/issues/<n>/comment(Ops.priorities,Ops.setRank,Ops.commentinconsole/src/ops.ts). - Behaviour: Ranking here writes GitHub rank labels through the console — see D4 in The aggregator website, page by page: the aggregator service never writes labels; the console does.
- Failure shapes: None recorded in the survey.
#more/agents — Agents
- What it is: The agent and session list (
viewAgents,ops). - Inputs:
GET /console/api/agents. - Behaviour: The console’s cut of the session registry; the aggregator’s cut is
/sessions. - Failure shapes: None recorded in the survey.
#more/services — Services
- What it is: The systemd units the console may manage (
viewServices,ops). - Inputs: A per-unit action posts to
POST /console/api/services/<unit>/<action>; logs read fromGET /console/api/services/<unit>/logs?lines=(Ops.services,Ops.serviceAct,Ops.serviceLogs; the allowlist ismanageable()). - Behaviour: Only allowlisted units are manageable from this view.
- Failure shapes: None recorded in the survey.
#more/notify — Notifications
- What it is: Push status and the subscription for this device (
viewNotify). - Inputs:
GET /console/api/push(console/src/push.ts,console/src/notify.ts). - Behaviour: The device-side companion to the aggregator’s
/alerts/preferencespage. - Failure shapes: None recorded in the survey.
#more/phone and #more/phone/<sub> — Phones
- What it is: Linked phones and devices (
viewPhone). - Inputs:
GET /console/api/devices(console/src/devices.ts). - Behaviour: The view redraws on
more/phoneroute changes; that redraw is the device-link flow’s surface. - Failure shapes: None recorded in the survey.
#more/signin — Sign-in
- What it is: Sign-in state, with Google sign-in and edge-direct controls (
viewSignin). - Inputs:
GET /console/api/signin(Ops.signin,Ops.googleSignin,Ops.edgeDirect). - Behaviour: The console gate at
pm.security.cabproxies dashboard paths only for a signed-in owner; this view is where that state is inspected and changed. - Failure shapes: None recorded in the survey.
#more/away — Cloudflare
- What it is: The “away” surface (
viewAway): what the edge holds when the laptop is unreachable — held actions and kept answers (console/edge/src/edge.ts,console/src/sync.ts). - Inputs: None recorded in the survey beyond the view’s
VIEWSentry. - Behaviour: Actions taken while the laptop is away are held by the edge and replayed through the same audited action table when the host returns.
- Failure shapes: None recorded in the survey.
#more/machines — Machines
- What it is: The machine list (
viewMachines). - Inputs:
GET /console/api/machinesinconsole/src/server.ts. - Behaviour: A plain list view over the machine registry the console server holds.
- Failure shapes: None recorded in the survey.
#more/platform — Platform
- What it is: The Cloudflare Workers platform screen (
viewPlatform). - Inputs: Drawn from
pm-stack/platform/workers.json; workflow and deploy state fromOps.platform(). - Behaviour: This view is the phone surface of the platform registry counted in The workers, where the 22/20/18 count reconciliation (D6) is recorded.
- Failure shapes: None recorded in the survey.
#more/device — On this device
- What it is: This device’s identity and link state (
viewDevice). - Inputs: None recorded in the survey beyond the view’s
VIEWSentry. - Behaviour: The per-device companion to
#more/phone, which lists all linked devices. - Failure shapes: None recorded in the survey.
#more/releases — Releases
- What it is: Release and deploy workflow runs (
viewReleases). - Inputs: Runs from
Ops.releases(); a deploy starts fromOps.deploy(). - Behaviour: The console’s release surface: inspect runs, start a deploy.
- Failure shapes: None recorded in the survey.
#more/roadmap — Roadmap
- What it is: The console roadmap (
viewRoadmap): capabilities and phases parsed from the plan doc (console/src/plan.ts:CAPABILITIES;PHASESisdoing,now,next,later,built;parseRoadmap). - Inputs: The plan doc the console parses; this view does not read the aggregator’s
/api/roadmap.json. - Behaviour: D12: this is an independent roadmap implementation with its own vocabulary, not a client of the aggregator roadmap. The two surfaces coexist; neither is a view of the other.
- Failure shapes: None recorded in the survey.
#more/bugs — Bugs
- What it is: Bug-kind plan issues (
viewBugs):Planissues withkind: "bug"inconsole/src/plan.ts. - Inputs: The plan issue set the console holds.
- Behaviour: A filtered cut of the plan: bugs only.
- Failure shapes: None recorded in the survey.
#more/intake — Intake
- What it is: The intake routing list (
viewIntake): kinds note, bug, and change, with their label and rank routes (plan.tsROUTES;INTAKE_LABEL = "owner/intake"). - Inputs: A submission from this view.
- Behaviour: Submitting files a GitHub issue and a triage/prompt queue packet, routed by kind through the
ROUTEStable. - Failure shapes: None recorded in the survey.
Sources: PM-SURVEY website census (pm-stack/console/public/app.js, pm-stack/console/src/server.ts, pm-stack/console/src/work.ts, pm-stack/console/src/ops.ts, pm-stack/console/src/plan.ts), survey files website-pages.md and disagreements.md (D4, D12, D13), census date 2026-11-23.
Aggregator HTTP routes and API
The census counts 50 primary pages and views: 29 aggregator routes in The aggregator website, page by page and 21 console views in The console, view by view. This chapter covers the routes the census enumerates separately from that count: the aggregator’s JSON twins, fragment and streaming routes, POST and write endpoints, and static and PWA routes; the console server’s non-view routes; the console edge Worker’s routes; and the other first-party HTTP surfaces in pm-stack/. Entries are grouped by surface and follow one shape: what the route is, its inputs, its defaults where the survey gives them, its behaviour, and its failure shapes where the survey records them.
JSON twins of the manifest pages
One twin per page serves the same data as JSON. The twins are named on their pages in The aggregator website, page by page; the irregular spellings are the contract:
/api/overview.jsonfor/;/api/today.jsonfor/today;/api/digest.jsonand the list/api/digests.jsonfor/digest;/api/attention.jsonfor/attention;/api/reports.jsonfor/reports;/api/board.jsonfor/board;/api/roadmap.jsonfor/roadmap;/api/conflicts.jsonfor/conflicts;/api/quota.jsonfor/quota;/api/dns.jsonfor/dns;/api/aa.jsonfor/aa;/api/search.jsonfor/search;/api/comments/queue.jsonand the full list/api/comments.jsonfor/comments;/api/program.jsonand/api/program-project.jsonfor/programand/program/<id>;/api/queue.jsonand the orchestration twin/api/orchestration.jsonfor/queue;/api/alerts.jsonfor/alerts;/api/notifications.jsonfor/notifications./api/registry.jsonis the twin of/sessions— not/api/sessions.json./api/healthis the twin of/health— no.jsonsuffix. One health assembly feeds page and twin; the twin additionally returns per-page render state (route,lastRenderedAt,okper manifest page)./api/events.jsonis the twin of/events, paginated, with arel=nextlink emitted byserver.ts./api/prompt/threadsis the twin named in the manifest for/chat./api/projects.jsonstill serves although/projectsitself is a redirect, not a page./decisionsand/pagesdeclare no twin inpages.ts. For decisions the server implements its own API family regardless — D7; see the decisions group below.
Decisions and needs-Drew endpoints
POST /api/decisions/<setId>/submit— What it is: the answer endpoint for one decision set; the body carries{submissions}. Behaviour: resolutions record first-resolution-wins in the aggregator’s decisions store; drafts for a resolved question are deleted. Failure shapes: none recorded in the survey.POST /api/decisions/<setId>/deferandPOST /api/decisions/<setId>/request-info— What it is: the other two resolution kinds from the page client: defer (with a lean ofnone,skeptical, orapprove) and request-info.POST /api/decisions/<setId>/events— What it is: draft and edit events from the page client. Alias:/api/decision-sets/<setId>/events.POST /api/decision-sets— What it is: the v2 set-submission endpoint used byscripts/submit-decision-set.ts, with a--refreshmode for standing ledger-mirror sets such as the standing open-questions set. The older producer path isscripts/raise-decision-set.ts, which posts a set throughPOST /api/alertswith thedecisionSetextension, one push per set.POST /api/needs-drew/<ledgerId>/answer— What it is: the answer endpoint for a single raised needs-Drew question. Inputs: the body is{token, optionId}; the per-question token in the answer-page URL is the authority. Behaviour: the service worker posts to this endpoint directly on a notification tap, with no page open; the generated page client is the fallback. The resolution enters the same decisions-ledger machinery as a set answer. D9: which file a single-question answer ultimately writes is UNVERIFIED — the code namessrc/needs-drew.tsas “the question store” and routes the answer through the shared resolution machinery.GET /api/needs-drew.json— What it is: the needs-Drew census: open issues and PRs labelleduser/revieworuser/escalatedacross the fleet repos, deduped, withhands:v1markers (kind: physical,interactive-login,payment,signature). Behaviour: the console splits this census into hands, reviews, and other/escalated. The aggregator census itself never writes labels — D4.
Actions, comments, and reports writes
POST /api/actionsandPOST /api/actions/batch— What it is: dashboard actions on tier items (src/actions.ts). Inputs: kinds aretriage(acknowledge, snooze, escalate, de-escalate, answer, delegate, dismiss),status-request,session(poke, answer, stop), andpreference(set-delegation-default). Behaviour: consumers pollGET /api/actions.json?state=new; outcomes return through the result endpoint below. Session actions are consumed by the fast session-action consumer foropencode-laptop.POST /api/actions/result— What it is: the outcome return path. Inputs: the body is{id, outcome, byRun, note}, withoutcomeone ofappliedorrejected.GET /api/actions/outage-queue.json,POST /api/actions/outage-queue/confirm,POST /api/actions/outage-queue/reject— What it is: the outage-queue variant of the action flow (src/outage-queue.ts).POST /api/comments— What it is: a dashboard-native comment (storesrc/comments.ts), the write behind/discuss/<subject>.POST /api/comments/triage— What it is: triage of a dashboard comment.POST /api/comments/github-result— What it is: the external poster reports the GitHub result back. Behaviour: the dashboard itself never writes GitHub; a fleet job applies and posts, and this endpoint records the outcome.POST /api/reports/resolve— What it is: resolve a prose conflict by choosing a stored version.POST /api/reports/late-update— the late-update write for a report.POST /api/roadmap/annotationsandPOST /api/roadmap/annotations/alias— What it is: roadmap annotations (src/roadmap-annotations.ts); annotations write back onto roadmap rows.
Prompt and chat endpoints
POST /api/promptandGET /api/prompt— What it is: submit a prompt and list prompts (src/prompts.ts).GET /api/prompt/threads,GET /api/prompt/thread/<id>,GET /api/prompt/<id>— What it is: thread list, one thread, one prompt.GET /api/prompt/<id>/attachments/…— What it is: a prompt’s attachments (src/prompt-attachments.ts).PATCH /api/prompt/<id>— update a prompt.GET /api/prompt/unread-count— the unread count behind the/chatnavigation badge.GET /ws/prompt/<id>— What it is: the WebSocket upgrade for a prompt thread (promptWsUpgradeinserver.ts;src/prompt-ws.ts).
Alerts, push, and quota writes
POST /api/alerts— What it is: the alert throat intake. Inputs: a bearer intake token, resolved by secret name (pm-aggregator.alerts-intake-token, viasrc/secrets.ts); extensions includedecisionSet(decision-set producers) andstackHealth(health hooks). Behaviour: posts land in the alerts store and engine insrc/alerts.ts.POST /api/push/subscriptions— What it is: the push subscription upsert path; the preferences page reads stored subscriptions through it.POST /api/push/test— a test send (object referencetest:push).POST /api/push/test-class— a per-class test send (referencestest:<class>, landing URLs per class fromnotifications.ts).GET /api/sw-probe— the service-worker probe.GET /api/alerts/preferences.json— What it is: the twin of/alerts/preferences.POST /quota/refreshandPOST /api/quota/refresh— What it is: the quota refresh writes behind/quota.GET /api/quota/service.json— the twin of/quota/service/<id>, read in a?service=style; UNVERIFIED: the exact query contract beyond the route existing.
Fragments, streaming, identity, and miscellany
/frag/overview,/frag/board,/frag/today,/frag/queue— What it is: Datastar fragments for in-page refresh;/frag/attention/*fragments exist under the attention branch./freshness/stream— What it is: the server-sent-events freshness stream; its snapshot twin is/api/freshness-events.json./api/item/<id>.json— What it is: the machine twin pattern for/item/<subject>. Failure shapes: an unresolved id is a 404 case (#4969)./api/author-identitiesand/api/admin/identity-registry— What it is: identity registry reads and administration (server.ts).POST /api/stack-token/exchange— What it is: the break-glass and stack token exchange (src/stack-token.ts,src/break-glass.ts; scriptscripts/issue-break-glass-token.ts). Inputs: the target must bekaneo,pad, orgrist.POST /webhooks/github— What it is: the aggregator’s GitHub metadata webhook.
Static and PWA routes (aggregator)
/sw.js— the aggregator PWA service worker, generated fromsrc/sw-source.ts./manifest.webmanifest— the PWA manifest./assets/app.css,/assets/datastar.js,/assets/aa-explorer-computations.js,/assets/push-client.js,/assets/prompt-badge.js,/assets/freshness-client.js— the dashboard’s static assets.
Console server routes (non-view)
From pm-stack/console/src/server.ts, base path /console:
GET /console/health— unauthenticated; returns{ok:true}.GET /.well-known/assetlinks.json— Android App Links, unauthenticated.GET /manifest.webmanifest— the console PWA manifest.POST /console/device/linkandGET /console/device/summary— linked-phone authentication, checked by phone link, not by sign-in.GET /console/edge/key— the edge verification public key.GET /console/<apk>— the Android APK itself, signed-in owner only.- Static files:
app.js,app.css,outbox.js,sw.js,icon.svg. - Reads:
GET /console/api/me,GET /console/api/overview,GET /console/api/agents,GET /console/api/messages,GET /console/api/services,GET /console/api/push,GET /console/api/machines,GET /console/api/signin,GET /console/api/devices,GET /console/api/doc/<name>(the named docs the edge and console serve,DOC_NAMESinconsole/src/docs.ts, including the questions doc), andGET /console/api/question(a single-question read,deps.work). - Writes:
POST /console/api/act— the generic audited action endpoint; the action table is in The question sets, enumerated. Route-shaped writes:POST /console/api/queue/<task>/<action>,POST /console/api/prs/<n>/merge,POST /console/api/priorities/<issue>/rank,POST /console/api/issues/<n>/comment,POST /console/api/services/<unit>/<action>, and the logs readGET /console/api/services/<unit>/logs?lines=. - Gate behaviour: non-
/consoleGET and HEAD paths are proxied to the dashboard URL for a signed-in owner. Every action is audit-logged before it is taken; an action that cannot be recorded is not taken (the edge-held path inserver.ts).
Console edge Worker routes
pm-stack/console/edge/src/worker.ts, entry.ts, edge.ts, and direct.ts serve the same SPA and API at pm.security.cab when the laptop is away, holding actions until the host returns. UNVERIFIED: the exact edge-only route table, beyond edge.ts and direct.ts being the held-action and direct-to-host implementations.
Other first-party HTTP surfaces
- Projector (port 7801): webhook intake
POST /github/webhook(HMAC, delivery-GUID dedupe), link registryGET,POST, andDELETE /links, readsGET /items,GET /comments,GET /subjects/<subject>, and an HTML queue view (src/queue-view.ts,src/queue-view-html.ts). UNVERIFIED: the queue view’s route path — the survey records file names only. - Dispatch (port 4879, public as
dispatch.security.cab):GET /health,POST /v1/sessions, and the enqueue endpoint. Dispatch is API-only by its README; no web UI exists indispatch/src/. - OpenCode claimant page:
pm-stack/opencode-claimant/index.htmlis a single static page in the claimant directory. UNVERIFIED: what it displays — the survey records its existence only. - Decision-events Worker:
POST /events(alias/webhook),GET /sets/<setId>/events,GET /sets/<setId>/state,GET /sets/<setId>/stream,GET /health— shared-secret authentication, fail-closed with no secret. See The workers.
Sources: PM-SURVEY website census (pm-stack/aggregator/src/server.ts, pm-stack/aggregator/src/pages.ts, pm-stack/console/src/server.ts), survey files website-pages.md, apps.md, push.md, and disagreements.md (D4, D7, D9), census date 2026-11-23.
The question sets, enumerated
A question set is any surface where the stack asks the owner a question and writes the answer back. The survey enumerates eight, F1–F8. Every entry below follows the same shape: what the set is, where it surfaces, who answers, where the answer writes back, and its failure shapes and open points where the survey records them. The routes named here are specified in Aggregator HTTP routes and API; the pages and views are specified in The aggregator website, page by page and The console, view by view.
F1. Decision sets (aggregator)
- What it is: The main batched question set. The model is
pm-stack/aggregator/src/decisions.ts: a set mirrors a group of items from the Muse-side decisions ledger (pending-questions.json, per that file’s header). A set has items (ledgerId); an item has 1–16 questions; a question has aqidof the form<ledgerId>#<1-based index>, 0–12 options ({id, label, tags?, combinationOf?}), amodeofsingleormulti,recommendedOptionIds, context, description, detail, group, order, and version history (DecisionQuestionVersion, #9335 v2). - Defaults: Version 1 defaults
modetosingle. A free-text-only question — 0 options — is legitimate. - Where it surfaces: The index
/decisions, the per-set page/decisions/<setId>?t=<token>, and the console view#needs/questions, which reads the same sets from the decisions file (console/src/work.ts,Work.questions()): open questions only, newest set first, context clipped to 280 characters in the list, full context throughWork.question(). - Who answers: The owner, on the set page or in the console. Producers raise sets:
scripts/raise-decision-set.ts(throughPOST /api/alertswith thedecisionSetextension, one push per set) andscripts/submit-decision-set.ts(throughPOST /api/decision-sets, v2, with--refreshfor standing ledger-mirror sets such as the standing open-questions set). - Where the answer writes back: The page client posts to
/api/decisions/<setId>/submitwith{submissions}, to/defer, and to/request-info; draft and edit events go to/api/decisions/<setId>/events(alias/api/decision-sets/<setId>/events). Resolution kinds (DecisionResolutionindecisions.ts) areanswered(anoptionIdoroptionIds, plus free text and a comment),deferred(with a lean ofnone,skeptical, orapprove), andrequest-info. First resolution wins per question; drafts are deleted when a question resolves (pruneResolvedDrafts). Resolutions record in the aggregator’s decisions store (defaultDecisionsFile,recordResolutionsindecisions.ts), export asDecisionResolutionRecordvalues for the ledger,listDecisionResolutions, and fleet-feed path, and — per the header ofdecisions.ts— the dropped-thread catcher applies them to the ledger per question. Decision events sync out throughscripts/sync-decision-events.tsto Turso and to the decision-events Worker. - Bulk answers: The page offers submit-all. The console offers “Accept <n> recommended” per set (
Work.acceptRecommended, batched at 200; the dashboard cap noted in code is 256 per request). - Push shape: One push covers the whole set, and its tap opens the set page. A decision set has no tappable notification answers: the page is the answer surface.
F2. Needs-Drew single questions (aggregator, #8568)
- What it is: A single raised question riding its notification candidate:
NotificationCandidate.needsDrew = {ledgerId, question, options}insrc/notifications.ts. - Where it surfaces: The push notification itself, and the per-question answer page. The push’s first two options become notification actions (
src/sw-source.ts). - Who answers: The owner, by tapping a notification action or by using the answer page. On a tap, the service worker posts directly to the answer endpoint with no page open; errors in the service worker are silent, and the answer page remains the fallback.
- Where the answer writes back:
POST /api/needs-drew/<ledgerId>/answerwith{token, optionId}; the per-question token in the answer-page URL is the authority. The write-back is the same decisions-ledger resolution machinery as F1: the ledger item’s question resolves. - Open point: D9 —
decisions.tsstates that sets and the per-question store inneeds-drew.tsare explicitly not the same store. UNVERIFIED: the exact file the single-question answer writes, beyondsrc/needs-drew.tsbeing named “the question store” there.
F3. Needs-Drew census sets (console #needs)
- What it is: The census of work waiting on the owner, built from
GET /api/needs-drew.json(src/needs-drew.ts): open issues and PRs labelleduser/revieworuser/escalatedacross the fleet repos, deduped, withhands:v1markers (kind: physical,interactive-login,payment,signature). - Where it surfaces: The console
#needsview.Work.census()inconsole/src/work.tssplits the census into three sets: hands (an item with ahands:v1action), reviews (user/review, no hands marker), and other/escalated (no stated action — the fleet’s to decide). Session-derived waiting items from/api/attention.json(Work.sessions(), tierneeds-drew) join the same view. - Who answers: The owner, in the console.
- Where the answer writes back: Reply posts
act("need.comment"), which runsWork.needComment: a GitHub issue comment carrying the marker<!-- owner-reply:v1 -->. For hands items, I did it postsact("hands.done"), which runsWork.handsDone: a GitHub comment (“Done by the owner…”) and deletion of theuser/escalatedlabel. - Disagreement carried: D4 — the aggregator census itself never writes labels; the console writes them. D13 — the shipped census vocabulary (hands, reviews, escalated) is the book’s vocabulary; the 2026-10-26 needs-user design doc is history.
F4. Prompt and chat questions (aggregator /chat, console #ask)
- What it is: Free-form prompts and their threads. Aggregator side:
src/prompts.ts,src/prompt-ws.ts,src/prompt-notify.ts,src/prompt-widget.ts,src/prompt-attachments.ts. - Where it surfaces: The aggregator page
/chat, and the console view#ask. The console view is the owner-facing version of the same idea against GitHub and the queue, not against the aggregator store. - Who answers: Fleet sessions answer prompts; the owner asks, replies, and closes.
- Where the answer writes back: Aggregator routes:
POST /api/prompt,GET /api/prompt,GET /api/prompt/threads,GET /api/prompt/thread/<id>,GET /api/prompt/<id>, attachments atGET /api/prompt/<id>/attachments/…,PATCH /api/prompt/<id>,GET /api/prompt/unread-count, and the WebSocketGET /ws/prompt/<id>. A prompt submitted with notifications on receives aprompt-class push when it is answered or fails (#10035). Console side:act("ask.send")files an issue and enqueues a top-band (priority 10) triage packet (promptPacketandnotePacketpatterns inconsole/src/work.tsandconsole/src/plan.ts, marker<!-- owner-prompt:v1 -->); replies read back from the issue (ask.reply,ask.closeinconsole/src/actions.ts).
F5. Dashboard comments and discuss (aggregator)
- What it is: Comments on dashboard items, written from
/discuss/<subject>and tracked on/comments. - Where it surfaces: The discuss page per item, and the comments queue page.
- Who answers: The owner comments; the applying fleet run answers by its outcome.
- Where the answer writes back:
POST /api/comments(dashboard-native comment; storesrc/comments.ts),POST /api/comments/triage, andPOST /api/comments/github-result, where the external poster reports the GitHub result back; reads areGET /api/comments.jsonand the queue twin. The dashboard itself never writes GitHub — a fleet job applies and posts and reports back (src/actions.tsheader). This set is a question-and-answer-back surface in the loose sense: a comment on an item is answered by the applying run’s outcome.
F6. Dashboard actions (aggregator)
- What it is: Structured answers on tier items: the action records of
src/actions.ts. - Where it surfaces: The dashboard’s tier items; consumers poll for new actions.
- Who answers: The owner issues actions; consumer runs apply them and return outcomes.
- Where the answer writes back:
POST /api/actionsandPOST /api/actions/batchcreate actions; consumers pollGET /api/actions.json?state=new; outcomes return throughPOST /api/actions/resultwith{id, outcome: applied|rejected, byRun, note}. Kinds:triage(acknowledge, snooze, escalate, de-escalate, answer, delegate, dismiss),status-request,session(poke, answer, stop — consumed by the fast session-action consumer foropencode-laptop), andpreference(set-delegation-default). The triageanswerverb is an answer-back: the pass delivers payload text, option, or answers like its own classifications (actions.tsheader). - Outage variant:
GET /api/actions/outage-queue.json,POST /api/actions/outage-queue/confirm,POST /api/actions/outage-queue/reject(src/outage-queue.ts).
F7. Console generic actions (POST /console/api/act)
- What it is: The console’s audited action table:
console/src/actions.ts(ownActions,actions(...),perform). - Where it surfaces: Every console view posts here; the question actions are
questions.answer,questions.defer,questions.accept,need.comment,hands.done,ask.send,ask.reply, andask.close, alongside the queue, priority, issue, service, and PR actions. - Defaults:
questions.deferis the “Decide for me” action; its lean defaults toapprove. - Who answers: The owner, from the console.
- Where the answer writes back: Through the same stores as F1–F4:
Work.submit()calls the dashboard’s own/api/decisions/<setId>/submit; needs and hands answers write GitHub comments and labels as in F3; asks file issues and queue packets as in F4. - Behaviour: Every action is audit-logged before it is taken — an action that cannot be recorded is not taken. When the laptop is unreachable, the edge holds the action and replays it through the same table on the host’s return.
F8. Reports, roadmap annotations, and alerts
- What it is: Three smaller answer-backs, grouped by the survey.
- Reports:
POST /api/reports/resolveresolves a prose conflict by choosing a stored version;POST /api/reports/late-updaterecords a late update. Surface:/reports. The answer writes back to the report store, and stored text is not overwritten. - Roadmap annotations:
POST /api/roadmap/annotationsandPOST /api/roadmap/annotations/alias(src/roadmap-annotations.ts). Surface:/roadmap. Annotations write back onto roadmap rows. - Alerts: Ack and close on
/alertswrite the incident lifecycle (open,acked,closedinsrc/alerts.ts). Preference toggles on/alerts/preferenceswrite the subscription’s class map, which the engine reads on its next tick (src/notifications.ts,NOTIFICATION_CLASSES). D14: the class count is eight, not the six of issue #8882’s premise.
Sources: PM-SURVEY website census §F (pm-stack/aggregator/src/decisions.ts, pm-stack/aggregator/src/notifications.ts, pm-stack/aggregator/src/needs-drew.ts, pm-stack/aggregator/src/actions.ts, pm-stack/console/src/actions.ts, pm-stack/console/src/work.ts), survey files website-pages.md, push.md, and disagreements.md (D4, D9, D13, D14), census date 2026-11-23.
The workers
This chapter covers the Cloudflare Workers and doors of the estate as the coverage ledger assigns them. Fourteen are assigned to this book and receive full entries. The estate’s other ten ledger rows are named in one table with their covering book and chapter. Every entry follows the same shape: what the worker is, its inputs and shape, its defaults where the survey gives them, its behaviour, and its failure shapes where the survey records them. Census date 2026-11-23; worker sources are wrangler configs and .github/workflows/ on the laptop clone, pm-stack/platform/workers.json, and the coverage ledger.
Count reconciliation (D6, D17, D41)
Three counts exist, and they count three different sets:
- 22 — the census count. The coverage ledger’s Table A censuses 22 workers and doors from wrangler configs, workflow files, the
pm-stack/tree, and the security.cab door configs. - 20 — the platform registry count.
pm-stack/platform/workers.jsonlists 20 workers: pm-console-edge, message-bridge, decision-events, pm-notify, mcpx, queue-transport-alert, github-ci, voice-line, muse-agent-handoff, desktop-commander, fleet-hosted, atlas-search, cold-store-rehydrator, developing-today-backup, pkarr, id-hosted-worker, id-worker-poc, id-d1-journal-poc, lab-ops-hub, cf-container-hello. Its own test (workers.test.ts) holds the JSON to the repo’s wrangler files, so the JSON is the live registry list. The console’s Platform view is drawn from this file. - 18 — the platform README count.
pm-stack/platform/README.mdstates the repository holds eighteen Cloudflare Workers and thatworkers.jsonlists all eighteen. D6: the README’s figures (eighteen listed, fourteen answered, two Actions-deployed) are stale against the file’s ownchecked: 2026-11-23date; the JSON wins.
The census and the registry are not nested sets (D17): they share only 18 names. The census includes four entries the registry does not list: the mail worker, the exec door, the pm-stack aggregator worker, and the pm-stack dashboard worker. The registry includes two workers the original census table did not carry as rows: cold-store-rehydrator and developing-today-backup, censused by lane MISSED-WORKERS (survey survey/missed-workers.md) and given full entries in this chapter.
The final arithmetic, stated once and plainly (D41): the ledger’s 24 rows are 21 true Workers plus three rows that are not Workers — the exec door (a tunnel ingress, not a Worker), the pm-aggregator (a laptop service, not a Worker), and the dashboard row (a duplicate: the dashboard IS the aggregator UI, and its only Worker, pm-console-edge, is a separate row in this chapter). The original census’s 22 rows are therefore 19 Workers plus those same three non-worker rows; the registry lists 20; the census and the registry intersect at 18. The three non-worker verdicts are evidenced in survey survey/worker-evidence.md (the weak-evidence rows, D18, resolved there); their entries below describe what they actually are.
decision-events
- What it is: The PM stack decision-events Worker (
pm-stack/decision-events-worker/wrangler.toml).platform/workers.jsonrecords its state as “in service”, deployed by hand. - Inputs and shape: Routes are
POST /events(alias/webhook),GET /sets/<setId>/events,GET /sets/<setId>/state,GET /sets/<setId>/stream, andGET /health. Authentication is a shared secret. - Behaviour: Decision-set activity events land in three places: Turso (
fleet-platform, tabledecision_set_events), the Worker’s own D1 database (schema.sql), and a per-set Durable Object (DecisionSetEvents) that fans out live to WebSocket subscribers. The producer is the aggregator’sscripts/sync-decision-events.ts, which drains the decision-event outbox to Turso and to this Worker. - Failure shapes: Fail-closed with no secret configured.
voice-line
- What it is: The PM stack voice line Worker (
pm-stack/voice-line-worker/wrangler.toml; “in service” inplatform/workers.json). It owns thevoice-line-ledgerTurso database. - Inputs and shape: Push-to-talk runs over a WebSocket in a Durable Object. Speech-to-text and text-to-speech are Workers AI calls.
- Behaviour: The answer between transcription and speech is template-built from intent plus a Turso queue snapshot — no LLM call. The models are specified in Model dependencies.
- Failure shapes: None recorded in the survey.
pm-notify
- What it is: The notify relay Worker (
pm-stack/notify-relay/wrangler.toml, worker namepm-notify): the dead-man’s switch for the push system. - Inputs and shape: The aggregator posts a heartbeat of about 60 seconds (
NOTIFY_RELAY_HEARTBEAT_MS) and mirrors push subscriptions to the relay. A singleton Durable Object re-arms an alarm at last-beat + 150 seconds. - Behaviour: On silence the relay sends exactly one
stack.silentWeb Push; on recovery, exactly one recovered push. Thestack.silentpushes ride theincidentpreference class. - Deployment state (D5): Step 1 only. The event-mirror route and the edge answer-intake routes are not routed yet (
notify-relay/src/index.tsheader), andplatform/workers.jsonrecordspm-notifyas “not deployed” with a null address. With noPM_AGG_NOTIFY_RELAY_URLset, the aggregator side is inert; with no heartbeats, the relay side is inert. Phone answers go to the laptop aggregator today.
pm-console-edge
- What it is: The PM console edge Worker (
pm-stack/console/edge/wrangler.jsonc, plusedge/init/wrangler.jsonc). Deployed from Actions aspm-console-edgeperplatform/workers.json. - Inputs and shape: Sources are
console/edge/src/worker.ts,entry.ts,edge.ts, anddirect.ts. The route is attached by the host’sscripts/expose.pyafter a health check. - Behaviour: It serves the same console SPA and API at
pm.security.cabwhen the laptop is away: actions are held by the edge and replayed through the console’s audited action table when the host returns.direct.tsis the direct-to-host implementation;edge.tsis the held-action implementation. - Failure shapes: UNVERIFIED: the exact edge-only route table, beyond the roles of
edge.tsanddirect.tsrecorded in the survey.
pkarr
- What it is: The Pkarr relay Worker (
pkgs/pkarr-worker/wrangler.jsonc). - Inputs and shape: A
PkarrStoreDurable Object, rate limiters, and DNS-over-HTTPS. - Behaviour: The relay stores and serves Pkarr records under its rate limits.
- Failure shapes: None recorded in the survey.
lab-ops-hub
- What it is: The lab ops hub Worker (
pkgs/lab-ops-hub/wrangler.jsonc). - Inputs and shape: Two Durable Objects,
LiveRoomandCrawlerContainer; a D1 database,labops-db; an R2 bucket,labops-files. - Behaviour: The hub combines live-room state and a crawler container behind one Worker.
- Failure shapes: None recorded in the survey.
cf-container-hello
- What it is: The Cloudflare Containers hello and probe Worker (
pkgs/cf-container-hello/wrangler.jsonc). - Inputs and shape: Two container classes:
HelloContainerandCrawlerProbe. - Behaviour: A hello and probe surface for Cloudflare Containers: it exists to exercise the container platform, not to serve product traffic.
- Failure shapes: None recorded in the survey.
muse-agent-handoff
- What it is: The agent handoff Worker (
scripts/muse/handoff/worker/wrangler.jsonc). - Inputs and shape: A
HandoffDurable Object holds handoff state. - Behaviour: Agent handoffs pass through this Worker’s Durable Object.
- Failure shapes: None recorded in the survey.
github-ci
- What it is: The GitHub CI helper Worker (
pkgs/github-ci/worker/; workflowgithub-ci-worker-tests.yml). - Evidence caveat (ledger): The name is taken from its directory and workflow; no wrangler config exists at the package root in the repo census.
- Behaviour: A CI helper for GitHub workflows.
- Failure shapes: None recorded in the survey.
Exec door (security.cab) — not a Worker
- What it is: A path-scoped Cloudflare Tunnel ingress hostname,
exec.security.cab, fronting the laptop’s fleet queue broker — the public rendezvous forfleet actions exec(#13774), where GitHub Actions runner agents dial out and register with the broker. It is the third security.cab door alongside the commander and mcpx doors (#13404, #13657, #13774 family), but unlike those two it has no Worker in its path at all. - Inputs and shape: The remotely managed sandbox-link tunnel carries an ingress rule for paths matching
^/actions-exec-(register|poll|io|result|close)$onexec.security.cab, forwarded to the queue broker at100.99.113.103:4801. In code the door is a broker URL, not a Worker:pkgs/fleet/crates/fleet/src/actions.rssetsDEFAULT_BROKER_URLtohttps://exec.security.cab. - Behaviour: There is no Access app in front, by design: the runner job’s GitHub OIDC token is the authentication, verified at the broker. Path scoping is enforced at the tunnel — a tokenless
POST /actions-exec-pollreturns the broker’s own 401, and other paths on the host return 404 (verified from outside in the #13774 Slice 5 deploy record). - Evidence verdict (D18): NOT-A-WORKER (survey
survey/worker-evidence.md§1). No wrangler config exists for it anywhere in the repo, and none could: the tunnel is remotely managed, so its ingress lives in Cloudflare, not in the repository. It leaves the worker census; its documentation stays in this book as a tunnel door.
The pm-aggregator — not a Worker
- What it is: The PM dashboard application itself: a Bun/TypeScript server on the laptop (
pm-aggregator-ui), a read-mostly projection over the projector and link registry, Kaneo, Pad and Grist, with the alert and push engine inside it. The #13844 Turso audit names it as a Cloudflare Worker writingfleet-platformthrough the Turso HTTP API; the audit got the store and the API right and the runtime wrong — it does writefleet-platformthrough the Turso HTTP API, but from the laptop, not from a Worker. - Where it runs: Laptop host
amd, as the systemd user servicepm-aggregator(NixOS-packaged frompkgs/pm-aggregator), listening on port 4870 (loopback and tailnet) with the freshness IPC listener on 4871. It has no public route of its own; its public face is the console and edge surface. - Evidence verdict (D18): NOT-A-WORKER (survey
survey/worker-evidence.md§2).pm-stack/aggregator/contains no wrangler config, andpm-stack/platform/workers.jsonlists no aggregator entry. The application is covered in The aggregator website, page by page and The aggregator: one state, many sources. - Failure shapes: None recorded in the survey.
The dashboard row — a duplicate, not a Worker
- What it is: Not a separate thing at all. “The dashboard” is the aggregator’s other name — the same laptop service as the entry above. The #13844 audit split one laptop application into two Workers that do not exist: its owner list names the aggregator and the dashboard separately, and its §G2 names a “dashboard Worker” reading the ingest families.
- Evidence:
pm-stack/aggregator/README.mdline 3 calls the aggregator UI “the dashboard Drew lives in”;pm-stack/PORTS.mdnames the single 4870 row “pm-aggregator (dashboard HTTP)” — one row, one service, both names; the console’s own header states “The dashboard (pm-aggregator) shows the fleet; this service acts on it”, and itsdashboardUrldefaults tohttp://127.0.0.1:4870. - Evidence verdict (D18): NOT-A-WORKER — a duplicate row (survey
survey/worker-evidence.md§3). The only Worker anywhere in the dashboard’s public surface ispm-console-edge, already a separate entry in this chapter. The dashboard row leaves the worker census as a duplicate of the aggregator row, and its documentation gap is the aggregator’s gap.
cold-store-rehydrator
- What it is: The cold store rehydrator Worker (
pkgs/cold-store-reaper/worker/wrangler.toml): the read path of the Google Drive cold store.platform/workers.json(group “data”) records its state as “in service”, deployed by hand, athttps://cold-store-rehydrator.developing-today.workers.dev. - Inputs and shape: Routes are
GET /health(no auth) andGET /fetch/<sha256>(BearerREHYDRATOR_API_KEY). Bindings are a D1 database,cold-store-manifest(bindingMANIFEST), and aBundleFlightDurable Object that single-flights work per bundle. Secrets are set by the deploy app from Bitwarden by name:REHYDRATOR_API_KEY,GOOGLE_CLIENT_ID,GOOGLE_CLIENT_SECRET, andGOOGLE_REFRESH_TOKEN— the same Google grant the Python reaper in the same package uses. - Behaviour: Given an object’s sha256, the Worker looks the object up in the D1 manifest (objects → members → bundles), and the
BundleFlightobject pulls exactly that member’s zstd frame out of its Drive bundle by byte range, decompresses it, verifies the sha256, and returns the original bytes. Successful fetches carryX-Cold-Store-Sha256andX-Cold-Store-Bundleheaders. The manifest is kept current by the reaper’scold-store sync-manifest; the v1 slice serves the object on the same request — filling R2 first and flipping the manifest state back tohotbelong to the caller’s layer. - Failure shapes:
401without the API key;404for an unknown sha (and for every sha untilsync-manifesthas run against a manifest containing verified bundles);502on any Drive, decode, or hash failure — bytes are never returned unverified, so a sha256 mismatch after decompression is a 502, not a best-effort serve.
developing-today-backup
- What it is: The GitHub backup webhook Worker (
infra/github-backup/worker/wrangler.toml): the webhook half of the GitHub estate mirror system.platform/workers.json(group “data”) records its state as “in service”, deployed by hand, athttps://developing-today-backup.developing-today.workers.dev. The rest of the system — the mirror scripts ininfra/github-backup/bin/— is not a Worker: it runs on the laptop under systemd user timers (nixos/home/github-backup.nix). - Inputs and shape: Routes are
POST /github(GitHub webhook),GET /queueandPOST /queue/ack(both Bearer-authenticated for the laptop drainer), andGET /health. Its one binding is a KV namespace,GHB_EVENTS, holding the queued webhook events with a seven-day TTL. Secrets are set by the deploy app from Bitwarden by name:GITHUB_WEBHOOK_SECRET(the same value as on thedeveloping-today-backupGitHub App) andDRAIN_BEARER. - Behaviour: The GitHub App (
developing-today-backup, metadata and contents read, push and repository events) sends webhooks to this Worker; the Worker verifies theX-Hub-Signature-256HMAC and queues{id, repo, event, action, ts}in KV. The laptop drains the queue every five minutes and fetches just those mirrors (per-repo coalescing fifteen minutes), acking an event only when its fetch landed. Events are a freshness signal only: every mirror is also fetched daily regardless, and a weekly reconciliation sweep re-inventories GitHub against the mirror tree — webhooks may be missed; the sweep may not. - Failure shapes: Fail-closed with no webhook secret configured (500, #6951);
401on a bad webhook signature or a missing drain bearer; a webhook payload with no repository is answered 202 and queues nothing; a declared or streamed webhook body over 25 MB is refused (413) before it is buffered.
The estate’s other ten workers
| Worker | Covering book and chapter (per the ledger) |
|---|---|
atlas-search | Atlas book — concepts/service-and-worker.md, reference/worker-api.md, operations/services.md. Covered. Published at https://developing-today.github.io/code/atlas/ |
message-bridge | Fleet book — concepts/bridge.md, reference/bridge.md (concept and CLI covered; Worker deployment detail is the fleet sideline extension). Covered. Published at https://developing-today.github.io/code/fleet/ |
id-hosted-worker | ID book — concepts/hosted.md, reference/hosted-worker.md. Covered. |
desktop-commander | Fleet book — concepts/commander.md (The Commander door: Desktop Commander over MCP), landed in this programme (PR #13915). Covered. Published at https://developing-today.github.io/code/fleet/ |
mcpx | mcpx book — worker.md (The door Worker at mcpx.security.cab), landed in this programme (PR #13906). Covered. |
fleet-hosted | Fleet book — concepts/fleet-hosted.md (The hosted edition: fleet-hosted), landed in this programme (lane FLEET-SIDELINE-2, PR #13978). Covered. |
queue-transport-alert | Fleet book — concepts/queue-transport-alert.md (The queue watchdog: queue-transport-alert), landed in this programme (lane FLEET-SIDELINE-2, PR #13978). Covered. |
mail (id-mail worker) | ID book — reference/mail-worker.md (The mail Worker API), landed in this programme (PR #13914). Covered. |
id-worker-poc | ID book — reference/worker-poc.md (id-worker-poc: the World Durable Object proof of concept), landed in this programme (PR #13914). Covered. |
id-d1-journal-poc | ID book — reference/d1-journal-poc.md (id-d1-journal-poc: the D1 journal proof of concept), landed in this programme (PR #13914). Covered. |
Sources: PM-CENSUS coverage ledger Table A (wrangler configs and .github/workflows/ on the laptop clone, HEAD 4d937b36409), PM-SURVEY survey files apps.md (§10, §11, §13, §14), push.md, website-pages.md, and disagreements.md (D5, D6); survey missed-workers.md (the two D17 entries and the set comparison) and survey worker-evidence.md (the three non-worker verdicts, D18), census date 2026-11-23.
Configuration and environment
This chapter covers only verified names: configuration files, environment variables, secret names, and named constants that the 2026-11-23 surveys record verbatim — the original survey’s detailed entries first, then the mechanical env/config census (survey top-up, lane CONFIG-CENSUS) that verified 318 distinct env/config names in source, listed by component at the end of this chapter. Where no survey gives a name, this chapter says so and invents none. Every detailed entry follows the same shape: what the item is, its shape, its default where the survey gives one, its behaviour, and its failure shapes where the survey records them.
Configuration files
pm-stack/aggregator/src/pages.ts — the page manifest
- What it is: The aggregator’s page registry: the
PAGESlist (23 entries) and thePAGE_GROUPSnavigation groups (Overview, Work, Ops, System), plusSUBROUTE_PARENTS. - Shape: Each page entry carries its route, title, blurb, group,
navcuration (primaryordropdown), and, for all but three pages, anapi:twin. - Behaviour: The manifest is rendered as the
/pagespage, reported in the/api/healthrender registry, and handed to the console, whose#moreview renders the dashboard links from the same manifest data. - Known gap: D8 —
SUBROUTE_PARENTSomits/decisions/<setId>, so that page’s renders sit outside the render registry.
pm-stack/PORTS.md — the port registry
- What it is: The stack’s port registry, audited 2026-11-05.
- Shape: The registered ports are: 4870 aggregator, 4871 freshness IPC, 4872 console, 4879 dispatch, 5173 Kaneo, 6056 ready-for-agent, 7777 Pad, 7801 projector, 8484 Grist. The registry also records a non-PM laptop service, OpenClaw’s embedding server on 18791; no PM code references it.
- Behaviour: Ports in this file are the stack’s allocation of record; the console gate proxies dashboard traffic from
pm.security.cabto the dashboard URL behind it.
pm-stack/README.md — the deployment definition
- What it is: The stack’s deployment definition: one
nixos-rebuild switchon laptop hostamddeploys the stack; the user unitspm-aggregator,pm-projector,pm-dispatch, andpm-tunnelare declared innixos/services/pm-stack; Kaneo, Postgres, Pad, and Grist are containers. - Disagreements carried: D1 (its fork framing for Kaneo against the upstream image
compose.ymlpins), D2 (its Grist versiongristlabs/grist-oss:v1.7.21against the tagless digest pin ingrist/compose.yml), D3 (its “the aggregator reads no Pad data” against the health probe and Pad configuration the code carries).
pm-stack/compose.yml and the per-app compose files
- What it is: The container definitions for Kaneo (with its Postgres 16 sidecar), Pad, and Grist.
- Shape: Kaneo pins the upstream image
ghcr.io/usekaneo/kaneo:2.47.0by digest (D1). Grist’s compose file (line 28) pinsgristlabs/grist-ossby digest with no tag (D2). Pad’s pin carries tag and digest. - Behaviour: Kaneo is public as
https://kaneo.security.cabthrough theamd-6-pm-stackCloudflare Tunnel; Grist has no tunnel hostname.
pm-stack/kaneo-projects.json — the Kaneo project registry
- What it is: The workspace and project registry the Kaneo integration reads: workspace “Developing Today”, four projects, one repo each —
codeto developing-today/code,opencodeto developing-today-forks/opencode,openchamberto developing-today-forks/openchamber,nixto dezren39/darwin-nix. - Shape: The file carries the GitHub App id and per-project installation ids.
pm-stack/connect-repo.shreads it. - Behaviour: Kaneo’s GitHub integration status transitions live only in Kaneo’s Postgres (
integration.config.statusTransitionsper project); nothing in the repository sets them. The guard that keeps them correct ispm-stack/kaneo-sync-guard.py.
pm-stack/github-app-manifest.json — the GitHub App manifest
- What it is: The manifest for the developing.today GitHub App behind the Kaneo integration.
- Shape: The integration’s webhook is
https://kaneo.security.cab/api/github-integration/webhook.
pm-stack/ready-for-agent/config.json
- What it is: The ready-for-agent configuration: four repositories (code, opencode, openchamber, nix — the same four as Kaneo).
- Defaults: Every repository sets
defaultModel: "opencode-go/kimi-k3.1-pro",mergePolicy: "OFF"(human merge always), andincludeAllIssueAuthors: true; none is paused. - Behaviour:
apply-config.shregisters the repositories through the GraphQL API idempotently.
pm-stack/platform/workers.json — the Workers registry
- What it is: The platform registry of Cloudflare Workers, checked 2026-11-23, with a
workers.test.tsthat holds the list to the repo’s wrangler files. The console’s#more/platformview is drawn from this file. - Shape: 20 workers. D6:
pm-stack/platform/README.mdstates eighteen; the JSON wins. Each entry records the worker’s state —pm-notifyis recorded as “not deployed” with a null address (D5);decision-eventsas “in service”, deployed by hand. - Behaviour: The README defines what “joined the platform” means: listed, Actions-deployed, version-reporting, named secrets, visible in the app.
Wrangler configuration files
- What it is: One wrangler file per Worker, at the paths the ledger records:
pm-stack/decision-events-worker/wrangler.toml,pm-stack/voice-line-worker/wrangler.toml,pm-stack/notify-relay/wrangler.toml,pm-stack/console/edge/wrangler.jsonc(plusedge/init/wrangler.jsonc),pkgs/pkarr-worker/wrangler.jsonc,pkgs/lab-ops-hub/wrangler.jsonc,pkgs/cf-container-hello/wrangler.jsonc,scripts/muse/handoff/worker/wrangler.jsonc, and the door and service configs named in The workers. - Known gaps: No wrangler config exists in the census for the exec door, the pm aggregator worker, or the pm dashboard worker, and none at the package root for
github-ci; those caveats are stated on their entries in The workers.
Aggregator configuration in code (aggregator/src/config.ts)
- What it is: The aggregator’s configuration module: service base URLs and keys, including the Grist connection (
grist.baseUrl,grist.docId,grist.apiKey) and the Pad and ready-for-agent URLs below. - Behaviour: The Grist values feed
gristRoadmap()inaggregator/src/sources/live.ts, which reads the Roadmap table’s records with the bearer API key.
Other named configuration and seed files
pm-stack/grist/seed/roadmap.json— the Grist roadmap seed (217 lines), also bundled into the pm-aggregator Nix package becausefixtures.tsimports it by relative path.pm-stack/opencode-scheduled-jobs/jobs.json— the scheduled-jobs registry; the one pilot job isquota-freshness-summary.pm-stack/console/src/plan.tsconstants —INTAKE_LABEL = "owner/intake", the intakeROUTEStable,CAPABILITIES, andPHASES(doing,now,next,later,built).pm-stack/aggregator/src/notifications.tsconstants —NOTIFICATION_CLASSESandNOTIFICATION_CLASS_DEFAULTS(the eight preference classes, all default on),DEFAULT_QUIET(quiet hours 23:00–07:00 America/Chicago),NOTIFICATION_COOLDOWN_MS(6 hours),QUOTA_WELL_BEFORE_RESET_MS(24 hours),BLOCKED_AGE_REMINDER_MS(24 hours), andBLOCKED_AGE_BREAKTHROUGH_MS(48 hours).pm-stack/notify-relay/src/relay.tsconstants —NOTIFY_RELAY_HEARTBEAT_MS(the aggregator heartbeat, 60 seconds, named inaggregator/src/notify-relay.ts) andSILENT_CLASS(the relay’s pushes ride theincidentclass).
Environment variables
The original survey verifies these environment names in detail. The full verified set — 318 distinct names across ten components — is the census section at the end of this chapter.
PM_AGG_PAD_URL
- What it is: The aggregator’s Pad base URL (
aggregator/src/config.ts). - Default:
http://127.0.0.1:7777. - Behaviour: D3 — the aggregator reads no Pad planning data; this URL serves the health and topology probe and the Pad service link.
PM_AGG_RFA_URL
- What it is: The aggregator’s ready-for-agent base URL, feeding the source adapter
aggregator/src/sources/ready-for-agent.ts.
PM_AGG_NOTIFY_RELAY_URL
- What it is: The aggregator’s notify-relay URL (
aggregator/src/notify-relay.ts). - Default: Unset.
- Behaviour: With no
PM_AGG_NOTIFY_RELAY_URL, the aggregator side of the dead-man’s switch is inert: no heartbeats are posted. D5 — the relay itself is not deployed.
ATLAS_SEARCH_MODEL and ATLAS_VEC_TABLE
- What it is: Environment overrides in the Atlas Python reference tool only (
pkgs/atlas-search/atlas_search.py) — the embedding model and vector table selection. - Behaviour: No PM component reads them; they are recorded here because the survey’s model census names them. See Model dependencies.
Secrets, by name
Secret values appear nowhere in this book. The survey records these names and routes:
pm-aggregator.alerts-intake-token— the bearer token forPOST /api/alerts, resolved by name throughsrc/secrets.ts.pm-aggregator.vapid-private-key— the Web Push VAPID private key (aggregator/src/push.ts). The VAPID public key is a constant in code; the subject is amailto:value in code.- Per-database Turso tokens for
fleet-platformandfleet-mirrorreads are fetched by name throughfleet secrets get, with a Bitwarden fallback once (pm-stack/quota-check/turso-mirror-read.py, #6828) — explicitly not the Turso CLI’s org token. - The decision-events Worker’s shared secret gates its routes; with no secret configured, the Worker fails closed.
- Stack-token exchange (
POST /api/stack-token/exchange) accepts exactly three targets:kaneo,pad,grist.
The full environment census (318 verified names, by component)
The mechanical census (survey top-up, lane CONFIG-CENSUS, 2026-11-23) grepped the laptop clone’s source for every env/config read — process.env / Bun.env / config-helper reads, Python os.environ, shell ${NAME:-default} forms, systemd Environment= lines, NixOS Environment lists in nixos/services/pm-stack and nixos/services/pm-apps, wrangler [vars] and binding names, compose environment: keys, and pm-stack/projector/.env.example — excluding node_modules/ and test files. It found 318 distinct verified names, 373 (component, name) rows: aggregator 175, console 71, dispatch 23, projector 15, decision-events-worker 3, voice-line-worker 9, notify-relay 3, ready-for-agent 7, platform-scripts 28, nixos-pm 39. The three names the earlier survey verified in detail above (PM_AGG_PAD_URL, PM_AGG_RFA_URL, PM_AGG_NOTIFY_RELAY_URL) are all present in the aggregator list. The full name lists follow, by component; the census’s per-name evidence (file and line, read kind, default) is in the survey record.
aggregator (175)
AA_OPENCODE_CONFIG_PATH, AA_OPENCODE_RUNTIME_CONFIG_PATH, AGE, ALERTS_INTAKE_URL, ALERT_ACK_WINDOW_MIN, BURN_HISTORY_STATE_PATH, BWS_ACCESS_TOKEN_FILE, BWS_BIN, CHARGES_SURFACED_STATE_PATH, CHARGE_CANDIDATES_PATH, CHARGE_INPUTS_DIR, CLAUDE_LAUNCH_RECORDS_PATH, CUR_STAMP, DECISION_EVENTS_OUTBOX_FILE, DECISION_EVENTS_STATE_FILE, DECISION_EVENTS_SYNC, DECISION_EVENTS_TURSO_TOKEN, DECISION_EVENTS_TURSO_URL, DECISION_EVENTS_WEBHOOK_SECRET, DECISION_EVENTS_WEBHOOK_URL, DEPLOY_COMMIT, DNS_REGISTER_JSON_PATH, DNS_REGISTER_PATH, FLEET_BIN, FLEET_FEED_OUT, GH_BILLING_USER, GH_TOKEN, GITHUB_TOKEN, GMAIL_CLI, GRIST_API_KEY, GRIST_ROADMAP_DOC, GRIST_URL, HOME, HTTPS_PROXY, ITEM_HISTORY_FILE, KANEO_ADMIN_EMAIL, KANEO_ADMIN_PASSWORD, KANEO_CLIENT_URL, KANEO_ORIGIN, KANEO_URL, LIVE_VERSION, METADATA_SWEEP_REPOS, META_CREDENTIAL_PATH, META_EXPORTER_LATEST_PATH, META_RENEWAL_DISABLED, META_RENEWAL_STATE_PATH, META_TEAM_ID, NO_PROXY, OPENCHAMBER_LIB_DIR, OPENCHAMBER_LIB_INSTALL_CMD, OPENCODE_BASE_URL, OPENCODE_CONFIG_PATH, OPENCODE_PORT, OPENCODE_SERVER_PASSWORD, OPENCODE_SERVER_PASSWORD_FILE, OPENCODE_SERVER_URL, OPENCODE_SESSION_SOURCE, OPENDESIGN_CDP_URL, OPENDESIGN_RENEWAL_DISABLED, OPENDESIGN_RENEWAL_FORCE_CAPTURE, OPENDESIGN_RENEWAL_STATE_PATH, ORCHESTRATION_PATH, ORCHESTRATION_SOURCE, PAGE_WARN, PLAID_CLI, PM_AGG_ACCESS_AUD, PM_AGG_ACCESS_TEAM_DOMAIN, PM_AGG_ACTIONS_FILE, PM_AGG_ACTIVITY_FILE, PM_AGG_BREAK_GLASS_FILE, PM_AGG_BUILD_VERSION, PM_AGG_CLOUDFLARE_EXPORT, PM_AGG_CODE_CHECKOUT, PM_AGG_COMMENTS_FILE, PM_AGG_CONSOLE_HOST, PM_AGG_COVERAGE_SNAPSHOT_FILE, PM_AGG_DECISIONS_FILE, PM_AGG_DECISION_EVENTS_FILE, PM_AGG_DECISION_OUTBOX_FILE, PM_AGG_DEV, PM_AGG_DIGESTS_DIR, PM_AGG_EVENTS_FILE, PM_AGG_FEED_FILE, PM_AGG_FLEET_INVOCATION_LEDGER_FILE, PM_AGG_FORECAST_ADMISSION, PM_AGG_FORECAST_ADMISSION_MARGIN_MS, PM_AGG_FORECAST_ADMISSION_POOL, PM_AGG_FREE_SERVICES_TRACKER, PM_AGG_FRESHNESS_FILE, PM_AGG_FRESHNESS_PORT, PM_AGG_FRESHNESS_URL, PM_AGG_GITHUB_TOKEN, PM_AGG_HOSTS, PM_AGG_HOST_HEALTH_FILE, PM_AGG_IDENTITY_REGISTRY_FILE, PM_AGG_ITEM_HISTORY_FILE, PM_AGG_LAST_GOOD_DIR, PM_AGG_MCPX_CALL_LEDGER_DIR, PM_AGG_NEEDS_DREW_FILE, PM_AGG_NIX_CHECKOUT, PM_AGG_NOTIFICATIONS_FILE, PM_AGG_NOTIFY_RELAY_STATE_FILE, PM_AGG_NOTIFY_RELAY_URL, PM_AGG_OPENCHAMBER_STATE, PM_AGG_OPENCODE_CONFIG_FILE, PM_AGG_OPENCODE_SERVER_STATE, PM_AGG_OUTAGE_QUEUE_FILE, PM_AGG_OUTCOME_BINDINGS_FILE, PM_AGG_OUTCOME_FILE, PM_AGG_OWNER_IDS, PM_AGG_PAD_URL, PM_AGG_PORT, PM_AGG_PROMPTS_FILE, PM_AGG_PROMPT_ATTACHMENTS_DIR, PM_AGG_PROMPT_SYNC_TIMEOUT_MS, PM_AGG_PUBLIC_ORIGIN, PM_AGG_QUEUE_BROKER_TOKEN_FILE, PM_AGG_QUEUE_BROKER_URL, PM_AGG_QUOTA_CURRENT_FILE, PM_AGG_QUOTA_HEARTBEAT_FILE, PM_AGG_QUOTA_REGISTRY, PM_AGG_QUOTA_VIEW, PM_AGG_REGISTRY_FILE, PM_AGG_REPORT_RECORDS_FILE, PM_AGG_RFA_URL, PM_AGG_ROADMAP_ANNOTATIONS_FILE, PM_AGG_SLO_JOURNAL_FILE, PM_AGG_SNAPSHOTS_DIR, PM_AGG_SOURCE, PM_AGG_STACK_HEALTH_FILE, PM_AGG_STACK_SENTINEL_STATE_FILE, PM_AGG_STACK_TOKEN_SECRET, PM_AGG_STORE_BACKEND, PM_AGG_STORE_WRITER, PM_AGG_VIEWS_FILE, PM_CORE_JOBS_AUDIT_PATH, PM_DRILL_AGE_MS, PM_DRILL_ATTENTION_CMD, PM_DRILL_FEED_FILE, PM_DRILL_HEALTH_CMD, PM_DRILL_INCIDENT_FLAG, PM_DRILL_MAX_WAIT_MIN, PM_DRILL_NO_POST, PM_DRILL_PAGE_CMD, PM_DRILL_RESTORE_WAIT_MIN, PM_DRILL_STATE_DIR, PM_KANEO_PROJECTS_FILE, PM_METADATA_DB_PATH, PM_PRIMARY_CHECKOUT_DIR, PM_PROJECTOR_API_TOKEN, PM_PROJECTOR_URL, POOL_STATE_PATH, PROVIDER_USAGE_SNAPSHOT_PATH, PUSH_FLEET_FEED_KNOWN_HOSTS, QUOTA_ANOMALY_HISTORY_PATH, QUOTA_ANOMALY_STATE_PATH, QUOTA_CLAUDE_RETRY_BASE_MS, QUOTA_CURRENT_PATH, QUOTA_FORECAST_PATH, QUOTA_GATHERER_STATE_PATH, QUOTA_HEARTBEAT_PATH, QUOTA_PREDICTIONS_PATH, QUOTA_REFRESH_CMD, QUOTA_REGISTRY_PATH, QUOTA_SHADOW_PLACEMENT_HISTORY_PATH, QUOTA_SHADOW_PLACEMENT_PATH, QUOTA_SNAPSHOTS_DIR, QUOTA_SUBCOMMAND, QUOTA_SUBCOMMAND_TIMEOUT_MS, QUOTA_VIEW_PATH, SANDBOX_OPENCODE_URL, TAILNET_IP, TURSO_QUOTA_SINK, USAGE_SNAPSHOT_OUTBOX_PATH, XDG_STATE_HOME
console (71)
ANDROID_HOME, ASSETS, CLOUDFLARE_ACCOUNT_ID, CLOUDFLARE_API_TOKEN, EDGE, EDGE_DIRECT, GITHUB_API_ORIGIN, GITHUB_REPOSITORY, GITHUB_RUN_ID, GITHUB_SERVER_URL, GITHUB_SHA, GITHUB_STEP_SUMMARY, GITHUB_TOKEN, GRADLE_VERSION, HOME, HOST_ORIGIN, JAVA_HOME_17_X64, KEYSTORE_B64, KEYS_FROM, KEYS_TO, OWN_CLOCK_MS, PM_ANDROID_KEYSTORE, PM_ANDROID_KEYSTORE_PASSWORD, PM_ANDROID_KEYSTORE_PASSWORD_FILE, PM_ANDROID_REPO, PM_ANDROID_VERSION_CODE, PM_ANDROID_VERSION_NAME, PM_CONSOLE_ACCESS_AUD, PM_CONSOLE_ACCESS_TEAM_DOMAIN, PM_CONSOLE_ANDROID_APK, PM_CONSOLE_ANDROID_PACKAGE, PM_CONSOLE_AUDIT_FILE, PM_CONSOLE_BIND, PM_CONSOLE_BUN, PM_CONSOLE_CERT_NAMES, PM_CONSOLE_DASHBOARD_URL, PM_CONSOLE_DECISIONS_FILE, PM_CONSOLE_DEMO_ACT_LOG, PM_CONSOLE_DEVICES_FILE, PM_CONSOLE_EDGE_DONE_FILE, PM_CONSOLE_EDGE_KEY_FILE, PM_CONSOLE_EDGE_URL, PM_CONSOLE_FLEET_BIN, PM_CONSOLE_ISSUERS_FILE, PM_CONSOLE_MACHINE, PM_CONSOLE_OWNER_EMAILS, PM_CONSOLE_PORT, PM_CONSOLE_PROMPT_LABEL, PM_CONSOLE_PROTECTED_UNITS, PM_CONSOLE_QUEUE, PM_CONSOLE_QUEUE_DB_URL, PM_CONSOLE_QUEUE_TOKEN_NAME, PM_CONSOLE_REPO, PM_CONSOLE_SITE, PM_CONSOLE_UNITS, PM_GH, PM_RELEASE_API, PM_RELEASE_HEALTH, PM_RELEASE_HEALTH_TRIES, PM_RELEASE_HEALTH_WAIT_MS, PM_RELEASE_STAND_UP_TRIES, PM_RELEASE_STAND_UP_WAIT_MS, PM_SIGNED_HERE, PORT, PUBLIC_HOST, QUEUE_DB_ORIGIN, QUEUE_TOKEN, SMOKE_PRIMARY, VERSION, VERSION_CODE, VERSION_NAME
dispatch (23)
DEPLOY_COMMIT, DISPATCH_API_TOKEN, DISPATCH_BUILD_VERSION, DISPATCH_HOSTS, DISPATCH_OIDC_AUDIENCE, DISPATCH_PORT, DISPATCH_REPO_ALLOWLIST, GITHUB_APP_ID, GITHUB_APP_PRIVATE_KEY_BASE64, LIVE_VERSION, OPENCODE_AUTH_FILE, OPENCODE_URL, PM_DISPATCH_PLACEMENT_GUARD, PM_DISPATCH_PLACEMENT_POLICY, PM_DISPATCH_PLACEMENT_RECORD, PM_DISPATCH_WORKTREE_REGISTRY, PM_DISPATCH_WORKTREE_ROOT, PM_DISPATCH_WORKTREE_SWEEP_SECONDS, QUEUE_BROKER_TOKEN, QUEUE_BROKER_TOKEN_FILE, QUEUE_BROKER_URL, QUOTA_CURRENT_PATH, TAILNET_IP
projector (15)
DATABASE_URL, GITHUB_APP_ID, GITHUB_APP_INSTALL_ID, GITHUB_APP_PRIVATE_KEY, GITHUB_TOKEN, GITHUB_WEBHOOK_SECRET, HOSTNAME, LIBXML_SRC, PM_AGGREGATOR_URL, PM_AGG_FRESHNESS_URL, PM_PROJECTOR_API_TOKEN, PM_PROJECTOR_URL, PM_REPOS, PORT, TURSO_AUTH_TOKEN
decision-events-worker (3)
DB, SET_EVENTS, WEBHOOK_SECRET
voice-line-worker (9)
AI, GH_TOKEN, GITHUB_EVENT_NAME, GITHUB_REF, GITHUB_REPOSITORY, STATUS_INGEST_TOKEN, TURSO_TOKEN, TURSO_URL, VOICE_SESSIONS
notify-relay (3)
PM_NOTIFY, RELAY_SHARED_SECRET, VAPID_PRIVATE_KEY
ready-for-agent (7)
DRY_RUN, PATH, RFA_CONFIG, RFA_GRAPHQL_URL, RFA_REPOS_DIR, STUB_PID, XDG_STATE_HOME
platform-scripts (28)
AUTH_SECRET, DISABLE_REGISTRATION, FENCE_LINE, FENCE_OUT, GITHUB_APP_ID, GITHUB_APP_NAME, GITHUB_PRIVATE_KEY_BASE64, GITHUB_WEBHOOK_SECRET, KANEO_CLIENT_URL, KANEO_OPEN_REGISTRATION, KCODE, NOTIFICATION_SECRET_ENCRYPTION_KEY, PATH, PM_AGG_DIGESTS_DIR, PM_GIT_SYNC_QUARANTINE, PM_GIT_SYNC_REPO, PM_STACK_SECRETS, PM_STACK_TAILNET_IP, PM_SWEEPER_SUBPROCESS_TIMEOUT, POSTGRES_DB, POSTGRES_PASSWORD, POSTGRES_USER, QUOTA_WATCHDOG_ADAPTERS_DIR, QUOTA_WATCHDOG_LIVE, QUOTA_WATCHDOG_LIVE_REPAIRS, SOPS_AGE_KEY_FILE, SRC_COUNTS, TGT_COUNTS
nixos-pm (39)
BWS_ACCESS_TOKEN_FILE, BWS_BIN, CHARGES_SURFACED_STATE_PATH, CHARGE_CANDIDATES_PATH, CLAUDE_LAUNCH_RECORDS_PATH, DNS_REGISTER_PATH, FLEET_FEED_OUT, OPENCODE_SERVER_PASSWORD_FILE, OPENCODE_SERVER_URL, OPENCODE_SESSION_SOURCE, ORCHESTRATION_PATH, PATH, PM_AGG_ACTIVITY_FILE, PM_AGG_COVERAGE_SNAPSHOT_FILE, PM_AGG_DIGESTS_DIR, PM_AGG_EVENTS_FILE, PM_AGG_FRESHNESS_FILE, PM_AGG_FRESHNESS_PORT, PM_AGG_FRESHNESS_URL, PM_AGG_ROADMAP_ANNOTATIONS_FILE, PM_AGG_SOURCE, PM_AGG_STORE_BACKEND, PM_AGG_STORE_WRITER, PM_AGG_VIEWS_FILE, PM_APPS_HEALTH_APPS, PM_APPS_HEALTH_GRACE_SECONDS, PM_APPS_HEALTH_NOW, PM_APPS_HEALTH_STATE_DIR, PM_KANEO_PROJECTS_FILE, PM_PROJECTOR_URL, POOL_STATE_PATH, QUOTA_CURRENT_PATH, QUOTA_GATHERER_STATE_PATH, QUOTA_HEARTBEAT_PATH, QUOTA_REGISTRY_PATH, QUOTA_SNAPSHOTS_DIR, QUOTA_VIEW_PATH, SANDBOX_OPENCODE_URL, USAGE_SNAPSHOT_OUTBOX_PATH
Docs-only names (13) — labelled docs-only
These 13 names appear in READMEs, runbooks, or PORTS.md but no code or config-file read was found for them by any census pass. They are recorded here as docs-only: either the docs are stale, or the read happens outside the pm-stack tree (CI workflows, Android build scripts, another repo). They are not verified env names and no behaviour is asserted for them.
AUTH_SECRET, CLOUDFLARE_VOICE_LINE_PROMOTION_TOKEN, CLOUDFLARE_VOICE_LINE_UPLOAD_TOKEN, GRIST_BOOT_KEY, PAD_API_KEY, PM_CONSOLE_ANDROID_KEYSTORE_B64, PM_CONSOLE_ANDROID_KEYSTORE_PASSWORD, PM_CONSOLE_ANDROID_SHA256, PM_HEALTH_HOOKS_INCIDENT_FILE, PORT_SECRETS_BROKER, REPO_QUEUE_BROKER_URL, REPO_QUEUE_TOKEN_FILE, UPLOAD_SECRET
Sources: PM-SURVEY survey files apps.md, website-pages.md, push.md, models.md, and disagreements.md (D1, D2, D3, D5, D6, D8); PM-CENSUS coverage ledger, census date 2026-11-23.
Data stores: the Turso estate
The estate holds exactly 50 Turso databases. The count is settled: a live turso db list on the laptop on 2026-11-23 returned exactly 50 rows, and every name in this chapter is copied from that list. Every database sits in the single Turso group great-star-lord; hostnames are all …-dezren39.aws-us-east-1.turso.io. The #13844 Turso audit’s headline and group arithmetic (Atlas 33 + fleet plane 4 + muse-meta 1 + small product stores 4 + frozen 8 = 50) match the live list name for name outside the Atlas shard families.
This book covers 15 of the 50 in full: the seven live PM stores and the frozen eight as one grouped entry. The other 35 are named in the table at the end: 34 with their covering book and chapter from the coverage ledger (the 33 Atlas databases and fleet-queue), and fleet-dispatch-jobs, the one gap the ledger assigned to the fleet book (its chapter landed in the same programme, PR #13978). Settled ledger arithmetic: 34 covered + 15 PM gaps + 1 fleet gap = 50. Three further stores named in the ledger are D1, not Turso, and close the chapter.
Every full entry follows the same shape: what the store is, its shape, its behaviour, and its failure shapes where the survey records them.
fleet-platform
- What it is: The PM and dashboard plane store: the
agent_mirror, quota, aggregator, and ingest families, alerts, and decision events. Per the #13844 audit, this store takes 87% of the estate’s writes. - Shape: Named table families in the survey record: the alerts tables (
incidents,push_subscriptions,notification_sends) behind the alert throat, anddecision_set_eventsfor decision-set activity. - Behaviour: The aggregator writes it through the Turso HTTP API — from the laptop, not from a Worker: the #13844 audit named the aggregator and the dashboard as Workers, and both names are the one laptop service
pm-aggregator(see The workers, D18). The dashboard — that same aggregator UI — reads and writes its ingest families. The quota-check helper reads it over the libsql HTTP protocol with a per-database token fetched by name. Orchestration state is written to it one transaction per pass by the shared-schema writer (pm-stack/shared-schema/orchestration-writer.py, #5005, #3142). - Failure shapes: None recorded in the survey.
fleet-mirror
- What it is: The lagging second copy of the
agent_mirrordataset, 175 MB. - Behaviour: A mirror, not a primary: it trails
fleet-platform’s mirror dataset. The quota-check helper reads it with its own per-database token, fetched by name. - Failure shapes: None recorded in the survey. Its frozen recovery copy is
fleet-mirror-recovery-stage-20261118, in the grouped entry below.
muse-meta
- What it is: The coordination store.
- Shape: Tables named in the ledger:
coord_events,coord_tasks,coord_workers,meta_notes, andmail_messages. - Behaviour: The store the fleet’s coordination records live in: events, tasks, worker records, notes, and mail messages in one database.
- Failure shapes: None recorded in the survey.
notes-submissions
- What it is: The notes submissions product store.
- Shape: Under 250 rows at audit time.
- Behaviour: A small product store; the audit records its size and its product role and nothing further.
- Failure shapes: None recorded in the survey.
bedside-and-away
- What it is: A small product store.
- Shape: Under 15 rows at audit time.
- Behaviour: The audit records its size only; no writer or reader is named for it in the survey record.
- Failure shapes: None recorded in the survey.
voice-line-ledger
- What it is: The voice-line Worker’s ledger.
- Shape: 4 rows at audit time.
- Behaviour: Owned by the
voice-lineWorker (see The workers); the ledger records the voice line’s state alongside its Durable Object sessions. - Failure shapes: None recorded in the survey.
great-star-lord
- What it is: A third-party application’s database (Charm/Wish), held in the same Turso estate.
- Behaviour: Standing keep-by-name, zero usage. Per the audit it STAYS on Turso: it is not a migration candidate and no PM component reads or writes it.
- Note:
great-star-lordis also the name of the Turso group that holds all 50 databases in this chapter. The group name and this database’s name are the same string; they are not the same thing.
The frozen eight (grouped entry)
- What they are: Eight frozen staging and recovery copies from 2026-11-17 and 2026-11-18, named in the audit and confirmed name-for-name in the live list:
fleet-supabase-recovery-20261117— the frozen 2026-11-17 Supabase recovery copy, 422 MB.fleet-supabase-runtime-stage-20261118— frozen 2026-11-18 staging copy.fleet-supabase-runtime-legacy-stage-20261118— frozen 2026-11-18 staging copy.fleet-supabase-runtime-tx-stage-20261118— frozen 2026-11-18 staging copy.fleet-platform-reconcile-stage-20261118— frozen 2026-11-18 staging copy.fleet-platform-batched-stage-20261118— frozen 2026-11-18 staging copy.fleet-platform-short-tx-stage-20261118— frozen 2026-11-18 staging copy.fleet-mirror-recovery-stage-20261118— frozen 2026-11-18 staging copy.
- Behaviour: Frozen: no writer or reader is recorded for any of the eight. They are point-in-time copies of the Supabase recovery and of the
fleet-platformandfleet-mirrorstaging runs. - Disposition: The audit recommends export-to-object-storage and delete for the eight copies rather than migration. They are assigned to this book so the estate’s completion test holds until that decision is taken.
- Failure shapes: None recorded in the survey.
The other 35
| Database | Covering book and chapter (per the ledger) |
|---|---|
atlas | Atlas book — reference/data-stores.md, concepts/corpus-and-provenance.md. The Atlas monolith: sessions, messages, chunks, native vector and FTS5 store, 7.28 GB. Published at https://developing-today.github.io/code/atlas/ |
atlas-ask-ledger | Atlas book — reference/data-stores.md. Ask exports, queries, usage counters (20 rows). |
atlas-core-internal-content | Atlas book — reference/data-stores.md. The shards’ content store: session and message text, no vectors. |
atlas-core-secret-content | Atlas book — concepts/sensitivity.md, reference/data-stores.md. Secret-tier shard. |
atlas-core-secret-main-01 | Atlas book — concepts/sensitivity.md, reference/data-stores.md. Secret-tier shard. |
atlas-core-internal-agent-tooling-01 | Atlas book — reference/data-stores.md, concepts/corpus-and-provenance.md. Content shard. |
atlas-core-internal-agent-tooling-02 | Atlas book — reference/data-stores.md, concepts/corpus-and-provenance.md. Content shard. |
atlas-core-internal-agent-tooling-03 | Atlas book — reference/data-stores.md, concepts/corpus-and-provenance.md. Content shard. |
atlas-core-internal-agent-tooling-04 | Atlas book — reference/data-stores.md, concepts/corpus-and-provenance.md. Content shard. |
atlas-core-internal-cloudflare-01 | Atlas book — reference/data-stores.md, concepts/corpus-and-provenance.md. Content shard. |
atlas-core-internal-fleet-repos-01 | Atlas book — reference/data-stores.md, concepts/corpus-and-provenance.md. Content shard. |
atlas-core-internal-fleet-repos-02 | Atlas book — reference/data-stores.md, concepts/corpus-and-provenance.md. Content shard. |
atlas-core-internal-fleet-repos-03 | Atlas book — reference/data-stores.md, concepts/corpus-and-provenance.md. Content shard. |
atlas-core-internal-home-lab-01 | Atlas book — reference/data-stores.md, concepts/corpus-and-provenance.md. Content shard. |
atlas-core-internal-home-lab-02 | Atlas book — reference/data-stores.md, concepts/corpus-and-provenance.md. Content shard. |
atlas-core-internal-infra-nix-01 | Atlas book — reference/data-stores.md, concepts/corpus-and-provenance.md. Content shard. |
atlas-core-internal-infra-nix-02 | Atlas book — reference/data-stores.md, concepts/corpus-and-provenance.md. Content shard. |
atlas-core-internal-media-01 | Atlas book — reference/data-stores.md, concepts/corpus-and-provenance.md. Content shard. |
atlas-core-internal-misc-01 | Atlas book — reference/data-stores.md, concepts/corpus-and-provenance.md. Content shard. |
atlas-core-internal-models-and-plans-01 | Atlas book — reference/data-stores.md, concepts/corpus-and-provenance.md. Content shard. |
atlas-core-internal-models-and-plans-02 | Atlas book — reference/data-stores.md, concepts/corpus-and-provenance.md. Content shard. |
atlas-core-internal-people-pets-01 | Atlas book — reference/data-stores.md, concepts/corpus-and-provenance.md. Content shard. |
atlas-core-internal-personal-admin-01 | Atlas book — reference/data-stores.md, concepts/corpus-and-provenance.md. Content shard. |
atlas-core-internal-personal-admin-02 | Atlas book — reference/data-stores.md, concepts/corpus-and-provenance.md. Content shard. |
atlas-core-internal-personal-admin-03 | Atlas book — reference/data-stores.md, concepts/corpus-and-provenance.md. Content shard. |
atlas-core-internal-personal-admin-04 | Atlas book — reference/data-stores.md, concepts/corpus-and-provenance.md. Content shard. |
atlas-core-internal-security-01 | Atlas book — reference/data-stores.md, concepts/corpus-and-provenance.md. Content shard. |
atlas-core-internal-work-engineering-01 | Atlas book — reference/data-stores.md, concepts/corpus-and-provenance.md. Content shard. |
atlas-core-internal-work-engineering-02 | Atlas book — reference/data-stores.md, concepts/corpus-and-provenance.md. Content shard. |
atlas-core-internal-work-engineering-03 | Atlas book — reference/data-stores.md, concepts/corpus-and-provenance.md. Content shard. |
atlas-core-internal-work-engineering-04 | Atlas book — reference/data-stores.md, concepts/corpus-and-provenance.md. Content shard. |
atlas-core-internal-work-engineering-05 | Atlas book — reference/data-stores.md, concepts/corpus-and-provenance.md. Content shard. |
atlas-core-internal-work-engineering-06 | Atlas book — reference/data-stores.md, concepts/corpus-and-provenance.md. Content shard. |
fleet-queue | Fleet book — concepts/queue.md, library/queue-client.md, tutorials/run-the-brokers.md. The queue broker core: tasks, events, leases, placement, actions-exec tables. Published at https://developing-today.github.io/code/fleet/ |
fleet-dispatch-jobs | Fleet book — concepts/dispatch-jobs-store.md (The dispatch-test jobs store: fleet-dispatch-jobs), landed in this programme (lane FLEET-SIDELINE-2, PR #13978). This database was the fleet book’s one gap in the ledger; the fleet book is its home, not this book’s. The dispatch jobs store (jobs, 6 rows). Published at https://developing-today.github.io/code/fleet/ |
Not Turso: the D1 stores
Three stores named alongside the estate in the ledger and audit are Cloudflare D1 databases, not Turso databases, and are excluded from the 50:
decision-events— the decision-events Worker’s sibling D1 database; its schema is the Worker’sschema.sql. See The workers.labops-db— the lab-ops-hub Worker’s D1 database, alongside its R2 bucketlabops-files.atlas-hot-cache— the Atlas search Worker’s D1 hot cache (#9134), in front of the Turso corpus; covered by the Atlas book.
Sources: PM-CENSUS coverage ledger Table B and gap summary; the settled estate list (live turso db list, laptop, 2026-11-23, lane TURSO-SETTLE); the #13844 Turso audit (PR #13845); PM-SURVEY survey file apps.md (§23, §25), census date 2026-11-23.
Model dependencies
This chapter states the PM stack’s model surface exactly as the survey’s model census records it. Every entry follows the same shape: what it is, its inputs and shape, its defaults where the survey gives them, its behaviour, and its failure shapes where the survey records them. Census method: greps over pm-stack/ and pkgs/pm-* for embedding, LLM, and model-call patterns, ground truth the laptop clone at 4d937b3, 2026-11-23.
The headline fact: no LLM or embedding calls in the PM core
The aggregator, the console, dispatch, and the projector make no LLM calls and no embedding calls of their own. No embedding model, embedding endpoint, or vector store is referenced in pm-stack/aggregator/src/, pm-stack/console/src/, pm-stack/dispatch/src/, pm-stack/projector/src/, or pkgs/pm-*/. The entries below record each component’s position, then the two real model surfaces in and around the stack: the voice line’s Workers AI inference, and the Atlas embedding dependency.
The aggregator
- What it is: The dashboard service; its model position is measurement, not inference.
- Behaviour: No call to
api.openai.com,api.anthropic.com, Workers AI, or a chat-completions endpoint exists inaggregator/src/. Grep hits for provider API patterns are quota accounting for Workers AI neurons (src/saas-extract.ts,sources/fixtures.ts) — measuring a bill, not calling a model. Its adapters (claude-adapter.ts,clinepass-adapter.ts,token-adapter.ts) call provider usage endpoints (for examplehttps://claude.ai/api/organizations/<uuid>/usage) to read quota windows — no inference. - Search:
/searchis a title and linked-reference search over the aggregator’s own projections (src/search-view.ts), not a vector search. - Failure shapes: None recorded in the survey.
The console
- What it is: The owner app, local server and edge Worker; its model position is none.
- Behaviour: No LLM call exists in
console/src/orconsole/edge/src/. Its summarisation-shaped surfaces (overview, questions) are projections of stored data. - Fixtures, not calls: Test and demo fixtures name models as data —
console/scripts/demo-state.tsusesmodel: "gpt-5.2-codex"and"workhorse"as session labels;console/test/edge.test.tsusesmodel: "muse". These strings are fixtures, not dependencies.
Dispatch
- What it is: The intake service; it makes no inference of its own, and it places inference.
- Inputs: A caller-supplied model hint, in
"provider/model"form or as{providerID, id}(dispatch/src/validate.ts), passed to the OpenCode server when a session is created (dispatch/src/opencode.ts). The README’s worked example namesopencode-go/gpt-5.6-luna. - Behaviour: The placement guard (
dispatch/src/placement-guard.ts) maps explicit providers to quota pools —opencode-go.drewrypope,opencode-go.popesdrew,opencode-go.developing-today-0,opencode-go.0x111dev, plus ClinePass model hints — and pins the bareopencode-goprovider to the active OpenCode Console account at launch. - Failure shapes: The guard fails pre-commit on a walled pool.
The projector
- What it is: The linking and projection service; its model position is none.
- Behaviour: No LLM or embedding call exists in
projector/src/. The word “embedders” inprojector/src/server.tscomments means embedding applications — hosts that embed the projector library — not vector embedders.
Voice-line inference (Workers AI)
- What it is: The only in-tree inference calls in
pm-stack/: thevoice-lineWorker’s speech models, inpm-stack/voice-line-worker/src/session.ts. - Shape: Speech-to-text is
STT_MODEL = "@cf/openai/whisper-large-v3-turbo"; text-to-speech isTTS_MODEL = "@cf/myshell-ai/melotts". Both run throughenv.AI.run(...). - Behaviour: Push-to-talk runs over a WebSocket in a Durable Object: speech in, transcription, answer, speech out.
- The answer is not an LLM: Between transcription and speech,
matchIntent(transcript)andbuildAnswer(intent, snapshot)run over a Turso queue snapshot in the same file — template answers for recognised intents, for examplequeue_state. - Failure shapes: None recorded in the survey.
The Atlas embedding dependency
- What it is: The pinned embedding space of Atlas (
pkgs/atlas-search/), an adjacent system, not a PM-stack dependency. No PM component consumes Atlas embeddings in the code surveyed; the PM connection is documentary only (pm-stack/lineage-manifest-2026-11-12.md, line 329, records the open design question #1518 on code and config embeddings). Any claim that the PM dashboard uses embeddings is UNVERIFIED and not supported by code. - Production model:
Snowflake/snowflake-arctic-embed-m-v2.0, 768 dimensions. The pin agrees in three places:pkgs/atlas-search/worker/src/space.ts(EMBED_MODEL,EMBED_DIMS = 768, #6788),pkgs/atlas-search/atlas_search.py(MODEL, at full 768 dimensions), and the Rust staging aggregator’s mandated identityEMBEDDING_MODEL_ID(pkgs/atlas-search/crates/atlas-core/src/shards.rs), used byaggregate.rsat promotion; every unit database’s manifest is stampedembedding_model. - Behaviour:
validateEmbedin the Worker refuses any/v1/embedresponse naming another model or another width. - Dormant fallback (Python reference only):
BAAI/bge-small-en-v1.5through fastembed, in a 384-dimension tablevec_bge_small_384_f32. The Atlas book calls the Python reference the only surface that still offers the dormant bge-small fallback embedder. The production Worker and the Rust aggregator do not offer it. - Overrides:
ATLAS_SEARCH_MODELandATLAS_VEC_TABLEexist in the Python tool only. - Full coverage: The Atlas book, published at https://developing-today.github.io/code/atlas/.
Models the stack measures and routes (not dependencies)
- The AA and Cost Explorer and quota system are about models:
aggregator/src/aa.tsreads the deployed OpenCode config’s provider catalogs andexperimental.model_routes(route names includeworkhorse,speed,specialist,summit,small), computes route leaf sets, and joins Artificial Analysis measurements, plan seats, and per-model price bands. These are data subjects, not calls. - A ready-for-agent default: Every repository in
pm-stack/ready-for-agent/config.jsonsetsdefaultModel: "opencode-go/kimi-k3.1-pro"— a model default in another app’s configuration, not a call from this repo. - Session provenance: Session records (
model.tsSessionRecord, the console’sWork.sessions()) carry the session’s model or route as a string, for exampleworkhorse— provenance data about fleet work, not a PM-stack dependency. - Provider services named by quota adapters — Claude, ClinePass, OpenCode Go/Zen, Open Design, and Mistral as a planned exporter adopter — are account and usage integrations, not inference dependencies of the PM stack.
- A naming trap, recorded so the book does not repeat it: Historical load-test data in
aggregator/docs/aa-load-2026-11-12/gen_load.pynames synthetic families “Claude Sonnet 5.5” and “Claude Opus 5.5” (slugsclaude-sonnet-5-5,claude-opus-5-5) — a generated load fixture, not a dependency and not a real model name to cite. - A non-dependency in the port registry: OpenClaw’s embedding server (llama-server, port 18791 in
pm-stack/PORTS.md) is a laptop service recorded in the registry; no PM code references it.
Sources: PM-SURVEY model census (pm-stack/aggregator/src/, pm-stack/console/src/, pm-stack/dispatch/src/, pm-stack/projector/src/, pm-stack/voice-line-worker/src/session.ts, pkgs/atlas-search/), survey file models.md, census date 2026-11-23.
Tutorial: answer a waiting question end to end
This tutorial answers one waiting question from the phone, and then answers the same kinds of question from the console. A waiting question arrives in three forms, and each form has its own answer surface:
- A single needs-Drew question rides a push notification. The first two options are tappable actions on the notification itself.
- A decision set is a group of questions from the decisions ledger. One push covers the whole set, and the set’s page is the answer surface.
- A needs-Drew census item is an open issue or pull request labelled
user/revieworuser/escalated. The console answers it with a reply, or with the hands-done action.
Do the form in front of you. Do not convert one form into another.
Before you start
- The phone holds a push subscription. Set it up and check it on
/alerts/preferenceson the aggregator, or in the console at#more/notify. - The question exists. A producer raised it in the Muse-side decisions ledger, or a fleet repo carries the item with a
user/revieworuser/escalatedlabel. - For the console path, sign in to the console at
/console. The console records every action in its audit log before it takes the action. An action the console cannot record is an action the console does not take.
Path A: tap an answer on the push (single question)
Step 1: Read the notification
The push for class needs-drew carries the question and its options in the notification data. The service worker in aggregator/src/sw-source.ts turns the first two options into notification actions. Options past the first two are not on the notification. Open the answer page for those options; Step 3 covers that page.
Step 2: Tap an option
Tap one of the two actions. On notificationclick with an action, the service worker sends the answer directly:
POST /api/needs-drew/<ledgerId>/answer
body: {token, optionId}
No page opens. The token comes from the answer-page URL’s ?t= value, which the service worker parsed and stored in the notification data as answerToken, alongside answerLedgerId and answerUrl. The per-question token in the URL is the authority for the answer.
Service-worker errors are silent. A tap with no visible result is not proof the answer landed. Check the result in Step 4.
Step 3: Use the answer page when the tap is not enough
Open the answer page from the notification. The page presents the same endpoint through client code generated in aggregator/src/server.ts. Pick the option and submit. The request is the same POST /api/needs-drew/<ledgerId>/answer with {token, optionId}.
Step 4: Confirm the write-back
The endpoint records the resolution against the ledger item’s question, through the decisions machinery in aggregator/src/decisions.ts and aggregator/src/needs-drew.ts. The dropped-thread catcher then applies resolutions to the Muse-side decisions ledger, per question.
One limit stands in the code, recorded as D9: the surveys name needs-drew.ts as “the question store” for single questions and name decision sets as a distinct store, and the exact file a single-question answer writes is UNVERIFIED. This tutorial therefore names the endpoint and the ledger application, and no store file for the single-question path.
Path B: answer a decision set on its page
Step 1: Open the set
Tap the set’s push. The tap opens /decisions/<setId>?t=<token>. Decision sets carry no tappable answers by design: “the page is the answer surface” (aggregator/src/notifications.ts).
A set has items. An item has 1–16 questions. A question has a qid of the form <ledgerId>#<1-based index>, 0–12 options, a mode of single or multi, and recommended option ids. A question with 0 options takes a free-text answer.
Step 2: Answer, defer, or ask for information
On the page, the client sends one of three calls:
POST /api/decisions/<setId>/submit {submissions}
POST /api/decisions/<setId>/defer
POST /api/decisions/<setId>/request-info
Draft and edit events go to POST /api/decisions/<setId>/events. A resolution is one of answered (option ids, free text, comment), deferred (with a lean of none, skeptical, or approve), or request-info. First resolution wins per question. The store deletes a question’s drafts when the question resolves.
Use submit-all on the page to answer the set in one pass.
Step 3: Confirm the fan-out
Resolutions land in the aggregator’s decisions store through recordResolutions in aggregator/src/decisions.ts. The store exports them as decision resolution records for the ledger and fleet-feed path. scripts/sync-decision-events.ts drains the decision-event outbox to Turso (the fleet-platform store) and to the decision-events Worker, which fans new batches out to the set page’s live subscribers. The dropped-thread catcher applies the resolutions to the Muse-side ledger per question.
Path C: answer from the console
Step 1: Open the questions view
Open the console and go to #needs. The default segment is chosen by counts: questions first, then hands, then reviews. Open #needs/questions directly for decision sets.
The console reads the same sets from the decisions file through Work.questions() in console/src/work.ts: open questions only, newest set first, context clipped in the list view. Work.question() returns the full context for one question.
Step 2: Answer through the action table
Use the action that matches the item:
questions.answer— answer one question in a set.questions.accept— accept the recommended options for a set. The console batches this action at 200; the dashboard cap noted in code is 256 per request.questions.defer— defer, recorded in the console as “Decide for me”, with lean defaultapprove.need.comment— reply to a census item.Work.needCommentposts a GitHub issue comment carrying the<!-- owner-reply:v1 -->marker.hands.done— close out a hands item.Work.handsDoneposts a “Done by the owner…” comment and deletes theuser/escalatedlabel throughgh.
All five go through the audited action endpoint:
POST /console/api/act
Work.submit() in the console calls the dashboard’s own POST /api/decisions/<setId>/submit for set answers, so a console answer and a page answer land in the same store.
One correction to older design text, recorded as D4: the aggregator service never writes GitHub labels. The console does, through the actions above. The orchestrator is not the only label writer in the stack.
Step 3: Handle the away case
When the laptop is unreachable, the console edge holds the action instead of dropping it. The edge replays the held action through the same action table when the host returns. The console’s #more/away view shows what the edge holds: held actions and kept answers. Do not re-submit a held action from a second surface; the replay delivers the first one.
The edge answer-intake route in the notify relay is a separate path, and it is not routed. See Tutorial: trace a push notification from event to answer and D5.
You are done when
- The question no longer appears as open in
/decisions, in#needs/questions, or in the needs-Drew census for its item. - The resolution is in the decisions store, and the ledger application has a record to apply for that question.
- For a census item answered from the console, the GitHub item carries the owner-reply comment, and a hands item no longer carries the
user/escalatedlabel.
Sources. survey/website-pages.md §F1–F3, §F7; survey/push.md §4a–§4c; survey/disagreements.md D4, D5, D9. Ground truth: laptop clone at 4d937b3, 2026-11-23.
Tutorial: trace a push notification from event to answer
This tutorial traces one push from the event that caused it to the answer that closes it. Work the trace in order. Each step names the file that owns the step, so a break in the chain has an address.
The shape, in one line: the aggregator on the laptop is the only detector and decider for the ordinary classes; it sends Web Push (VAPID) directly to subscribed phones and browsers; the Cloudflare notify relay is a dead-man’s switch for total laptop silence, and it is not deployed (D5).
Step 1: Start at the event
Pick the event class first. The class decides which detector produced the candidate.
| Event | Detector | File |
|---|---|---|
| A stack service fails its probe | Stack sentinel, watchdog, health hooks | aggregator/scripts/stack-sentinel.ts; aggregator/src/watchdog*.ts; aggregator/src/stack-health.ts; aggregator/src/host-health.ts; pm-stack/host-health-collector.py; pm-stack/health-hooks/run.py |
| State changes on attention, quota, or health snapshots | Notification candidate builder | aggregator/src/notifications.ts, buildNotificationCandidates |
| An external producer files an incident | Alert throat | POST /api/alerts in aggregator/src/server.ts; store in aggregator/src/alerts.ts |
| A prompt is answered or fails | Prompt lifecycle | aggregator/src/prompts.ts and the prompt class, #10035 |
The candidate builder constructs six classes: needs-drew, blocked-age, quota-wall, quota-near-wall, section-risk, stack-health. The classes incident and prompt arrive through their own producers, not through the snapshot builder.
Step 2: Read the class registry
Open NOTIFICATION_CLASS_DEFAULTS in aggregator/src/notifications.ts. The registry defines eight preference classes, each default ON for a new subscription:
incidentneeds-drewquota-wallquota-near-wallsection-riskstack-healthblocked-ageprompt
Count them in the code, not in older issue text. Issue #8882 speaks of six classes; the code carries eight (D14). section-risk is the class #8882 added, and prompt followed it.
For section-risk, the trace continues in aggregator/src/aa.ts: route sections are exactly workhorse, speed, specialist, summit, small. A section fails when at least one pool serves and every serving pool is walled. A section is at severe risk when it has not failed and every non-walled serving pool is pending wall. The candidate’s object ref is section:<name>, and its landing URL is /quota.
Step 3: Follow the decision in the engine
Open aggregator/src/alerts.ts, in runAlertTick and runDashboardNotificationTick. For each subscription, the engine applies, in order:
- Class enablement:
classEnabledreads the subscription’s stored class map. Legacy rows default onlyincidenton. - Quiet hours: the default window is 23:00–07:00 America/Chicago. Quiet hours hold every class except breakthrough classes.
incidentis a breakthrough class. A failed section insection-riskis a breakthrough. The 48-hour point inblocked-ageis a breakthrough. - Dedupe: the key is subscription, class, object ref, and state fingerprint.
- Cooldown: 6 hours,
NOTIFICATION_COOLDOWN_MS. - Digest queueing: a non-breakthrough candidate enters the digest queue instead of sending at once. A state that disappears, or a class the subscription mutes, cancels the pending digest entry.
Every attempt lands in the notification_sends log with an outcome from the recorded set: sent, suppressed-quiet, suppressed-dedupe, suppressed-cooldown, gone, error, queued, queue-cancelled, recovered. That log is the measurement behind the /notifications page.
Set and check preferences on /alerts/preferences: per-class toggles, quiet hours, and a per-class test send for the subscription.
Step 4: Follow the send
Open aggregator/src/push.ts, in sendPush. The aggregator sends Web Push with VAPID from the laptop. The public key is a constant in code. The private key arrives by secret name, pm-aggregator.vapid-private-key. The subject is a mailto: value in code.
Two test routes exercise this leg without a real event:
POST /api/push/test
POST /api/push/test-class
Subscriptions arrive through POST /api/push/subscriptions. GET /api/sw-probe probes the service-worker side.
Step 5: Follow the receive on the phone
Two service workers exist:
- The aggregator PWA:
aggregator/src/sw-source.ts, served as/sw.js, with the client inaggregator/src/assets/push-client.js. - The console app:
console/public/sw.js, withconsole/src/push.tsandconsole/src/notify.ts, wrapped as an Android TWA fromconsole/android/.
Which of the two service workers owns a given phone’s subscription in production is UNVERIFIED from the code surveyed. Trace a concrete delivery through the subscription row in the alerts store, not through an assumption about the app.
Step 6: Follow the tap to the answer
The tap target depends on the class:
needs-drew, single question: the service worker turns the first two options into actions and sendsPOST /api/needs-drew/<ledgerId>/answerwith{token, optionId}on the tap, with no page open. The full procedure is in Tutorial: answer a waiting question end to end.needs-drew, decision set: the tap opens/decisions/<setId>?t=<token>. The page is the answer surface.incident: the tap opens/alerts#incident-<id>. Acknowledge or close there; the action writes the incident lifecycle (open,acked,closed) in the alerts store. Incidents also receive one escalation delivery.quota-wall,quota-near-wall,section-risk: the tap opens/quota. There is no answer-back;/quotais a state view.blocked-age: the tap opens/attention, anchored to the item. Acting on the item through a dashboard action or comment records owner activity and stops blocked-age escalation for that ref.prompt: the tap opens/chat. The responding session wrote the answer in the prompt thread itself.
Step 7: Trace the dead-man’s switch leg, and stop at its edge
The relay leg exists in code:
- Client:
aggregator/src/notify-relay.ts,NotifyRelayClient. The aggregator sends a heartbeat every 60 seconds (NOTIFY_RELAY_HEARTBEAT_MS) and mirrors push subscriptions to the relay. - Relay:
pm-stack/notify-relay/src/index.ts,relay.ts, andpush.ts. A singleton Durable Object re-arms an alarm at last-beat plus 150 seconds. On silence it sends exactly onestack.silentWeb Push, riding theincidentpreference class. On recovery it sends exactly one recovered push.
The leg ends there today. pm-stack/platform/workers.json records the pm-notify Worker as “not deployed”, with a null address (D5). With no PM_AGG_NOTIFY_RELAY_URL set, the aggregator side is inert. With no heartbeats, the relay side is inert.
Two relay routes in its README’s route table are not routed in code: POST /mirror/event arrives with step 2 of the relay build, and GET /answer/<ledgerId> and POST /api/needs-drew/<ledgerId>/answer arrive with step 3. Everything else in the relay returns 404. Phone answers therefore go to the laptop aggregator, as in Step 6. Any document that presents edge answering as available is ahead of the code.
Whether any other watchdog covers total laptop silence is UNVERIFIED in the surveys.
Worked trace: one outage, end to end
pm-stack/host-health-collector.pyand the sentinel probes record a failure.aggregator/scripts/stack-sentinel.tsfires on the 3-consecutive-failure transition.pm-stack/health-hooks/run.pyruns a read-only diagnosis, appends a JSONL incident, and posts to the alert throat on a best-effort basis.POST /api/alertsinaggregator/src/server.tsaccepts the post under the intake bearer token, resolved by the secret namepm-aggregator.alerts-intake-token.aggregator/src/alerts.tswrites the incident row in the Turso-backed alerts tables and runs the tick: classincident, breakthrough, dedupe applied.aggregator/src/push.tssends the push.- The phone service worker shows the notification. The tap opens
/alerts#incident-…. - The
notification_sendslog records the attempt, and the/notificationspage rolls it into the sent-vs-acted-on measurement.
You are done when
- Each leg of the delivery names its file: detector, candidate builder, engine, send, service worker, tap target.
- The
notification_sendsoutcome for the delivery is one of the recorded outcomes, and the outcome matches the leg where the trace stopped. - For a laptop-silence trace, the trace stops at the relay edge in Step 7, with D5 cited. No answer route through the relay is presented as live.
Sources. survey/push.md §1–§5; survey/website-pages.md §B28, §F1–F2; survey/disagreements.md D5, D14. Ground truth: laptop clone at 4d937b3, 2026-11-23.
Tutorial: follow an item from issue to done
This tutorial follows one work item through every surface that carries it: the GitHub issue, the portfolio pool, the aggregator, the Kaneo board, the claimant or dispatch session, and the closure guards. Read the item on each surface in order. Each surface names the item in its own form; the refs join them.
Step 1: Start at the GitHub issue
The item starts as a GitHub issue or pull request in a fleet repo. Its aggregator subject form is gh:…, and other surfaces join to it by ref, in the form <owner>/<repo>#<number>.
Record three facts from the issue before moving on: its repo and number, its labels, and its sub-issue parent, if it has one. Hierarchy in this stack is the native GitHub sub-issue parent. Dependencies are the native blockedBy and blocking relations. Prose in the issue body is a substitute for neither.
Step 2: Read the item in the portfolio pool
The item enters the portfolio through org Project “Developing Today” (#4). The aggregator reads the pool in aggregator/src/projects.ts and takes four single-select fields verbatim: Status, Area, Horizon, Kind.
Kind has exactly two values in code: Task and Epic (aggregator/src/model.ts). An item with Kind Epic gains an epicRef, resolved through the native sub-issue parent. Children group under that ref in the epic rollups in aggregator/src/epics.ts.
There is no aggregator level in this ladder (D10). The ladder is: program (document scheme, surfaced as an Area and as a registry project) → project (registry plus Project #4) → epic (Kind Epic plus sub-issue parent) → task or item. The word “aggregator” names the dashboard service.
The Project’s single writer is the orchestrator. Agents and the dashboard do not edit Project fields directly. A dashboard status change travels as a status-request action; the orchestration pass performs the write and reports the outcome back.
Step 3: Read the item in the aggregator
Open the item’s detail page:
/item/<subject>
Subject forms include gh:, session:, and orch: refs. The machine twin follows the pattern /api/item/<id>.json. An unresolved id is a 404.
Find the same item on the surfaces that carry it:
/and/today— the front door and the day view./board— the cross-repo work-in-progress board./queue— in progress, blocked, recently completed, and next-up work across projects./programand/program/<id>— the project hub and the item’s project page./discuss/<subject>— the discussion surface for the item. Comments post throughPOST /api/comments.
The aggregator joins its sources per item. The projector supplies links and the latest comments per subject, through aggregator/src/sources/projector.ts. The projector’s own record of the item comes from its webhook intake and reconcile polls. See Projector internals.
Progress on an epic is weight, not counts (aggregator/src/weights.ts): effort/xs counts 1, s counts 4, m counts 12, l counts 40 as a floor. An unsized item contributes no weight and is counted visibly as unsized.
Step 4: Read the item on the Kaneo board
The aggregator reads Kaneo read-only. It signs in through /api/auth/sign-in/email, reads /api/workspace and /api/project, and pages /api/task/tasks/<projectId> (aggregator/src/sources/live.ts, kaneoBoard()). A card becomes a board item with subject kaneo:<slug>/<taskId>. The deep link comes from kaneoTaskUrl() in aggregator/src/service-links.ts.
Kaneo columns map to canonical statuses in aggregator/src/status-taxonomy.ts: to-do, in-progress, in-flight, in-review, done. Board policy in aggregator/src/board-policy.ts filters retired “ROADMAP Done table” cards out of the board.
The board runs one repo per project, in the workspace “Developing Today”: code, opencode, openchamber, nix, registered in pm-stack/kaneo-projects.json.
One correction stands over this step (D1): the deployed board is the upstream image ghcr.io/usekaneo/kaneo:2.47.0, pinned by digest in pm-stack/compose.yml. The fork at developing-today-forks/kaneo exists as a repo. Compose does not run it. Text in aggregator/src/program.ts that presents the fork as the deployed board is ahead of the deployment code.
Step 5: Watch the sync move the item
Kaneo’s own GitHub integration — the developing.today GitHub App — moves cards on status transitions. The transitions, per pm-stack/KANEO-GITHUB-SYNC.md:
- Branch push → task
in-progress. - Pull request open → task
in-review. - Pull request merge → task
in-review. - GitHub issue close → task
done, through the built-in fallback. - Reverse direction: a task reaching Done applies
status:donelabels and closes the GitHub issue.
The merge transition targets in-review, not done. That setting dates to 2026-11-14: the upstream default closed merely-referenced issues seconds after a merge.
The settings live only in Kaneo’s Postgres, in integration.config.statusTransitions per project. No file in the repository sets them. The guard in Step 7 is the control that holds them.
No component in the repository carries the name “Kaneo PM bot”. The bot-shaped actor in this step is the GitHub integration itself, acting on transitions, not on comments. A separate bot outside the repository is UNVERIFIED: no file under pm-stack/ or pkgs/pm-* names one.
Step 6: Follow the item into a session
Work on the item runs in a session. Two intake paths create sessions:
- Dispatch:
POST /v1/sessionson the dispatch service creates the tracking GitHub issue with labelsource/dispatch, enqueues a queue task, creates an OpenCode session on the laptop server, and claims the task fordispatch-opencodewith a 6-hour lease. A placement guard pins explicit model hints to the active account’s quota pool before launch and fails before commit on a walled pool. - The claimant:
pm-stack/opencode-claimant/claimant.pyfires in six steps — supervision and recovery of stuck bound sessions, the candidate gate throughpoll.pyacross four queues, the concurrency cap (36 claimant roots, from 2026-11-05), launch, bind, prompt. Fires log to~/.local/state/opencode-claimant/fires.jsonl.launch_one.pylaunches one task at once, per #8187.
Follow the session itself on /sessions, whose machine twin is /api/registry.json. The registry records who ran what, token counts, and task links. The console carries the same list at #more/agents.
Queue order is priority, then age: the board read in console/src/work.ts orders by priority ascending, nulls last, then creation time ascending. Priority bands and rank labels are separate records; the /conflicts page lists live disagreements between sources, with both values and the age of the disagreement.
Step 7: Check the closure guards before calling the item done
Four guards stand between “looks done” and “done”:
- Epic closure gate —
evaluateEpicClosureGateinaggregator/src/epics.ts, withscripts/epic-closure-gate.ts. An epic stays open while its complete subtree has open children or unmet conditions. The gate enumerates blockers by condition.pm-stack/fleet-monitor/epic_close_check.pymonitors the gate report-only: a blocked epic is a finding, not a failure. - Closure watchdog —
pm-stack/closure-watchdog.py. It polls issue-close events in the Kaneo-covered repos and reopens an automation close when the issue still has open sub-issues, or when the closing pull request carried no closing keyword. Keyword closes and human closes stay untouched. Its scheduler is a Muse sandbox cron job, outside the laptop stack, on a 15-minute cadence as recorded inKANEO-GITHUB-SYNC.md. - Invariant sweeper —
pm-stack/invariant-sweeper.py. On a slow cadence it sweeps the four Kaneo-synced repos for: a closed issue with non-completed sub-issues; an open issue carryingstatus:done; a Kaneo↔GitHub state mismatch. Default mode reports only.--actrepairs the first two classes under the watchdog’s guards and still only reports the third. - Kaneo sync guard —
pm-stack/kaneo-sync-guard.py. It asserts every GitHub integration’s transitions (no targetdone; merge → in-review; open → in-review; push → in-progress), heals drift, and exits 1 loudly on a trip.deploy.shruns it, and thepm-kaneo-sync-guardtimer runs it hourly.
You are done when
- The GitHub issue is closed by a keyword close or a human close, and no guard in Step 7 reopens it or reports it.
- The Kaneo card sits in the done column, and the aggregator board item carries the same state.
- An epic item passes the closure gate with no enumerated blockers.
- The session that did the work is in the registry on
/sessions, linked to the item.
Sources. survey/apps.md §1, §7–§8, §19, §29, §31–§32; survey/roadmap.md §1–§3; survey/website-pages.md §A–§B; survey/disagreements.md D1, D10. Ground truth: laptop clone at 4d937b3, 2026-11-23.
Tutorial: read the quota and usage views
This tutorial reads the quota surfaces and nothing else. It names each surface, the data family behind it, and the order to read them in. Quota figures — pool percentages, dollar amounts, reset times for a concrete pool — are not in this chapter. Those figures carry dates and live in the LLM-plans chapters. A figure copied into a tutorial is stale on arrival.
Step 1: Open the usage and billing page
Open /quota. Its manifest entry in aggregator/src/pages.ts reads: “Token quotas, PAYG dollars, and every SaaS service’s usage vs its limits.”
The machine twin is /api/quota.json. Page and twin read the same assembly. Read the page for the layout and the twin for the record shape.
The page carries three data families:
- Token quotas, per pool.
- PAYG dollars.
- SaaS services, each read against its limits.
The code behind the page lives in the quota module family in aggregator/src/, in files named quota-*.ts: current state, forecast, anomaly, reweight, admission, and the weekly review. Billing machinery sits behind the same page: charges catalog, collect, and match modules; spend attribution, cards, dollars, and rollups modules; and the SaaS extract module.
Step 2: Read one service in detail
Open a service detail page:
/quota/service/<id>
Its parent in the reachability map is /quota. Its twin follows the pattern /api/quota/service.json, read with a service selector in the query. The exact query contract is UNVERIFIED beyond the route existing in aggregator/src/server.ts. This tutorial names the route and the parent, and no parameter contract.
Use the detail page to answer questions about one service. Use /quota to answer questions about the whole estate. Do not reconstruct the estate view by adding detail pages together; the page assembly and the detail read are separate code paths.
Step 3: Refresh, and know what a refresh does
The page exposes a refresh action:
POST /quota/refresh
POST /api/quota/refresh
Collection scripts feed the store the page reads: scripts/gather-quota.ts, scripts/forecast-snapshot.ts, and the usage-snapshot scripts for append, backfill, and compact. Charge candidates come from scripts/produce-charge-candidates.ts and scripts/confirm-charges-surfaced.ts. GitHub billing has its own collector, scripts/collect-github-billing.ts, over the source in aggregator/src/sources/github-billing.ts.
A view that disagrees with a provider’s own console is a stale-view problem first. Run the refresh, then re-read. The failure shape and its checks are in Troubleshooting.
Browser-dependent sources are a separate family. The exporters in pm-stack/exporters/ cover sources reachable only through a logged-in website. In the surveyed tree the only adapter present is a synthetic fixture; real per-provider adapters are follow-on work, and live per-provider production use of the exporter core is UNVERIFIED. Two laptop exporters feed the same quota system from outside the aggregator: pm-stack/cloudflare-export/cloudflare-quota-export.mjs and pm-stack/meta-exporter/meta-quota-export.mjs, each with a service and timer.
Step 4: Read the Cost Explorer
Open /aa. The page has two tabs:
- AA Explorer — Artificial Analysis measurements, frontier charts, and plan, API, and per-task efficiency.
- Model Explorer — every model in the fleet’s catalogs, with pool seats, plan, and measured value.
The twin is /api/aa.json. The computation asset is /assets/aa-explorer-computations.js. The code is aggregator/src/aa.ts and aggregator/src/aa-batches.ts.
Read /aa for comparison questions: which model, which seat, which measured value. Read /quota for limit questions: usage against a cap. The two pages share source data and answer different questions.
Step 5: Read the quota-adjacent surfaces
Four more surfaces carry quota state in other forms:
- The front door
/carries a quota summary as one of its glance panels, next to needs-you, projects, and health. - Push notifications carry quota state to the phone. The classes
quota-wall,quota-near-wall, andsection-riskland on/quotawhen tapped. The full trace is in Tutorial: trace a push notification from event to answer. /notificationsmeasures the alert throat: the sent-vs-acted-on roll-up over the send ledger. Read it to judge the notifications, not the quotas.- The console carries platform state at
#more/platform, releases at#more/releases, machines at#more/machines, and services at#more/services. These are console views over platform and host state. The console has no quota page of its own in the surveyed view list.
Step 6: Record a reading correctly
A reading from these surfaces is a dated observation, not a fact about the pool. When a reading matters — a wall, a forecast, a reweight proposal — record it with:
- The surface read (
/quota, the service detail page, or/aa). - The date and time of the read.
- The refresh state: read before a refresh, or after one.
Quota-side prioritisation records proposals, not silent changes: forecast and reweight proposals live in the quota module family and in scripts/quota-reweight-proposals.ts and the weekly review. Detail of that proposal machinery beyond this pointer is UNVERIFIED in the surveys.
You are done when
- Each number you report names its surface and its date, and comes from the LLM-plans chapters or from a live read you just made — never from this tutorial.
- A service question is answered from its detail page, and an estate question from
/quota. - A stale-looking view has been refreshed once and re-read before it is reported as a discrepancy.
Sources. survey/website-pages.md §A (entries 10 and 12), §B27, §D; survey/apps.md §15, §27–§28; survey/roadmap.md §3. Ground truth: laptop clone at 4d937b3, 2026-11-23.
The shared schema as a library
pm-stack/shared-schema/ is the shared-store contract layer of the PM stack. Components that write shared orchestration state to the Turso fleet-platform store do it under this package’s contracts, in its transaction shape, under its guards. This chapter describes the package at the depth the surveys support: its parts, its writer, its consumers as named in code and docs, and the map that indexes the shared stores.
The parts
The package directory carries:
ORCHESTRATION.md— the orchestration contract document for the package.orchestration-writer.py— the writer for orchestration state to Tursofleet-platform. Its rule is one transaction per pass (#5005, #3142).migrations/— the schema migrations for the shared stores the package covers.ainventory-turso-guards.sql— guard SQL for the Turso inventory surface, under the file’s own name as surveyed.- Migration and orchestration tests, shipped with the package.
The inventory context for the package is pm-stack/SHARED-SCHEMA-MAP.md. The migration plan that sits next to it is pm-stack/SHARED-SCHEMA-MIGRATION-PLAN.md. Read the map before the migrations: the map names which store a contract belongs to.
A fuller export list — every table, view, and guard the package defines, with signatures — is UNVERIFIED from the surveys. The surveys name the files above and the writer’s transaction rule, and no complete export catalogue. A chapter that enumerated tables from the migrations alone, without the map’s store assignments, invents the package’s public surface.
The writer’s contract
orchestration-writer.py writes orchestration state in one transaction per pass. That shape has three consequences a consumer relies on:
- A pass lands whole or not at all. A reader never reads half a pass.
- Ordering between passes is transaction order in the store. There is no second ordering channel.
- A failed pass leaves the previous pass’s state in place. Recovery is a new pass, not a repair of a partial one.
The orchestration state this writer carries is the same state the dashboard actions act on: dashboard actions are consumed by the orchestration pass, and the pass is the Project’s single writer for Project fields. See Tutorial: follow an item from issue to done for the action path an item takes into that pass.
Who consumes it
Consumers named in the surveys:
- The orchestration pass itself, writing to
fleet-platformthrough the writer. - The aggregator, as the reader of the shared stores: the aggregator’s projections join orchestration state with its other sources, and its quota-check helper (
pm-stack/quota-check/turso-mirror-read.py, #6828) reads thefleet-platformandfleet-mirrorstores per database over the libsql HTTP API, with per-database tokens fetched by name. That helper is explicitly not the Turso CLI’s org token route. - The decision-events pipeline, as a writer to the same store family: decision-set activity events land in
fleet-platformin thedecision_set_eventstable, throughaggregator/scripts/sync-decision-events.tsand the decision-events Worker.
The complete consumer list is UNVERIFIED from the surveys. The surveys name the writer, the store, and the readers above; they do not enumerate every script that imports the package or applies its migrations. Treat any consumer not named here as unconfirmed until its import or its store writes are read in code.
The package in the stack’s store picture
fleet-platform is the PM and dashboard plane store: agent mirror, quota, aggregator ingest families, alerts, and decision events. It is the store the #13844 Turso audit assigns the largest share of estate writes. fleet-mirror is the lagging second copy of the agent-mirror dataset. Both stores are PM-book data stores; their estate context is in the coverage ledger for this programme.
The shared schema is the contract layer over that picture, not a store itself. Code that needs the shape of a shared table reads the package’s migrations and the map. Code that needs the data reads the store.
Using the package
- Read
pm-stack/SHARED-SCHEMA-MAP.mdfor the store and table in question. - Read the migration that defines the table, in
pm-stack/shared-schema/migrations/. - Write through the package’s writer shape: one transaction per pass, for orchestration state.
- Run the package’s migration and orchestration tests with the change.
Step 3 is the rule that keeps the package a library and not a naming convention: a writer that bypasses the transaction shape breaks the three consequences in the section above for every reader.
Sources. survey/apps.md §23, §25, §36; survey/roadmap.md §3–§4; coverage-ledger.md Table B (fleet-platform, fleet-mirror). Ground truth: laptop clone at 4d937b3, 2026-11-23.
Aggregator internals
The aggregator is a Bun application in pm-stack/aggregator/. It runs as the user unit pm-aggregator on port 4870, bound to loopback and the tailnet, and it is public only behind the console gate at pm.security.cab. Its Nix package is pkgs/pm-aggregator/package.nix. This chapter describes its module shape, its state handling, and its ingest families, at the depth the surveys support.
For the surface the aggregator serves, page by page, the reference chapters carry the census. This chapter is about the code under that surface.
Module shape
The survey counts ~180 modules in src/. The surveys name these families:
- Pages and rendering —
pages.ts(the page manifest: 23 pages, their nav groups, and the sub-route parent map),render.ts(the renderers),server.ts(routing, the HTTP and WebSocket surface, and inline client code for the answer pages). - Health —
health.ts,stack-health.ts,host-health.ts,build-health.ts, thewatchdog*.tsandslo*.tsfamilies. One health assembly feeds both/healthand/api/health. - Quota — the
quota-*.tsfamily: current state, forecast, anomaly, reweight, admission, and weekly review; with the charges family (charges-{catalog,collect,match}.ts), the spend family (spend-{attribution,cards,dollars,rollups}.ts),saas-extract.ts, andcost-anomaly.ts. - Decisions and questions —
decisions.ts(decision sets and resolutions),needs-drew.ts(the needs-Drew census and the single-question store),notifications.ts(candidate builder and class registry),alerts.ts(the alert throat store and engine),push.ts(Web Push send). - Prompts —
prompts.ts,prompt-ws.ts,prompt-notify.ts,prompt-widget.ts,prompt-attachments.ts. - Actions and comments —
actions.ts(dashboard actions and their result path),comments.ts(dashboard-native comments and the queue of comments waiting on a loop). - Sources — the
src/sources/adapters, one per upstream system (next section). - Domain modules —
model.ts(the shared types: tier items, Project pool items, session records),epics.tsandepic-reparent.tsandepic-graph.ts,weights.ts,projects.ts,program.ts,project-config.ts,project-doc.ts,roadmap-annotations.tsandroadmap-reconcile.ts,board-policy.ts,status-taxonomy.ts,service-links.ts,search-view.ts,aa.tsandaa-batches.ts,outage-queue.ts,config.ts,secrets.ts,stack-token.tsandbreak-glass.ts,notify-relay.ts(the relay client),decision-events.tsanddecision-events-sync.ts,sw-source.ts(the service worker source).
A module-by-module catalogue beyond these named families is UNVERIFIED from the surveys. The surveys name families and load-bearing files; they do not index all 180 modules.
Scripts live in aggregator/scripts/: quota gather and forecast snapshots, the digest producer, the fleet-feed collector, charge candidates, the decision-set producers (raise-decision-set.ts, submit-decision-set.ts), the decision-events sync, the stack sentinel, and the epic closure gate and reparent scripts. The Nix package wraps four script binaries beside the server: gather-quota, generate-digest, export-turso-stores, and quota-weekly-review. The package also bundles kaneo-projects.json and the Grist seed roadmap, because fixtures.ts imports the seed by relative path.
Session identity tooling sits in aggregator/opencode-tools/session-identity.ts.
State handling
The aggregator holds no planning data of its own as a source of truth. Its state handling has four shapes:
- Projections from sources. Pages render from projections the source adapters build. Provenance travels with the data: a roadmap read carries its source string, and the server checks it — the roadmap reasonableness check requires the Grist read’s provenance to start with “live”. The board’s provenance string records a live Kaneo poll in its own words when the poll succeeds.
- Its own stores for its own surfaces. Decision resolutions land in the decisions store (
recordResolutionsindecisions.ts, first resolution wins, drafts pruned on resolution). Alerts land in the Turso-backed alerts tables: incidents, push subscriptions, and thenotification_sendslog. Comments land in the comments store. Actions land in the actions store for consumers to poll. - Conflicts surfaced, not resolved. Where sources disagree — a Project Status against derived state, two roadmap rows with one title — the aggregator surfaces the disagreement on
/conflictswith both values and its age. The one merge rule in code is the roadmap title rule: a repo-file row wins over a Grist row with the same title, the Grist row’s links union into the survivor, and the duplicate is noted in provenance (#1738). - Render accounting. The #1147 render registry records each manifest page’s last render and its outcome, and
/api/healthreports it per page. One gap stands in that accounting (D8):/decisions/<setId>is absent fromSUBROUTE_PARENTS, somanifestRouteForreturns null for it and decision-set detail renders sit outside the registry.
Two manifest facts belong with state handling, because a reader of pages.ts alone gets them wrong:
- The
decisionsmanifest entry declares no API twin. The server implements the decisions API regardless: submit, defer, request-info, and events per set, plus the decision-sets list and submit routes (D7). - The single-question answer store is named two ways in code comments, and the exact file a single-question answer writes is UNVERIFIED (D9). The endpoint and the ledger application are the documented facts.
Ingest families
The source adapters in src/sources/ ingest from:
- GitHub and the Project pool — issues, pull requests, and Project #4 items, read through the fleet feed. Project fields arrive verbatim: Status, Area, Horizon, Kind.
- Kaneo —
live.ts,kaneoBoard(): sign-in, workspace, projects, and paged tasks, read-only. Poll diffs feed activity and freshness, with gap and recovery tracking in the same module. - Grist —
live.ts,gristRoadmap(): the Roadmap table’s records, mapped to roadmap rows with their deep links. - Repo files —
sources/repo-roadmap.ts:planning/roadmaps/*.mdin developing-today/code andROADMAP.mdin dezren39/darwin-nix, with horizon validation inroadmap-horizon.ts. - The projector —
sources/projector.ts: links and the latest comments per subject. See Projector internals. - ready-for-agent —
sources/ready-for-agent.ts, configured byPM_AGG_RFA_URL. - Pad — no data ingest. The aggregator carries a Pad base URL in
config.ts, a Pad service link, and a health and topology probe, and its stack-token exchange acceptspadas a target. It reads no Pad planning data (D3). - Provider usage endpoints — the quota adapters (
claude-adapter.ts,clinepass-adapter.ts,token-adapter.ts) read usage windows from provider endpoints. These are accounting reads. The aggregator makes no LLM calls and no embedding calls; see the models chapter of this book for the full statement. - Host state — the snapshot
pm-stack/host-health-collector.pywrites on its 5-minute timer: claimant mode file, backup last-run, and user-unit and timer states for pm-git-sync, pm-projector-reconcile, pm-kaneo-sync-guard, and pm-dashboard-backup. The packaged aggregator cannot collect that state itself; the collector exists for that reason. - Webhooks and intake posts —
POST /webhooks/github(metadata webhook),POST /api/alerts(the alert throat, bearer intake token by secret name),POST /api/push/subscriptions, and the prompt and comment intake routes.
Freshness is a first-class output: /freshness/stream serves server-sent events, /api/freshness-events.json serves the same family as JSON, and feed section ages appear on /health.
Configuration and secrets
src/config.ts holds the service configuration: source base URLs and credentials per source, including the Grist base URL, doc id, and API key, and the Pad base URL under PM_AGG_PAD_URL with default http://127.0.0.1:7777. Secrets arrive by name through src/secrets.ts — the alerts intake token as pm-aggregator.alerts-intake-token, the VAPID private key as pm-aggregator.vapid-private-key. Values are never in the chapter, the config file, or the logs this chapter describes.
Break-glass and stack-token exchange live in src/stack-token.ts and src/break-glass.ts, with scripts/issue-break-glass-token.ts as the issuing script.
Sources. survey/apps.md §2–§5, §36; survey/website-pages.md §A–§D, §F; survey/models.md §2; survey/disagreements.md D3, D7, D8, D9. Ground truth: laptop clone at 4d937b3, 2026-11-23.
Projector internals
The projector is a Bun service in pm-stack/projector/, packaged as pkgs/pm-projector/, on port 7801. Its rule, from its own README, is the whole design: “It links and projects; it never becomes a fifth source of truth and never writes back to GitHub / Kaneo / Pad / Grist.”
This chapter describes the projector’s intake, its link registry, its read surface, and its consumer.
What it holds
The projector holds links between subjects and the activity those links organise: items, comments, and per-subject reads over the linked set. Its schema is projector/schema.sql. Two SQL views carry the joined reads:
pmp_v_links_items— links joined to items.pmp_v_subject_activity— activity per subject.
A projection is a derived record. The source systems keep their own records; the projector keeps the join. Deleting a projection loses the join and nothing upstream.
Intake
Two intake paths feed the registry:
- Webhook intake —
POST /github/webhook. The endpoint verifies the HMAC signature on the delivery and dedupes by delivery GUID. A redelivered webhook is a no-op after its first acceptance. - Reconcile polls —
src/reconcile.ts, driven throughsrc/cli.ts. Polls close the gap between webhook deliveries: a missed delivery is a state the next poll corrects, not a permanent hole.
The link registry
The registry is an HTTP surface:
GET /links
POST /links
DELETE /links
A link joins subjects across systems — the GitHub issue, the Kaneo card, the roadmap row — under their subject forms (gh:…, kaneo:<slug>/<taskId>, grist:<docId>/Roadmap/<recId>, session:…, orch:…).
Reads
GET /items
GET /comments
GET /subjects/<subject>
The queue view is an HTML surface in the same service: src/queue-view.ts and src/queue-view-html.ts. Its route path is UNVERIFIED from the surveys — the files are named, the route is not. This chapter records the files and no path for the view.
The consumer
The aggregator is the surveyed consumer. aggregator/src/sources/projector.ts reads links and the latest comments per subject from the projector and joins them into the aggregator’s item projections. That join is what puts a Kaneo card’s link and an issue’s latest comment on one item page.
The projector’s health and reconcile state feed the host snapshot the aggregator reads: the host-health collector records the pm-projector-reconcile timer state among the user units it snapshots.
The package
pkgs/pm-projector/ is the Nix package for the service. The surveys establish the package’s existence and its place in the package set, beside pkgs/pm-aggregator, pkgs/pm-dispatch, and pkgs/pm-git-sync. The package’s internal derivation structure is UNVERIFIED from the surveys, and this chapter does not describe it.
Rules for working in the projector
- Add a link type in the registry and the schema together. A link the views do not join is a write with no reader.
- Keep intake idempotent. The GUID dedupe on the webhook path is the contract; a new intake path carries the same contract.
- Never write back. A change that makes the projector edit GitHub, Kaneo, Pad, or Grist breaks the service’s stated rule and turns a projection into a fifth source of truth.
- Reconcile is the repair path. A divergence between the registry and a source system is fixed by the poll that re-reads the source, not by a hand edit to the registry.
Sources. survey/apps.md §7, §30, and the Nix packages summary; survey/website-pages.md §C, §G. Ground truth: laptop clone at 4d937b3, 2026-11-23.
OpenCode and OpenChamber: our forks programme
This part of the book covers the two forks the fleet runs its agent work on: developing-today-forks/opencode, the coding agent, and developing-today-forks/openchamber, the agentic development environment built on it. It records what the forks are, why the fleet carries them, what the fleet has changed in them, what the fleet intends to change next, and how the open work on each fork is ordered. It is a programme record, not a user guide: the unit throughout is the fork, the change, and the issue.
The scale of the programme, counted in the survey this part rests on (survey date 2026-11-23; GitHub API read 2026-11-24T00:35–01:05Z, fully paginated): the opencode fork carries 1,258 merged pull requests and 30 open issues; the openchamber fork carries 1,186 merged pull requests and 30 open issues; the programme’s open set in the developing-today/code repository, defined by title match in the survey, is 91 issues. The counts are stated in full in Our changes, shipped and in flight, and the open issues are listed in full in the two issue maps.
Why this part exists
The forks are load-bearing. The fleet’s sessions run in the fork builds, the fleet’s model routes and quota machinery live in the fork code, and the control surface the fleet operates from is the second fork. A change to either fork changes what every session does. The rest of this book treats the forks as part of the ground: the Project Management stack’s claimant drives the fork server, and the plan and route chapters describe pools that the fork implements. This part is where the forks themselves are the subject.
This part is not the plan record. Which plans the fleet holds, which pools and routes the deployed configuration names, and what the walls and resets are sit in the LLM plans part of this book — start at Pools, routes and the switchboard and The plans we use. Where a fork change exists to serve a plan or a route, this part records the fork change and links across; it does not restate the plan.
How to read this part
- The forks: what they are and why we carry them — the two repositories, the two-step fork chain, the tracking policy for each fork, the purpose the programme’s own epics state, and the divergences from upstream: the ones the fork READMEs claim, and the ones the repository record shows on its own.
- Our changes, shipped and in flight — the merged pull requests of both forks, grouped by theme under the survey’s grouping rule, with shipped work and in-flight work kept in separate sections. Shipped means merged. Intention is never counted as shipped.
- Goals and intentions — what the programme is trying to make true, each goal with its issue link, including the closed landmark items the survey marks as closed.
- OpenCode: prioritised issue map — every open issue on the opencode fork (30), in the order the map’s stated ordering rule produces.
- OpenChamber: prioritised issue map — every open issue on the openchamber fork (30), under the same rule.
- The forks programme dependency map — the dependency edges the survey states, each with its source, and the non-edges the survey records, recorded as non-edges.
The lift-out note
This part is written to be lifted out. It has its own framing, its own opening chapter, and its own sources, and it depends on the rest of this book only through explicit cross-links of the kind in the paragraph above. When the forks programme gets its own book, this part moves as a unit: the seven chapters, their tables, and their snapshot dates move together, and the cross-links back into this book become cross-book links. Until that move, the part lives here because the programme and the Project Management stack share one repository, one queue, and one operator.
Conventions used in this part
- Counts are counted. Every count in this part comes from the survey’s fully paginated API read of 2026-11-24T00:35–01:05Z. No count is estimated, and no count from a search-result page is used where the survey gives a counted figure.
- The maps are dated. Issue states rot. Each issue map states the date its map was drawn (2026-11-23) in its opening lines, and an issue’s presence in a map is a statement about that read, not about today.
- Claims are labelled as claims. What a fork README asserts is recorded as the README’s claim. What the repository record shows is recorded as shown. Where the two differ, the chapter states both and cites the disagreement by number (D50–D58 in this part).
- Shipped and intention stay separate. Merged pull requests are shipped. Open issues and open pull requests are in flight. A goal is an intention until its issues close.
- Placeholders are escaped. A value you supply is written as <name>.
Sources. Survey file ~/workspace/pm-book/survey/oc-programme.md (OC-SURVEY, survey date 2026-11-23; API data read 2026-11-24T00:35–01:05Z via fleet gh api); raw material deposit ~/workspace/pm-book/sideline-material/oc-survey/; book shape from ~/workspace/pm-book/skeleton.md (the liftable section, own SUMMARY part).
The forks: what they are and why we carry them
The programme carries two forks. The opencode fork is the agent: the program that runs sessions, walks model routes, and holds the quota machinery. The openchamber fork is the control surface: the agentic development environment that presents sessions, settings, and routing controls to the operator. Both sit in the developing-today-forks organisation. Both were created on 2026-10-09, two seconds apart.
Identity
The repository record, from the GitHub API repo objects read in the survey (2026-11-24T00:35–01:05Z):
| opencode fork | openchamber fork | |
|---|---|---|
| Repo | developing-today-forks/opencode | developing-today-forks/openchamber |
API parent | dezren39/opencode | dezren39/openchamber |
API source (root of fork network) | anomalyco/opencode | openchamber/openchamber |
| Default branch | main | main |
| Org fork created | 2026-10-09T04:04:23Z | 2026-10-09T04:04:25Z |
| Last push at read time | 2026-11-23T23:54:52Z | 2026-11-23T23:16:56Z |
| Branches (API) | 61 | 32 |
| Labels defined | 168 | 150 |
| Description | “The open source coding agent.” | “Agentic Development Environment based on OpenCode AI agent” |
The chain is two-step: upstream → Drew’s personal fork (dezren39) → the org fork (developing-today-forks). Both fork READMEs describe the repo as a fork of the upstream project; the API places the personal fork between the org fork and upstream (D51). On the laptop, ~/git/opencode carries remotes origin/devtoday = the org fork, upstream = dezren39/opencode, upstream-anomalyco = anomalyco/opencode; ~/git/openchamber-fork carries origin = the org fork and upstream = openchamber/openchamber directly.
Tracking policy
The fork READMEs (fork-notice blocks at the top of each README, read on the laptop) state the tracking policy:
- The opencode fork tracks upstream’s v2 line on
devexclusively. Upstream promoted v2 todevon 2026-10-10; legacy v1 is onv1. - The openchamber fork tracks upstream
main.
One reading trap stands in the record: the opencode README’s dev is upstream’s branch name. The fork’s own default branch in the API is main, and 1,254 of its 1,258 merged pull requests target main (D57). A reader who follows the README literally looks for the fork’s work on a branch the fork does not default to.
Upstream sync is a standing mechanism, not a one-off: Jules daily upstream-sync workflows, sync-failure tracking issues, and dated sync merges. The README notices do not keep up with it. Both READMEs state the latest upstream commit merged is from Fri Oct 16 2026; the repos show opencode PR #2683 “sync anomalyco/opencode dev (2026-11-22)” and #2690 “sync anomalyco/opencode dev (2026-11-23)”, and openchamber PR #2502 “Merge upstream openchamber main (v2.8.0)” (2026-11-22) and #2510 “Merge upstream openchamber main (3a0dbeafb4)…” (2026-11-23). The README notices are five weeks stale at the survey read (D50).
Why we fork
The programme’s own epics state the purpose: the forks exist so the fleet can change the agent and its control surface itself — route pools, quota/plan handling, custom providers, session control — instead of waiting on upstream. The stating issues are opencode#2319 “epic: opencode fork — platform work”, openchamber#2153 “Epic: OpenCode platform”, and the migration epic opencode#374 “Migrate the fleet to OpenCode 2”.
A consolidation ruling (code#5060, cited in opencode#2490/#2491) goes further: merge OpenChamber’s server-side control into OpenCode and fix the quota credential in the server credential store. The two forks are intended to converge at the server layer, not merely coexist. The ruling’s two fork issues are open; the intention is stated in Goals and intentions and the edge is drawn in The forks programme dependency map.
Claimed divergences
Each fork README’s fork-notice claims a divergence set. These are the READMEs’ claims, recorded as claims.
The opencode fork claims: (1) Model route pooling & scheduled weights (experimental.model_routes, recurring time-based weight schedules, ordered/round-robin/weighted selection, soft budgets, burst rate-limit continuity, silent-target hedging); (2) indefinite route telemetry & cost accounting (per-request cost_usd from catalog pricing); (3) autonomous route review & tuning (route_stats/route_usage tools, route_adjust); (4) plan & quota tracking (plans.json, plan_info tool, cost tiers cheap/standard/frontier); (5) built-in skills/commands (/routing-review, /plan-update, /routing-note, /routing-config); (6) MCPX integration & daemon handover (native MCPX tool projection into Code Mode, detached daemon, JIT secret prompts, socket handover on serve restarts).
The openchamber fork claims: (1) Model Pools UI & recurring schedules (Settings UI for experimental.model_routes); (2) Route Rules interpreter & timed overrides (“Route by sentence”); (3) Plans & Usage section (Settings → Routing → Plans and usage); (4) Review & Update action buttons for /routing-review and /plan-update; (5) control & workspace enhancements (worktree-by-default sessions, projects.add/projects.remove, fork-specific release update resolution); (6) MCPX secret management UI (JIT secrets on desktop/web/VS Code/mobile); (7) inter-session messaging (Messages surface) — explicitly “Needs an OpenCode build with messaging (developing-today-forks/opencode)”. Item (7) is a cross-fork dependency; it is drawn as an edge in The forks programme dependency map.
Standing divergences the record shows on its own
- Merged-PR volume is the divergence. 1,258 merged PRs on the opencode fork and 1,186 on the openchamber fork at the survey read. Authorship: opencode — dezren39 1,211, developing-today[bot] 42, dependabot[bot] 5; openchamber — dezren39 1,091, developing-today[bot] 86, github-actions[bot] 8, dependabot[bot] 1. The grouped record is Our changes, shipped and in flight.
- Long-lived and standing branches. The opencode fork (61 branches) carries
spike/2492-tursodb-backend(the TursoDB spike, opencode#2492),pin/darwin-nix-opencode-6c43550,feat/2490-session-cookie-credential,feat/2494-route-overrides-api, plus a large population ofqueue/<task>-…,lane-*,probe-*andci-*working branches. The openchamber fork (32 branches) carries sixsync/*-20261122branches from the 2026-11-22 upstream-sync batch, sevenautomation/opencode-update-20261117…20261122daily branches,216b-goal-spec-jobs, andinvestigation/2325-dependabot-regression. Full branch lists are in the survey’s deposit. - Fleet config is written against the fork.
~/git/code/.opencode/opencode.jsonc(code repo, laptop read) is written against fork-only surface: its header records the 2026-11-07 provider rename (opencode#1823) under which “providers the fleet custom-built in the fork” carry a leading underscore (_claude,_antigravity,_vibe,_commandcode,_muse), the fork-native antigravity provider (opencode#1457, replacing the :18751 proxy per opencode#1414), the fork-native claude-code provider (opencode#1749 / code#6117), and the provider-availability system (opencode#1828). None of that exists in upstream. The deployed pools and routes that config names are recorded in Pools, routes and the switchboard; this chapter records only that the config’s surface is the fork’s.
Sources. Survey file ~/workspace/pm-book/survey/oc-programme.md §1.1–§1.4 and §6 items 1, 2, 8 (cited in this part as D50, D51, D57); GitHub API repo objects and laptop README reads as recorded in the survey; deposit ~/workspace/pm-book/sideline-material/oc-survey/ (repo-opencode.json, repo-openchamber.json, branches-oc.json, branches-och.json, labels-oc.json, labels-och.json, laptop-readme-excerpts.txt).
Our changes, shipped and in flight
This chapter records what the fleet has changed in the two forks. It has two halves and keeps them apart. Shipped work is merged pull requests. In-flight work is open pull requests and open issues. An open issue is an intention; it is recorded in this chapter as in flight and in the issue maps as ordered work, and nowhere in this book as a change.
What counts as shipped
The survey’s definitions, applied throughout this part:
- Merged =
merged_atnon-null in the API response. - Shipped = merged into
main. On the opencode fork, 1,254 of 1,258 merged PRs targetmain; the 4 exceptions targetsweep/560-provider-models,spike/2492-tursodb-backendandpin/darwin-nix-opencode-6c43550. - Grouping rule: theme = the conventional-commit scope in the PR title (
feat(scope):,fix(scope):, …); titles without a scope are grouped by the first matching keyword (route/quota/provider/session/tui/console/plugin/nix/ci/test/doc/upstream), else “other/no-scope”.
The headline counts at the survey read (2026-11-24T00:35–01:05Z): opencode fork — 1,258 merged PRs, of 1,438 closed, with 9 open. Openchamber fork — 1,186 merged PRs, of 1,290 closed, with 2 open. Authorship of the merged set: opencode — dezren39 1,211, developing-today[bot] 42, dependabot[bot] 5; openchamber — dezren39 1,091, developing-today[bot] 86, github-actions[bot] 8, dependabot[bot] 1.
Shipped: opencode, 1,258 merged PRs by theme
| Theme | Merged PRs |
|---|---|
| core | 423 |
| ai | 181 |
| ci | 125 |
| cli | 49 |
| docs | 47 |
| roadmap | 47 |
| server | 42 |
| schema | 26 |
| script | 24 |
| tui | 19 |
| gui-extensions | 17 |
| client | 15 |
| app | 14 |
| desktop | 14 |
| console | 14 |
| nix | 13 |
| util | 10 |
| plugins/mcp | 9 |
| web | 8 |
| specs | 7 |
| other/no-scope | 7 |
| deps | 7 |
| quota | 6 |
| facade | 6 |
| plugin-github | 5 |
| function | 5 |
| core,ai | 5 |
| codemode | 4 |
| providers | 4 |
| routes | 4 |
| www | 4 |
| protocol | 3 |
| plugin-browser | 3 |
| config | 3 |
| flake | 3 |
| routes/pools | 3 |
| nix/packaging | 3 |
| console,stats | 3 |
| deps-dev | 3 |
| legacy | 2 |
| session | 2 |
| session-ui | 2 |
| core,server | 2 |
| util,core | 2 |
| ui,gui-extensions | 2 |
| lint | 2 |
| core,schema | 2 |
| http-recorder | 2 |
| stats | 2 |
| changelog | 2 |
| cli,tui | 2 |
| client,httpapi-codegen | 2 |
| plugin | 2 |
| sdk | 2 |
| cli-rs | 1 |
| ai/quota | 1 |
| tui,codemode,ci | 1 |
| update | 1 |
| ui | 1 |
| a11y | 1 |
| resolver | 1 |
| stats-app | 1 |
| console-app | 1 |
| astro | 1 |
| ci,core | 1 |
| app,session-ui | 1 |
| quota/plans | 1 |
| core,server,tui | 1 |
| cost | 1 |
| util,tui | 1 |
| test | 1 |
| tool | 1 |
| vibe | 1 |
| pkg | 1 |
| app,tui | 1 |
| files | 1 |
| tests | 1 |
| cli,server | 1 |
| ai,tui,cli | 1 |
| httpapi-codegen | 1 |
| mcpx | 1 |
| github | 1 |
| storage | 1 |
| auth | 1 |
| latex | 1 |
| cli,client | 1 |
| client,app | 1 |
| core,ai,tui,cli | 1 |
| core,app | 1 |
| tui,cli | 1 |
| security | 1 |
| provider | 1 |
| cli,core | 1 |
| services | 1 |
| upstream sync | 1 |
| desktop,core | 1 |
| acp | 1 |
The centre of the opencode fork’s shipped work is the agent core and the AI layer: core 423 and ai 181 are 604 of the 1,258. ci at 125 is the third theme: the fork’s own build and check machinery is a standing workstream in its own right, not overhead around the other work. The fork surface the READMEs claim in The forks: what they are and why we carry them — routes, quota, plans — sits inside these scopes rather than under its own: the scope vocabulary gives quota 6, routes 4, routes/pools 3, quota/plans 1 and ai/quota 1 as standalone themes, while route and quota work also lands under core and ai titles. The theme table is a count by title scope. It is not a feature inventory, and this chapter does not read it as one.
Shipped: openchamber, 1,186 merged PRs by theme
| Theme | Merged PRs |
|---|---|
| web | 475 |
| ui | 108 |
| vscode | 89 |
| ci | 89 |
| quota | 48 |
| routing | 48 |
| electron | 37 |
| roadmap | 35 |
| other/no-scope | 26 |
| web,vscode | 22 |
| docs | 20 |
| nix | 14 |
| deps | 11 |
| settings | 8 |
| agent-tool | 8 |
| chat | 7 |
| mobile | 7 |
| control | 7 |
| flake | 6 |
| git | 5 |
| goal | 5 |
| security | 5 |
| release | 5 |
| scripts | 4 |
| tests | 4 |
| quota/plans | 4 |
| i18n | 4 |
| environment | 4 |
| web,ui | 3 |
| sidebar | 3 |
| browser | 3 |
| fs | 2 |
| upstream sync | 2 |
| goal-writer | 2 |
| sync | 2 |
| cli | 2 |
| ui,web | 2 |
| model-choices | 2 |
| routes/pools | 2 |
| plugins/mcp | 2 |
| sessions | 2 |
| notes | 2 |
| providers | 2 |
| routes | 2 |
| routing-ui | 2 |
| proxy | 2 |
| dictation | 2 |
| lifecycle | 2 |
| markdown | 2 |
| audit | 1 |
| client-auth | 1 |
| tts | 1 |
| models | 1 |
| event-stream | 1 |
| session-work | 1 |
| perf | 1 |
| oc-review | 1 |
| opencode | 1 |
| dependabot | 1 |
| repo | 1 |
| workflow | 1 |
| notifications | 1 |
| web,vscode,ui | 1 |
| web,ui,sdk | 1 |
| project-context | 1 |
| quota,web | 1 |
| nix/packaging | 1 |
| workflow-audit | 1 |
| watcher | 1 |
| themes | 1 |
| github-routes | 1 |
| context | 1 |
| opencode-update | 1 |
| quota-ui | 1 |
| web-cli | 1 |
| deps-dev | 1 |
| dev-servers | 1 |
| github | 1 |
| source-control | 1 |
| stale | 1 |
| sdk | 1 |
| contributing | 1 |
| messaging | 1 |
| worktrees | 1 |
| update | 1 |
The centre of the openchamber fork’s shipped work is the web surface: web alone is 475 of 1,186, and web with ui 108, vscode 89 and electron 37 makes the operator-facing surfaces the bulk of the fork. The routing and quota surface the fork claims is visible under its own scopes here: quota 48, routing 48, quota/plans 4, routes/pools 2, routes 2, routing-ui 2 and quota-ui 1. ci at 89 matches the opencode fork’s pattern: the fork’s own machinery is a workstream, and the open issue map shows its cost — four of the fork’s eight priority/high open issues are CI items (OpenChamber: prioritised issue map).
The per-PR enumeration behind both tables — every merged PR with title, author and merge date — is in the survey, §1.5, and in the deposit. This chapter carries the groupings; the survey carries the rows.
In flight
At the survey read the forks carry 11 open pull requests between them: 9 on the opencode fork, 2 on the openchamber fork. The survey counts the open PRs and does not enumerate them; their titles and authors sit in the deposit files pulls-open-oc.json and pulls-open-och.json, outside the survey text this part rests on, and this chapter states the counts without a per-PR list.
The in-flight intention set is the open issue set: 30 open issues on each fork, listed and ordered in OpenCode: prioritised issue map and OpenChamber: prioritised issue map, and the 91 open programme issues in the code repo defined in Goals and intentions. Standing branches carry in-flight work that has no merged form yet; the named ones are the TursoDB spike branch spike/2492-tursodb-backend (opencode#2492), feat/2490-session-cookie-credential and feat/2494-route-overrides-api on the opencode fork, and 216b-goal-spec-jobs and investigation/2325-dependabot-regression on the openchamber fork (The forks: what they are and why we carry them).
The code-repo machinery that runs on the forks
Three components in the code repo’s pm-stack/ exist to drive the forks. They are code-repo work, not fork PRs, and they are part of the programme’s shipped change because the forks’ shipped surface is what they drive. The survey read all three on the laptop.
The claimant: the dispatcher
pm-stack/opencode-claimant is a Python claimant/executor (main script claimant.py, ~2,250 lines, plus poll.py, launch_one.py, dispatch_batch.py, send_to_opencode.py, babysitter.py, nudges.py; README 546 lines; specified in code#3026). Each fire: (1) supervises bound sessions and recovers zero-message/gone sessions (code#4758 rules: verify via the fork server’s per-id endpoints, DELETE the verified-empty session, atomically reclaim via repo-queue bind); (2) discovers unbound lane: "opencode" tasks across the queue broker; (3) enforces a 36-root-session cap counted from the fork server’s GET /api/session/active (claimant roots only, ruling session-cap-5016/code#5016); (4) creates sessions with the v2 create shape (POST /api/session with location.directory, verified against the repo primary before bind — a top-level directory is stripped by v2, code#4870), binds via repo-queue bind, and delivers the prompt with verified delivery; (5) logs the fire to ~/.local/state/opencode-claimant/fires.jsonl. Mode gate: shadow (default, mutates nothing) vs live, from a local mode file. On cap saturation it hands one candidate back per fire, parked with reason executor-saturated and a capacity ready-condition (code#1187). Every fire also runs a babysitter round (code#1338): a verdict (progressing/stalled/done-unreported/blocked/walled/idle) for every root session, stall = ≥20 min silent with no live CI on the bound PR, confirmed on a second round.
It drives the fork server specifically: the README’s session contract (code#4912) and seam contract (code#7770) are written against the fork’s v2 API behaviour (singular /message, /session/active, location-verified create) that upstream v1 did not have. The PM-side account of the same component is The claimant: keeping sessions honest. The claimant README disagrees with itself and with current operation at two points — four queues in its queue section vs the one-queue form its own launch_one.py section describes, and a plural /messages endpoint written in the same sentence that warns the plural 404s (D56).
Scheduled jobs: fire-and-forget fork jobs
pm-stack/opencode-scheduled-jobs is the source for small scheduled OpenCode jobs on the laptop: each job is a systemd user service/timer pair with its route visible in the unit, a read-only prompt, and a stable per-job state dir. The registry (jobs.json) holds exactly one job: quota-freshness-summary — hourly, route opencode-route/workhorse (a fork route pool), reading a sanitised projection of ~/.local/state/pm-aggregator/quota-current.json (only provider names, status, timestamps, window names/states reach the model; credentials, raw usage, limits and balances are stripped by summarize.py before the fork session sees them). Enabled 2026-11-21 after an explicit pilot decision; first hourly firing observed exit 0. Logs at ~/.local/state/opencode-scheduled/quota-freshness-summary/{latest.log,history.jsonl}. The README is explicit that the timer provides no stall supervision — that remains the claimant babysitter’s job — and that a monitor must correlate via directory-scoped server API reads because opencode session list “is not a reliable discovery surface” (against the fork server). The PM-side account is Scheduled jobs and the history they keep.
Usage export: the usage producer
pm-stack/opencode-usage-export is a read-only pull exporter (Node, node:sqlite, store opened read-only with query_only; 15-minute systemd timer on the laptop) over the fork’s own history database — code#2072 slice 1, “the same pull pattern as the Muse runtime-db export. No push instrumentation is added to OpenCode/OpenChamber.” It probes candidate stores in order (~/.local/share/opencode/opencode.db, ~/.local/share/openchamber/opencode.db, ~/.local/state/opencode/opencode.db), picks the first that is live (has the v2 tables session_v2/session_message and a newest time_updated within 24 h), surfaces a store move in the tick document, and otherwise fails loudly (store-missing/store-stale/schema-drift/read-failed, exits 3–6, failure documents carry no sessions). Output: ~/atlas/opencode-usage-export/{latest.json,history.jsonl,state.json} — per-session cost/token totals with parentage, feeding the PM aggregator’s usage views (Health, quota and usage surfaces). The README warns that the legacy session/message/part tables in the same file froze on 2026-10-06; the exporter reads only the v2 tables the fork writes. Slices 2–7 of code#2072 are stated follow-ups: intentions, recorded in Goals and intentions, not shipped work.
Sources. Survey file ~/workspace/pm-book/survey/oc-programme.md §1.4, §1.5 (grouping rule, both theme tables, per-PR enumeration) and §4.1–§4.3; deposit ~/workspace/pm-book/sideline-material/oc-survey/ (pulls-closed-oc.json, pulls-closed-och.json, pulls-open-oc.json, pulls-open-och.json, pm-stack-opencode-claimant-README.md, pm-stack-opencode-scheduled-jobs-README-and-jobs.md, pm-stack-opencode-usage-export-README.md).
Goals and intentions
This chapter states what the forks programme is trying to make true. Every goal carries its issue link. Closed landmark items are marked (closed); open items appear again in the issue maps, where they are ordered as work. A goal in this chapter is an intention with a record, not a shipped change: shipped change is Our changes, shipped and in flight, and the two chapters are kept apart on purpose.
The programme’s code-repo footprint is larger than any single list in this part. For context: the survey’s broad search repo:developing-today/code opencode totals 4,147 items (all states, issues+PRs, body mentions included). The programme set this part uses for the code repo is the survey’s defined set — open code issues whose title names opencode, openchamber or the (opencode) claimant: 91 open issues. The narrower definition is the survey’s, stated so the set is countable; the 480 open code issues that mention opencode anywhere are in the deposit, outside the defined set.
Attach, don’t SSH
Three closed items settle how OpenCode work reaches the laptop:
- Attach, don’t SSH: research which is more efficient for OpenCode work — SSH-on-laptop vs attaching to the laptop’s running server (closed).
- Attach-first OpenCode client helper — forward lifecycle, service discovery, stdin-safe run wrapper (the #1344 follow-through) (closed).
- Evaluate a tailnet-bound
opencode serveoption on the laptop for attach clients (the #1344/#1357 family) (closed).
The family is a dependency chain as well as a goal; the edges are drawn in The forks programme dependency map.
A claimant owns dispatch
The OpenCode claimant/executor (code#3026, slice 1) is to discover unbound opencode-lane queue tasks, create/verify/bind sessions on the fork server, deliver prompts, and recover stuck sessions — under the session contract of code#4912 (phases #4757/#4870/#4758, closing audit #4916) and the seam contract of code#7770 (phases #7325/#7375/#7706, #7367/#7760, #7356/#7366/#7732; audit #7772). Those numbers are cited as they appear in the claimant README itself (the programme’s own record); #1344/#1357/#1363 above were additionally verified individually against the API in this survey. The shipped claimant is recorded in Our changes, shipped and in flight; the PM-side account is The claimant: keeping sessions honest.
OpenCode 2 migration of the whole fleet
- The migration epic: opencode#374 “Migrate the fleet to OpenCode 2” (priority/high, open).
- Its core-migration tracking home: opencode#2295.
- Plugin follow-through: opencode#2290 — port the v1 plugins (mcpx bridge, mcpx-session, subtask2) and rebase the fork.
- The embedded-OpenCode upgrade on the OpenChamber side: openchamber#384.
- The deployed-plugin gap list at
doc/2026-11-23T03-45-00Z_opencode-v2-deployed-plugin-gap-list/in the code repo: three v1 constructs with no v2 equivalent, each with a chosen workaround.
The record disagrees with itself on this goal’s state: opencode#2295 is titled “…core migration (shipped — tracking home)” while the parent migration opencode#374, the plugin follow-through opencode#2290 and the embedded upgrade openchamber#384 all remain open (D54). This book records the migration as open work with a shipped core, because the issues that carry the remaining work are open.
Routes, pools and quota as fork-native machinery
- Model-route follow-ups: opencode#2681.
- The config-projection gap: opencode#2782 (“needed by code#13675 Part 2”) — the fork fix blocks that code work; the edge is in The forks programme dependency map.
- OpenChamber’s pool-settings follow-ups: openchamber#2498.
- Retry-recovery controls: openchamber#2126 — titled “(shipped — tracking home)”; it sits in the open map as a tracking home, under the same record tension as D54.
- The provider doctrine: opencode#1717 (“*-direct providers EMULATE the first-party wire”).
The deployed pools and routes this machinery serves are the LLM plans part’s subject: Pools, routes and the switchboard. This chapter records the fork-side intention only.
Server façades and consolidation
- Generic OpenAI façades on the fork server: opencode#1146 (priority/high; “proxy doors retire”).
- OpenChamber server-control consolidation + quota credential: opencode#2491 / opencode#2490, both citing the code#5060 ruling recorded in The forks: what they are and why we carry them.
Console work
The PM console (code repo pm-stack/console) consumes the forks’ server/session surface. On the fork itself the console scope is one of the largest PR themes in the shipped record, and OpenChamber is the operator console for sessions: its epic is openchamber#2153 “Epic: OpenCode platform”, and the session dispatch + babysitting epic sits in the code title set (code-title-openchamber.json in the deposit; the code issue is code#1234 in the survey’s §3.3 set).
Observability without instrumentation
Usage export by pull over the fork’s own DB (code#2072 slice 1) is shipped and recorded in Our changes, shipped and in flight. Slices 2–7 are stated follow-ups. They are intentions, not shipped work, and this chapter is where they belong until they merge.
Sources. Survey file ~/workspace/pm-book/survey/oc-programme.md §2 and §3.3 (scope rule and the 91-issue set), §6 item 5 (cited in this part as D54); claimant README as deposited in ~/workspace/pm-book/sideline-material/oc-survey/pm-stack-opencode-claimant-README.md; code title-search sets in the deposit (code-title-opencode.json, code-title-openchamber.json, code-title-claimant.json).
OpenCode: prioritised issue map
Snapshot: this map was drawn on 2026-11-23 (survey date; GitHub API read 2026-11-24T00:35–01:05Z, fully paginated). Issue states rot: an issue listed here as open was open at that read, and the map states the state at the read, not the state today. Age = whole days from creation to 2026-11-24.
This map lists every open issue on developing-today-forks/opencode at the snapshot: 30 open issues. The companion map for the other fork is OpenChamber: prioritised issue map. The code-repo programme set (91 open issues, title-matched) is defined in Goals and intentions; it is a different set from this one and the two are not merged.
Ordering rule
Both fork repos carry explicit priority labels (priority/high, priority/normal, priority/low) on most open issues, and the code repo uses the same family on part of its set. Order is therefore: (1) priority/high → priority/normal → priority/low → no priority label; (2) within a tier, user/escalated first; (3) then status/blocked/queue/blocked; (4) then oldest first. Milestones: none of the open issues on either fork, and none in the code set, carries a milestone (the API milestone field is null throughout) — milestones play no part in the ordering. Cross-references from code issues are noted where the title/body itself states them (e.g. opencode#2782). The table below is in that order.
The map
| # | Issue | Labels | Age (d) | Created |
|---|---|---|---|---|
| 374 | Migrate the fleet to OpenCode 2 | kind/feature, source/creator, priority/high, effort/l, meta/enriched, meta/epic, epic/opencode-platform, design/opencode-2-migration | 30 | 2026-10-24 |
| 1146 | Design: generic OpenAI façades on the server — /v1/chat/completions + /v1/responses, one translation layer, proxy doors retire | task/triage, user/review, source/creator, priority/high, effort/l, meta/enriched, meta/protocol-gap, kind/enhancement, design | 22 | 2026-11-01 |
| 2785 | CI run silence: developing-today-forks/opencode — no completed Actions run within threshold | kind/bug, priority/high, source/ci-watch | 0 | 2026-11-23 |
| 2502 | fix(server): bound experimental fs.write body — unbounded raw payload plus unconfined absolute-path writes | kind/security, status/needs-triage, status/blocked, priority/normal, app/server, user/escalated | 7 | 2026-11-16 |
| 1708 | Tool-call support across custom providers — audit + tracking (2026-11-05) | task/small-fix, status/blocked, source/queue-worker, priority/normal, effort/m, queue/blocked, meta/enriched, kind/enhancement, epic/opencode-platform | 18 | 2026-11-05 |
| 1680 | Design: custom + live audio through the façade — custom formats and realtime bidirectional (duplex) audio | task/triage, user/review, source/creator, priority/normal, effort/m, meta/enriched, kind/enhancement, design | 19 | 2026-11-04 |
| 1684 | design(ai): translate the constraint, or say so — one fidelity contract for provider tool-schema projections | task/triage, status/parked, priority/normal, queue/parked, app/ai, work/assigned, effort/m, meta/enriched, kind/design, source/design-architect, design | 18 | 2026-11-05 |
| 1707 | Tool-call hardening — small items from the 2026-11-05 audit (checklist) | kind/bug, task/triage, source/human, priority/normal, effort/m, meta/enriched, epic/opencode-platform | 18 | 2026-11-05 |
| 1717 | Doctrine: *-direct providers EMULATE the first-party wire — vendor binaries for login/bootstrap only, auth must auto-renew | task/triage, source/human, priority/normal, effort/l, meta/enriched, kind/design, design, epic/design-register, epic/opencode-platform, design/opencode-2-migration | 18 | 2026-11-05 |
| 1876 | Wire-identity conformance program: per-provider User-Agent verification, binary drift watch, and tool-call probes | priority/normal, effort/l, meta/enriched, kind/infrastructure, epic/opencode-platform | 17 | 2026-11-06 |
| 2290 | OpenCode 2 migration follow-through: port the v1 plugins (mcpx bridge, mcpx-session, subtask2) and rebase the fork | kind/feature, task/triage, source/human, priority/normal, meta/follow-up, app/plugin, effort/l, mode/online, design, epic/design-register, epic/opencode-platform, design/opencode-2-migration | 12 | 2026-11-12 |
| 2490 | quota credential: provider-only session-cookie credential in the server credential store (code#5060 fix) | priority/normal | 7 | 2026-11-16 |
| 2491 | consolidation: merge OpenChamber’s server-side control into OpenCode (Drew ruling, code#5060) | priority/normal | 7 | 2026-11-16 |
| 2492 | spike: evaluate TursoDB (Rust SQLite rewrite, not libsql) as the database engine behind the sqlite seam | priority/normal | 7 | 2026-11-16 |
| 2638 | main CI failure: developing-today-forks/opencode — agents workflow (run 44247391571) | kind/ci, task/small-fix, status/in-progress, priority/normal, queue/claimed, source/ci-watch | 5 | 2026-11-18 |
| 2652 | feat(app): restore custom provider setup in V2 | task/triage, status/needs-triage, source/creator, priority/normal, queue/queued, app/app, kind/enhancement, epic/opencode-platform | 4 | 2026-11-19 |
| 2775 | fix(core): surface ambiguous outcomes when command recovery may replay side effects | kind/bug, task/triage, source/creator, priority/normal, app/core, effort/m | 0 | 2026-11-23 |
| 2778 | fix(tui): an unparseable model.json is overwritten with defaults on the next preference update — favorites and recent models silently erased | kind/bug, task/triage, source/creator, priority/normal, app/tui, effort/s | 0 | 2026-11-23 |
| 2786 | fix(files): public-file cache hits ignore If-None-Match — a revalidating client gets 200 and the full body instead of 304 | kind/bug, task/triage, source/creator, priority/normal | 0 | 2026-11-23 |
| 1677 | Design: search providers behind the façade — one common search endpoint vs per-provider adapters per tool | task/triage, user/review, source/creator, priority/low, effort/m, meta/enriched, kind/enhancement, design | 19 | 2026-11-04 |
| 2302 | feat(tui): highlight embedded JavaScript and CSS in HTML | kind/feature, task/small-fix, source/creator, priority/low, app/tui, effort/xs | 11 | 2026-11-12 |
| 2505 | test(core): no CI coverage runs the TursoDB backend — PR #2499 adds zero tests and OPENCODE_DB_ENGINE=turso is never exercised before merge | kind/test, task/triage, source/pr-diff-review, priority/low, app/core, work/assigned, status/done | 7 | 2026-11-16 |
| 2295 | OpenCode 2 fleet migration — core migration (shipped — tracking home) | design, epic/design-register, epic/opencode-platform, design/opencode-2-migration | 11 | 2026-11-12 |
| 2319 | epic: opencode fork — platform work | epic, epic/opencode-platform | 11 | 2026-11-12 |
| 2518 | main CI failure: developing-today-forks/opencode — test workflow (run 43849921062) | kind/ci, status/parked, status/awaiting-ci, queue/parked, work/assigned, source/ci-watch | 7 | 2026-11-16 |
| 2677 | Follow-ups from the 2026-11-22 upstream sync | — | 1 | 2026-11-22 |
| 2681 | Model routes: follow-ups after #2674, #2676 and #2679 | — | 1 | 2026-11-22 |
| 2770 | cli-rs: regenerated types require sections/models that leaner wire payloads omit — decide the tolerance policy | — | 0 | 2026-11-23 |
| 2782 | config projection strips model_routes “purpose” and top-level model_designations (needed by code#13675 Part 2) | — | 0 | 2026-11-23 |
| 2787 | fix(tui): truncated session.json is overwritten with in-memory pins on the next pin change — pinned sessions silently erased | — | 0 | 2026-11-23 |
Record notes on this map
- CI is recorded two ways at once. opencode#2785 (2026-11-23, priority/high, row 3) reports “CI run silence — no completed Actions run within threshold”, while opencode#2638 and #2518 are open CI-failure issues about specific completed runs (44247391571, 43849921062). Both can be true for different workflows, but as recorded they describe the same repo’s CI as simultaneously silent and failing, with no surface reconciling the two (D58).
- A “done” label on an open issue. opencode#2505 carries
status/done, yet the issue is open. Either the label or the issue state is wrong (D53). - A “shipped” title on open migration work. opencode#2295 is titled “…core migration (shipped — tracking home)” and sits in the no-priority-label tier of this map as an open issue, while its parent migration opencode#374 (priority/high, row 1) remains open (D54). The full statement is in Goals and intentions.
- The platform epic is open and unprioritised. opencode#2319 “epic: opencode fork — platform work” — the issue that states the fork’s purpose in The forks: what they are and why we carry them — carries no priority label and sits in the last tier of its own programme’s map. The map records the labels as they stand; it does not re-rank.
Sources. Survey file ~/workspace/pm-book/survey/oc-programme.md §3 (ordering rule) and §3.1 (the 30-row table), §6 items 4, 5, 9 (cited in this part as D53, D54, D58); deposit ~/workspace/pm-book/sideline-material/oc-survey/issues-open-oc.json.
OpenChamber: prioritised issue map
Snapshot: this map was drawn on 2026-11-23 (survey date; GitHub API read 2026-11-24T00:35–01:05Z, fully paginated). Issue states rot: an issue listed here as open was open at that read, and the map states the state at the read, not the state today. Age = whole days from creation to 2026-11-24.
This map lists every open issue on developing-today-forks/openchamber at the snapshot: 30 open issues. The companion map for the other fork is OpenCode: prioritised issue map. The code-repo programme set (91 open issues, title-matched) is defined in Goals and intentions; it is a different set from this one and the two are not merged.
Ordering rule
Both fork repos carry explicit priority labels (priority/high, priority/normal, priority/low) on most open issues, and the code repo uses the same family on part of its set. Order is therefore: (1) priority/high → priority/normal → priority/low → no priority label; (2) within a tier, user/escalated first; (3) then status/blocked/queue/blocked; (4) then oldest first. Milestones: none of the open issues on either fork, and none in the code set, carries a milestone (the API milestone field is null throughout) — milestones play no part in the ordering. The table below is in that order.
The map
| # | Issue | Labels | Age (d) | Created |
|---|---|---|---|---|
| 25 | Handoff: release and live-validate the openchamber fork’s work since v2.2.0 as an orchestrator using subagents | needs-validation, source/human, priority/high, user/escalated, effort/l, meta/enriched, kind/infrastructure, epic/opencode-platform | 38 | 2026-10-16 |
| 2274 | ci: GitHub Actions is disabled for this repo again — no workflow has run since 2026-11-11 (recurrence of #54) | kind/ci, source/creator, priority/high, queue/queued, area/infra, user/escalated, effort/s | 10 | 2026-11-13 |
| 1642 | main CI failure: .github/workflows/agents.yml (run 41997940196) | kind/bug, task/small-fix, status/blocked, priority/high, effort/s, queue/blocked, meta/enriched, source/ci-watch | 18 | 2026-11-05 |
| 1450 | main CI failure: .github/workflows/jules-daily-upstream-sync.yml (run 41633212191) | kind/bug, task/small-fix, priority/high, meta/enriched, source/ci-watch, status/triaged | 20 | 2026-11-03 |
| 2564 | fix(web): preview-grant serve route serves symlink-escaped files outside the grant root | kind/bug, task/triage, status/in-progress, source/creator, priority/high, queue/claimed, app/web, work/assigned, effort/xs | 0 | 2026-11-23 |
| 2581 | fix(electron): cancelling the macOS quit confirmation leaves quitRequested set, so the next window close destroys instead of hiding | kind/bug, task/triage, source/creator, priority/high, app/electron, effort/s | 0 | 2026-11-23 |
| 2583 | fix(web): /api/fs/exec has no bound on commands per request or retained jobs — unbounded server memory for 30 minutes | kind/bug, task/triage, source/creator, priority/high, app/web, effort/s | 0 | 2026-11-23 |
| 2585 | fix(web): repeated message-search role/lifecycle params silently widen to an unscoped search | kind/bug, task/triage, source/creator, priority/high, app/web, effort/s | 0 | 2026-11-23 |
| 21 | Sidebar view mode without headers that keeps the section order | kind/feature, source/human, priority/normal, app/ui, effort/m, meta/enriched, epic/opencode-platform | 38 | 2026-10-16 |
| 81 | Upgrade without dropped sessions: supervisor that owns the listener and the managed OpenCode children | kind/feature, status/parked, source/human, priority/normal, queue/parked, effort/l, meta/enriched, epic/opencode-platform | 36 | 2026-10-18 |
| 322 | Goal writer card says “The message was not sent.” above reasons that say it may have been sent | kind/bug, task/triage, status/parked, source/human, priority/normal, queue/parked, effort/s, meta/enriched | 32 | 2026-10-23 |
| 384 | Update the embedded OpenCode to a v2-based build (fleet OpenCode 2 migration) | kind/feature, task/triage, source/creator, priority/normal, effort/l, meta/enriched, epic/opencode-platform, design/opencode-2-migration | 30 | 2026-10-24 |
| 937 | stale-pr: resolve openchamber#216 — feat: goal writer card, model pool checks, Answer again on questions, project visibility and UI fixes | task/triage, status/parked, user/review, source/creator, priority/normal, queue/parked, work/assigned, effort/s, kind/question | 24 | 2026-10-30 |
| 1573 | Split 216b of PR #216: land goal spec jobs (draft-review-send pipeline) against current main | kind/feature, status/parked, priority/normal, queue/parked, app/web, work/assigned, effort/l, meta/enriched, source/agent, epic/opencode-platform | 19 | 2026-11-04 |
| 2290 | Paired clients have no route scopes and no programmatic client kind (babysitter enrollment gap, code#1271) | kind/feature, priority/normal, app/web, effort/l | 8 | 2026-11-15 |
| 2572 | fix(web): preserve a concurrently created empty directory in /api/fs/rename | kind/bug, task/triage, source/creator, priority/normal, app/web, effort/xs | 0 | 2026-11-23 |
| 80 | Anti-slop lint backlog: 9,498 findings in 1,086 files, tracked by phase | kind/debt, task/triage, source/human, priority/low, effort/l, meta/enriched, meta/epic | 36 | 2026-10-18 |
| 147 | Learn from manual model and effort choices: notes for the classifier and Settings suggestions | kind/feature, task/small-fix, source/human, priority/low, app/web, effort/l, meta/enriched | 34 | 2026-10-20 |
| 224 | Back to edit on a new chat can replace the session the user moved to with a new draft | kind/bug, task/triage, status/parked, source/human, priority/low, queue/parked, effort/s, meta/enriched | 33 | 2026-10-21 |
| 1437 | Anti-slop phase 1: ~499 mechanical findings (separate statements, renames, named owner types) | kind/debt, task/triage, source/queue-worker, priority/low, effort/m, meta/enriched | 20 | 2026-11-03 |
| 1438 | Anti-slop phase 2: ~1,799 owner-type findings (unknowns, dictionaries, chained assertions, widening) | kind/debt, source/queue-worker, priority/low, effort/l, meta/enriched | 20 | 2026-11-03 |
| 1439 | Anti-slop phase 3: ~7,091 design-pass findings (runtime typeof, safety comments, module mocking) | kind/debt, status/parked, source/queue-worker, priority/low, queue/parked, work/assigned, effort/l, meta/enriched | 20 | 2026-11-03 |
| 2081 | One-queue lane designations for OpenChamber scheduled tasks (Drew 2026-11-10, code#8097) | status/done, queue/done | 12 | 2026-11-11 |
| 2126 | OpenChamber retry-recovery controls — restart-with-new-model + force-next-pool-option (shipped — tracking home) | design, epic/design-register, epic/opencode-platform | 11 | 2026-11-12 |
| 2153 | Epic: OpenCode platform | epic, epic/opencode-platform | 11 | 2026-11-12 |
| 2325 | main CI failure: developing-today-forks/openchamber — Dependabot Updates workflow (run 43909247394) | — | 7 | 2026-11-16 |
| 2498 | Model pool settings: follow-ups after the rebuild | — | 1 | 2026-11-22 |
| 2573 | Add atomic no-replace directory renames across supported platforms | status/parked, queue/parked, work/assigned | 0 | 2026-11-23 |
| 2580 | feat(agent-tool): allow agents to write project setup commands and project actions (decision on #152) | — | 0 | 2026-11-23 |
| 2586 | main-broken: developing-today-forks/openchamber stale workflow (run 45147203731) — Label team pull requests step missing github-token | — | 0 | 2026-11-23 |
Record notes on this map
- A fix merged; its issue is still open. openchamber#2564 (preview-grant symlink escape, priority/high) is open, labelled
status/in-progress/queue/claimed, yet its fix PR #2579 (“preview-grant serve route re-checks canonical path vs grant root (openchamber#2564)”) and the underlying commit both merged on 2026-11-23. The issue record does not reflect the landed fix (D52). - “Done” labels on an open issue. openchamber#2081 carries
status/done+queue/done, yet the issue is open. Either the labels or the issue state are wrong (D53). - Actions: disabled vs running. openchamber#2274 (2026-11-13, priority/high) states “GitHub Actions is disabled for this repo again — no workflow has run since 2026-11-11”. The repo’s own later record contradicts the standing state: openchamber#2586 (2026-11-23) reports a stale-workflow Actions run (run 45147203731), and PRs continued merging through 2026-11-23 — Actions did run after 2026-11-11, whatever was true on the 13th (D55).
- CI is the top of this map. Three of the eight priority/high rows are CI items (#2274, #1642, #1450), and a fourth CI failure (#2586, a stale-workflow run) sits in the unprioritised tier. The fork’s shipped record shows
cias its joint-third theme (89 merged PRs, Our changes, shipped and in flight); the open map shows the same machinery as the fork’s largest block of urgent open work. - The platform epic is open and unprioritised. openchamber#2153 “Epic: OpenCode platform” carries no priority label and sits in the last tier, as its opencode counterpart does (OpenCode: prioritised issue map). The map records the labels as they stand; it does not re-rank.
Sources. Survey file ~/workspace/pm-book/survey/oc-programme.md §3 (ordering rule) and §3.2 (the 30-row table), §6 items 3, 4, 6 (cited in this part as D52, D53, D55); deposit ~/workspace/pm-book/sideline-material/oc-survey/issues-open-och.json.
The forks programme dependency map
This map draws only the edges the survey states. Each edge names its source: an issue title, an issue body, or a README the survey read. An edge not in this chapter is not an edge this book asserts, however plausible it reads. The survey’s own scope line for its dependency notes stands: only edges seen in titles/bodies/READMEs actually read.
Edges within the code repo
- code#1357 follows code#1344; code#1363 follows code#1344. The attach-first family: the research issue code#1344 (closed) is the parent; the client helper code#1357 (closed) is titled “the #1344 follow-through”, and the tailnet
serveevaluation code#1363 (closed) belongs to the #1344/#1357 family. Source: titles/bodies of the three issues. The goal is stated in Goals and intentions.
Edges from the code repo into the forks
- code#13675 Part 2 is blocked by opencode#2782. opencode#2782 (config projection strips
model_routes“purpose” and top-levelmodel_designations) states in its title that it is “needed by code#13675 Part 2” — the fork fix blocks that code work. Source: the issue title. - code#5060 is the ruling behind opencode#2490 and opencode#2491. Both fork issues cite the code#5060 ruling. #2491 (consolidation: merge OpenChamber’s server-side control into OpenCode) is the parent intention; #2490 (quota credential: provider-only session-cookie credential in the server credential store) is named “(code#5060 fix)”. Source: the two issues as recorded in the survey §5. The ruling itself is stated in The forks: what they are and why we carry them.
Edges within the opencode fork
- opencode#2681 follows opencode#2674, #2676 and #2679. opencode#2681 is explicitly “follow-ups after #2674, #2676 and #2679” (same-repo opencode numbers). Source: the issue title.
- opencode#2505 is about opencode PR #2499; the TursoDB evaluation is opencode#2492. opencode#2505 records that PR #2499 adds zero tests and
OPENCODE_DB_ENGINE=tursois never exercised before merge. The evaluation itself is the open spike opencode#2492, which also owns the standing branchspike/2492-tursodb-backend. Source: the survey §5, from the issue and branch records.
Edges between the forks
- openchamber#384 depends on the opencode fork’s v2 line. openchamber#384 (update the embedded OpenCode to a v2-based build) is the OpenChamber side of the same migration as opencode#374/#2295/#2290. The openchamber README likewise states its messaging surface “needs an OpenCode build with messaging (developing-today-forks/opencode)” — the fork’s claimed divergence (7) in The forks: what they are and why we carry them rests on the other fork’s build. Source: the issue record and the fork README, as read in the survey.
Edges inside the PM-stack integration surface
- The claimant chain. Babysitter rounds (code#1338) produce the confirmed stalls that the nudges slice (code#1187’s next slice) consumes. The claimant’s session contract is code#4912 phase 4 (audit code#4916) over phases code#4757/#4870/#4758, and its seam contract is code#7770 over code#7325/#7375/#7706, #7367/#7760, #7356/#7366/#7732. Source: the claimant README, as deposited. The claimant itself is recorded in Our changes, shipped and in flight.
- Usage export slices 2–7 depend on slice 1.
pm-stack/opencode-usage-exportis code#2072 slice 1; its README states slices 2–7 (webhooks, views, rollups, projections) are separate follow-ups — they depend on this exporter existing, not vice versa. Source: the exporter README. - Scheduled jobs depend on the claimant babysitter and on the aggregator’s quota snapshot. The
opencode-scheduled-jobsREADME states stall supervision “remains the babysitter’s responsibility”, and the registry’s one job takes the aggregator’s quota snapshot file as its only input. Source: the scheduled-jobs README andjobs.json.
Edges within the openchamber fork
- openchamber#1573 and openchamber#937 share parent PR #216. openchamber#1573 is a split of openchamber PR #216 (“Split 216b of PR #216”); openchamber#937 is the stale-PR resolution for the same PR #216. Source: the two issue titles.
Non-edges, recorded as non-edges
- No other blocking edges are asserted. No
blocked-bylabel or explicit dependency field exists on the fork repos beyond thestatus/blocked/queue/blockedlabels shown in the issue maps. Those labels mark an issue as blocked; they name no blocker, and this map draws no edge from them. A reader who needs a blocker for astatus/blockedissue — opencode#2502, opencode#1708, openchamber#1642, and the blocked rows of the code set among them — finds none stated in the records the survey read. That absence is the record, and this chapter leaves it as an absence rather than filling it with inferred edges.
For the wider estate, the fleet book’s agent chapter records how the opencode and openchamber kinds enrol and take work: Agents: enrolment, doctor and the intake ladder. That is the fleet programme’s record of the same two names in a different role — kinds of agent, not forks — and no dependency edge between the two records is asserted here.
Sources. Survey file ~/workspace/pm-book/survey/oc-programme.md §5 (all ten edges and the non-edge record), §1.3 (the openchamber README messaging dependency), §4.1–§4.3 (the integration-surface edges); deposit ~/workspace/pm-book/sideline-material/oc-survey/ (claimant, scheduled-jobs and usage-export READMEs as deposited).
The plans we use
This chapter lists every plan and pool in the registry: 30 rows, counted in the evidence pack assembled 2026-11-23. Every fee, window, quota and reset in this chapter carries the date its source was read, in the same sentence or the same table row. No figure in this chapter is current. A figure with an old read date is labelled stale with its age. A limit: null entry in the plan-facts block means no established fact exists for that limit (registry rule, read 2026-11-23).
The assistant Muse’s own Power subscription is not a session pool, and no session draws on it (POOL MAP, registry, read 2026-11-23).
How the plans connect to routes and tiers is the subject of Pools, routes and the switchboard and Models by tier, and why. The state of each pool at its last dated read is in Walls, resets and quota doctrine.
The families
OpenAI
Three registry rows cover OpenAI: the subscription plan behind two doors (rows 1–2), the pay-as-you-go API organisation with its complimentary-token programme (row 3), and the same-model free alias split over that organisation (row 24). The subscription pool is the fleet’s final reserve (POOL MAP, registry, read 2026-11-23). Correction carried from the pack (D20): the plan-facts fee for the main door reads $100/mo (transcribed 2026-11-23 from Drew’s dictation of 2026-11-07) and Drew stated on 2026-11-10 15:38 CST that the main plan was upgraded $100 to $200/mo (registry lane record, code#8309, read 2026-11-23). The $200 figure supersedes the $100 figure in part. The derived per-point face value ($1.00/pt to $2.00/pt, registry, read 2026-11-23) is arithmetic only; yield requires a fresh measurement.
Anthropic / Claude
One row: Claude Max (row 4), fee $100/mo, window 168h, limit null (plan-facts, read 2026-11-23). The plan carries a dedicated Fable 7d window metered separately from the plan windows (Drew, 2026-11-07, read 2026-11-23).
Meta
One row and one pool: the Muse API High Usage plan (row 5), fee $15/mo, window 168h, limit null (plan-facts, read 2026-11-23). The POOL MAP (Drew, 2026-10-25, read 2026-11-23) records one Meta pool. Doors to that pool changed over time; the pool did not change. Door history is in Pools, routes and the switchboard.
OpenCode Go
Four workspaces appear in the reads (rows 6–9). Two workspaces carry an established fee: $10/mo per workspace, two workspaces held at $10/mo each (plan-facts note, read 2026-11-23). Correction carried from the pack: each workspace holds one shared bucket, not per-model buckets (Drew, from his consoles, verified 2026-10-27, read 2026-11-23). Published per-model dollar figures are burn-rate denominations against the one bucket (registry, read 2026-11-23). No fee row exists in plan-facts for the developing-today-0 workspace (row 8, read 2026-11-23) or the 0x111dev workspace (row 9, read 2026-11-23); no fee is stated for either in this chapter.
Subscription aggregators: ClinePass, Open Design, Command Code
Cline Pass (Annual) costs $79.92/year (plan-facts, read 2026-11-23), with dashboard corroboration dated 2026-10-28: $79.92/yr plus a $2.60 fee, renewing Oct 5, 2027 08:55 AM CDT (registry cycle 96, read 2026-11-23). Open Design Go costs $84/year, window 168h (plan-facts, read 2026-11-23). Command Code Go costs $1/mo, window 720h (plan-facts, read 2026-11-23), and the Go tier grants $10 credits/mo with no direct API access; access runs through the resident CLI bridge (registry, resolved 2026-10-27, read 2026-11-23).
Mistral and Antigravity
Mistral Education costs $57.50/year, window 720h, limit 15, calendar reset (plan-facts, read 2026-11-23), and carries two included allowances: Included API usage $15/mo and Included Vibe Code usage $150/mo, both resetting on the 1st of the calendar month (registry correction, 2026-11-05, read 2026-11-23). Mistral’s free API tier no longer exists in Mistral’s current docs (free census, fetched 2026-11-23); row 13 is a paid plan. Antigravity (row 14) has no plan-facts row: plan identity and fee are not established in Drew’s dictation of 2026-11-07 (plan-facts preamble, read 2026-11-23), and this chapter states no fee for it.
Free tiers and free catalogues
Rows 15–23 and row 28 are free tiers and free catalogues verified in the free census dated 2026-11-23: Google AI Studio free (row 15), OpenCode Zen free models (row 16), NVIDIA NIM free (row 17), Groq free (row 18), OpenRouter :free (row 19), Z.ai free Flash models (row 20), EXAONE free key (row 21), Kilo Gateway :free (row 22), the Command Code free shelf (row 23), and Cloudflare Workers AI free (row 28, not wired). Free-first ordering seats these legs in front wherever their capability fits (Drew’s order, 2026-11-23, read 2026-11-23); the ordering rule is in Pools, routes and the switchboard.
The temporary pay-as-you-go tails
Rows 25–27 are TEMPORARY. Drew ordered the three tails on 2026-11-23 13:20 CST, temporary until he lifts the order (standing-rules record, read 2026-11-23): DeepSeek direct pay-as-you-go added last in the DeepSeek pool (row 25), OpenAI pay-as-you-go Luna low added last in the OpenAI pool (row 26), and Claude pay-as-you-go Haiku low added last in the Claude pool (row 27). The standing classification outside that order stands in the same rows: DeepSeek direct is a pay-as-you-go reserve and never a routine route (registry provider facts, read 2026-11-23), and the OpenAI pay-as-you-go door in row 3 is manual only and never a routine pool member (pack row 3, read 2026-11-23).
Two corrections: SambaNova and LongCat
Row 29 (SambaNova) correction, from probes dated 2026-11-23 (D24): the free census row dated 2026-11-23 (free tier, key in vault) is superseded by same-day probes. The live model list held 4 models and every completion returned HTTP 402 PAYMENT_METHOD_REQUIRED at balance 0 (probes, 2026-11-23). SambaNova’s own plans page (fetched 2026-11-23) states the Free plan requires a payment method and a credit purchase; the no-card free tier in its rate-limits doc (20 RPM / 20 RPD / 200K TPD per model, fetched 2026-11-23) is stale and withdrawn. Adding a card makes the account a paid account from the first request (pack row 29, read 2026-11-23).
Row 30 (LongCat) correction, from LongCat’s current official docs fetched 2026-11-23 (D25): the free census premise (500K tokens/day free, census dated 2026-11-23) is superseded. Billing launched 2026-06-30 (Token Pack and pay-as-you-go, docs fetched 2026-11-23); current pricing is $0.30/1M uncached input and $1.20/1M output at a limited-time discount, model LongCat-2.5 (docs fetched 2026-11-23). No recurring free tier exists to wire. Existing LongCat 2.5 Free legs ride the Go and Zen plans (rows 6 and 16, read 2026-11-23), a different shelf.
The table
Fees and windows come from the registry plan-facts block (schema approved 2026-11-16; transcribed 2026-11-23 from Drew’s plan dictation of 2026-11-07) unless a row names another source. Quota states in the evidence column are the latest reads named in the pack, each with its read date.
| # | Provider | Plan / pool | What it provides | Dated evidence (source and read date) |
|---|---|---|---|---|
| 1 | OpenAI | OpenAI plan, main door _openai.main (drewrypope) | ChatGPT-subscription plan allowance behind the _openai.main door; the fleet’s final-reserve pool; gpt-6 / gpt-5.6 Sol, Terra, Luna families | Fee $100/mo, window 168h (plan-facts, transcribed 2026-11-23 from the 2026-11-07 dictation), superseded in part: Drew stated 2026-11-10 15:38 CST the main plan was upgraded $100 to $200/mo (registry lane record, code#8309, read 2026-11-23). Door renamed openai.main to _openai.main 2026-11-10 (registry, read 2026-11-23). Latest quota read: weekly 59%, resets 2026-11-24T21:23Z (registry cycle 471, measured 2026-11-23T12:15Z) |
| 2 | OpenAI | OpenAI plan, alt door _openai.alt (popesdrew) | Second ChatGPT account (student, $0/mo registry row, read 2026-11-23); ordered first in the openai-plan pool since 2026-11-22, with drewrypope as its failover | Fee $0/mo, window 168h (plan-facts, read 2026-11-23). Order switch: Drew’s order 2026-11-22, landed PR #12731 (registry pool-order entry, read 2026-11-23). Latest read: alt weekly 100%, resets 2026-11-23T18:49Z (registry cycle 471, measured 2026-11-23T12:15Z) |
| 3 | OpenAI | openai-payg API organisation and data-sharing complimentary tokens | Pay-as-you-go API door (manual only, never a routine pool member, pack row dated 2026-11-23) plus, once the organisation is enrolled in data sharing, a daily complimentary-token allowance in two per-group buckets | Program terms from OpenAI Help Center art. 10306912, fetched 2026-11-23: Large group 250K/day (Build tiers 1–2) rising to 1M/day (Launch/Grow); Small group 2.5M/day rising to 10M/day; resets 00:00 UTC; positive balance required; $5 minimum prepaid purchase (all fetched 2026-11-23). Drew approved sharing “any and all data” 2026-11-23 (issue #13677 body, read 2026-11-23). Enrolment state is assumed in place per Drew’s statement of 2026-11-23 and is not API-verifiable (issue #13677 comment, read 2026-11-23) |
| 4 | Anthropic / Claude | Claude Max (claude-max, _claude pool) | Plan windows 5h and 7d, plus a dedicated Fable 7d window metered separately | Fee $100/mo, window 168h, limit null (plan-facts, read 2026-11-23). Fable 7d read 27% used, resets Wed 2026-11-11T19:00Z (registry gatherer, 2026-11-10T15:30:19Z). Latest read: gatherer state error “Rate limited. Retrying soon.”, last measured 2026-11-23T03:00Z carrying 5h 100% (past its 04:50Z reset on 2026-11-23) / 7d 32% / Fable 28%, resets 2026-11-25T19:00Z; the pool is unmeasured at the latest read (registry cycle 471, measured 2026-11-23T12:15Z) |
| 5 | Meta | Muse API High Usage plan, one pool | Token quota, weekly reset; carries muse-wonder-1.0 / muse-spark-1.3 families | Fee $15/mo, window 168h, limit null (plan-facts, read 2026-11-23). Freshest console read is dated 2026-10-27 00:03 CDT and is 27 days stale at pack time (2026-11-23): 5h 1.02%, weekly 8.83% (reset Sun Nov 1 18:00 CT), free credits $148.57, pay-as-you-go $0.00 (registry, read 2026-11-23). Latest gatherer state: stale, freshest 2026-11-21T04:45Z weekly 100% resetting 2026-11-23T00:00Z, a reset time now past at pack time (2026-11-23); the new window’s first clean read had not landed (registry cycle 471, read 2026-11-23) |
| 6 | OpenCode Go | opencode-go subscription, workspace drewrypope | One shared bucket per workspace; windows 20%/5h and 50%/week of the bucket (verified 2026-10-27, read 2026-11-23) | Fee $10/mo per workspace (plan-facts note, read 2026-11-23); plan-facts row: window 720h, limit 60, calendar reset (read 2026-11-23). Published caps (published 2026-10-20, read 2026-11-23; the caps against the one shared bucket are disagreement D21): most open models $60/mo, premium $15, DeepSeek V4.1 Flash $80, Qwen3.8 Flash $30, as burn-rate denominations against the one bucket. Value verdict (computed 2026-10-27, read 2026-11-23): $10 buys a $60 list-rate meter, 6.0x at full burn; Flash-concentrated 8.0x. Latest: monthly 100%, resets 2026-12-03 (registry cycle 471, read 2026-11-23) |
| 7 | OpenCode Go | Workspace popesdrew | Same one-bucket structure (verified 2026-10-27, read 2026-11-23); replaced the retired Lab workspace 2026-11-03 (Drew’s order, PR #5057, read 2026-11-23); credential converted OAuth to API key 2026-11-10 (registry, read 2026-11-23) | Fee $10/mo (plan-facts note, read 2026-11-23). Latest: monthly 100%, resets 2026-12-03 (registry cycle 471, measured 2026-11-23T12:15Z) |
| 8 | OpenCode Go | Workspace developing-today-0 | Third Go workspace in gatherer reads (read 2026-11-23) | Monthly 100%, resets 2026-12-08 (registry cycle 471, read 2026-11-23). No fee row in plan-facts; fee not established (read 2026-11-23) |
| 9 | OpenCode Go | Workspace 0x111dev | Fourth Go workspace in gatherer reads; the only one actively burning at the last read (read 2026-11-23) | 5h 64% / weekly 66% / monthly 83%, monthly resets 2026-12-18 (registry cycle 471, measured 2026-11-23T12:15Z). No fee row in plan-facts; fee not established (read 2026-11-23) |
| 10 | ClinePass | Cline Pass (Annual) (cline-pass) | Plan quota via api.cline.bot; strong open models (GLM-5.3, Kimi K3, DeepSeek V4 Pro / V4.1 Flash, Qwen, MiMo, MiniMax); windows 5h rolling / weekly / monthly | Fee $79.92/year (plan-facts, read 2026-11-23); dashboard corroboration 2026-10-28: $79.92/yr plus $2.60 fee, renews Oct 5, 2027 08:55 AM CDT (registry cycle 96, read 2026-11-23). Latest: monthly 100% closed (resets 2026-12-06T14:40Z), weekly/5h 0% (registry cycle 471, read 2026-11-23) |
| 11 | Open Design | Open Design Go (opendesign) | Token provider only (Decision 006: no harness, read 2026-11-23); windows $10 per 5h and $30 per 7d rolling (efficiency plan, dated 2026-10-25); its DeepSeek Flash route burns at 0.5x (efficiency plan, dated 2026-10-25) | Fee $84/year, window 168h (plan-facts, read 2026-11-23). Dashboard: period ends Oct 12, 2027 (registry reads 2026-10-27 to 2026-10-31). Pay-as-you-go balance was $1.00 through 2026-10-30 and read $0.00 on 2026-10-31 (registry cycle 168 addendum, read 2026-11-23). Latest: 7d 100% closed, resets 2026-11-24T11:44Z (registry cycle 471, read 2026-11-23) |
| 12 | Command Code | Command Code Go (_commandcode / CLI-proxy door) | Go tier $1/mo grants $10 credits/mo (plan-facts, read 2026-11-23); no direct API access on this tier; access via the resident CLI bridge (proxy :18748); free models keep working past the credit limit and paid models pause (registry, resolved 2026-10-27, read 2026-11-23) | Fee $1/mo, window 720h (plan-facts, read 2026-11-23). Quota reads report plan windows only; the top-up credit balance is never a quota figure (Drew’s read rule, 2026-11-01, read 2026-11-23). Latest: monthly 99.51% (registry cycle 471, read 2026-11-23); freshest console read is 2026-10-27 10:05 CDT (monthly 69% / weekly 14% / 5h 0%) and is 27 days stale at pack time (2026-11-23), with re-reads blocked on sign-in (registry, read 2026-11-23) |
| 13 | Mistral | Mistral Education (mistral and vibe-direct) | Two included allowances read on admin.mistral.ai: Included API usage $15/mo and Included Vibe Code usage $150/mo, both resetting on the 1st of the calendar month (registry correction, 2026-11-05, read 2026-11-23) | Fee $57.50/year, window 720h, limit 15, calendar reset (plan-facts, read 2026-11-23). Plan identity from whoami 2026-11-04: plan_name EDU, has_vibe_pro true (registry, read 2026-11-23). Latest: API 100% and Vibe 100%, reset 2026-12-01; freshness stale, measured 2026-11-16, 7 days stale inside the read itself (registry cycle 471, read 2026-11-23) |
| 14 | Antigravity | Antigravity quotas (antigravity-direct; _antigravity in the switchboard) | Google-plan quotas via the fork’s native antigravity provider; per-family fractions (the Gemini family and the Claude+GPT family wall independently, read 2026-11-23) | No plan-facts row; plan identity and fee not established (read 2026-11-23). Argon is the expensive Gemini tier; “its price doubles Dec 1” (efficiency plan, dated 2026-10-25). Latest: Gemini and Claude/GPT weekly 1.64% each, resets 2026-11-30T01:41Z (registry cycle 471, read 2026-11-23). Door-state caveat: _antigravity sits in the deployed disabled_providers list while the reads are healthy, a standing finding since cycle 459 (registry, read 2026-11-23); laptop read 2026-11-23 18:41 CST confirms _antigravity in the list |
| 15 | Google AI Studio free tier (google-free to gemini-free-plan) | Free chat quota per model per project, multiplied by 4 project aliases (google.muse, google.gen-lang, google.personal, google.drew, verified 2026-11-23); 5 chat models wired (Gemini 4 Hydrogen 1M ctx, 3.8 Flash, 3.5 Flash, 3.5 Flash-Lite, 3.1 Flash-Lite, verified 2026-11-23); free tier meters requests/day, not tokens (verified 2026-11-23) | Free census, verified 2026-11-23 from Google’s pricing and rate-limit pages and config Thread A. Config-recorded live probes 2026-11-16: Flash/Lite models HTTP 200 on every project; Hydrogen HTTP 200 on 3 of 4 projects (read 2026-11-23) | |
| 16 | OpenCode Zen | Zen free models (opencode provider, zen-plans route) | 11 free chat models, unquantified quota, “limited time” (verified 2026-11-23): DeepSeek V4.1 Flash Free, MiMo V2.6 Flash Free, Nemotron 3.5 Super VL/Lightning Free, Big Pickle, Beam, Iceman, Flint 40B, Hy4 Flash, Tidepool, Jev 1.13 (decision) | Free census, verified 2026-11-23 (opencode.ai/docs/zen and the live models API). Seated as last-resort legs by design, with limited context (read 2026-11-23). Roster rotates without notice: Nemotron 3 Ultra Free was dropped from Zen 2026-11-22 (free census, read 2026-11-23) |
| 17 | NVIDIA | NVIDIA NIM free tier (nvidia-free-plan) | Free catalogue behind one key: up to 40 RPM personal maximum, no per-token billing, no published daily cap; quota is per-model underneath an account maximum (sources fetched 2026-11-23) | Free census (build.nvidia.com FAQ and live /v1/models, fetched 2026-11-23): 83-model public catalogue. Our account’s live list holds 32 ids and 15 probed entitled for chat (probes, 2026-11-23); listing is not entitlement. The plan seats 12 entitled general chat models round-robin, free-first, weights 3 (issue #13677 comment, PR #13777 merged, read 2026-11-23) |
| 18 | Groq | Groq free plan (groq-free-plan) | Free, per-model-per-org, stackable: gpt-oss-120b / gpt-oss-20b / Qwen3.8-27B at 200K TPD each, 600K TPD total in the pack’s addition (rate-limit docs fetched 2026-11-23); TPM caps 7–8K are the binding choke (fetched 2026-11-23) | Free census (console.groq.com/docs/rate-limits, fetched 2026-11-23). Key groq.api-key created 2026-11-23; direct probes 3/3 seated chat models HTTP 200 (issue #13677 comment, read 2026-11-23). The plan sits in no tier route (free census, read 2026-11-23) |
| 19 | OpenRouter | OpenRouter :free tier (openrouter-free-plan) | 15 models at $0/$0 in the live catalogue (catalogue fetched 2026-11-23); :free cap 50 requests/day on the account as held, rising to 1,000/day after a one-time $10 lifetime top-up (limits docs fetched 2026-11-23). The top-up is not authorised and was not made (pack row, read 2026-11-23) | Free census (openrouter.ai/api/v1/models and /docs/limits, fetched 2026-11-23). Key openrouter.api-key created 2026-11-23 with a $0.01 total credit cap (issue #13677 comment, read 2026-11-23). The plan seats 11 general chat :free models (PR #13777, read 2026-11-23). Account-level 429 state and the post-reset probe are in Benchmarks and real-use evidence |
| 20 | Z.ai | Z.ai free Flash models (glm-flash-free-plan) | GLM-4.7-Flash and GLM-4.5-Flash at $0 in/out permanently, 200K ctx, no published numeric cap (pricing docs fetched 2026-11-23); GLM-4.6V-Flash vision not seated (read 2026-11-23) | Free census (docs.z.ai pricing, fetched 2026-11-23) |
| 21 | EXAONE | EXAONE free key (exaone-free-plan) | One free model on 30-day platform keys (free census, read 2026-11-23) | Free census and issue #13677 comment, read 2026-11-23: current key issued 2026-11-16, expires 2026-12-16; rotation procedure recorded; one-shot check exaone-key-rotation-check fires Thu 2026-12-10 at 10:40 CST (arranged 2026-11-23) |
| 22 | Kilo | Kilo Gateway :free (kilo-free-plan) | Keyless free lane: unauthenticated access for free models only, 200 requests/hour per IP (Kilo Gateway docs fetched 2026-11-23); kilo-auto/free seated in scout and background (read 2026-11-23); some free upstreams log prompts, non-sensitive volume only (docs fetched 2026-11-23) | Issue #13677 comments, read 2026-11-23 (docs fetched 2026-11-23; live probe HTTP 200 / $0, probed 2026-11-23). The free census dated 2026-11-23 lists Kilo among untapped providers as of its own earlier read on 2026-11-23; the wiring landed after the census (PR #13691, read 2026-11-23; the census-timing gap is disagreement D26) |
| 23 | Command Code | Command Code free shelf (commandcode-free-plan) | 5 free-named catalogue models (Laguna S 2.1 Free, Ling 3.0/3.1 Flash :free, Beam :free, Glyph Cluster :free, catalogue read 2026-11-23), seated free-first in scout and background (read 2026-11-23) | Free census, read 2026-11-23 (provider was disabled at census read) to re-enabled and seated by PR #13691, merged 2026-11-23 (issue #13677 comment, read 2026-11-23; the census-timing gap is disagreement D26). Beam :free was seated on Drew’s direct order (2026-11-23) despite its tier being recorded ended 2026-11-13 (read 2026-11-23) |
| 24 | OpenAI | OpenAI free alias (openai-payg-free) | Same-model free/paid split over row 3’s organisation: alias catalogue = gpt-6-luna, gpt-6-astra, gpt-6-sol (read 2026-11-23); wallScope: "account" (read 2026-11-23); free leg weight 3 ahead of the paid tail at 0.1 in luna-plan and systemone (read 2026-11-23) | Issue #13677 comment, read 2026-11-23 (PR #13836 merged; PR #13838 merged; live /api/config read-back 2026-11-23). Present in the deployed config on 2026-11-23 (laptop grep, 2026-11-23 18:41 CST) |
| 25 | DeepSeek (direct) | DeepSeek direct API, TEMPORARY pay-as-you-go tail | Paid-only direct API (api.deepseek.com balance, read 2026-11-23); routine DeepSeek comes from plan routes (ClinePass / Open Design / Go), never from this door (registry, read 2026-11-23) | TEMPORARY tail order: Drew, 2026-11-23 13:20 CST, DeepSeek direct pay-as-you-go added last in the DeepSeek pool, temporary until he lifts it (standing-rules record, read 2026-11-23). Balance reads are visibility only: ¥43.82 (registry cycle 404, read dated 2026-11-10) |
| 26 | OpenAI | OpenAI pay-as-you-go Luna tail, TEMPORARY pay-as-you-go tail | openai-payg/gpt-6-luna#low seated last in luna-plan (weight 0.1 after the free alias at 3 and the subscription door at 6, seating landed 2026-11-23) and last in systemone (0.1, landed 2026-11-23) | TEMPORARY tail order: Drew, 2026-11-23 13:20 CST, OpenAI pay-as-you-go Luna low added last in the OpenAI pool (standing-rules record, read 2026-11-23). Seating weights as landed 2026-11-23 (issue #13677 comment, read 2026-11-23) |
| 27 | Claude | Claude pay-as-you-go Haiku tail, TEMPORARY pay-as-you-go tail | Pay-as-you-go Haiku (low) seated last in the Claude pool (seating read 2026-11-23) | TEMPORARY tail order: Drew, 2026-11-23 13:20 CST, Claude pay-as-you-go Haiku low added last in the Claude pool (standing-rules record, read 2026-11-23). Corroborating sighting: the probe sessions recorded 2026-11-24T00:15Z were served by claude-payg / claude-haiku-5-5 (issue #13677 comment, read 2026-11-23); the tail exists live and serves fall-through traffic (read 2026-11-23) |
| 28 | Cloudflare | Cloudflare Workers AI free tier | 10,000 Neurons/day on Free and Paid plans, 160–550 LLM calls/day depending on model (pricing fetched 2026-11-23) | Free census (developers.cloudflare.com/workers-ai pricing, fetched 2026-11-23). Not wired: the provider is a disabled tombstone with no definition, and the vault AI-inference token is named cloudflare.api-token-ai-inference.REVOKED (free census, read 2026-11-23). Laptop read 2026-11-23 confirms cloudflare-workers-ai and cloudflare-ai-gateway in disabled_providers |
| 29 | SambaNova | SambaNova, defined, seated nowhere | Provider defined in config 2026-11-23 with a credential-store row, and no model seated (read 2026-11-23); the account is not on a free tier in practice (probes, 2026-11-23) | Probes 2026-11-23: live model list = 4 models, every completion HTTP 402 PAYMENT_METHOD_REQUIRED at balance 0 (read 2026-11-23). SambaNova’s plans page (fetched 2026-11-23) states the Free plan requires a payment method and a credit purchase. The free census row dated 2026-11-23 is superseded by these same-day probes (read 2026-11-23) |
| 30 | LongCat | LongCat direct platform, not wired | No recurring free tier exists to wire (docs fetched 2026-11-23). Existing LongCat 2.5 Free legs ride the Go/Zen plans (rows 6 and 16, read 2026-11-23), a different shelf | LongCat’s current official docs, fetched 2026-11-23: billing launched 2026-06-30 (Token Pack and pay-as-you-go); current pricing $0.30/1M uncached input, $1.20/1M output (limited-time discount), model LongCat-2.5; signup needs Meituan mobile plus SMS plus real-name authentication (all fetched 2026-11-23). The free census figures dated 2026-11-23 are superseded. Disposition awaits Drew’s decision: wire as cheap paid, or drop (read 2026-11-23) |
Sources. LLM evidence pack, ~/workspace/pm-book/survey/llm-evidence.md §1 (assembled 2026-11-23), and the sources the pack names for §1: REG (provider-quota-registry.md, read 2026-11-23), FREE (free-census-2026-11-23.md, dated 2026-11-23), EFF (model-efficiency-plan-2026-10-25.md, dated 2026-10-25), I13677 (developing-today/code issue #13677 and its 15 comments, read 2026-11-23), LAPTOP (deployed opencode.jsonc, read 2026-11-23 18:41:54 CST).
Pools, routes and the switchboard
A pool is a plan allowance behind one or more doors. A route is an ordered list of legs the resolver walks. The switchboard is the disabled_providers list in the deployed config: a provider named there is off, and a provider absent from the list is on. This chapter records the deployed state read on the laptop on 2026-11-23 18:41:54 CST and the standing rules that govern the walk. The plans behind the pools are in The plans we use. The tier definitions are in Models by tier, and why.
The routes in this chapter serve sessions running in the forks programme’s harness; that programme has its own section: OpenCode and OpenChamber: our forks programme.
Pools and doors
One pool, several doors is the normal shape. The Meta High Usage plan is one pool (POOL MAP, Drew, 2026-10-25, read 2026-11-23) and its doors changed across the record read 2026-11-23: the meta provider was the only door (2026-10-25, read 2026-11-23), the direct meta door was declared dead and routes re-seated on muse/* leaves (registry cycle 144 audit, 2026-10-30, read 2026-11-23), muse-direct became the sole enabled door (Drew, 2026-11-02, PR #4357, read 2026-11-23), and the deployed config read 2026-11-23 18:41 CST holds _muse and muse-direct present with meta in disabled_providers (laptop read, 2026-11-23). The pool stayed one pool through every door change (POOL MAP, read 2026-11-23).
OpenAI runs the same shape in reverse order since 2026-11-22: the alt door _openai.alt (popesdrew) is ordered first in the openai-plan pool and burns first, and the main door _openai.main (drewrypope) is its failover (Drew’s order 2026-11-22, landed PR #12731, read 2026-11-23). OpenCode Go is one shared bucket per workspace, not per-model buckets (verified 2026-10-27, read 2026-11-23); the four workspaces in the reads dated 2026-11-23 are four pools, not four doors onto one pool.
Provider names rot. The record read 2026-11-23 carries three renames: openai.main to _openai.main (2026-11-10), Lab to popesdrew (2026-11-03), and cline to cline-pass (2026-10-25). A search of older records under a current name misses material filed under the old name, and a search under an old name misses current material (pack §5, read 2026-11-23).
Route heads and defaults
Roles state requirements only. Stewardship Decision 008 (Drew, 2026-10-25, quoted in the efficiency plan dated 2026-10-25 and read 2026-11-23) states the rule in full: roles state a strength tier as a hard minimum-intelligence floor plus a speed flag; the model is picked live at dispatch time; named-model pins in agent and role defaults are banned. The tiers are route heads in the deployed config (opencode-route/<tier>, config read 2026-11-23) whose pools the resolver walks live.
Deployed defaults, read on the laptop 2026-11-23 18:41 CST: "model": "opencode-route/workhorse" and "small_model": "opencode-route/speed" (laptop read, 2026-11-23). Tier keys present in the deployed file, one each (laptop grep, 2026-11-23): scout, workhorse, specialist, summit, speed, background, plus the workhorse variants workhorse-primary, workhorse-weighted, workhorse-ordered, workhorse-last-resort (laptop grep, 2026-11-23). The deployed file holds 82 opencode-route/ references (laptop grep, 2026-11-23) and 40 named plan pools (laptop grep, 2026-11-23); the 40 pools are summarised by family in Models by tier, and why.
The workhorse route is the default route head, and it is also the route Muse itself dispatches OpenCode sessions on (Drew, 2026-11-01, read 2026-11-23).
The switchboard
The deployed disabled_providers list holds 9 entries (laptop read, 2026-11-23 18:41 CST): google, google-vertex, cloudflare-ai-gateway, vercel, huggingface, github-copilot, cloudflare-workers-ai, meta, _antigravity.
Two entries in the list dated 2026-11-23 carry findings:
metais disabled while_museandmuse-directare present in the same deployed config (laptop read, 2026-11-23 18:41 CST). The disabled entry is the old door, not the pool: the Meta pool’s current doors are the two present entries (door history, read 2026-11-23)._antigravityis disabled in the deployed config (laptop read, 2026-11-23 18:41 CST) while its quota reads are healthy (D23): Gemini and Claude/GPT weekly 1.64% each, resets 2026-11-30T01:41Z (registry cycle 471, measured 2026-11-23T12:15Z). The pack records this as a standing door-state finding since cycle 459 (registry, read 2026-11-23). State for both pools is in Walls, resets and quota doctrine.
Cloudflare sits behind the same switch: cloudflare-workers-ai and cloudflare-ai-gateway are both in the list dated 2026-11-23, the Workers AI provider is a disabled tombstone with no definition, and the vault AI-inference token is named cloudflare.api-token-ai-inference.REVOKED (free census, read 2026-11-23). The older metered Cloudflare gateway routes were disabled fleet-wide on 2026-10-25 after $29.60 to $45.10 of metered DeepSeek accrual on Oct 24–25, 2026 (registry and efficiency plan, read 2026-11-23).
Wall scoping: the narrowest true scope
A wall benches the thing that ran out, at the narrowest true scope. Pool-level quota verdicts were abolished by Drew’s rule of 2026-11-07 23:02 CST: “a pool can’t run out — only models and providers run out” (registry, read 2026-11-23). Pool language in records from before 2026-11-07 that speaks of a pool running out is superseded by this rule (D29). Fork PR #1979 merged that rule (registry, read 2026-11-23). Telemetry proof, recorded 2026-11-08 00:37 CST: zero pool-quota-exhausted decisions in the 10 minutes after cutover across 2,419 decisions (registry, read 2026-11-23).
The WALL-SKIP work (Drew’s order, 2026-11-23 14:36 CST, tracking issue #13693, read 2026-11-23) extends the same scoping into the config: a checker-validated wallScope provider declaration, plus the first free/paid alias split for a mixed plan-plus-free provider, two alias ids on the same credential source, so a paid-side wall never benches the free models (issue #13677 comment, read 2026-11-23). The OpenAI free alias in The plans we use (row 24, read 2026-11-23) is that pattern executed: wallScope: "account" on openai-payg-free, free leg weight 3 ahead of the paid tail at 0.1 in luna-plan and systemone (read 2026-11-23). The evidence record for WALL-SKIP holds no measured results; Benchmarks and real-use evidence states that in full.
At a known 100% a pool is closed until its reset or a fresh read shows it below 100% (registry, read 2026-11-23). OpenAI doors reset early at times: the main door produced an unplanned mid-window reset on 2026-10-29, weekly 46% to 23% with the reset label unchanged (registry, read 2026-11-23). The labelled reset is a read, not a promise; the fresh read decides.
Free-first ordering
Free legs lead every pool their capability fits; plan and paid legs follow (Drew, 2026-11-23, standing rule, read 2026-11-23). The free-first ordering pass landed in PR #13691 (merged 2026-11-23, read 2026-11-23). Scout leads with beam, longcat, iceman, inkling and openrouter-free before paid legs (free census §5, read 2026-11-23). Background runs the full free cluster before workhorse (free census §5, read 2026-11-23). Zen free models sit as last-resort legs wherever they fit, with limited context, per config comments (free census §5, read 2026-11-23). Two recorded exceptions stand in the pass dated 2026-11-23: background’s clock-gated paid chain, a recorded value-order design (issue #13677 comment, read 2026-11-23), and Beam :free seated on Drew’s direct order of 2026-11-23 despite its tier being recorded ended 2026-11-13 (read 2026-11-23).
The three TEMPORARY pay-as-you-go tails sit at the end of their pools, last by construction: DeepSeek direct last in the DeepSeek pool, OpenAI pay-as-you-go Luna low last in the OpenAI pool, Claude pay-as-you-go Haiku low last in the Claude pool (Drew’s order, 2026-11-23 13:20 CST, read 2026-11-23). TEMPORARY marks all three tails in The plans we use (rows 25–27, read 2026-11-23).
Gates on specific legs
- Astra (GPT-6 via the ChatGPT pool) is gated: only when Aster calls for it, or with a specific reason logged at time of use (registry and efficiency plan, read 2026-11-23).
- Antigravity Argon: use sparingly. Argon is the expensive Gemini tier and its price doubles on 2026-12-01 (efficiency plan, dated 2026-10-25, read 2026-11-23). Flash tiers are the preferred Gemini legs (registry ladder, read 2026-11-23).
- Cloudflare gateway: one session at a time, nothing important (registry, read 2026-11-23). The gateway is disabled fleet-wide in the deployed config read 2026-11-23, per the switchboard list in this chapter.
Effort is part of the route
The unit of decision is the (model, effort) pair (effort guide, read 2026-11-23). Effort is always set explicitly; a turn running variant “default” is a process failure (effort guide rules, read 2026-11-23). A hot prompt cache weights staying on the current pair (effort guide, read 2026-11-23). Sizing, from the effort guide read 2026-11-23: flagships at medium, mid tier at medium to high, small and cheap models at high to max. Tier-level effort assignments are in Models by tier, and why.
Sources. LLM evidence pack, ~/workspace/pm-book/survey/llm-evidence.md §2 and appendix (assembled 2026-11-23), and the sources the pack names for §2: REG (provider-quota-registry.md, read 2026-11-23), EFF (model-efficiency-plan-2026-10-25.md, dated 2026-10-25), FREE (free-census-2026-11-23.md, dated 2026-11-23), GUIDE (provider-model-effort-guide.md, read 2026-11-23), I13677 (developing-today/code issue #13677 and its 15 comments, read 2026-11-23), LAPTOP (deployed opencode.jsonc, read 2026-11-23 18:41:54 CST).
Models by tier, and why
The tiers are route heads, not model names. Decision 008 (Drew, 2026-10-25, read 2026-11-23) bans named-model pins in role defaults: a role states a strength floor and a speed flag, and the resolver picks the model live at dispatch time. This chapter records the six tier route heads in the deployed config (tier keys read on the laptop, 2026-11-23 18:41 CST), what serves each tier as built (config audits and census reads, each dated in the table), and the reasoning the sources record for each placement. The pools behind the legs are in The plans we use; the walk rules are in Pools, routes and the switchboard.
The six tiers
| Tier (route head) | What serves it, as built | Why, in the sources’ recorded reasoning |
|---|---|---|
| scout | Free cluster first: beam-plan, longcat-plan, iceman-plan, inkling-plan, openrouter-free-plan, commandcode-free-plan, kilo-free-plan (kilo-auto/free), then paid legs (free census §5, read 2026-11-23; issue #13677 PR #13691 seating, read 2026-11-23) | Free census §5, read 2026-11-23: “scout leads with beam/longcat/iceman/inkling/openrouter-free before falling to paid legs.” Free-first is a standing route rule from Drew’s order of 2026-11-23 (issue #13677 body, read 2026-11-23). Zen free models sit last-resort wherever they fit, with limited context, per config comments (free census §5, read 2026-11-23) |
| background | The full free cluster (flash-free, gemini-free, exaone-free, hy4-flash, glm Zen and Z.ai, flint, big-pickle, nemotron x2, nvidia-free, openrouter-free, commandcode-free, kilo-free) before workhorse (free census §5, read 2026-11-23) | Free census §5 tier placement, read 2026-11-23. One recorded exception stands in the free-first pass dated 2026-11-23: background’s clock-gated paid chain, a recorded value-order design (issue #13677 comment, read 2026-11-23) |
speed (also the config’s small_model, read 2026-11-23) | spark-plan class legs; since 2026-11-07 22:00 CST the speed route’s first leg is the direct _muse/muse-spark-1.3-contributor#xhigh at weight 3, then deepseek-flash-plan at weight 2, haiku-plan at weight 2, gemini-flash-plan at weight 1 (registry speed-route entry, Drew’s direct order, read 2026-11-23) | Meta Spark at its low variant is a Light-tier model (registry capability tiers, read 2026-11-23). Effort on the Meta door is the reasoning_effort parameter via variants; no -low model ids exist behind this door (probed 2026-10-26, registry, read 2026-11-23). Contributor rule (Drew, 2026-10-26, registry, read 2026-11-23): “whenever a Meta model would be used, use its -contributor id instead — it is always cheaper on this plan” |
| workhorse (the config default, read 2026-11-23; also the route Muse itself dispatches OpenCode sessions on, Drew, 2026-11-01, read 2026-11-23) | deepseek-flash-plan at high effort, luna-plan, haiku-plan, Meta spark-contributor, sol-plan#low (registry model audit, deployed-config read dated 2026-10-27) | Efficiency plan ladder, dated 2026-10-25, read 2026-11-23: standard work is “DeepSeek Flash at high effort — still cheaper than most options even if it takes a couple of iterations. On the OpenAI pool, Luna Max is the default for most tasks — it lasts much longer. On the Claude side, Sonnet (medium or high).” POOL MAP, read 2026-11-23: “Default workhorse: DeepSeek Flash on HIGH effort (cheapest sufficient; a couple of iterations still beat one flagship pass).” Effort guide §5, read 2026-11-23: small and cheap models at high to max effort; “the tokens are cheap; effort buys back the capability gap” |
| specialist | sonnet-plan#high, argon-plan#high, spark-plan#max, sol-plan#medium; ordered Claude, Meta, OpenAI, DeepSeek Pro in the audit dated 2026-10-27, and OpenAI last in the audit dated 2026-10-31 (registry cycles 144/168, read 2026-11-23) | Efficiency plan ladder, dated 2026-10-25, read 2026-11-23, Hard tier: “Luna Max at higher effort, Sonnet high, or Opus at low/medium. Medium Sol only when something is genuinely complicated.” Effort guide §4, read 2026-11-23: Hard is “Opus class or the strongest open model available” |
| summit | opus-plan#high, argon-plan#high, muse-direct / _muse Wonder-contributor at #xhigh to #max, sol-plan#xhigh; OpenAI last (registry audits dated 2026-10-31 and 2026-11-02, read 2026-11-23) | Efficiency plan ladder, dated 2026-10-25, read 2026-11-23, Very complex design: “Opus high — deliberate, not a default. If in doubt, it isn’t this class.” POOL MAP, read 2026-11-23: “high Opus only for very complex design, deliberate and rare”; “Medium Sol is the routine ceiling on the OpenAI pool”. Effort guide §5, read 2026-11-23: flagships at medium by default; “High only for genuinely hardest-tier work; max is almost never cost-efficient here” |
The 40 deployed pools, by family
The deployed config holds 40 named plan pools (laptop grep, 2026-11-23). Grouped by family, with the grouping made in this chapter on 2026-11-23 from that dated list:
- OpenAI family, 4 pools (laptop grep, 2026-11-23): openai-plan, luna-plan, sol-plan, terra-plan.
- Claude family, 4 pools (laptop grep, 2026-11-23): fable-plan, haiku-plan, opus-plan, sonnet-plan.
- Meta family, 1 pool (laptop grep, 2026-11-23): spark-plan.
- DeepSeek family, 2 pools (laptop grep, 2026-11-23): deepseek-flash-plan, deepseek-pro-plan.
- GLM family, 4 pools (laptop grep, 2026-11-23): glm-5-3-plan, glm-5-3-flash-plan, glm-5-3-flash-zen-plan, glm-flash-free-plan.
- Gemini family, 3 pools (laptop grep, 2026-11-23): gemini-free-plan, gemini-hydrogen-plan, gemini-embed-plan.
- Antigravity family, 1 pool (laptop grep, 2026-11-23): argon-plan.
- Mistral family, 1 pool (laptop grep, 2026-11-23): mistral-plan.
- Free-catalogue plans, 7 pools (laptop grep, 2026-11-23): commandcode-free-plan, exaone-free-plan, flash-free-plan, groq-free-plan, kilo-free-plan, nvidia-free-plan, openrouter-free-plan.
- Free-model plans, 10 pools (laptop grep, 2026-11-23): beam-plan, big-pickle-plan, flint-plan, hy4-flash-plan, iceman-plan, inkling-plan, longcat-plan, mimo-flash-plan, nemotron-lightning-plan, nemotron-vl-plan.
- Utility plans, 3 pools (laptop grep, 2026-11-23): prompt-guard-plan, stt-plan, tts-plan.
The family counts in this section add to 40, the count in the dated laptop grep of 2026-11-23. Tier membership and weights rot with every config PR (pack §5, read 2026-11-23); the tier definitions in Decision 008 (Drew, 2026-10-25, read 2026-11-23) are standing rules and rot slowly.
Capability tiers for failover
Failover swaps a leg for a like-tier leg. The registry capability tiers (standing text, read 2026-11-23):
- Flagship (registry, read 2026-11-23): openai gpt-6.1-sol / gpt-6-sol / gpt-5.6-sol; opencode-go gpt-5.6-sol; meta muse-wonder-1.0; antigravity claude-opus-5-5.
- Strong (registry, read 2026-11-23): openai gpt-6-luna / gpt-5.6-terra / gpt-5.6-luna; meta muse-spark-1.3; antigravity/google claude-sonnet-5-5; cline-pass glm-5.3, kimi-k3, deepseek-v4-pro; opendesign deepseek-v4-pro, glm-5.3.
- Light (registry, read 2026-11-23): cline-pass glm-5.3-flash, deepseek-v4.1-flash; opendesign deepseek-v4.1-flash, glm-5.3-flash; meta muse-spark-1.3 at its low variant; openai gpt-5.6-luna-fast; opencode big-pickle.
Failover effort rule (registry, read 2026-11-23): prefer the same effort variant; drop at most one step when quota forces a lighter pick; never jump flagship to light without a note in the supervision log.
Cross-tier rules
- Cheapest sufficient first, measured fresh. The efficiency plan’s one rule, dated 2026-10-25 and read 2026-11-23: “Never use more model than the task needs, and never spend money to keep working.” The measurement gate is in Walls, resets and quota doctrine.
- Family preference, all else equal (registry, Drew, 2026-10-24, read 2026-11-23): “claude first, then openai; gemini sits wherever the specific job fits it”. Right-sizing beats family preference, and where the ladder and the older family text disagree, the ladder wins (registry, read 2026-11-23).
- Effort is set per (model, effort) pair, never left at a default variant (effort guide, read 2026-11-23). The effort sizing is in Pools, routes and the switchboard.
The harness that runs these tiers is the forks programme’s; its own section is OpenCode and OpenChamber: our forks programme.
Sources. LLM evidence pack, ~/workspace/pm-book/survey/llm-evidence.md §2 (assembled 2026-11-23), and the sources the pack names for §2: REG (provider-quota-registry.md, read 2026-11-23), EFF (model-efficiency-plan-2026-10-25.md, dated 2026-10-25), FREE (free-census-2026-11-23.md, dated 2026-11-23), GUIDE (provider-model-effort-guide.md, read 2026-11-23), I13677 (developing-today/code issue #13677 and its 15 comments, read 2026-11-23), LAPTOP (deployed opencode.jsonc, read 2026-11-23 18:41:54 CST).
Benchmarks and real-use evidence
This chapter holds the measured record: 16 evidence entries, B1–B16, each dated, each with its numbers as the source recorded them. A dated result is a historical fact. The inference drawn from a result (“seat this model”) rots as model ids, prices and programme terms change (pack §5, read 2026-11-23). Every probe citation in this chapter names the serving provider where the source names it, not the requested route; entry B6 records why that distinction is binding. The plans tested here are in The plans we use.
B1 — Luna as decision engine (the headline benchmark)
- Date and system (eval files in
~/workspace/decision-eval/, read 2026-11-23):gpt-6-lunaat low reasoning effort (openai-payg/gpt-6-luna#low) plus a decision-engine harness with strict per-item JSON Schema forcing{"value", "confidence"}(read 2026-11-23). Work performed on code#13675 Part 3b (read 2026-11-23). - Eval set (read 2026-11-23): 36 items, 12 per family (noul yes/no, choice, score), deterministic expected answers. The bar was posted before any run (bar-comment.md, read 2026-11-23).
- Results (results.json and verdict-comment.md, read 2026-11-23): schema-faithful 36/36 (100%); accuracy 35/36 = 97.2% (noul 12/12, choice 11/12, score 12/12 with a tolerance of 1 level, read 2026-11-23).
- Baseline (read 2026-11-23): Google Decision 1 native (
gemini-decision-1): 36/36 schema, 36/36 accuracy, run on the free tier at $0 (read 2026-11-23). - Bar check (verdict-comment.md, read 2026-11-23): schema 100% against a bar of 95% — pass; accuracy 97.2% against a bar of 90% — pass; lowest family 91.7% against a bar of 80% — pass; gap to baseline 2.8 points against a bar of 5 points — pass. Verdict recorded 2026-11-23: PASS, “Luna low is seatable in
systemoneafter the free legs” (verdict-comment.md, read 2026-11-23). - The one miss (read 2026-11-23): choice item c07, third-party email with no per-item approval recorded; expected
escalate, Luna answeredhold(results.json, read 2026-11-23). - Spend (read 2026-11-23): 10,818 prompt tokens plus 1,161 completion tokens = 11,979 tokens, $0.08 at assumed rates of $5/M input and $20/M output, and under $0.16 at double those rates, inside the $2 bound (verdict-comment.md, read 2026-11-23). The rates are assumed rates, stated in the verdict dated 2026-11-23; Luna’s pay-as-you-go list price was not carried in the API response (pack §5, read 2026-11-23).
- Calls (read 2026-11-23): all 72 calls returned HTTP 200 (read 2026-11-23).
B2 — OpenAI complimentary-token mechanics
Documentary measurement, not a benchmark run (pack §3, read 2026-11-23). Source: OpenAI Help Center art. 10306912 and the eligible-models list (reading dated 2026-10-20), fetched 2026-11-23 (issue #13677 comment, read 2026-11-23).
- Two per-group daily buckets, resetting 00:00 UTC (fetched 2026-11-23): Large group (gpt-6-luna, gpt-6-astra, gpt-6-sol in the group, fetched 2026-11-23) at 250K/day at Build tiers 1–2 and 1M/day at Launch/Grow; Small group at 2.5M/day rising to 10M/day (fetched 2026-11-23).
- Per-request check (fetched 2026-11-23): a request that crosses the day’s quota is billed in full, with no pro-rating.
- Stacking order (issue #13677 comment, read 2026-11-23): complimentary daily tokens first, then ChatGPT-benefit credits, then purchased balance. Within-quota requests are not billed (read 2026-11-23). The separate ChatGPT-Pro benefit is $100/mo API credits for the $100 Pro tier, linked to one organisation, used before purchased credits (read 2026-11-23).
- Exhaustion is silent (fetched 2026-11-23): no error returns; traffic bills.
- Excluded (fetched 2026-11-23): fine-tuned models, fine-tuning, evals, tool use. ZDR and Enterprise organisations are excluded from the programme (fetched 2026-11-23).
- Termination term (pack §5, read 2026-11-23): the complimentary programme carries a 30-days’-notice termination clause (read 2026-11-23).
B3 — OpenAI free-alias live proof
After PR #13836 and PR #13838 (2026-11-23), three consecutive systemone turns were served by openai-payg-free/gpt-6-luna with no errors, and route_attempt holds success rows for the alias; the paid tail served none of the post-fix probes (issue #13677 comment, read 2026-11-23). Two runtime defects came from the probes dated 2026-11-23: the credential store resolves by the alias’s own id, and a row for openai-payg-free had to be seeded; instanceOf does not inherit the base’s npm package, and PR #13838 re-declares "npm": "@ai-sdk/openai" on the alias (read 2026-11-23).
B4 — NVIDIA entitlement probe
Probed 2026-11-23 with the escrowed key (issue #13677 comment, read 2026-11-23). The account’s live GET /v1/models returned 32 ids on 2026-11-23; the public catalogue held 83 models on 2026-11-23 (read 2026-11-23). Minimal completions on 2026-11-23: 15 returned HTTP 200 (Nemotron-3-Ultra 550B, Mistral Large 4, Kimi K3.1 Pro, Gemma 4 31B in the 15, read 2026-11-23); 6 returned 404, listed but not entitled (gemma-3-12b/4b and cosmos-reason2-8b in the 6, read 2026-11-23); 3 were entitled with non-chat shapes (422/500, read 2026-11-23); 1 was inconclusive (glm-5.3-flash, two timeouts, not seated, read 2026-11-23); 7 embed-shelf ids were listed for the decision lane and not chat-probed (read 2026-11-23). A dead seat came out of the probe dated 2026-11-23: seated deepseek-ai/deepseek-v4.1-flash answered 410 and was removed (read 2026-11-23). After seating in PR #13777 (2026-11-23): 12/12 seated models returned HTTP 200 on direct completions (read 2026-11-23); a through-route prompt was accepted (HTTP 200, 2026-11-23) before a server restart cut off reply capture (read 2026-11-23). Listing is not entitlement: the 32-id account list and the 83-model public catalogue are different sets (both read 2026-11-23).
B5 — Groq, OpenRouter, Kilo and SambaNova probes
All probes dated 2026-11-23 (issue #13677 comments, read 2026-11-23):
- Groq (probed 2026-11-23): direct completions 3/3 HTTP 200 (gpt-oss-120b, gpt-oss-20b, qwen3.8-27b) with the key created 2026-11-23 (read 2026-11-23).
- OpenRouter (probed 2026-11-23): every candidate completion returned the account-level 429 (
free-models-per-day, limit 50, remaining 0, resets 2026-11-24T00:00Z, read 2026-11-23). The account’s own traffic consumed the day’s free quota on 2026-11-23; the 429 is a quota state, not a model verdict (read 2026-11-23). - Kilo (probed 2026-11-23): unauthenticated completion on
kilo-auto/freereturned HTTP 200 at $0, rotated tonvidia/nemotron-3.5-super-vl:free(read 2026-11-23). - SambaNova (probed 2026-11-23): 4/4 models returned HTTP 402
PAYMENT_METHOD_REQUIRED(read 2026-11-23). The full correction is in The plans we use (row 29, read 2026-11-23).
B6 — OpenRouter fall-through probe (D27)
Run after the free-tier reset and recorded 2026-11-24T00:22Z, which is 2026-11-23 18:22 CST (issue #13677 comment, read 2026-11-23). Two identical probe sessions exist: the probe client’s transport timed out and the laptop-agent SSH fallback re-ran the script once; the attempt budget of 2 attempts is spent (read 2026-11-23). Sessions created 2026-11-24T00:15:26Z and 2026-11-24T00:17:28Z, both set to opencode-route/openrouter-free-plan, both recorded succeeded with reply “OK” and no 429 surfaced (read 2026-11-23). Neither completion was served by an OpenRouter :free model: one completion was served by claude-payg / claude-haiku-5-5 and the other by _muse / muse-spark-1.3-contributor (read 2026-11-23).
Verdict recorded on the issue, read 2026-11-23: the owed item is NOT closed in substance. No verified OpenRouter-served completion through the route exists after the reset of 2026-11-24T00:00Z (read 2026-11-23), and the sessions’ empty route-target records do not distinguish “legs failing and masked by route fallback” from “legs never attempted” (read 2026-11-23). A route success record names the route’s outcome, not the serving provider. The open verification item is listed in LLM plans: prioritised list.
B7 — WALL-SKIP (route wall scoping)
WALL-SKIP has no measured results. No WALL-SKIP benchmark numbers are recorded in any source read for the evidence pack dated 2026-11-23, and this chapter cites none.
What exists in the sources read 2026-11-23 is a design and coordination record: Drew’s order of 2026-11-23 14:36 CST, tracking issue #13693 (issue #13677 comment, read 2026-11-23). The lane’s only config touch is its slice C: a checker-validated wallScope provider declaration plus the first free/paid alias split for a mixed plan-plus-free provider, two alias ids on one credential source, so a paid-side wall never benches the free models (read 2026-11-23). Slice C was sequenced after the WIRE-FREE config PR; the fork and proxy slices do not touch the config (read 2026-11-23). The pattern was executed for OpenAI by the OPENAI-FREE-SHAPE lane (entry B3 in this chapter; _commandcode-free precedent cited there as #13693 slice C, PR #13784, read 2026-11-23).
Related deployed wall behaviour (registry, recorded 2026-11-08 00:37 CST, read 2026-11-23): pool-level quota verdicts were abolished by Drew’s rule of 2026-11-07 23:02 CST, fork PR #1979 merged (read 2026-11-23); telemetry proof recorded 2026-11-08: zero pool-quota-exhausted decisions in the 10 minutes after cutover across 2,419 decisions (read 2026-11-23). The scoping rule itself is in Pools, routes and the switchboard.
B8 — Command Code resident-ACP retrofit measurement
Sandbox, verified 2026-10-24 at 11:27 CDT (registry, read 2026-11-23): resident ACP bridge, two-turn codeword recall at 5s plus 5s, against the phase-1 stateless baseline of 10–19s per turn and 11–15s raw cmd -p probes (read 2026-11-23). Laptop two-turn after its IPv6 fix: 18.8s / 9.3s with recall on the same resident process (registry, recorded 2026-10-25 at 00:43 CDT, read 2026-11-23). Caveat recorded in the registry, read 2026-11-23: OpenCode’s own per-message counts show 26.1k input on both turns; OpenCode sends that count to the proxy and the proxy delta-fies to cmd (read 2026-11-23).
B9 — Claude Code bridge verification
Provider-sync verification in opencode.db (registry, recorded 2026-10-25 at 06:20 CDT, read 2026-11-23): route_attempts 469/470 for claude-code/claude-haiku-5-5 success (19.96s cold, 1.75s recall turn, recorded 2026-10-25); 472 openai non-regression successes (recorded 2026-10-25, read 2026-11-23). Independent health check on the same morning, 2026-10-25: bridge ok, 3 live sessions and 4 stored sessions (read 2026-11-23).
B10 — Meta door probes
A dated series, kept as three separate entries in the pack dated 2026-11-23:
- (a) Probed 2026-10-26 14:30–14:42Z: Meta pool blocked; the API returned 402 billing_not_configured on all 11 probes (registry, read 2026-11-23).
- (b) Probed 2026-10-27 at 15:35 CDT: live API probe with the stored
metakey returned HTTP 200 completion on muse-spark-1.3-contributor (registry, read 2026-11-23); laptop route telemetry that day (2026-10-27) recorded 147 successful meta attempts and 0 failures, with 648 successes all-time against exactly 10 historical 402s from the batch dated 2026-10-26 (registry addendum, evening of 2026-10-27, read 2026-11-23). Recorded verdict dated 2026-10-27: “The 402 era is closed history” (read 2026-11-23). - (c) Determination recorded 2026-11-04 at 23:50 CST (registry, read 2026-11-23): a live OAuth-route attempt returned 429 “Subscription quota exhausted… resets at 2026-11-09T00:00:00Z” while the key endpoint returned no
subs_usageat all (read 2026-11-23). The endpoint’s usage publication is unreliable in every state and was retired as the percentage source; the dev.meta.ai portal API is the proven percentage source, and its fetcher restore is filed as code#6079 (read 2026-11-23).
B11 — OpenCode Go value arithmetic
Computed, not probed (registry, computed 2026-10-27, read 2026-11-23; full arithmetic in the ai-plans record dated 2026-10-20, addendum 2026-10-27, read 2026-11-23). Go at $10/mo buys a $60 list-rate meter: 6.0x value per dollar at full burn (computed 2026-10-27). DeepSeek V4.1 Flash’s $80 promo cap gives 8.0x Flash-concentrated, at 300 AA-sized max-effort Flash tasks per workspace per month in the computation dated 2026-10-27 (read 2026-11-23). Realised in that period (console read 2026-10-27, both workspaces then recorded Cancelled, read 2026-11-23): Personal 80% used = $48 list burned (4.8x realised); Lab 62% = $37.20 list burned (3.72x realised); blended 4.26x, with $34.80 list left unburned (computed 2026-10-27, read 2026-11-23). Caps never roll over; the ratios are conditional on utilisation (read 2026-11-23). Comparison points in the same verdict dated 2026-10-27: ClinePass 2–5x, Command Code GOAT 7x, DeepSeek API direct 1.0x (read 2026-11-23).
B12 — Gate-fix telemetry
Real-use, post-deploy (registry, recorded 2026-11-08 00:37 CST, read 2026-11-23): in the first 20 minutes of the build that abolished pool verdicts, workhorse successes via flash-pool legs counted cline-pass 220, opendesign 184, _vibe 177, _commandcode 42 (recorded 2026-11-08, read 2026-11-23). The same night (recorded 2026-11-07 22:51–22:57 CST, read 2026-11-23): four routed OpenDesign successes via speed, route_attempt ids 353151/353224/353251/353259, all opendesign/claude-haiku-5.5, the first routed OpenDesign attempts since the latch of 2026-11-06 19:32Z (read 2026-11-23).
B13 — Tool-call support audit
Live round-trips (registry audit, dated 2026-11-05, read 2026-11-23; tracking opencode#1708, read 2026-11-23):
- vibe-direct: PASS, true one-message parallel calls with byte-exact argument fidelity live (audit dated 2026-11-05, read 2026-11-23).
- opencode-route façade: PASS via the openai.main leaf, with a cross-leaf signature caveat at opencode#1705 (audit dated 2026-11-05, read 2026-11-23).
- antigravity-direct: FAIL live, then FIXED in code; PR #1716 merged; the wire model id was unconditionally effort-suffixed (audit dated 2026-11-05, read 2026-11-23).
- claude-code and commandcode: marked CRITICAL if enabled; CLI-transcript shapes, tool calls never emitted (code#6117, audit dated 2026-11-05, read 2026-11-23).
- muse-direct, cline-pass, opendesign, opencode-go: recorded BLOCKED-BY-WALL at audit time (2026-11-05), with wall reset dates in Walls, resets and quota doctrine (read 2026-11-23).
B14 — WIRE-FREE config validation suites
Suite counts, each dated 2026-11-23 (issue #13677 comments, read 2026-11-23):
- PR #13691 (2026-11-23): checkers passed, suites 114/114 (read 2026-11-23).
- PR #13777 (2026-11-23): checkers PASS, suites 146/146 (read 2026-11-23).
- OPENAI-FREE-SHAPE PRs #13836/#13838 (2026-11-23): route-rules plus metered plus go-seating suites 77/77; catalog-sync plus snapshot suites 48/48 (read 2026-11-23).
- The go-seating CLI findings in the run dated 2026-11-23 were identical on pristine origin/main: live-traffic freshness, unrelated to the change (read 2026-11-23).
B15 — Billing incidents behind the measurement gate
Measured losses, recorded 2026-10-25 (registry and efficiency plan, read 2026-11-23):
- Meta, 2026-10-25: weekly quota read once at 03:20 CDT (46% used, read 2026-10-25) and never re-measured during a burn of 7h (recorded 2026-10-25); spill metered as pay-as-you-go: $20.00 charged 05:15 CDT plus $3.91 charged 07:47 CDT = $23.91 (recorded 2026-10-25, read 2026-11-23). A third $20.00 METAPAY charge landed 2026-10-26 10:08 CDT on a different card (registry, read 2026-11-23).
- Console correction recorded 2026-10-25 09:38 CDT: no charge-past-plan toggle exists; spill is automatic when any plan window runs out, and the wall on the morning of 2026-10-25 was the short window, not the weekly window (read 2026-11-23).
- Cloudflare gateway, Oct 24–25, 2026: DeepSeek V4 Pro accrual $29.60 per budget alert against $45.10 per gateway cost attribution (registry, read 2026-11-23). The two figures are two attributions of one accrual, recorded 2026-10-25 (read 2026-11-23).
- A stewardship visibility build on Astra burned a week of the GPT pool, $25 in value in the record’s estimate, on basic work (efficiency plan, dated 2026-10-25, read 2026-11-23). The $25 figure is the source’s estimate, recorded 2026-10-25 (read 2026-11-23).
The doctrine these losses produced is in Walls, resets and quota doctrine.
B16 — Effort-guide pool snapshot (stale specimen)
Effort guide §8, snapshot dated 2026-10-25 at 06:00 CDT (read 2026-11-23): claude-code live; cline-pass live (probe-verified 05:56 CDT, 2026-10-25); opencode-go behind a 402 funds wall since 04:43 CDT, 2026-10-25; antigravity-ls Gemini live and Claude fraction at 429 (all dated 2026-10-25, read 2026-11-23). The snapshot is 29 days old at pack time (2026-11-23) and is labelled stale in the pack dated 2026-11-23; every state in it has since changed (pack §3, read 2026-11-23). Current-at-last-read state is in Walls, resets and quota doctrine, with each row’s read date. Effort guide §3 pool descriptions carry the same verification date, 2026-10-25 (read 2026-11-23).
Sources. LLM evidence pack, ~/workspace/pm-book/survey/llm-evidence.md §3 (assembled 2026-11-23), and the sources the pack names for §3: EVAL (decision-eval/ files, read 2026-11-23), I13677 (developing-today/code issue #13677 and its 15 comments, read 2026-11-23), REG (provider-quota-registry.md, read 2026-11-23), EFF (model-efficiency-plan-2026-10-25.md, dated 2026-10-25), FREE (free-census-2026-11-23.md, dated 2026-11-23), GUIDE (provider-model-effort-guide.md, read 2026-11-23).
Walls, resets and quota doctrine
A wall is a pool, provider or model at its limit. A reset is the dated time the limit clears, as read. This chapter holds the wall table at its last dated reads and the doctrine that governs burning, measuring and stopping. No figure in this chapter is current: the governing fresh read for the table is the registry cycle 471 gatherer, measured 2026-11-23T12:15Z, and at pack assembly (2026-11-23 at 18:40 CST, which is 2026-11-24T00:40Z) that read was 12.4 hours old (pack §4, read 2026-11-23). Every row names its own read and carries an age label. The plans are in The plans we use.
The wall table at last read
| Pool / window | State at last read | Reset, as read | Read (source and date/time) and age label |
|---|---|---|---|
OpenAI alt (_openai.alt, popesdrew) weekly | 100% closed (measured 2026-11-23T12:15Z) | 2026-11-23T18:49Z, as read 2026-11-23T12:15Z | Registry cycle 471, measured 2026-11-23T12:15Z; age at pack assembly (2026-11-24T00:40Z): 12.4 hours old. The reset time fell 6 minutes after pack assembly began on 2026-11-23; the row’s state after that reset is unverified until a fresh read (pack §4, read 2026-11-23). An earlier gatherer read dated 2026-11-23T00:15Z recorded weekly 100% and 5h 0% (read 2026-11-23) |
OpenAI main (_openai.main) weekly | 59%, open, final reserve (measured 2026-11-23T12:15Z) | 2026-11-24T21:23Z, as read 2026-11-23T12:15Z | Registry cycle 471, measured 2026-11-23T12:15Z; age at pack assembly (2026-11-24T00:40Z): 12.4 hours old |
| ClinePass monthly | 100% closed (measured 2026-11-23T12:15Z); weekly and 5h at 0% in the same read dated 2026-11-23T12:15Z | 2026-12-06T14:40Z, as read 2026-11-23T12:15Z | Registry cycle 471, measured 2026-11-23T12:15Z; age at pack assembly (2026-11-24T00:40Z): 12.4 hours old |
| Open Design 7d | 100% closed (measured 2026-11-23T12:15Z) | 2026-11-24T11:44Z, as read 2026-11-23T12:15Z | Registry cycle 471, measured 2026-11-23T12:15Z; age at pack assembly (2026-11-24T00:40Z): 12.4 hours old |
| OpenCode Go drewrypope monthly | 100% (measured 2026-11-23T12:15Z); weekly state not separately stated in cycle 471 (read 2026-11-23) | Monthly resets 2026-12-03, as read 2026-11-23T12:15Z | Registry cycle 471, measured 2026-11-23T12:15Z; age at pack assembly (2026-11-24T00:40Z): 12.4 hours old |
| OpenCode Go popesdrew monthly | 100% (measured 2026-11-23T12:15Z) | Monthly resets 2026-12-03, as read 2026-11-23T12:15Z | Registry cycle 471, measured 2026-11-23T12:15Z; age at pack assembly (2026-11-24T00:40Z): 12.4 hours old |
| OpenCode Go developing-today-0 monthly | 100% (measured 2026-11-23T12:15Z) | Monthly resets 2026-12-08, as read 2026-11-23T12:15Z | Registry cycle 471, measured 2026-11-23T12:15Z; age at pack assembly (2026-11-24T00:40Z): 12.4 hours old |
| OpenCode Go 0x111dev | 5h 64% / weekly 66% / monthly 83%, open and burning (measured 2026-11-23T12:15Z) | Monthly resets 2026-12-18, as read 2026-11-23T12:15Z | Registry cycle 471, measured 2026-11-23T12:15Z; age at pack assembly (2026-11-24T00:40Z): 12.4 hours old |
| Command Code monthly | 99.51%, not walled (measured 2026-11-23T12:15Z) | Monthly window; console period data is dated 2026-10-27 and is stale at pack time (2026-11-23) | Registry cycle 471, measured 2026-11-23T12:15Z; age at pack assembly (2026-11-24T00:40Z): 12.4 hours old. The console period data inside the row is dated 2026-10-27, 27 days stale at pack time (2026-11-23) |
| Mistral included API and Vibe | Both 100% (measured 2026-11-16) | 2026-12-01, as read in cycle 471 dated 2026-11-23 | Registry cycle 471, read 2026-11-23; the measurement inside the read is dated 2026-11-16 and is 7 days stale inside the read itself (pack §4, read 2026-11-23) |
Claude (_claude) | Unmeasured at the latest read (registry cycle 471, measured 2026-11-23T12:15Z): gatherer state error “Rate limited. Retrying soon.” (read 2026-11-23; the Claude plan’s state across sources is disagreement D42). Carried figures from the last measurement dated 2026-11-23T03:00Z — 5h 100% (past its 04:50Z reset on 2026-11-23) / 7d 32% / Fable 28% — are carried figures, not state, and this chapter does not cite them as state (pack §4, read 2026-11-23) | Carried reset 2026-11-25T19:00Z, from the measurement dated 2026-11-23T03:00Z | Registry cycle 471, measured 2026-11-23T12:15Z; last actual measurement 2026-11-23T03:00Z (read 2026-11-23) |
| Meta High Usage weekly | Stale: freshest measurement dated 2026-11-21T04:45Z read weekly 100% resetting 2026-11-23T00:00Z, a reset time past at pack time (2026-11-23); the new window’s first clean read had not landed at cycle 471 (read 2026-11-23). A cycle-459 conflict stands in the record read 2026-11-23 (D22): one entry errored “subscription is inactive” while _muse read 100% in the same cycle (read 2026-11-23) | New window’s reset not yet read at cycle 471 (read 2026-11-23) | Registry cycle 471, read 2026-11-23; freshest measurement 2026-11-21T04:45Z, labelled stale in the pack dated 2026-11-23 |
| Antigravity Gemini and Claude/GPT weekly | 1.64% each, healthy, no wall (measured 2026-11-23T12:15Z) | 2026-11-30T01:41Z, as read 2026-11-23T12:15Z | Registry cycle 471, measured 2026-11-23T12:15Z; age at pack assembly (2026-11-24T00:40Z): 12.4 hours old |
| OpenRouter :free daily | Account-level 429, limit 50, remaining 0 (probed 2026-11-23) | 2026-11-24T00:00Z, as read 2026-11-23 | Issue #13677 comment (probe, 2026-11-23), read 2026-11-23; age at pack assembly (2026-11-24T00:40Z): the probe is dated 2026-11-23, inside the pack day. Post-reset through-route state is in Benchmarks and real-use evidence entry B6: the route completed and no completion was OpenRouter-served; no verified OpenRouter-served completion exists (read 2026-11-23) |
| EXAONE free key | Not a wall: a hard expiry (arranged 2026-11-23) | Key dies 2026-12-16; rotation check fires 2026-12-10 at 10:40 CST (arranged 2026-11-23) | Issue #13677 comment (arranged 2026-11-23), read 2026-11-23; age at pack assembly (2026-11-24T00:40Z): arranged on the pack day, 2026-11-23 |
Row count for this table: 15, the count in pack §4 dated 2026-11-23.
Historical wall specimens
All superseded, recorded here as narrative with their dates (pack §4, read 2026-11-23):
- At the tool-call audit dated 2026-11-05, cline-pass was BLOCKED-BY-WALL with a wall to 2026-11-06T01:22Z, opendesign to 2026-11-10T12:02:21Z, and muse-direct to 2026-11-09T00:00Z (registry audit, dated 2026-11-05, read 2026-11-23).
- OpenAI main produced an unplanned mid-window reset on 2026-10-29: weekly 46% to 23% with the reset label unchanged (registry, read 2026-11-23). Standing note in the registry, read 2026-11-23: a closed pool reopens earlier if a fresh measurement shows it dropped below 100%; the labelled reset is never assumed to be the real reset for this door.
The doctrine
- Burn to 100% at the reset. “Use every pool all the way to 100%” (Drew, 2026-10-27, registry, read 2026-11-23). Pools reach 100% at their reset; at a known 100% the pool is closed until its reset or a fresh read shows it below 100% (registry, read 2026-11-23). Some providers reset early; OpenAI does at times (registry, read 2026-11-23).
- Never funds. Plan quotas only (POOL MAP, read 2026-11-23): “A 402/quota error is a wall, never a fallback to balances or PAYG. At most ONE retry on the same pool… When every plan is walled, the session STOPS.” (POOL MAP, read 2026-11-23). The three TEMPORARY pay-as-you-go tails in The plans we use (rows 25–27, read 2026-11-23) are Drew’s dated exception, ordered 2026-11-23 13:20 CST and TEMPORARY until he lifts the order (read 2026-11-23); the exception is not a repeal of the rule (pack §2, read 2026-11-23).
- Measurement gate. No placement, switch or dispatch without a quota read at most 60 minutes old for that pool (registry and efficiency plan, read 2026-11-23). Burns over 1 hour re-check hourly and at every failover (registry and efficiency plan, read 2026-11-23). A book figure carries its read date in the same sentence for the same reason: a quota read older than 60 minutes does not gate a dispatch, and a dated book figure is a record of a read, not a state claim (pack §5, read 2026-11-23).
- Unmeasured and stale pools are stated as unmeasured and stale: two pools were unmeasured or stale at their freshest read dated 2026-11-23 (Claude, rate-limited gatherer, last measured 2026-11-23T03:00Z; Meta, no clean read for the new weekly window, freshest measurement 2026-11-21T04:45Z), and every statement in this chapter about their state on 2026-11-23 says so in its row (pack §5, read 2026-11-23).
- Burn by expiry, OpenAI last. “Burn the soonest-expiring pool first; OpenAI is the final reserve. Heavier models are justified when a reset nears and quota would otherwise expire — expiring quota only, never money.” (Registry, read 2026-11-23.) Effort guide rule 6, read 2026-11-23, states the same order: “OpenAI is the final reserve. Never drain it until every other pool is used up.”
- Walls scope to the narrowest true scope. Pool-level verdicts were abolished on 2026-11-07 (rule dated 2026-11-07 23:02 CST, read 2026-11-23); a wall benches a model or a provider, not a pool. The full record is in Pools, routes and the switchboard and in Benchmarks and real-use evidence entry B7.
- Free-first ordering interacts with walls in one recorded way in the pack dated 2026-11-23: the free/paid alias split (entry B3, dated 2026-11-23) keeps a paid-side wall from benching free models on the same credential source (read 2026-11-23).
The losses that produced the measurement gate are measured in Benchmarks and real-use evidence entry B15 (recorded 2026-10-25, read 2026-11-23).
Sources. LLM evidence pack, ~/workspace/pm-book/survey/llm-evidence.md §4 and §5 (assembled 2026-11-23), and the sources the pack names for §4: REG (provider-quota-registry.md, cycle 471 gatherer measured 2026-11-23T12:15Z, read 2026-11-23), EFF (model-efficiency-plan-2026-10-25.md, dated 2026-10-25), GUIDE (provider-model-effort-guide.md, read 2026-11-23), I13677 (developing-today/code issue #13677 and its 15 comments, read 2026-11-23).
Costs and monthly usage
This chapter is the light cost record for the estate: the shape of the money, the totals the sources carry, and the latest dated usage reads. It keeps two buckets separate from the first section to the last — plan and included usage in one bucket, pay-as-you-go in the other — and it never mixes them. Every figure carries the date its source was read, in the same sentence or the same table row. No figure in this chapter is current. A figure with an old read date is labelled stale with its age. The plan inventory itself, with its fees and windows, is in The plans we use; this chapter does not repeat that detail.
The shape of the money
The estate’s spend comes in two shapes, and the fleet’s rules treat them as different kinds of money:
- Plan and included usage. Fixed-fee plans carry an included allowance metered in windows — a weekly window, a 5-hour window, a monthly bucket. Work burns the allowance, not cash. When a window reaches 100% the pool is closed until its reset; nothing bills past the wall. The monthly usage table below is this bucket.
- Pay-as-you-go. Metered spend against a balance, charged per use. The standing rule for supervised sessions is never funds: a quota or funds error is a wall, never a fallback to a balance (POOL MAP, registry, read 2026-11-23). The dated exceptions to that rule, and the one standing reserve, are in the pay-as-you-go section below — kept separate, as the rule requires.
Turso and Cloudflare Workers sit in the first shape: each is a plan with an included allowance, and their sections below record the plan, the estate’s measured usage against it, and nothing finer.
Turso
The estate’s databases sit on Turso’s Scaler plan (plan named in the #13844 audit record, read 2026-11-23). The #13844 Turso audit measured the estate on 2026-11-23 (live Turso API inventory read 2026-11-23 at 23:05Z, audit merged through PR #13845): 50 databases, ~65.8M rows written, ~7.47B rows read, and ~10.0 GB stored per period (audit, read 2026-11-23). The settled estate list confirms the count: a live turso db list on the laptop on 2026-11-23 returned exactly 50 databases (lane TURSO-SETTLE, 2026-11-23). The full estate is enumerated in Data stores: the Turso estate.
Two stores dominate the two meters. On reads, the audit attributes the estate’s read volume to fleet-queue, the queue broker’s core store: 81% of all reads (6.08B rows read), driven by the broker and its pollers (audit, read 2026-11-23; the read-driver attribution is disagreement D40, and the audit’s attribution is the one this book follows). On writes, fleet-platform, the PM and dashboard plane store, takes 87% of the estate’s writes (coverage ledger Table B, census date 2026-11-23).
The D1 migration’s cost logic is one paragraph in the audit’s programme (#13844): moving the fleet-platform families to Cloudflare D1 removes the estate’s dominant write load from Turso, and the audit’s downgrade path runs from there — a Turso plan downgrade gated on the programme’s G1–G3 work plus the G4 read-shape fix (#13844 issue body, read 2026-11-23). At the audit’s own record the programme is research and design only; no migrations have been made (issue-map snapshot, 2026-11-23). This chapter records the path and does not re-argue it.
Cloudflare Workers
The coverage ledger carries 24 worker rows after the D17 correction (coverage ledger, corrected 2026-11-23), and the reconciled arithmetic (D41) is: 24 ledger rows = 21 true Workers + the exec door (a tunnel ingress, not a Worker) + the pm-aggregator (a laptop service, not a Worker) + the dashboard row (a duplicate — the dashboard IS the aggregator UI; its only Worker, pm-console-edge, is a separate row). The 21 true Workers are: the security.cab door Workers, 2 (desktop-commander, mcpx); the PM Workers, 4 (decision-events, voice-line, pm-notify, pm-console-edge); the covered three, 3 (atlas-search, id-hosted-worker, message-bridge); the fleet Workers, 2 (fleet-hosted, queue-transport-alert); the ID Workers, 3 (mail, id-worker-poc, id-d1-journal-poc); the remaining PM-assigned Workers, 5 (pkarr, lab-ops-hub, cf-container-hello, muse-agent-handoff, github-ci); and the two D17 additions, 2 (cold-store-rehydrator, developing-today-backup). The per-Worker record is in The workers.
The quota shape is the Workers Paid plan’s included monthly allowance: 10M requests and 30M CPU-ms per month (quota view summary, from records dated 2026-10-20, read 2026-11-23). One dated usage read exists in the sources for this chapter: the laptop collector’s first live read, dated 2026-10-29 at 10:04Z, recorded 75,312 requests and 126,527 CPU-ms for the current cycle at that date (quota view, dated update 2026-10-29) — 25 days stale at this chapter’s date (2026-11-23), and stated here as a dated read, not a current figure. No fresher Workers usage figure exists in the sources. The live numbers live in the aggregator’s cloudflare-quota-export (survey apps.md §27, census date 2026-11-23), which exports Cloudflare quota and usage into the quota system on its timer; a reader who needs the current cycle reads it there.
LLM monthly usage across the core quotas
One row per pool. The governing read is the registry cycle 471 gatherer, measured 2026-11-23T12:15Z; at pack assembly (2026-11-24T00:40Z) that read was 12.4 hours old (evidence pack §4, read 2026-11-23). Rows whose own measurement is older carry that date and its age in the row. Wall states in full are in Walls, resets and quota doctrine.
| Pool / plan | Included quota shape | Latest dated usage read (date and age) |
|---|---|---|
| OpenAI plan (two doors, one pool) | Weekly window, 168h (plan-facts, read 2026-11-23) | Alt door weekly 100%, resets 2026-11-23T18:49Z; main door weekly 59%, resets 2026-11-24T21:23Z (registry cycle 471, measured 2026-11-23T12:15Z; 12.4 hours old at pack assembly, 2026-11-24T00:40Z) |
| Claude Max | Plan windows 5h and 7d, plus a dedicated Fable 7d window metered separately (plan-facts, read 2026-11-23) | Unmeasured at the governing read: gatherer state error at cycle 471, measured 2026-11-23T12:15Z (the Claude plan’s state differs across sources — the gatherer error against the last measurement below — which is disagreement D42). Last actual measurement 2026-11-23T03:00Z carried 5h 100% (past its 04:50Z reset on 2026-11-23) / 7d 32% / Fable 28%, resets 2026-11-25T19:00Z — carried figures, not state (read 2026-11-23) |
| Meta Muse API High Usage (one pool) | Token quota, weekly reset (plan-facts, read 2026-11-23) | Stale: freshest measurement 2026-11-21T04:45Z read weekly 100% resetting 2026-11-23T00:00Z, a reset time past at pack time (2026-11-23); the new window’s first clean read had not landed at cycle 471 (read 2026-11-23) |
| OpenCode Go (four workspaces) | One shared bucket per workspace; windows 20%/5h and 50%/week of the bucket (verified 2026-10-27, read 2026-11-23) | drewrypope monthly 100%, resets 2026-12-03; popesdrew monthly 100%, resets 2026-12-03; developing-today-0 monthly 100%, resets 2026-12-08; 0x111dev 5h 64% / weekly 66% / monthly 83%, monthly resets 2026-12-18 (registry cycle 471, measured 2026-11-23T12:15Z; 12.4 hours old at pack assembly) |
| ClinePass | Windows 5h rolling / weekly / monthly (read 2026-11-23) | Monthly 100% closed, resets 2026-12-06T14:40Z; weekly and 5h at 0% (registry cycle 471, measured 2026-11-23T12:15Z; 12.4 hours old at pack assembly) |
| Open Design Go | $10 per 5h and $30 per 7d rolling windows (efficiency plan, dated 2026-10-25) | 7d 100% closed, resets 2026-11-24T11:44Z (registry cycle 471, measured 2026-11-23T12:15Z; 12.4 hours old at pack assembly) |
| Command Code Go | $10 credits/mo included on the Go tier (plan-facts, read 2026-11-23) | Monthly 99.51% (registry cycle 471, measured 2026-11-23T12:15Z; 12.4 hours old at pack assembly) |
| Mistral Education | Two included allowances: API $15/mo and Vibe Code $150/mo, both resetting on the 1st of the calendar month (registry correction, 2026-11-05, read 2026-11-23) | API 100% and Vibe 100%, reset 2026-12-01 — measured 2026-11-16, 7 days stale inside the cycle 471 read itself (read 2026-11-23) |
| Antigravity | Per-family weekly fractions; the Gemini family and the Claude+GPT family wall independently (read 2026-11-23) | Gemini weekly 1.64% and Claude/GPT weekly 1.64%, resets 2026-11-30T01:41Z (registry cycle 471, measured 2026-11-23T12:15Z; 12.4 hours old at pack assembly) |
The free tiers and free catalogues in The plans we use (rows 15–23 and 28, verified 2026-11-23) carry no dated usage percentages in the sources; their shapes are recorded there and no usage figure is stated for them here.
Pay-as-you-go, separately
Pay-as-you-go is the second bucket, and it stays fenced. The standing rule is never funds (POOL MAP, read 2026-11-23), and the measured reason for the fence is dated: on 2026-10-25 a Meta plan burn spilled $20.00 plus $3.91, $23.91 in total, onto pay-as-you-go charges, with a third $20.00 charge on 2026-10-26 (registry, read 2026-11-23). Against that standing rule, the sources record one standing reserve and three TEMPORARY tails.
The standing reserve is DeepSeek direct (api.deepseek.com, balance-funded). Its role: the pay-as-you-go reserve for when every plan is used up — never a routine route and never an agent default (registry provider facts, read 2026-11-23). Routine DeepSeek comes from plan routes (ClinePass, Open Design, OpenCode Go). Its one dated balance read in the sources is ¥43.82 (registry cycle 404, dated 2026-11-10) — 13 days stale at this chapter’s date (2026-11-23), recorded as visibility only.
The three TEMPORARY tails are Drew’s dated exception, ordered 2026-11-23 13:20 CST and TEMPORARY until he lifts the order (standing-rules record, read 2026-11-23). Each tail sits last in its pool, behind every plan and free leg, and exists to catch fall-through traffic only after the included allowances are spent:
- DeepSeek direct pay-as-you-go — added last in the DeepSeek pool (order, 2026-11-23). This is the standing reserve door above, seated as a tail for the duration of the order.
- Claude pay-as-you-go Haiku, low — added last in the Claude pool (order, 2026-11-23).
- OpenAI pay-as-you-go Luna, low — added last in the OpenAI pool (order, 2026-11-23).
No other pay-as-you-go balance is stated in this chapter: the sources date-stamp no balance for the Claude or OpenAI tails, and none is given here.
Plans exist
Some of the arrangements behind the table above are student plans. ChatGPT and Mistral are the named examples (registry rows, read 2026-11-23). This chapter states that those arrangements exist and records nothing further about them — no terms, no conditions, no dates — by the book’s standing presentation rule for this chapter. The plan inventory, at the level the book covers it, is in The plans we use.
Sources. LLM evidence pack, ~/workspace/pm-book/survey/llm-evidence.md §1 and §4 (assembled 2026-11-23), and the sources the pack names: REG (provider-quota-registry.md, cycle 471 gatherer measured 2026-11-23T12:15Z, read 2026-11-23), FREE (free-census-2026-11-23.md, dated 2026-11-23); the #13844 Turso audit (live Turso API read 2026-11-23 at 23:05Z, merged through PR #13845) as recorded in ~/workspace/pm-book/coverage-ledger.md Table B and the gap summary (census date 2026-11-23) and ~/workspace/pm-book/turso-estate-list.md (settled 2026-11-23); PM-SURVEY survey file apps.md §27 (census date 2026-11-23); the stewardship quota view (quota-view.md, built 2026-10-25; Cloudflare collector update dated 2026-10-29; its older OpenAI main fee record, $100/mo from records dated 2026-10-20, is superseded by the registry’s $200/mo record dated 2026-11-10 and is not used in this chapter).
LLM plans: prioritised list
This list holds the open decisions and next steps named in the evidence pack assembled 2026-11-23. Order is priority order as recorded in this chapter on 2026-11-23: a hard dated expiry first, a verification item open in substance second, two provider dispositions third and fourth, a source-integrity item fifth, and a brief-named item with no pack entry sixth. Each item carries its dates from the pack dated 2026-11-23. State behind each item is in The plans we use, Benchmarks and real-use evidence and Walls, resets and quota doctrine.
The list
- Rotate the EXAONE free key before it dies on 2026-12-16. Why: the current key was issued 2026-11-16 on a 30-day platform key and expires 2026-12-16 (issue #13677 comment, read 2026-11-23); the one-shot check
exaone-key-rotation-checkfires Thu 2026-12-10 at 10:40 CST (arranged 2026-11-23, read 2026-11-23), and the rotation procedure is recorded in the pack dated 2026-11-23. - Close the OpenRouter verification in substance: obtain one verified OpenRouter-served completion through the route (D27). Why: the probe recorded 2026-11-24T00:22Z (2026-11-23 18:22 CST, read 2026-11-23) completed through the route with no completion served by an OpenRouter :free model; one completion was served by
claude-payg/claude-haiku-5-5and the other by_muse/muse-spark-1.3-contributor(read 2026-11-23), the verdict recorded on the issue is NOT closed in substance (read 2026-11-23), and the probe attempt budget of 2 attempts is spent (read 2026-11-23). - Decide LongCat: wire the direct platform as cheap paid, or drop it (D25). Why: disposition awaits Drew’s decision in the pack dated 2026-11-23 (read 2026-11-23); no recurring free tier exists to wire (docs fetched 2026-11-23), current pricing is $0.30/1M uncached input and $1.20/1M output at a limited-time discount for LongCat-2.5 (docs fetched 2026-11-23), and signup needs Meituan mobile plus SMS plus real-name authentication (docs fetched 2026-11-23).
- Leave SambaNova dark: keep the provider defined and seated nowhere (D24). Why: every completion in the probes dated 2026-11-23 returned HTTP 402
PAYMENT_METHOD_REQUIREDat balance 0 (read 2026-11-23); SambaNova’s plans page (fetched 2026-11-23) states the Free plan requires a payment method and a credit purchase, and adding a card makes the account a paid account from the first request (read 2026-11-23). No card action is recorded in the pack dated 2026-11-23. - Resolve the registry merge-conflict marker in the reconciliation section (D28). Why: the registry file as read on 2026-11-23 contains an unresolved merge-conflict marker pair in its reconciliation section (observed 2026-11-23, pack §5, read 2026-11-23); figures quoted from that one section require a check against the two dated runs the section contains (pack §5, read 2026-11-23), and the registry is the source for the plan facts in The plans we use (transcribed 2026-11-23, read 2026-11-23).
- Metering wall, issue #13839 as named in the writing brief for this chapter (brief dated 2026-11-23). Why it sits last and flagged: the evidence pack assembled 2026-11-23 contains no entry under the number #13839 (checked 2026-11-23 against the full pack dated 2026-11-23); the pack’s metering record is the measurement gate and its losses (entry B15, recorded 2026-10-25, read 2026-11-23) and the metered validation suites at 77/77 in PRs #13836/#13838 dated 2026-11-23 (entry B14, read 2026-11-23). A pack entry for #13839 is a gap to fill before this item carries pack evidence; the gap is recorded in the lane report dated 2026-11-23.
Standing re-checks behind the list
- Quota figures rot in hours (pack §5, read 2026-11-23): the governing read for the wall table was 12.4 hours old at pack assembly on 2026-11-23 (read 2026-11-23), and the fleet rule bars a dispatch on a read older than 60 minutes (pack §5, read 2026-11-23). Re-read before any citation of state.
- Tier membership rots in days (pack §5, read 2026-11-23): the deployed config grew from 244,128 bytes at the cycle 471 canonical read dated 2026-11-23 to 279,445 bytes on the laptop at 17:10 CST on 2026-11-23 (read 2026-11-23). Re-run the three bounded greps named in the pack dated 2026-11-23 (switchboard list, tier keys, plan-pool list) before citing membership.
- Free-tier claims rot at the provider’s pace (pack §5, read 2026-11-23): SambaNova and LongCat each had a published free tier withdrawn while docs dated 2026-11-23 still described one (read 2026-11-23). A free-tier claim older than the census date 2026-11-23 requires a live probe, not a docs read (pack §5, read 2026-11-23).
Sources. LLM evidence pack, ~/workspace/pm-book/survey/llm-evidence.md §1 rows 21, 29 and 30, §3 entries B6, B14 and B15, §4 and §5 (assembled 2026-11-23), and the sources the pack names for those sections: REG (provider-quota-registry.md, read 2026-11-23), FREE (free-census-2026-11-23.md, dated 2026-11-23), I13677 (developing-today/code issue #13677 and its 15 comments, read 2026-11-23), LAPTOP (deployed opencode.jsonc, read 2026-11-23 18:41:54 CST).
Repository layout
The PM stack lives in one repository, developing-today/code. Its application tree is pm-stack/ at the repository root. Its Nix packages are four directories under pkgs/. This book lives inside the subject tree, at pm-stack/book/ with its configuration at pm-stack/book.toml. A change to the stack and the change to this book land in the same repository, in the same pull request. See Keeping this book current.
The subject tree: pm-stack/
pm-stack/ holds the services, the Workers, the operator scripts, the unit files, the design corpus for the stack, and this book. The deployment definition is pm-stack/README.md; the port registry is pm-stack/PORTS.md (audited 2026-11-05). One nixos-rebuild switch on laptop host amd deploys the stack; the NixOS module that declares the main user units is nixos/services/pm-stack in the same repository, outside pm-stack/ itself.
The 36 components the survey counted in pm-stack/ are the layout guide for the tree. The count is 36 sections (§1–§36 in the survey): every subdirectory named in the programme brief, plus the subdirectories and loose scripts present in the tree that the brief did not name.
Core services
| Directory | What lives there |
|---|---|
pm-stack/aggregator/ | The dashboard. A Bun app: about 180 modules in src/ (pages, health, quota, decisions, prompts, alerts, sources), producer and maintenance scripts in scripts/, opencode-tools/, unit files in systemd/, and its test suite in test/. Port 4870, unit pm-aggregator |
pm-stack/console/ | The phone and owner app. A Bun server in src/, the single-page app in public/, the edge Worker in edge/, the Android wrapper in android/, and its tests in test/. Port 4872, unit pm-console. No Nix package exists for the console; see the packages table below |
pm-stack/projector/ | The projector and link registry. A Bun service: webhook intake, reconcile, the link registry, SQL schema in schema.sql, tests in test/. Port 7801. See The projector and projections |
pm-stack/dispatch/ | pm-dispatch. A Bun intake service in src/, a worked caller example in examples/, tests in test/. Port 4879, public as dispatch.security.cab |
Integrated external apps
Each integrated app keeps its own directory, with its own compose file, seed, and deploy script. The stack did not write these applications; it configures and reads them. See The Kaneo sync and the other PM apps.
| Directory | App | Port |
|---|---|---|
pm-stack/ root: compose.yml, kaneo-projects.json, connect-repo.sh | Kaneo, the execution board, with its Postgres 16 sidecar. The compose file pins the upstream image v2.47.0 by digest; the fork is not the deployed image (D1) | 5173 |
pm-stack/grist/ | Grist, the roadmap tables: compose.yml, seed/, seed.sh, deploy.sh, choice-option sync tooling. Its compose file pins by digest with no tag; the README’s v1.7.21 for that digest is UNVERIFIED (D2) | 8484 |
pm-stack/pad/ | Pad, the planning layer: compose.yml, seed plans in seed/. The aggregator reads no Pad planning data (D3) | 7777 |
pm-stack/ready-for-agent/ | ready-for-agent, the dispatch UI layer: config.json, install.sh, apply-config.sh, unit files in systemd/ | 6056 |
Workers and the platform registry
| Directory | What lives there |
|---|---|
pm-stack/decision-events-worker/ | The decision-events Worker: src/, schema.sql, test/, wrangler.toml. In service, deployed by hand |
pm-stack/voice-line-worker/ | The voice-line Worker: src/, test/, wrangler.toml. In service |
pm-stack/notify-relay/ | The pm-notify relay Worker: src/, test/, wrangler.toml. Recorded in the registry as not deployed, address null (D5) |
pm-stack/console/edge/ | The pm-console-edge Worker, inside the console tree rather than at the top level. Deployed from Actions |
pm-stack/platform/ | Not a service. The Workers registry: workers.json (20 Workers, checked 2026-11-23), its README, and workers.test.ts, which holds the list to the repository’s wrangler files. The README’s count of eighteen is stale (D6) |
Execution, guards, and monitors
| Directory or file | What lives there |
|---|---|
pm-stack/opencode-claimant/ | The OpenCode claimant lane: claimant.py, launch_one.py, poll.py, migrations, and a large test suite. See The claimant: keeping sessions honest |
pm-stack/opencode-scheduled-jobs/ | Scheduled OpenCode jobs: jobs.json and the one pilot job, quota-freshness-summary |
pm-stack/opencode-usage-export/ | The usage exporter that reads the OpenCode session store |
pm-stack/lane-guard/ | lane_guard.py: deterministic ownership and park-note checks for queue lanes, with tests |
pm-stack/health-hooks/ | Failure-triggered, read-only troubleshoot-and-report hooks: run.py and its wrappers |
pm-stack/fleet-monitor/ | Two report-only Python monitors, with tests |
pm-stack/kaneo-sync-guard.py | Loose script at the pm-stack/ root: asserts and heals the Kaneo GitHub integration’s status transitions |
pm-stack/closure-watchdog.py | Loose script: reopens automation closes that break the sub-issue invariant. Its scheduler is a Muse sandbox cron job, outside the laptop stack |
pm-stack/invariant-sweeper.py | Loose script: the slow-cadence sweep for closed-with-open-children, open-with-done-status, and Kaneo–GitHub mismatch |
pm-stack/host-health-collector.py | Loose script: writes the host-health snapshot the aggregator reads, on a 5-minute timer |
Quota, usage, and exporters
| Directory | What lives there |
|---|---|
pm-stack/exporters/ | The browser-dependent quota watchdog core. The only adapter present is a synthetic fixture; live per-provider production use is UNVERIFIED |
pm-stack/cloudflare-export/ | cloudflare-quota-export.mjs with service and timer units |
pm-stack/meta-exporter/ | meta-quota-export.mjs with service and timer units |
pm-stack/provider-usage/ | check-usage.py and reconcile.py: the provider and fleet snapshot a failover job consults |
pm-stack/quota-check/ | One helper, turso-mirror-read.py: per-database libsql HTTP reads of the fleet-platform and fleet-mirror stores |
pm-stack/scheduled-history/ | collect.py and watchdog.py: the reconciler for OpenChamber scheduled-task runs |
Contracts, ledgers, and shared state
| Directory | What lives there |
|---|---|
pm-stack/shared-schema/ | The shared-store contract layer: ORCHESTRATION.md, the orchestration writer, migrations/, and its tests. See The shared schema |
pm-stack/external-comms/ | The external-comms ledger and pusher: SQL migrations, the record CLI, the pusher unit files, and its quarantine test |
Operator scripts, units, and smoke tooling
| Directory or file | What lives there |
|---|---|
pm-stack/scripts/ | Operator scripts: pm-git-sync.sh, kaneo-cutover.sh, fence-check.sh, restore-rehearsal.sh, and their shell test suites |
pm-stack/systemd/ | Unit files for the aggregator, console, dispatch, and tunnel, plus timers for host health, the invariant sweeper, the Kaneo sync guard, the quota watchdog, and the console expose, redeploy, and Android-release jobs. Which of these copies are installed as-is and which the NixOS module renders is UNVERIFIED |
pm-stack/private-laptop-bridge/ | Cloudflare-side bridge smoke tooling and its tests. The production surface it serves beyond smoke tests is UNVERIFIED |
pm-stack/tests/ | The stack-level Python suites: test_kaneo_sync_guard.py, test_closure_watchdog.py, test_host_health_collector.py, test_invariant_sweeper_timeouts.py |
pm-stack/docs/ | A directory the survey did not enumerate in detail; its last commit in the survey window is 2026-11-18, and its content is UNVERIFIED. The stack’s design corpus lives at the repository root’s doc/ and as loose documents at the pm-stack/ root, not here |
Loose documents and configuration at the pm-stack/ root
The root of pm-stack/ carries the stack’s own record: README.md (deployment definition), PORTS.md (port registry), compose.yml, deploy.sh, connect-repo.sh, github-app-manifest.json, BOOTSTRAP-CREDENTIALS.md, COLD-RESTORE-RUNBOOK.md, KANEO-GITHUB-SYNC.md, kaneo-projects.json, and the design documents the development chapters synthesise: design-register-2026-11-11.md, design-tracking-manifest-2026-11-11.md, lineage-manifest-2026-11-12.md, design-reprioritization-2026-11-12.md, SHARED-SCHEMA-MAP.md, SHARED-SCHEMA-MIGRATION-PLAN.md, STORE-MIGRATION-PLAN-6816.md, decisions-ledger-system.md, needs-user-actions-design-2026-10-26.md, and project-tracking-evaluation-2026-10-23.md. See PM stack research and implementation roadmap.
The Nix packages: pkgs/pm-*
Four packages under pkgs/ wrap pm-stack/ sources as Nix derivations. Since the change recorded as #8171, every PM-stack app in this set is a Nix derivation; the units no longer run bun run out of the checkout.
| Package | Wraps | Notes |
|---|---|---|
pkgs/pm-aggregator/package.nix | pm-stack/aggregator/ | One package, four entry points: the server plus the quota gatherer, the digest generator, and the Turso-store exporter. The fleet-feed collector is not wrapped here; its unit runs it from the checkout because it derives repository-root paths from its own file location. The package bundles pm-stack/kaneo-projects.json and pm-stack/grist/seed/roadmap.json |
pkgs/pm-projector/package.nix | pm-stack/projector/ | The projector service |
pkgs/pm-dispatch/package.nix | pm-stack/dispatch/ | The dispatch service |
pkgs/pm-git-sync/package.nix | pm-stack/scripts/pm-git-sync.sh | A script wrapper, version 0.3.0 in the surveyed tree |
There is no pkgs/pm-console. The console deploys through pm-stack/console/install.sh and redeploy.sh and through its edge and Android release paths. Whether the NixOS module builds the console by another route is UNVERIFIED.
This book: pm-stack/book/
The book lives with its subject. pm-stack/book.toml is the mdBook configuration; pm-stack/book/ holds SUMMARY.md and the section folders — getting-started, concepts, reference, tutorials, library, development, operations — in the shape of the fleet book at pkgs/fleet/book/ with pkgs/fleet/book.toml. This chapter is pm-stack/book/development/layout.md in the landed tree.
Two placement facts belong in this chapter because other records state them wrong. The programme issue #13900 as filed, and the coverage ledger’s summary table, place this book at pkgs/pm-stack/docs/. The coordinator correction of 2026-11-23, verified against the exemplar books on main, places it at pm-stack/book/. The correction wins; the ledger table is stale on this point (D15).
Neighbouring books keep the same shape in their own subject trees: the fleet book at pkgs/fleet/book/, the Atlas book at pkgs/atlas-search/book/, the ID book at pkgs/id/book/. The mcpx book at pkgs/mcpx/docs/ is the older exception.
Where the rest of the stack’s record lives
doc/at the repository root: the dated design-record corpus, including the canonical PM-stack design of 2026-10-24 and the Turso-to-D1 migration audit of 2026-11-23. See Project Management: prioritised issue map and dependency map.nixos/services/pm-stack: the deploy-time declaration of the main units..github/workflows/: the build and test workflows, includingpm-stack-tests.ymlandpm-aggregator-tests.yml. See Building and testing.- GitHub Project #4, “Developing Today”: the portfolio record the aggregator reads. It is data the stack consumes, not a directory in this repository.
Sources. Survey file ~/workspace/pm-book/survey/apps.md (§1–§36 and the Nix packages summary); ~/workspace/pm-book/survey/disagreements.md (D1, D2, D3, D5, D6); ~/workspace/pm-book/coverage-ledger.md; ~/workspace/pm-book/placement-correction.md; repo paths pm-stack/, pm-stack/README.md, pm-stack/PORTS.md, pkgs/pm-aggregator/package.nix, pkgs/pm-dispatch/, pkgs/pm-projector/, pkgs/pm-git-sync/, read on the laptop clone at 44aaf73 for the package list.
Building and testing
The PM stack has no single build command. Each Bun application builds and tests inside its own directory; the Nix packages wrap three applications and one script for deployment; and one workflow, .github/workflows/pm-stack-tests.yml, runs the stack’s suites together. This chapter states each route as the repository records it. A route this chapter cannot ground in a package file, a package definition, or a workflow is marked UNVERIFIED.
The Bun applications
The aggregator, the console, the projector, and pm-dispatch are Bun applications. Each carries a package.json in its own directory, and the test command is the same shape in each: install inside the directory, then run the suite there.
Aggregator
pm-stack/aggregator/package.json (name pm-aggregator-ui, version 0.1.0) records the scripts:
Command, run in pm-stack/aggregator/ | What it does |
|---|---|
bun run dev | Runs src/server.ts with PM_AGG_DEV=1 |
bun run start | Runs src/server.ts |
bun test | The test suite: the test/ directory’s *.test.ts files (the test script is bun test) |
bun run typecheck | bunx tsc --noEmit against tsconfig.json |
bun run build:css | Builds src/assets/app.css from src/ui.css with the Tailwind CLI. The built CSS is checked in; the Nix package treats the Tailwind and TypeScript dev-dependencies as build-time-only for that checked-in artifact |
bun run provenance:check | The provenance-matrix check, scripts/check-provenance-matrix.ts. CI runs this as its own job |
bun run contract:check | The contract-corpus check, scripts/check-contract-corpus.ts |
The remaining scripts are data jobs, not builds: the report generator, the quota-forecast backtest, the quota-anomaly replay, the reweight-proposal and weekly-review producers.
Console
pm-stack/console/package.json (name pm-console, version 0.1.0) records two scripts: bun run start runs src/server.ts, and bun test runs the suite in pm-stack/console/test/ — view, work, plan, platform, push, device, sign-in, outbox, and edge tests among them. The console’s type-check tooling installs separately in the edge tree: the stack workflow runs npm ci in pm-stack/console/edge/ for that step. The Android wrapper’s sign-and-release script carries its own shell suite, pm-stack/console/android/release-built.test.sh, which the stack workflow runs as a named step.
Projector and pm-dispatch
Both follow the aggregator’s shape: bun install --frozen-lockfile inside the directory, then bun test. The projector’s suite is in pm-stack/projector/test/; the dispatch suite is in pm-stack/dispatch/test/ (16 files in the tree read for this chapter, including the launch-failure compensation pins). The stack workflow asserts the dispatch test directory exists and holds *.test.ts files before running it, so a green run cannot be a silently skipped suite. That assertion pattern — name the file, assert it exists, fail the job if it does not — repeats for every suite the workflow adopted after the suites were found running under no workflow at all.
The Workers
Each Worker directory carries its own package.json, tsconfig.json, and wrangler.toml, and the surveyed Workers carry their own test directories: pm-stack/decision-events-worker/test/, pm-stack/notify-relay/test/, pm-stack/voice-line-worker/test/. The console edge Worker is the fourth: its tests sit in pm-stack/console/test/ (the edge and direct tests). The exact per-Worker test command beyond the console edge’s is UNVERIFIED in the sources this chapter grounds on; read the Worker’s own package.json before running it.
One registry test stands apart. pm-stack/platform/workers.test.ts holds pm-stack/platform/workers.json to the repository’s wrangler files: a Worker added to the repository without a registry entry, or a registry entry with no wrangler file behind it, fails that test. The stack workflow runs it in the pm-stack/platform/ directory. The registry lists 20 Workers; its README’s count of eighteen is stale (D6).
The Python and shell suites
The stack’s non-Bun components test in Python and shell, and the stack workflow names each suite explicitly:
| Suite | Runner, as the workflow records it |
|---|---|
pm-stack/tests/ — Kaneo sync guard, closure watchdog, host-health collector, invariant-sweeper timeouts | Python unittest discovery over pm-stack/tests/, per named file |
pm-stack/opencode-claimant/ — claimant, poll, launch, handoff, batch dispatch, babysitter, nudges suites | Python unittest, per named file; the claimant install suite is a Bun suite (test/install.test.mjs, run with bun test) |
pm-stack/grist/test_update_choice_options.py | Python unittest, named explicitly |
pm-stack/lane-guard/test_lane_guard.py | Python unittest, named explicitly |
pm-stack/external-comms/test_push_quarantine.py | Python unittest, named explicitly |
pm-stack/fleet-monitor/, pm-stack/scheduled-history/, pm-stack/provider-usage/, pm-stack/health-hooks/, pm-stack/shared-schema/ | Each directory carries its own Python tests in the tree. Which of these the stack workflow runs is UNVERIFIED from the workflow sections read for this chapter; run them in their own directories |
pm-stack/scripts/fence-check.test.sh and pm-stack/scripts/kaneo-cutover.test.sh | Shell suites for the store-migration fence and cutover gate. See PM stack research and implementation roadmap |
pm-stack/scripts/tailnet-bindings.test.sh | Shell suite pinning the Pad and Grist tailnet bindings. The workflow fails the job if the suite reports SKIP, because a skip means the pin did not run |
Quota exporter suites: pm-stack/opencode-usage-export/, pm-stack/cloudflare-export/, pm-stack/meta-exporter/ | Node test suites. The workflow records that the usage-export suite needs Node 24, because it imports node:sqlite |
The Nix build
Deployment builds the packages, not the checkouts. Since the change recorded as #8171, the PM-stack units no longer run bun run out of the working tree; nixos-rebuild switch on host amd builds and activates the derivations declared in nixos/services/pm-stack. See Repository layout for the four packages and Running the stack as services for the running form.
pkgs/pm-aggregator/package.nix shows the build shape the other packages follow in substance: the derivation takes its version from pm-stack/aggregator/package.json; its source fileset is the package file, the lockfile, src/, and scripts/; a fixed-output derivation runs bun install once with network access and the application derivation copies the resulting node_modules in beside the source. One entry point is deliberately not packaged: the fleet-feed collector derives repository-root paths from its own file location, so its unit keeps running it from the checkout. The exact nix build attribute names for the four PM packages are UNVERIFIED in the sources read for this chapter; the flake is the authority.
The console has no Nix package. Its build and release route is its own scripts (install.sh, redeploy.sh, the edge deploy, and the Android release units), not a derivation. Whether the NixOS module builds the console by another route is UNVERIFIED.
The CI route
CI in this repository runs on main only; pull requests merge without CI and verification lands on the main-branch push. Two workflows carry the PM stack:
.github/workflows/pm-stack-tests.yml— the stack suite. It runs onworkflow_dispatchand on a nightly schedule (17 7 * * *), not on every push, per the repository’s nightly-main-CI policy recorded in the workflow header. Its jobs: a provenance job (the aggregator provenance matrix, 5-minute timeout) and a test job (20-minute timeout) that installs and tests the aggregator, the projector, and pm-dispatch with Bun; installs the console edge’s type-check tools with Node 24; runs the platform registry test; and then runs the named Python and shell suites above, each asserted to exist before it runs..github/workflows/pm-aggregator-tests.yml— a second aggregator workflow exists in the tree. Its trigger and job shape are UNVERIFIED from the sources read for this chapter.
Worker deployment has its own workflows outside these two: the console edge deploys from Actions per the platform registry, and the message-bridge Worker deploys by message-bridge-deploy.yml. The decision-events Worker is deployed by hand, per the registry. The per-Worker deploy triggers are UNVERIFIED beyond those registry statements.
What a green run proves, and what it does not
A green pm-stack-tests run proves the named suites passed on the runner at that commit. It does not prove a service is running: the survey’s ground rule holds for this chapter — a last-commit date or a passing suite is evidence of repository activity, not of a live process, and runtime liveness is UNVERIFIED unless a dated record states it. The stack’s live health evidence is the aggregator’s own health page and its twin, not CI. See The aggregator website, page by page.
Sources. Repo files read on the laptop clone at 44aaf73: pm-stack/aggregator/package.json, pm-stack/console/package.json, .github/workflows/pm-stack-tests.yml, pkgs/pm-aggregator/package.nix; survey files ~/workspace/pm-book/survey/apps.md (§5–§7, §10, §11, §13, §26, §33, §36 and the Nix packages summary) and ~/workspace/pm-book/survey/disagreements.md (D6).
Add a page or projection
Two extension points cover new read surfaces in the PM stack. A new dashboard page registers in the aggregator’s page manifest and renders from the aggregator’s one state. A new projection adds a read model in the projector, or a source reader in the aggregator, and the page consumes it. This chapter gives both procedures as the code is shaped today. Adding either surface changes a chapter of this book in the same pull request; see Keeping this book current.
Add a page
The manifest is pm-stack/aggregator/src/pages.ts. Its header states the mechanism: every dashboard page is a registered entry there; the navigation bar and the home-page dropdown render from this list, never hard-coded per view; and nothing else registers the page — nav, dropdown, and manifest are the same list. The header calls the recipe a ~30-minute recipe. The steps:
- Add one entry to
PAGESinpages.ts. An entry is aPageDef:id,title,route,api(the page’s/api/*.jsontwin, when one exists),blurb,group, andnav. Thegroupvalue names one of the fourPAGE_GROUPSids in the same file:overview,work,ops,system. Thenavvalue isprimaryordropdown, under the #1497 curation recorded in the file: primary pages earn a top-nav slot; dropdown pages are reachable from the Pages dropdown and their drill-down parents. - Add the render function in
pm-stack/aggregator/src/render.ts. - Add the route branch in
pm-stack/aggregator/src/server.ts, plus the/apitwin route when the entry declares one. The twin serves the same assembly as the page; the health assembly behind/healthand/api/healthis the standing example of one assembly feeding both forms. - Wire the data. If the page needs data the aggregator does not already hold, add it to the
Sourceinterface inpm-stack/aggregator/src/source.ts, with a live reader and a fixture fallback. Live readers live inpm-stack/aggregator/src/sources/— one file per source (live.ts,projector.ts,ready-for-agent.ts,repo-roadmap.ts,opencode.ts). - Register any detail route. A page with a per-item detail form adds an entry to
SUBROUTE_PARENTSinpages.ts:name,prefix,parent. That entry puts the detail renders inside the #1147 render registry that/api/healthreports. A detail page missing from the map renders outside the registry — the decision-set detail page is the standing example of that gap (D8):/decisions/<setId>exists, its parent is/decisionsby navigation, andSUBROUTE_PARENTSdoes not list it, somanifestRouteFor("/decisions/…")returns null for it. - Test and document in the same change. Add the page’s tests under
pm-stack/aggregator/test/in the suite’s existing shape (see Building and testing), and update The aggregator website, page by page — that chapter is a 1:1 census of the manifest, so a new page without a new entry there leaves the book wrong.
Three manifest facts bound the recipe:
- The
apifield is not automatic. Three surveyed pages declare no twin. Thedecisionsentry is one of them, and the server nevertheless implements a decisions API —/api/decisions/<setId>/submit,/defer,/request-info,/events, and/api/decision-sets(D7). A manifest entry records the page’s declared twin; it is not the server’s route table. Checkserver.tsbefore stating that a page has no API. - A redirect is a manifest outcome, not a page.
/projectsis not a page: its manifest comment and its route branch redirect to the projects-pool section of/program, preserving the view parameters, while/api/projects.jsonstill serves. A merged page follows that shape — redirect entry in the manifest, machine twin kept. - The All pages page is the manifest rendered.
/pagesshows every registered view in one place. A correct entry appears there with no further work; an entry that does not appear there is not registered.
The console is a separate surface
A console view is not a manifest entry. Console views are the VIEWS map in pm-stack/console/public/app.js, served by pm-stack/console/src/server.ts under /console, with server-side data in pm-stack/console/src/ (work.ts, ops.ts, plan.ts). The surveyed console has 21 hash views. Adding one is a console change — view function in app.js, data and actions on the server side, tests in pm-stack/console/test/ — and it updates The console, view by view in the same change. Do not register a console view in pages.ts, and do not register an aggregator page in VIEWS.
Add a projection
A projection is a derived read model: data reshaped from a source of truth the projection does not own. Two homes exist, and the choice is the first step of the procedure.
In the projector
The projector (pm-stack/projector/) is the stack’s projection service. Its contract, in its own README: it links and projects; it never becomes a fifth source of truth and never writes back to GitHub, Kaneo, Pad, or Grist. To add a projection there:
- State the source event or poll that proves each field. The projector’s rule is exact: a projection writes only what the event proves; an absent field proves nothing. Webhook intake is
POST /github/webhook(HMAC-checked, deduplicated by delivery GUID); reconcile polls insrc/reconcile.tsandsrc/cli.tsself-heal the projection beyond webhook delivery. - Add the storage. Projector storage is SQL: schema in
pm-stack/projector/schema.sql(thepmp_tables), read views in the same file (the standing views arepmp_v_links_itemsandpmp_v_subject_activity). Idempotent upserts key the writes. - Expose the read. The standing read shapes are
GET /items,GET /comments,GET /subjects/<subject>, and the link registryGET|POST|DELETE /links. A new projection follows those shapes or adds a route in the same style in the projector’s server. - Classify rebuildability before writing. The shared-schema map draws the line this step applies: the projector’s item and comment projections are rebuildable from GitHub;
pmp_links— the human- and agent-written subject-to-GitHub links — is the one non-rebuildable cross-service relationship in the projector schema, and it carries the registry backup legs for that reason. A new projection that stores a non-rebuildable relationship states that fact and its backup route in the same change. See The shared schema. - Consume it from the aggregator through its source reader. The aggregator reads the projector through
pm-stack/aggregator/src/sources/projector.ts(links and latest comments per subject). A projector projection the dashboard shows is wired there, under theSourceinterface, not read from the projector’s database by the aggregator directly. - Test in the projector’s suite (
pm-stack/projector/test/, run by the stack workflow) and update The projector and projections in the same change.
In the aggregator
A projection that only the dashboard consumes, over data the aggregator already polls, lives in the aggregator as a source reader plus a derived view:
- Add the reader as a file in
pm-stack/aggregator/src/sources/, registered on theSourceinterface with a live reader and a fixture fallback (step 4 of the page recipe). - Name the subject scheme. Aggregator items join on registry subjects:
gh:…,kaneo:<slug>/<id>,grist:<docId>/Roadmap/<recId>,session:…,orch:…. A projection over a new source states its subject form in the reader. - State the merge rule. Sources disagree, and the aggregator surfaces disagreement instead of hiding it: the
/conflictspage lists every live source disagreement with both values and its age. A projection that merges two sources states which value wins and where the losing value shows. The roadmap merge is the standing example: on a title collision between a repository roadmap file and a Grist row, the repository file wins, the Grist duplicate is noted in provenance, and its links are unioned in (#1738). - Record provenance. Every aggregator surface carries a provenance string stating whether its data is live and from which source. A new projection produces one; the provenance-matrix check (
bun run provenance:check) is part of the test route.
What neither procedure does
Neither procedure creates a new source of truth inside the stack. The aggregator reads its sources; the projector links and projects; Project fields have one writer, the orchestrator, and a dashboard status change travels as a status-request action for the orchestration pass to apply. A change that needs a new durable store is a shared-schema change, not a page or projection change; it starts from The shared schema and the store record in the reference part’s data-stores chapter.
Sources. pm-stack/aggregator/src/pages.ts (file header, PageDef, PAGE_GROUPS, SUBROUTE_PARENTS, manifestRouteFor), read on the laptop clone at 44aaf73; survey files ~/workspace/pm-book/survey/website-pages.md (§A, §B), ~/workspace/pm-book/survey/apps.md (§5, §7), ~/workspace/pm-book/survey/roadmap.md (§2), ~/workspace/pm-book/survey/disagreements.md (D7, D8); repo paths pm-stack/projector/README.md, pm-stack/projector/schema.sql, pm-stack/aggregator/src/source.ts, pm-stack/aggregator/src/sources/projector.ts.
PM stack research and implementation roadmap
The PM stack’s design record is three documents written on 2026-11-11 and 2026-11-12, plus the store plans that follow from them. The design register (pm-stack/design-register-2026-11-11.md) records 117 designs — 42 top-level entries and 75 named sub-designs — plus 131 idea-engine entries under one parent. The tracking manifest (pm-stack/design-tracking-manifest-2026-11-11.md) gives the completed designs that escaped documentation a tracking issue and a committed living document: 37 tracking issues filed, 27 doc files committed. The lineage manifest (pm-stack/lineage-manifest-2026-11-12.md) links every issue to epics, boards, and labels. The reprioritization record (pm-stack/design-reprioritization-2026-11-12.md) then orders all of it into nine programs with queue bands. This chapter synthesises those four documents and the PM store plans into one roadmap. Statuses quoted from the register are the register’s own, live-checked where the register marks them, on 2026-11-11; they are a dated record, not a current census.
The register’s status vocabulary is exact and this chapter keeps it. A design is none, drafted, decided, or built-into-running-system. Its implementation is not started, partial, shipped, shipped-then-superseded, or abandoned-in-record. A design recorded as decided is not recorded as built, and this chapter does not promote it.
The PM designs: what is designed, what is built
The register’s PM section is two parents. P1, the PM stack program — one single URL for all projects, canonical design approved 2026-10-24 — is built-into-running-system as a design and partial as an implementation: the coherence epic is the standing gap list. P2, the decisions system, is the ledger, the decisions page, and the rulings the ledger still carries.
| Register entry | Design status | Implementation status, per the register |
|---|---|---|
| P1.1 Project-tracking evaluation (GitHub Projects against Linear, then self-hosted options) | Decided: GitHub Projects, org Project #4 | Shipped as substrate — Project #4 is the portfolio record, and ready-for-agent and Pad were adopted as components |
| P1.2 Dashboard slice 3: pluggable pages, DNS register, dashboard comments, session identity registry (#906) | Built-into-running-system | Shipped; #906 closed. The pluggable-page mechanism is the manifest recipe in Add a page or projection |
| P1.3 PM stack coherence epic (#1184) | Decided: the full review completed the night it was directed, 2026-10-26 | Partial — the epic’s 34 net-new issues, #1134–#1183, are the standing follow-up set |
| P1.4 Needs-user action model (contracts #1290–#1293) | Built-into-running-system | Shipped; all four contract issues closed. The shipped census vocabulary is the code’s, not the design’s (D13) |
| P1.5 Durability and host-independence rulings (#1258) | Decided and ruled: all 7 open questions settled 2026-11-03 | Partial — verification of the retention scheme’s implementation is the recorded open follow-up |
| P1.6 PM stack under NixOS switch | Decided | Partial at register time — the module is wired and the aggregator and projector units are live; the register records gaps (dispatch as a module unit, the tunnel, the Kaneo oneshot) and no switch run in its slice |
| P1.7 pm-dispatch service (#2648) | Built-into-running-system | Shipped — built, deployed, and smoke-verified live 2026-10-30 |
P1.8 Quota plane: gatherer, usage hub, single-source opencode quota | Built-into-running-system | Shipped — the gatherer went live 2026-10-27, and the single-source change completed 2026-11-05 (#6125 closed) |
| P1.9 General Board comparison and teardown | Decided | Shipped — the board was torn down; its one kept idea, per-source lag counts on the health page, is #1734, open at register time |
| P1.11 Data-home migrations (#3142 with phases #5005–#5008 and slice #6815; #1744) | Drafted, per the census titles the register reconciles | Not verified in the register pass. The store plans below carry the current shape |
| P1.12 Real notifications, phases 1–3 | Decided: no-go on moving the aggregator to Workers; go on a small edge relay | Partial — Phase 1 shipped (#8568 closed); Phase 2 is #8569, Phase 3 is #8570, both open at register time. The shipped relay state is narrower than the phase design (D5) |
| P1.13 Aggregator PWA and Web Push design (#1254) | Drafted, then decided in lineage | Shipped-then-superseded in lineage — its Web Push throat is what P1.12 Phase 1 later built producers into; #1254 closed |
P2.1 Pending-questions ledger (pm-stack/decisions-ledger-system.md) | Built-into-running-system | Shipped and running. Ledger state at the 2026-11-11 records read: 150 items — 84 answered, 34 asked, 20 pending, 12 dropped |
| P2.2 Decisions page: batched decision sets (#8766) | Built-into-running-system | Shipped the day it was specified, 2026-11-11, through v1, v2, and the draft-persistence revisions. Its crash follow-up, #8777, is open at register time |
| P2.3 Pending design rulings in the ledger | Tracked in the ledger, awaiting Drew | Twelve design rulings are listed in the register entry. They are decision items, not builds; Project Management: prioritised issue map and dependency map carries them |
Two register facts bound any larger claim. The code repo’s 236-entry design-doc corpus is registered as a corpus, not entry by entry, and the register’s open-issue census behind its records pass is title-keyword only. Entries outside the PM section — Atlas, ID and fleet, Cloudflare, Turso, adjacent infrastructure — belong to their own books’ roadmaps; this chapter takes from them only the ordering scheme and the PM store lineage.
The ordering: nine programs, one band map
The reprioritization record of 2026-11-12 is the programme order for the whole estate, and the PM stack sits inside it as program P5. The order, top to bottom:
- Drew’s expedite set — pinned, untouched by the program. Nothing in the scheme demotes an expedite item.
- Band 10 — fleet-stalling breakage only.
- The nine focus programs in Drew’s listing order — P1 ID, P2 Atlas, and P3 Fleet at band 20; P4 SaaS service, P5 PM stack, and P6 Turso and Cloudflare at band 30; P7 GitHub and dynamic compute, P8 Storage, and P9 Lab at band 40. Band 50 is reserved and unused by this program.
- Blocking small fixes — a small fix takes the band of the thing it blocks, default band 30 when the blocked thing is unclassifiable.
- Non-blocking small fixes — band 70.
- Not-a-work-items — records, questions, and tracking shells keep their priority; the census notes why.
The census behind the scheme classified 1,227 open issues one by one (1,039 in developing-today/code, 188 across the other repos); 115 code issues classified to P5, the PM stack. Application was verified by post-apply re-reads: program epic labels, milestone assignments, and board placement were applied in the census pass. The one leg that did not apply in that pass — queue re-banding, because no band-mutation route was confirmable — closed later the same day: the queue lane applied 392 task re-bands by the established direct-SQL route, each verified by re-read, and the record marks the program’s one open gap CLOSED. Priority as recorded still lives in more places than the band: Project fields, rank labels, and the console scale are separate records, and the surfaces do not automatically agree. See Prioritisation: how order is decided and recorded.
The lineage manifest supplies the structure the order runs on. An epic is an issue carrying the epic label; membership is two-sided — the member carries the epic’s epic/<name> label and, where the epic issue is unambiguous, the member is a native sub-issue of the epic. Project #4’s Kind field is the canonical epic field the aggregator reads: Kind = Epic makes an epic, and no label substitutes for it (D10). The manifest’s amendment pass created the zero-carrier program epics — among them #8986, the design-register epic (27 members, 26 natively linked) — and recorded the labels whose home epic is ambiguous, including epic/pm-stack and epic/pm-stack-coherence, as awaiting Drew’s pick of a single home. Personal-repo issues cannot be placed on org Project #4; that is a settled constraint from Drew’s 2026-11-12 ruling, and their tracking home is labels, milestones, and the register.
The store line: from inventory to migration
Three documents carry the PM store work in sequence, and the sequence is a stated dependency chain, not a preference:
- Inventory and target groups —
pm-stack/SHARED-SCHEMA-MAP.md, tracking #1744. The map inventories every aggregator-owned store, the projector database, and the native Kaneo, Grist, and Pad stores, and classifies each as rebuildable or not. Its target groups arepmp_projector tables,agg_aggregator stores, and the shared entity tablesshared_items,shared_links,shared_comments,shared_events. One finding governs the rest:pmp_linksis the only non-rebuildable cross-service relationship in the projector schema, and it carries the registry backup legs for that reason. - Direction change — #3142 supersedes #1744’s default. The map records the supersession in its own header: #1744’s one-local-libSQL default is replaced by the #3142 decision — start new PM state in Supabase
muse-dev2, and keep the Kaneo, Grist, and Pad databases separate unless a supported shared-database mode is proven. The first store group is specified as a versioned action/event contract inpm-stack/shared-schema/:public.agg_actionsowns the aggregator’s action records,public.shared_eventsholds their cross-service outcomes, with a paired migration and a disposable-PostgreSQL test. - First stores canonical in Supabase — #6815. Four stores move under the switch
PM_AGG_STORE_BACKEND=supabase, withfileas the dev, test, and rollback backend and the local JSON demoted to a rebuildable cache: actions, activity ingestion, usage snapshots, and the AA last-good document, with comments following intopublic.shared_comments. The sibling stores — freshness, notifications, needs-Drew, decisions, decision events, stack health, item history — are follow-on scope under #3989 and live only as laptop-local files in the map’s record. - Canonical app stores —
pm-stack/STORE-MIGRATION-PLAN-6816.md, parent #3989, rulings #1258. Step 1 of that plan is inventory and plan only; it moves no data and reconfigures no service. Its targets: Kaneo to Supabase Postgres natively; Grist and Pad to Supabase-backed file-shaped homes. Its fencing rule is absolute: the old writer is fenced before any failover promotion, and no configuration permits two active writers. Its cutover runs in stated order — pre-sync while live; stop the writers Pad, then Grist, then Kaneo; final delta; verify; promote — and steps 1 and 5 run through one driver,pm-stack/scripts/kaneo-cutover.sh, whose promote mode refuses unless the fence check reports FENCED and the target’s table and row counts equal the source’s exactly. Step 2 is the windowed cutover itself. Step 3 is the first isolated laptop-off drill, measured against the #1258 targets the plan records: 4-hour core RTO, 1-hour Kaneo RPO, 24-hour Grist and Pad RPO. Rollback is operator steps until the first window records a run.
A second migration direction now runs beside this line: the Turso-to-D1 programme (#13844) moves fleet-platform families — including its agg_* telemetry and aggregate families — from Turso to D1. The register already records the unresolved ordering between the two directions for the earlier wave (P1.11); the D1 programme adds a third target to the same estate. No document surveyed states which direction governs a given agg_* family where the two records name the same family in different stores. This book records that as a disagreement (D19) and states neither direction as settled for the overlap. Project Management: prioritised issue map and dependency map carries the #13844 programme as its own item.
What is next, in the documents’ own sequence
The documents state their own next steps. In their stated order:
| Order | Work | The dependency the source states |
|---|---|---|
| 1 | Notifications Phase 2 (#8569): the Cloudflare edge relay and Durable Object dead-man’s switch, with its scope as amended on the issue — full data-source migration to Cloudflare with Turso and laptop sync | Phase 2 follows the shipped Phase 1 (#8568); the relay code that exists today is step 1 only, not deployed, its later routes unrouted (D5) |
| 2 | Notifications Phase 3 (#8570): consolidate the aggregator, quota gatherer, fleet-feed collector, and projector into one pm-core service; dispatch stays separate | Third in the phase sequence P1.12 records |
| 3 | Store migration step 2 (#6816): the windowed Kaneo, Grist, and Pad cutover | Runs after step 1’s inventory and plan, through the fence and parity gate; step 3, the laptop-off drill, runs after it |
| 4 | The #3989 follow-on stores: freshness, notifications, needs-Drew, decisions, decision events, stack health, item history | Follow-on scope to the four #6815 stores, in the shared-schema map’s record |
| 5 | Retention-scheme verification for the #1258 rulings | The register’s recorded open follow-up on P1.5 |
| 6 | The #8777 follow-up: who sent the external SIGTERM that killed the aggregator and dispatch units on 2026-11-11, with the auditd form filed to ride the NixOS switch | Register P2.2 follow-up; the switch ride is the stated route |
| 7 | The twelve P2.3 design rulings | They wait on Drew’s answers in the ledger; they are not builds and no build order in the documents displaces them |
The roadmap surfaces themselves carry two cautions for any reader of this order. The aggregator’s roadmap and the console’s roadmap are two implementations with different sources and different phase vocabularies (D12), and the word horizon names three different value sets on three surfaces (D11). An order stated in this chapter is the documents’ order; a roadmap page is a view of it, not the record of it.
Sources. Repo documents read on the laptop clone: pm-stack/design-register-2026-11-11.md (§3, entries P1–P2.3, and the headline counts), pm-stack/design-tracking-manifest-2026-11-11.md, pm-stack/lineage-manifest-2026-11-12.md (taxonomy, board status, amendment pass), pm-stack/design-reprioritization-2026-11-12.md (priority order, band map, the nine programs, census results, queue re-banding record), pm-stack/SHARED-SCHEMA-MAP.md, pm-stack/STORE-MIGRATION-PLAN-6816.md, pm-stack/decisions-ledger-system.md; survey files ~/workspace/pm-book/survey/roadmap.md and ~/workspace/pm-book/survey/disagreements.md (D5, D10, D11, D12, D13).
Project Management: prioritised issue map and dependency map
Snapshot: 2026-11-23 (America/Chicago). States for #13900 and #13844 were read through fleet gh api on 2026-11-23; bridge states were read through fleet gh api search the same day; register items carry the design register’s own record of 2026-11-11 and are marked as such. A state in this chapter is a state at the snapshot. Read the live issue and its newest comments before acting on any item here.
Prioritised list
1. The book programme — #13900
#13900, “Project Management book — fifth house book, coverage audit, sidelines, Space” — open at the snapshot (created 2026-11-23, last updated 2026-11-23 18:47 CST). Drew’s directive of 2026-11-23 opened the programme. Its completion test, in Drew’s words as recorded on the issue: every worker in the estate and every Turso database is covered in the PM book or in one or more of the four pre-existing books. The coverage ledger is the test’s evidence: 22 workers censused (3 covered, 19 gap) and 50 Turso databases confirmed live (34 covered, 16 gap), with every gap assigned to the PM book or to an owning book. See Keeping this book current for the ledger’s standing role after the programme closes.
The programme’s slices, in the order its own record states the process — survey before structure, structure before prose, mechanical coverage audit before done:
| Slice | State at the snapshot, per the programme’s comments on #13900 |
|---|---|
| PM-SURVEY: the stack’s real surface, from the code | Complete. 50 primary pages and routes, 36 components, question sets F1–F8, disagreements D1–D14 |
| PM-CENSUS: the coverage ledger | Posted. The worker and Turso census above |
| TURSO-SETTLE: the ledger’s 50-against-52 count discrepancy | Resolved. A live turso db list returned exactly 50; the audit’s internal-shard figure was the sole error |
| LLM-EVIDENCE: the dated evidence pack for the LLM-plans chapters | Complete. 30 plan rows, 6 tier rows, 16 evidence items, every figure dated at its source |
| Writing lanes: the book’s chapters, section by section | In progress at the snapshot. This chapter is one lane’s output |
| Sidelines: the mcpx door Worker chapter for the mcpx book; the commander door and bridge coverage for the fleet book | Assigned in the programme body; the gaps they close are named in the ledger |
Placement and deploy: the book at pm-stack/book/ with pm-stack/book.toml, a flake output and build workflow in the fleet book’s shape, and a subpath in the single Pages deploy | Recorded in the programme’s placement correction and skeleton. The book’s guessed placement in the issue body, pkgs/pm-stack/docs/, is superseded (D15) |
| The Project Management Space | After the book lands, per the programme body. Not started at the snapshot |
One coordination item lands on this programme from outside it: a comment on #13900 from the Code Book programme (#13905, open at the snapshot) records two requirements from Drew’s 2026-11-23 directive for every book, this one included. The comment is the record; this programme incorporates the requirements, and the Code Book lane does not edit this book.
2. The Turso-to-D1 programme — #13844
#13844, “Turso-to-D1 migration audit + programme” — open, labelled status:in-review at the snapshot. Research and design only at its own record: no migrations have been made. The audit record landed through PR #13845 as a dated design record in doc/. This programme owns the decisions the data-stores chapter of this book names for three stores: fleet-platform, fleet-mirror, and the frozen eight staging and recovery copies.
Its measured findings, from the issue body: 50 Turso databases; fleet-platform is 87% of all estate writes (57.4M rows in the audit period) and is owned end to end by the PM stack’s Workers; fleet-queue is 81% of all reads, a query-shape problem, not a store-location problem; atlas is 73% of storage and stays on Turso as the native vector store. Its groups, in its stated slice order:
| Order | Group | Content |
|---|---|---|
| Slice 1 | G1 MOVE-CLEAN | fleet-platform telemetry mirror and aggregates (agent_mirror_*, agent_quota_records, agg_*) to one D1 database, dual-write cutover. Derived, rebuildable, Worker-only access; the audit’s recommended first slice |
| Slice 2 | G2, then G3 MOVE-CLEAN | The fleet-platform ingest families, then its operational ledgers (alerts_*, decision_set_events, ci_events, ideas_*, orch_*). G3 completes the fleet-platform evacuation |
| Slice 3 | G4 read-shape fix | fleet-queue stays on Turso; the fix is indexing and cursoring its pollers. The audit names this slice the real downgrade enabler |
| Later | G5 MOVE-WITH-BRIDGE | fleet-queue read-side mirrors: D1-first reads, Turso fallback, watermark sync |
| Later, low priority in the audit’s own words | G6 MOVE-WITH-BRIDGE | muse-meta coord_events and small tables; coord_tasks and leases stay |
| Opportunistic | G8 MOVE-CLEAN | Small stores: notes-submissions, bedside-and-away, voice-line-ledger, fleet-dispatch-jobs. great-star-lord stays, by standing keep and as a third-party application’s database |
| Housekeeping | The frozen eight | The 2026-11-17 and 2026-11-18 Supabase recovery and staging copies. The audit recommends export to object storage and delete, rather than migration; the decision is the programme’s to take |
The audit’s constraint stands over the whole order: moving G1–G3 alone does not permit a Turso plan downgrade, because the remaining reads and storage stay over the lower plan’s lines; the downgrade needs the G4 read-shape fix as well. The programme’s design review (AUDIT-7, recorded on the issue) returned a verdict of sound, with one naming note: slice 2’s retirement of fleet-platform after parity depends on slice 1’s dual-write and parity pattern proving out, and that dependency was implicit in the audit until the review named it. Where this programme’s D1 direction and the Supabase direction of the shared-schema line name the same agg_* family, this book records a disagreement (D19) and states neither as settled for the overlap. See PM stack research and implementation roadmap.
3. The bridge programme
The bridge’s durable coverage home is the fleet book, not this book; this book carries light coverage and coordinates. The programme body for #13900 records the shape: bridge coverage in the fleet book plus a fleet subcommand, with a follow-up issue filed by this programme, and the standalone bridge build in pkgs/message-bridge running separately — coordinate, do not rebuild. The coverage ledger records the message-bridge Worker as covered for concept and CLI in the fleet book, with its Worker deployment detail as the fleet sideline extension; the Worker is deployed by message-bridge-deploy.yml, and its standalone build was in flight at the census.
Bridge items read on 2026-11-23:
| Item | State |
|---|---|
| #12032, “feat(message-bridge): one bridge for Claude and ChatGPT, on bridge.security.cab” | Closed |
| #13213, “fleet bridge: per-verb –help for every bridge verb” | Closed |
| #13895, “Bridge: class/name notes, public wake signal, and Archer hook” | Open |
| #13907, “fleet bridge: send/get/inbox/watch for class/name notes — replacing ad-hoc bridge access” | Open |
Within the PM stack’s own tree, pm-stack/private-laptop-bridge/ is bridge smoke tooling; the production surface it serves beyond smoke tests is UNVERIFIED in the survey.
4. Open design items from the register
These items come from the design register of 2026-11-11 and its companion records. Their states are the register’s record at that date; the snapshot did not re-read each one.
The coherence set. Epic #1184, the PM stack coherence epic, open at register time, with its 34 child issues #1134–#1183 as the standing follow-up set. Named siblings in the register’s census: #1182 (one public URL behind Cloudflare Access, settled, not implemented, and recorded as needing Drew’s go), #1253 (one identity and SSO, design), #1260 (SLOs and self-healing, design), #1198 (one status taxonomy), #1281 (WIP limits and flow analytics), #2576 (aggregator ingest fail-closed contract, design), #1744 (centralise service data in one schema — the shared-schema line), #3989 (move stateful services off the laptop, host failover — parent of the store-migration plan).
The notification and decisions follow-ups. #8569 and #8570 (notifications phases 2 and 3), #8777 (the 2026-11-11 SIGTERM that killed the aggregator and dispatch units mid-session, with no self-heal), and #1734 (per-source lag counts for the health page). Their order is the phase and follow-up order in PM stack research and implementation roadmap.
The pending design rulings (register P2.3). Twelve design rulings sit in the decisions ledger awaiting Drew, listed in the register by ledger id: fleet-tiers-2230, lifecycle-verdict-2311, replica-operator-806, design-adoption-1678, watcher-scope-1441, shutdown-delete-1414, luna-route-terra-low, atlas-secret-remediation-8479, backups-provisioning-8584, turso-remedy-5468, code1394-mimo-flag-superseded, bws-runner-5451. The ledger entry for the needs-user design carries one further pending decision: how auto delegation mode is set, with the proposed default recorded as per-item explicit opt-in only, and the access and policy classes hard-excluded from auto under any setting.
The open lineage questions. The lineage manifest records the multi-carrier epic labels — including epic/pm-stack and epic/pm-stack-coherence — as awaiting Drew’s pick of a single home epic, and the survey records one open design question from that manifest: #1518, define code and config embeddings — unit, metadata, usage, and whether they share the prose embedding dump. The PM stack consumes no embeddings in its own code; that question belongs to the Atlas surface it names. See the models chapter of this book for the boundary.
Dependency map
Edges only where a source states them. An edge reads “the first item waits on, builds on, or is gated by the second”.
| Item | Depends on | Source of the edge |
|---|---|---|
| #13900’s census and ledger | #13844’s audit estate list: the ledger starts from the audit’s 50-database list | #13900 programme body |
| #13900’s chapters | The survey, then the structure: survey before structure, structure before prose, audit before done | #13900 programme body |
| #13900’s completion test | The sideline chapters in the owning books, for the gaps assigned there | #13900 programme body and the coverage ledger’s assignments |
| The Project Management Space | The book landing first | #13900 programme body: the Space comes after the book lands |
| The decisions page (P2.2) and #8568’s answerable pushes | The pending-questions ledger (P2.1) as substrate | pm-stack/decisions-ledger-system.md |
| Notifications Phase 2 (#8569) and Phase 3 (#8570) | The shipped Phase 1 (#8568), in phase order | Design register, entry P1.12 |
| The PWA and Web Push design (P1.13) | Branches on #1182, the one-public-URL decision, because the access model’s implementation was gated on Drew’s recorded go | Design register, entry P1.13 |
#13844 slice 2 (retire fleet-platform after parity) | Slice 1’s dual-write and parity pattern proving out | AUDIT-7 design review, recorded on #13844 |
| A Turso plan downgrade under #13844 | The G4 read-shape fix, in addition to G1–G3 | #13844 issue body |
| Store-migration step 2, then step 3 (#6816) | Step 1’s inventory and plan; the fence and exact-parity gate govern step 2’s promotion | pm-stack/STORE-MIGRATION-PLAN-6816.md |
| The #3989 follow-on stores | The four #6815 stores landing first; #3989 is also #6816’s parent | pm-stack/SHARED-SCHEMA-MAP.md; pm-stack/STORE-MIGRATION-PLAN-6816.md |
| The shared-schema target groups | #3142’s direction, which supersedes #1744’s one-local-libSQL default | pm-stack/SHARED-SCHEMA-MAP.md |
| Bridge coverage in this programme | The standalone pkgs/message-bridge build, as a coordination edge: the programme coordinates with it and does not rebuild it | #13900 programme body |
No other edges are stated in the sources this chapter grounds on. In particular, no source surveyed states an edge between #13900 and #13844 beyond the census’s use of the audit’s estate list, and no source states an edge between the bridge items #13895 and #13907 beyond their shared subject; this map records neither.
Sources. fleet gh api reads on 2026-11-23: repos/developing-today/code/issues/13900 (state, title, and its slice comments), repos/developing-today/code/issues/13844 (state, label, body, and the AUDIT-7 comment), issue search for the bridge items, and #13905 as named in the #13900 comment; ~/workspace/pm-book/coverage-ledger.md; ~/workspace/pm-book/tracking-issue-body.md; ~/workspace/pm-book/skeleton.md; ~/workspace/pm-book/placement-correction.md; repo documents pm-stack/design-register-2026-11-11.md (§3, P1.3, P1.11, P2.3), pm-stack/lineage-manifest-2026-11-12.md, pm-stack/decisions-ledger-system.md, pm-stack/SHARED-SCHEMA-MAP.md, pm-stack/STORE-MIGRATION-PLAN-6816.md; survey file ~/workspace/pm-book/survey/roadmap.md (§3, the #1518 question).
Keeping this book current
A book that drifts from the stack is worse than no book: readers script against what it says, and the PM stack’s readers include the sessions that run the fleet. This chapter mirrors the fleet book’s chapter of the same name in mechanism, and adapts its rule to this book’s subject. The fleet book’s contract is a documentation contract that predates its book; this book adopts the same shape from its first landing: the book is part of the change it describes.
The rule
A change to a pm-stack surface is not done until the book matches it in the same pull request.
A pm-stack surface is any of: a page, a route, a Worker, a schema, a store. The list is the stack’s own list of things a reader trusts this book to describe:
| Surface that changed | Chapter that changes with it |
|---|---|
An aggregator page: a PAGES entry added, removed, or reworded in pm-stack/aggregator/src/pages.ts | The aggregator website, page by page, and Add a page or projection if the change alters the manifest mechanism |
An aggregator route or API twin in pm-stack/aggregator/src/server.ts, including a route the manifest does not declare | Aggregator HTTP routes and API. The manifest is not the route table (D7); a route change is a book change whether or not pages.ts moved |
A console view in pm-stack/console/public/app.js, or an action in the console’s audited action table | The console, view by view |
| A question set or an answer-back route: decision sets, needs-Drew answers, prompt threads, dashboard actions and comments, console actions, report and roadmap answer-backs | The question sets, enumerated and Question sets and the answer-back flow |
A Worker: a wrangler configuration added or retired, a registry entry changed in pm-stack/platform/workers.json, a Worker’s state changed (deployed, not deployed, in service) | The workers chapter in the reference part, and the coverage ledger contract below |
A schema: pm-stack/projector/schema.sql, a shared-schema migration, a Worker’s schema.sql | The shared schema and the projector’s chapters, as the schema’s owner dictates |
| A store: a Turso or D1 database created, moved, frozen, or deleted; a local store file promoted, demoted to cache, or retired | The data-stores chapter in the reference part, and the coverage ledger contract below |
A component added to or removed from pm-stack/, or a Nix package under pkgs/pm-* added or retired | Repository layout and Architecture |
A build or test route: a package.json script, a suite adopted by .github/workflows/pm-stack-tests.yml, a package build shape | Building and testing |
| A port, a unit, a deploy route, or this book’s own deployment | The operations part, and Repository layout for the port registry’s location |
| A design decided, a programme reprioritised, an issue programme opened or closed | PM stack research and implementation roadmap and Project Management: prioritised issue map and dependency map, with the issue map’s snapshot line re-dated |
“Same pull request” means the same pull request. A follow-up issue promising to update the book later does not satisfy the rule. The survey for this book catalogued what the looser habit produces: a platform README counting eighteen Workers against a registry of twenty (D6), a decisions API the page manifest does not declare (D7), a detail page outside the render registry its own index feeds (D8), and a notification class count two behind the code (D14). Each of those was a surface that changed without its record changing in the same pass. If a disagreement of that kind surfaces while a change is in progress, the stale side is fixed inside the change’s scope; a disagreement outside the scope gets an issue in the owning repository in the same pass and a disagreement number in this book’s record.
The coverage ledger is the sync contract
The book programme’s coverage ledger — built for #13900 and kept in the programme’s workspace — is the contract between this book and the estate’s two censused sets: the Cloudflare Workers and doors, and the Turso databases. Its rule:
- Every worker in the estate and every Turso database is covered in this book or in one of the four pre-existing books — the fleet book, the Atlas book, the ID book, and the mcpx book. That is the programme’s completion test, and it does not lapse when the programme closes; it becomes this chapter’s standing test.
- A new Worker, door, or database enters the ledger in the change that creates it, with its covering book and chapter named, or with its gap assigned to a book in that same change. An unassigned gap is a failing ledger.
- A Worker or database that moves books — a sideline chapter landing in an owning book, a store migrating under a programme such as #13844 — updates the ledger’s covering entry in the same change. Coverage that points at a chapter that no longer carries the item is drift of the same kind as a stale count.
- The ledger’s counts are census figures, and census figures follow the rule in the next section: they are re-derived from the source — the wrangler configurations and workflows for workers, a live database list for the Turso estate — never restated from the previous ledger.
At this book’s first census the ledger stood at 22 workers (3 covered, 19 assigned as gaps) and 50 Turso databases, confirmed by a live list (34 covered, 16 assigned as gaps). Those figures are the census of 2026-11-23. A later edition of this chapter quotes a later census or none; it does not repeat these as current.
Census figures are re-derived, never restated
Every count in this book came from a count: 50 primary pages and routes from the manifest and the console’s view map, 36 components from the tree, 20 Workers from the registry file, 8 notification classes from the class defaults in code, 50 databases from a live list. The rule for keeping them true:
- Re-derive from the named source. A page count is recounted from
pages.ts,server.ts, and the console view map. A Worker count is recounted fromworkers.jsonand the wrangler files its test checks. A database count is recounted from a liveturso db listor from the governing programme’s audit, read that day. - Date the figure in the sentence that carries it, or in the chapter’s snapshot line where the chapter has one, as Project Management: prioritised issue map and dependency map does. An undated count in this book is a defect.
- Never carry a figure forward because it was true in the last edition. The estate’s own record shows why: the Turso audit’s headline of 50 and its internal enumeration disagreed by two until a live list settled which figure was wrong — the enumeration, not the headline. A restated figure imports the error and hides the settlement.
- A figure that cannot be re-derived at edit time is marked UNVERIFIED or removed. It is not left standing on the strength of the previous text.
The build gates
Two mechanical gates keep the book honest, in the fleet book’s shape:
create-missing = false. The book’sbook.tomlsetscreate-missing = false: every chapter inSUMMARY.mdexists on disk; no stubs are invented. Adding aSUMMARY.mdentry without the file fails the build instead of publishing an empty page.- The packaged build. The book builds as a flake output with its own build workflow, in the shape of the fleet book’s
.#fleet-docspackage andfleet-docs.ymlworkflow, and the combined Pages deploy rebuilds it under its subpath. A chapter that breaks mdBook — a bad link target, a missing file — fails the build by name rather than shipping broken. The zero-warning build is the release gate.
Form is part of the contract, because the gates check it: every chapter’s sole H1 is its SUMMARY.md entry text; internal links are relative .md links whose text is the target chapter’s title; angle-bracket placeholders are escaped. A change that breaks the form breaks the build or the census chapters’ 1:1 shape, and both are release defects, not style notes.
Where the rule is recorded
The rule lives in three places, which must agree:
- This chapter — the book stating its own maintenance rule, so a reader who arrived here first finds the whole contract.
- The programme record on #13900 — the completion test and the coverage ledger that this chapter turns into a standing contract.
- The fleet book’s chapter of the same name — the mechanism this chapter mirrors, and the precedent for the estate’s other books.
If the three disagree, this chapter wins for this book’s scope, the fleet chapter wins for the fleet book’s scope, and the disagreement itself is fixed in the same pass it is noticed — the same rule, applied to the rule.
Sources. The fleet book’s keeping-current chapter (pkgs/fleet/book/development/keeping-this-book-current.md, read through fleet gh api on 2026-11-23) for the mechanism mirrored here; ~/workspace/pm-book/coverage-ledger.md (census date 2026-11-23, worker and Turso counts, the settled 50-database count); ~/workspace/pm-book/tracking-issue-body.md (the completion test in Drew’s words); ~/workspace/pm-book/survey/disagreements.md (D6, D7, D8, D14); ~/workspace/pm-book/skeleton.md (placement at pm-stack/book/ and pm-stack/book.toml, the deploy shape).
Running the stack as services
The PM stack deploys on laptop host amd with one nixos-rebuild switch, per pm-stack/README.md. User units run the first-party services; containers run Kaneo, Postgres, Pad, and Grist; Cloudflare Workers run the edge services. Ports are registered in pm-stack/PORTS.md. This chapter lists the services as deployed in the surveyed tree, and names the one gap in that picture.
First-party user units
The deployment frame names four units declared in the NixOS module nixos/services/pm-stack:
| Unit | Service | Port |
|---|---|---|
pm-aggregator | The aggregator dashboard (pm-stack/aggregator/) | 4870, plus freshness IPC on 4871 |
pm-projector | The projector (pm-stack/projector/) | 7801 |
pm-dispatch | The dispatch intake service (pm-stack/dispatch/) | 4879, public as dispatch.security.cab |
pm-tunnel | The Cloudflare Tunnel unit (pm-stack/systemd/pm-tunnel.service) | — |
The console runs as unit pm-console on port 4872 (pm-stack/console/). It has no pkgs/pm-console package; its deploy runs through console/install.sh and console/redeploy.sh and the edge release path. Whether the NixOS module builds the console another way is UNVERIFIED from the surveys.
ready-for-agent runs as a systemd user unit from pm-stack/ready-for-agent/systemd/, serving its UI and GraphQL on port 6056.
Unit and timer files in pm-stack/systemd/
The repo carries these unit files:
pm-aggregatorpm-consolepm-dispatchpm-tunnelpm-host-health(service and timer) — the host-health collector, on a 5-minute timer.pm-invariant-sweeper(service and timer) — the invariant sweep across the Kaneo-synced repos.pm-kaneo-sync-guard(service and timer) — the sync guard, hourly.pm-quota-watchdog(service and timer)pm-console-expose(service and timer)pm-console-redeploy(service and timer)pm-console-android-release(service and timer) — builds and releases the console Android APK; the console itself serves the APK.
Units also live beside their components: aggregator/systemd/ for the aggregator’s units, ready-for-agent/systemd/ for its unit, and pm-stack/external-comms/ for the external-comms pusher service and timer.
Which of the repo copies are installed as-is and which are rendered by Nix is UNVERIFIED from the surveys. The NixOS module is the deploy-time declaration for the main units; the repo files are the record to read, with that caveat attached.
Since #8171, pm-git-sync never restarts PM services. Deploy is by merge, then nixos-rebuild switch.
Containers
pm-stack/compose.yml and the per-app compose files run:
- Kaneo — container port 5173, bound to
127.0.0.1:5173, public ashttps://kaneo.security.cabthrough theamd-6-pm-stacktunnel. The image is the upstreamghcr.io/usekaneo/kaneo:2.47.0, pinned by digest (D1). - Postgres 16 — Kaneo’s sidecar, volume
pm-stack_postgres_data, no host port. - Pad —
127.0.0.1:7777, plus tailnet. - Grist —
127.0.0.1:8484, plus tailnet, frompm-stack/grist/compose.yml. Its image line carries a digest and no tag (D2).
Workers
The coverage ledger assigns 12 Workers to this book. Their deployment state, as surveyed:
| Worker | Config | State as surveyed |
|---|---|---|
decision-events | pm-stack/decision-events-worker/wrangler.toml | In service; deployed by hand |
voice-line | pm-stack/voice-line-worker/wrangler.toml | In service |
pm-notify (notify-relay) | pm-stack/notify-relay/wrangler.toml | Not deployed — platform/workers.json records a null address (D5) |
pm-console-edge | pm-stack/console/edge/wrangler.jsonc, plus edge/init/wrangler.jsonc | Deployed from Actions; its route is attached by the host script scripts/expose.py after a health check |
pkarr | pkgs/pkarr-worker/wrangler.jsonc | Pkarr relay Worker, with its Durable Object store and rate limiters |
lab-ops-hub | pkgs/lab-ops-hub/wrangler.jsonc | Worker with LiveRoom and CrawlerContainer Durable Objects, D1 labops-db, R2 labops-files |
cf-container-hello | pkgs/cf-container-hello/wrangler.jsonc | Containers probe Worker |
muse-agent-handoff | scripts/muse/handoff/worker/wrangler.jsonc | Handoff Worker, Handoff Durable Object |
github-ci | pkgs/github-ci/worker/ | CI helper Worker; the name comes from its directory and workflow — no wrangler config sits at the package root |
| exec door (security.cab) | — | No wrangler config found in the repo census; documented in home config and the #13404 / #13657 / #13774 issue family |
| pm-stack aggregator worker | — | Named by the #13844 audit as a Cloudflare Worker writing fleet-platform; no wrangler config exists in pm-stack/aggregator/, and its deploy path is UNVERIFIED |
| pm-stack dashboard worker | — | Named by the audit as a reader and writer of fleet-platform ingest families; no wrangler config found in the census |
The platform registry itself, pm-stack/platform/workers.json, lists 20 Workers across the estate (D6). The console’s Platform screen at #more/platform is drawn from that file.
The D5 caveat governs the pm-notify row and every procedure that touches it: the relay’s heartbeat target, its stack.silent push, and its answer-intake routes do not exist in production. Laptop silence sends nothing through the relay today. Procedures in this book that involve phone answers route them to the laptop aggregator. See Health checks and the heal stack for the detection layer that does run.
Operating the services from the console
The console’s Services view, #more/services, lists the systemd units the console manages. Per unit it offers an action through POST /console/api/services/<unit>/<action> and logs through GET /console/api/services/<unit>/logs?lines=. The manageable set is an allowlist in console/src/ops.ts, in manageable(). A unit outside the allowlist is operated from the host, not from the phone.
Port registry
Read pm-stack/PORTS.md for the registry. The load-bearing assignments: 4870 aggregator, 4871 freshness IPC, 4872 console, 4879 dispatch, 5173 Kaneo, 6056 ready-for-agent, 7777 Pad, 7801 projector, 8484 Grist. The registry’s last audit date in the surveyed tree is 2026-11-05.
Sources. survey/apps.md §1–§8, §26, §36, and the Nix packages summary; coverage-ledger.md Table A; survey/disagreements.md D1, D2, D5, D6. Ground truth: laptop clone at 4d937b3, 2026-11-23.
Health checks and the heal stack
The PM stack’s healing layer detects, records, and in a defined set of cases repairs. It does not improvise repairs: each component in this chapter has a fixed trigger, a fixed action set, and a fixed record. Read the layer in that order — probes first, then the snapshot, then the hooks, then the guards that repair.
For the failure shapes these components produce and consume, see Troubleshooting. For the units that run them, see Running the stack as services.
The health assembly
One assembly feeds both the /health page and its twin /api/health (healthContext in aggregator/src/server.ts). Its sources in code:
aggregator/src/health.tsaggregator/src/stack-health.tsaggregator/src/host-health.tsaggregator/src/build-health.tsaggregator/src/watchdog*.tsaggregator/src/slo*.tspm-stack/host-health-collector.py
The page reports: live probes for every stack service, feed section ages, last job runs, the dashboard’s own render history, and the services and ports topology. /api/health adds the per-page render registry: route, last rendered time, and outcome for each manifest page. One page’s renders sit outside that registry (D8): /decisions/<setId> has no entry in SUBROUTE_PARENTS, so its renders carry no registry record.
Health-adjacent machine routes: /api/author-identities and /api/admin/identity-registry for identity registry administration, and POST /api/stack-token/exchange for the break-glass and stack-token path.
The host-health collector
pm-stack/host-health-collector.py is a laptop user service on a 5-minute timer, pm-host-health.{service,timer}. It writes the JSON snapshot the packaged aggregator cannot collect itself:
- The claimant mode file.
- The backup last-run record.
- User-unit and timer states for pm-git-sync, pm-projector-reconcile, pm-kaneo-sync-guard, and pm-dashboard-backup.
The aggregator derives its watchdog tier items from that snapshot (#10141). A stale snapshot is a collector problem, not a service problem: check the timer before checking the services it reports on.
The sentinel and the health hooks
The stack sentinel, aggregator/scripts/stack-sentinel.ts, watches probe results. On a 3-consecutive-failure transition it fires a health hook once. On recovery it fires once. It does not fire per failed probe.
The hooks live in pm-stack/health-hooks/: the Python runner run.py and the wrappers pm-stack-reachable.sh and opencode-working.sh (#9571). Their contract:
- Failure-triggered and read-only. A hook troubleshoots and reports. No remediation ships in a hook.
- One shared 60-second deadline covers a hook run.
- Incidents append as JSONL to
~/.local/state/pm-aggregator/health-hook-incidents.jsonl. - A hook posts to the alert throat on a best-effort basis, with the
stackHealthextension. That post is what turns a hook incident into astack-healthorincidentnotification; the trace is in Tutorial: trace a push notification from event to answer.
Two more callers fire the same hooks, fire-and-forget: the claimant cap step and launch_one.py, under the caller name lane-launch; and the aggregator live source, under the caller name aggregator-tick.
Sentinel state is authoritative over health-derived notification candidates when both exist (NotificationSnapshot.stackHealthStates in aggregator/src/notifications.ts).
The watchdog and guard scripts
These scripts are the repair-capable part of the layer. Each has a bounded repair set.
Kaneo sync guard
pm-stack/kaneo-sync-guard.py asserts every Kaneo GitHub integration’s status transitions: no target done; merge → in-review; open → in-review; push → in-progress. On drift it heals the transitions back, in compact-JSON form, and exits 1 loudly. deploy.sh runs it at deploy time and the pm-kaneo-sync-guard timer runs it hourly. Its tests are pm-stack/tests/test_kaneo_sync_guard.py. The recorded verification in pm-stack/KANEO-GITHUB-SYNC.md: on 2026-11-14 the guard read clean on all 4 integrations, and induced drift healed in one run.
Closure watchdog
pm-stack/closure-watchdog.py polls issue-close events in the Kaneo-covered repos. It reopens an automation close when the issue still has open sub-issues, or when the closing pull request carried no closing keyword. Keyword closes and human closes stay untouched (#10105). It runs every 15 minutes from a Muse sandbox cron job; its scheduler lives outside the laptop stack. The repo copy and its tests are the durable record, after the original sandbox-only script was lost in the 2026-11-21 sandbox recovery.
Invariant sweeper
pm-stack/invariant-sweeper.py sweeps the four Kaneo-synced repos on a slow cadence (#10139) for three invariants:
- A closed issue with non-completed sub-issues.
- An open issue carrying
status:done. - A Kaneo↔GitHub state mismatch.
Default mode reports only. --act repairs the first two classes under the closure watchdog’s guards, and still only reports the third. Its units are pm-invariant-sweeper.{service,timer}.
Quota watchdog and the exporter watchdog core
The pm-quota-watchdog service and timer run the quota watchdog leg. Its exporter counterpart is the watchdog core in pm-stack/exporters/: src/watchdog-state.ts holds the failure classes and the repair ladder as pure functions, and src/watchdog-escalation.ts holds the rung-4 hand-off — incident issue first, then a queue task, then the NEEDS DREW surfacing line. src/watchdog.ts is the oneshot tick. In the surveyed tree the only exporter adapter present is a synthetic fixture; live per-provider production use is UNVERIFIED.
Report-only monitors
pm-stack/fleet-monitor/ carries two report-only Python monitors: epic_close_check.py, the weekly adapter for the epic closure gate, where a blocked epic is a finding and not a failure; and review_loop_checks.py. Report-only means the monitor writes a finding and changes nothing.
pm-stack/lane-guard/lane_guard.py is a guard of a different kind: deterministic ownership and park-note checks for queue lanes. Only explicit markers count as a hold — held, user/owned, do-not-auto-edit. Assignees and work/assigned never count. Its note check suppresses repeat park notes, after the repo-sweeper’s blanket assignment produced 50+ duplicate park notes in two days (#7616).
Scheduled-history watchdog
pm-stack/scheduled-history/ reconciles OpenChamber scheduled-task runs: collect.py keys runs, enriches them from the OpenCode session store, and freezes terminal rows; watchdog.py watches that collector. Service and timer units ship with it.
The scheduled-job surface
One pilot scheduled job runs an OpenCode session on a systemd timer: pm-stack/opencode-scheduled-jobs/, the quota-freshness-summary job. Its outputs land in ~/.local/state/opencode-scheduled/quota-freshness-summary/ as latest.log and history.jsonl. Its installer enables the timer only with --enable; its README states the pilot is currently enabled.
What the layer does not do
- No hook remediates. Diagnosis and reporting are the hook contract.
- No monitor in
fleet-monitor/changes state. - The sweeper’s third invariant class is report-only in every mode.
- The notify relay’s dead-man’s switch is not part of the running layer: the
pm-notifyWorker is not deployed (D5), so total laptop silence has no relay leg. Whether any other watchdog covers total laptop silence is UNVERIFIED in the surveys.
Sources. survey/website-pages.md §C; survey/apps.md §12, §15, §17–§18, §20, §24, §26, §29–§32; survey/push.md §1, §5; survey/disagreements.md D5, D8. Ground truth: laptop clone at 4d937b3, 2026-11-23.
Deploying this book
This book is an mdBook that lives with the code it documents: sources in pm-stack/book/, configuration in pm-stack/book.toml, published to the developing-today/code GitHub Pages site under /pm/. This chapter mirrors the fleet book’s chapter of the same name, because the PM book follows the fleet book’s build and deploy shape. It describes the pieces, the two workflows, and the local preview.
The pieces
pm-stack/book.toml— mirrors the fleet book’s configuration:src = "book"(a dedicated folder), build directoryrendered, andcreate-missing = false— every chapter inSUMMARY.mdmust exist on disk; the build never invents stubs.pm-stack/book/—SUMMARY.mdplus the chapters.index.mdis the introduction.- The flake output
.#pm-docs— the Nix build of the book (pm-stack/docs.nix, wired inlib/default.nixaspmDocs), taking asiteUrlargument (default"/") that is baked into the rendered book as mdBook’soutput.html.site-url, injected at build time via theMDBOOK_OUTPUT__HTML__SITE_URLenvironment variable rather than stored inbook.toml. It mirrors the fleet precedent,.#fleet-docs(pkgs/fleet/docs.nix). - Links inside the book are relative
.mdlinks. Local preview navigation works regardless ofsiteUrl; only absolute site URLs differ between a local build and the deployed one.
The two workflows
Repository CI runs on main only, and the book follows the same policy.
The build-only workflow
The build-only workflow is .github/workflows/pm-docs.yml, mirroring .github/workflows/fleet-docs.yml: on push to main and on workflow_dispatch, it builds .#pm-docs, stages the result, and verifies the rendered site (the index page exists). It never deploys. Its job is to fail by name on main when a chapter breaks the build — a missing SUMMARY.md target under create-missing = false, a bad link, a broken derivation — before the deploy path is involved.
mcpx-docs.yml — the shared Pages deploy
The deploy lives inside the existing .github/workflows/mcpx-docs.yml, whose deploy job is the shared deploy job for the repository’s books. The reason is a hard constraint of GitHub Pages:
One repository has one Pages site, and a Pages deploy replaces the whole site.
The mcpx book already occupies https://developing-today.github.io/code/, and the fleet book deploys through the same job under fleet/. A PM-only deploy would publish an artifact containing only the PM book — and wipe the other books off the site. So the shared deploy job builds every book it carries and stages one combined site:
site/ ← the mcpx book, built with siteUrl "/code/"
site/fleet/ ← the fleet book, built with siteUrl "/code/fleet/"
site/atlas/ ← the atlas book, built with siteUrl "/code/atlas/"
site/id/ ← the id book, built with siteUrl "/code/id/"
site/pm/ ← this book, built with siteUrl "/code/pm/"
This book is therefore reached at https://developing-today.github.io/code/pm/, and its siteUrl is /code/pm/ — the /code/ project-site prefix plus the pm/ staging directory.
Adding this book to that deploy job is the high-blast-radius change in the book’s setup: a staging error there removes the other books from the site on the next deploy. Parse the workflow YAML and build the deploy variant locally before merge. That check is part of the change, not a follow-up.
GitHub Pages for developing-today/code is already enabled with build_type = "workflow" (source: GitHub Actions), per the fleet book’s record. There is no manual enable step, no gh-pages branch, and no generated HTML is ever committed.
Preview the book locally
-
Build the packaged form from the repository root:
nix build .#pm-docs. -
Open or serve the result’s
index.htmland check the chapter order, internal links, and search. -
Or, for a faster edit loop, build in place from
pm-stack/:mdbook buildand preview the output directory named by
book.toml. The Nix build is the authoritative check — it is the same derivation, mdBook version, andsiteUrlhandling the deploy uses.
Note the local default siteUrl is "/".
Custom domains — out of scope
Custom domains are out of scope until asked. No CNAME file for this book is part of its setup, no custom domain is set for it, and its siteUrl stays /code/pm/. Do not present a custom domain as live, and do not change URLs in anticipation of one. A future custom-domain change for the repository’s Pages site is a whole-site change: it touches every book the shared deploy job stages, in the same pass.
Sources. The fleet book’s “Deploying this book” chapter (pkgs/fleet/book/operations/deploying-this-book.md, read 2026-11-23); skeleton.md, “Deploying this book” placement notes for this programme; the assembly record on #13900 (programme PM-BOOK), which created pm-stack/docs.nix, the .#pm-docs flake output, .github/workflows/pm-docs.yml, and this book’s two steps in the mcpx-docs.yml deploy job.
Troubleshooting
Symptom → cause → fix. Each entry names the check that confirms the cause before you apply the fix. Every entry in this chapter comes from the surveys and the numbered disagreements; no entry is a generic shape. For the health surfaces referenced throughout, see Health checks and the heal stack; for how the services are run, see Running the stack as services.
Kaneo cards move to done on merge, or issues close seconds after a merge
- Symptom: A pull request merge closes issues it merely referenced, or Kaneo cards jump straight to done on merge.
- Cause: The Kaneo GitHub integration’s status transitions have drifted from the recorded settings. The upstream default sends merge →
done, and that default closed merely-referenced issues seconds after merge. The recorded settings send merge →in-review(changed 2026-11-14, defect #7610). The settings live only in Kaneo’s Postgres, inintegration.config.statusTransitionsper project; no repository file sets them, so drift has no diff to read. - Confirm: Run the sync guard,
pm-stack/kaneo-sync-guard.py. It asserts every integration’s transitions: no targetdone; merge → in-review; open → in-review; push → in-progress. - Fix: Let the guard heal the drift — it rewrites the transitions in compact-JSON form and exits 1 loudly so the trip is on record. The
pm-kaneo-sync-guardtimer runs it hourly, anddeploy.shruns it at deploy time. Then check the wrongly closed issues against the closure watchdog’s record (next entry) before reopening anything by hand.
An automation close is reopened
- Symptom: An issue closed by automation is open again, with no human reopen in the timeline you expected.
- Cause: The closure watchdog,
pm-stack/closure-watchdog.py, reopens an automation close when the issue still has open sub-issues, or when the closing pull request carried no closing keyword (#10105). That is the watchdog working, and its usual trigger is the transition drift in the entry above. - Confirm: Read the close event: the closing pull request’s keywords, and the issue’s sub-issue states at close time. Keyword closes and human closes are untouched by the watchdog; an untouched close rules this cause out.
- Fix: Fix the underlying state, then close again in a form the watchdog accepts: complete or detach the open sub-issues, or close through a pull request carrying the closing keyword. Do not disable the watchdog to make a close stick — the close it reopens is the defect it exists to catch. Note its scheduler: the watchdog runs from a Muse sandbox cron job, not from a laptop timer.
A closed issue carries open children, or an open issue carries status:done
- Symptom: The invariant sweeper reports a closed issue with non-completed sub-issues, an open issue carrying
status:done, or a Kaneo↔GitHub state mismatch. - Cause: The GitHub record and the Kaneo record diverged — a transition fired on one side and not the other, or a close landed before its subtree completed. These are the sweeper’s three invariant classes (#10139), and the first class is the same invariant the epic closure gate enforces from the aggregator side.
- Confirm:
pm-stack/invariant-sweeper.pyin its default, report-only mode names the class and the item for each finding. - Fix: Run the sweeper with
--actfor the first two classes; it repairs them under the closure watchdog’s guards. The third class, the state mismatch, stays report-only in every mode: reconcile it through the sync guard and the source records, not through the sweeper.
An epic will not close
- Symptom: An epic stays open after its visible work is done, and the closure gate lists blockers.
- Cause: The epic closure gate,
evaluateEpicClosureGateinaggregator/src/epics.ts, holds an epic open while its complete subtree has open children or unmet conditions. The gate enumerates blockers by condition; an unmet condition in the subtree is the cause, not the gate. - Confirm: Run
scripts/epic-closure-gate.tsand read the enumerated blockers.pm-stack/fleet-monitor/epic_close_check.pyreports the same state weekly, report-only: a blocked epic there is a finding, not a failure. - Fix: Clear the named conditions — finish, detach, or reparent the open children (
aggregator/src/epic-reparent.ts, checked byscripts/check-epic-conformance.ts). Do not close the epic over the gate; the closure watchdog and the sweeper treat that close as a defect and reopen or report it.
The claimant stops launching, or a bound session sits stuck
- Symptom: Queue work accumulates, no new claimant fires appear, or a session bound to a task makes no progress.
- Cause: The claimant’s fire sequence in
pm-stack/opencode-claimant/claimant.pyruns supervision and recovery of stuck bound sessions first, then the candidate gate, then the concurrency cap (36 claimant roots). A stuck bound session consumes its root until supervision recovers it; a full cap stops new fires; a candidate that fails the gate inpoll.pynever reaches launch. - Confirm: Read the fire log,
~/.local/state/opencode-claimant/fires.jsonl, for the last fire and its step. Read the claimant mode file in the host-health snapshot on/health. The claimant cap step also fires the health hooks under the caller namelane-launch; the hook incident log at~/.local/state/pm-aggregator/health-hook-incidents.jsonlrecords what that step found. - Fix: Match the step that stopped. A stuck bound session: let the supervision and recovery step run its course, or work the task at once through
launch_one.py(#8187) once the root frees. A cap stop: wait for roots to free; the cap is a fixed limit, not a fault. A gate stop: fix the candidate’s gate failure — the task’s queue state — rather than the claimant. The surveys do not record a manual unstick procedure for a bound session beyond the supervision step andlaunch_one.py; a procedure past those two is UNVERIFIED.
A phone answer goes nowhere: the relay routes return 404
- Symptom: An answer sent to the notify relay’s edge routes —
POST /mirror/event,GET /answer/<ledgerId>,POST /api/needs-drew/<ledgerId>/answeron the relay — returns 404, or the relay sends nothing when the laptop is silent. - Cause: Those routes are not routed, and the relay is not deployed (D5).
pm-stack/notify-relay/src/index.tsstates it in its header: the mirror route arrives with step 2 of the relay build and the answer routes with step 3; everything else 404s.pm-stack/platform/workers.jsonrecordspm-notifyas “not deployed” with a null address. The relay README’s route table lists the unrouted routes beside the live ones, separated only by a “Lands in” column — the table reads as availability and is not. - Confirm: Read the registry entry for
pm-notifyinworkers.json, and the header ofnotify-relay/src/index.ts. Both say the same thing; the README table is the outlier. - Fix: Route the answer to the laptop aggregator. Phone answers land through the aggregator’s own
POST /api/needs-drew/<ledgerId>/answerand the decision-set pages, as in Tutorial: answer a waiting question end to end. There is no operator fix that makes the relay live; deploying it is build work (relay steps 2–3 and the deploy step), not a setting.
The quota view disagrees with the provider
- Symptom:
/quotashows a pool or service in a state the provider’s own console contradicts, or a section-risk judgement rests on a pool state that no longer holds. - Cause: The view reads collected snapshots, and a snapshot is dated. The notification code states the adjoining rule for its own reads: pools in
error,stale, orlapsedstates never count as serving — a stale read distorts both the page and every judgement joined to it. Browser-dependent sources add a second staleness path: the exporters’ watchdog core classifies source failures and climbs a repair ladder instead of serving the last good read as current. - Confirm: Refresh through
POST /quota/refresh(orPOST /api/quota/refresh) and re-read/api/quota.json. Check the collection scripts’ last runs on/health, which reports last job runs and feed section ages. - Fix: Take the post-refresh read as the view’s state. If the refresh itself fails, the fault is in collection — the gather scripts and, for browser-dependent sources, the exporter watchdog’s failure class and ladder rung in
pm-stack/exporters/src/watchdog-state.ts, with the rung-4 hand-off inwatchdog-escalation.ts(incident issue first, then a queue task, then the NEEDS DREW line). Do not patch the page’s numbers by hand; figures carry dates and live with the dated reads. See Tutorial: read the quota and usage views.
Worker counts disagree: 18, 20, 22
- Symptom: Three documents give three Worker counts: the platform README says eighteen,
workers.jsonlists 20, and the programme census counts 22. - Cause: Staleness in the README, and two different counting scopes (D6).
workers.jsonlists 20 Workers, counted directly, and its own test,workers.test.ts, holds the JSON to the repository’s wrangler files — the JSON is the live list. The README’s “eighteen”, “fourteen answered”, and “two Actions-deployed” figures are stale as of the file’s own checked date, 2026-11-23. The census count of 22 covers the estate scope of its ledger, a wider scope than the platform registry. - Confirm: Count
workers.jsonand run its test. Read the census ledger’s Table A for its scope. - Fix: Cite the count with its source: 20 in the platform registry, 22 in the census ledger’s estate scope. Correct the README figure in the platform docs; do not edit
workers.jsonto match the README — the test holds the JSON to the wrangler files, and the JSON is right.
The board is not the fork the program page describes
- Symptom: Work planned against fork-only Kaneo behaviour does not appear on the deployed board, or the board’s version does not match the fork.
- Cause: Image drift between the program text and the deployment (D1).
aggregator/src/program.tsdescribes the board as “our fork (developing-today-forks/kaneo)”.pm-stack/compose.ymlpins the upstream imageghcr.io/usekaneo/kaneo:2.47.0by digest. The fork exists as a repo; compose does not run it. - Confirm: Read the image line in
pm-stack/compose.yml. The deployment file is the authority. - Fix: Plan against upstream v2.47.0 behaviour for the deployed board. Moving the board to the fork is a compose change plus the sync guard’s verification pass, not a documentation correction.
A decision set answers through an API its manifest page denies, or its page is missing from health
- Symptom: A reader of
pages.tsconcludes the decision sets have no API, or/healthshows no render record for a decision-set detail page that plainly renders. - Cause: Two manifest gaps (D7, D8). The
decisionsentry inpages.tsdeclares noapi:twin — one of only three pages without one — whileserver.tsimplements the full decisions API. AndSUBROUTE_PARENTSomits/decisions/<setId>, somanifestRouteForreturns null for it and its renders sit outside the #1147 render registry/api/healthreports. - Confirm: Read the routes in
aggregator/src/server.tsfor the API, andSUBROUTE_PARENTSinpages.tsfor the missing sub-route. - Fix: For the reader: use the server as the authority for the decisions API — submit, defer, request-info, and events per set, plus the decision-sets list and submit routes. For the registry gap: the fix is a manifest change (add the sub-route parent), not a health-check change. Until that change lands, a missing render record for
/decisions/<setId>is the known gap, not an outage.
A push class is missing, or the count of classes is wrong in a document
- Symptom: A document or issue speaks of six notification classes, or of a seventh class as the final state, and the preferences page shows more.
- Cause: Stale premise text (D14). Issue #8882, now closed, describes six classes in
notifications.ts. The code defines eight inNOTIFICATION_CLASS_DEFAULTS:incident,needs-drew,quota-wall,quota-near-wall,section-risk,stack-health,blocked-age,prompt.section-riskis the class #8882 added, andprompt(#10035) followed it. - Confirm: Count the keys of
NOTIFICATION_CLASS_DEFAULTSinaggregator/src/notifications.ts, and compare with the toggles on/alerts/preferences. - Fix: Cite eight, from the code. A subscription-side check belongs here as well: whether the #8882 subscription flip (section-risk on, quota-wall and quota-near-wall off, on the owner’s phone) was applied to the live subscription is UNVERIFIED from the repository — it is subscription state in the Turso alerts store, not code. Read the subscription row before reporting the flip as done.
Sources. survey/apps.md §1, §12, §15, §19, §31; survey/push.md §2–§3; survey/website-pages.md §D; survey/disagreements.md D1, D5, D6, D7, D8, D14. Ground truth: laptop clone at 4d937b3, 2026-11-23.
FAQ
Questions a new operator asks, answered from the surveys. Each answer names its source. Where the surveys record a disagreement, the answer cites it and follows the code.
Is the notify relay live?
No (D5). The pm-notify Worker is recorded in pm-stack/platform/workers.json as “not deployed”, with a null address. Its event-mirror route and its edge answer-intake routes are not routed in its code; they arrive with steps 2 and 3 of the relay build. The dead-man’s switch — one stack.silent push when the laptop falls silent — does not exist in production. Phone answers go to the laptop aggregator. See Tutorial: trace a push notification from event to answer.
Is Kaneo our fork?
No (D1). The deployed board is the upstream image ghcr.io/usekaneo/kaneo:2.47.0, pinned by digest in pm-stack/compose.yml. The fork at developing-today-forks/kaneo exists as a repo, and fleet references point at it. Compose does not run it. Program text that calls the deployed board the fork is ahead of the deployment code.
Does the aggregator read Pad data?
It reads no Pad planning data (D3). No source adapter consumes Pad content. The aggregator does probe Pad for health and topology: it carries a Pad base URL in config.ts, a Pad service link, and its /api/health has reported Pad up on port 7777. The stack-token exchange also accepts pad as a target. The README sentence “the aggregator reads no Pad data” is broader than the code; the accurate form is: no planning data, health only.
Who writes GitHub labels for needs-Drew items?
The console does, and the aggregator service does not (D4). The aggregator’s census header states its own rule: the aggregator never writes labels back. The console, in the same stack, writes them through its action table: handsDone() posts a comment and deletes the user/escalated label through gh, and Ops.setRank() adds and removes rank labels. The orchestrator remains the single writer of Project fields; labels are the seam, and the console is a label writer.
How many Cloudflare Workers are there?
Twenty in the platform registry, 22 in the programme census’s estate scope (D6). pm-stack/platform/workers.json lists 20, and its test holds the list to the repository’s wrangler files. The platform README’s “eighteen” is stale. The census ledger counts 22 across its wider estate scope. Cite the count with its source.
Does the PM stack call an LLM, or use embeddings?
The aggregator, console, dispatch, and projector make no LLM calls and no embedding calls. The in-tree inference is the voice line Worker’s: Workers AI speech-to-text with @cf/openai/whisper-large-v3-turbo and text-to-speech with @cf/myshell-ai/melotts, with template-built answers between them and no LLM. The embedding model in the estate belongs to Atlas: Snowflake/snowflake-arctic-embed-m-v2.0 at 768 dimensions. No PM component consumes Atlas embeddings in the surveyed code.
Where do I answer a question?
On the surface that raised it. A single needs-Drew question: tap an option on its push, or use its answer page. A decision set: its page at /decisions/<setId>, or the console at #needs/questions. A census item: reply from the console, or use the hands-done action for a hands item. The full procedure is Tutorial: answer a waiting question end to end.
What is an aggregator in the hierarchy?
Nothing (D10). “Aggregator” names the dashboard service, not a work-item type. Kind on Project #4 is exactly Task or Epic. The ladder is program → project → epic → task or item, carried by four different systems and joined by refs.
Which roadmap is the roadmap?
There are two roadmap implementations (D12). The aggregator’s /roadmap merges Grist rows, repo-file rows, and Project-pool data, with the repo file winning a title collision (#1738). The console’s #more/roadmap is an independent implementation in console/src/plan.ts, with its own phase vocabulary (doing, now, next, later, built) derived from labels. Name the surface when you cite a roadmap state.
Which horizon does an item have?
The horizon on the surface you read it from (D11). Repo-file and Grist roadmap rows use Now, Next, Later, Ideas, Ongoing. Aggregator tier items use today, tomorrow, next-3-days, longer, incoming. Project #4 has its own Horizon single-select, read verbatim. No surveyed document maps the three vocabularies onto each other.
Is Grist pinned at v1.7.21?
UNVERIFIED (D2). The README says gristlabs/grist-oss:v1.7.21, pinned by digest. The deploy file, pm-stack/grist/compose.yml, names no tag at all — digest only. Whether that digest is v1.7.21 is unverified in the surveys.
Which service worker owns my phone’s push subscription?
UNVERIFIED from the code surveyed. Two service workers exist: the aggregator PWA’s, generated from aggregator/src/sw-source.ts, and the console app’s, in console/public/sw.js. The surveys do not settle which one owns a given phone’s subscription in production. Read the subscription row in the alerts store for a concrete phone.
Where does a single-question answer get written?
To the ledger, through the decisions machinery — and the exact store file is UNVERIFIED (D9). decisions.ts calls the store in needs-drew.ts the question store and treats decision sets as distinct from it, while the routing code sends single-question answers through the same resolution machinery. This book describes the endpoint, POST /api/needs-drew/<ledgerId>/answer, and the ledger application, and names no store file for that path.
An item looks done. Is it done?
Check the guards before answering yes. An automation close reopens when sub-issues stay open or the closing pull request carried no closing keyword. An epic stays open while its subtree has open children. The checks and fixes are in Troubleshooting, and the item’s full path is in Tutorial: follow an item from issue to done.
Where do quota figures live?
In the LLM-plans chapters, with dates. The quota tutorial in this book, Tutorial: read the quota and usage views, describes the surfaces only. A figure without a date and a surface is not a reportable reading.
Sources. survey/disagreements.md D1–D12, D14; survey/models.md §1–§2; survey/push.md §1; survey/website-pages.md §F; coverage-ledger.md Table A. Ground truth: laptop clone at 4d937b3, 2026-11-23.
Glossary
The PM vocabulary, defined as the surveys and the code use the terms. Where a term has two live uses, the entry gives both and names the surface for each.
Action (dashboard action). A structured instruction posted to POST /api/actions on the aggregator and consumed by a polling consumer. Kinds: triage, status-request, session, preference. The consumer reports the outcome through POST /api/actions/result with outcome applied or rejected. The console’s counterpart is its own audited action table behind POST /console/api/act.
Aggregator. The dashboard service in pm-stack/aggregator/: the one screen that joins the stack’s sources into pages and API twins. Not a hierarchy level and not a work-item type (D10).
Alert throat. The aggregator’s incident intake: POST /api/alerts, guarded by a bearer intake token resolved by secret name, backed by the alerts store in aggregator/src/alerts.ts. External producers and the health hooks post incidents through it. Extensions on the intake carry decision sets and stack-health reports.
Answer-back. The flow that carries an owner’s answer from a phone or page back into the store that raised the question: a resolution in the decisions store, a comment or label change on a GitHub item, an action result, or a roadmap annotation. The surfaces are enumerated as question sets F1–F8 in the survey behind this book.
Area. A single-select field on Project #4 items, read verbatim by the aggregator. Programs surface in live data as Area values and as registry projects.
Blocked-age. The notification class that reminds on a needs-Drew item left unacted: first at 24 hours, a breakthrough at 48 hours, then weekly in digest form.
Breakthrough. A notification property: the delivery bypasses quiet hours and the digest queue. incident is a breakthrough class; a failed section in section-risk is a breakthrough; the 48-hour point in blocked-age is a breakthrough.
Candidate (notification candidate). A proposed notification built by buildNotificationCandidates in aggregator/src/notifications.ts from attention, quota, and health snapshots, carrying a class, an object ref, and a state fingerprint. The alert engine filters candidates per subscription before any send.
Census (needs-Drew census). The aggregator’s open-only count of items waiting on the owner: open issues and pull requests labelled user/review or user/escalated across the fleet repos, deduped, with hands:v1 markers read. The census is open-only by design; a closed item, such as #1007 in the design record, never appears in it (D13).
Claimant. The OpenCode execution lane in pm-stack/opencode-claimant/. Its fire sequence supervises stuck bound sessions, gates candidates across four queues, applies the concurrency cap, then launches, binds, and prompts a session. A claimant root is one slot under that cap; the cap stands at 36 roots from 2026-11-05.
Closure gate (epic closure gate). The check in aggregator/src/epics.ts that holds an epic open while its complete subtree has open children or unmet conditions, enumerating blockers by condition.
Console. The owner app in pm-stack/console/: a Bun server on port 4872, a static single-page app under /console, a Cloudflare edge Worker, and an Android TWA. Its views are hash routes; its writes go through the audited action table.
Decision set. A group of questions mirrored from the Muse-side decisions ledger, answered on its own page at /decisions/<setId> or in the console’s questions view. A set has items; an item has questions; a question is answered, deferred, or returned with a request for information. First resolution wins per question.
Digest (notification digest). The queued delivery form for non-breakthrough candidates: candidates wait in a digest queue and deliver as one push. A state that disappears, or a class the subscription mutes, cancels the pending entry.
Dispatch. The intake service in pm-stack/dispatch/ on port 4879: authenticated launch-or-enqueue of a work session, creating the tracking issue, the queue task, and the OpenCode session in one call.
Epic. A Project #4 item with Kind Epic, whose children join through native GitHub sub-issue parents. The epic label is the maintained mirror of the field; meta/epic is retired with no consumer.
Hands item. A census item carrying a hands:v1 marker: an action only the owner performs, of kind physical, interactive-login, payment, or signature. The console’s hands segment holds these items, and the hands-done action closes one out.
Health hook. A failure-triggered, read-only troubleshoot-and-report script in pm-stack/health-hooks/, fired once on a 3-consecutive-failure transition and once on recovery, under one shared 60-second deadline. A hook ships no remediation.
Horizon. A time-bucket field with three live vocabularies (D11): Now | Next | Later | Ideas | Ongoing on roadmap rows; today | tomorrow | next-3-days | longer | incoming on aggregator tier items; and Project #4’s own single-select, read verbatim.
Invariant sweeper. pm-stack/invariant-sweeper.py: the slow-cadence sweep for closed-with-open-children issues, open issues carrying status:done, and Kaneo↔GitHub mismatches. Report-only by default; --act repairs the first two classes.
Kaneo sync guard. pm-stack/kaneo-sync-guard.py: the script that asserts and heals the Kaneo GitHub integration’s status transitions, hourly and at deploy time.
Kind. The Project #4 single-select with exactly two values in PM code: Task and Epic (aggregator/src/model.ts).
Ledger (decisions ledger). The Muse-side record of raised questions that decision sets mirror. Resolutions recorded in the aggregator are applied back to the ledger per question by the dropped-thread catcher. Not to be confused with the coverage ledger of the book programme, or with the Turso store named voice-line-ledger.
Needs-Drew / needs-you tier. The attention tier of items waiting on the owner, built by the census in aggregator/src/needs-drew.ts and split into hands, review, and agent-decides sets by needsDrewWait. The console renames the buckets for the phone: Questions, Only you can do, Reviews, Escalated (D13).
Notify relay. The Cloudflare Worker in pm-stack/notify-relay/ (pm-notify): a dead-man’s switch that sends one stack.silent push after laptop silence, built at step 1 of its plan and not deployed (D5).
Orchestration pass. The consumer pass that applies dashboard actions and performs Project field writes as the Project’s single writer, reporting outcomes back through the actions result path. Its shared-store writes follow the one-transaction-per-pass shape in The shared schema as a library.
Program. One of the nine programmes P1–P9 defined in pm-stack/design-reprioritization-2026-11-12.md, each with a queue band. A document scheme, not a schema type; in live data a program surfaces as a registry project and as an Area value.
Projection. A derived record built from source systems without becoming a source of truth. The projector’s links and subject activity are projections; the aggregator’s pages render from projections of its sources. See Projector internals.
Prompt. In the PM surface, an owner instruction submitted through /chat on the aggregator or #ask in the console, and the notification class (prompt, #10035) that reports when such a submission is answered or fails.
Question set. One of the eight surveyed question and answer-back surfaces, F1–F8: decision sets, needs-Drew single questions, the console census sets, prompt and chat questions, dashboard comments, dashboard actions, console actions, and the smaller report, roadmap, and alert answer-backs.
Queue band. A numeric priority band on fleet queue tasks. Bands run 10, 20, 30, 40, 50, 70, 90. Owner prompts from the console take band 10. Programs map to bands in the 2026-11-12 reprioritisation scheme.
Rank label. An issue label from the console’s rank set — expedite, priority/critical, now, priority/high, next — that orders the console’s ranked-issues view. Ops.setRank() adds the new label before removing the others, so a failed change never leaves an issue rankless.
Section risk. The notification class from #8882: a whole route section (workhorse, speed, specialist, summit, small) fails or is at severe risk, reported with the pools pending wall, the walled pools, and the soonest related resets. A failed section is a breakthrough; severe risk is not.
Sentinel (stack sentinel). aggregator/scripts/stack-sentinel.ts: the watcher that fires health hooks on failure and recovery transitions. Its state is authoritative over health-derived notification candidates when both exist.
Session. A recorded unit of agent work in the session registry (/sessions, twin /api/registry.json): who ran what, with token counts and task links. Dispatch and the claimant create sessions; the registry is the record a reader follows an item’s work through.
Shared schema. The contract layer in pm-stack/shared-schema/: migrations, guards, and the orchestration writer for the shared Turso stores, indexed by pm-stack/SHARED-SCHEMA-MAP.md.
Stack token. The token exchanged through POST /api/stack-token/exchange for service-to-service calls against stack targets (kaneo, pad, grist). The break-glass path beside it lives in aggregator/src/break-glass.ts.
Subject. The join key for an item across systems: gh:…, kaneo:<slug>/<taskId>, grist:<docId>/Roadmap/<recId>, session:…, orch:…. Item and discussion pages address items by subject.
Tier item. An aggregator item placed in an attention or work tier, carrying the aggregator’s own Horizon vocabulary and the actions a reader takes on it.
Weight (effort weight). The progress unit for epic rollups: effort/xs 1, s 4, m 12, l 40 as a floor. Unsized items contribute no weight and are counted visibly as unsized.
Sources. survey/website-pages.md §A–§F; survey/apps.md §1, §7–§8, §12, §19, §25, §31–§32; survey/roadmap.md §1–§3; survey/push.md §2–§3; survey/disagreements.md D5, D10, D11, D13. Ground truth: laptop clone at 4d937b3, 2026-11-23.