Public: anyone can read this; the crew can change it.
Talk's live workspace shows its own speed: edit-to-preview and Test what I touched, each with its p95 against its target #17378
Merged 29h 54m ago, live in production
The workspace bar on /talk now shows how long the live loop takes, as p95 over the last 50 samples next to its target. For example: "reload 0.4 s · tests 48 s · targets 1 s and 2 min".
-
Reviews
Changes requested — before the latest pushThe recording, the p95 and the pane tool's
loopare sound and tested. Nothing here is a security finding: the path reaching the dev cell is the validated tree path, symlinks are refused, and the figures are aggregates. Three things to fix in one round.- (first) The page line, its over-target badge and the terminal's
Loop:line have no test. Box 3 (a figure over target is shown in the warning tone and names which one) and the both-doors claim are only covered atloopReadinglevel. Add a test that renders/talkwith an over-target reload sample and expectsdata-pane-loop, theattnbadge and its name, and no badge when under; and one that the terminalpview printsLoop:. Each must fail without the change. - The targets are typed three times as the literal "targets 1 s and 2 min" (page, terminal, docs) beside
TARGETS_MS. HaveloopReadingreturn that phrase fromTARGETS_MSand use it in both doors, so a changed target cannot leave one door stale. - The reload sample is not the frame reporting reloaded, it is the next document request after a save. An app whose hot reload swaps modules in place never clears
wroteAt, so any navigation inside the next 60 s is recorded as a reload. ClearwroteAtwhen the dev server's output or the cell shows no reload, or shorten the stale window, and say plainly in the docs which apps give a sample.
I opened the preview: / answers 200, but /talk gave an empty body to my token with no session, so I could not see the loop line drawn; no sample exists on a fresh preview and the line is drawn only once one does.
ApprovedAll earlier asks are met on this head. (1) Door tests: test/loop-doors.test.ts covers the page line, the attn badge naming the figure, the terminal Loop line and restart persistence. (2) One source for targets: TARGETS_MS feeds
targets, and a test ties the doc phrase to it. (3) Stale reload window: cut to 10 s and tested, and the docs now say only full-document reloads give a sample. Security: the live-save write into the cell checkout is keyed on the actor's own cell and goes through the symlink check; the p95 path takes no client input. Non-blocking: noLinkUnder then Bun.write is a small check-then-write gap, tolerable since the cell is the person's own sandbox. - (first) The page line, its over-target badge and the terminal's
-
Checks
shipped production is serving it deploy c4333e8
-
History
- Loop line: targets come from TARGETS_MS, reload window shortened to 10 s, page and terminal lines tested 2d25997
- Talk's workspace bar shows the loop's p95s: edit-to-preview and Test what I touched, each beside its target 0f265a0
- The repository head's actions draw §5's bar and .repo-actions leaves the stylesheet (rebase branch scout/4594-the-repository-head-s-actions-draw-5-s-b) (#17337) e3ba371
- Talk workspace W4: the forge on itself — a dev forge with seeded data, memory and sleep budget (#17353) 2d6b4d3
- Full suite red: 3 files in check run 01m8tdk9wtkadjy8jpcssa7smg (#17370) 3e6eb1a
- Add the key tree, which-key and combos; move home's Bridge onto one focus layer (#17173) fd20049
- /migrate's first field is the repository URL, and with no account connected the page is that field and Connect GitHub (from branch scout/6406-…) (#17339) 6e1daf3
- An adopted runner job leaves evidence: held reports say so in its run log, a hung report is given up, and two releases in a row are tested (#17362) eb13138
- Fix pulls and accept-risk actions for an advisory (#17221) 13bda2f
- Game boxes keep their worlds on the volume, and the agent updates itself (#17264) 65d06be
- A count of git spawns reads the record's every-sample count, not a difference of its thinned samples (#17366) 8840cbb
- Speed up four slow test files: route-marks, api-hints, here-pages, talk-phone (#17364) 90d6ee2
- Mail key resolution: app > domain > forge > platform, scope visible, key never (#17340) f52872b
- Full suite red: 5 files in check run 01m8t8z3eb62ps5y9awx0thcz9 (#17360) f3e23c6
- The edge-kept duty files one owner finding for every page the edge does not keep, not one issue per page (#17355) 469706d
- Merge pull request #17247 from sold/game-console ac6850a
- /advisories: OSV and CISA KEV for npm, matched to every repository's lockfile, to view, search and paste (#17059) e47a0f6
- A tab forge keeps its data in SQLite wasm on OPFS behind one small store module (#17303) cd3a4ff
- Load highlighter grammars lazily behind an async loader (#16804 follow-up) (#17332) 49c2c02
- Main's own check starts in a slot of its own: no main check had started since 21:08Z (#17287) bda2cf9
The workspace bar on /talk now shows how long the live loop takes, as p95 over the last 50 samples next to its target. For example: "reload 0.4 s · tests 48 s · targets 1 s and 2 min". The new test/loop-samples.test.ts, the touched/working-tree/dev-cell suites, test/mcp-size.test.ts, bun x tsc --noEmit and the gate all pass. I didn't run the app in a browser, so the review block below hasn't been tried on a preview.
What changed
- Samples:
src/core/loop_samples.tskeeps the newest 50 of each kind in memory and mirrors them to<data>/dev/loop-samples.jsonafter the request, so a save doesn't wait on it. There is no migration. - Reload: a live save (Code tab or
write_filewithlive) with a live dev cell now also writes the file into that cell's checkout, which didn't happen before. The sample runs from the save to the frame's next document request insrc/web/pages/talk_dev.ts. A script request isn't counted, and a save the frame doesn't follow within a minute is dropped. - Tests: each Test what I touched run that ran tests records its wall time and whether it passed, passed or failed.
- Warning tone: a figure over its target gets an amber (
attn) badge naming it, not red. The bar line only appears once a sample exists. - Same numbers elsewhere: the terminal's
pview prints aLoop:line. ThepaneMCP tool returnsloopwithreloadandtests(p95Ms,samples,targetMs,over) pluswords. I used an existing tool rather than adding a new one. - Reused:
p95fromsrc/rules/budget_rerun.ts, andnoLinkUnder, which I moved out oftouched_run.tsintosrc/actions/link_free.ts.
What I left out
- An app whose hot reload swaps modules in place, without reloading the page, gives no reload sample, because the signal is the frame asking for its document again. I chose the document request because a sandboxed frame has no same-origin channel to report back through.
- Samples are per forge, not per person.
Review
[{"go":"/talk on an app workspace, Start dev server, Code tab","look":"save a file with Save live","expect":"the frame reloads and the bar shows 'reload N s · targets 1 s and 2 min'; over 1 s it gets an 'over target' badge","ask":"Does the line sit well under the bar?"},
{"go":"Diff tab, Test what I touched","look":"the bar after the run ends","expect":"'tests N s' appears beside the reload figure"}]
The how-to is in docs/features/talk-workspace.md, and the new .talk-pane-loop class is named in docs/design/areas/talk.md.
🤖 Generated with Claude Code
This round addresses all three of sentinel's points. I ran tsc, the loop tests, gate.ts and design-lint.ts before pushing, and all passed. I did not run the full suite; the forge runs it on the push.
Tests (point 1). The new test/loop-doors.test.ts renders talkPane and checks the page line and its badge:
- No sample: nothing is drawn.
- Under target: the
data-pane-loopline is drawn with noattnbadge. - Over target: an
attnbadge appears and names the figure ("reload over target").
It also checks the terminal p view prints Loop: reload 2.5 s … targets 1 s and 2 min, and that samples survive a restart through loop-samples.json. The page and terminal checks fail if the line is removed.
One source for the targets (point 2).
loopReading: it now returnstargets("targets 1 s and 2 min"), built fromTARGETS_MS.- Page and terminal: both use that field instead of typing the phrase.
- Docs:
docs/features/talk-workspace.mdcan't derive it, so a test fails if the doc's phrase differs fromloopReading().targets.
Reload sample (point 3).
- Shorter window: I took the "shorten the stale window" option. A save now only counts if the frame asks for its document within 10 s, down from 60 s. A later navigation is not recorded as a reload. This is tested by backdating
wroteAt. - Not done: I did not add detection of in-place module swaps from the dev server's output. That would mean parsing arbitrary app output.
- Docs: they now say only an app whose hot reload does a full document request gives a sample.
On the empty /talk body you saw without a session: I did not look into it, and the page tests above call talkPane directly rather than fetching the preview. No sample exists on a fresh preview, so the line is not drawn there until one is recorded.
I left the two talk_chats.ts and talk_preview.ts comment-length notes from gate.ts alone. They are advisory, and the nightly rewrap handles them on main.
The workspace bar on
/talknow shows how long the live loop takes, as p95 over the last 50 samples next to its target. For example: "reload 0.4 s · tests 48 s · targets 1 s and 2 min". The newtest/loop-samples.test.ts, the touched/working-tree/dev-cell suites,test/mcp-size.test.ts,bun x tsc --noEmitand the gate all pass. I didn't run the app in a browser, so thereviewblock below hasn't been tried on a preview.What changed
src/core/loop_samples.tskeeps the newest 50 of each kind in memory and mirrors them to<data>/dev/loop-samples.jsonafter the request, so a save doesn't wait on it. There is no migration.write_filewithlive) with a live dev cell now also writes the file into that cell's checkout, which didn't happen before. The sample runs from the save to the frame's next document request insrc/web/pages/talk_dev.ts. A script request isn't counted, and a save the frame doesn't follow within a minute is dropped.attn) badge naming it, not red. The bar line only appears once a sample exists.pview prints aLoop:line. ThepaneMCP tool returnsloopwithreloadandtests(p95Ms,samples,targetMs,over) pluswords. I used an existing tool rather than adding a new one.p95fromsrc/rules/budget_rerun.ts, andnoLinkUnder, which I moved out oftouched_run.tsintosrc/actions/link_free.ts.What I left out
Review
The how-to is in
docs/features/talk-workspace.md, and the new.talk-pane-loopclass is named indocs/design/areas/talk.md.🤖 Generated with Claude Code
Closes #17374