Public: anyone can read this; the crew can change it.
The front page's build shows its stretches in Server-Timing on a cache miss #16956
Check · Review · Land · Live done — Landed and live in production.
On a cache miss, GET / now sends front- phases in Server-Timing for the stretches of buildFrontPage. On a hit it sends none of them. frontPage in src/actions/front.ts now takes an optional lap callback (Lap) instead of a Request, so actions stay free of http.
-
Reviews
ApprovedApproved. On the preview, the first
GET /lists front-picks, records, repos, owners, reads, scores, looks, runs, rows and pulse once each. The second lists none, only key, shelf, tiles and render. Actions stay free of http:frontPagetakes aLapcallback instead of aRequest. A header is not a page, so no terminal door or how-to is needed. Two things I would do next: (1) break the over-longfrontPage(...)call in src/web/studio/home.ts line 736 across lines; (2) splitfront-rowsso entry building and ranking show as separate stretches. The rename fromrtoein the.mapinsidefront-rowsis needless churn. -
Checks
shipped production is serving it deploy bb265f4
-
History
- Try: open / on the preview and read Server-Timing for front-picks, front-rows on a miss. 227febc
- Direction: the front page's cache-miss build names its stretches in Server-Timing (#6273) 159184a
- The /review diff stat uses the pull's stored base oid, not the live base tip (#16925) 8a38aa9
- The forge runs from one bun build bundle (no runtime readdirSync of its own source), measured with and without --bytecode (#16911) 50e1e5a
- XML hostile-input test measures growth, not milliseconds: a quadratic parser still fails, a slow runner doesn't (#16943) 9d5f923
- The remaining copies of the origin, app and report refusals import src/actions/origin_app_words.ts (#16930) ff172bb
- Nothing optional loads at boot: route modules and warm-ups (search, samplers, crew) start on first use (#16908) 0fe14c4
- Main green on Linux: the protection notes test pins Landlock off instead of depending on the runner's kernel (#16944) 02c4531
- /crew separates runs cut short before an account from runs refused one (#16923) 4ae1fb3
- Old reviewed-pull posts say the verdict too (#16928) 34e804b
- The OpenAI runner gets the same history record as a fresh Talk session (#16931) 89e01fa
- An idle forge drains and sleeps after a quiet period its owner can set (#16903) 240362e
- "tries at /signin close the API door" passes every time on a loaded check machine (#16915) 7a62f7b
- Production deploys stop interrupting people: batched (one per 15 min), not while busy, and swapped with zero downtime (#16867) b8689ca
- A guard test: every raw TLS connection verifies its peer, and turning verification off needs a listed reason (#16920) b179a94
- Long Talk conversations pick up fresh from a forge-written record: the person's words kept, old figures retired (#16899) 1cc9068
- Home: a crew scorecard (landed, first-pass green, rework rate per member) and a streak of days without a red main, shown never notified (#16885) a47fae8
- A card with no picture says why, and never shows a question mark (#16794) 629ff64
- Sandbox floor with Landlock where bwrap cannot run. (#16888) a3aa32f
- Sentinel: memory-growth was degraded 16 minutes today: The forge's own memory is 4689 MiB, over twice its first-hour 1629 MiB and past the 2176 MiB more its database caches m… (#16906) a233995
On a cache miss, GET / now sends front-* phases in Server-Timing for the stretches of buildFrontPage. On a hit it sends none of them.
frontPage in src/actions/front.ts now takes an optional lap callback (Lap) instead of a Request, so actions stay free of http. src/web/studio/home.ts passes a callback that wraps timePhase.
Phases on a miss: each is sent once.
front-picksfront-recordsfront-reposfront-ownersfront-readsfront-scoresfront-looksfront-runsfront-rowsfront-pulse
I added front-reads, front-scores, front-looks, front-runs and front-pulse beyond the five you named, so the time isn't left lumped in with the others. The existing key phase is unchanged.
Test: test/shelf-laps.test.ts uses two public apps and bumps front_epoch to force a miss. It asserts front-picks, front-records, front-repos, front-owners and front-rows appear exactly once, then that a second request sends no front-* phase.
Checks run: tsc is clean. shelf-laps and the front-related tests pass (33 tests in five files, four of them in shelf-laps). bun scripts/gate.ts passes apart from a note about comment lines over 100 columns in src/actions/front.ts, which it says the nightly rewrap handles.
Not done:
- I didn't add a terminal side or a how-to, since a response header isn't a page, action or tool. The commit says "No door".
- I didn't split
entry()orrankFrontfurther, sofront-rowscovers both.
To try: open / on the preview right after a change that bumps front_epoch, such as pinning an app. Server-Timing then lists the front-* phases. A reload within a minute lists none.
On a cache miss,
GET /now sendsfront-*phases in Server-Timing for the stretches ofbuildFrontPage. On a hit it sends none of them.frontPageinsrc/actions/front.tsnow takes an optional lap callback (Lap) instead of aRequest, so actions stay free of http.src/web/studio/home.tspasses a callback that wrapstimePhase.Phases on a miss: each is sent once.
front-picksfront-recordsfront-reposfront-ownersfront-readsfront-scoresfront-looksfront-runsfront-rowsfront-pulseI added
front-reads,front-scores,front-looks,front-runsandfront-pulsebeyond the five you named, so the time isn't left lumped in with the others. The existingkeyphase is unchanged.Test:
test/shelf-laps.test.tsuses two public apps and bumpsfront_epochto force a miss. It assertsfront-picks,front-records,front-repos,front-ownersandfront-rowsappear exactly once, then that a second request sends nofront-*phase.Checks run:
tscis clean.shelf-lapsand the front-related tests pass (33 tests in five files, four of them inshelf-laps).bun scripts/gate.tspasses apart from a note about comment lines over 100 columns insrc/actions/front.ts, which it says the nightly rewrap handles.Not done:
entry()orrankFrontfurther, sofront-rowscovers both.To try: open
/on the preview right after a change that bumpsfront_epoch, such as pinning an app. Server-Timing then lists thefront-*phases. A reload within a minute lists none.Closes #6273