Repository navigation
fix(revise): cut guidance slices at 150 comments and pin item ids - #161
Merged
Merged
Conversation
- Cut slices at about 150 comments: slices of 200 or more timed out and wrote nothing; a pull request past 150 is a slice alone and is not sent back when it writes nothing - Give each extractor its slice's comment count to copy into comments_read - Take an item's ids from the entry its quote was copied from, and find the quote there again before writing Closes #147 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Leave a one-PR slice past 150 that wrote nothing unsent, since it would time out again, and name it with what was not read - Say the benchmark run is given its 186-comment count as one slice Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Origin: #147 (revise prepare 2026-12, libera_utils and libera_cdk guidance slices)
Sandbox: the extractor, Opus, on the public harvest fixture. (1) Two slices of 90 and 96 comments, two repeats per variant: guidance_check refusals main 0, branch 0; recall main 44/48 and 43/48, branch 43/48 twice. (2) The fixture doubled to 372 comments and cut as each variant cuts, main 294 + 78, branch 144 + 150 + 78: refusals 0 on both, 217 and 216 items, evenly split across the two halves. Main's 294-comment slice took 569 s; the branch's longest took 360 s. Neither run reproduced #147's refusals or time-outs.
Canary: none yet
Ticket: #147
Motivation
In the December revision, seven of 13 guidance slices of 200 to 280 comments hit the 10-minute request limit and wrote nothing. Every slice re-cut to about 150 finished. Of the slices that finished, nine were refused by
guidance_check.py, mostly for two reasons:comments_readcount one or two short;Each refusal costs the driver a send-back or a manual fix. #147 asked for smaller slices, ids taken from the quoted comment, and a count that is not done by hand.
Change Summary
revisecuts guidance slices at about 150 comments, down from 300. A pull request past 150 is still a slice alone.comments_read.comment_id,url,authorandauthorshipfrom the entry whosebodyit copied the quote from, and finds the quote there again before writing.Used by: nothing outside this repository
Departures
guidance_check.py'sMAX_SLICEstays 300. The recorded benchmark run reads its 186 comments as one slice, and three tests pin it. The driver enforces the 150 cut. The check still refuses a multi-PR slice past 300.Details
Design decisions
guidance_check.pycompares against.What changed
skills/revise/harvest.md, "Guidance": the cut, the count passed, and the lone-slice time-out.agents/guidance-extractor.md: the count input, ids from the quoted entry,comments_readcopied.README.md,skills/revise/SKILL.md: 150 in place of 300.sandbox/README.md: the benchmark run is given its 186-comment count.Testing
Run:
bash tests/checks.shpreparewill show that.🤖 Generated with Claude Code. AI assistance level: 5/5 (not read by a person).