Repository navigation
fix(lanes): send an oversize-patch scan refusal to intake for a split - #12931
Conversation
A scan refusal for patch size (scan-refused-patch) routed to retry, so a fresh run re-spent a model run on work too large for one patch: #12700 failed the same way on both retries. It now takes split-required's intake route, one re-entry, so intake's split files sub-issues. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MWmASNtP63MZxdDeoxYztD
…tch route Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MWmASNtP63MZxdDeoxYztD
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review: no security issues found. I read every hunk of all 9 changed files. Three of them are on trusted paths, so I read their whole change and the code it gates:
Spend (not a finding): a patch the scan job refuses for its size now goes to intake for a split, at most once, instead of a fresh retry. That spends an intake model run, plus the split's run, in place of a resolve-issue retry. critical-findings: 0 |
|
claude-review reviewed Code review: PR #12931, send an oversize-patch scan refusal to intake for a split (round 2)I read every hunk of all 9 changed files. To trace the new mechanism end to end, I also read Prior finding (round 1,
Finding (1, advisory, not on a changed line): the split comment still tells a Small or Medium issue that it is Size Large. This PR made the
How it fails: a Medium issue that hits Other checks
Spend: this lowers model-run spend. An oversize refusal now costs one intake re-triage and a split instead of up to |
intake splits only an issue parked at Size Large, and re-triage rates Size from the issue text alone (a listed human's Size is kept), so a scan-refused-patch issue came back at Small or Medium, was admitted, refused again and ended at retry-spent with no sub-issue. Admission now parks an issue at any admitted Size for intake's split when the lanes App's report-outcome comment routed a scan-refused-patch stop to intake after a listed human last added agent-ready (patchCapStopped). It reads the comments admissionFacts already holds, so no new API call. refine.mjs and label-unblocked accept the new pending reason beside Size Large's. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MWmASNtP63MZxdDeoxYztD
No related issue: hub drain analysis 11-03 (#12700 retried twice on an oversize patch)
Summary
A run whose patch the scan job refuses for its size (
scan-refused-patch) was retried, and a fresh run on work too large for one patch fails the same way: #12700 hit the 262144-byte cap on both retries (11:52Z and 19:17Z, 2026-11-03), each one a model run spent. This sends that refusal to intake for a split instead, assplit-requiredalready does.Fix
.github/scripts/work-resolve-issue/stop-routes.json:scan-refused-patchtakessplit-required's route,"route": "intake", "retries": 1, so intake's split (owner Q93) files its sub-issues.scan-refused-faultkeeps its retry: a job fault says nothing about the work's size.docs/conventions/pr-pipeline/pr-run-activity.md: the convention line states the new route.report-outcome.test.mjs: the oversize-patch test now expects outcomeintake.The route came in with #10533 as a retry ("a fresh run may make a smaller one"); no owner decision set it. The other half of the hub's report, #12772's two
already-doneretries, needs no change: the close route closes only when the cited PR saysCloses #<issue>(.github/scripts/lib/done-evidence.mjs:57), and the cited PR #12769 says onlyRefs: #12365.Verification
node --test .github/scripts/work-resolve-issue/report-outcome.test.mjs: 393/393 pass.scripts/check-affected.sh --base origin/main --no-fetch: 11 passed, 4 skipped.Related
split-requiredon intake).🤖 Generated with Claude Code
https://claude.ai/code/session_01MWmASNtP63MZxdDeoxYztD