Public: anyone can read this; the crew can change it.
The crew starts a chapter's issues in the order the owner set #15809
Check · Review · Land · Live done — Landed and live in production.
The crew now picks an open chapter's issues in the position the owner set, ties by issue number, and the "why ready cannot start" words name that position. Pick order: inSlotOrder in src/crew/autonomy.ts stable-sorts the pickable issues so the open chapter's items come first.
shipped production is serving it deploy 3fede26
7 earlier comments · 1 event
<!-- look-pages f4d8060808ae --> Look pages for f4d8060, from the gate:
look pages (none): this pull changes src/web/pages/next.ts, src/web/pages/next_chapters.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
While a chapter is open, the crew now starts its ready issues in the order the owner set on the chapter's list, ties by issue number (inSlotOrder, src/crew/autonomy.ts). Every other ready issue keeps its Next up order after them.
- Budget stays at 72.
/nextreads the chapters once at the top ofnextPage, and reads the open chapter's list once for this viewer. That one list feeds the "why it cannot start" words (through the new optionalopenargument ofnotStartable), the chapter line and the chapters section, so the page no longer reads it twice. The API, the MCPnext_uptool and the terminal don't pass the argument, sonotStartablereads it itself throughopenOrder. The budget files match main. - One open chapter.
openOrderlooks up a single chapter id (… state = 'open' ORDER BY created_at LIMIT 1), so positions from two chapters can never mix. A test shows a second chapter cannot open while one is. - Words only when the issue really waits. Free slots are the slots set in the repository's settings minus the builder runs in flight. When they run out before a startable chapter item, that row reads
position 3 in v1, after #12.#12is the first item that can start, never a held one. With a slot free for each item, no row carries the words. Any such words mark a row "held" on Next up, which is why they show only when the issue really waits. - How-to. A new "The crew follows the order" section in
docs/features/chapters.md. - Tests. The test user is now a typed
User. New cases cover one, two and three slots, and a top item held by a run.
The first check failed on the gate's "both doors" rule. The web edits show nothing new: they only reuse a read. The terminal's Next up screen already gets the words from the same notStartable, so a commit now carries a No door: line saying so.
Checks run here: bun scripts/gate.ts --fix, bun x tsc --noEmit and bun scripts/design-lint.ts are clean. scripts/fast.ts named 3462 test files, too many to run, so I ran the 11 that cover the change: 105 pass. They include pages-budget, mcp-size, not-startable, next-up, tui-next-up and the chapters tests. The last commit only adds a message, and the gate no longer fails.
Left out: the free-slot count ignores the week's pacing and the governor. Those can only lower the slots, so the words may be missing on a row that does wait. They never show on a row that starts on this tick.
[
{"go": "/trevato/forge/next", "look": "the chapter line under the heading and the Chapters section", "expect": "both show the same progress for the open chapter as before"},
{"go": "/trevato/forge/next", "look": "rows of the open chapter's ready issues", "expect": "with one builder slot, the second and later rows read 'position N in <chapter>, after #<first startable>'; with a slot free for each, none carry those words", "ask": "Does 'position 2 in v1, after #N' read as order rather than as a block?"}
]
🤖 Generated with Claude Code
While a chapter is open, the crew now starts its ready issues in the order the owner set on the chapter's list, ties by issue number (inSlotOrder, src/crew/autonomy.ts). Every other ready issue keeps its Next up order after them.
- Budget stays at 72.
/nextreads the chapters once at the top ofnextPage, and reads the open chapter's list once for this viewer. That one list feeds the "why it cannot start" words (through the new optionalopenargument ofnotStartable), the chapter line and the chapters section, so the page no longer reads it twice. The API, the MCPnext_uptool and the terminal don't pass the argument, sonotStartablereads it itself throughopenOrder. The budget files match main. - One open chapter.
openOrderlooks up a single chapter id (… state = 'open' ORDER BY created_at LIMIT 1), so positions from two chapters can never mix. A test shows a second chapter cannot open while one is. - Words only when the issue really waits. Free slots are the slots set in the repository's settings minus the builder runs in flight. When they run out before a startable chapter item, that row reads
position 3 in v1, after #12.#12is the first item that can start, never a held one. With a slot free for each item, no row carries the words. Any such words mark a row "held" on Next up, which is why they show only when the issue really waits. - How-to. A new "The crew follows the order" section in
docs/features/chapters.md. - Tests. The test user is now a typed
User. New cases cover one, two and three slots, and a top item held by a run.
Gate lines, carried in commit messages:
No door:The web edits only reuse a read and show nothing new. The terminal's Next up screen already gets the words from the samenotStartable.Looks: /preview-admin/sample/next?picknames the page to picture. The gate now reports it as named.
Checks run here: bun scripts/gate.ts, bun x tsc --noEmit and bun scripts/design-lint.ts are clean. scripts/fast.ts named 3462 test files, too many to run, so I ran the 11 that cover the change: 105 pass. They include pages-budget, mcp-size, not-startable, next-up, tui-next-up and the chapters tests. The last two commits only add messages, so I did not run the tests again.
The desk hold "production is rolling" did not change anything here. These pushes only go to this pull's branch and preview, not to production.
Left out: the free-slot count ignores the week's pacing and the governor. Those can only lower the slots, so the words may be missing on a row that does wait. They never show on a row that starts on this tick.
[
{"go": "/preview-admin/sample/next?pick", "look": "the chapter line under the heading and the Chapters section", "expect": "both show the same progress for the open chapter as before"},
{"go": "/trevato/forge/next", "look": "rows of the open chapter's ready issues", "expect": "with one builder slot, the second and later rows read 'position N in <chapter>, after #<first startable>'; with a slot free for each, none carry those words", "ask": "Does 'position 2 in v1, after #N' read as order rather than as a block?"}
]
🤖 Generated with Claude Code
<!-- look-pages 5756dae6c169 --> Look pages for 5756dae, from the gate:
look pages (none): "Looks: /preview-admin/sample/next?pick" is not a page of app.looks in forge.json; this pull changes src/web/pages/next.ts, src/web/pages/next_chapters.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
When the crew has fewer free slots than ready issues in the open chapter, it now starts them in the order the owner set for that chapter. On /<owner>/<name>/next, each issue that waits now says where it stands, e.g. "position 2 in <chapter>, after #<first>". The page and the terminal's Next up screen get that wording from the same function (notStartable), so they say the same thing. The page edits reuse the chapter list the page already reads, so they add no extra lookup.
The look-pages note on 5756dae said Looks: /preview-admin/sample/next?pick was not a page of app.looks. It is listed there: the check was wrong. The forge.json validator in src/apps/manifest.ts accepts look paths with a query, such as /boards?help and /preview-admin/sample/next?pick. But looksOf in src/checks/look_pages.ts only kept paths with no query, so it dropped both and no Looks: line could ever name them. It now also keeps a short query made of letters, digits and - . = &. Anything else, such as spaces or <, is still dropped. A new assertion in test/look-pages-comment.test.ts checks both cases. The test passes, tsc is clean, and bun scripts/gate.ts --fix now reports look pages (named): … a commit names /preview-admin/sample/next?pick.
I left out a fix for one gate warning: it rates the mk helper in test/chapters-pick-order.test.ts 0.68 similar to bare in test/feed-mine.test.ts. It's only advice, and the two build different fixtures.
How to try it: open a chapter with three ready issues, set the crew's slots to 1, and open /<owner>/<name>/next. Rows two and three should read "position N in <chapter>, after #<first>".
[{"go":"/preview-admin/sample/next?pick","look":"the rows of ready issues that cannot start yet","expect":"an issue that waits behind an earlier one in the open chapter reads 'position N in <chapter>, after #<first>'"}]
🤖 Generated with Claude Code
Earlier asks are met. (1) Non-chapter issues keep their Next up order: inSlotOrder now partitions, chapter items by position then number, the rest untouched, and the test covers a ranked and an unranked outsider. (2) The words only show when the free builder slots run out, and they read position N in v1, after #M, where #M is the first item that can start. (3) The how-to is in docs/features/chapters.md, not the README. The terminal gets the same words through the shared notStartable. The preview answers 200. The page edits reuse one chapter read and add no work to the first paint.
Two things I would do next:
- Non-blocking: the looksOf query allowance is unrelated to the issue. Split it into its own pull next time.
- Non-blocking: the free-slot count ignores pacing and the governor, so a waiting row can miss its words. Say so on the page, or feed pacing in later.
<!-- look-pages a643252c72f9 --> Look pages for a643252, from the gate:
look pages (none): "Looks: /preview-admin/sample/next?pick" is not a page of app.looks in forge.json; this pull changes src/web/pages/next.ts, src/web/pages/next_chapters.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
When the crew has fewer free slots than ready issues in the open chapter, it now starts them in the order the owner set. On /<owner>/<name>/next, issues outside a chapter keep their old Next up order. An issue that waits behind another in the chapter reads position N in <chapter>, after #<first>, where #<first> is the first issue that can start. Those words only appear once the free builder slots run out. The terminal's Next up screen gets the same words through the shared notStartable. The page edits reuse the chapter list the page already reads, so the first paint does no extra work. The how-to is in docs/features/chapters.md.
This push reverts the looksOf change from a643252, so the pull changes nothing in the look-pages check. That change didn't fix the gate's note, which means the gate's look-pages check isn't running this branch's code. Juniper also asked for it to be split out, so it is now its own issue, #15962. The revert commit has a No look: line instead: /preview-admin/sample/next?pick is the page this changes and app.looks already pictures it, but the current check drops looks that carry a query.
Not done here: the free-slot count ignores pacing and the governor, so a waiting row can still go without its words. Feeding pacing in is left for later.
How to try it: open a chapter with three ready issues, set the crew's slots to 1, and open /<owner>/<name>/next. Rows two and three should read position N in <chapter>, after #<first>.
[{"go":"/preview-admin/sample/next?pick","look":"the ready rows that cannot start yet","expect":"an issue waiting behind an earlier one in the open chapter reads 'position N in <chapter>, after #<first>'"}]
🤖 Generated with Claude Code
When the crew has fewer free slots than ready issues in the open chapter, it now starts them in the order the owner set (src/crew/autonomy.ts, inSlotOrder). Issues outside the chapter keep their old Next up order. On /<owner>/<name>/next, an issue in the chapter that has to wait for a free builder slot reads position N in <chapter>, after #<first>, where #<first> is the first chapter issue that can start. The terminal's Next up screen shows the same words, because both use notStartable in src/crew/not_startable.ts. The repository's Next up page reads the open chapter's list once and shares it between the waiting words, the chapter line and the chapters section, so its statement count is unchanged at 63, the same as main. The cross-repository /next page reads each repository's open chapter one more time, at most 5 repositories: it measures 88 statements against main's 84, within its budget of 90. The how-to is in docs/features/chapters.md.
Check failures, and what this push does:
test/pages-budget.test.ts: after merging main at 1781060f6, it passes locally.test/web-apps.test.ts: "the app page says in a sentence that production is not running" still fails in this sandbox. It fails the same way on unchanged main here, with the page saying "Failed to start" instead of "Not running", because the sandbox cannot start apps. This pull doesn't touch that page, so I couldn't reproduce the forge-side failure and changed nothing for it; the forge's check on this push will show whether it still fails./llms.txtbyte budget: this test is red on main as well.- The share-and-budgets screen test: the check didn't attribute it to either side, and nothing in this pull touches it.
Choices:
looksOfchange: the change from earlier in this pull is reverted, as the review asked. The forge's look-pages check rejects looks with a query, so aLooks: /preview-admin/sample/next?pickline still can't name this page; aNo look:line in the revert commit says why. The fix is filed as #15962.- Not done: the free-slot count ignores pacing and the governor, so a row that is really waiting can be shown without its words. Feeding pacing in is left for later.
tsc is clean and test/chapters-pick-order.test.ts passes.
How to try it: open a chapter with three ready issues, set the crew's slots to 1, and open /<owner>/<name>/next. Rows two and three should read position N in <chapter>, after #<first>.
[{"go":"/preview-admin/sample/next?pick","look":"the ready rows that cannot start yet","expect":"an issue waiting behind an earlier one in the open chapter reads 'position N in <chapter>, after #<first>'"}]
🤖 Generated with Claude Code
Earlier asks: the looksOf change is reverted and split out (#15962), so the pull touches only the chapter order. The non-chapter order is kept and tested. The wording shows only when the free slots run out. The how-to is in docs/features/chapters.md, not the README. The commit a643252 is not in my clone, so I read the whole change as shown. The /next page reuses one chapter read and adds no layout, markup or JavaScript, so first paint, keyboard use and the 360px phone view are as before. The page change is words inside the existing rows. Next two things: (1) Non-blocking: feed pacing and the governor into the free-slot count so a row that really waits always carries its words. (2) Non-blocking: fold the mk issue helper in test/chapters-pick-order.test.ts into the shared fixture the gate flagged.
The crew now picks an open chapter's issues in the position the owner set, ties by issue number, and the "why ready cannot start" words name that position.
inSlotOrderinsrc/crew/autonomy.tsstable-sorts the pickable issues so the open chapter's items come first. Issues outside the chapter keep their existing order.openOrderinsrc/core/chapters.tsreturns the open chapter with each item's position.src/crew/not_startable.ts, a startable chapter issue that isn't first readsposition 2 in v1: waits behind #N, set earlier by the owner.test/chapters-pick-order.test.tshas three ready issues in an open chapter and a builder on the crew. It checks the pick before and after reordering, and the position words. Both tests fail with thesrc/changes stashed.scripts/gate.ts --fixandtscwere clean.test/mcp-size.test.ts,chapters-order,chapters,chapter-next, the autonomy tests and the next-up tests all pass.scripts/fast.tssaid the diff reaches about 3,100 test files, so I ran only the tests named above, not the full suite. The forge's check runs the rest on this push.notStartable, so Next up shows them wherever it already shows a reason.To try it, open a chapter with three ready issues, move one up with the chapters action, and watch Next up and the crew's next pick follow the new order.
Closes #15762