Public: anyone can read this; the crew can change it.
A changes-requested review with only a body is invisible: the pull's API, its reviews list and a repeat review request all say nothing #18184
Merged 14h 10m ago, live in production
A body-only changes-requested review now shows in the pull's answer, in the reviews list and in the 409 of a repeat ask. The Next line names the author. The new test for #18181 passes, as do the gate, tsc, bun test test/mcp-size.test.ts and the tests that cover the change.
-
Reviews
Changes requested — before the latest pushThe five boxes are mostly met, but three things need fixing in one round.
- (Fix first) src/web/studio/actions.ts:
reviewedAlready(...)!is a non-null assertion on a value that can be null, because the review can change between the refusal and the lookup. A null there throws on the web ask-review form. Handle null with a fallback sentence, and fix the nested-ternary indentation. - The wording now lives in two places: src/core/landing.ts:183 still says 'changes were asked on this head', and docs/features/flow-waiting.md:27 repeats it, while the Next line says 'waits on its author: changes requested'. There should be one way to say it. Reuse the same constant in landing.ts and update that doc line.
- src/flow/pull_pane.ts: the pane strips the prefix with a regex copy of the wording, so the two will drift. Export CHANGES from next_actor.ts and derive the strip from it.
Also: the
/reviewsresponse shape changes from a flat comment list to reviews with nested comments. Add a sentence to docs/features/review-requests.md saying that line comments are grouped under a review by author, commit and nearest time (a heuristic), and that the shape changed.ApprovedEarlier asks are met: the web ask form no longer asserts non-null, the changes-requested wording is one constant (now a leaf module, which also fixes the import cycle), and the /reviews shape change is documented as a heuristic grouping. The new lines since my last review are small and clean. Non-blocking: changesBrief overlaps blockingReviewWords; fold them later.
- (Fix first) src/web/studio/actions.ts:
-
Checks
shipped production is serving it deploy f698c54
-
History
- Break an import cycle: the changes-requested wording is a leaf, so the pages worker loads again b02d053
- One wording for changes requested, a null-safe web ask, the reviews shape documented 911bb79
- A changes-requested review with only a body shows in the pull, the reviews list and a repeat ask 99a9f5b
- Spark's config is installed with the mod so a profile uploads to the forge and never elsewhere (#18173) 7de2fc0
- Games survival step 3b: a sleep (night-skip) mod in the quality set (#18172) 56e2b82
- Automate a review finding as a lint or test: One high finding, then smaller ones, all for one round. (#18167) f6eb779
- A spark profile decodes to a summary: call tree, slowest ticks, per-mod time, GC and memory (#18144) e30e2b6
- Access 4b: the 'Who may do what' page, linked from settings, by person and by resource (#18131) 3ecccb5
- "asks ledger failed: database is locked" two minutes after a release (v0.7.733) (#18169) 009df15
- Traces 4: a Claude Code session file imports as a trace and is listed beside the others (#18129) 68f0754
- A game box stores spark profiles in the forge: POST /post gives a Location, reads need the box's game grants (#18146) b992c0d
- Games survival step 3: quality-of-life mods tried on a copy first (graves, essential-commands, sleep, harvest, vein miner, styled-chat) (#18145) f058287
- Spend 1: a monthly budget per cloud account, one notice at 80% and one at 100% (#18121) 3382c40
- Games: a proxy plugin update can wait until nobody has been on for 30 minutes (#18039) 9a5eb31
- Traces 5: compare two traces, and share one with secrets redacted (#18017) 7a17314
- AWS writes for mail setup are a named allowlist beside the read rule, and nothing else (#18142) 93c7c3d
- Traces 1c: GET /api/v1/traces/:id returns the thread, turns and steps as one tree (#18128) 077bab0
- A box's TPS and tick time show live on its games pane, from spark's health report or `/spark tps` at check-in (#18143) f7e559b
- Access 4c: the grants view as an MCP tool and a terminal screen (#18130) 89afadf
- small: the Absorb findings say they are ready for the owner to send to Ben (#18132) d41ec43
2 earlier comments
A body-only changes-requested review now shows in the pull's answer, in the reviews list and in the 409 of a repeat ask. The Next line names the author. The new test for #18181 passes, as do the gate, tsc, bun test test/mcp-size.test.ts and the tests that cover the change. I did not run the whole suite or the sandbox-skipped suites; the forge's check does that. scripts/fast.ts named about 3,100 files, so I ran the specific ones instead.
What changed
- Pull answer:
GET …/pulls/:ncarrieslatestReviewandchangesRequested, each{id, state, reviewer, at, body, commit, current}.latestReviewis the newest review of any state.changesRequestedis the review asking for changes on the current head, or null. The shaping is in the newsrc/core/review_list.ts. - Reviews list:
GET …/pulls/:n/reviewsnow lists reviews (state, body) with their linecommentsunder each. Line comments store no review id, so each goes under the same author's review on the same commit nearest in time. Comments that match no review come as one entry per author withid: null. - Repeat ask: a head with a changes-requested review answers 409
already_reviewed. The message gives the reviewer, the time (UTC), the first lines of the body and "Push a change, then ask again." Thereviewobject is in the body. The MCP tool, the terminalKprompt and the web ask-review form say the same words. - MCP:
request_reviewnow acts by default, anddryRun: trueonly plans. A read-only token may still plan. - Next line: "waits on its author: changes requested", with the reviewer after a colon. The pull pane is adjusted to match.
- Contract and docs: the OpenAPI schemas and
docs/features/review-requests.mdare updated.
Things to look at
- Breaking change to the reviews list: the route used to return line comments. Four existing tests read it that way, so I changed them to flatten
comments(parity,reviews-states,api-reader-marks,next_actor/pull-panefor the Next wording). Any outside client that read the old shape will need the same change. - Reused:
listReviewsandreviewsOnHeadfromcore/reviews.ts.changesBriefoverlapsblockingReviewWords; I did not merge them. - Gate: the only notes left are the three similarity notes on
review_list.ts. - Commit lines: the commit carries a
No door:line, because the existing screen and how-to already carry these words, and aNo look:line.
Not done
- No migration to tie line comments to a review by id. The grouping above is a heuristic.
- No change to
landing.ts's "changes were asked on this head" cause text.
Try it: file a changes_requested review with only a body on an open pull, then:
GET /api/v1/repos/:owner/:name/pulls/:n?diff=0and readlatestReviewandchangesRequested.GET …/pulls/:n/reviewsand find the review.POST …/pulls/:n/review-requestsand expect the 409.
The test is the last one in test/review-request.test.ts.
🤖 Generated with Claude Code
This round addresses all three of sentinel's points and the doc request. tsc is clean and test/pull-waits-for.test.ts passes (9 tests). gate --fix wrote nothing; it only noted two files with long comment lines and three similar-function pairs in src/core/review_list.ts. I did not run the wider suite; the forge's check runs it on this push.
- Null on the web ask-review form:
reviewedAlready(...)is no longer asserted non-null insrc/web/studio/actions.ts. If the review is gone by the time of the lookup, the form says "Changes were already requested on this head. Push a change, then ask again." The nested ternary is re-indented. - One wording:
CHANGESis now exported fromsrc/flow/next_actor.ts.landing.ts:src/core/landing.tsuses it, so the green-not-landed line reads "Green for N hours, not landed: waits on its author: changes requested. …".test/pull-waits-for.test.tsexpects that new text.flow-waiting.md:docs/features/flow-waiting.mdnow quotes the Next line's wording.
- Pane strip:
src/flow/pull_pane.tsbuilds the strip fromCHANGESinstead of a regex copy. /reviewsshape:docs/features/review-requests.mdnow says the shape changed from a flat comment list to reviews with nested comments. It also says line comments are grouped under a review by author, commit and nearest time, which is a heuristic and not a link.
One thing to look at: src/core/landing.ts now imports from src/flow/. That is the layering sentinel's suggestion produces, and I did not move the constant into core.
The commit carries Direction: … (#18181) and No door: …, since this is wording and null handling only and the terminal already shares alreadyReviewedWords. No new exports or module-level state.
A changes-requested review with only a body now shows in the pull, the reviews list and a repeat ask. The failing check came from an import cycle my earlier commits added, and that cycle is now removed.
Cause of the failures. src/core/landing.ts imported the CHANGES wording from src/flow/next_actor.ts. That set up a cycle that left PILLAR_DAYS uninitialised when src/core/watches.ts loaded. The pages worker threw on startup, so the picture-keep and flow-pages tests timed out. The survival-set test is in test/game-mods.test.ts, which the check also re-ran on main, but I did not run it against the cycle.
Fix. CHANGES now lives in a new leaf module, src/core/changes_words.ts. landing.ts and next_actor.ts both read it from there, and next_actor.ts still re-exports it, so existing imports keep working.
Verification.
- The worker now loads when started directly.
bun x tsc --noEmitis clean.test/picture-keep.test.ts,test/flow-pages.test.ts,test/game-mods.test.ts,test/next_actor.test.ts,test/review-request.test.tsandtest/reviews-states.test.tsall pass (101 tests).- I did not run the rest of the suite; the forge's check does that on this push.
Gate. bun scripts/gate.ts --fix reported two over-long comment lines, which it wraps, and three similarity notes on src/core/review_list.ts. I changed nothing for the notes and did not read the --fix output closely.
Not done. No tests were changed.
A body-only changes-requested review now shows in the pull's answer, in the reviews list and in the 409 of a repeat ask. The Next line names the author. The new test for #18181 passes, as do the gate,
tsc,bun test test/mcp-size.test.tsand the tests that cover the change. I did not run the whole suite or the sandbox-skipped suites; the forge's check does that.scripts/fast.tsnamed about 3,100 files, so I ran the specific ones instead.What changed
GET …/pulls/:ncarrieslatestReviewandchangesRequested, each{id, state, reviewer, at, body, commit, current}.latestReviewis the newest review of any state.changesRequestedis the review asking for changes on the current head, or null. The shaping is in the newsrc/core/review_list.ts.GET …/pulls/:n/reviewsnow lists reviews (state, body) with their linecommentsunder each. Line comments store no review id, so each goes under the same author's review on the same commit nearest in time. Comments that match no review come as one entry per author withid: null.already_reviewed. The message gives the reviewer, the time (UTC), the first lines of the body and "Push a change, then ask again." Thereviewobject is in the body. The MCP tool, the terminalKprompt and the web ask-review form say the same words.request_reviewnow acts by default, anddryRun: trueonly plans. A read-only token may still plan.docs/features/review-requests.mdare updated.Things to look at
comments(parity,reviews-states,api-reader-marks,next_actor/pull-panefor the Next wording). Any outside client that read the old shape will need the same change.listReviewsandreviewsOnHeadfromcore/reviews.ts.changesBriefoverlapsblockingReviewWords; I did not merge them.review_list.ts.No door:line, because the existing screen and how-to already carry these words, and aNo look:line.Not done
landing.ts's "changes were asked on this head" cause text.Try it: file a
changes_requestedreview with only a body on an open pull, then:GET /api/v1/repos/:owner/:name/pulls/:n?diff=0and readlatestReviewandchangesRequested.GET …/pulls/:n/reviewsand find the review.POST …/pulls/:n/review-requestsand expect the 409.The test is the last one in
test/review-request.test.ts.🤖 Generated with Claude Code
Closes #18181