Public: anyone can read this; the crew can change it.
Spark profile: each slowest-tick row has an id the box page can link to, and a finding carries its profile key and tick window #18270
Closed 23h 46m ago
Each slowest-tick row on /games/ /spark/ now has id="tick- ", and a spark-derived finding carries profileKey and tickWindow. bun x tsc --noEmit is clean. The new test and the touched-area tests (spark view, TUI games, unused exports, module state, feature doors, doorless) pass.
-
Reviews
No review yet.
-
Checks
stopped closed without shipping deploy ad891d4
-
History
- No look: /games/<box>/spark/<key> needs a seeded box with a profile, and no page in app.looks reaches it (#18265) ad891d4
- Try: open a box's /games/<box>/spark/<key> for a profile with a slow tick and follow See the window 41b378f
- Direction: a slowest-tick row can be linked to and a profile's finding names its key and window (#18265) 11dd3d0
- Full suite red: test/data-browser.test.ts (#18260) b983849
- Access 5b: at sign-up or sign-in a person is shown what this visitor made and chooses to bring it, with a receipt and an undo window (#18217) a338207
- The games page shows a profile natively: flame graph, slowest ticks, per-mod time, linked findings (#18178) 1df6f9e
- An app made in the tab forge can be published as a read-only link on the forge, with no login (#18219) 7a7184b
- The spark page shows the slowest ticks and the time per mod, from the decoded profile (#18237) 281fd2f
- Crash reports, part 2: a private app's testers can report (a report key), in the shape the app sends, through one door (#18202) fbb3da4
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:f4rzrnk9yv is past its budget: trevato/forge: "the survival performance set > the terminal shows the set as the page does, and s previews it" failed o… (#18236) 6bd5128
- Full suite red: test/data-browser.test.ts (#18235) 6eb8475
- Full suite red: test/security-floor-routes.test.ts (#18234) ecc8b8c
- Sentinel: The lane has stopped: nothing has merged and nothing said so (#18233) b716c9e
- Crash reports: the route accepts the Apple app's body (os, device, at, previousRun, findings) (#18226) 24247ac
- Games: spark profile call tree and flame graph on the forge (#18211) 5ce50ab
- Stop and Delete a cloud machine or volume from the cost row, each confirmed only by typing its name (#18187) bcce730
- Access 5c: a linked game player mints the visitor principal (#18209) d46f453
- A changes-requested review with only a body is invisible: the pull's API, its reviews list and a repeat review request all say nothing (#18184) 1b94cba
- Full suite red: 3 files in check run 01m90cxa10vb1wxr16pmrhnt09 (#18225) 831c98f
- Game door: plain questions go to Talk at once, and continue until /forge clear (#18055) b5161cb
5 earlier comments
Each slowest-tick row on /games/<box>/spark/<key> now has id="tick-<window>", and a spark-derived finding carries profileKey and tickWindow. bun x tsc --noEmit is clean. The new test and the touched-area tests (spark view, TUI games, unused exports, module state, feature doors, doorless) pass. I did not run the full suite or the other tests scripts/fast.ts named, because that run was estimated at over 9 minutes. The forge's check runs it on the push.
What changed
- Row ids:
<window>is the window number spark recorded, not the row's position.SparkRowgained an optionalid, andtickId()insrc/games/spark_view.tsbuilds it. The page passes the id through torow(). - Finding fields:
Findinginsrc/games/findings.tsgained optionalprofileKeyandtickWindow. A finding with no profile has neither field, so it is unchanged. - New module
src/games/spark_finding.ts:profileFinding()returns a finding for the profile's worst window when its worst tick went past 50 ms, the tick budget at 20 TPS. It looks the key up withprofileOf(db, boxId, key). A key that is not one of that box's own profiles gives no finding, and neither does a profile with no slow window. - Where it shows: the finding appears above the sections on the profile page, with a "See the window" link to
#tick-<window>. The terminal's profile screen shows the same sentence.src/web/pages/games.tsis untouched. - Test: the new test in
test/games-spark-view.test.tsasserts every window id is on the page. It also asserts the finding's key and window match a real row, that the link is present, and that another box's key or an empty window list gives no finding. The id and finding assertions fail without this change. - Docs: one paragraph in
docs/features/game-spark.md.
What I chose not to do
- No change to the box page. Nothing on it links to a tick row yet; that is the follow-up half.
- No "Window id" fact on the rows. Adding one broke the existing assertion that "Worst tick" is the first fact, so the terminal shows the window number in the finding line instead.
- I reused
profileOf,summarySections,row()and theFindingtype. No existing function produced a finding from a profile, soprofileFindingis new.
How to try it
Open /games/<box>/spark/<key> for a profile with a slow tick. Follow "See the window" to the row it names. The terminal shows the same finding sentence.
[
{"go": "/games/<box>/spark/<key>", "look": "the line above 'Slowest ticks' naming the worst tick, with its 'See the window' link", "expect": "the link jumps to the Slowest ticks row whose id is tick-<window>"},
{"go": "/games/<box>/spark/<key>#tick-<window>", "look": "the slowest-tick rows", "expect": "each row has an id of the form tick-<window>"}
]<!-- look-pages 41b378f22680 --> Look pages for 41b378f, from the gate:
look pages (none): this pull changes src/web/pages/games_spark_view.ts but the forge could not trace the route of /, /admin/telemetry, /explore and 29 more (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
Each slowest-tick row on a box's spark profile now has an id the box page can link to. A profile finding now names its profile key and tick window.
- Look-pages note: it was the only open item. I added a commit line,
No look: /games/<box>/spark/<key> needs a seeded box with a profile…. No page inapp.looksreaches that route, and the gate can't trace its handler. - Other flagged rules: the gate rules you listed (both doors, dead exports, naming the issue, module state) already passed. All 39 gate rules pass after the new commit, and it is pushed.
- Terminal side:
src/tui/screens/game_spark_view.tsshows the same finding line. The earlier commit says "No door" because the terminal needed no further change. - What I didn't run: I didn't re-run
tscorbun testfor this push, because the new commit is empty and adds no code. The forge's check will run them. - To try it: open
/games/<box>/spark/<key>for a profile with a slow tick, then follow "See the window" from the finding.
Declined: already done on main in bb053710c. That commit (#18241) added the same feature: each slowest-tick row gets id="tick-<window>", the finding links to it, and the key is read from the box's own profiles. It also titles rows by real window number, which this pull didn't do. Run log: https://forge.open-platform.sh/trevato/forge/runs/01m91bwzprgwypaff1zewdm97r Left open: someone has spoken on this pull.
Left #18265 open: 4 unticked items remain (Each slowest-ticks row on /games/<box>/spark/<key> has id="tick-<window>".; A finding derived from a spark profile carries profileKey and tickWindow; the key is validated against the box's own profiles.; A finding with no profile is unchanged.; …).
Each slowest-tick row on
/games/<box>/spark/<key>now hasid="tick-<window>", and a spark-derived finding carriesprofileKeyandtickWindow.bun x tsc --noEmitis clean. The new test and the touched-area tests (spark view, TUI games, unused exports, module state, feature doors, doorless) pass. I did not run the full suite or the other testsscripts/fast.tsnamed, because that run was estimated at over 9 minutes. The forge's check runs it on the push.What changed
<window>is the window number spark recorded, not the row's position.SparkRowgained an optionalid, andtickId()insrc/games/spark_view.tsbuilds it. The page passes the id through torow().Findinginsrc/games/findings.tsgained optionalprofileKeyandtickWindow. A finding with no profile has neither field, so it is unchanged.src/games/spark_finding.ts:profileFinding()returns a finding for the profile's worst window when its worst tick went past 50 ms, the tick budget at 20 TPS. It looks the key up withprofileOf(db, boxId, key). A key that is not one of that box's own profiles gives no finding, and neither does a profile with no slow window.#tick-<window>. The terminal's profile screen shows the same sentence.src/web/pages/games.tsis untouched.test/games-spark-view.test.tsasserts every window id is on the page. It also asserts the finding's key and window match a real row, that the link is present, and that another box's key or an empty window list gives no finding. The id and finding assertions fail without this change.docs/features/game-spark.md.What I chose not to do
profileOf,summarySections,row()and theFindingtype. No existing function produced a finding from a profile, soprofileFindingis new.How to try it Open
/games/<box>/spark/<key>for a profile with a slow tick. Follow "See the window" to the row it names. The terminal shows the same finding sentence.Closes #18265