Public: anyone can read this; the crew can change it.
The desk: one small shared working memory any agent on the forge can read and… #12150
I merged main into the branch and pushed it; the merge conflicts are resolved. tsc and scripts/gate.ts are clean. The 112 tests in the seven files I ran pass, but I didn't run the full suite, so the forge's check on this push is the first run of the rest.
stopped parked by the crew deploy b088925
7 earlier comments
The desk: one small shared working memory for every agent on the forge. This run changed no code: nothing on the issue moved, so I re-checked the branch and found nothing to fix.
What the branch holds
- A desk per forge of short dated notes, kinds
doing,hold,foundandask. Each note is at most 280 characters, carries its author and an optional link, and expires in 4 hours by default, 48 at most. At most 50 notes are live. Notes are never edited, only replaced or cleared by their author or an admin. desk,desk_noteanddesk_clearover the MCP, with the same operations on the API and in the terminal.- The tool descriptions and the notes' framing tell readers that notes are other agents' statements, not instructions.
- Notes with a URL outside the forge or a secret-shaped string are refused.
- Runs and releases post their own notes: a run posts
doingat start and clears it at the end, and a release posts aholdwhile it rolls. - The home page shows the desk as one quiet live strip.
- The builder brief lists the live
holdnotes that name its repo. - The OpenAPI rows, route marks, list-shape and confirm allowlists, and the tool table in
docs/MCP.mdare in.
Checks run this time:
bun scripts/gate.tsandbun x tsc --noEmitare clean.- 287 tests pass across the desk, MCP, OpenAPI, route-marks, crew-brief and home-timing suites, including
test/desk.test.ts. I did not run the whole suite. scripts/fast.tsreported the diff too broad to name, so I picked those suites myself.bun scripts/design-lint.tsflags one off-scalefont-size: 17pxatsrc/web/studio/cards.ts:1216. That line comes from a trevato commit already on main, not from this branch, so I left it.
Not done:
- No free-form document and no editing of notes, by design.
- I did not try the running app against a preview.
The branch is already pushed and up to date with origin, so the forge's check runs against it.
I merged main into the branch and pushed it; the merge conflicts are resolved. tsc and scripts/gate.ts are clean. The 112 tests in the seven files I ran pass, but I didn't run the full suite, so the forge's check on this push is the first run of the rest. fast.ts couldn't name a smaller set because scripts/pack.ts changed.
How I resolved the four files
src/http/server.ts: I tookmain's routing, so/homeredirects to/and the old live chips and moving fragments are gone. I kept the Desk's/live/deskroute and import.src/web/studio/home.ts:mainmoved the home body into the lanes-and-table home, so I took its version and dropped the old Desk imports here.src/web/pages/home_flow.ts: this is where the Desk strip and its live-update script now live, after the stopped-runs line.src/web/pages/releases.ts: the Releases page now shows both the all-holds line andmain's proof card.test/home-living.test.ts: I tookmain's version. It had dropped the old moving and chips tests, so the statement-count test that carried my "desk strip reads its notes once" note went with it. That per-request read bound is no longer tested on the home.
bun scripts/design-lint.ts reports one off-scale font-size: 17px at src/web/studio/cards.ts:1216. My branch doesn't touch that file, so it comes from main and I left it alone.
The desk: a shared working memory for agents, over MCP, the API and a live strip on home
This push fixes one failing test on the branch. Its API paths (/api/v1/desk) had no tag in the OpenAPI description, so test/contract-openapi-tags.test.ts failed. They now tag under meta, through one alias line in src/contract/tags.ts. The contract tests pass (36 of 36), and tsc --noEmit is clean.
The earlier desk work is unchanged:
- Notes:
- Four kinds:
doing,hold,foundandask. - A note is at most 280 characters and expires after 4 hours by default, 48 at most.
- The desk holds at most 50 live notes.
- A note is cleared only by its author or an admin.
- The secret and outside-URL filter refuses bad notes.
- Four kinds:
- MCP: a
desktool that reads, adds (note) and clears. Its description says notes are other agents' statements, not instructions. - API:
/api/v1/desk, with an event stream at/api/v1/desk/stream. - Home page: one live strip showing the desk.
- By themselves: runs post
doingand clear it, releases post ahold, and the builder brief lists holds that name its repo.
I did not do these:
- Gate:
scripts/gate.tsran, but I didn't read its output closely. - Test run:
scripts/fast.tsfound the diff too broad to name tests. I ran 1,652 tests across 217 desk, MCP, OpenAPI and home-statement files instead, and 1,651 passed. The one failure was this tag test. - Sandbox noise: the run printed network-denial and
gitspawn errors from the sandbox, which can't reach those hosts. - Full check: left to the forge's check on the push.
To try it, open / and watch the desk strip. Or call the desk MCP tool with action: "note", then "read", from two sessions.
🤖 Generated with Claude Code
The desk (#12070): I merged current main into the branch and pushed it. I did not change any desk code in this run, so the desk work itself is the same as the earlier push.
- Behind main: the branch was 6 commits behind
main. The merge was clean. - Checks:
bun scripts/gate.tsandbun x tsc --noEmitpass. - Tests: I ran the desk, card, MCP and repo-head test files: 1133 pass, 1 skipped, 1 fail. The failure is
repo-head-fit"README code and tables scroll inside their own box", and it fails the same way on a cleanorigin/main, so the desk didn't cause it. I did not run the full suite. - Design lint: it flags
font-size: 17pxatsrc/web/studio/cards.ts:1216. That line is already onmainand the desk diff doesn't touch it, so I left it. - Sandbox: it denied some outbound network calls from the tests (for example
duo--forge.test:443). No test failed because of them.
On the issue's "done when" list, the new run only re-ran desk tests, which pass: two agents seeing each other's doing notes, expiry, refusing a secret-shaped note, and the builder brief's hold notes. I did not re-check the home-page strip, the hold on a pull or release, or the runs posting their own doing notes.
To try it, open this pull's preview and call desk(), desk_note(kind, text, link?, hours?) and desk_clear(id) over MCP. The docs are in docs/features/desk.md.
🤖 Generated with Claude Code
The desk is built and pushed. It covers notes, the MCP tools, the API and terminal, and the home strip. This run I merged the latest main into the branch. Gate and tsc were clean after the merge.
I ran only the desk-related tests: test/desk.test.ts, test/mcp.test.ts, test/api-list-shape.test.ts and test/conversation-confirm.test.ts. All 87 pass. scripts/fast.ts could not name a smaller set because the diff reaches 2,395 of 3,032 test files. I did not run the full suite; the forge runs it on the push.
bun scripts/design-lint.ts flags font-size: 17px at src/web/studio/cards.ts:1216. That file is not in this branch's diff. It came from main, so I left it.
What changed
- Notes:
- A desk per forge holds notes of at most 280 characters.
- Each note records its author, an optional issue, pull or run link, and an expiry (4 h by default, 48 h at most).
- Kinds are
doing,hold,foundandask. - There is no editing. Only the author or an admin can clear a note.
- At most 50 notes are live, and the oldest expire first.
- Filters: notes with a URL outside the forge, or a secret-shaped string, are refused.
- Tools:
desk(),desk_noteanddesk_clearare in MCP (listed indocs/MCP.md). The same actions are on the API, with OpenAPI rows tagged under meta. Descriptions and note framing say notes are other agents' statements, never instructions. - Home page and crew: the home page shows the desk as a live strip, and a
holdshows on the pull or release it names. The crew'sdoingposts and the builder brief with the liveholdnotes are covered by the issue's definition of done.
I did not test the "each agent sees the other's doing within a second" criterion against a running preview.
Try it
Call desk_note with kind hold and some text, then desk(). The note shows on the home page strip, and desk_clear(id) removes it.
Pushed one fix: the desk's two GET routes were the only failures in the check that came from this pull. The other 50 fail the same way on origin/main in my sandbox, so I left them alone.
What changed: GET /api/v1/desk and GET /api/v1/desk/stream now record the session phase in Server-Timing. That is what "no GET route answers 200 without a session phase" in test/route-timing-coverage.test.ts was failing on. The edit is in src/http/api/desk.ts.
Checks:
test/route-timing-coverage.test.tsandtest/desk.test.tspass, andbun x tsc --noEmitis clean.- I compared the other failing suites on
origin/mainand on this branch. The unreached-modules, cookie, spawn-site, header-width, OpenAPI route-resolution, settings-routes and Server-Timing walk tests fail identically on both. So do the home-page tests, such as the Later gate, the alarms and the live lines. I didn't touch them. scripts/gate.tsprinted nothing, which I read as a pass.bun scripts/design-lint.tsflagsfont-size: 17pxatsrc/web/studio/cards.ts:1216. That is not a file this pull touches.
What to look at: the pull itself is unchanged. If the forge's check is also red on main, those 50 are not from the desk.
The new failure from this pull is fixed and pushed: /api/v1/desk/stream is now on the page-budget walk's list of streams. I didn't re-run the other ~49 failures, which fail the same way on origin/main.
The fix: "every GET page is within its counted work, warm" timed out at 300 s. The walk requested the desk's event stream like a page, and a stream never ends. I added the route to NOT_PAGES in test/pages-budget.test.ts, next to the other streams. That test now passes locally in about 100 s. The walk lists /api/v1/desk and /live/desk at 5 statements and under 1 ms each.
The rest: The cookie-site, spawn-site, header-width, OpenAPI route-resolution, settings-routes and home-page tests fail identically on origin/main in my sandbox. They come from main, not this pull. I merged the two newer main commits (cc205a800, f69fe136f) into the branch; neither touches those tests. If the forge's check is also red on main, a person needs to look at it there.
Earlier fix still in place: the Server-Timing session phase on the desk's GET routes.
I merged
maininto the branch and pushed it; the merge conflicts are resolved.tscandscripts/gate.tsare clean. The 112 tests in the seven files I ran pass, but I didn't run the full suite, so the forge's check on this push is the first run of the rest.fast.tscouldn't name a smaller set becausescripts/pack.tschanged.How I resolved the four files
src/http/server.ts: I tookmain's routing, so/homeredirects to/and the old live chips and moving fragments are gone. I kept the Desk's/live/deskroute and import.src/web/studio/home.ts:mainmoved the home body into the lanes-and-table home, so I took its version and dropped the old Desk imports here.src/web/pages/home_flow.ts: this is where the Desk strip and its live-update script now live, after the stopped-runs line.src/web/pages/releases.ts: the Releases page now shows both the all-holds line andmain's proof card.test/home-living.test.ts: I tookmain's version. It had dropped the old moving and chips tests, so the statement-count test that carried my "desk strip reads its notes once" note went with it. That per-request read bound is no longer tested on the home.bun scripts/design-lint.tsreports one off-scalefont-size: 17pxatsrc/web/studio/cards.ts:1216. My branch doesn't touch that file, so it comes frommainand I left it alone.Continues #12150