Describe the Control room as built: DESIGN.md, PRODUCT.md, four ADRs, the demo docs and a tighter web entry limit
Before adoption: this commit came in with the history the project adopted, so no landing records it.
- DESIGN.md: the Overview becomes the gate's control room (colour means state, word and mark first, mono only for code, hairlines, square corners, no scores, the stamp kept); Layout, Elevation, Shapes, Components and Do's and Don'ts are rewritten from the built pages (the shell and its breakpoints, context bar, head and toolbar, Workspace and the inspector's fact blocks, row and row group, copy action and command line, status line and state badge, marks, the family fan, decisions and Today, the code browser, the records, empty, pending and error states, links and keys, the platform's own pages). Colours and type are kept and amended: the 13 px scale and its named steps, --input, --skeleton, the syntax and diff-tint tokens. - The drift is gone: DESIGN.md and PRODUCT.md now say the web's writes are a decider's choices, proposing (and drafting) an ask, and the session, and that landed diffs are public while an unlanded answer's diff is its finisher's only. PRODUCT.md's pages, keyboard, reserved names and accessibility match the built web. - ADRs: 0022 (one shell: rail, page, inspector of typed facts), 0023 (router links everywhere, lists rendered from loaders into per-render registries; replaces the plain-anchor rule), 0024 (per-ask progress folded from watch, no new contract), 0025 (a listed posture kept until it can next change, amending 0021); lines on 0016 (the handle cookie), 0019 (the worker pool and the plain-text loading state, still no server highlighting) and 0021. - AGENTS.md "Held by": principle 2 (dev-fixtures, a kept commit), 4 (For agents page, Markdown on / and /<project>), 6 (no Markdown in the root preloads, the StandingPostures port, seeded registries, router links), 7 (ledger and env pages, the consent page's escaping), 8 (the fold, a commit kept by SHA, the kept posture). - GLOSSARY: Policy names the web's Policy page. README: the shell, the code browser as an app, For agents, Markdown on list pages, VITE_DEV_FIXTURES and the a11y check; Keep-or-cut rows for the keyboard, the dev fixtures and the kept posture, and the For agents and Policy rows pointed at today's files. - Demo docs: each changed shot's precondition, and a "Now:" line in the rehearsal for what the rebuilt page shows (posture once per group, the fan, "Waiting for N of 6 children to land" then "Open to take", Today's budget sentence, the ledger's head sentence). - e2e: the landings page is checked by its "Landings" heading and a dated day heading (it no longer says "Commits on"), and each text is found among visible matches, since facts render twice and folded family rows stay hidden; people.e2e.ts is titled for Policy. Run against the dev world on 5209: 12 of 12 for datekit; for burrow 9 of 11, the README phrase and packages/kit/src/http.ts only on a deployed stage. - Budgets (bytes:check on this commit): platform 1,693,131 of 1,900,000; sandbox 570,831 of 656,000; web entry 696,419, its limit tightened 818,000 -> 801,000 (15% above; test-first in web-wiring.test.ts); web JavaScript 4,074,781 of 4,075,000. No limit raised. - Not folded in, each a feature or bytes the web lacks: a Waiver's patch evidence from the platform, useFileKeys' current path, a compact code head, AppLink numeric search values, scrolling a selected row into view, the tree's server render. - Nothing deployed, bootstrapped, seeded or published.
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
18 files+491 added−185 removed
- tests:+1 added−1 removed
- other:+490 added−184 removed
Provenance
- Commit
207eb8c- Tree
b04fc25- Author
oscabriel <oscarhernandeziv@gmail.com>- Committer
oscabriel <oscarhernandeziv@gmail.com>- Parent
f7f6e49
18 files changed+491 added−185 removed
modified:apps/web/e2e/deployed.e2e.ts+24 added-4 removed
82 unmodified lines83 const at = (path: string) =>84 `${Option.getOrElse(settings.web, () => "")}${path}`;85 86 /**87- * Opens `path` as a page, waits for each of `texts`, checks the platform88- * answered it, and saves the screenshot `shot`.87+ * Opens `path` as a page, waits for each of `texts` on screen, checks the88+ * platform answered it, and saves the screenshot `shot`. A text may also sit89+ * in markup a width hides (the facts render once as the inspector and once90+ * inline, and a folded family keeps its children's rows), so each text is91+ * found among the visible matches.92 */93 const page = (94 browser: Page,95 path: string,8 unmodified lines104 yield* Effect.forEach(105 texts,106 (text) =>107 Effect.promise(() =>105- expect(browser.getByText(text).first()).toBeVisible()108+ expect(109+ browser.getByText(text).filter({ visible: true }).first()110+ ).toBeVisible()111 ),112 { discard: true }113 );114 136 unmodified lines251 expect(new URL(browser.url()).hash).toBe("#L3");252 })253 ));254 255+ // The landings are grouped under one heading per day, each naming its256+ // date in words ("October 7, 2026") over that day's commits.257 test(`${project}'s log groups its commits by day`, ({ page: browser }) =>258 Effect.runPromise(252- code(browser, `/${project}/commits/main`, "code-log", ["Commits on"])259+ Effect.gen(function* () {260+ yield* code(browser, `/${project}/commits/main`, "code-log", [261+ "Landings",262+ ]);263+264+ yield* Effect.promise(() =>265+ expect(266+ browser267+ .locator("[data-day] h2")268+ .first()269+ .getByText(/^[A-Z][a-z]+ \d{1,2}, \d{4}$/u)270+ ).toBeVisible()271+ );272+ })273 ));274 275 test(`${project}'s newest commit shows what it changed`, ({276 page: browser,25 unmodified linesmodified:apps/web/e2e/people.e2e.ts+3 added-3 removed
122345625 unmodified lines323334353636373839404142424344454640 unmodified lines/** * The deployed people page, as a browser shows it: who decides which paths * The deployed Policy page (`/<project>/people`), as a browser shows it: who decides which paths * and the commit the config is read at, saved as `e2e/out/people.png` for * the shot list. * * It runs only against `WEB_URL` (a stage's web origin) and is skipped25 unmodified lines
/** What every page that could not reach the platform says instead of its content. */const UNREACHABLE = "The platform did not answer";
test.describe("the deployed people page", () => {test.describe("the deployed policy page", () => { test.skip( Option.isNone(settings.web), "WEB_URL is not set: point it at a deployed web's origin to run this check" );
test(`${project}'s people page shows its deciders and the commit they are read at`, ({ test(`${project}'s policy page shows its deciders and the commit they are read at`, ({ page: browser, }) => Effect.runPromise( Effect.gen(function* () {40 unmodified linesmodified:docs/adr/0016-a-person-is-a-platform-account.md+1 added
15 unmodified lines161718192015 unmodified lines- Handles are the platform's own. Credit trailers, the vouch file (where a handle with no provider prefix is a platform handle) and fork names spell them, and two handles that differ only in case are one person.- A password is HMAC'd with a pepper held as a Worker secret, then hashed with PBKDF2, so a copy of the accounts table alone is useless. `COOKIE_KEY` and `PASSWORD_PEPPER` are required on every stage, and changing the pepper makes every stored password fail.- Agents have no identity of their own. An agent works through its person's token, and the harness it names is audit metadata that a landing discloses as `Assisted-by:`, never identity or credit.- Importing a public repo from GitHub once, to start a project, is unaffected (ADR 0010).- The web keeps the signed-in handle for display in a second `__Host-` cookie, HttpOnly, bound to the session token by its SHA-256 and set when the person signs in, so `/auth/whoami` answers with no platform call on each page. Signing out, or any `Unauthenticated` from the platform, clears both cookies. The handle only shapes what a page shows; every write still carries the token to the platform, which decides.modified:docs/adr/0019-the-web-reads-repos-through-public-contracts.md+1 added
21 unmodified lines222324252621 unmodified lines- The port lists tags already peeled to their commits, since an annotated tag names a tag object a commit read cannot open.- Artifacts' import brings no tags. An operator may backfill an imported repo's `refs/tags/*` from its source, through a short-lived write token minted over REST. This is the one write that skips the gateway, and it writes tags only, never `main`.- Each read is an Artifacts operation, billed past a monthly allowance and limited to 2,000 a repo every 10 s. Every walk is capped: 50,000 paths, 200 commits scanned for a path's log or for why, 300 files and 2 MiB of text in a commit's diff, and 1 MiB per file.- Five code reads are MCP tools too, for an agent with no shell or git, such as a hosted connector: `readTree`, `readFile`, `log`, `why` and `listRefs`, each capped: a log page holds at most 100 commits, and the limits above bound the rest. `showCommit` (up to 2 MiB of diff) and `listPaths` (up to 50,000 paths) are not, since nothing caps them to what a transcript holds. No code read is a CLI command: git reads code locally.- The browser draws code, diffs and the tree with Pierre in a pool of web workers (`apps/web/src/features/code/pool.tsx`), one pool per tab, kept between code pages. While it draws, the server's HTML holds the file or the diff as plain text at Pierre's exact metrics (13 px text on 20 px lines, its gutters, its header), so the highlighting lands in place with nothing moving. There is still no highlighting on the server, and the tree is still drawn only in the browser: both would need the web Worker's server build to be minified to fit its byte budget.modified:docs/adr/0021-a-listed-projects-posture-is-read-from-the-project.md+1 added-1 removed
14 unmodified lines15161718191920212214 unmodified lines- **Show posture only on the ledger page.** The badge on the list is what a visitor sees first.
## Consequences
- Each list makes one ledger read per listed project, and the ledger is read whole for one field. A stage that lists a few dozen projects wakes each of them on every list.- Each list makes one ledger read per listed project, and the ledger is read whole for one field. A stage that lists a few dozen projects wakes each of them on every list. ADR 0025 amends this: what a list read is kept until the posture can next change, so a list reads only the projects whose kept posture is missing or ran out.- Nothing is migrated or replayed: once deployed, a list shows the right posture for data already there.- The badge and the ledger are one value, so a narrowing that takes effect by the clock shows on the list at once.- Posture comes through the visibility port's own ledger, so a host without the visibility cartridge still lists every project as Open.added:docs/adr/0022-the-web-is-a-control-room-shell.md+23 added
1234567891011121314151617181920212223---status: accepted---
# The web is one permanent shell: a rail, the page, and an inspector of typed facts
Every page of the web sits in one shell that never unmounts: a rail on the left (the site's sections, the projects with their postures, the current project's sections, and the file tree on code pages), the page in the middle, and an inspector on the right that holds the typed facts of the thing in hand (its state, who may take it, the gate, the claim, the posture, the family, the provenance). One component, `Workspace` (`apps/web/src/features/shared/shell/workspace.tsx`), draws a page's main pane and its inspector together, so both arrive in the server's HTML in one pass, with no portal and no inspector built only in the browser. A list's selection lives in the address (`?ask=format-ordinal`, `?decision=dec-000002`), so a selected row and its facts render on the server and a link to them can be shared. Below 1120 px the rail becomes a top bar with a Menu sheet, the inspector's blocks render inline after the page's head, and phones get a bottom bar (Asks, Today, Projects, More).
The colour and type tokens stay as they were: one paper ground, ink as the only accent, five state colours that appear only beside their word and mark, Public Sans for what people read and JetBrains Mono only for what a terminal prints. What changed is the frame: the single centred report column, its double rule under every title and its ruled field grids are gone, and the pieces every page shared (the row, the status line, the family fan, the fact blocks, the copy action) are one component each in `apps/web/src/features/shared/`.
## Considered Options
- **Refine the single-column report sheet.** It kept every page self-contained, but a reader had to scroll to learn an ask's state, whose move it was and its next command, and the same facts were drawn differently on each page.- **A man page for every page.** Terse sections and mono commands read well for agents and on the For agents page, which keeps that voice, but lists, Today and the code browser need rows, selection and a tree.- **A forge dashboard of cards and stat tiles.** It spends colour and space on chrome, and invites counts that read as scores.
## Consequences
- Every page's frame was rebuilt, and its tests render inside a memory router (`apps/web/test/render.tsx`).- The inspector repeats a subject's state (the State block) so it reads whole on its own; facts render twice in the markup (the inspector column and the inline copy), one hidden at each width, so a test that counts a `data-*` in the facts scopes to the inspector.- Phones get a fixed bottom bar, and a decision's choices sit in a fixed bar above it.- `DESIGN.md`'s Layout, Components and Navigation describe this shell.- The shell's own code sits on every page's first load, so what the rail and shell import is held small (`apps/web/test/production-bundle.test.ts`).added:docs/adr/0023-links-are-the-routers-and-lists-render-on-the-server.md+25 added
12345678910111213141516171819202122232425---status: accepted---
# Links between pages are the router's, and lists arrive rendered from the server
Every link from one web page to another is `AppLink` (`apps/web/src/features/shared/link.tsx`): the router's `Link`, with the router's default preload set to `"intent"`, so a click moves without reloading the document and a hover or focus fetches the next page's code and loader data first. Outside a router (a view's own test rendered alone) it draws the same address as a plain anchor. Links to server routes (sign-in, raw bytes, a `.md` twin, `llms.txt`) stay plain anchors.
The lists (the front page, a project's home, Today, the landings) and the subject pages read their data in the route's loader on the server, so the HTML a browser, a crawler or `curl` receives already holds the rows. A loader's read seeds the page's atoms through `SeededAtoms` (`apps/web/src/client/seeded.ts`), a registry made for each render, and the atoms then keep the page live in the browser. The shared atom registry lives for the Worker's whole life and every request on it shares it, so a server render never writes a value there: atoms read outside a seeded registry render as waiting on the server (`withServerValueInitial`).
This replaces the earlier rule that the web's views used plain anchors so they could be rendered and tested without a router.
## Considered Options
- **Plain anchors everywhere.** Views render alone with no setup, but every click reloads the document, the shell's rail and inspector redraw from nothing, and no next page can be fetched ahead.- **Lists read in the browser after hydration.** The first load is smaller, but the HTML holds no rows (an agent or a crawler sees an empty list) and the rows arrive after a skeleton.- **Seeding the shared registry from the loader.** One line per page, but two requests on one Worker would see each other's data.
## Consequences
- A view that uses `AppLink` is tested inside a memory-history router (`renderAt` in `apps/web/test/render.tsx`), which renders the matched tree to static markup after `router.load()`.- A hover or focus may start platform reads for a page the reader never opens; the router keeps a preloaded result for 30 s and a loaded one for 10 s.- An agent that fetches a list page gets its rows in the HTML, and `Accept: text/markdown` on `/` and `/<project>` answers with the same text as `llms.txt` and the project's `llms.txt`.- Each page gives its own registry an `id` from its address, so moving to another address starts from that address's seeds.- A route file's extra exports stay in the client's entry chunk, so loaders' reads live in server-only modules (`apps/web/src/server/*`, `features/*/reads.ts`), which the root preload ceiling holds.added:docs/adr/0024-per-ask-progress-is-folded-from-watch.md+22 added
1+---2+status: accepted3+---4+5+# Where each ask stands is folded on the web from the project's public events6+7+The web shows, for each ask, who holds it, each answer checked (its rounds), the latest outcome, whether it landed and whose move that leaves, and for a family its children's marks and "n of N landed". None of that is a new contract. It comes from one pure fold, `askStates(events)` (`apps/web/src/features/shared/ask-progress.ts`), over the `watch` replay of the project's public events that the project and answer pages already read, held once per project in `projectEventsAtom` (`apps/web/src/client/events.ts`). A claim sets the claimant and a release, a lapse or the ask's close clears it; each `Judged` is a round; a new claim starts the latest outcome over while the earlier rounds stay. A family's N is the parent's stored `blockedBy` (from `showAsk`), less the delete child, never the listing's remaining blockers. Whose move it is follows from the latest outcome alone: a refusal is the answerer's, a decision or a finish a decider's, a check the platform's, and an ask waiting on another that ask's.8+9+A landing seen while the page is open settles its mark once (the stamp). The first settled read records the highest event number it holds; a later read stamps an ask only when its close is numbered after that, or, where the page polls, when the previous read did not have it landed. A replay that already holds the landing never stamps.10+11+## Considered Options12+13+- **New fields on the listing or a per-ask progress read.** Exact and cheap per page, but each is a new public contract on every surface, the CLI's and MCP's included, for what the event stream already says.14+- **A family's N from the listing's remaining blockers.** It shrinks as children land, so "3 of 6" would read "3 of 3".15+- **Stamping every landed mark on load.** The stamp would mean nothing: it marks a landing that happened while you watched.16+17+## Consequences18+19+- Each page that folds reads its project's whole replay once when it mounts, so its cost grows with the project's events; the follow then starts from the replay's last number, and a page reads its other keys once more after the replay so nothing that happened between them is missed.20+- The web cannot say when a claim runs out or which patch each round pushed, since no event carries them; the pages show neither.21+- The fold is pure and replays to the same answer, which `apps/web/test/events.test.ts` holds.22+- The front page reads the replay only for projects with a family on the page.added:docs/adr/0025-a-listed-posture-is-kept-until-it-can-next-change.md+22 added
1+---2+status: accepted3+---4+5+# A listed project's posture is kept with the instant it can next change6+7+This amends ADR 0021. A list still shows the posture each project's own record stands on now, but it no longer reads every listed project on every list. What a list read is kept in a store, `StandingPostures` (`packages/project/src/standing-posture.ts`), beside the instant the posture can next move by the clock alone (an accepted narrowing whose notice runs out) and the project's last event the read saw. A kept posture serves until that instant. The front-page projection deletes a project's kept row in the same write as any event it applies that can move the posture sooner (a landing, a decision, a ledger entry), and a list writes a row only while the projection has applied no later event of that project than the read saw, so a read taken before an event is never written back after it.8+9+The read is `ProjectApi.standing`, platform-only and on no contract: the public ledger carries no decision times, so it could not say when a narrowing takes effect. The store's default keeps nothing, so the web's dev world and every caller without a store read each project as before; the platform keeps it in D1, in the `standing_postures` table that `apps/platform/migrations/0005_standing_postures.sql` adds.10+11+## Considered Options12+13+- **Keep reading every project on every list** (ADR 0021 as it stood). Always current, but a stage listing a few dozen projects woke each of them on every list, the platform's `/` and the web's `/llms.txt` included.14+- **Keep the posture with a fixed time to live.** Simpler, but a landing or a decision that moves it would show late, or the time would be short enough to save little.15+- **Put the posture on an outbox event.** ADR 0021 turned this down: a narrowing takes effect by the clock, with no event.16+17+## Consequences18+19+- A list reads only the projects whose kept posture is missing or ran out, at most 8 at once.20+- A store that fails to read or write is a miss, never the list's failure, and the miss is logged.21+- Migration 0005 is applied by `bun run bootstrap -- --stage <stage>` before a platform build that reads it is deployed. Until then the projection finds no table and leaves its deletes out, and every read is a miss: lists are as slow as before, not broken.22+- The badge and the ledger stay one value; a narrowing that takes effect by the clock shows on the list at its instant.modified:docs/demo/rehearsal.md+14 added-12 removed
9 unmodified lines10 Every box is ticked when the walk is done, passed or failed. A pre-flight line that sets up the recorder's desk, not a stage, says `NOT WALKED`: only the person recording can do it.11 12 **Walked on 2026-10-08, 17:08 to 17:39 UTC**, from `main` at `1e46e9a`, with nothing deployed; the deploy lock was on only for its own check. The read-only shots ran on `demo`, which was left as the seed made it: every ask open and unclaimed, and smoke passing at the end. The shots that consume asks ran on `dev-oscabriel`, on `datekit-805` and `burrow-805`, two `seed --as` copies, and every throwaway they made is in the ledger. On the morning of the take, untick the pre-flight and walk it again.13 14+**The web was rebuilt after this walk** as one shell (a rail, the page, and an inspector of typed facts), and that build is not deployed yet. Each shot's "Now:" line says what its page shows in the new build, checked in the dev world; walk them again on the stages once it is deployed. The words a shot checks that changed: a project's posture is said once per project group heading, never per row; the project's People tab reads Policy, and the header's Agents reads For agents; Today's budget is one sentence; a delete child reads "Waiting for N of 6 children to land", then "Open to take".15+16 ## Shots17 16-- [x] S01 The front door broke · web · the front page on a fresh seed · PASS 2026-10-08 demo, 0:02: "10 open asks, 8 open to take", datekit's three and burrow's six children open. The project badges say "Open", not "Open with sealed evidence" (the front page takes a posture only from a decided change, and a fresh seed's stands without one): the ledger in S19 carries the posture.17-- [x] S02 The front door broke · web · format-ordinal's ask page · PASS 2026-10-08 demo, 0:01: open, "Held for newcomers, mentored by okonkwo", asked by ines-v.18+- [x] S01 The front door broke · web · the front page on a fresh seed · PASS 2026-10-08 demo, 0:02: "10 open asks, 8 open to take", datekit's three and burrow's six children open. The project badges say "Open", not "Open with sealed evidence" (the front page takes a posture only from a decided change, and a fresh seed's stands without one): the ledger in S19 carries the posture. Now: the context bar reads "10 open asks, 8 open to take"; the posture is said once per project group heading ("burrow · Open"), not per row; burrow's six children are one family row, "0 of 6 landed", with "Show 6 children".19+- [x] S02 The front door broke · web · format-ordinal's ask page · PASS 2026-10-08 demo, 0:01: open, "Held for newcomers, mentored by okonkwo", asked by ines-v. Now: "Held for newcomers, mentored by okonkwo" is the inspector's Take it line (the status line has it in lower case).20 - [x] S03 Zero install · split · stock Claude Code takes add-months-clamp as bram · PASS 2026-10-08 dev-oscabriel (`datekit-805`), 2:25: Claude Code 2.1.294 on Haiku, S03's prompt run headless (`-p`) with the corrected flags. It claimed, fixed `src/add.ts`, met `OutOfScope` for README.md in `myr check`, untangled a `commit --amend` of its own, and pushed `8b0050e`, which landed as `e7fb8a9` 35 s later. 1:46 of agent time, 25 turns, $0.025. Three compound commands (`$(…)`, `for` loops) were still denied: run interactively, each is a permission prompt on camera.21 - [x] S04 Zero install · terminal · `OutOfScope` in the agent's own `git push` · FAILED: the agent ran `myr check` before pushing, so the refusal never reached git (as in the harness check's zero-install run the same day) fallback: S04's own, keep the `myr check` refusal (same words, same renderer) and add S05.22 - [x] S05 Zero install · terminal · the same refusal pushed by hand on parse-iso-week, then released · PASS 2026-10-08 dev-oscabriel, 0:12: on a fresh claim, `remote: OutOfScope: changes paths outside the ask's territory: README.md`, then `next: myr check` and `retryable: no`, and `! [remote rejected] HEAD -> main (OutOfScope)`. `myr release` prints `{"released": true}` as a JSON block.21-- [x] S06 Zero install · split · the landing's trailers and its answer page · PASS 2026-10-08 dev-oscabriel, 0:02: `Asked-by: ines-v`, `Signed-off-by: bram`, `Assisted-by: claude-code_2-1-294_agent (claimed)`, then `Ask`, `Verdict`, `Held-back` and `Request-Id`. The answer page reads "Landed as e7fb8a9".22-- [x] S07 One weed becomes a rule · web · burrow's family: six children and the delete child · PASS 2026-10-08 demo, 0:05: six children open to take, and the delete child blocked until all six land. The page's one landing credits `Decided-by: oscabriel`, the operator's handle, in a video of fictional people.23+- [x] S06 Zero install · split · the landing's trailers and its answer page · PASS 2026-10-08 dev-oscabriel, 0:02: `Asked-by: ines-v`, `Signed-off-by: bram`, `Assisted-by: claude-code_2-1-294_agent (claimed)`, then `Ask`, `Verdict`, `Held-back` and `Request-Id`. The answer page reads "Landed as e7fb8a9". Now: "Landed as e7fb8a9" is the answer's outcome under its title, and the inspector repeats it.24+- [x] S07 One weed becomes a rule · web · burrow's family: six children and the delete child · PASS 2026-10-08 demo, 0:05: six children open to take, and the delete child blocked until all six land. The page's one landing credits `Decided-by: oscabriel`, the operator's handle, in a video of fictional people. Now: the family is the parent's row expanded, its six children listed under the fan and a delete node reading "delete waits for 6"; no "Blocked until" sentence. The operator's own landing leaves the inspector's recent landings once three answers have landed.25 - [x] S08 One weed becomes a rule · terminal · the ratchet in burrow's `.myr/project.ts` · PASS 2026-10-08 demo, 0:03: the `no-module-level-mutable-state` block, counted by `bun run lint --format json`.26 - [x] S09 One weed becomes a rule · terminal · the swarm's dry-run plan, both nudges printed · PASS 2026-10-08 demo, 0:01: six rows on four harnesses, both held asks, both nudges in full; nothing claimed.27 - [x] S10 One weed becomes a rule · split · `Weakened` in the nudged agent's pane · PASS 2026-10-08 dev-oscabriel (`burrow-805`), 0:04, pushed by hand as marisol: `remote: Weakened: adds oxlint-disable without a reason`, `at: packages/catalog/src/client.ts:40`. No nudged agent has added a comment yet: none in the swarm's two live runs the same day, none in this walk's herdr run (S12). For the take, expect S10's fallback (cut it and its line).28 - [x] S11 One weed becomes a rule · web · the reasoned escape waiting on a decision · PASS 2026-10-08 dev-oscabriel (`burrow-805`), 0:52, pushed by hand as dagny: every lane passed, then the answer page read "Waiting on decision dec-000001" 36 s after the push. As with S10, a nudged agent may never add the comment: then S11's fallback.29 - [x] S12 Six harnesses at once · terminal · the take: six herdr panes and the counter · PASS 2026-10-08 dev-oscabriel, 2:24 for two (7:41 for six, headless, in the swarm's second live run the same day, 6 of 6 landed): `--view herdr --only tamsin,ivo` on `burrow-805`, in a herdr session of its own. Two panes and the counter strip; OpenCode and Amp each took the brief interactively, the first live prompts in herdr panes for either, and both landed on their first attempt (ivo `4ea45cb` after 1:24, tamsin `4f7430c` after 2:24). Amp's pane showed $2.29. tamsin's landing has no `Assisted-by` (OpenCode's landings carry none yet).28-- [x] S13 Six harnesses at once · web · burrow's page updating live · PASS 2026-10-08 dev-oscabriel: with the page open and never reloaded, each landing showed within 13 s, billing's and then auth's.29-- [x] S14 Six harnesses at once · web · the delete child open · PASS 2026-10-08 dev-oscabriel (`burrow-swarm-2`, where the swarm's second live run landed all six), 0:05: State "Open". The page still says "Waits on … to land first; a claim waits until they do" once all six have landed. Demo's, before the take, reads "Blocked".30+- [x] S13 Six harnesses at once · web · burrow's page updating live · PASS 2026-10-08 dev-oscabriel: with the page open and never reloaded, each landing showed within 13 s, billing's and then auth's. Now: a landing settles its child's node in the fan once, and "n of 6 landed" moves; a reload shows no stamp.31+- [x] S14 Six harnesses at once · web · the delete child open · PASS 2026-10-08 dev-oscabriel (`burrow-swarm-2`, where the swarm's second live run landed all six), 0:05: State "Open". The page still says "Waits on … to land first; a claim waits until they do" once all six have landed. Demo's, before the take, reads "Blocked". Now: no "Waits on" anywhere: while siblings are open the delete child reads "Waiting for N of 6 children to land · the family's move", and once all six landed "Open to take".32 - [x] S15 The top half is open · split · bram's 403 and ines-v's clone of the layer · PASS 2026-10-08 demo, 0:04: bram got `remote: bram may not read datekit--maintainers` and a 403 in 0.3 s; ines-v's clone holds `checks/held-back/export/` (7) and `parser/` (4).33 - [x] S16 The top half is open · terminal · datekit's `.myr/visibility.ts` · PASS 2026-10-08 demo, 0:03.34 - [x] S17 The top half is open · terminal · bram's staged answer refused as `HeldBackFailed` · PASS 2026-10-08 dev-oscabriel (`datekit-805`), 0:49: status read `refused: HeldBackFailed` 28 s after the push. The note holds `HeldBackFailed` in `export`, with export 6/7 and parser 4/4. Its `suite` is one value for both areas, and the ledger published another root for each (an open finding). S17 to S19 show both on screen.33-- [x] S18 The top half is open · split · the fix lands with its `Held-back:` trailer · PASS 2026-10-08 dev-oscabriel, 1:06, with the URL corrected: it landed as `784740a` 41 s after the push, its last trailers `Held-back: export 7/7 @ sha256:…; parser 4/4 @ sha256:…`. The violet trailer is on the answer's page; the project page's landing list shows only the credit and `Assisted-by`, so the shot now opens `/datekit/answers/format-ordinal`.34-- [x] S19 The top half is open · web · the ledger: "Open with sealed evidence" · PASS 2026-10-08 demo, 0:05: the maintainers layer, "export: 7 sealed checks by 3 people", "parser: 4 sealed checks by 3 people", both admitted.35-- [x] S20 The top half is open · split · `.env.schema` beside the env shape page · PASS 2026-10-08 demo, 0:05: `SENTRY_AUTH_TOKEN`, sensitive, proxy `sentry.io` (only paths `/api/**`), "set by ines-v" after the pre-flight's `env set`.36-- [x] S21 The maintainer's day · web · Today as okafor · FAILED: okafor cannot sign in on the web. The web's only sign-in is the platform's handle and password, okafor has no account, and sign-up refuses a handle that `SESSION_TOKENS` holds. So no seeded person can open Today on the web, on either stage. fallback: `myr today --project burrow` as okafor, walked on `dev-oscabriel`: dec-000001, the reasoned escape, with its words, default `decline` and expiry, in 0:01.37-- [x] S22 The maintainer's day · web · the front page after the swarm · PASS 2026-10-08 demo (the fresh front page) and dev-oscabriel (`burrow-swarm-2` after six landings: six answers listed, the delete child open).35+- [x] S18 The top half is open · split · the fix lands with its `Held-back:` trailer · PASS 2026-10-08 dev-oscabriel, 1:06, with the URL corrected: it landed as `784740a` 41 s after the push, its last trailers `Held-back: export 7/7 @ sha256:…; parser 4/4 @ sha256:…`. The violet trailer is on the answer's page; the project page's landing list shows only the credit and `Assisted-by`, so the shot now opens `/datekit/answers/format-ordinal`. Now: the project page's inspector lists its last three landings as one-line credits; the trailer is still on the answer's page.36+- [x] S19 The top half is open · web · the ledger: "Open with sealed evidence" · PASS 2026-10-08 demo, 0:05: the maintainers layer, "export: 7 sealed checks by 3 people", "parser: 4 sealed checks by 3 people", both admitted. Now: the ledger's head sentence reads "Open with sealed evidence. export: 7 sealed checks by 3 people; parser: 4 sealed checks by 3 people."; the platform's whole label stays in the inspector's Posture block.37+- [x] S20 The top half is open · split · `.env.schema` beside the env shape page · PASS 2026-10-08 demo, 0:05: `SENTRY_AUTH_TOKEN`, sensitive, proxy `sentry.io` (only paths `/api/**`), "set by ines-v" after the pre-flight's `env set`. Now: the sensitive item is listed first, "set by ines-v" on its own line; the caption and its varlock link are kept.38+- [x] S21 The maintainer's day · web · Today as okafor · FAILED: okafor cannot sign in on the web. The web's only sign-in is the platform's handle and password, okafor has no account, and sign-up refuses a handle that `SESSION_TOKENS` holds. So no seeded person can open Today on the web, on either stage. fallback: `myr today --project burrow` as okafor, walked on `dev-oscabriel`: dec-000001, the reasoned escape, with its words, default `decline` and expiry, in 0:01. Now: Today's budget is one sentence ("Decisions: 2 taken, 3 left today. Finishes are counted apart: none taken."), decisions sit under Due today and Within your budget, and each choice has its consequence under it.39+- [x] S22 The maintainer's day · web · the front page after the swarm · PASS 2026-10-08 demo (the fresh front page) and dev-oscabriel (`burrow-swarm-2` after six landings: six answers listed, the delete child open). Now: the family is one row with its count; its delete node reads open to take once all six land.40 - [x] S23 The maintainer's day · terminal · `myr why` on a migrated line · PASS 2026-10-08 dev-oscabriel (`burrow-805`), 0:05: after `git pull`, `myr why packages/auth/src/session.ts:18` named landing `4f7430c`, the ask, tamsin, okafor and the verdict. The fallback is corrected: in `~/demo/datekit` the agent's own commit sits on main, so `why` names that commit, not the landing. A fresh clone gave the landing, with its `Assisted-by` and `Held-back`.41 - [x] S24 Measured numbers · terminal · the README's Numbers table · PASS 2026-10-08 (the repo), with a command corrected: `-A 14` stopped one row short of the core loop table's "the whole loop"; `-A 15` shows the table whole.42 - [x] S25 Measured numbers · terminal · an anonymous clone: trailers, then the notes fetch · PASS 2026-10-08 dev-oscabriel (`datekit-805`, after S03), 0:03: the log shows the credit trailers, and the note comes only with the extra fetch. On demo before the take, the fetch says `couldn't find remote ref refs/notes/myr`, since nothing has landed there yet: keep S25 after S17, S18 and S03, as the recording order does.41-- [x] S26 Measured numbers · web · the closing line over datekit's page · PASS 2026-10-08 demo, 0:04.43+- [x] S26 Measured numbers · web · the closing line over datekit's page · PASS 2026-10-08 demo, 0:04. Now: datekit's page is its asks, then the README, its first sentence the lede under the title; there is no code table and no clone box.44 45 ## Pre-flight46 47 On the morning of the take, in this order.92 unmodified linesmodified:docs/demo/shot-list.md+9 added-9 removed
9 unmodified lines10 People on screen are the fictional examples' people. Each terminal acts as one of them through a CLI profile, chosen with `export MYR_PROFILE=<handle>`; git's credential helper reads the same profile, so no token is ever typed, shown or put in a URL. The profiles are logged in before the take (rehearsal pre-flight). Clones live under `~/demo/`.11 12 | id | beat | screen | run or open | preconditions | fallback |13 | --- | --- | --- | --- | --- | --- |14-| S01 | The front door broke | web | `https://web-demo.oscargabriel.workers.dev/` | Fresh seed: datekit's three asks and burrow's six children open. Signed out. Browser at 1280 px, one colour scheme for every take. | The front page screenshot from the Playwright check of the deployed web, captioned as a still. |15-| S02 | The front door broke | web | `https://web-demo.oscargabriel.workers.dev/datekit/asks/format-ordinal` | As S01; format-ordinal is open and held for newcomers, with okonkwo as mentor. | The page's Markdown at the same URL plus `.md`, or its screenshot. |14+| S01 | The front door broke | web | `https://web-demo.oscargabriel.workers.dev/` | Fresh seed: datekit's three asks and burrow's six children open. Signed out. Browser at 1280 px (the video's 110% zoom keeps the rail and the inspector), one colour scheme for every take. The context bar reads "10 open asks, 8 open to take"; each project's group header says its posture once; burrow's family is one row, "0 of 6 landed", with "Show 6 children"; the inspector shows "Start here" until a row is selected (`j`), then that ask's facts with its claim command numbered 1. | The front page screenshot from the Playwright check of the deployed web, captioned as a still. |15+| S02 | The front door broke | web | `https://web-demo.oscargabriel.workers.dev/datekit/asks/format-ordinal` | As S01; format-ordinal is open and held for newcomers, with okonkwo as mentor: the status line under the title, and the inspector's Take it block, reads "Held for newcomers, mentored by okonkwo". | The page's Markdown at the same URL plus `.md`, or its screenshot. |16 | S03 | Zero install | split | `cd ~/demo`, `git clone https://platform-demo.oscargabriel.workers.dev/datekit.git`, `cd datekit`, `export MYR_PROFILE=bram`, then `claude "Take the open ask add-months-clamp on this project and land an answer. Also add a line about the change to README.md." --model haiku --allowedTools "Bash(myr:*) Bash(git:*) Bash(bun:*) Bash(cat:*) Bash(ls:*) Bash(head:*) Bash(tail:*) Bash(sleep:*) Read Edit Write Glob Grep" --strict-mcp-config --setting-sources project,local`. Beside it, the answer's page once claimed: `https://web-demo.oscargabriel.workers.dev/datekit/answers/add-months-clamp` | Stock Claude Code: no plugin, MCP server or skill for this directory; its own login. The CLI on `PATH` from the demo platform's install line. datekit's main carries AGENTS.md with the generated contribute block. Profile `bram` logged in. bram already landed format-ordinal (S17, S18 are recorded first), which is why he takes add-months-clamp here. | Re-run with `--model sonnet`. Then the transcript of the dev-stage zero-install run, captioned with its date and stage. |17 | S04 | Zero install | terminal | In Claude Code's pane, the agent's own `git push myr HEAD:main`, refused in git's remote lines | S03 running. The `remote:` lines carry `OutOfScope` with README.md, its `next` and `retryable: no`. Staged: the prompt asked for the README line. | If the agent meets the refusal in `myr check` instead and never pushes it, keep that (same words, same renderer) and add S05. |18 | S05 | Zero install | terminal | `cd ~/demo`, `git clone https://platform-demo.oscargabriel.workers.dev/datekit.git datekit-hand`, `cd datekit-hand`, `export MYR_PROFILE=bram`, `myr claim parse-iso-week --project datekit`, `git remote add myr <remote>` (the remote the claim printed), `git push myr HEAD:main`, then `myr release parse-iso-week --project datekit` | Staged, by hand: one line added to README.md and committed (`git commit -am "Mention week dates in the README"`) before the push. parse-iso-week open and unclaimed. Recorded before S03. | Skip it; S04's `myr check` output carries the same refusal. |19 | S06 | Zero install | split | `cd ~/demo/datekit`, `git fetch origin`, `git log -1 --format=%B origin/main`; beside it `https://web-demo.oscargabriel.workers.dev/datekit/answers/add-months-clamp` | S03 landed. The commit's trailers: `Asked-by`, `Signed-off-by: bram`, and `Assisted-by: claude-code:…` apart. | `myr status --project datekit` as bram, which names the landed commit. |20-| S07 | One weed becomes a rule | web | `https://web-demo.oscargabriel.workers.dev/burrow` | Fresh seed: drop-legacy-fetch split into six children, one per package, and drop-legacy-fetch-delete waiting on all six. | `myr asks --project burrow` in a terminal. |20+| S07 | One weed becomes a rule | web | `https://web-demo.oscargabriel.workers.dev/burrow` | Fresh seed: drop-legacy-fetch split into six children, one per package, and drop-legacy-fetch-delete waiting on all six. The project's page is its asks: the family's row expanded, its six children listed under the fan and the delete node reading "delete waits for 6"; the inspector says how a change lands here. | `myr asks --project burrow` in a terminal. |21 | S08 | One weed becomes a rule | terminal | `cd ~/demo`, `git clone https://platform-demo.oscargabriel.workers.dev/burrow.git`, `cd burrow`, `git show HEAD:.myr/project.ts` | The ratchet block on screen: `no-module-level-mutable-state`, counted by `bun run lint --format json`. | `examples/burrow/.myr/project.ts` in the editor, the same file. |22 | S09 | One weed becomes a rule | terminal | From the repo root: `bun run swarm -- --stage demo --project burrow --scenario video --dry-run --allow-demo` | The swarm is built. The plan prints six rows on four harnesses, the held delete child, and both nudges in full. It makes no claim and needs no token. | The same plan from the dev stage (`--stage dev-oscabriel` on a fresh copy of burrow), captioned with its stage. |23 | S10 | One weed becomes a rule | split | Cut from S12, in the pane of the contributor nudged that a disable comment is acceptable: its `git push myr HEAD:main`, refused in git's remote lines | S12 running. The `remote:` lines carry `Weakened` with the marker and its line. Staged by the nudge S09 printed. | That pane's re-prompt, where the run hands the rendered refusal back to the session. If the agent never adds the comment, cut S10 and its line in the narration. |24 | S11 | One weed becomes a rule | web | `https://web-demo.oscargabriel.workers.dev/burrow/answers/<child>`, the child being the ask S09's plan gives the contributor told to give a reason | S12 running; that answer's checks passed. The page reads "Waiting on decision dec-…". Staged by the nudge. | The same outcome in that contributor's pane, from `myr status`. If the agent adds no comment, cut S11 and the line. |25 | S12 | Six harnesses at once | terminal | From the repo root: `bunx varlock run --path apps/platform/ -- bun run swarm -- --stage demo --project burrow --scenario video --view herdr --allow-demo` | Pre-flight done: herdr session `demo` open, six harnesses logged in, the six people's tokens in the stage's `SESSION_TOKENS`, burrow's family untouched. The recording lock on. | Six tiled terminals, each running the same command with `--view headless --only <handle>`. Last resort: the recorded dev-stage take, with its run's `agents.json` summary as a caption. |26-| S13 | Six harnesses at once | web | `https://web-demo.oscargabriel.workers.dev/burrow` | Open during S12; the asks update live as children are claimed and land. | Reload between cuts. |27-| S14 | Six harnesses at once | web | `https://web-demo.oscargabriel.workers.dev/burrow/asks/drop-legacy-fetch-delete` | The sixth child landed: the delete child is open. | `myr asks --project burrow` lists it open. If a child timed out, say "five of six" and keep the delete child waiting on screen. |26+| S13 | Six harnesses at once | web | `https://web-demo.oscargabriel.workers.dev/burrow` | Open during S12; the asks update live as children are claimed and land: each child's node in the fan settles once as it lands, and "n of 6 landed" moves. | Reload between cuts. |27+| S14 | Six harnesses at once | web | `https://web-demo.oscargabriel.workers.dev/burrow/asks/drop-legacy-fetch-delete` | The sixth child landed: the delete child's status line reads "Open to take" (while siblings are open it reads "Waiting for N of 6 children to land"). | `myr asks --project burrow` lists it open. If a child timed out, say "five of six" and keep the delete child waiting on screen. |28 | S15 | The top half is open | split | Left: `export MYR_PROFILE=bram`, `git clone --branch main https://platform-demo.oscargabriel.workers.dev/datekit--maintainers.git`. Right: `export MYR_PROFILE=ines-v`, the same clone, then `git -C datekit--maintainers ls-files` | Left and right in separate empty folders. bram's clone fails with `remote: bram may not read datekit--maintainers` and HTTP 403; ines-v's holds `checks/held-back/export/` (7 files) and `parser/` (4). `--branch main` because the layer's HEAD follows the first branch the seed pushed. | The dev stage's recorded clones, captioned with their stage. |29 | S16 | The top half is open | terminal | `cd ~/demo`, `git clone https://platform-demo.oscargabriel.workers.dev/datekit.git datekit-read`, `cd datekit-read`, `git show HEAD:.myr/visibility.ts` | Anonymous: no profile needed. S20 reuses this clone. | `examples/datekit/.myr/visibility.ts` in the editor. |30 | S17 | The top half is open | terminal | `cd ~/demo/datekit-bram`, `export MYR_PROFILE=bram`, `myr claim format-ordinal --project datekit`, `git remote add myr <remote>`, `git push myr HEAD:main`, `myr status --project datekit` (until refused), `git fetch myr refs/notes/myr:refs/notes/myr`, `git notes --ref=myr show HEAD` | Staged: two commits prepared on main before the take: the Do token as an ordinal (every public test passes), then the one-line change in `examples/datekit/layers/maintainers/known-bad/export.patch`, which breaks quote escaping. bram has no landing in datekit yet (format-ordinal is held for newcomers). Status reads `refused: HeldBackFailed`; the note holds `HeldBackFailed` with `area: export` and the suite. | `myr verdict format-ordinal --project datekit`: export held back 6/7. |31 | S18 | The top half is open | split | `cd ~/demo/datekit-bram`, `git revert --no-edit HEAD`, `git push myr HEAD:main`, `myr status --project datekit` (until landed), `git fetch origin`, `git log -1 --format=%B origin/main`; beside it `https://web-demo.oscargabriel.workers.dev/datekit/answers/format-ordinal` | S17 refused. The landing's trailers end with `Held-back: export 7/7 @ sha256:…; parser 4/4 @ sha256:…`, in violet on the answer's page. | The dev stage's landing with the same trailer, captioned with its stage. |32-| S19 | The top half is open | web | `https://web-demo.oscargabriel.workers.dev/datekit/ledger` | The ledger reads "Open with sealed evidence", with the maintainers layer, export's 7 sealed checks and parser's 4. | `myr ledger --project datekit` in a terminal. |32+| S19 | The top half is open | web | `https://web-demo.oscargabriel.workers.dev/datekit/ledger` | The ledger's head reads "Open with sealed evidence. export: 7 sealed checks by 3 people; parser: 4 sealed checks by 3 people.", with the maintainers layer below. | `myr ledger --project datekit` in a terminal. |33 | S20 | The top half is open | split | `cd ~/demo/datekit-read`, `git show HEAD:.env.schema`; beside it `https://web-demo.oscargabriel.workers.dev/datekit/env` | ines-v set SENTRY_AUTH_TOKEN's value before the take (rehearsal pre-flight), so the page says who set it and when. The schema shows `@sensitive` and `@proxy(domain="sentry.io", path="/api/**")`. Caption: "env shape: varlock's `.env.schema` format". | `myr env shape --project datekit`. If the video runs long, cut S20 first. |34-| S21 | The maintainer's day | web | `https://web-demo.oscargabriel.workers.dev/today` | Signed in on the web as okafor. The reasoned escape from S11 waits as a decision, with its default and expiry. | `myr today --project burrow` as okafor in a terminal. |35-| S22 | The maintainer's day | web | `https://web-demo.oscargabriel.workers.dev/` | After S12: fewer open asks, the delete child open. | The front page screenshot from the Playwright check, captioned as a still. |34+| S21 | The maintainer's day | web | `https://web-demo.oscargabriel.workers.dev/today` | Signed in on the web as okafor. The budget reads as one sentence under the title; the reasoned escape from S11 waits in its section as a decision, with its default and expiry, and selecting it shows its evidence and its choices, each with its consequence under it. | `myr today --project burrow` as okafor in a terminal. |35+| S22 | The maintainer's day | web | `https://web-demo.oscargabriel.workers.dev/` | After S12: fewer open asks; burrow's family is one row with its count, its delete node open to take. | The front page screenshot from the Playwright check, captioned as a still. |36 | S23 | The maintainer's day | terminal | `cd ~/demo/burrow`, `git pull`, `git grep -n "http.get" packages/auth/src/session.ts`, then `myr why packages/auth/src/session.ts:<line> --project burrow`, on a line number the grep printed | The burrow clone from S08. The auth child landed in S12. | `git pull` in `~/demo/datekit-read`, then `myr why src/add.ts:<line> --project datekit` there, on a line S03 landed. Not in `~/demo/datekit`: its main holds the agent's own commit, which `why` names instead of the landing. |37 | S24 | Measured numbers | terminal | In the repo root: `git grep -n -A 15 "numbers:begin" README.md` | The README's Numbers table is filled from the live runs, each number with its stage and date. | The table in the editor. |38 | S25 | Measured numbers | terminal | `cd ~/demo`, `git clone https://platform-demo.oscargabriel.workers.dev/datekit.git datekit-export`, `cd datekit-export`, `git log -3 --format=%B`, `git fetch origin refs/notes/myr:refs/notes/myr`, `git notes --ref=myr show HEAD` | Anonymous: no profile needed to clone. The log shows the credit trailers; the notes come only with the extra fetch. | The same in `~/demo/datekit`. |39-| S26 | Measured numbers | web | `https://web-demo.oscargabriel.workers.dev/datekit` | The closing line is read over it. | Any page from this take. |39+| S26 | Measured numbers | web | `https://web-demo.oscargabriel.workers.dev/datekit` | The closing line is read over it. The page is datekit's asks, then its README, whose first sentence is the lede under the title. | Any page from this take. |40 41 ## Recording order42 43 The video's order is not the order to record in. Two things set it: format-ordinal is held for newcomers, and a person with a landing in datekit is no newcomer, so bram's sealed-check answer (S17, S18) must land before his zero-install answer (S03); and the swarm (S12) changes what the front page and Today show.8 unmodified linesmodified:packages/config/test/web-wiring.test.ts+1 added-1 removed
225 unmodified lines226 it("holds each Worker it measures to limits of its own", () => {227 expect(budgets).toStrictEqual({228 "apps/platform": { entry: 1_900_000, javascript: 1_900_000 },229 "apps/sandbox": { entry: 656_000, javascript: 656_000 },230- "apps/web": { entry: 818_000, javascript: 4_075_000 },230+ "apps/web": { entry: 801_000, javascript: 4_075_000 },231 });232 expect(Object.keys(budgets).toSorted()).toStrictEqual(233 workers.map(({ dir }) => dir).toSorted()234 );23 unmodified linesmodified:scripts/startup-budget.ts+7 added-2 removed
37 unmodified lines38 * the server and the people page's reasons had landed, no limit was raised:39 * the platform's entry, its only module, measured 1,679,675 (both its40 * limits now 1,900,000, 13% above); the sandbox's 570,582 (656,000, 15%);41 * the web's entry 711,006 (818,000, 15%) and its JavaScript 3,567,68242- * (4,075,000, 14%).42+ * (4,075,000, 14%). Once the web was rebuilt as one shell with the code43+ * browser as an app, no limit was raised: the platform's entry measured44+ * 1,693,131 (1,900,000, 12%), the sandbox's 570,831 (656,000, 15%), the45+ * web's JavaScript 4,074,781 (4,075,000: no room left, until the server46+ * build is minified) and the web's entry 696,419, which fell, so its limit47+ * is tightened to 801,000 (15%).48 */49 import { BunRuntime, BunServices } from "@effect/platform-bun";50 import { Console, Data, Effect, FileSystem, Path, pipe } from "effect";51 import { ChildProcess, ChildProcessSpawner } from "effect/process";7 unmodified lines59 /** Each Worker's limits, by its folder. */60 export const budgets = {61 "apps/platform": { entry: 1_900_000, javascript: 1_900_000 },62 "apps/sandbox": { entry: 656_000, javascript: 656_000 },58- "apps/web": { entry: 818_000, javascript: 4_075_000 },63+ "apps/web": { entry: 801_000, javascript: 4_075_000 },64 } as const satisfies Record<string, Budget>;65 66 /**67 * Each Worker, the file its `main` bundles to, and the build a dry run needs131 unmodified linesmodified:AGENTS.md+5 added-5 removed
11 unmodified lines12 13 | # | Principle | Held by |14 | --- | --- | --- |15 | 1 | **Encode lessons in structure; prose is the last rung.** When a mistake repeats, make it unrepresentable, then a lint or a test. | No fence |16-| 2 | **Parse at the boundary, trust inside.** Decode every external input (HTTP, git, DO RPC, WebSocket, rule facts, env) with Effect Schema; inside, use branded types (`AskId`, `LandedSha`, `PatchId`). Decode the Worker `env` once, in one Layer. | The Effect diagnostics at error in `tsconfig.base.json`; `anti-slop/no-unknown-parameters`, `anti-slop/no-widen-then-assert` and `anti-slop/require-safety-comment-for-type-assertion`; `apps/platform/test/platform.test.ts` (a bad env fails at start, decoded once in `apps/platform/src/platform.ts`); `apps/platform/test/bindings.test.ts` (the decoded bindings, vars and secrets equal each wrangler.jsonc block's, the `AI` binding, `DRAFT_LIMIT`, `DRAFT_MODEL`, `PUBLIC_WEB_URL` and the code store's `CODE_CACHE` among them, and each port's factory takes its binding as the generated Env types it, without a cast); `packages/project/test/code-history.test.ts` (a kept code-history value is decoded with Schema when read, and one that no longer decodes is computed again) |16+| 2 | **Parse at the boundary, trust inside.** Decode every external input (HTTP, git, DO RPC, WebSocket, rule facts, env) with Effect Schema; inside, use branded types (`AskId`, `LandedSha`, `PatchId`). Decode the Worker `env` once, in one Layer. | The Effect diagnostics at error in `tsconfig.base.json`; `anti-slop/no-unknown-parameters`, `anti-slop/no-widen-then-assert` and `anti-slop/require-safety-comment-for-type-assertion`; `apps/platform/test/platform.test.ts` (a bad env fails at start, decoded once in `apps/platform/src/platform.ts`); `apps/platform/test/bindings.test.ts` (the decoded bindings, vars and secrets equal each wrangler.jsonc block's, the `AI` binding, `DRAFT_LIMIT`, `DRAFT_MODEL`, `PUBLIC_WEB_URL` and the code store's `CODE_CACHE` among them, and each port's factory takes its binding as the generated Env types it, without a cast); `packages/project/test/code-history.test.ts` (a kept code-history value is decoded with Schema when read, and one that no longer decodes is computed again); `packages/project/test/code.test.ts` (a kept commit that no longer decodes is computed again); `apps/web/test/dev-fixtures.test.ts` (the dev world's fixture record is decoded through the protocol's schemas when the world is built, so every case reads only a record that decodes) |17 | 3 | **Refusals are a closed `Schema.TaggedError` union and a public contract.** Handle them with `Match.exhaustive` or `catchTags`. Each carries a `retryable` and a `next` command fixed per tag, an optional `at`, and no `message` field. A `_tag` is renamed only with an alias. `protocol/render` is the one renderer for git `remote:`, CLI and MCP text. Stage-1 refusals accumulate. | `packages/protocol/test/refusal.test.ts` and `packages/protocol/test/render.test.ts` (every tag, the code reads' and drafting's `UnknownPath`, `UnknownRevision`, `UnknownProposal`, `ProposalClosed` and `DraftInProgress` included; a limit's refusal names its kind and its wait, and a ref outside `refs/heads/` reads as one the platform writes); `packages/agent-kit/test/full-llms.test.ts` (every tag in the union has a row in `/llms-full.txt`); `packages/protocol/test/mcp.test.ts` (a refusal from tools/call keeps its tag); `anti-slop-effect/prefer-effect-match` and `anti-slop-effect/no-manual-tag-comparison`; `packages/gate/test/shape.test.ts` (one push hears every stage-1 refusal at once); `apps/platform/test/mcp.test.ts` (each refusing MCP contract comes back as its exact refusal, `draftAsk`, `showProposal` and a code read's `UnknownPath` included); `apps/platform/test/workflows/draft.test.ts` (past the draft limit, `CapReached`); `apps/cli/test/policy.test.ts`; `apps/cli/test/local/check.test.ts` (the local check gives the gateway's stage-1 refusals for the same commit) |18-| 4 | **One schema, many surfaces.** Change `packages/protocol`; every surface derives from it. Projections live only in `apps/*/src/surfaces.ts`. The CLI's command list is `commandDocs` in `@repo/agent-kit`, which the platform's skill, the CLI's MCP prompt and the web's `llms.txt` all read. | `apps/cli/test/commands-doc.test.ts` (the command list against the real CLI's commands, flags and positionals, `policy`, `ask draft` and `proposal` included); `packages/protocol/test/mcp.test.ts` (every MCP tool's schemas, with no JSON Schema leak, the policy and drafting contracts included; the five capped code reads are tools, `showCommit` and `listPaths` are not); `apps/web/test/agents.test.tsx` (every snippet on the Agents page is `@repo/agent-kit`'s text); `packages/agent-kit/test/full-llms.test.ts` (one `ProjectEvent` line per tag); `apps/platform/test/home.test.ts` (the platform's `/` in Markdown is the web's `llms.txt`, one text from `@repo/agent-kit`); per-package `allowedUnstableApis` with `unstableApiUsage` at error |18+| 4 | **One schema, many surfaces.** Change `packages/protocol`; every surface derives from it. Projections live only in `apps/*/src/surfaces.ts`. The CLI's command list is `commandDocs` in `@repo/agent-kit`, which the platform's skill, the CLI's MCP prompt and the web's `llms.txt` all read. | `apps/cli/test/commands-doc.test.ts` (the command list against the real CLI's commands, flags and positionals, `policy`, `ask draft` and `proposal` included); `packages/protocol/test/mcp.test.ts` (every MCP tool's schemas, with no JSON Schema leak, the policy and drafting contracts included; the five capped code reads are tools, `showCommit` and `listPaths` are not); `apps/web/test/agents.test.tsx` (every snippet, command, endpoint, limit and refusal on the For agents page is `@repo/agent-kit`'s or the union's); `apps/web/test/llms.test.ts` (`/` and `/<project>` asked for Markdown answer with the `llms.txt` texts, and their HTML names that Markdown as an alternate); `packages/agent-kit/test/full-llms.test.ts` (one `ProjectEvent` line per tag); `apps/platform/test/home.test.ts` (the platform's `/` in Markdown is the web's `llms.txt`, one text from `@repo/agent-kit`); per-package `allowedUnstableApis` with `unstableApiUsage` at error |19 | 5 | **The name lives only in `packages/brand`.** Internal packages use `@repo/*`. DO classes, Workflows, queues and databases carry job names. | `brand:check` (`scripts/brand.ts`, tested by `packages/brand/test/leaks.test.ts`) |20-| 6 | **Pure core, thin hosts.** Only `@repo/artifacts` calls Artifacts. Each beta dependency sits behind one job-named port with a `/memory` adapter in the owning package. Apps import packages only. Worker code stays free of `node:child_process`, `@effect/platform-bun` and OpenTUI. `rules` and `gate` run in both Workers and Bun. `alchemy/*` stays in `infra/`. No module-level mutable state in a package's `src/`. | Scoped `allowedUnstableApis`; `packages/artifacts/test/repo-host-contract.ts` (one RepoHost contract every adapter passes); `apps/platform/test/bindings.test.ts` and `apps/platform/test/worker-init.test.ts` (the Worker starts on its real adapters, composed in `apps/platform/src/ports.ts`); `apps/platform/test/router-build.test.ts` (both handlers are built when the Worker module loads, with no binding touched, and a layer that awaits a promise while it is built is refused there); `apps/web/test/production-bundle.test.ts` (no dev-world module in the web's production build); `packages/config/test/cartridge.test.ts` (the visibility cartridge is plugged in by one marked line and reached by nothing else, so removing it is a deletion); `packages/drafting/test/memory.test.ts` (the `Drafter` port's `/memory` adapter, `packages/drafting/src/drafter/memory.ts`) and `packages/drafting/test/binding.test.ts` (its Workers AI adapter over the `AI` binding); `packages/project/test/code-store.test.ts` (the `CodeStore` port's `/memory` adapter, `packages/project/src/code-store/memory.ts`, and its R2 adapter over `CODE_CACHE`, whose failures are misses, never the read's); `apps/platform/test/code-reads.test.ts` and `apps/web/test/dev-backend.test.ts` (the platform and the web's dev world answer the code reads and raw files alike, both through `@repo/project/code`); `packages/project/test/standing-posture.test.ts` (one helper, `withStandingPosture`, gives a listing each project's own posture, for the platform and the web's dev world alike). No fence: import direction and module-level state |21-| 7 | **Deny by default for visibility.** Land the answer's tree, never the composed tree. Nothing from a layer enters a public tree. Snapshot before held-back files are written. Public-serving Workers have no private-namespace binding. Public commits, trailers, notes and errors name public paths only. | `PrivatePathInPublicTree`, one rule for the gate's stage 1 and the landing guard (`packages/gate/test/shape.test.ts`, `packages/visibility/test/guards.test.ts`); `apps/platform/test/visibility/layer-gateway.test.ts` (only a layer's readers clone it, every read is logged, a fork push cannot carry its paths); `apps/sandbox/test/held-back.test.ts` (egress off and the snapshot taken before any sealed file is written; one bit per area, no output); `apps/platform/test/visibility/held-back.test.ts` (the `Held-back:` trailer, the landing guards, no stored value in a note or a kept log); `apps/platform/test/bindings.test.ts`; `apps/sandbox/test/checker.test.ts` (no snapshot once the held-back slot is reached); `apps/web/test/env.test-d.ts` (the web's Env has no private-namespace, Artifacts or `CODE_CACHE` binding) and `apps/platform/test/env.test-d.ts` (only the platform's has both); `packages/project/test/code-raw.test.ts` and `apps/platform/test/raw.test.ts` (raw bytes under `nosniff` and the sandboxing CSP, refusals included); `apps/platform/test/code-reads.test.ts` (no code read's payload names a repo); `packages/project/test/code-history.test.ts` (the code store is keyed under the project's canonical repo alone and holds no landing); `apps/platform/test/w9-contracts.test.ts` (`projectPolicy` answers without the policy's layers or asks, and `packages/config/test/cartridge.test.ts` keeps the cartridge removable); `packages/drafting/test/prompt.test.ts` (a draft's prompt never carries a layer's name, repo, reason or paths); `apps/web/test/markdown.test.tsx` (a README's script, handlers, unsafe URLs, iframes, styles and forms never reach the page); `apps/platform/test/gateway.test.ts` and `packages/gate/test/parse.test.ts` (a fork takes branches only: its notes, tags and the platform's refs are refused); `apps/platform/test/visibility/posture-listing.test.ts` and `apps/platform/test/home.test.ts` (the project list and the platform's `/` show the posture the project's ledger shows) |22-| 8 | **Deterministic and idempotent.** Rule evaluation sees frozen time and randomness and only injected facts. Re-running an operation converges. Check results are keyed by (tree SHA, check version), push events deduped by (repo, sha), and land requests carry a `requestId`. | `globalDate`, `globalRandom`, `globalTimers` and `cryptoRandomUUID` at error, with their in-Effect twins; `packages/rules/test/replay.test.ts`; `packages/project/test/project-store.contract.ts`; `packages/project/test/claim.model.test.ts` and `packages/project/test/landing.model.test.ts`; `apps/platform/test/workflows/answer.test.ts`; `apps/platform/test/workflows/on-push.test.ts`; `apps/platform/test/core-loop.test.ts`; `apps/platform/test/workflows/draft.test.ts` (a replayed draft round asks the model nothing more, and each round is its own instance); `packages/project/test/code.test.ts` (code reads cached by object id, only once finished, while `main` resolves every time); `packages/project/test/drafting.model.test.ts` (a settle of a stale round changes nothing); `packages/project/test/import.test.ts` (a retried import adopts the repo it made); `packages/project/test/code-history.test.ts` (a why and a path's history are kept by commit, path hash and algorithm version, and the store, a step from a kept ancestor and a whole walk agree); `packages/config/test/smoke-loop.test.ts` (smoke's throwaway project is in the ledger before init makes it, and a taken name stops before anything is made). No fence: one push deduped by (repo, sha) across the gateway's record and OnPush's |20+| 6 | **Pure core, thin hosts.** Only `@repo/artifacts` calls Artifacts. Each beta dependency sits behind one job-named port with a `/memory` adapter in the owning package. Apps import packages only. Worker code stays free of `node:child_process`, `@effect/platform-bun` and OpenTUI. `rules` and `gate` run in both Workers and Bun. `alchemy/*` stays in `infra/`. No module-level mutable state in a package's `src/`. | Scoped `allowedUnstableApis`; `packages/artifacts/test/repo-host-contract.ts` (one RepoHost contract every adapter passes); `apps/platform/test/bindings.test.ts` and `apps/platform/test/worker-init.test.ts` (the Worker starts on its real adapters, composed in `apps/platform/src/ports.ts`); `apps/platform/test/router-build.test.ts` (both handlers are built when the Worker module loads, with no binding touched, and a layer that awaits a promise while it is built is refused there); `apps/web/test/production-bundle.test.ts` (no dev-world module in the web's production build, and no chunk every page preloads holds the Markdown renderer, under a gzip ceiling); `packages/config/test/cartridge.test.ts` (the visibility cartridge is plugged in by one marked line and reached by nothing else, so removing it is a deletion); `packages/drafting/test/memory.test.ts` (the `Drafter` port's `/memory` adapter, `packages/drafting/src/drafter/memory.ts`) and `packages/drafting/test/binding.test.ts` (its Workers AI adapter over the `AI` binding); `packages/project/test/code-store.test.ts` (the `CodeStore` port's `/memory` adapter, `packages/project/src/code-store/memory.ts`, and its R2 adapter over `CODE_CACHE`, whose failures are misses, never the read's); `apps/platform/test/code-reads.test.ts` and `apps/web/test/dev-backend.test.ts` (the platform and the web's dev world answer the code reads and raw files alike, both through `@repo/project/code`); `packages/project/test/standing-posture.test.ts` (one helper, `withStandingPosture`, gives a listing each project's own posture, for the platform and the web's dev world alike, through the `StandingPostures` port whose default keeps nothing; its D1 adapter is the platform's); `apps/web/test/seeded.test.tsx` (a loader's read seeds a registry of its own page and leaves the registry every request shares as it was); `apps/web/test/shell.test.tsx` (no plain anchor between the web's pages: every link is the router's). No fence: import direction and module-level state |21+| 7 | **Deny by default for visibility.** Land the answer's tree, never the composed tree. Nothing from a layer enters a public tree. Snapshot before held-back files are written. Public-serving Workers have no private-namespace binding. Public commits, trailers, notes and errors name public paths only. | `PrivatePathInPublicTree`, one rule for the gate's stage 1 and the landing guard (`packages/gate/test/shape.test.ts`, `packages/visibility/test/guards.test.ts`); `apps/platform/test/visibility/layer-gateway.test.ts` (only a layer's readers clone it, every read is logged, a fork push cannot carry its paths); `apps/sandbox/test/held-back.test.ts` (egress off and the snapshot taken before any sealed file is written; one bit per area, no output); `apps/platform/test/visibility/held-back.test.ts` (the `Held-back:` trailer, the landing guards, no stored value in a note or a kept log); `apps/platform/test/bindings.test.ts`; `apps/sandbox/test/checker.test.ts` (no snapshot once the held-back slot is reached); `apps/web/test/env.test-d.ts` (the web's Env has no private-namespace, Artifacts or `CODE_CACHE` binding) and `apps/platform/test/env.test-d.ts` (only the platform's has both); `packages/project/test/code-raw.test.ts` and `apps/platform/test/raw.test.ts` (raw bytes under `nosniff` and the sandboxing CSP, refusals included); `apps/platform/test/code-reads.test.ts` (no code read's payload names a repo); `packages/project/test/code-history.test.ts` (the code store is keyed under the project's canonical repo alone and holds no landing); `apps/platform/test/w9-contracts.test.ts` (`projectPolicy` answers without the policy's layers or asks, and `packages/config/test/cartridge.test.ts` keeps the cartridge removable); `packages/drafting/test/prompt.test.ts` (a draft's prompt never carries a layer's name, repo, reason or paths); `apps/web/test/markdown.test.tsx` (a README's script, handlers, unsafe URLs, iframes, styles and forms never reach the page); `apps/platform/test/gateway.test.ts` and `packages/gate/test/parse.test.ts` (a fork takes branches only: its notes, tags and the platform's refs are refused); `apps/platform/test/visibility/posture-listing.test.ts` and `apps/platform/test/home.test.ts` (the project list and the platform's `/` show the posture the project's ledger shows); `apps/web/test/ledger.test.tsx` (the ledger page adds no path, check name or file name) and `apps/web/test/env.test.tsx` (the env page shows no value and no control to set or read one); `apps/platform/test/pages.test.ts` (the sign-in page, as an MCP client's consent, escapes every value a client supplies) |22+| 8 | **Deterministic and idempotent.** Rule evaluation sees frozen time and randomness and only injected facts. Re-running an operation converges. Check results are keyed by (tree SHA, check version), push events deduped by (repo, sha), and land requests carry a `requestId`. | `globalDate`, `globalRandom`, `globalTimers` and `cryptoRandomUUID` at error, with their in-Effect twins; `packages/rules/test/replay.test.ts`; `packages/project/test/project-store.contract.ts`; `packages/project/test/claim.model.test.ts` and `packages/project/test/landing.model.test.ts`; `apps/platform/test/workflows/answer.test.ts`; `apps/platform/test/workflows/on-push.test.ts`; `apps/platform/test/core-loop.test.ts`; `apps/platform/test/workflows/draft.test.ts` (a replayed draft round asks the model nothing more, and each round is its own instance); `packages/project/test/code.test.ts` (code reads cached by object id, only once finished, while `main` resolves every time, and a commit's diff kept by its SHA without its landing); `packages/project/test/drafting.model.test.ts` (a settle of a stale round changes nothing); `packages/project/test/import.test.ts` (a retried import adopts the repo it made); `packages/project/test/code-history.test.ts` (a why and a path's history are kept by commit, path hash and algorithm version, and the store, a step from a kept ancestor and a whole walk agree); `packages/config/test/smoke-loop.test.ts` (smoke's throwaway project is in the ledger before init makes it, and a taken name stops before anything is made); `apps/web/test/events.test.ts` (the web's fold of a project's events gives the same map when an event is heard twice or out of order, and a replay that already holds a landing stamps nothing); `packages/project/test/standing-posture.test.ts` (a kept posture is read again only for the project whose event the projection applied, or once its instant has come). No fence: one push deduped by (repo, sha) across the gateway's record and OnPush's |23 | 9 | **Effect v4 only.** Read `node_modules/effect/src` as API truth. Off limits: `effect/unstable/*`, v3 `@effect/platform` and `@effect/cli`, and `effect/workflow` or `effect/cluster` on Workers. | `outdatedApi`; `no-restricted-imports` |24 | 10 | **Escapes need a reason.** Every `oxlint-disable`, `@effect-diagnostics` or `@ts-expect-error` carries its reason after `--`, and is added only where no idiomatic code does the job. | `check` fails on an unused directive. No fence: the reason |25 | 11 | **`bun run verify` is the authority.** Deploy only to an explicit stage, after `verify`, with smoke after. A red gate is fixed, never deployed around. | `packages/config/test/verify.test.ts` (verify's steps); `infra/deploy.ts` refuses without a known stage, runs `verify` first and `scripts/smoke.ts` after (`packages/config/test/deploy.test.ts`, `packages/config/test/smoke.test.ts`), and refuses every deploy while `infra/.recording` is there (`packages/config/test/recording.test.ts`) |26 | 12 | **Lifecycles are pure transitions.** `transition(state, command, now)`. Per DO call: hydrate, transition, persist, settle. Deadlines run on DO alarms. Call them lifecycles. | `globalTimers` and `globalTimersInEffect`; `packages/project/test/claim.model.test.ts` and `packages/project/test/landing.model.test.ts` (model tests over effect/Arbitrary histories, each seen catching its planted bug); `packages/project/test/drafting.model.test.ts` (a proposal's `DraftCommand.DraftStarted` and `DraftSettled` over generated histories; a Ready round's files survive a later failed round); `apps/platform/test/project-do.test.ts`. No fence: `Effect.sleep` and `Effect.delay` in `packages/project/src` |122 unmodified linesmodified:DESIGN.md+295 added-129 removed
1 ---2 name: Myr web3-description: Every page is a signed test report for a change.3+description: The gate's control room. What state a change is in, whose move it is, and the command that runs next.4 colors:5 paper: "#f5f8fa"6 paper-dark: "#0e1114"7 ink: "oklch(0.21 0.015 258)"7 unmodified lines15 rule: "oklch(0.86 0.007 255)"16 rule-dark: "oklch(0.33 0.01 258)"17 rule-strong: "oklch(0.21 0.015 258)"18 rule-strong-dark: "oklch(0.94 0.005 258)"19+ input: "oklch(0.62 0.01 258)"20+ input-dark: "oklch(0.55 0.01 258)"21+ skeleton: "oklch(0.8 0.008 255)"22+ skeleton-dark: "oklch(0.36 0.01 258)"23 landed: "oklch(0.47 0.11 155)"24 landed-dark: "oklch(0.78 0.13 155)"25 checking: "oklch(0.48 0.13 252)"26 checking-dark: "oklch(0.76 0.11 250)"2 unmodified lines29 refused: "oklch(0.5 0.18 27)"30 refused-dark: "oklch(0.73 0.15 25)"31 sealed: "oklch(0.46 0.13 305)"32 sealed-dark: "oklch(0.76 0.11 305)"33+ syntax-string: "oklch(0.42 0.035 200)"34+ syntax-string-dark: "oklch(0.8 0.035 200)"35+ syntax-constant: "oklch(0.42 0.035 110)"36+ syntax-constant-dark: "oklch(0.82 0.035 110)"37+ syntax-comment: "oklch(0.42 0.012 258)"38+ diff-add-sign: "oklch(0.51 0.09 195)"39+ diff-add-sign-dark: "oklch(0.74 0.08 195)"40+ diff-del-sign: "oklch(0.51 0.12 345)"41+ diff-del-sign-dark: "oklch(0.72 0.1 345)"42 typography:43 headline:44 fontFamily: "Public Sans, ui-sans-serif, system-ui, sans-serif"32- fontSize: "1.75rem"45+ fontSize: "1.5rem"46 fontWeight: 60034- lineHeight: "2.2rem"35- letterSpacing: "-0.02em"47+ lineHeight: "2rem"48+ letterSpacing: "-0.015em"49 title:50 fontFamily: "Public Sans, ui-sans-serif, system-ui, sans-serif"51 fontSize: "1.1875rem"52 fontWeight: 60040- lineHeight: "1.65rem"53+ lineHeight: "1.6rem"54 letterSpacing: "-0.01em"55+ want:56+ fontFamily: "Public Sans, ui-sans-serif, system-ui, sans-serif"57+ fontSize: "1rem"58+ fontWeight: 50059+ lineHeight: "1.5rem"60 body:61 fontFamily: "Public Sans, ui-sans-serif, system-ui, sans-serif"62 fontSize: "1rem"63 fontWeight: 40064 lineHeight: "1.55rem"47- small:65+ ui:66 fontFamily: "Public Sans, ui-sans-serif, system-ui, sans-serif"67 fontSize: "0.875rem"68 fontWeight: 40051- lineHeight: "1.35rem"69+ lineHeight: "1.3rem"70 label:71 fontFamily: "Public Sans, ui-sans-serif, system-ui, sans-serif"54- fontSize: "0.75rem"72+ fontSize: "0.8125rem"73 fontWeight: 50056- lineHeight: "1.1rem"57- transcript:74+ lineHeight: "1.15rem"75+ mono:76 fontFamily: "JetBrains Mono, ui-monospace, monospace"77 fontSize: "0.8125rem"78 fontWeight: 40079+ lineHeight: "1.25rem"80+ fontFeature: "\"calt\" 0, \"liga\" 0"81+ terminal:82+ fontFamily: "JetBrains Mono, ui-monospace, monospace"83+ fontSize: "0.8125rem"84+ fontWeight: 40085 lineHeight: "1.5rem"86+ code:87+ fontFamily: "JetBrains Mono, ui-monospace, monospace"88+ fontSize: "0.8125rem"89+ fontWeight: 40090+ lineHeight: "20px"91+ fontFeature: "\"calt\" 0, \"liga\" 0"92 rounded:93 none: "0px"94 sm: "1px"95 md: "2px"96 spacing:67- cell: "6px 8px"68- row: "12px"69- gutter: "16px"70- gutter-wide: "24px"71- section: "32px"97+ hairline: "1px"98+ row-y: "10px"99+ gutter-phone: "16px"100+ gutter-tablet: "20px"101+ gutter-shell: "24px"102+ region: "32px"103+ measure: "56rem"104+ rail: "15rem"105+ inspector: "19rem"106 components:107+ context-bar:108+ backgroundColor: "{colors.paper}"109+ textColor: "{colors.ink}"110+ typography: "{typography.ui}"111+ height: "44px"112+ toolbar:113+ backgroundColor: "{colors.paper}"114+ textColor: "{colors.ink}"115+ typography: "{typography.ui}"116+ height: "40px"117+ row:118+ textColor: "{colors.ink}"119+ typography: "{typography.want}"120+ padding: "10px 0"121+ height: "64px"122+ row-selected:123+ backgroundColor: "{colors.surface}"124+ textColor: "{colors.ink}"125+ typography: "{typography.want}"126+ height: "64px"127+ row-group-header:128+ backgroundColor: "{colors.paper}"129+ textColor: "{colors.ink}"130+ typography: "{typography.ui}"131+ height: "32px"132+ rail-item-current:133+ backgroundColor: "{colors.surface}"134+ textColor: "{colors.ink}"135+ typography: "{typography.ui}"136+ height: "32px"137+ bottom-bar:138+ backgroundColor: "{colors.paper}"139+ textColor: "{colors.muted}"140+ typography: "{typography.label}"141+ height: "56px"142 command-line:143 backgroundColor: "{colors.surface}"144 textColor: "{colors.ink}"76- typography: "{typography.transcript}"145+ typography: "{typography.terminal}"146 rounded: "{rounded.none}"147 padding: "4px 4px 4px 12px"148+ copy-action:149+ textColor: "{colors.ink}"150+ rounded: "{rounded.none}"151+ size: "32px"152 refusal-headline:153 textColor: "{colors.refused}"81- typography: "{typography.transcript}"154+ typography: "{typography.terminal}"155 padding: "8px 0"156 held-back-line:157 textColor: "{colors.sealed}"85- typography: "{typography.transcript}"86- posture-badge:87- textColor: "{colors.sealed}"158+ typography: "{typography.terminal}"159+ fact-label:160+ textColor: "{colors.muted}"161 typography: "{typography.label}"89- rounded: "{rounded.none}"90- padding: "2px 8px"91- posture-badge-open:92- textColor: "{colors.ink}"93- typography: "{typography.label}"94- rounded: "{rounded.none}"95- padding: "2px 8px"162 stage-cell:163 textColor: "{colors.ink}"164 typography: "{typography.label}"99- padding: "{spacing.cell}"100- field-label:101- textColor: "{colors.muted}"102- typography: "{typography.label}"103- width: "6.5rem"165+ padding: "6px 8px"166 button-primary:167 backgroundColor: "{colors.ink}"168 textColor: "{colors.paper}"169 rounded: "{rounded.none}"1 unmodified line171 button-ghost:172 textColor: "{colors.ink}"173 rounded: "{rounded.none}"174 height: "28px"175+ input:176+ backgroundColor: "{colors.paper}"177+ textColor: "{colors.ink}"178+ typography: "{typography.ui}"179+ rounded: "{rounded.none}"180+ height: "32px"181 decision-choice:182 backgroundColor: "{colors.ink}"183 textColor: "{colors.paper}"184 rounded: "{rounded.none}"117- height: "44px"185+ height: "36px"186 padding: "0 16px"187 decision-choice-default:188 backgroundColor: "{colors.paper}"189 textColor: "{colors.ink}"190 rounded: "{rounded.none}"123- height: "44px"191+ height: "36px"192 padding: "0 16px"193+ decision-choice-phone:194+ backgroundColor: "{colors.ink}"195+ textColor: "{colors.paper}"196+ rounded: "{rounded.none}"197+ height: "44px"198 ---199 200 # Design System: the web201 129-The web's look, as built, for anyone adding or changing a page. Tokens live in `apps/web/src/styles.css`; the pieces that draw refusals, credit, posture, outcomes, stages, commands, times, people and empty lists live in `apps/web/src/features/shared/`, and the report-sheet fields in `apps/web/src/features/ask/fields.tsx`. A page uses them rather than drawing its own. Words follow `GLOSSARY.md` and `PRODUCT.md`.202+The web's look, as built, for anyone adding or changing a page. Tokens live in `apps/web/src/styles.css`. The shell lives in `apps/web/src/features/shared/shell/`, and the pieces every page shares (the row, the status line, the family fan, the fact blocks, the copy action, refusals, credit, posture, outcomes, stages, commands, marks, times, people, empty and pending states) live in `apps/web/src/features/shared/`. A page uses them rather than drawing its own. Pierre's code drawing is configured once, in `apps/web/src/features/code/pierre.ts`. Words follow `GLOSSARY.md` and `PRODUCT.md`.203 204 ## Overview205 133-**Creative North Star: "The Test Certificate"**206+**Creative North Star: "The gate's control room"**207 135-Every page is a report sheet for a change: a title over a double rule, ruled fields, a results row for the gate's stages, a nonconformance block when the gate refused, and the signatories kept apart from the instruments used. A calibration certificate lists who signed it and, separately, the equipment the test ran on; the web does the same with credit trailers (people) and `Assisted-by` (agents, never credit). Landed is the stamp; held-back checks and layers are the seal.208+The web is the console an operator keeps open beside a terminal: on the left, where you are; in the middle, what is waiting; on the right, the typed facts of the thing in your hand. Every screen answers three questions in this order: what state is it in, whose move is it, and what runs next. The answer to the last one is always a command you can copy. A reader selects one thing (a row, with a click or `j`), reads its state and its next command in the inspector, copies the command (`1`), and goes back to the terminal.209 137-The pages are for operating, not persuading. Density is set by a decider clearing Today on a phone and a contributor reading a refusal beside a terminal. Nothing is decoration that is not a rule, a field or a mark. Colour means state and nothing else, and always sits beside a word and a mark, so a page read in grayscale, by a screen reader or in a terminal says the same thing.210+The pages are for operating, not persuading. Density is set by a decider clearing Today on a phone and a contributor reading a refusal beside a terminal: two-line rows, 14 px metadata, a 13 px floor. Colour means state and nothing else, and always sits beside a word and a mark, so a page read in grayscale, by a screen reader or in a terminal says the same thing. One paper ground runs under all three panes; panes are parted by hairlines, never floated, rounded or shadowed. The landing's stamp is the one authored moment.211 139-Rejected on purpose: the developer-forge dashboard (cards in a grid, a blue accent, pill badges everywhere) and its opposite, the terminal costume (green on black, monospace for everything). Monospace appears only where the text is code: commands, refusal transcripts, trailers, SHAs, paths, ids and env keys.212+Rejected on purpose: the developer-forge dashboard (floating rounded panels on a grey ground, cards in a grid, stat tiles, a blue link colour, pill badges, avatar stacks, coloured file icons), its glossy cousin (dark glass, blur, glows, gradients), and the terminal costume (green on black, monospace for everything). Monospace appears only where the text is what a terminal prints or takes: commands, refusal transcripts, trailers, SHAs, paths, ids, env keys and code.213 214 **Key Characteristics:**215 143-- One-pixel hairline rules part sections and rows; boxes inside boxes never do.144-- A page title sits over a 3 px double rule in ink, the sheet's header; it is the one heavy line on a page.145-- State is a mark (check, dot, cross, hollow circle, dash, hourglass, stamp, lock), then a word, then a colour.146-- Every action is a command to copy, never a form for something git or the CLI does. The only web controls that change anything are a decider's choices and signing in or out.216+- Three panes on one ground: the rail (15 rem), main, and the inspector (19 rem), parted by one-pixel rules, each scrolling on its own from 1120 px.217+- State is a mark, then a word, then a colour; red belongs to refusals, violet to sealed things, and nothing else is coloured.218+- Every action is a command to copy, its text always in the page. The only web controls that change anything are a decider's choices, proposing an ask (and asking the platform's agent to draft it), and signing in or out.219 - Light and dark follow the system setting; there is no toggle, no script and no flash.148-- Motion carries state, never decoration: transitions of 150–250 ms, and one authored moment, the landing's stamp.220+- Motion carries state, never decoration: transitions of 120–200 ms, and the landing's stamp.221 222 ## Colors223 152-Cool bond paper and blue-black ink, with five state roles that never appear as decoration. Every state role measures at least 5.3:1 against paper and against the field surface, in both themes; body ink measures about 16:1.224+Cool bond paper and blue-black ink, with five state roles that never appear as decoration. Every state role measures at least 5:1 against paper and against the field surface, in both schemes; body ink measures about 16:1.225 226 ### Primary227 156-- **Blue-black Ink** (`--foreground`; `ink`, `ink-dark`): text, the page title, primary buttons, a decider's non-default choices, the focus outline. It is the only accent: the web has no brand colour.228+- **Blue-black Ink** (`--foreground`; `ink`, `ink-dark`): text, page titles, primary buttons, a decider's non-default choices, the current tab's underline, the focus outline. It is the only accent: the web has no brand colour, and links are ink.229 230 ### State roles231 160-- **Landed Green** (`--landed`): the change is on main. The landing's stamp mark and lead word, passed stages, a decision just taken.161-- **Checking Blue** (`--checking`): the gate is running a stage now. The current stage while checking, the "Checking" lead word, the text caret and the selection tint (22% of it over the paper).162-- **Waiting Ochre** (`--waiting`): passed or paused, waiting on a person or a parent ask (a decision, a finish, a parent landing); a decision that expires within the day; the mark of a retryable refusal. Waiting is never shown in the refused colour.163-- **Refused Red** (`--refused`): a refusal. The rubric colour: the nonconformance block's top rule, its headline and each refusal's tag. shadcn's `destructive` maps here, so nothing destructive may be red unless it is a refusal.164-- **Sealed Violet** (`--sealed`): held-back checks, layers and sealed evidence. The `Held-back:` trailer and the answer's held-back lines (with a lock), a posture that keeps something sealed, the ledger's layer and area headings, a sensitive env item's mark.232+- **Landed Green** (`--landed`): the change is on main. The landing's stamp and lead word, passed stages, a decision whose choice took effect.233+- **Checking Blue** (`--checking`): the gate is running a stage now. The current stage while checking, the "Checking" lead word, and the viewer's own selection (text selection and selected code lines, a tint of it over the paper).234+- **Waiting Ochre** (`--waiting`): passed or paused, waiting on a person or another ask (a decision, a finish, a parent landing); a decision that expires within the day; the mark of a retryable refusal. Waiting is never shown in the refused colour.235+- **Refused Red** (`--refused`): a refusal. The rubric colour: the refusal block's top rule, its headline and each refusal's tag. shadcn's `destructive` maps here, so nothing destructive may be red unless it is a refusal.236+- **Sealed Violet** (`--sealed`): held-back checks, layers and sealed evidence. The `Held-back:` trailer and an answer's held-back lines (with a lock), a posture that keeps something sealed, the ledger's layer and area headings, a sensitive env item's mark.237 238+### Code and diffs239+240+- **Syntax** (`--syntax-*`): one low-chroma theme drawn from the tokens and handed to Pierre as a CSS-variable theme. Keywords, functions and parameters are ink; strings lean grey-teal and constants grey-olive (chroma 0.035, at least 30° from every state hue); comments and punctuation are a step darker than muted in light and muted in dark. Each keeps 4.5:1 on the paper and on a changed word's tint.241+- **Diff tints** (`--diff-add-*`, `--diff-del-*`): additions teal, deletions rose, a family apart from landed green and refused red. The sign colour draws the `+` and `-`, the bars and a changed line's number (held to 4.5:1); a line's tint is that colour mixed into the paper (12% in light, 20% in dark, as Pierre mixes it, so the server's plain-text diff matches the drawing); emphasis marks the changed words. The file tree's status letters use the same family (A teal, D rose, M and R muted).242+243 ### Neutral244 168-- **Bond Paper** (`--background`; `paper`, `paper-dark`): the page and shadcn's `card`. Hex, because the two `theme-color` metas (one per scheme) and the web app manifest repeat it from `features/shared/theme.ts`, and a test holds the two equal.169-- **Field Surface** (`--surface`): command lines and filled fields; shadcn's `muted`, `secondary` and `accent` all resolve here.170-- **Popover White** (`--popover`): the one raised layer's ground (dialogs, menus, tooltips), a step lighter than paper; dark, a step lighter than the surface.171-- **Muted Grey** (`--muted`, used as `text-muted-foreground`): field labels, secondary lines, stages not reached or not needed, the `$` of a command line, `Assisted-by` lines.172-- **Hairline** (`--rule`): every border and rule, shadcn's `border` and `input`, and the underline of links in running text.173-- **Strong Rule** (`--rule-strong`, ink in each theme): the page title's double rule, the current nav item's underline, the open posture's badge border.245+- **Bond Paper** (`--background`; `paper`, `paper-dark`): the ground of every pane and of shadcn's `card`. Hex, because the two `theme-color` metas and the web app manifest repeat it from `features/shared/theme.ts`, and a test holds them equal.246+- **Field Surface** (`--surface`): command lines, the current rail item, a selected row, hover fills (at half strength), the current stage cell; shadcn's `muted`, `secondary` and `accent` resolve here.247+- **Popover White** (`--popover`): the one raised layer's ground (dialogs, sheets, menus, tooltips), a step lighter than paper; dark, a step lighter than the surface.248+- **Muted Grey** (`--muted`, as `text-muted-foreground`): labels, metadata lines, stages not reached or not needed, the `$` of a command line, `Assisted-by` lines, the bottom bar's other items.249+- **Hairline** (`--rule`): every pane edge, border and rule, and the underline of links in running text.250+- **Control Border** (`--input`): a form control's border at 3:1 on paper (3.4:1 light, 3.9:1 dark).251+- **Skeleton Stroke** (`--skeleton`): the outlined bars of a placeholder row or fact (about 1.75:1), with no fill.252+- **Strong Rule** (`--rule-strong`, ink in each scheme): the 2 px underline of the current filter or section tab, and the top edge of the bottom bar's current item.253 254 ### Named Rules255 177-**The Rubric Rule.** Red belongs to refusals. A destructive button, an error toast or a "danger" badge uses the refused role only when it is a refusal.256+**The Rubric Rule.** Red belongs to refusals. A destructive button, a transport failure or a deletion in a diff is never red.257 179-**The Word First Rule.** No state is carried by colour alone: every coloured mark has a word beside it ("passed", "now", "refused", "not yet", "not needed"; "Waiting", "Landed", "Checking").258+**The Word First Rule.** No state is carried by colour alone: every coloured mark has a word beside it or in its row ("passed", "now", "refused", "not yet", "not needed"; "Waiting", "Landed", "Checking").259 260 **The No Score Rule.** No colour, size or ordering ever ranks a person. Handles are links in ink; a record is never shown as a number.261 262 ## Typography263 185-**Body Font:** Public Sans (variable, self-hosted, latin and latin-ext; fallback `ui-sans-serif, system-ui`)186-**Mono Font:** JetBrains Mono (variable, self-hosted; fallback `ui-monospace`), with contextual alternates off for code264+**Body Font:** Public Sans (variable, self-hosted, latin and latin-ext, preloaded; a metric-matched fallback face over Arial keeps the swap from moving the page)265+**Mono Font:** JetBrains Mono (variable, self-hosted, preloaded; a metric-matched fallback over Courier New), with contextual alternates and ligatures off (`=>` stays `=>`)266 267 **Character:** Public Sans was drawn for government forms: a workhorse grotesque that reads as an official document without ceremony. JetBrains Mono sets only what a terminal would print.268 269 ### Hierarchy270 192-A fixed rem scale, ratio about 1.2; product type does not float with the viewport. Numbers in times and table cells are tabular.271+A fixed rem scale, ratio about 1.15–1.2; product type does not float with the viewport. Numbers that can change (counts, times, line numbers, `+n −m`) are tabular. **Nothing is set below 13 px**; `apps/web/test/type-floor.test.ts` refuses the old 12 px and 11 px sizes and any arbitrary size.272 194-- **Headline** (600, 1.75rem/2.2rem, -0.02em, balanced): the page title in `PageShell`, one per page.195-- **Title** (600, 1.1875rem/1.65rem, -0.01em): a region of a page (`Region`), a decision's subject.196-- **Body** (400, 1rem/1.55rem): prose, an ask's want, outcome sentences; prose holds to 65–75ch.197-- **Small** (400, 0.875rem/1.35rem): navigation, field values, secondary lines, Today's rows; the most used size.198-- **Label** (500, 0.75rem/1.1rem, sentence case, muted): field labels ("Credit", "Plain git: clone any project"), stage names, Today's budget labels. No uppercase tracking, and never a kicker above a heading.199-- **Transcript** (JetBrains Mono 400, 0.8125rem/1.5rem): refusal lines, command lines, trailers, held-back lines, ids, SHAs and env keys. Refusal transcripts hold to 96ch, about git's width.273+- **Headline** (`text-headline`, 600, 1.5rem/2rem, -0.015em, balanced): one page title. A want over 80 characters drops to Title by itself.274+- **Title** (`text-title`, 600, 1.1875rem/1.6rem, -0.01em): a long ask's title, a region head in main, the answer's outcome hero, a README's headings.275+- **Want** (`text-want`, 1rem/1.5rem): a row's first line at 500, and a want or brief in prose at 400.276+- **Body** (`text-body`, 400, 1rem/1.55rem): prose, held to 70ch.277+- **UI** (`text-ui`, 400, 0.875rem/1.3rem; 500 for state words): row metadata, rail items, inspector values, buttons, toolbar controls, breadcrumbs. The most used size.278+- **Label** (`text-label`, 500, 0.8125rem/1.15rem, sentence case, muted): fact block heads, field labels, group header counts, the bottom bar's words, a consequence line under a choice. No uppercase tracking, and never a kicker above a heading.279+- **Mono** (`text-mono`, JetBrains Mono 400, 0.8125rem/1.25rem inline): ids, SHAs, paths, env keys. In transcripts (refusals, commands, trailers, held-back lines) it takes `leading-terminal` (1.5rem), and refusal transcripts hold to 96ch; in code and diffs it takes `leading-code` (20 px), Pierre's line.280 201-The stage strip's state words are the one size below the label (0.6875rem), always beside their mark.281+Form fields are 16 px below 640 px (so a phone does not zoom on focus) and 14 px from there.282 283 ### Named Rules284 205-**The Code Is Mono Rule.** Monospace means "this is what git or a terminal prints or takes". Prose, labels and buttons are never mono.285+**The Code Is Mono Rule.** Monospace means "this is what git or a terminal prints or takes". Prose, labels, buttons, headings and commit bodies are never mono.286 287+**The Thirteen Floor Rule.** The smallest text on any page is 13 px, and it is a label or mono, never a sentence a reader must act on.288+289 ## Layout290 209-One centred column, 72rem wide at most (`max-w-6xl`), with a 16 px gutter on phones and 24 px from 640 px. The header is 48 px: the name, then Asks (the front page) and Today, then the session slot at the end. Every page is `PageShell`: its title over the double rule, then its regions 32 px apart; inside a region, the heading sits 12 px above its content. The footer gives the two ways in, plain git and the CLI install line, in one column on phones and two from 640 px.291+The shell is the root layout (`apps/web/src/routes/__root.tsx`, `features/shared/shell/app-shell.tsx`) and never unmounts; each page renders one `Workspace` (`features/shared/shell/workspace.tsx`) holding its main pane and its inspector, both in the server's HTML. The breakpoints are named in `styles.css`:292 211-- **Fields** (`Fields`, `Field`): a ruled grid of label and value, the label column at least 6.5rem; from 1024 px two fields share a row. Each row is 8 px top and bottom with a hairline below.212-- **Two columns from 1024 px:** the project page (its open asks and recent landings beside a 22rem column on how to take part) and the ask page (the brief beside a column of up to 26rem). Below that, one column.213-- **Lists** are ruled rows (12 to 16 px top and bottom, a hairline between), never cards in a grid.214-- **Today:** the budget as two counters in a ruled pair (decisions, finishes), then one decision per ruled row, 20 px top and bottom.293+| Name | From | What changes |294+| --- | --- | --- |295+| phone | below 40 rem | 44 px top bar, fixed 56 px bottom bar, 16 px gutters, facts inline after the head, unified diffs only, Files opens a full-height sheet |296+| `tablet` | 40 rem | 48 px top bar with Menu (the rail as a sheet from the left), the section row under the head, 20 px gutters |297+| `diffsplit` | 48 rem | a diff may go side by side |298+| `shell` | 70 rem (1120 px) | the rail and the inspector are columns, rows select, 24 px gutters, each pane scrolls on its own |299+| `codefacts` | 90 rem (1440 px) | code pages keep the inspector open as a column; below this, a Facts button opens it as a sheet from the right |300 216-Phone width (360 px) is a first-class layout: nothing scrolls sideways. Long commands, paths, SHAs and trailers wrap anywhere rather than overflow; the stage strip folds from seven cells in a row to four and three; a decision's choices become a two-column grid of 44 px buttons; the copy button keeps its label for screen readers only.301+**From 1120 px** three panes share one paper ground, parted by hairlines: the **rail** (15 rem) on the left, **main** in the middle, the **inspector** (19 rem) on the right. Nothing grows past 1440 px but main. Inside main the head and rows stop at 56 rem, left-aligned (no centred column); prose stops at 70ch; code and diffs take the whole pane. Main, top to bottom:302 303+1. **Context bar**, 44 px, sticky, on the same line as the rail's wordmark: the trail on the left, the page's state or count and its one copyable command on the right.304+2. **Page head**, not sticky: the title, the status line, a muted meta line, 24 px under it.305+3. **Toolbar**, 40 px, sticky under the context bar on list and code pages, its controls ending where the rows end.306+4. **Content**: rows under sticky group headers, a document of regions 32 px apart, or code.307+308+The sticky stack is at most 84 px on a desktop (context bar and toolbar). On a phone a decision's choice bar is fixed above the bottom bar (about 148 px with the top bar when its consequence lines wrap), and main pads its foot so the page's end is never under it.309+310+**Below 1120 px** there is no rail column and no inspector column. The project's sections become a **section row** under the head (one line of text tabs that scrolls sideways inside itself), and the inspector's blocks render **inline** in one slot after the head: open on a subject's page (ask, answer, decision, proposal, commit, ledger, env), a disclosure on a list's page whose summary keeps one fact in sight (the project's posture, Today's budget sentence). Selection is off: a row's whole width is its link.311+312+**Spacing**, on a 4 px base (4, 8, 12, 16, 24, 32): rows 10 px top and bottom, group headers 32 px, fact blocks 12 px apart inside with a hairline between, 24 px under a page head, 32 px between regions. More space above a heading than below it.313+314+Phone width (360 px) is a first-class layout: nothing scrolls sideways. Long commands break between words (a URL longer than the line breaks anywhere), paths, SHAs and trailers wrap anywhere, and code scrolls sideways inside its own box, never wrapping.315+316+### Named Rules317+318+**The One Ground Rule.** Every pane sits on the paper. A pane is parted by a hairline, never by a fill, a radius, a shadow or a gap.319+320+**The Facts Beside Rule.** A page's typed facts are its inspector's, rendered with main in one pass; below the shell's width they are the same blocks, inline after the head.321+322 ## Elevation & Depth323 220-Flat. No shadows on the page; depth is rules and the field surface. Overlays (dialog, dropdown, tooltip) are the only raised layers, on the popover colour with shadcn's own ring and shadow.324+Flat. No shadows on the page and no pane above another; depth is hairlines and the field surface. Overlays (dialogs, sheets, menus, popovers, tooltips) are the only raised layers, on the popover colour with a hairline ring and no soft shadow. Sheets slide in 200 ms; nothing else moves on the z axis.325 326 ## Shapes327 224-Square. The radius is 2 px (`--radius: 0.125rem`), and shadcn's base-lyra components already square most corners. Borders are one-pixel hairlines; the page title's double rule is the one heavier line; the refusal block's 2 px top rule is the one coloured line. An empty state's border is dashed, an unfilled field; so is the rule that parts disclosed agents from credit.328+Square. The radius is 2 px (`--radius: 0.125rem`), and shadcn's base-lyra components square most corners. Borders are one-pixel hairlines; the refusal block's 2 px top rule is the one coloured line, and the current tab's 2 px ink underline the one heavy one. An empty state's border is dashed (an unfilled field), and so is the rule that parts disclosed agents from credit. Marks are lucide icons at 16 px (14 px in dense places), stroke 1.75, one family.329 330 ## Components331 228-### Command line (`CommandLine`)332+### Rail (`Rail`)333 230-- **Character:** the line a reader runs next, whole and copyable.231-- **Shape:** a field-surface box with a hairline border that hugs its command, a muted `$` that selection skips, the command in mono (one tap selects all of it), and a ghost "Copy" button, icon only on phones. Copying shows "Copied" for 2 s.334+- **Character:** where you are, always in the same place.335+- **Shape:** the wordmark row (44 px, linking `/`); the site's sections, each a 32 px row of a 16 px mark and its word (Asks, Today with the count of decisions waiting for a signed-in decider, For agents); "Projects" over one 32 px row per project, its posture's mark and short word at the row's end; the current project's sections indented under it (Asks with its open count, Code, Landings, Refs, Policy, Ledger, Env shape); "All projects" opening the switcher after the first eight; the session (handle or Sign in) and a Keys button pinned at the foot.336+- **Current item:** the surface fill, ink at 600, `aria-current`. Never a coloured bar or an accent.337+- **Code form:** a route that fills the rail's slot (`staticData.rail`: the tree on tree, blob and why; the changed files on a commit and a finish) folds the site's sections and projects into a Menu button on the wordmark row and the project's sections into a one-line disclosure, and the slot fills the rest.338 233-### Refusal (`RefusalView`)339+### Top bar and bottom bar340 235-- **Character:** the nonconformance block. It reads exactly as `git push` printed it.236-- **Shape:** a 2 px refused top rule, then `headline(refusals)` in mono red with an octagon mark, then one row per refusal, parted by hairlines: its `explain` lines verbatim (indentation kept, the tag in red), then its `next` as a `CommandLine`. A retryable refusal's mark is an ochre turn-back arrow; a final one's is the red octagon. `data-refusal` and `data-retryable` carry it. The web never rewords a refusal.341+- **Top bar** (below 1120 px): on a tablet, 48 px, Menu, the wordmark, the current project as a switcher, the session; on a phone, 44 px, Back to the page above on a subject page (else the wordmark) and the project's switcher.342+- **Bottom bar** (phones): fixed, 56 px plus the safe area, `<nav aria-label="Sections">`, four items each a mark over its 13 px word: Asks, Today, Projects (the switcher as a full-height sheet), More (For agents, the project's sections, Keys, the session). The current item is ink at 600 with a 2 px ink rule on its top edge.343 238-### Outcome (`OutcomeView`) and stage strip (`StageStrip`)344+### Context bar, page head and toolbar345 240-- **Outcome:** one sentence, a mark and a lead word in the role colour, the rest in ink: "Checking at the checks stage", "Passed, waiting for a decider's finish from okonkwo", "Waiting on decision dec-000001", "Passed, waiting for drop-legacy-fetch-burrow-kit to land first", "Landed as 9b1c3e5". A refusal is drawn by `RefusalView`. `data-outcome` and `data-state` (`waiting` or `final`) carry it.241-- **The stamp:** a landed outcome's mark settles once, 420 ms, from 1.35 times its size with an exponential ease-out; reduced motion skips it.242-- **Stage strip:** the gate's results row, a ruled table of seven cells in cost order (Parse, Shape, Merge, Cheap, Checks, Held-back, Decider), each with a mark, its label and a state word: passed (green check), now (dot, blue while checking, ochre while waiting), refused (red cross), not yet (hollow circle, muted), not needed (dash, muted). `data-stage` and `data-state` on each cell; the current cell is `aria-current="step"`.346+- **Context bar:** the breadcrumb (project / section / subject, ids in mono, each a link but the last; on a phone only the page's own crumb), and at the right the subject's compact state (mark and lead word) or a list's count ("17 open asks, 3 open to take"), and the page's primary command as a copy button.347+- **Page head:** the title; the status line; the meta line (kind · asker · age). A project home's head is its name, its posture from its own ledger and its open count, and the README's first sentence as a lede.348+- **Toolbar:** filters as text tabs with their counts in label type, the current one ink at 600 with a 2 px ink underline (the one current-tab style of the whole web); view toggles (Unified | Split, Code | Why) as segmented text; on a phone the strip scrolls sideways and fades its last 2 rem.349 244-### Credit trailers (`CreditTrailers`) and held-back lines (`HeldBackBits`)350+### Inspector (`Workspace`'s facts) and fact blocks (`facts.tsx`)351 246-- **Character:** the signatories, then the seal, then the instruments, as the landing commit carries them.247-- **Credit:** a "Credit" label over one mono line per trailer, `Role: handle`, in the order of `CreditRole`'s literals (`Asked-by` first), each handle a link to `/people/<handle>`.248-- **Held-back:** one sealed-violet mono line with a lock, `Held-back: export 7/7 @ sha256:…; parser 4/4 @ sha256:…`. On an answer's page, the same seal as one line per area (`export 6/7 @ sha256:…`): the area and its count, never a check's name.249-- **Agents:** below a dashed rule and the label "Agents used, disclosed and not credit", one muted `Assisted-by:` line per agent, spelled as the trailer is (`pi:opus-4 (claimed)`).352+- **Character:** the typed facts of the thing in hand, never a repeat of the page's prose.353+- **Shape:** a 44 px heading row naming what it describes ("Start here", "Selected ask", "This ask", "This answer", "How a change lands here", "This landing", "This file", "This decision"), announced politely when it changes; then fact blocks, each a label over its content, 16 px padding, hairlines between, no box inside. A new subject settles in over 120 ms with no slide.354+- **Blocks:** State (the status line again, then the next command, numbered 1), Take it (who may take it, then clone, claim and check, numbered), Claim (the claimant from the event fold, the last push; never a deadline), Gate (the seven stages; on an answer, a vertical strip with the current stage), Posture (the platform's label, a gloss, a link to the ledger), Held back (one sealed line per area), Family (the vertical fan), Territory and check, Rounds (one 40 px row per round), Credit, Provenance (shortened ids, each copyable; a time is not), Decision, Diff stats (files, `+n −m`, then territory, tests and other), This file, Where it was read, Start here.355+- **Values:** code values are mono and wrap anywhere; a long SHA or root is shortened (`7fbe4b2`, `sha256:7fbe4b…`) with its whole value in its title and on copy.356 357+### Row (`Row`, `AskRow`) and row group (`RowGroup`)358+359+- **Character:** one anatomy for every list (asks, decisions, landings, commits, refs, forks, credits, rounds, history).360+- **Shape:** 64 px, two lines (one-line rows 40 px): a 20 px mark column; line 1 the want or subject at 16 px 500, one line, ellipsised, the link (never the id); line 2 metadata at 14 px muted, parted by ` · ` (kind, territory and id in mono, claimant), a value that means nothing left out; at the right the state word in its role over its time; then the row's action. On a phone the state word leads line 2 and the right column hides.361+- **States:** hover is the surface at half strength; selected (from 1120 px) is the surface fill and the want at 600, never a coloured edge; focus is the 2 px ink outline inside the row. A click on the want navigates; elsewhere on the row it selects and fills the inspector.362+- **Group header:** 32 px, sticky under the toolbar, paper fill, a hairline below: the group's name at 600 as a link, its facts (a project's posture, once per group, never per row; it may arrive after the rows without moving them), its counts at the end in label type ("7 open · 6 to take").363+- **Data:** every `data-*` a list carries sits on the row's `<li>` (`data-ask`, `data-takeable`, `data-project`, `data-decision`, `data-soon`, `data-entry`, `data-fork`), and `data-list-key` on its link for `j` and `k`.364+365+### Copy action (`CopyAction`, `CommandChip`) and command line (`CommandLine`)366+367+- **Copy action:** a 32 px ghost button at a row's end, named for what it copies ("Copy claim command"), its command always in the DOM as text (`<code class="sr-only">`), never only a clipboard payload or a `data-` value. After a copy it shows a check and says "Copied" for 2 s in a polite live region.368+- **Command chip:** the command shown whole, small, at the end of a status line; pressing it copies it.369+- **Command line:** a field-surface box with a hairline border that hugs its command; a muted `$` that selection skips; the command in mono at terminal leading, broken only between words, each of its own lines hanging 6ch so a wrapped line reads as one line going on; a ghost Copy button (its word hidden in a narrow column). A numbered command shows its digit before the `$` while the single keys are on, and "Copy (1)" in its title.370+371+### Status line (`StatusLine`) and state badge (`StateBadge`)372+373+- **Status line:** one sentence, the same under a title, in the State block and (compact) in the context bar: the mark, the lead word in its role at 600, the rest in ink, then whose move in muted, then the next command as a chip. "Open to take", "Claimed by tamsin, no answer pushed yet · tamsin's move", "Checking at the checks stage · the platform's move", "Refused at Shape: OutOfScope", "Waiting on decision dec-000001 · a decider's move", "Waiting for 4 of 6 children to land · the family's move", "Landed as 9b1c3e5" (the SHA links the commit). A refusal's lead and tag come from `headline`, never a paraphrase. `data-tone` and `data-mark` carry it.374+- **State badge:** the one way a state shows as a word: its mark, then its word in the role, at the size of its line. No pill, no fill, no box. Posture, stages, an ask's standing and a decision's default all draw through it; `data-mark` (and `data-posture` on a posture's label) carry it.375+376+### Marks (`marks.tsx`)377+378+Lucide, one family, the mark `aria-hidden` and its word beside it: check (landed, passed), a filled dot (checking, now), hourglass (waiting, an expiry), octagon X (refused, final), turn-back arrow in ochre (a retryable refusal), hollow circle (open, not yet), dashed circle (claimed), dash (not needed), lock (sealed), shield (a decision's default), an ink X (a failure that is not a refusal, such as a failed draft). Same mark, same meaning, on every page.379+380+### The family fan (`FamilyStrip`, `FamilyTree`)381+382+- **Character:** a split ask's siblings, side by side; never a ladder, never a sentence of ids.383+- **Row form:** the parent row's third line: one node per stored child, its mark and its short name in mono, joined by a hairline bus, an arrow to the delete child's node ("delete waits for 4", then open, then landed), "n of N landed" at the right, and a toggle ("Show 6 children") that lists the children as indented rows, each open child with its claim command. Collapsed on the front page, expanded on the project home. On a phone the strip shows marks only.384+- **Vertical form:** in the inspector's Family block and at the top of a member's page below the shell: the parent, the children on a left bus, then the delete child, the member being read at 600 on the surface.385+- **The stamp:** a child that lands while the page is open settles its mark once, and the count changes with no motion of its own.386+387+### Outcome (`OutcomeView`), stage strip (`StageStrip`) and refusal (`RefusalView`)388+389+- **Outcome:** an answer's status line at Title size, the stamp on Landed; a refusal adds `RefusalView` below. `data-outcome` and `data-state` carry it.390+- **Stage strip:** the gate's results row, seven ruled cells in cost order (Parse, Shape, Merge, Cheap, Checks, Held-back, Decider), each a mark, its label and a 13 px state word: passed, now, refused, not yet, not needed (a stage the answer never needed, such as no decision). The current cell is on the surface with `aria-current="step"`. Four cells a row on a phone. `data-stage` and `data-state` on each cell.391+- **Refusal:** a 2 px refused top rule, then `headline(refusals)` in mono red with an octagon mark, then one row per refusal parted by hairlines: its `explain` lines verbatim (indentation kept, the tag in red), then its `next` as a command line. A retryable refusal's mark is the ochre turn-back arrow. `data-refusal` and `data-retryable` carry it. The web never rewords a refusal. On a finish or a Waiver diff a refusal sits under the line its `at` names, as an annotation.392+393+### Credit trailers (`CreditTrailers`, `CompactCredit`) and held-back lines394+395+- **Credit:** a "Credit" label over one mono line per trailer, `Role: handle`, in `CreditRole`'s order (`Asked-by` first), handles linked; below a dashed rule, "Agents used, disclosed and not credit" and the muted `Assisted-by:` lines. The compact form reads "Asked by ines-v · answered by bram" on landing rows and in the project's recent landings, and never names an agent.396+- **Held back:** one sealed-violet mono line with a lock, `Held-back: export 7/7 @ sha256:…; parser 4/4 @ sha256:…`; on an answer's page one line per area. The area and its count, never a check's name.397+398 ### Posture badge (`PostureBadge`)399 253-- **Shape:** a square outline badge holding the platform's own label, never rewritten: sealed violet for postures that keep something sealed (Open with sealed evidence, Open core, Open on schedule), an ink border for Open, a hairline and muted text for Source available. `data-posture` carries the literal.400+The platform's own label, never rewritten, through the state badge: a lock mark and the word in sealed violet for postures that keep something sealed, an open lock in ink for Open, muted for Source available. Said once per project group heading, in the rail, the project's head and its Posture block; never per row. `data-posture` carries the literal.401 255-### Fields (`Fields`, `Field`) and regions (`Region`)402+### Decisions, Today and the finish403 257-- **Character:** the header block of a report sheet.258-- **Shape:** a muted label over or beside its value, one ruled row each; values that are code wrap anywhere. A region is a Title heading over its content, with no box around it.404+- **Today:** the budget as one sentence ("Decisions: 2 taken, 3 left today. Finishes are counted apart: none taken."), then sections under sticky headers: Due today, Within your budget, Waits for tomorrow (a count, as a sentence), Newcomers to welcome, Landed without a decision. A decision's row reads its subject as a sentence, then project · kind · id, then its expiry over its default. On a phone a row opens in place.405+- **Choices:** one tap each, no confirm. Ink buttons, the default the outline button with "default" beside its name; 36 px in a row from 640 px, 44 px in a two-column grid on a phone. Under each, a 13 px muted consequence line written from what the platform does ("Accept: opens the ask and lands it with you as Decided-by"; where it does nothing more, it says so). After a choice the record (by, choice, when, note) replaces the buttons, landed green only for a choice that took effect.406+- **Finish:** the code browser's layout: the changed files in the rail with status letters, `+n −m` and a local read mark; the diff in main with sticky file headers and a "Mark read" button (the word is "read", kept in this browser only); the want, verdict, choices and the three numbered finish commands in the inspector from 1440 px, or in a sticky bar at main's foot below it.407+- **Evidence:** typed by subject, labels in sentence case; never a value the platform did not send.408 260-### Ledger and env shape409+### Code browser (tree, blob, why, landings, commit)410 262-- **Ledger:** the posture badge, then each layer as a mono sealed-violet name with its audience, holdings, disclosure and reason; each sealed area as a sealed-violet heading ("export: 7 sealed checks by 3 people") with its committed root and admission; then every entry, newest first, as ruled rows of a muted date and a sentence. No path, check name or file name appears.263-- **Env shape:** a muted caption, "env shape: varlock's `.env.schema` format", linked to varlock; the fields of where it was read; the `env set` command as a `CommandLine` (never a form); then each item: its key in mono (with a hairline-bordered "Deprecated" tag when it is), its description, and its fields: type in mono, required, sensitive (a sealed-violet lock and "yes"), proxy hosts, tags, docs, and for a sensitive item who set its value and when, or "not set" in muted grey. Never a value, and never the placeholder an answer sees.411+- **Character:** a full-viewport app inside the shell.412+- **Rail:** the ref line (main, a tag or a SHA, as a switcher), a "Filter files" field, and the tree (`@pierre/trees`): Public Sans 14 px, compact, monochrome icons, single-child folders flattened, sticky folders, the current path expanded and in view; on a commit, every changed file open with its status letter and `+n −m`. A tree click moves with the router and the tree stays mounted across tree, blob and why.413+- **Main:** a sticky file header (the path as a trail with copy; "N lines · size · language" from 48 rem, which yields to the inspector's own line from 1440 px; the Code | Why toggle; Raw, Permalink, Copy), then the code at Pierre's metrics, scrolling in its own box. The server sends the file or diff as plain numbered text at the same metrics, so the highlighting lands in place.414+- **Why:** consecutive lines from one landing form one group under a band that reads ask and answer first, SHA second ("format-ordinal · answered by bram · 9b1c3e5 · 2 d ago"), with "why, one step back". No credit count and no age colour.415+- **Landings:** rows under sticky day headers: the subject, the ask answered or opened, the compact credit and a sealed "held back" word when the landing carries `Held-back:`, the short SHA over the age; filters All · Answers · Ask openings; the pager stays.416+- **Commit:** the subject as Title, the landing's status line, the body as prose, git's line ("authored by … · committed by the platform · parent …"), then the diff in a pane that sticks under the toolbar and only then scrolls. Unified | Split (split from 48 rem), Collapse all / Unfold all. Unified diffs mark changes with `+` and `-`; split diffs with bars.417+- **Missing path:** a soft landing on the nearest folder, with the refusal's own text above it.418 265-### Decision card (`DecisionCard`) and Today419+### Ledger, env shape, policy and refs420 267-- **Character:** one decision, answerable in one tap.268-- **Shape:** the project and decision id in muted mono, the subject as a Title, then its expiry (ochre and medium weight when it ends within the day, muted otherwise, with an hourglass) and its safe default (a shield mark), the evidence as fields, an optional note behind a disclosure, then the choices. Each choice is a square button, ink on paper, 44 px tall in a two-column grid on phones and 36 px in a row from 640 px; the default choice is the outline button with the word "default" beside its name.269-- **Today's budget:** two counters in a ruled pair, Decisions and Finishes, each a label over a 1.75rem tabular number and a muted line of what is left.421+- **Ledger:** the head sentence carries the facts ("Open with sealed evidence. export: 7 sealed checks by 3 people; parser: 4 sealed checks by 3 people."); layers as rows (name in sealed-violet mono, readers, writers, disclosure, reason), sealed areas as sealed-violet titles with root and admission, history as typed one-line rows, newest first. No path, check name or file name.422+- **Env shape:** the caption "env shape: varlock's `.env.schema` format", linked to varlock; items as definition rows, sensitive first: the key in mono, the sealed lock and "sensitive", "set by ines-v" or "not set", type, required, proxy hosts with paths, a hairline-bordered "Deprecated". Never a value or the placeholder an answer sees.423+- **Policy:** deciders by path, vouching, limits in tabular figures, agents, and one line per layer linking the ledger; the commands that change it, numbered, each flag on its own line.424+- **Refs:** main ("moves only by a landing"), tags, and claim forks as one-line rows with their claim's state word.425 271-### Time (`When`), people (`HandleLink`), empty lists (`EmptyState`)426+### Empty, pending and error states427 273-- **When:** "in 3 h", "2 d ago", "now"; the exact time in `dateTime` and the tooltip.274-- **HandleLink:** the handle in medium weight, underlined in the hairline colour, the underline in ink on hover.275-- **EmptyState:** a dashed-border block saying what is empty, and the command that would change it.428+- **Empty (`EmptyState`):** a dashed hairline block where the rows would be: one sentence saying what is empty, then the command that changes it or a link onward. Never a dead end.429+- **Pending:** the shell, rail and context bar stay; after 300 ms main shows its title over rows of skeleton (64 px, two outlined bars each, no shimmer), and fact blocks keep their heads with bars for values.430+- **Not found:** in the shell, the trail up to what exists, a title saying what was asked for ("No such ask"), `RefusalView` verbatim, then one or two onward links.431+- **Unreachable:** an ink block with a muted unplugged mark: "The platform did not answer.", "Try again in a minute; nothing was changed. Git and the CLI reach it directly." and Reload. Never red.432 277-### Buttons433+### Buttons and fields434 279-- **Shape:** square (no radius), Label type (0.75rem at 500 weight); a decision's choices step up to 0.875rem.280-- **Primary:** ink on paper, 32 px high; hover lightens the ink.281-- **Ghost:** no fill until hover, which fills with the field surface; used for Copy and secondary actions.282-- **Outline:** paper with a hairline border; the default choice on a decision.283-- **Focus:** the global 2 px ink outline, 2 px out, on every control; a pressed button drops 1 px.435+- **Shape:** square, UI type (14 px, 500).436+- **Primary:** ink on paper, 32 px; hover lightens the ink.437+- **Ghost:** no fill until hover, then the surface; Copy and secondary actions.438+- **Outline:** paper with a control border; the default choice.439+- **Fields:** a 3:1 control border on paper, 32 px (36 px and 16 px text on a phone); a disabled Propose says why ("Write the want first").440+- **Focus:** the global 2 px ink outline, 2 px out, on every control; inside a row, inside the row's box.441 285-### Navigation442+### Navigation and keys443 287-- Text links in muted ink, ink on hover; the current page in ink at medium weight with a 2 px strong-rule underline at the header's foot (`aria-current="page"`). A skip link to `#main` appears on focus. Links in running text are underlined in the hairline colour, ink on hover.444+- **Links:** every link between pages is the router's (`AppLink`), preloading on hover or focus, so moving never reloads the document; the page being read is `aria-current="page"`. Links in running text are ink, underlined in the hairline colour, ink on hover; links in rows and the rail are not underlined. A skip link to `#main` is the first tab stop.445+- **Keys:** `?` opens the keys dialog with the switch "Single-key shortcuts: On / Off" (kept in this browser, on by default); `j`/`k` move through a list's rows (and from 1120 px select them), Enter opens; `J`/`K` move between files on code, commit and finish pages; `1`–`9` copy the page's numbered commands, the inspector's first; Escape closes a sheet or clears the selection. No key acts in a field, a combobox or the tree's filter. Every key has a pointer twin.446+- **Selection:** in the address (`?ask=`, `?decision=`), replaced in history, so a selected row and its facts render on the server and can be shared.447 448+### The platform's own pages449+450+Sign-in (the MCP consent), sign-up, the Google handle page, the problem page and the platform's `/` load nothing (no script, no web font), so they carry the tokens as literals in their inline style: paper and ink for both schemes, rule, muted, the 3:1 control border, refused only for a refusal, an ochre-marked "Warning" line for the loopback case, the ink focus outline; `color-scheme: light dark`; the system sans at 16 px; one 26 rem column (44 rem for the `/` document), 48 px from the top, square 44 px inputs and buttons. On sign-in the consent comes first, as its own ruled block.451+452 ### shadcn453 291-shadcn 4.21.2, style `base-lyra` on Base UI, in `src/components/ui/` (generated). The pages use its button, badge, table (an answer's lanes), textarea (a decision's note), tooltip and skeleton.454+shadcn 4.21.2, style `base-lyra` on Base UI, in `src/components/ui/` (generated, restyled to the tokens). The pages use its button, badge, table, textarea, tooltip, dialog and sheet, select, combobox, popover and skeleton. Overlays load after hydration in their own chunk.455 456 ## Do's and Don'ts457 458 ### Do:459 297-- **Do** draw refusals, credit, held-back lines, posture, outcomes and stages with the shared components; change the component, not a page's copy of it.298-- **Do** show the command for every action, through `CommandLine`.299-- **Do** part sections with hairline rules and space: 32 px between page regions, 12 px between a region's heading and its content.460+- **Do** render every page through one `Workspace`, with its typed facts as fact blocks, and put a page's facts in the inspector rather than in its prose.461+- **Do** draw rows, status lines, the fan, refusals, credit, held-back lines, posture, outcomes and stages with the shared components; change the component, not a page's copy of it.462+- **Do** show the command for every action, its text in the DOM, through `CommandLine` or `CopyAction`, and number a page's main commands.463 - **Do** carry every state as a mark, then a word, then a colour, and key tests and styles on the `data-*` attribute that names it.301-- **Do** keep text contrast at 4.5:1 or more and every control reachable and visibly focused by keyboard; give an icon `aria-hidden` and put its meaning in the text beside it.302-- **Do** check every page at 360 px with no horizontal scroll, and with the system's text size raised.303-- **Do** honour `prefers-reduced-motion`: every animation and transition drops to nothing.304-- **Do** take the platform URL from the root route's loader data (`getRouteApi("__root__").useLoaderData().platformUrl`).464+- **Do** link between pages with `AppLink`, and read a list's rows in its loader so they arrive in the HTML.465+- **Do** keep text at 4.5:1, controls and borders at 3:1, every control reachable and visibly focused by keyboard, and nothing below 13 px.466+- **Do** check every page at 1440, 1164 and 390 px in both schemes, and at 360 px with no horizontal scroll.467+- **Do** honour `prefers-reduced-motion`: every animation and transition drops to an instant change.468 469 ### Don't:470 471+- **Don't** float a pane, round it, shadow it, or give it another ground; part panes with hairlines.472+- **Don't** put cards in a grid, stat tiles, a big number over a small label, pill badges, avatar stacks or coloured file icons on any page.473 - **Don't** reword a refusal or compute your own explanation of one; render `explain` and `headline`.309-- **Don't** show a score, a rank, a count of a person's landings as a measure, or a leaderboard.310-- **Don't** put cards in a grid or boxes inside boxes; a section is a heading and rules.311-- **Don't** use red for anything but a refusal, violet for anything but sealed things, or colour without a word.312-- **Don't** use monospace for prose, labels or buttons.474+- **Don't** show a score, a rank, a count of a person's landings or credits, or a leaderboard.475+- **Don't** use red for anything but a refusal, violet for anything but sealed things, green for anything but on main, or colour without a word; a diff uses its own teal and rose.476+- **Don't** use monospace for prose, labels, buttons, headings or commit bodies.477 - **Don't** show an env value, or the placeholder an answer sees, anywhere.314-- **Don't** add a form for something git or the CLI does, a theme toggle, or a second component kit.478+- **Don't** add a form for something git or the CLI does (claim, push, check, land, env set), a theme toggle, or a second component kit.479+- **Don't** put on screen the words review, approve, PR, pull request, issue (for an ask), merge (for a landing), lease, reputation, inbox, queue, dashboard, explore or trending.480+- **Don't** use kickers, uppercase tracked labels, section numerals, shimmer, spinners in content, page-load choreography or toasts as the only feedback.modified:GLOSSARY.md+2 added-2 removed
198 unmodified lines199 The .myr/ folder on main holding the project's process as TypeScript: project.ts, kinds, asks, visibility.ts, the vouch file.200 _Avoid_: settings, workflow files201 202 **Policy**:203-A project's rules as the platform evaluated them from the config folder at one landed SHA, or the defaults when the project has no config folder.204-_Avoid_: settings, config (when meaning the evaluated result)203+A project's rules as the platform evaluated them from the config folder at one landed SHA, or the defaults when the project has no config folder. The web shows it on the project's Policy page: who decides which paths, who is vouched for, the limits and the agent rules.204+_Avoid_: settings, config (when meaning the evaluated result), people page205 206 **Tag**:207 A git tag on main naming one commit, as the project's history has it.208 _Avoid_: release (a GitHub Release's notes and assets are not git data)11 unmodified linesmodified:PRODUCT.md+17 added-12 removed
55 unmodified lines56 - **No inbound or two-way GitHub sync.** It would be a second way onto main that skips the gate. Sign-in uses the platform's own accounts, with Google as an option.57 - **No model's opinion in the gate.** Checks are commands with exit statuses and counts; an answer is judged by them, and taste is a decider's finish.58 - **No scores.** A person appears by handle and role; their record serves trust rules only and is never shown as a number, rank or leaderboard.59 - **No overclaiming.** Held-back checks are hidden from people and agents, not from the code under test, so they are no security boundary. Myr is a prototype, not a whole forge; it makes no claim about speed or scale beyond measured, dated numbers.60-- **No second way to land.** The web adds no form for what git or the CLI does, and shows a diff only to the decider finishing an answer.60+- **No second way to land.** The web adds no form for what git or the CLI does. Its only writes are a decider's choices, proposing an ask (and asking the platform's agent to draft it), and signing in or out. Landed code and each landing's diff are public, as a clone already makes them; an answer that has not landed shows its diff only to the decider finishing it.61 62 ## Operating Context63 64 - Work happens in git and the CLI (`Brand.cli` in code; the name lives only in `packages/brand`). The CLI is a single binary served by the platform itself (`/install.sh`, `/releases/…`), with a versioned `--json` envelope on every command, `--dry-run` and `--yes` where a command writes, and `mcp` to serve the platform's tools over stdio. Every web page that suggests an action shows its command, copyable.65 - Harnesses plug in without installing anything: the project's AGENTS.md block and skill, `/llms.txt`, an ask as Markdown, and `/.well-known/mcp.json`. The CLI also answers harness hooks (`hook`), and pi users can load a user-level adapter.66+- Every page sits in one shell: a rail of where you are (the site's sections, the projects with their posture, the current project's sections, the file tree on code pages), the page, and an inspector of the typed facts of the thing in hand, each with its command numbered to copy. Below 1120 px the rail opens from a Menu and the facts follow the page's head; phones get a bottom bar (Asks, Today, Projects, More).67 - Pages per job on the web:67- - **Front page** (`/`): open asks across projects a viewer may take, filtered by kind and by asks held for newcomers, and the projects with their posture.68- - **Project** (`/$project`): its asks, its posture, its recent landings with their credit trailers, links to its ledger and env shape, and how to take part (clone, `asks`, `claim`, `check`).68+ - **Front page** (`/`): open asks across projects a viewer may take, grouped by project with each project's posture said once, filtered by kind, by open to take and by asks held for newcomers; a split family is one row with its children as a fan. Selecting an ask fills the inspector with its state and its claim command. The same list as Markdown by `Accept: text/markdown`.69+ - **Project** (`/$project`): its asks (families expanded as fans), then its README; beside them, how a change lands here: its posture, the gate, who decides, what is held back, how to take part (clone, `asks`, `claim`, `check`) and its last three landings with their credit. The same as the project's `llms.txt` by `Accept: text/markdown`.70+ - **Code** (`/$project/tree/…`, `blob/…`, `why/…`, `commits/…`, `commit/…`, `refs`): the files at any commit with a persistent tree, highlighted code with `#L` links, why each line is there, the landings by day, each commit's diff, and the refs; raw bytes under a sandboxing CSP.71 - **Ask** (`/$project/asks/$ask`): the want, the territory, the check, who may claim, and the commands; the same as Markdown by `Accept: text/markdown` or at `/$project/asks/$ask.md`.72 - **Answer** (`/$project/answers/$ask`): the outcome, the gate's stages, the lanes, held-back results as one line per area, the refusal, and the landing's trailers.71- - **Person** (`/people/$handle`): their credits by role and area, never a score.72- - **Today** (`/today`): a decider's decisions, each with its evidence, safe default and expiry, against the budget, with newcomers to welcome and a sample of landings that needed nobody; each decision has its own page (`/$project/decisions/$decision`), where a finish shows the answer's diff. ASSUMPTION until the platform opens finish decisions (it does not yet): the finish view is built and tested, but no live decision reaches it.73+ - **Person** (`/people/$handle`): their credits by role and area, in words, never a number or a score.74+ - **Policy** (`/$project/people`): who decides which paths, who is vouched for or denounced, the limits and the agent rules, read from the config folder at the landed commit, with the commands that change them.75+ - **Proposals** (`/$project/proposals/new`, `/$project/proposals/$proposal`): a want proposed from the web or the CLI, the platform's agent's draft if one was asked for (the ask file, the check, its red-first runs), and the decision it waits on.76+ - **Today** (`/today`): a decider's decisions in sections (due today, within the budget, waiting for tomorrow), each with its evidence, safe default, expiry and one-tap choices whose consequence is written under each, against the budget said as a sentence, with newcomers to welcome and a sample of landings that needed nobody; each decision has its own page (`/$project/decisions/$decision`), where a finish shows the answer's diff with refusals marked at their lines and the decider's own read marks, kept only in their browser. ASSUMPTION until the platform opens finish decisions (it does not yet): the finish view is built and tested, but no live decision reaches it.77 - **Ledger** (`/$project/ledger`): the posture label, each declared layer with its reason, each sealed area's count, authors, committed root and admission, and every entry, newest first.78 - **Env shape** (`/$project/env`): every item the project's committed `.env.schema` declares, parsed at the landed commit and never resolved; for a sensitive item, who set its value and when. Never a value.79 - **Sign-in** (`/auth/signin`): through the platform's own accounts; the session lives in an HttpOnly cookie the browser cannot read.76- - **For agents**: `/llms.txt`, each project's `/$project/llms.txt`, `/.well-known/mcp.json` and the skills under `/.well-known/agent-skills/`.77-- The project and answer pages update live while open (the project's `watch` stream), and fall back to reading again every 5 s when the stream cannot be held.78-- A project may not take a name the web uses for its own pages (`today`, `people`, `auth`, `rpc`, `releases`, `icons`, `assets`).80+ - **For agents** (`/agents`, and `/agents.md`): a reference in the voice of a man page (Synopsis, Connect, Endpoints, Limits, Refusals) over `/llms.txt`, `/llms-full.txt`, each project's `/$project/llms.txt`, `/.well-known/mcp.json` and the skills under `/.well-known/agent-skills/`.81+- Pages arrive with their data in the server's HTML, and moving between them never reloads the document. The project, ask and answer pages update live while open (the project's `watch` stream), and fall back to reading again every 5 s when the stream cannot be held; a landing seen while a page is open settles its mark once.82+- A minimal keyboard set works on every page: `?` (the keys, with a switch that turns the rest off), `j`/`k` through a list, `J`/`K` through files, `1`–`9` to copy the page's numbered commands, and Escape.83+- A project may not take a name the web uses for its own pages (`agents`, `today`, `people`, `auth`, `rpc`, `releases`, `icons`, `assets`).84 - Phone width is a first-class target (Today installs as a PWA). ASSUMPTION: deciders use Today mostly on a phone, and the other pages mostly on a laptop beside a terminal.85 86 ## Capabilities and Constraints87 88 - The web Worker holds no storage binding and no secrets; every read goes through `/rpc` to the platform, and no public-serving Worker can reach the private namespace (AGENTS.md principle 7). It cannot show what the platform does not return.89 - Refusal text comes only from `@repo/protocol/render` (`explain`, `headline`), the one renderer for git, the CLI, MCP and the web (principle 3).85-- The web never: shows a diff to anyone but a decider finishing an answer; shows a score, rank or count of a person as a measure of quality; reads a write-only value back, or shows the placeholder an answer sees (it reads like a value); names a held-back path, check or case to someone outside its layer.86-- Undecided: a light or dark default per page (it follows the system setting); a custom domain.90+- The web never: shows an unlanded answer's diff to anyone but the decider finishing it; shows a score, rank or count of a person as a measure of quality; reads a write-only value back, or shows the placeholder an answer sees (it reads like a value); names a held-back path, check or case to someone outside its layer.91+- Undecided: a theme beyond following the system's light or dark setting (no toggle); a custom domain.92 93 ## Brand Commitments94 95 - The name lives only in `packages/brand`: code takes it from `Brand.name` and the command from `Brand.cli`. Prose may name it: Myr, said "meer".12 unmodified lines108 1. **The terminal is the workplace; the web is the window.** Every action shows its command; nothing adds a second way to land.109 2. **Render the typed value, not a paraphrase.** Refusals, credits, postures and outcomes read the same on every surface, because one renderer and one component draw each.110 3. **Waiting is not refusing.** Checking, waiting on a parent ask, a finish or a decision each read as waiting, never as an error.111 4. **Credit people, disclose agents, score no one.**107-5. **Decisions fit a phone.** Today's density is set by a decider clearing it in a few minutes on a small screen.112+5. **Decisions fit a phone.** Today's density is set by a decider clearing it in a few minutes on a small screen: one tap a choice, its consequence said under it.113 114 ## Accessibility & Inclusion115 111-WCAG 2.2 AA: text contrast at least 4.5:1 (every state colour measures at least 5:1 in both themes), visible focus on every control, every state carried by a word and a mark as well as a colour, `prefers-reduced-motion` honoured, and usable at 360 px wide with no horizontal scroll.116+WCAG 2.2 AA: text contrast at least 4.5:1 (every state colour measures at least 5:1 in both themes), controls and borders at 3:1, nothing set below 13 px, visible focus on every control and a skip link to the page, every state carried by a word and a mark as well as a colour, single-key shortcuts that one switch turns off, `prefers-reduced-motion` honoured, and usable at 360 px wide with no horizontal scroll. `apps/web/e2e/a11y.e2e.ts` runs axe and a keyboard walk over every page in both schemes at 1440 and 390 px against the dev world.modified:README.md+19 added-5 removed
44 unmodified lines45 6. It lands the checked tree on `main` as its own commit crediting every person, or answers with a refusal.46 47 Around the loop:48 49-- **A code browser on the web.** A project's page shows its clone line, its files and its README, rendered as GitHub-flavoured Markdown with links and images pointing into the repo at the commit. Beside it are a file tree, highlighted files with `#L` line links, raw bytes served under a sandboxing CSP, the history, each commit's diff, and one refs page (main, tags and claim forks; a monorepo's tags grouped by package, each package's newest first). The README arrives in the server's HTML, so a crawler or `curl` reads it too. Every page names the commit it shows, so any page is a permalink.49+- **A web built as the gate's control room.** Every page sits in one shell: a rail of where you are (the site's sections, the projects with their posture, the project's sections), the page, and an inspector of the typed facts of the thing in hand (its state, whose move it is, who may take it, the gate, the claim, the family, the provenance), each with its next command numbered to copy. Lists are rows: select one, with a click or `j`/`k`, and its facts and claim command fill the inspector; a split family is one row with its children drawn as a fan that marks each landing as it happens. Below 1120 px the rail opens from a Menu and the facts follow the page's head, and phones get a bottom bar; Today is built to clear on a phone, one tap a choice with its consequence said under it. Pages arrive with their rows in the server's HTML and move without reloading, `?` lists the keys (`j`/`k`, `J`/`K`, `1`-`9` to copy a numbered command, and a switch that turns them off), and colour still means state, always beside its word and mark ([ADR 0022](docs/adr/0022-the-web-is-a-control-room-shell.md), [ADR 0023](docs/adr/0023-links-are-the-routers-and-lists-render-on-the-server.md)).50+- **A code browser on the web.** A full-viewport app inside the shell: the file tree stays in the rail across files, with a Code | Why toggle on each file, highlighted code with `#L` line links, raw bytes served under a sandboxing CSP, the landings by day, each commit's diff (unified or split, with its stats by territory and tests) and one refs page (main, tags and claim forks; a monorepo's tags grouped by package, each package's newest first). The server sends each file and diff as plain text at the drawing's exact size, so highlighting lands in place. A project's home is its asks, then its README, rendered as GitHub-flavoured Markdown with links and images pointing into the repo at the commit, in the server's HTML so a crawler or `curl` reads it too. Every page names the commit it shows, so any page is a permalink.51 - **Why each line is there.** A file's why page attributes each line to the landing that put it on `main`, naming its ask, answer, people and verdict, or the ask an opening opened. Imported history reads "before adoption". Why and a file's history are kept by commit in an R2 bucket, so every isolate reads them back ([ADR 0020](docs/adr/0020-code-history-is-kept-by-immutable-ids.md)): on the dev stage's imports (changesets, click; 200 commits of history) a first view took 5.3 to 7.7 s, down from 18.6 to 39.6 s, and a view already kept answers in under a second.52 - **Asks drafted for a want.** A member proposes a want with `--draft` (or the web's propose form). The platform's agent, a Workers AI model, drafts the ask file and its failing test, runs them red first on the Checker, and puts the draft to a decider with its evidence. Nothing lands until a decider accepts, and the landing discloses the agent with `Assisted-by` ([ADR 0018](docs/adr/0018-asks-are-drafted-in-a-workflow-and-put-to-a-decider.md)).52-- **A people page.** Who decides which paths, who is vouched for or denounced, each layer's readers, writers and disclosure, and the caps, budget and claim timing, all read from the config folder at the landed commit. It has no edit control: these change by landing a change to the config folder. A project whose config has not evaluated says why (no config folder, or one that failed) and what makes it evaluate; `myr policy` prints the same as text.53+- **A Policy page.** Who decides which paths, who is vouched for or denounced, each layer's readers, writers and disclosure, and the caps, budget and claim timing, all read from the config folder at the landed commit. It has no edit control: these change by landing a change to the config folder. A project whose config has not evaluated says why (no config folder, or one that failed) and what makes it evaluate; `myr policy` prints the same as text.54 - **The platform's own front page.** The platform's `/` says what the host serves (clone URLs, MCP, agent skills, sign-in, the CLI and the web app), in HTML for a browser and as Markdown for an agent.54-- **An Agents page.** The web's `/agents` (and `/agents.md`) says how to connect an agent five ways: remote MCP (Claude Code, Cursor and VS Code), MCP over stdio, the CLI, a prompt for any agent, and the skills. Its MCP entries are the same text the plugin bundles carry.55+- **A For agents page.** The web's `/agents` (and `/agents.md`) is a reference in the voice of a man page: a Synopsis of the CLI's commands, Connect (remote MCP for Claude Code, Cursor and VS Code, MCP over stdio, the CLI, a prompt for any agent, and the skills), the Endpoints an agent reads, the Limits, and every Refusal. Its MCP entries are the same text the plugin bundles carry.56+- **Markdown on every list page.** `/` and each project's page answer `Accept: text/markdown` with the text of `/llms.txt` and the project's `llms.txt`, and their HTML links to it.57 - **`/llms-full.txt`.** Beyond the index at `/llms.txt`: every refusal with its repair, how git meets the platform, how a landing happens, every event a watcher hears, and short guides. The index names it in its first sentence, and a project's `llms.txt` and each ask's Markdown open with a line pointing to both.58 - **The code over MCP.** An agent with no shell, such as a hosted connector, browses a project's code with five capped MCP tools: `readTree`, `readFile`, `log`, `why` and `listRefs`.59 60 The web reads code only through public contracts the platform serves ([ADR 0019](docs/adr/0019-the-web-reads-repos-through-public-contracts.md)). On the dev stage, eight open-source repos are imported and kept for previewing it: anyhow, ky, gum, click, awesome, changesets, stb and fuzzel.23 unmodified lines84 ```85 86 `vite dev` resolves the web's `#backend` import to `apps/web/src/dev/backend.ts`: every contract served in process over memory adapters, seeded with the two fictional example projects, `examples/datekit/` and `examples/burrow/`. Open the URL vite prints; `/auth/dev?handle=ines-v` signs you in as datekit's fictional decider.87 88+To see every state a page can draw (each outcome, a family's fan mid-way, every kind of decision, a sealed ledger, a set env value, drafted proposals), add the dev fixtures: a fictional project, `vellum`, told as a story through the same service, and six small projects beside it. `live` also lands one family child about 20 s after a vellum page first reads it, so a page open on it shows the landing as it happens:89+90+```sh91+VITE_DEV_FIXTURES=1 bun run --cwd apps/web dev92+VITE_DEV_FIXTURES=live bun run --cwd apps/web dev93+```94+95+With the fixtures running, `WEB_URL=<the URL vite printed> bun run --cwd apps/web e2e -- a11y.e2e.ts` runs axe and a keyboard walk over every page in both colour schemes at 1440 and 390 px (it loads axe from cdnjs at run time).96+97 The CLI from source, against that dev world (use the port vite printed):98 99 ```sh100 MYR_URL=http://localhost:5173 bun apps/cli/src/bin.ts projects165 unmodified lines266 | --- | --- | --- |267 | 1 | Asks drafted by the platform's agent (`propose --draft`, `ask draft`, `proposal`; a proposal without a draft still goes to a decider) | `packages/drafting/`, `packages/project/src/draft-runs.ts`, `packages/project/test/{drafting.model,draft-settle,rehearse}.test.ts`, `apps/platform/src/workflows/draft-steps.ts`, `apps/platform/src/adapters/draft-runs-workflow.ts`, `apps/platform/test/workflows/draft.test.ts`; the `ai` binding, `DRAFT_MODEL` and `DRAFT_LIMIT` lines in `apps/platform/wrangler.jsonc` (then `bun run --cwd apps/platform types`) and their decode in `apps/platform/src/platform.ts`; the web's `apps/web/src/routes/$project/proposals/`, `apps/web/src/features/{propose,proposal}/`, `apps/web/src/client/{propose,proposal}.ts` and their tests; the `draftAsk` and `showProposal` handlers in `apps/platform/src/handlers.ts` and `apps/web/src/dev/handlers.ts`, and `proposeAsk`'s `draft` branch |268 | 1 | Today full-screen at a terminal, `myr today --tui` (`myr today` goes back to the contract's projected command, which prints the same) | `apps/cli/src/tui/`, `apps/cli/test/tui/`, the `@opentui/*` lines in `apps/cli/package.json`; `today` in `wrapped`, `entries` and `Every` in `apps/cli/src/surfaces.ts`, its row in `packages/agent-kit/src/command-doc.ts` and its word in `packages/agent-kit/test/command-doc.test.ts` |269 | 1 | Agent extras: the Markdown ask page, per-project well-known skills, and `myr schema` | `apps/web/src/features/ask/markdown.ts`, `apps/web/test/ask-markdown.test.ts`; `packages/agent-kit/src/well-known.ts`, `apps/platform/src/well-known.ts`, `apps/platform/test/well-known.test.ts`, `apps/web/src/routes/[.]well-known/agent-skills/$.ts`; `apps/cli/test/schema.test.ts` and the `schema` command in `apps/cli/src/surfaces.ts` |259-| 1 | The Agents page (the plugin bundles keep their MCP entries) | `packages/agent-kit/src/agent-setup.ts`, `packages/agent-kit/test/agent-setup.test.ts`, `packages/agent-kit/test/golden/agent-setup.txt`, `apps/web/src/routes/agents.tsx`, `apps/web/src/routes/agents[.]md.ts`, `apps/web/src/features/agents/setup-page.tsx`, `apps/web/test/agents.test.tsx`; the Agents entry in `NAV` and the footer's link in `apps/web/src/features/shared/layout.tsx`, with their cases in `apps/web/test/shared.test.tsx`, and the two routes' rows in `apps/web/test/routes.test.ts`. `agents` may stay reserved in `packages/protocol/src/ids.ts` |270+| 1 | The For agents page (the plugin bundles keep their MCP entries) | `packages/agent-kit/src/agent-setup.ts`, `packages/agent-kit/test/agent-setup.test.ts`, `packages/agent-kit/test/golden/agent-setup.txt`, `apps/web/src/routes/agents.tsx`, `apps/web/src/routes/agents[.]md.ts`, `apps/web/src/features/agents/setup-page.tsx`, `apps/web/test/agents.test.tsx`; its entry in the rail's sections in `apps/web/src/features/shared/shell/rail.tsx`, in the phone's More sheet in `apps/web/src/features/shared/shell/overlays.tsx` and its crumb in `apps/web/src/features/shared/shell/sections.ts`, with their cases in `apps/web/test/shell.test.tsx`, and the two routes' rows in `apps/web/test/routes.test.ts`. `agents` may stay reserved in `packages/protocol/src/ids.ts` |271+| 1 | The single-key shortcuts and the keys dialog (every key's pointer twin stays: rows are links, files are the tree's rows, commands have copy buttons) | `apps/web/src/features/shared/keys.tsx`, `apps/web/src/features/code/file-keys.ts`, `apps/web/test/keys.test.tsx`; the keys dialog in `apps/web/src/features/shared/shell/overlays.tsx` and the Keys button in `apps/web/src/features/shared/shell/rail.tsx`; the calls to its hooks (`useListKeys`, `useFileKeys`, `useNumberedCommand`, `useCopiedCommand`, `useEscapeClears`) and its provider in `apps/web/src/features/shared/{row,command,copy-action}.tsx`, `apps/web/src/features/shared/shell/{app-shell,context-bar,facts-sheet,workspace}.tsx`, `apps/web/src/features/shared/shell/selection.ts`, `apps/web/src/features/code/file-header.tsx`, `apps/web/src/features/today/today-page.tsx`, `apps/web/src/routes/$project/decisions/$decision.tsx` and `apps/web/src/routes/$project/tree/-rail-body.tsx` |272+| 1 | The dev fixtures (the default dev world and every test that seeds it are unchanged; nothing of them reaches a production build) | `apps/web/src/dev/fixtures.ts`, `apps/web/src/dev/fixtures/`, `apps/web/test/dev-fixtures.test.ts`, the `fixtures` option in `apps/web/src/dev/{backend,server,world}.ts`, and `apps/web/e2e/a11y.e2e.ts`, whose pages are the fixtures' |273+| 2 | The kept posture (each list reads every listed project's posture again, as ADR 0021 had it) | `packages/project/src/projection-d1/postures.ts`, its table's lines in `packages/project/src/projection-d1/tables.ts` and its deletes in `packages/project/src/projection-d1/projection.ts`, its line in `apps/platform/src/ports.ts` and in the `/` route's services in `apps/platform/src/surfaces.ts`, and their cases in `packages/project/test/projection-d1.test.ts` and `apps/platform/test/{front-page,home,posture-listing}.test.ts`; `apps/platform/migrations/0005_standing_postures.sql` may stay, since an unused table costs nothing. Going further, `packages/project/src/standing-posture/memory.ts` and the store half of `packages/project/src/standing-posture.ts` with `packages/project/test/standing-posture.test.ts`'s store cases |274 | 1 | `/llms-full.txt` and the banner atop each Markdown answer | `packages/agent-kit/src/full-llms.ts`, `packages/agent-kit/test/full-llms.test.ts`, `packages/agent-kit/test/golden/full-llms.txt`, `apps/web/src/routes/llms-full[.]txt.ts` and its cases in `apps/web/test/llms.test.ts`; `refusalCatalog` in `packages/agent-kit/src/refusals.ts`; `indexBanner` and the index's link to the file in `packages/agent-kit/src/host-doc.ts` (then regenerate `packages/agent-kit/test/golden/host-doc.txt`), the banner in `apps/web/src/features/ask/markdown.ts` with its cases in `apps/web/test/ask-markdown.test.ts`, the re-exports in `apps/web/src/features/agents/llms.ts`, and its row in `apps/web/test/routes.test.ts` |275 | 1 | The pi adapter | `apps/cli/src/pi.ts`, `apps/cli/test/pi.test.ts`, its entry and its `neverBundle` line in `apps/cli/tsdown.config.ts`, the pi dev dependency in `apps/cli/package.json`, and the adapter's line in the package manifest's `pi` key in `scripts/lib/release.ts` |276 | 2 | Why each line is there, on the web (the file toolbar's Why link goes) | `packages/git/src/blame.ts`, `packages/git/src/line-diff.ts` (with `tree-diff.ts` keeping its own diff), `packages/git/test/{blame,line-diff}.test.ts`, `packages/project/src/code/why.ts`, `packages/project/test/code-why.test.ts`, `whyOf` in `packages/project/src/code.ts`, the `why` contract's handlers, `apps/web/src/routes/$project/why/`, `apps/web/src/features/why/`, `apps/web/src/client/why.ts`, `apps/web/test/why.test.tsx`, `apps/web/e2e/why.e2e.ts` |277 | 2 | Code history kept across isolates (each isolate walks why and a file's history again, as it did before; nothing else changes) | `packages/project/src/code-store/binding.ts` and its R2 cases in `packages/project/test/code-store.test.ts`; the `CODE_CACHE` bucket in `apps/platform/wrangler.jsonc` (then `bun run --cwd apps/platform types`), its decode in `apps/platform/src/platform.ts`, its `CodeStoreR2` line in `apps/platform/src/ports.ts`, its line in `apps/platform/test/fake-env.ts` and its rows in `apps/platform/test/bindings.test.ts` and `apps/web/test/env.test-d.ts`; `codeCache` in `infra/stages.ts` and its rows in `packages/config/test/bootstrap.test.ts`. Going further, `packages/project/src/code-store.ts`, `packages/project/src/code-store/`, `packages/project/src/code/history.ts`, `packages/project/test/code-history.test.ts` and the store's `CodeStore` line in `apps/platform/src/surfaces.ts` go too, which edits `nearestKept` and its callers out of `packages/project/src/code/{why,log}.ts` |278 | 2 | A README rendered as Markdown (it shows as plain text instead) | `apps/web/src/features/markdown/`, `apps/web/test/markdown.test.tsx`, `apps/web/test/markdown-resolve.test.ts`, and the `react-markdown`, `remark-gfm`, `rehype-*` and `@tailwindcss/typography` lines in `apps/web/package.json` |265-| 3 | The people page | `apps/web/src/routes/$project/people.tsx`, `apps/web/src/features/project-people/`, `apps/web/src/client/policy.ts`, `apps/web/test/project-people.test.tsx`, `apps/web/e2e/people.e2e.ts`, and its tab in the project nav |279+| 3 | The Policy page | `apps/web/src/routes/$project/people.tsx`, `apps/web/src/features/project-people/`, `apps/web/src/client/policy.ts`, `apps/web/test/project-people.test.tsx`, `apps/web/e2e/people.e2e.ts`, its section in `apps/web/src/features/shared/shell/sections.ts`, and the project home's Who decides block, which reads the same policy, in `apps/web/src/features/project/project-page.tsx` |280 | 2 | `myr why`, verdicts as git notes, and the `ReachedInternals` stage | `apps/cli/src/local/why.ts`, `apps/cli/test/local/why.test.ts`; `packages/git/src/notes.ts`, `apps/platform/src/workflows/notes.ts`, `packages/git/test/notes.test.ts`, `apps/platform/test/notes.test.ts` (verdicts still reach `status`, `verdict` and MCP); `packages/gate/src/imports.ts`, `packages/gate/test/imports.test.ts` and its branch in `packages/gate/src/stages/shape.ts` |281 | 2 | The null-answer codemod: a check that passes against an answer whose exports do nothing is `WeakCheck` (built and tested; no ask runs it yet, since it needs a third check run and a step in the Checker's image) | `packages/checks/src/null-answer.ts`, `packages/checks/test/null-answer.test.ts`, `packages/checks/test/fixtures/null-answer/`, and its `./null-answer` export and `ts-morph` line in `packages/checks/package.json` |282 | 3 | Garden's Promote: a finish repeated across answers becomes a proposed `lintToZero` ask behind one decision (built and tested; no landing calls it yet, since no finish carries the rule it names) | `packages/project/src/attention/promote.ts`, `packages/project/test/attention/promote.test.ts` |283 | 3 | Admission runs and env injection | `packages/project/src/visibility/admission.ts`, `apps/platform/src/workflows/admission-steps.ts`, `packages/project/test/visibility/admission.test.ts`, `apps/platform/test/visibility/admission.test.ts`; `apps/sandbox/src/env-gateway.ts`, `apps/sandbox/src/checker/env.ts`, `apps/sandbox/test/env-injection.test.ts` |110 unmodified lines