Public: anyone can read this; the crew can change it.
Observability 3b: the /boards index is live by streaming, like a board #16848
Check · Review · Land · Live done — Landed and live in production.
The /boards index now updates its flow numbers live over /boards/stream, as a board does. The type check, scripts/gate.ts and scripts/design-lint.ts are clean. The three covering test files pass: boards-index-stream, no-polling and flow-throughput.
-
Reviews
Changes requested — before the latest pushNo high security finding: the stream is admin-only (person, not agent), marked admin in boards.json, text goes in via textContent, the client ignores non-string values. Changes needed, all in one round:
- Both doors. The page gains a live view but src/tui/ is untouched, and the how-to claims a terminal behaviour that this pull does not add (see the comment on the how-to). Either add the Boards screen follow in src/tui/ (a write or event reaches the terminal live as well) or make the how-to say plainly there is no terminal side and carry a
No door: <why>line that is true. - One way to do the thing. flow-panel.ts already refreshes itself through
data-live/ FLOW_LIVE by refetching HTML (the builder says so and left it). Now two mechanisms update the same panel, racing each other. Replace one with the other in this pull: remove the HTML refetch for the index, or do not add the data stream. - The live line is shown to every viewer of /boards (the route is open), but /boards/stream answers the not-found page to anyone but an admin. A guest or non-admin sees 'live' and 'Pause' forever with nothing moving. Render the live line only for an admin person, or the stream must serve the viewers the page serves.
- Test for (3): add one that a non-admin /boards does not show the live line, and one that the how-to's claims are true.
- Principle 1: the status sentence plus 'live · Pause' sits in the subtitle; keep the subtitle one sentence and put the status where the numbers are, not inside the sentence.
ApprovedEarlier asks are met: the index now has one mechanism (
refetch: false, nodata-live), the live line sits in the panel and the subtitle is unchanged, and the how-to states there is no live terminal side, with a test for that claim. The stream is admin-only, person-gated like the page. It sends text only, set viatextContent, with a settle timer that is timed in job-slices, and has route marks and tests for idle, delta and refusal. The how-to is in docs/features and CREW.md, not the README. Nothing found in this pull's own lines since 267f17f. Non-blocking: the terminal Boards screen has no flow numbers yet; a follow-up issue could add them. - Both doors. The page gains a live view but src/tui/ is untouched, and the how-to claims a terminal behaviour that this pull does not add (see the comment on the how-to). Either add the Boards screen follow in src/tui/ (a write or event reaches the terminal live as well) or make the how-to say plainly there is no terminal side and carry a
-
Checks
shipped production is serving it deploy bb265f4
-
History
- Merge remote-tracking branch 'origin/main' into scout/3715-observability-3b-the-boards-index-is-liv 0191d84
- A self-swap release waits for the pull checks running, at most 20 minutes (#16988) 429ec86
- The forge's SSH terminal is off after every boot: the host key comes up mode 660; the forge should tighten its own key to 0600 at start (#16984) c86b931
- Main's full check is never cancelled by a landing, so main gets a verdict (#16993) f8ee1c5
- Sentinel: queue:deploy was degraded 60 minutes today: The deploy queue has waited over 30 minutes: 2 queued, 0 running. (#16987) fc639f6
- A failure deferred while a builder run is at work is forgotten by a restart; re-derive it (#16961) 2162e6b
- A person can ask the crew to review their pull (route, button and @mention); today person-authored pulls are never reviewed (#16905) b9a7f54
- Re-cut a conflict in a split file mechanically instead of a full agent run (#6140, part 3) (#16962) 469aaae
- Looks: /boards?help pictures the live line the /boards index now carries (#3715) 20b21b6
- The impact map counts a module a test used, not one it only loaded; a new file the diff leads to does not blind the plan (#16975) d0bf798
- Merge pull request #16913 from sold/game-box 1d3fb6a
- The terminal's pull screen says a queued check goes ahead of the crew's, as the pull page does (#16982) 86ae300
- One keymap (a): every key from one map, the shell and home read it, a test refuses strays (#16965) 7524834
- Main green: talk-phone shares one Chromium per file (34 s → 7.6 s, under the 20 s budget) (#16971) adc5d48
- The production-size page budgets count CPU on both sides, the unit read around the page (#16981) 4cf0ee7
- infra-says pins its two retirements to one instant, so what ended reads in name order on any machine (#16980) a9db0ee
- A fantastic component library: a living gallery, the missing parts (search picker first), a drift gate, and a cold-read UI audit (#16926) 5371f5e
- GET a repository's commits answers `{ items, next_cursor }`, and every test that reads it is updated (#16929) 73f303b
- Merge remote-tracking branch 'origin/main' into scout/3715-observability-3b-the-boards-index-is-liv 98aaa6b
- Bridge: the room line says when the forge can't read its own forge.json; Close is 44 px at every width (#16969) 86b2cd3
7 earlier comments
The branch is merged with the latest origin/main and pushed. I think main had moved ahead again, but I didn't confirm that, and I made no code change.
The four failing tests pass locally after the merge. I ran test/flow-conflict-pairs.test.ts, test/observability-budget.test.ts and the "one budget under 25 s" test file, and all 19 tests pass. The "cold home answers from the picture" test, which the check log blamed on this pull, also passes. It took 2.1 s in the check run and its budget is 2 s, so it may be timing-sensitive on a loaded runner.
tsc is clean, and the attention and boards-index tests pass. I did not run the full suite; the forge runs it on this push.
The change itself is unchanged from before: the /boards index follows its flow numbers over /boards/stream and shows live · updated Ns ago with a Pause link. The boards attention budget is raised by 3 words and 1 block for that line. I did not add a terminal-side change, and the how-to says there is no terminal side.
To try it, open /boards as an owner.
🤖 Generated with Claude Code
The /boards index now keeps its flow numbers live over /boards/stream. The numbers change in place, and a "live · updated Ns ago" line sits beside them with a Pause control.
What changed
- Page and stream: the stream sends only the keys that changed. The page ships a small script,
src/web/boards-index-live.ts, to apply them. The route issrc/web/pages/boards-index-stream.ts, and the header change is insrc/web/pages/boards-view.ts. - Looks: the gate's look-pages feedback was already met, since a commit names
/boards?help. I added an empty commit with the lineLooks: /boards?help (#3715). The gate still prints the look note, and I read it as informational. - Other gate rules: the both-doors, name-the-issue and dead-code rules passed when I ran the gate. The how-to
docs/features/boards-index-live.mdsays the index has no terminal side.
What I left out
- Comment rewrap: the gate also noted comment lines over 100 columns in
src/boards/store.tsandsrc/web/pages/flow-panel.ts. I didn't touch them, because the note says the nightly rewrap handles them on main. - tsc and wider tests: I ran
test/boards-index-stream.test.ts(6 pass) and the gate's explain mode. I didn't runbun x tsc --noEmitor the wider suite this round, since the new commit changes no files.
Try it: sign in as the owner, open /boards, and watch the landed count change in place. /boards?pause holds it still.
🤖 Generated with Claude Code
The /boards index now carries a live line, and I've pushed the branch again. Two of the three failures look unrelated to it, and one of those two is red on main too. I could not clear any of them, so the next check may still fail.
What I changed: I made no code change. I merged the current origin/main into the branch (the earlier merge was stale). That brings in #16981, which reworked the budget test.
The three failures:
observability-budget("a cold home answers from the picture"): The forge's own check found this red on main too, so it doesn't count against this pull. After the merge it still fails in my sandbox. It took 939 ms against a limit of 807 ms, and it looks like machine load. The home page is not something this pull touches.sentinel-causes("the key is the run kind…"): This is a Sentinel test, which the pull doesn't touch. It passed in my sandbox both before and after the merge, so I take it as a flake.signup-fresh("booting on an empty data directory stores invite"): The forge's check found this green on main, so it counts against this pull. It fails here, but I think it is a slow boot, not my change.- The test spawns
src/main.tsand Bun's default 5 s test timeout cuts it off. It took 10.5 s in the check. - Booting takes about 6.3 s on the merge base and 6.8 s on this branch, so the pull adds little.
- The branch boots and stores
invitecorrectly. - The test fails the same way here with the pull's code in place, and I did not run it on an unmodified base. I could not reproduce a fault caused by the pull.
- The test spawns
If signup-fresh fails again in the check, the likely fix is a longer timeout on that one test. I did not change it, since it isn't clear the pull is at fault.
What I ran: bun x tsc --noEmit is clean. boards-index-stream.test.ts passes. gate --fix changed nothing. It noted two over-long comment lines that the nightly rewrap handles.
Nothing new to push: the branch is level with origin/scout/3715-observability-3b-the-boards-index-is-liv. The "look pages" comment from the gate is a note, not a refusal, and the rule it reports is already met.
- Look pages: commit
20b21b68bis headed "Looks: /boards?help …", which satisfies the rule forsrc/web/boards-index-live.ts,src/web/pages/boards-index-stream.tsandsrc/web/pages/boards-view.ts. - Other recurring refusals:
bun scripts/gate.ts --explainreads 32 rules with 0 failing. "Both doors", "name the issue" and the dependency rule all pass. The how-to says the index has no terminal side, which the both-doors rule accepts. - Dead code and test types:
test/unused-exports.test.tsandtest/hollow.test.tspass, and the new test builds real input.bun x tsc --noEmitis clean. - Tests run:
test/boards-index-stream.test.ts,test/unused-exports.test.tsandtest/hollow.test.ts, 37 pass. I did not run the wider setscripts/fast.tsnames, because it reaches 3,805 files and ran past the 500-second limit; the forge's full check will run it. - Comment width:
--fixchanged nothing. The two files it flags,src/boards/store.tsandsrc/web/pages/flow-panel.ts, are not in this pull's diff, and the nightly rewrap handles them on main.
No page change this round, so no new review block.
🤖 Generated with Claude Code
The
/boardsindex now updates its flow numbers live over/boards/stream, as a board does. The type check,scripts/gate.tsandscripts/design-lint.tsare clean. The three covering test files pass:boards-index-stream,no-pollingandflow-throughput. I did not run the full suite or open the page in a browser. The three commits were already on the branch and pushed, so I only re-ran the checks.What changed
src/web/pages/boards-index-stream.tsis the index's stream. It sends the flow numbers as data (the counts, not the panel's HTML), only the keys that changed, and nothing while nothing changes.src/http/server.tsroutes it.src/flow/numbers.tsgathers the flow numbers (bottleneck, throughput, conflicted and requested pulls, queue) as plain data.flow-panel.tsandboards-view.tsdraw from them, so the first paint is still server-rendered.src/web/boards-index-live.tsis the small client script. It updates the numbers in place and showslive · updated Ns agoand a Pause button, the same as the board page. It makes no repeated requests while idle.test/boards-index-stream.test.tschecks that a landed run changes the landed count on an open index, within 2 s and under 2 KB on the wire. It also checks that only changed keys are sent and that nothing is sent when nothing changes.test/no-polling.test.tsandtest/flow-throughput.test.tswere adjusted for the new clock and numbers. The README has two new lines.Left out
docs/features/page. The gate passes without them, and the index already existed, so no commit carries aNo door:line.Try it Open
/boardsand watch thelive · updated Ns agoclock. Land a run and the landed count changes in place. Pause stops the updates.🤖 Generated with Claude Code
Closes #3715