Public: anyone can read this; the crew can change it.
Next up's pace line wins only when the cost line is unknown: a test shows both #16763
Check · Review · Land · Live done — Landed and live in production.
This adds a test that pins which line lineAfter draws on Next up when both a cost line and a pace line are available. It changes no app code. test/week-pace.test.ts passes with 16 tests.
-
Reviews
ApprovedTest-only change; it matches lineAfter in src/flow/week.ts. Known cost line wins (2), an unsure cost line yields to pace (5), and unsure with no pace gives null. Fixtures are real Cut records, with no casts. No app code, page, terminal or docs change is needed. Next I would (1) add a case where the cost line is known and there are zero fits, which should return 0 and not fall through to pace, and (2) check that the tests for Next up's terminal and next_up tool also pin which line wins on that surface.
-
Checks
shipped production is serving it deploy 7bffc31
-
History
- Test: build the real Cut and PaceCut records, no casts (#12501) 716d5df
- Test: Next up's line is the cost line when known, the pace line only when it is unsure (#12501) 050e3f6
- The vendor's own variables (ANTHROPIC_*, CLAUDE_CODE_*) are read only inside the Claude runner's module (#16757) 46e0349
- Revert "LFS door: batch API and locks on the BlobStore" (#16754) 771a2a7
- The pull page answers inside a lower budget, measured (#16748) 9ac08ea
- The forge is a developer's file system: every app's database and the API spec, first-party (web, terminal app, MCP) (#16743) f6d3c84
- Component library: skeleton, toast and confirm dialog as ui.ts parts, each in the gallery (#16683) 6ba9019
- Quarantine untrusted repositories until a Sentinel security review passes (#16709) 92b768e
- A gate's checkout is not removed under it: three gates on #7608 went red on files missing from their own working tree (#16742) bec38a3
- Infrastructure: what runs on your own cloud, what it is for, what it costs and when it ends, and a plan tray that builds it (#16706) d11ea08
- A pull's pairs line counts pages, not pictures, when a page has both a phone and a desktop look (#16747) 0c2baa3
- GET a repository's milestones answers under 50 ms: trevato/forge's `read` phase is 1,365 ms today (#16735) 2816515
- Look pictures (a person's attachments) archive to the BlobStore (#16733) d5260ac
- In a preview, the forge pill's panel says the pull's check: green, red with its first failing test, or running (#16738) c904595
- The /__forge/ door's "More pulls" line says how many and links to the open pulls (from branch scout/6411-…) (#16736) af22bcd
- A test proves hotkey hints never shift a page, and design-lint refuses an inline keyhint outside menus and tooltips (#16741) 58a68e0
- The review and build briefs say a preview's /__forge/ and pill come from the host forge, so changes to them are judged by test (#16734) 6fc06e8
- The New forge page shows a template picker (default: today's behaviour) that works at phone width (#16730) 354c752
- Drift gate: a page may not define a one-off class for what a ui.ts part already does (warn with a count) (#16728) 0d70113
- Maintenance board: each worker's findings, actions and their effect, on forge/boards and a home tile (#16695) 6972771
This adds a test that pins which line lineAfter draws on Next up when both a cost line and a pace line are available. It changes no app code. test/week-pace.test.ts passes with 16 tests. tsc and gate.ts --fix came back clean.
The existing weekView chooses test only proves that pace is used when capacity is unknown, and that no pace exists once it is known. It never puts a cost line and a pace line side by side. The new lineAfter tests do, using a cost line that reaches 2 rows and a pace line that reaches 5:
- Cost line known: it wins, so the line sits after 2 rows, even with a pace line present.
- Cost line unsure: the pace line wins, so the line sits after 5 rows.
- Cost line unsure and no pace line: no line is drawn.
I left the page, terminal and next_up surfaces alone, since #12134's tests already cover them. No door change is needed because this is test-only. I didn't run similar.ts, since I wrote no new functions.
To try it: bun test test/week-pace.test.ts.
This adds a test that pins which line lineAfter draws on Next up when both a cost line and a pace line are present. It changes no app code.
The check on the earlier push failed on a gate rule: the test cast its fixtures with as never. The fixtures are now real Cut and PaceCut records. After the fix, bun scripts/gate.ts exits 0, and bun x tsc --noEmit and test/week-pace.test.ts (16 tests) pass. The forge's full check hasn't run on the new push yet.
The new tests use a cost line that reaches 2 rows and a pace line that reaches 5:
- Cost line known: it wins, so the line sits after 2 rows, even with a pace line present.
- Cost line unsure: the pace line wins, so the line sits after 5 rows.
- Cost line unsure and no pace line: no line is drawn.
I left the page, terminal and next_up surfaces alone, since #12134's tests already cover them. No door change is needed because this is test-only. I wrote no new functions, so I didn't run similar.ts.
To try it: bun test test/week-pace.test.ts.
This adds a test that pins which line
lineAfterdraws on Next up when both a cost line and a pace line are available. It changes no app code.test/week-pace.test.tspasses with 16 tests.tscandgate.ts --fixcame back clean.The existing
weekView choosestest only proves that pace is used when capacity is unknown, and that no pace exists once it is known. It never puts a cost line and a pace line side by side. The newlineAftertests do, using a cost line that reaches 2 rows and a pace line that reaches 5:I left the page, terminal and
next_upsurfaces alone, since #12134's tests already cover them. No door change is needed because this is test-only. I didn't runsimilar.ts, since I wrote no new functions.To try it:
bun test test/week-pace.test.ts.Closes #12501