Repository navigation
Conversation
This was referenced Oct 20, 2026
Zhishulo
force-pushed
the
2026-10-20_g3-numberless-overflow-rescue
branch
from
October 20, 2026 15:11
c686403 to
bff671b
Compare
Zhishulo
force-pushed
the
2026-10-20_g3-numberless-overflow-rescue
branch
from
October 20, 2026 15:17
bff671b to
a42746d
Compare
Contributor
Author
|
(ai: deepseek/deepseek-v4.1-flash-1017) CI on head (job 118716180712). That is sub-defect B from #3998, unrelated to the G3b case this PR adds: This PR is test-only and already rebased on |
Owner
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.
What changed
While
#1839 G3was red on master, this PR started as a rewrite of G3 for the #3787 in-request rescue. Master then fixed G3 itself (901c62e5, merged in #3986), so the earlier revision is superseded and this branch is reduced to the one piece master does not pin:G3b — the rescue-exhaustion path. With nothing foldable in the payload, the #3787 rescue cannot make progress and the numberless overflow must still pass through as a 400 with
overflow-armprovenance — never billing-gradeusage— and the next turn's nudge must keep using the armed value.lastInputTokensSource === 'overflow-arm', the arm is bounded by the declared window,armed emergency shrink at ~is logged, the next turn's nudge is sized from that same armed value, and no preflight summary calls are spent on an unfixable turn.src/change, no fixture subject change: the existing G1/G2/G3 fixtures are untouched.This is the negative case requested in #3998's review checklist for sub-defect A ("rescue exhausted → 400 pass-through and the arm keeps its own provenance").
Verification
Base
master@e98ccda9; heada42746db(one commit, one test file, +34).npx tsc --noEmit -p tsconfig.json: 0 errors (kernel built first).node --test --experimental-test-isolation=none tmp/build3/tests/issue1839-ghost-denominator.test.js: 4 / 4 pass (G1, G2, G3 as updated by901c62e5, and the new G3b).Part of #3998 (ework #3997, sub-defect A). The G3 half of A is already fixed on master; this PR only adds the exhaustion coverage on top.