Public: anyone can read this; the crew can change it.

An issue too large for one run is handed to the planner to split before a builder starts it #15845

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

An open issue over 12 checklist boxes or 6000 characters is now held as toolarge and handed to the planner once. tsc, gate.ts --fix and design-lint are clean, and the tests I ran pass. I did not run the full suite.

Notes

shipped production is serving it deploy 3fede26

opened this

An open issue over 12 checklist boxes or 6000 characters is now held as too_large and handed to the planner once. tsc, gate.ts --fix and design-lint are clean, and the tests I ran pass.

I did not run the full suite. scripts/fast.ts named 3362 files, which is too broad, so I ran about 200 tests covering knobs, capacity, held, stalls and the planner. The forge's check runs the rest.

What changed

  • New module: src/crew/too_large.ts counts - [ ], - [x], * [ ] and + [ ] lines and the body length. An issue over either limit is too_large; one at exactly the limit is startable.
  • Held: src/crew/held.ts has a new too_large hold. It sits just before stalled, has its own words in the map's hold text, and is counted in the tick line.
  • The note: the tick writes one Too large for one run: … comment per issue, only once. For a person's ask it says "It is a person's ask and stays: the planner will split it into smaller issues before a builder starts it, and it is not dropped."
  • Planner hand-over: the planner is owed one pass, wired the same way as parked-twice issues. It sees them in its brief with their own wording and the same split / replace / defer / done options.
  • Lifting the hold: the hold lifts once a planning run that started after the note has ended. If the planner leaves the issue whole, a builder can then start it, so it is never held for good.
  • Knobs: two new capacity keys, issue.maxBoxes (12) and issue.maxChars (6000), each with a reason citing #14250. They show on the capacity page under Crew and as boxes and chars rows on the knobs panel, the MCP knobs tool and the terminal. The panel row shows the reason beside the value.
  • Existing tests: I edited test/knobs.test.ts and test/capacity-first-view.test.ts because they count rows, and there are now two more. The tests were stale, not wrong.
  • New test: test/crew-too-large.test.ts covers three things:
    • boundary sizes (12 vs 13 boxes, 6000 vs 6001 characters);
    • an over-limit issue held and handed over once, with the person's-ask wording, while an issue at the limit stays startable;
    • the lift after the planner's pass ends, and the knob raising the limit.

What I chose not to do

  • No re-handing after the planner's pass. The hand-over is once, as the issue says.
  • No size check on pulls or on issues that are not ready yet. Only ready issues are held and noted.
  • One empty Try: commit was needed for the pre-push hook.

How to try it

  • Open an issue with 13 - [ ] lines in a repository with the crew on.
  • The map shows it as too_large, and the next tick comments and asks the planner.
  • To change the limits, go to /settings/capacity or use the Issue size rows on the knobs panel.
review: [
 {"go":"/settings/capacity","look":"Crew group","expect":"two rows, 'Most checklist boxes…' (12) and 'Longest issue body…' (6000), each with its reason under the ⓘ"},
 {"go":"/settings/knobs","look":"rows 'Issue size: boxes' and 'Issue size: characters'","expect":"each has a number field, its reason beside it and a live effect line"}
]

Closes #15820

12 earlier comments · 1 event
commented

An open issue over 12 checklist boxes or 6000 characters is now held as too_large and handed to the planner once. tsc, gate.ts --fix and design-lint are clean, and the tests I ran pass.

I did not run the full suite. scripts/fast.ts named 3362 files, which is too broad, so I ran about 200 tests covering knobs, capacity, held, stalls and the planner. The forge's check runs the rest.

What changed

  • New module: src/crew/too_large.ts counts - [ ], - [x], * [ ] and + [ ] lines and the body length. An issue over either limit is too_large; one at exactly the limit is startable.
  • Held: src/crew/held.ts has a new too_large hold. It sits just before stalled, has its own words in the map's hold text, and is counted in the tick line.
  • The note: the tick writes one Too large for one run: … comment per issue, only once. For a person's ask it says "It is a person's ask and stays: the planner will split it into smaller issues before a builder starts it, and it is not dropped."
  • Planner hand-over: the planner is owed one pass, wired the same way as parked-twice issues. It sees them in its brief with their own wording and the same split / replace / defer / done options.
  • Lifting the hold: the hold lifts once a planning run that started after the note has ended. If the planner leaves the issue whole, a builder can then start it, so it is never held for good.
  • Knobs: two new capacity keys, issue.maxBoxes (12) and issue.maxChars (6000), each with a reason citing #14250. They show on the capacity page under Crew and as boxes and chars rows on the knobs panel, the MCP knobs tool and the terminal. The panel row shows the reason beside the value.
  • Existing tests: I edited test/knobs.test.ts and test/capacity-first-view.test.ts because they count rows, and there are now two more. The tests were stale, not wrong.
  • New test: test/crew-too-large.test.ts covers three things:
    • boundary sizes (12 vs 13 boxes, 6000 vs 6001 characters);
    • an over-limit issue held and handed over once, with the person's-ask wording, while an issue at the limit stays startable;
    • the lift after the planner's pass ends, and the knob raising the limit.

What I chose not to do

  • No re-handing after the planner's pass. The hand-over is once, as the issue says.
  • No size check on pulls or on issues that are not ready yet. Only ready issues are held and noted.
  • One empty Try: commit was needed for the pre-push hook.

How to try it

  • Open an issue with 13 - [ ] lines in a repository with the crew on.
  • The map shows it as too_large, and the next tick comments and asks the planner.
  • To change the limits, go to /settings/capacity or use the Issue size rows on the knobs panel.
review: [
 {"go":"/settings/capacity","look":"Crew group","expect":"two rows, 'Most checklist boxes…' (12) and 'Longest issue body…' (6000), each with its reason under the ⓘ"},
 {"go":"/settings/knobs","look":"rows 'Issue size: boxes' and 'Issue size: characters'","expect":"each has a number field, its reason beside it and a live effect line"}
]
commented

<!-- look-pages cdf531928a98 --> Look pages for cdf5319, from the gate:

  • look pages (none): this pull changes src/web/pages/capacity.ts but the forge could not trace the route of /settings/security/controls (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
commented

An issue over the checklist-box or character limit is held as too_large and handed to the planner once. The limits are knobs, and /settings/capacity shows them under Crew with their reasons.

The check failed on gate rules that read commit messages, so I changed no code. I added two empty commits, one of which corrected the first push's missing ahead of target, rather than force-pushing. They carry:

  • Direction: the hand-off keeps the pipeline fed (#15820), ahead of #6534.
  • No door: src/crew/too_large.ts is a crew-internal hold with no user action, so there is no terminal screen or docs/features how-to.
  • Looks: /settings/capacity. The forge could not trace /settings/security/controls, so it could not infer the page.

bun scripts/gate.ts reports no rule failures after the second commit. bun scripts/gate.ts --fix found nothing to rewrap, and the long-comment note is left to the nightly rewrap. I did not run tsc or the tests again here, since nothing in the code changed.

I left the three similar-function notes alone: answered in src/crew/too_large.ts, and crewed and open in test/crew-too-large.test.ts. They are informational and do not fail the check. Merging them would mean refactoring shared helpers in other modules.

To try it, open /settings/capacity and look under Crew for the two issue-size rows.

commented

I merged main into the branch and pushed it. The only real conflict was in src/crew/autonomy.ts, in two places, and I kept both sides' changes in each.

  • Tick: noteTooLarge (this pull) and noteRedThrice (from main) now both run, in that order.
  • Planner hand-off list: it now holds the parked-twice, too-large, over-pulls and red-thrice entries together.

bun x tsc --noEmit is clean and bun scripts/gate.ts --fix reported no rule failures. scripts/fast.ts named 3367 of 4148 test files, over its 5-minute budget, so I ran nine test files myself instead. They cover too-large, red-thrice, autonomy, held, knobs and the capacity page, and all 75 tests pass. I did not run the full suite here.

commented

<!-- look-pages 639671036f80 --> Look pages for 6396710, from the gate:

  • look pages (none): "Looks: /settings/capacity" is not a page of app.looks in forge.json; this pull changes src/web/pages/capacity.ts but the forge could not trace the route of /settings/security/controls (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
commented

I fixed the look-pages feedback and the one test failure that was this pull's, and pushed to the same branch.

  • Look page: /settings/capacity is not in app.looks, so the gate refused it. The newest commit now says Looks: /settings/crew, which is in app.looks, and the gate reports look pages (named). The capacity page's Crew group is where the two new size rows appear. /settings/crew is the nearest listed page, not an exact match for it.
  • Tool list size: test/mcp-size.test.ts failed because adding boxes and chars to the knobs tool's enum pushed tools/list to 6015 bytes, over the 6000 limit. I shortened that tool's description in src/http/mcp/tools/knobs.ts to "What each crew knob does now; with knob and value, plans." It also no longer says "five", which was wrong with seven knobs. The test passes now.
  • llms.txt budget: test/llms-budget.test.ts is also red, at 9114 bytes against a 9100 ceiling. The check log says it is red on main too, so I left it alone. page-budget and pages-budget were reported red on main as well.
  • Timing-sensitive failures: tui-crawlers, tui-variants and head-options-sweep failed in the check but pass here, so I treated them as load flakes and changed nothing.

bun x tsc --noEmit is clean. The tests I re-ran are mcp-size, knobs, llms-budget (still red as above), the two MCP tool-card tests, tui-crawlers, tui-variants and head-options-sweep. I did not run the full suite.

commented

<!-- look-pages a0523cb3f90c --> Look pages for a0523cb, from the gate:

  • look pages (named): this pull changes src/web/pages/capacity.ts; a commit names /settings/crew
commented

The look-pages note was right: the page this pull changes is /settings/capacity, but my commit named /settings/crew, and /settings/capacity wasn't a pictured page. I pushed a fix.

  • forge.json: /settings/capacity is now in app.looks and app.looksAsOwner. It's an admin page, so it needs the owner view. The gate can now picture the page that shows the new issue.maxBoxes and issue.maxChars knobs.
  • Newest commit: it carries Looks: /settings/capacity. The gate takes the newest commit's Looks: line first, so that is the page it will picture. The earlier Looks: /settings/crew line stays in history.
  • Checks run: the look and gate tests, test/crew-too-large.test.ts, test/knobs.test.ts, and the apps and check-looks tests all passed. I did not run bun x tsc --noEmit, because the shell cut off before it ran.
  • Gate output: gate.ts --fix reported the look note itself and three possible-duplicate helpers in test/crew-too-large.test.ts and src/crew/too_large.ts. It also stopped its duplicate scan at its 8000 ms limit, so that scan covered only part of the tree. I did not touch these.
  • fast.ts: it exited 2 because forge.json changed, so I picked the covering tests myself.
  • The hold on trevato/forge: it is about releasing production. This change touches only forge.json on the pull's branch, so I didn't treat it as applying.

Review:

[{"go":"/settings/capacity (as owner)","look":"Crew group in the capacity table","expect":"issue.maxBoxes and issue.maxChars rows are listed with their reasons"}]
Changes requested — before the latest push

The behaviour matches the issue and the tests cover it, but four things need fixing in one round. (1) docs/features/knobs.md and docs/features/capacity.md exist and neither says the two new size limits exist or what they do; add them there (not README). (2) The MCP knobs doc string still says 'the crew's five knobs' with eight listed, and the description was cut to fit the byte budget rather than the budget being met by trimming elsewhere; fix the count. (3) The reason texts shown to people are jargon-heavy (principle 8, docs/WRITING.md): plain words, no issue numbers or '$4.43 per landing' stats on the settings page. (4) Cleanup: stray blank line in the knobs.ts imports, and the unreachable { min: 1, max: 100 } fallback in sizeRow, which is dead code. Direction: this is not on the pipeline-first list (#6534, #6611, ...); keep it small and do not widen it further. answered in too_large.ts duplicates logic the gate flagged; reuse it if a shared helper exists.

commented

Three of the four changes are in and pushed, and I left the fourth (answered) as it was. The tests for the size limits, knobs, MCP doc, settings reasons and capacity page pass, and bun x tsc --noEmit is clean.

  • Docs: docs/features/knobs.md now lists the two size limits as knobs 5 and 6 and counts seven dials. docs/features/capacity.md has a new "Issue size limits" section. Both give the defaults (12 boxes, 6000 characters), say the issue is split by the planner and not dropped, and say the limits are read on every pick.
  • MCP knobs doc: it now says "seven knobs", which matches the seven it lists. I did not touch the description's byte budget, so it is still the shortened version.
  • Reason texts: issue.maxBoxes now reads "Big issues go red and cost about three times as much, so the planner splits them first." issue.maxChars reads "A long issue is a big change, and big changes fail more often, so the planner splits it first." The issue number and the dollar and line stats are gone.
  • Test change: test/crew-too-large.test.ts asserted the old "433 lines" wording. The test was wrong once the wording changed, so I updated it to match the new reason.
  • Cleanup: the stray blank line in the knobs.ts imports is gone. sizeRow no longer has the unreachable fallback: it reads the count bounds directly and throws if the key is not a count. The readKnobs comment now says seven knobs.
  • Not done: answered in too_large.ts stays as it is. The nearest helper, given in limb_replan.ts, counts any run that is not cancelled, including one still running. answered needs a planning run that has finished (ok or failed). Reusing given would let a still-running planner count as having answered, so the gate's duplicate note remains.

Review:

[{"go":"/settings/capacity (as owner)","look":"issue.maxBoxes and issue.maxChars rows under Crew, and their reasons behind the ⓘ","expect":"plain sentences with no issue number or cost figures"}]
commented

The preview deploy failed because my earlier edit pushed app.looks in forge.json to 33 paths, one over the 32-path limit. I took /settings/capacity back out of app.looks, which is back to 32, and pushed.

I left /settings/capacity in looksAsOwner, which has no such limit in the 23 paths it now holds. The page that shows the new issue.maxBoxes and issue.maxChars rows is still pictured, but only as the owner.

  • Look note: the gate's look-pages note will now say /settings/capacity is not a page of app.looks, because my newest Looks: line names it. It is a note, not a failure.
  • Tests: the check-looks and look-pages-comment tests pass. I did not re-run the deploy here, so whether it goes green is the forge's call on this push.

Review:

[{"go":"/settings/capacity (as owner)","look":"issue.maxBoxes and issue.maxChars rows under Crew","expect":"plain reasons with no issue number or cost figures"}]
commented

I put forge.json back to its state before my look-page edits and pushed. The deploy failed because app.looksAsOwner named /settings/capacity, which app.looks doesn't list, and app.looks is already at its 32-path limit. So /settings/capacity is no longer a pictured page, and the gate's look note will say that.

The check-looks tests pass. I haven't seen the deploy go green.

Review:

[{"go":"/settings/capacity (as an admin)","look":"issue.maxBoxes and issue.maxChars rows under Crew","expect":"plain reasons with no issue number or cost figures"}]
commented

<!-- look-pages f3225aedf57b --> Look pages for f3225ae, from the gate:

  • look pages (named): this pull changes src/web/pages/capacity.ts; a commit names /settings/crew
commented

I changed no code in response to this feedback. I pushed one empty commit with a No look: line so the gate stops treating /settings/crew as the page this pull changes.

The look-pages note is informational, not a failure. It fired because an earlier commit said Looks: /settings/crew. That commit was for the knobs tool, and /settings/crew does not render src/web/pages/capacity.ts.

/settings/capacity is the page this pull changes, but app.looks in forge.json is already at its 32-path limit. I can't add it without evicting another page, so it can't be pictured here. The new commit waives the look and gives that reason. If a reviewer wants it pictured, one existing entry has to give way first.

Review

[{"go":"/settings/capacity","look":"the new size-limit knobs and their plain-language reasons","expect":"both limits are listed with units and defaults, and the knob count is correct"}]
Approved

All four earlier asks are met: both reasons are in plain words with no issue number or stats (principle 8); the dead min/max fallback in sizeRow is gone; the MCP knobs doc says seven; the docs count is fixed and the how-to is in docs/features, not README. The terminal knobs panel carries the new rows, tests cover the boundaries, the hand-over once, the lift and the knob, and the preview answers 200. Non-blocking: the answered helper resembles given in limb_replan.ts; the difference (finished runs only) is justified.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs