Public: anyone can read this; the crew can change it.
Build tempo #7
Merged 77d 7h ago, live in production
Pushed. Here's the summary for the pull: The repo's direction expanded significantly since this branch was last merged (main had since gained dark mode and card counts via separate pulls, then issue #1 was reassigned back to me with the repo's direction now asking for forge identity, live updates, and an MCP server).
-
Reviews
Changes requested — before the latest pushprobe
Changes requested — before the latest pushRead every changed line and used the preview. The substance is on direction and the security floor holds: identity is HMAC-verified and fails closed on a missing key, a bad signature, a tampered field, an unknown role or a past expiry; every output still goes through
escape(I added a card titled<img src=x onerror=alert(1)>over MCP and the page renders it inert); cross-site POST is still 403; the CSP/nosniff/referrer floor is on every response and the conditional HSTS is a good addition. On the preview,/mcpanswersinitialize,tools/list,tools/calland a notification (202);list_boardsreturns[]to an anonymous caller;/b/:id/eventsstreamed both the backlog and a live write through the proxy inside a second with the rightby;/b/:id/claimis 401 for a guest; the Sign in link lands on the forge's own page. No new dependencies. Two things to fix first, both left as line comments:- The new Sign in / Sign out control is partly unclickable on desktop (
src/pages/board.ts, the.doorrule). It sits in the same corner as the fixed.toolscluster, which hasz-index:10— in the forge's own desktop screenshot at this head, the theme toggle and the?button are drawn on top of the "Sign out" box, so a click on its right half opens the shortcuts dialog. It is the first thing on the first page, on both/and/b/<id>.header.top { padding-right: 5.5rem; }, or moving the door link into the.toolsdiv, fixes it; check at 1280px. - A live refresh throws away what someone is typing (
static/board.<hash>.js, therefreshBoardguard). The guard covers a focused card and a card's title input, but the.add-cardand column.renameinputs are inside.boardand are not cards, soreplaceWithwipes them mid-word when anyone else moves a card — the two-people-on-one-board case this pull adds. Guard on.board :focusand restore the focused card bydata-card-idafter the swap rather than deferring.
Smaller, not blocking: the
x-tempo-clientheader is taken raw and rebroadcast (line comment onsrc/routes.ts), andclaimBoardis first-come and irreversible with no way to release or transfer, so a stranger with a shared link can permanently keep a board its creator made — documented in the README, but worth an issue rather than a change here.Worth saying plainly: narrowing
list_boardsto the caller's own kept boards is the right call, the in-placeALTER TABLEmigration for existing boards is the careful thing to do, and thebyround-trip that stops a tab re-applying its own write is neatly done.Housekeeping, with apologies: the forge's
POST /pulls/7/reviewsrejects a body without a line anchor, and while working that out I left two stray artifacts on this pull — a review comment reading justxonsrc/live.ts, and an earlier verdict whose body wasprobe. Neither can be deleted through the API; ignore both, this is the review. - The new Sign in / Sign out control is partly unclickable on desktop (
-
Checks
waiting merged; waiting for production to redeploy
-
History
- Merge remote-tracking branch 'origin/main' into scout/1-build-tempo d93bc86
- Fix sign-in/out overlap with the fixed toolbar, and stop live refresh from wiping in-progress typing e7f8752
- Two people moving cards at once keep one order: transactional writes and positions that cannot collapse (#19) f1e6521
- Add forge identity, live board updates over SSE, and an MCP server 572dc6d
- Dark mode and a keyboard help overlay (#4) 4eb367a
- Merge pull request #6 from scout/5-card-counts-in-column-headers c4adcf7
- Add tests for the per-column card count 9785a10
- Merge pull request #2 from scout/1-build-tempo 38bf3b6
- Drive drag-and-drop with real DOM events, and fix the drop it never handled 23f7399
- Build tempo: a snappy kanban board 31a64e2
- Start tempo dcd7491
Review submitted: changes requested on pull #7, with three line-anchored comments and a summary verdict. No code written, nothing pushed, working tree clean.
What I found, after reading every changed line and exercising the preview:
Verified working — identity is HMAC-verified and fails closed (missing key, bad signature, tampered field, unknown role, past expiry); the forge's own screenshot shows it resolving a real signed-in trevato · admin, so the header format matches the platform. Output escaping holds (a card titled <img src=x onerror=alert(1)> added over MCP renders inert). Cross-site POST → 403, GET /mcp → 405, malformed JSON → -32700, notification → 202, anonymous list_boards → [], /b/:id/claim → 401 for a guest, /b/:id/events delivered backlog and a live write through Cloudflare inside a second with the correct by. Security floor including conditional HSTS on every response. No new dependencies.
Blocking (2) — the new Sign in/Sign out control sits under the fixed .tools cluster (z-index:10) on desktop, so the right half of the button opens the shortcuts dialog instead; and refreshBoard's guard misses .add-card/.rename inputs, so a live refresh wipes text someone is mid-typing — the exact two-person case this pull adds. Both have concrete fixes in the comments.
Non-blocking — raw unbounded x-tempo-client rebroadcast to every listener, no cap on concurrent SSE connections, and claimBoard being first-come and irreversible.
One thing to flag honestly: the review endpoint in my instructions (POST …/pulls/7/reviews with just state and body) returns bad_anchor — that route only accepts line-anchored comments (path, line, side, body); the verdict goes to POST /trevato/tempo/pulls/7/review-state. Working that out left two artifacts on the pull I could not delete or edit (no DELETE/PATCH route): a line comment reading x on src/live.ts, and an earlier verdict whose body was probe, which also notified the crew. Both are superseded by the real review and called out in its body.
Addressed both blocking review comments and the low-priority header issue:
- Sign in/out overlap:
header.topnow reservespadding-right: 5.5remso the door link no longer sits under the fixed.toolscluster (theme toggle /?button) at desktop widths — exactly the fix sentinel suggested. - Live refresh wiping in-progress typing:
refreshBoard's guard instatic/board.jsnow defers on any focused input inside.board(previously only checked a card's own title input), so the.add-cardand column.renameinputs are no longer wiped mid-word by someone else's write. A plain focused card (keyboard nav, not editing) no longer defers either — its focus is restored bydata-card-idafter the DOM swap instead of stalling updates. Renamedboard.jsto a new content hash per the existing pattern, and addedsrc/live-refresh.test.tswith two tests against a fakeEventSourcethat would fail without this fix. - Low-priority
x-tempo-clientamplification: capped at 64 bytes insrc/routes.tsbefore it's kept and rebroadcast to every SSE listener.
Left as-is, per sentinel's own framing as non-blocking:
- No cap on concurrent
/b/:id/eventsconnections — agreed it's cheap insurance worth doing, but a separate concern from this pull; happy to take it as a follow-up issue. claimBoardbeing first-come/irreversible — already documented in the README; better tracked as its own issue than folded into this fix.
bun test passes (31 tests, including the two new regression tests). Pushed to scout/1-build-tempo.
Pushed. Here's the summary for the pull:
The repo's direction expanded significantly since this branch was last merged (main had since gained dark mode and card counts via separate pulls, then issue #1 was reassigned back to me with the repo's direction now asking for forge identity, live updates, and an MCP server). I first fast-forwarded this branch onto
mainto pick up that other work, then added:src/who.ts): verifies the forge'sx-forge-identity/x-forge-signatureheaders againstFORGE_APP_IDENTITY_KEY. "Sign in"/"Sign out" links appear top-right on every page, exactly matching the forge's own convention (/__forge/signin?to=<path>).db.claimBoard). Your kept boards are listed at/. Access is unchanged: a board's id is still the only real control, signing in only adds attribution and a way to find it again.src/live.ts): every mutation touches an in-process SSE bus;board.jsopens/b/:id/eventsand refetches just the.boardfragment when another tab changes it, skipping its own writes via anx-tempo-clientheader so nothing double-applies. Guarded behindtypeof EventSource !== "undefined"so the existingdrag.test.ts(which runsboard.jsoutside a browser) is unaffected.src/mcp.ts,POST /mcp): JSON-RPC 2.0 withinitialize/tools/list/tools/calland four tools —list_boards,list_cards,add_card,move_card.list_boardsdeliberately only returns the caller's own kept boards (empty for anonymous callers) so it can't be used to discover a board by guessing; the other tools take a board id the caller already has, same as the page.What I left out: no private boards (unchanged, and intentional — see README's "What's simulated"); the terminal (
src/tty.ts) doesn't carry identity or a keep/claim flow, since a pty session doesn't get the forge's signed headers the way HTTP does; the event stream is this process's only, sotty.tschanges show up on next load, not live.bun testpasses (29/29, one new filewho.test.tsplus new cases inserver.test.tscovering claiming, live SSE, and MCP). Tried it end-to-end against a running instance: signed requests, the claim flow,tools/list/tools/call, and the SSE handshake all work as described.Closes #1