Merge build/1399-integration into main
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by oscabriel · committed by oscabriel · parents a8fc398, 556ba01 · Browse files · 4 files·+13 added−12 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
4 files+13 added−12 removed
- other:+13 added−12 removed
Provenance
- Commit
41f84ca- Tree
d9d8df6- Author
oscabriel <oscarhernandeziv@gmail.com>- Committer
oscabriel <oscarhernandeziv@gmail.com>- Parent 1
a8fc398- Parent 2
556ba01
4 files changed+13 added−12 removed
modified:docs/demo/rehearsal.md+3 added-3 removed
13 unmodified lines1415161718181920212212 unmodified lines3536373839394041424315 unmodified lines5960616263636465666772 unmodified lines13 unmodified lines**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".
## Shots
- [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".- [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". The front page is at `/asks` since W13; `/` is the landing.- [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).- [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.- [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.- [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.12 unmodified lines- [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.- [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.- [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.- [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.- [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.- [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. The front page is at `/asks` since W13.- [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`.- [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.- [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.- [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.15 unmodified lines bun scripts/smoke.ts --stage demo ```
- [x] The seeded state is fresh. The seed has no check mode, so open each page and compare: PASS 2026-10-08 demo: each page and each read below, as listed. The reads needed `MYR_URL` (now the block's first line): with neither it nor a profile, the CLI says "no platform to call". - `https://web-demo.oscargabriel.workers.dev/`: datekit's three asks (add-months-clamp, format-ordinal held for newcomers, parse-iso-week) and burrow's six `drop-legacy-fetch-burrow-*` children, all open and unclaimed; - `https://web-demo.oscargabriel.workers.dev/asks`: datekit's three asks (add-months-clamp, format-ordinal held for newcomers, parse-iso-week) and burrow's six `drop-legacy-fetch-burrow-*` children, all open and unclaimed; - `https://web-demo.oscargabriel.workers.dev/burrow`: `drop-legacy-fetch-delete` waiting on all six; - `https://web-demo.oscargabriel.workers.dev/datekit/ledger`: "Open with sealed evidence", with export's 7 sealed checks and parser's 4; - `https://web-demo.oscargabriel.workers.dev/datekit/env`: SENTRY_AUTH_TOKEN listed, `@sensitive`, with its proxy host.
72 unmodified linesmodified:docs/demo/shot-list.md+3 added-3 removed
3 unmodified lines4 5 The stage's two origins:6 7 - the platform, for git and the CLI: `https://platform-demo.oscargabriel.workers.dev`;8-- the web: `https://web-demo.oscargabriel.workers.dev`.8+- the web: `https://web-demo.oscargabriel.workers.dev`. Its `/` is the landing (what the platform is, a link to the open asks, the gate's refusal as git prints it, the projects to read), and a signed-in visitor at `/` goes on to `/home`; the front page, the open asks across projects, is at `/asks`. No shot opens on `/`.9 10 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 (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. |14+| S01 | The front door broke | web | `https://web-demo.oscargabriel.workers.dev/asks` | 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. |12 unmodified lines31 | 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'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 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. |35+| S22 | The maintainer's day | web | `https://web-demo.oscargabriel.workers.dev/asks` | 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. The page is datekit's asks, then its README, whose first sentence is the lede under the title. | Any page from this take. |12 unmodified linesmodified:AGENTS.md+2 added-2 removed
13 unmodified lines14 | --- | --- | --- |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); `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); `packages/protocol/test/exit-code.test.ts` (each tag's CLI exit code is pinned, 75 exactly when it is retryable) |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 |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); `packages/agent-kit/test/docs.test.ts` and `apps/web/test/docs.test.tsx` (the `/docs` pages name only the CLI's commands with flags each takes and link only to pages that exist, the reference lists every command, refusal, event, MCP tool and imported project from its source, and the web draws each page and its Markdown from that one text); `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, 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) |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/landing.test.tsx` (the landing at `/` draws only the public project list, each project with the posture its listing gives); `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`) |123 unmodified linesmodified:README.md+5 added-4 removed
45 unmodified lines46 47 Around the loop:48 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 landing, the asks, a home and the docs.** The web's `/` is a landing for a first-time reader: what the platform is, the way to the open asks before anything else, the install line, the screen `git push` prints when the gate refuses (from the one renderer), the four nouns, the loop, and the projects to read, each with its posture. The front page of open asks across every project is `/asks`. A signed-in person's `/home` is their own: their claims, newest first, each with its ask's want, its latest answer and the command to run next; the decisions waiting on them, if they decide; and the asks they may take. `/docs` holds five guides and a reference (the commands, every refusal, every event, the MCP tools and the imported projects) read from the sources that define them, each page also as Markdown at `/docs/<page>.md`.51 - **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.52 - **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.53 - **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)).54 - **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.55 - **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.56 - **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+- **Markdown on every list page.** `/`, `/asks` 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.58 - **`/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.59 - **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`.60 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.61+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, 38 open-source repos are imported and kept for previewing it: eight picked for a shape the code browser must render (anyhow, ky, gum, click, awesome, changesets, stb and fuzzel), then thirty well-known projects in TypeScript, JavaScript, Rust, Go, Python, C, Ruby and shell, each a read-only copy under its own licence. `/docs/imported` names each one's source and licence, and `infra/stages.md` records each import. An import is heard as a landing, its adoption, so a project imported since that change is listed whether or not its policy evaluates; seventeen of the 38, imported before it, are not yet.62 63 ## Run it64 65 ### What you need17 unmodified lines83 ```sh84 bun run --cwd apps/web dev85 ```86 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/`. It answers on `http://127.0.0.1:3032`, pinned in `apps/web/vite.config.ts`; a `CADDY_DEV_HOST` in a gitignored `.env.development.local` beside it (not `.env`, which Wrangler would load as a Worker secret) also lets a reverse proxy serve it under that name, with hot reload over `wss`. `/auth/dev?handle=ines-v` signs you in as datekit's fictional decider. The seed is written on a fixed calendar; the dev server moves it so the seed's last step is the minute it starts, then lets its clock run in real time, so deadlines read as the seed meant them on any day (tests keep the calendar as written, with the clock standing still).87+`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/`. It answers on `http://127.0.0.1:3032`, pinned in `apps/web/vite.config.ts`; a `CADDY_DEV_HOST` in a gitignored `.env.development.local` beside it (not `.env`, which Wrangler would load as a Worker secret) also lets a reverse proxy serve it under that name, with hot reload over `wss`. Its `/` is the landing and `/asks` the open asks; `/auth/dev?handle=ines-v` signs you in as datekit's fictional decider, whose `/home` and `/today` then fill. The seed is written on a fixed calendar; the dev server moves it so the seed's last step is the minute it starts, then lets its clock run in real time, so deadlines read as the seed meant them on any day (tests keep the calendar as written, with the clock standing still).88 89 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:90 91 ```sh181 unmodified lines273 | 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` |274 | 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` |275 | 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' |276 | 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 |276-| 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` |277+| 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 `indexBanner` re-export in `apps/web/src/features/agents/llms.ts`, and its row in `apps/web/test/routes.test.ts` |278 | 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` |279 | 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` |280 | 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` |281 | 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` |115 unmodified lines