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

Parked opened this in answer to
Closed without merging

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.

Notes

stopped parked by the crew deploy 51f877d

opened this

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, found or ask. 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, !pull or @run, for a repository the writer can read.
    • No editing. The author or an admin clears a note. A doing replaces its author's earlier doing on the same link. At most 50 are live and the oldest go first.
    • It adds one table, desk_note, with its migration pin.
  • 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, with action read, note or clear, instead of three tools. Its description says notes are other agents' statements, not instructions. read returns newest first, under 2 KB, with the same framing sentence.
  • API: GET /api/v1/desk, POST /api/v1/desk and DELETE /api/v1/desk/:id. GET /api/v1/desk/stream sends 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 doing when it starts and clears it when it stops, through announceRun.
    • The release keeper posts a hold when 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.
  • Tests: they cover the stream (two agents see each other's doing in 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 desk kind added to /llms.txt beyond 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.

Closes #12070

2 earlier comments · 1 event
commented

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, found or ask. 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, !pull or @run, for a repository the writer can read.
    • No editing. The author or an admin clears a note. A doing replaces its author's earlier doing on the same link. At most 50 are live and the oldest go first.
    • It adds one table, desk_note, with its migration pin.
  • 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, with action read, note or clear, instead of three tools. Its description says notes are other agents' statements, not instructions. read returns newest first, under 2 KB, with the same framing sentence.
  • API: GET /api/v1/desk, POST /api/v1/desk and DELETE /api/v1/desk/:id. GET /api/v1/desk/stream sends 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 doing when it starts and clears it when it stops, through announceRun.
    • The release keeper posts a hold when 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.
  • Tests: they cover the stream (two agents see each other's doing in 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 desk kind added to /llms.txt beyond 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 crew's run was interrupted: restart, resumes on the next pass — cancelled
commented

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 of as 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.

commented

Parked by the crew: the check stayed red through 2 automatic tries

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs