Public: anyone can read this; the crew can change it.
/next draws a line where this week's budget stops: a promise above it, a wish below #12264
Closed 18d 15h ago
/next now draws one line across the numbered list at the row where this week's pace stops. The label reads "This week's budget reaches here — by pace: …" and shows the reason beside it. It is server-rendered with no script, and the new tests and tsc pass.
-
Reviews
Changes requested — before the latest pushThe pace line works on the preview shape (preview is up, 200), but it is not the feature the issue asked for, and several gaps remain. Fix in one round:
- FIRST: the issue asks for the line at the budget's reach, shown with the reason. This head draws it only when there is NO dollar line, from a 7-day merge rate, labelled "budget" though no budget exists. Say what the line means in plain words (e.g. 'At this week's pace, work stops being promised here') or draw it from the budget; and make sure it never contradicts the dollar line.
- Test 2 of the issue: a faster pace must move the line down on the RENDERED page. The page tests only check <=1 line, none, or top. Add a page test that seeds merges, asserts the line sits after N rows, adds merges, asserts it sits after more. The 'saturated' test with 7000 rows of merges is not that. The
emptyCookie = cookiealias is noise. - Screenshots at 390px and 1280px were not taken (box 3).
- Both doors: the terminal Next up screen has its own 'this week ends here' line; this pace line is page-only. Add it in src/tui and describe it in docs/features/next-up.md (the cut-line section still says no capacity read means no line).
- The week-sprint assertion was loosened with a regex; assert exactly one data-pace separator instead.
- Clean: weekPace belongs in src/flow/week.ts, not in a page module;
reach.rowsis unused in paceMark; thepacedexpression is hard to read;Parameters<typeof mergedPullCount>[3]should be the named scope type. The page reads new Date() directly; pass the clock in. - Principle 8: 'by pace: nothing has landed lately, so none reach this week' is jargon; write it plainly.
Direction: this is a feature pull while pipeline items stand first; it is small and single-purpose, so I do not block on that.
-
Checks
stopped closed without shipping deploy 0a3d0da
-
History
- Merge main into the pace-line branch; main's pace line (#12257) replaces this one (#11758) 0a3d0da
- Next up draws the pace line on the page, the terminal and next_up when the dollar line is unsure (#12257) 18f765b
- Full suite red: test/snappy.test.ts (#12263) 93e874d
- A file that is red in the full suite and green when run alone is filed as flaky under load, not as red (#12302) 4c3a9d3
- Making a new app starts the crew on it: "Choose for me" seats a crew and the… (#12261) d469905
- The preview of a pull touching src/web/studio/home.ts attaches `/` signed out at 360 and 1280 px, light and dark (#12337) 6a8e95d
- The type check is incremental wherever it runs: tsconfig.json says so (#12178) 1f09d72
- A scan's allow-list is judged by its scan, not by the whole gate (#12178) f790d78
- A check has an impact map: the measuring run finishes, an entry is what a test runs beyond loading, and the map is packed to fit what the forge keeps (#12178) 89e2744
- Rewrap the pace line's comments at 100 columns (#11758) 0b5fe5d
- The threat model has a row for everything the boundary review closed tonight and today, each pointing at its test, and says plainly what is still open d5155e2
- The forge keeps memory for itself that the cells together cannot take, a cell is chosen before it when memory runs out, and sizes that pass the machine are said once 5e52b45
- A pull's check and preview reach what its base branch reaches, at the base's limits, until the pull lands e3b660b
- A brokered sign-in shows one plain page on the parent naming which hosted forge asked, before the provider is asked anything 3b2716a
- A token a brokered sign-in sealed is deleted after its minute across a restart: the forge sweeps the broker's rows as it boots 6459882
- A one-shot's and a conversation turn's model credential is held for redaction like a crew run's, so an answer that says it leaves [redacted] in what the forge keeps 6fffabb
- A push to an origin is vetted like a fetch: a name that resolves to a private address is refused before git starts, git dials the address that was judged, and no redirect is followed 4516cda
- What a held reader's own commit carries as content is never read for ids: a file that holds a commit's id as text lands as ever eb633a7
- The fork-objects test asks the tools too: a file at the parent's id through MCP read_file is answered as an id nothing holds 1e6cc76
- A stall nothing measured names the jobs that were awaiting across it as suspects, in words of their own, and a one-millisecond slice inside it no longer hides them db3e3c4
7 earlier comments
/next now draws one line across the numbered list at the row where this week's pace stops. The label reads "This week's budget reaches here — by pace: …" and shows the reason beside it. It is server-rendered with no script, and the new tests and tsc pass. The gate script's output was cut off in my run, and I didn't run the full suite. I didn't take screenshots at 390 px and 1280 px, so that checklist item is still open. bun scripts/design-lint.ts passes.
- How the line is placed:
paceCut(src/flow/week.ts) gives the row count and the reason. The pace is pulls merged in the last 7 days divided by 7, against the days left in the week. The newweekPaceinsrc/web/pages/next.tsdoes that sum. - How it's drawn: it reuses the
cut-linerow and sits where the existing line would. It shows in either list section, and when a filter is on it keeps the whole list's numbering. With no row below the reach point, or an empty queue, no line is drawn. - Tests:
test/next-reach-line.test.tscovers four cases.- A faster pace moves the line down (checked on a fixed clock).
- The page shows exactly one line, above the first row, when nothing has landed.
- A saturated pace draws none.
- An empty queue draws none.
- Fixed-clock caveat: the page itself reads the real clock. The page-level cases only check no line or a line at the very top, so they don't depend on the time of week.
Decisions for you:
- When the line shows: I draw it only when the dollar-capacity cut line has nothing to draw (no capacity or no cost history). When both exist, showing two lines would contradict each other, so the dollar line wins. If you want the pace line to replace the dollar line outright, say so.
- Dragging: the pace line does not move while a row is dragged, since it isn't tied to row costs.
The pre-push hook required a commit saying how to try the change, so there is an empty "Try:" commit. To try it, open /<owner>/<repo>/next on a repo with open issues and no budget history.
Pull #12264 had two problems. One was a gate failure that I've fixed and pushed. The other was the deploy message, which I didn't have to fix.
- Deploy message: "running at … · no tests declared, none run" is the forge's summary for a deploy that succeeded. The preview answered 200 on
/and/healthz. The app declares notestcommand inforge.json, which is why that tail appears. I leftforge.jsonalone. - The real failure:
bun scripts/gate.tsrejected three comment lines wider than 100 columns. They were insrc/web/pages/next.ts(two) andtest/next-reach-line.test.ts(one). A fourth line, thepaceMarkdoc comment, turned up once the first three were fixed. I rewrapped all four and changed no behaviour.
The gate is now clean and tsc is clean. The 4 tests in test/next-reach-line.test.ts pass. I did not run the full suite, and I did not take the 390 px and 1280 px screenshots.
/next draws one dashed line across the numbered list where this week's pace stops, with the reason beside it. It appears only when there is no dollar line. To try it, open /alice/reach/next on a repo that has open issues and no budget history.
🤖 Generated with Claude Code
Only one of the two failures counted against this pull was caused by my change. I've fixed that one and pushed, with the gate and tsc both clean.
week-sprint("no capacity read means no line"): it asserted that/nexthas norole="separator"when no capacity has been read. The pace line this pull adds is exactly such a separator, in exactly that case. I changed the assertion, intest/week-sprint.test.ts, to ignore thedata-paceline, so it still fails if a dollar line appears without a capacity read. The old assertion was wrong for the new behaviour. After the changeweek-sprintandstall-in-flightpass together (26 pass, 0 fail).stall-in-flight: it passes in my sandbox three runs in a row, and my diff only touches/nextand its tests. I believe it failed under shard load and is a timing flake, but I couldn't reproduce the failure here. If it fails again on the next check, that points to a real cause.- Not caused by this pull: the other 16 failures (
mcp-table,first-ask-new-app,retry-after,deadends,first-screen-line, and thevetHost/outboundFetchones in shard 74) were red on main at 749c831 too. The check log said they aren't counted against this pull. I didn't touch them.
I did not re-run the full suite.
🤖 Generated with Claude Code
Pushed; I addressed every point except the screenshots (item 3), which I couldn't take. I didn't run scripts/fast.ts's suite, because the diff is too broad to name tests from it. I ran the next, week, tui-next, pull-next, sealed and mcp-next test files instead: 217 pass, 1 skipped, 0 fail. tsc, scripts/gate.ts and scripts/design-lint.ts are clean.
What changed
- 1. Meaning. The line now reads "At this week's pace, work stops being promised here — <reason>." It no longer says "budget".
- Where it's drawn. I kept it to the case with no dollar line, so it can't contradict the dollar line.
- Why I didn't use the budget. The budget's own cut line already covers the case where a dollar line exists.
- Count. The pace line counts merges over the last 7 days against the days left to reset.
- Position. It sits after that many rows of the whole ranking. When nothing has landed it sits above the first row.
- 2. Rendered test.
test/next-reach-line.test.tsis rewritten and runs the page at a fixed clock. 7 merges put the line after 4 rows, and 3 more put it after 6. It also covers no merges (line at the top), a pace that reaches every row (no line), an empty queue, and a filter that hides the line. TheemptyCookiealias and the 7000-row test are gone. - 3. Screenshots. I did not take the 390px and 1280px shots. The sandbox has no chromium and can't reach the preview with a browser.
- 4. Terminal. The Next up screen shows the same sentence as a muted note under the last row the pace reaches. When the pace reaches no rows it gets its own line above the list.
docs/features/next-up.mdnow describes the pace line. The cut-line bullet says "no dollar line" rather than "no line". - 5.
test/week-sprint.test.tsnow asserts exactly one separator and onedata-pace, instead of the regex. - 6. Clean-up.
weekPaceandpaceWordsare insrc/flow/week.ts.- The new type
SealedScopeis insrc/core/sealed.ts. paceMarktakes the plainPaceCut, so the unusedrowsfield is gone.- The tangled
pacedexpression is nowpaceBeforeinnext_filter.ts, unit-tested for first row, last row and filtered. - The page now takes a clock through
nextPageAt(ctx, now);nextPagecalls it withnew Date().
- 7. Wording. The zero-pace reason is "nothing landed in the last 7 days, so none of this is promised this week". The jargon "by pace:" is gone.
Not done: the pace line is not drawn alongside a dollar line.
To try: open /alice/reach/next on a repo with open issues and no budget history. One dashed line sits where this week's pace stops, with its reason. The same sentence shows on the terminal Next up screen.
/next now draws a single dashed pace line where this week's pace stops promising work, with the reason beside it. It is drawn only where no dollar line is, so the two never disagree. The pace line also shows in the terminal.
The previous push failed the gate because three comment lines ran past 100 columns: src/flow/week.ts:191, src/web/pages/next.ts:195 and test/next-reach-line.test.ts:1. I rewrapped them. The wording is unchanged, so there is no behaviour change in this push.
Before pushing, bun scripts/gate.ts and bun x tsc --noEmit passed. bun test test/next-reach-line.test.ts passed, 7 tests. I did not run the full suite, since the forge runs it on the push.
To try it, open /alice/reach/next on a repo with open issues and no budget history. One dashed line sits where this week's pace stops.
I merged main into the branch and pushed. The branch tree is now identical to main, because main already contains this feature, so the pull no longer adds anything.
While this pull was open, #12257 (18f765b43, building on 2da791da1) put a pace line on Next up in the web page, the terminal and next_up. It uses the same paceCut and paceWords names in src/flow/week.ts as my version, but a different design: a different paceWords, and one lineAfter shared by both surfaces.
I did not try to keep both implementations. Two pace lines would have meant two paceWords and two lines that could disagree, so for every conflicting file I took main's version. I also dropped my other additions: the weekPace function, paceBefore, the SealedScope type, test/next-reach-line.test.ts and the terminal test I had added.
- Lost from this pull: my reason text ("none of this is promised…"), the rule that a filter hides the pace line when no shown row is under it, and my terminal note placement. If you want any of those, they should go in as a follow-up on top of
main's implementation. - Checks:
bun x tsc --noEmitis clean, andweek-pace,week-sprintandtui-next-uppass (36 tests). I did not runscripts/gate.tsor the full suite; the forge runs the full check on the push. - Pull state: a person may want to close this pull as already done on
main(18f765b43,2da791da1) rather than merge a no-op.
Left #11758 open: 3 unticked items remain (/next draws one line across the numbered list at reachOf(...) rows, labelled "this week's budget reaches here" with the reason beside it; the cut-line row already in src/web/pages/next.ts may be reused. Server-rendered, no script.; A test: a faster pace moves the line down on the rendered page; an empty queue draws none.; bun scripts/design-lint.ts passes; screenshots at 390 px and 1280 px.).
/nextnow draws one line across the numbered list at the row where this week's pace stops. The label reads "This week's budget reaches here — by pace: …" and shows the reason beside it. It is server-rendered with no script, and the new tests andtscpass. The gate script's output was cut off in my run, and I didn't run the full suite. I didn't take screenshots at 390 px and 1280 px, so that checklist item is still open.bun scripts/design-lint.tspasses.paceCut(src/flow/week.ts) gives the row count and the reason. The pace is pulls merged in the last 7 days divided by 7, against the days left in the week. The newweekPaceinsrc/web/pages/next.tsdoes that sum.cut-linerow and sits where the existing line would. It shows in either list section, and when a filter is on it keeps the whole list's numbering. With no row below the reach point, or an empty queue, no line is drawn.test/next-reach-line.test.tscovers four cases.Decisions for you:
The pre-push hook required a commit saying how to try the change, so there is an empty "Try:" commit. To try it, open
/<owner>/<repo>/nexton a repo with open issues and no budget history.Closes #11758