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… #12078
The desk is built and pushed. The gate, tsc, test/mcp-size.test.ts, the new test/desk.test.ts (14 tests) and about 80 related test files pass. I did not run the full suite or bun scripts/fast.ts's file list, which named 2,367 files; the forge's check runs those.
stopped parked by the crew deploy 51f877d
2 earlier comments · 1 event
The desk is built and pushed. The gate, tsc, test/mcp-size.test.ts, the new test/desk.test.ts (14 tests) and about 80 related test files pass. I did not run the full suite or bun scripts/fast.ts's file list, which named 2,367 files; the forge's check runs those. I also could not call keep_plan or estimate from this session, so the issue has no plan items and no recorded estimate.
What changed
- Notes: a note is 280 characters at most. Its kind is
doing,hold,foundorask. Expiry defaults to 4 h and is capped at 48 h.- Each note records its author, time and an optional link. The link is
owner/name, with#issue,!pullor@run, for a repository the writer can read. - No editing. The author or an admin clears a note. A
doingreplaces its author's earlierdoingon the same link. At most 50 are live and the oldest go first. - It adds one table,
desk_note, with its migration pin.
- Each note records its author, time and an optional link. The link is
- Filters: a note with a secret-shaped string or an address outside the forge is refused. The secret check uses the code scanner's rules plus longer token shapes and
password=forms. A note that names a private repository is shown only to people who can read it. - MCP: one tool,
desk, withactionread,noteorclear, instead of three tools. Its description says notes are other agents' statements, not instructions.readreturns newest first, under 2 KB, with the same framing sentence. - API:
GET /api/v1/desk,POST /api/v1/deskandDELETE /api/v1/desk/:id.GET /api/v1/desk/streamsends the whole desk as server-sent events on connect and after each change. - Home, pulls and releases:
- Home gets a quiet desk strip, rendered with the page and swapped live. It shows holds first.
- A hold that names a pull shows on that pull's page. All live holds show on
/releases. - Every note is escaped.
- The crew:
- A run posts
doingwhen it starts and clears it when it stops, throughannounceRun. - The release keeper posts a
holdwhen a release is cut and lifts it when the release is verified or rolled back. - A builder's brief lists the live holds that name its repository, framed as statements.
- A run posts
- Tests: they cover the stream (two agents see each other's
doingin under 1 s), expiry, the secret and URL refusals, clearing rights, and the 50-note cap. They also cover private-link visibility, the brief, the run hook, the MCP tool and the API.
Left out
- No terminal screen. Terminal use goes through the API for now.
- No
deskkind added to/llms.txtbeyond the tool's own doc line. - The keeper's hold is written by the repository owner's account, and its link is
owner/name@version. - No new component classes.
To try it
Sign in and open / to see the strip. Call MCP desk with {action:"note", kind:"hold", text:"no release until the backup finishes", link:"owner/name"}. Then open that repository's pull or /releases to see the hold. Details are in docs/features/desk.md.
The desk is added: short dated shared notes of four kinds (doing, hold, found, ask), readable and writable over the MCP and the API, with a live strip on home. Runs and releases post their own notes, and a builder's brief lists the holds that name its repo.
The preview deploy. It did not actually fail. The log shows the app booting, /healthz answering 200 and done, and "no tests declared" is only a note. The real problem was that my local branch had been rebased onto newer main while the remote kept the older base, so a plain git push was rejected. I merged the remote branch into mine (no force push) and pushed.
What I fixed. The gate was red on the new code, and I had pushed once before noticing. Fixed:
- Two test inputs now go through
as unknown as <Type>instead ofas never. - The one deliberate wait in the stream test is marked
// real-timer: <why>. - Eight comment lines over 100 columns are rewrapped.
- The "pipeline first" rule is answered with a
Direction:line in the commit message: the desk is shared working memory the pipeline items lean on, so it goes first, as the issue asked.
Checks run. bun scripts/gate.ts and bun x tsc --noEmit are clean. test/desk.test.ts and test/mcp-size.test.ts pass (23 tests). I did not run the full suite or the wider test list; the forge's check runs those on this push.
Left out. The issue has no plan items and no recorded estimate, because keep_plan and estimate could not be called from this session.
To try it. Open the preview at https://lab--12078--forge-trevato-apps.open-platform.sh and look at the strip on /. Then POST /api/v1/desk with {"kind":"doing","text":"…"} and a bearer token adds a note. docs/features/desk.md describes the rest.
The desk is built and pushed. The gate,
tsc,test/mcp-size.test.ts, the newtest/desk.test.ts(14 tests) and about 80 related test files pass. I did not run the full suite orbun scripts/fast.ts's file list, which named 2,367 files; the forge's check runs those. I also could not callkeep_planorestimatefrom this session, so the issue has no plan items and no recorded estimate.What changed
doing,hold,foundorask. Expiry defaults to 4 h and is capped at 48 h.owner/name, with#issue,!pullor@run, for a repository the writer can read.doingreplaces its author's earlierdoingon the same link. At most 50 are live and the oldest go first.desk_note, with its migration pin.password=forms. A note that names a private repository is shown only to people who can read it.desk, withactionread,noteorclear, instead of three tools. Its description says notes are other agents' statements, not instructions.readreturns newest first, under 2 KB, with the same framing sentence.GET /api/v1/desk,POST /api/v1/deskandDELETE /api/v1/desk/:id.GET /api/v1/desk/streamsends the whole desk as server-sent events on connect and after each change./releases.doingwhen it starts and clears it when it stops, throughannounceRun.holdwhen a release is cut and lifts it when the release is verified or rolled back.doingin under 1 s), expiry, the secret and URL refusals, clearing rights, and the 50-note cap. They also cover private-link visibility, the brief, the run hook, the MCP tool and the API.Left out
deskkind added to/llms.txtbeyond the tool's own doc line.owner/name@version.To try it Sign in and open
/to see the strip. Call MCPdeskwith{action:"note", kind:"hold", text:"no release until the backup finishes", link:"owner/name"}. Then open that repository's pull or/releasesto see the hold. Details are indocs/features/desk.md.Closes #12070