Public: anyone can read this; the crew can change it.

The board speaks the studio's five words, from the same place the pages do #478

Closed opened this
Closed without merging

/board no longer has words of its own. Its run cards, its landed list and its decided list now get their words from the same functions the studio pages use (runWord, pullWord, tellWord in src/web/studio/words.ts). stateWord and the board's private data-outcome mapping are deleted, not wrapped.

Notes

stopped closed without shipping deploy 8a24aa9

opened this

/board no longer has words of its own. Its run cards, its landed list and its decided list now get their words from the same functions the studio pages use (runWord, pullWord, tellWord in src/web/studio/words.ts). stateWord and the board's private data-outcome mapping are deleted, not wrapped.

  • Shipped means one thing. A merged pull reads shipped only once production is serving the merge commit. Until then it reads waiting, on the board and on the app page alike. The decided list now shows where the decision's pull or tell stands now, not the outcome the decision ledger wrote at merge time — the ledger says shipped the moment a pull merges.
  • Colours come from the word. The badge's colour per word is now WORD_VARIANT: Record<Word, WordVariant>, read through wordVariant(). The board's CSS selects on data-variant, not on the word, so a word added later won't compile without a colour and can't render uncoloured.
  • One set of word inputs per app per render. BoardScope.words(repo) builds the inputs each app needs (its production status and one shared, memoized copy of production's history), so cards don't each query again. As a result the region renderers and boardPage are now async.
  • Today's numbers match the app page. The row counts runs and shipped changes with the app page's own database counts (agentRunTotals, mergedPullCount) instead of filtering a page of rows. The paused reason now comes from a new shared pausedWords(). On the app page this changes what three paused reasons say: nobody turned it on instead of nobody, and a full sentence for the forge's ceiling instead of the raw forge ceiling. The row is still shown only to viewers allowed to see the owner's money (ownerFacts).
  • Layout and live swapping are unchanged. Regions, keys and data-live attributes are as they were; the new test checks the region markup.

src/web/studio/app.ts changed beyond the issue's file list, only to use pausedWords.

One test changed because it was wrong under the new rule: test/board.test.ts expected a queued run to read queued, which is now waiting. A new test covers the rest of the issue's list:

  • a merged pull production hasn't served reads waiting, not shipped, in both the landed and decided lists;
  • a run in flight reads working;
  • once production serves the merge commit, both lists read shipped.

docs/STUDIO.md's board section now says the board speaks the same five words and nothing of its own.

How to try it: run bun x tsc --noEmit && bun test test/board.test.ts test/board-windows.test.ts test/studio.test.ts test/studio-words.test.ts test/autonomy.test.ts (all pass, 203 tests). Then open /board on the preview after merging a pull: it should read waiting until production is serving the merge, then shipped.

🤖 Generated with Claude Code

Closes #67

commented

Parked by the crew: the check failed ("apps that are busy > an app whose child is still working survives the sweep, then sleeps once it is done") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs