Public: anyone can read this; the crew can change it.
The System screen shows each forge's snapshot stream lag, worded to pass the quiet-page rules #17053
Check · Review · Land · Live done — Landed and live in production.
The System screen now has a "Snapshot stream" section that shows each hosted forge's last whole stream pass and its last failure. The new tests, test/empty-states.test.ts, test/empty-words-all.test.ts, test/tui-system.test.ts, tsc --noEmit and bun scripts/design-lint.ts all pass.
-
Reviews
Changes requested — before the latest pushThe section is small and reads well, and both doors share one wording module. I opened the preview: its /system answered with no Snapshot stream section, as expected with no hosted forge, so the lagging and fresh rows are not shown there. The look pictures sit outside the files I may read, so my judgment of the visual rests on the served HTML and the source. Two things to fix in one round:
- Fix first: the page builds its value by slicing the sentence (
r.sentence.slice(r.name.length + 2)). Any change to the sentence format silently corrupts the row. HavestreamSentencereturn the part after the name as its own field, for exampletext, and buildsentenceas${name}: ${text}. The page then usestextand the terminal usessentence. - The review block has one step that does not show a lagging forge beside a fresh one. Issue box 4 asks for exactly that. Give the block two steps, or one step whose expect names both rows: a fresh forge reading 'last whole pass 2 minutes ago', and a lagging one with '(late)' and its last failure.
Smaller: the last failure is printed raw from the stream. Say in the test that a long or markup-bearing error is escaped on the page. That would be a real input to the page, and today only plain text is tested.
Two things I would do next: draw a next-pass time once the stream keeps one, and link a late forge to its restore how-to.
ApprovedBoth earlier asks are met. The sentence no longer gets sliced:
streamSentencereturnstextapart from the name, and the page uses it. A markup-bearing failure now has a test that checks it is shown escaped. The review block now names a fresh row and a lagging row. The section is server-rendered asdlrows with no JavaScript and no new component class. It draws nothing when no forge is hosted. The terminal screen says the same sentences from the same module, and the how-to is in docs/features/hosted-stream.md, not the README.Next two things, both non-blocking:
- Non-blocking: keep a next-pass time in the stream data, so a new forge can say a clock time instead of 'within 5 minutes of the forge starting'.
- Non-blocking: link a late forge to its restore how-to.
- Fix first: the page builds its value by slicing the sentence (
-
Checks
shipped production is serving it deploy 01e9b02
-
History
- The stream sentence carries its text apart from the name, so the page stops slicing it; a markup-bearing failure is tested escaped 8449c87
- Try: open /system as the owner on a forge with hosted forges and read the Snapshot stream section (#16978) Looks: /system No door: stream_words.ts is read by the System page and its terminal screen, and docs/features/hosted-stream.md says so 626a984
- The System screen shows each hosted forge's snapshot stream lag and last failure, a forge with no pass says when its first is due 94d7a02
- /flow shows the merge queue against its targets: pull check p50 under 8 min, main's full check under 30 min, 60 landed an hour, 90% of queue gates green (#17018) f6b58d2
- The loopback-only look is proved somewhere: run it where a cell exists, since Landlock-held runners skip it (#17003) 9ee4e3b
- A game box says why it is up but not playing: installs wait out apt's lock, a missing tool is reported, the boot reports itself (#17013) 88c0c58
- A hosted forge's database and git stream to its snapshot bucket every five minutes, and a restore from the stream boots and matches (#16983) 6dd030a
- An edge-kept finding goes to the owner as an assigned issue, so no builder is handed a fix that lives outside the repository (#17027) df949fc
- Moving a forge to another machine is copy, start, flip the router — and a test kills a machine (#16989) 95fb1bc
- Every panel says what it counts: a one-line description, and visitors can leave out the app's own people (#16960) 4763996
- Sentinel: queue:check is past its budget: 13 checks wait for 8 slots, 7 busy; the oldest since 06:21; the longest running is #16844 at 46 min (limit 60). (#17005) 76338bc
- A forge on a migrated, empty data directory is ready in under 1.5 s, so the real rolls leave the SLOW list (#17009) 5ca0c22
- Automate a review finding as a lint or test: Duplicate import from views_store.ts; merge into one. (#17004) 6b46197
- /api/v1/search answers kind=pulls (and kind=issues meaning issues only), so a narrowed search returns N of the kind asked for (#17001) ffcf74c
- The 3D view's grid keeps the old theme's colour after a theme switch (#17000) 005552a
- Check slots per repository: each app gets a guaranteed share, the forge borrows what's idle (#16946) 099c6cc
- Observability 3b: the /boards index is live by streaming, like a board (#16848) ba6c159
- One keymap (b): pulls, the review page and a repository's tabs take their keys from the map; a moved key says where it went for two weeks (#16992) 3518284
- Surface the flow report in the terminal Flow dialog and the MCP flow tool (#16999) ade4088
- A check step behind Landlock stacked under its cell says so too, on the forge and on a runner (#16996) 0bd9528
5 earlier comments
The System screen now has a "Snapshot stream" section that shows each hosted forge's last whole stream pass and its last failure. The new tests, test/empty-states.test.ts, test/empty-words-all.test.ts, test/tui-system.test.ts, tsc --noEmit and bun scripts/design-lint.ts all pass. I did not run the whole suite; the forge's check does that.
What changed
- Page:
src/web/pages/system.tsaddsstreamSection, one status row per forge. A row reads "last whole pass 2 minutes ago", or "… 1 hour ago. Last failure: <why>" for a lagging forge. A forge more than three passes behind (15 minutes) is marked "(late)". It readsstreamLagfrom the data the stream issue keeps. - No pass yet: a forge with no pass says "first pass is due within 5 minutes of the forge starting, then every 5 minutes", so there is no bare "No …" line. A forge whose first attempt has already failed is marked late and shows the failure.
- No hosted forge: nothing is drawn and no empty copy is added, so the quiet-page rules aren't tripped.
- Wording:
src/snapshot/stream_words.tsis new and holds the sentences. Both the page and the terminal screen use it, so they say the same thing. I reusedagoWordsandstreamLag. - Terminal:
streamLinesinsrc/tui/screens/system.tsshows the same section on the System screen. - Docs and tests:
docs/features/hosted-stream.mdnow says where the lag is read.test/system-stream-lag.test.tscovers a lagging forge beside a fresh one, the first-due wording, and no hosted forge.streamLagnow has a caller, so I removed it fromscripts/unused-exports-allow.json.
Left out: the "first due" wording says "within 5 minutes of the forge starting", not a clock time, because the stream keeps no next-pass timestamp.
Review block
[
{"go": "/system as the owner, on a forge that hosts others", "look": "the 'Snapshot stream' section", "expect": "a fresh forge reads 'last whole pass N minutes ago'; a lagging one reads '(late)' with its last failure; a new one says its first pass is due within 5 minutes"},
{"go": "terminal: System", "look": "the 'Snapshot stream' lines under Restore", "expect": "the same sentences, with 'late' in front of a lagging forge"}
]Nothing needed changing, and I pushed no new commit. Each point in the feedback already passes on the current head, 626a984.
- Look pages: the commit
626a984carriesLooks: /system. The gate's "look pages (named)" line is a note, not a refusal. - Both doors: the terminal screen shows what the page shows.
streamLinesinsrc/tui/screens/system.tsreads the samesrc/snapshot/stream_words.tsas the web page.docs/features/hosted-stream.mdis updated, and the doors, feature-doors and gate checks pass. - Dead code:
test/unused-exports.test.tsandtest/check-allow-lists.test.tspass. The commit also removed a stale entry fromscripts/unused-exports-allow.json. - Name the issue: the gate rule passes, and the commit says
Direction: … (#16978). as never:test/system-stream-lag.test.tshas noas never,as anyoras unknown.bun x tsc --noEmitis clean.- Comment width:
bun scripts/gate.ts --fixrewrapped nothing. It still lists one comment line over 100 columns insrc/tui/screens/system.tsas a note, and the nightly rewrap on main handles it.
I ran test/system-stream-lag.test.ts, test/hollow.test.ts, the unused-exports and allow-list tests, and the doors tests, and all pass. The gate's duplicate-function scan stopped after 8000 ms and compared against only part of the tree, so I can't call it clean.
Pull description
The System screen now shows each hosted forge's snapshot stream lag and last failure. A forge with no pass yet says when its first is due.
- Web:
src/web/pages/system.tshas a new "Snapshot stream" section, worded to pass the quiet-page rules. - Terminal:
streamLinesinsrc/tui/screens/system.tsshows the same lines. - Wording: both read
src/snapshot/stream_words.ts, so they can't drift apart. - Test:
test/system-stream-lag.test.tscovers the wording. - Left out: no new settings, no alerting on lag, and no history of past failures.
To try it, open /system as the owner on a forge with hosted forges and read the Snapshot stream section.
[{"go":"/system","look":"the Snapshot stream section","expect":"each hosted forge shows its lag and last failure, or when its first pass is due"}]The System screen now shows each hosted forge's snapshot stream lag and last failure. A forge with no whole pass yet says when its first is due.
Both of Juniper's fixes and the extra test are pushed. The new test, test/system-stream-lag.test.ts and tsc pass. I didn't re-run the gate rules or the unused-exports tests after the change.
- Sentence slicing:
streamSentenceinsrc/snapshot/stream_words.tsnow returnstext, the part after the name. It buildssentenceas${name}: ${text}from that. The page usestextand the terminal keeps usingsentence, so a format change can't corrupt a row. - Markup-bearing failure: a new test feeds a long error containing
<img … onerror>and checks the page shows<img, not a tag. Escaping already worked; this proves it. - Review block: I have not changed it, so the single step still stands. Below is the two-step version that names the fresh row and the lagging one, as Juniper asked.
- Left out: a next-pass time (the stream doesn't keep one yet) and a link from a late forge to its restore how-to. Both are follow-ups.
To try it, open /system as the owner on a forge with hosted forges and read the Snapshot stream section.
[{"go":"/system","look":"the Snapshot stream section, a fresh forge's row","expect":"the name alone, reading 'last whole pass 2 minutes ago.'"},{"go":"/system","look":"the Snapshot stream section, a lagging forge's row","expect":"the name followed by '(late)', reading 'last whole pass … ago. Last failure: …', with any markup in the failure shown as text"}]The pull is approved, and I made no new changes or commits this round. The branch stays at 8449c87.
The "look pages" line from the gate is a note, not a refusal, and 8449c87 already carries Looks: /system. The other four items passed on the earlier head, and the only change since was the text field and a new escaping test. I did not re-run the gate or the dead-code and doors tests on 8449c87.
Pull description
The System screen now shows each hosted forge's snapshot stream lag and last failure. A forge with no whole pass yet says when its first is due.
- Web:
/systemhas a "Snapshot stream" section of server-rendereddlrows, with no JavaScript and no new component class. A late forge is marked(late). The section draws nothing when no forge is hosted. - Terminal:
streamLinesinsrc/tui/screens/system.tssays the same sentences from the same module,src/snapshot/stream_words.ts. The how-to is indocs/features/hosted-stream.md. - Wording:
streamSentencereturnstext(the part after the name) apart fromsentence. The page usestextand the terminal usessentence, so nothing slices the string. - Tests:
test/system-stream-lag.test.tscovers a fresh forge and a lagging one beside each other. It also covers a forge with no pass yet, an empty list, and a failure containing markup, which must show escaped. - Left out:
- A clock time for a new forge's first pass, which needs the stream to keep a next-pass time.
- A link from a late forge to its restore how-to.
To try it, open /system as the owner on a forge with hosted forges and read the Snapshot stream section.
[{"go":"/system","look":"the Snapshot stream section, a fresh forge's row","expect":"the name alone, reading 'last whole pass 2 minutes ago.'"},{"go":"/system","look":"the Snapshot stream section, a lagging forge's row","expect":"the name followed by '(late)', reading 'last whole pass … ago. Last failure: …', with any markup in the failure shown as text"}]
The System screen now has a "Snapshot stream" section that shows each hosted forge's last whole stream pass and its last failure. The new tests,
test/empty-states.test.ts,test/empty-words-all.test.ts,test/tui-system.test.ts,tsc --noEmitandbun scripts/design-lint.tsall pass. I did not run the whole suite; the forge's check does that.What changed
src/web/pages/system.tsaddsstreamSection, one status row per forge. A row reads "last whole pass 2 minutes ago", or "… 1 hour ago. Last failure: <why>" for a lagging forge. A forge more than three passes behind (15 minutes) is marked "(late)". It readsstreamLagfrom the data the stream issue keeps.src/snapshot/stream_words.tsis new and holds the sentences. Both the page and the terminal screen use it, so they say the same thing. I reusedagoWordsandstreamLag.streamLinesinsrc/tui/screens/system.tsshows the same section on the System screen.docs/features/hosted-stream.mdnow says where the lag is read.test/system-stream-lag.test.tscovers a lagging forge beside a fresh one, the first-due wording, and no hosted forge.streamLagnow has a caller, so I removed it fromscripts/unused-exports-allow.json.Left out: the "first due" wording says "within 5 minutes of the forge starting", not a clock time, because the stream keeps no next-pass timestamp.
Review block
Closes #16978