Repository navigation
Share transient retry budget with structured response formatting - #998
Merged
yashrajp22 merged 4 commits intoNov 4, 2026
Merged
Conversation
Keep formatting calls inside the existing per-batch retry loop so transient provider failures retain the shared retry and runtime budgets. Stop on any formatting validation failure and retain the original assessment across transport retries. Fixes NVIDIA#995 Signed-off-by: yashrajbasav <[email protected]>
Signed-off-by: yashrajbasav <[email protected]>
This was referenced Nov 3, 2026
Signed-off-by: yashrajbasav <[email protected]>
Signed-off-by: yashrajbasav <[email protected]>
yashrajp22
marked this pull request as ready for review
November 4, 2026 09:28
yashrajp22
added a commit
that referenced
this pull request
Nov 4, 2026
… response formatting Keep structured-response formatting recovery within shared retry limits and preserve deadlines and neighboring results. (cherry picked from commit ff644bf) Signed-off-by: yashrajbasav <[email protected]>
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.
Fixes #995.
Keep transient provider retries active during the single structured-response formatting recovery pass. Preserve shared retry budgets, deadlines, cancellation, original assessment content and neighboring batch results.
Also correct the production parser's quote-boundary proof for bounded literal multiline
printf. Unknown arguments, nested runtime commands, local replacements, incomplete context and existing resource limits remain conservative; destructive-command findings are preserved. PowerShell regression tests now assert their own language behavior directly.Current validation
At
3085541a3d980e746223cd8867a748b730aff5b5, 464 focused tests passed from source and 464 from a freshly built, non-editable wheel. Coverage includes LF/CRLF, unresolved/redefined commands, host-language boundaries and retained destructive-command findings. All 138 tracked package files match source. Follow-up91cf28336756279169b6d4d062456d265c41546aonly wraps the same expression across lines; its parsed Python structure is identical, and lint/format checks pass.The new offline matrix completed 32 full-skill scans for this PR (base and fix, source and fresh wheel), with all 16 source/wheel pairs matching and every noncoverage finding preserved in the 16 base/fix comparisons. Bounded literal commands become fully inspectable; unknown or redefined commands remain incomplete and destructive findings remain present. The four-PR matrix totals 128 scans.
Real-provider before/after validation completed 8 negative-control scans from source and fresh wheels, covering unresolved runtime commands and destructive literal commands. The expected static results hold and destructive-command findings remain. All eight retain AI refusal diagnostics (25 report rows, not a unique-request count), so none is claimed as a complete AI review. These natural provider outcomes do not replace the earlier controlled retry tests or establish universal recovery.
Current GitHub CI has five successful checks; the full unit-test job is still running. This PR remains draft pending that result and its prerequisite merges, where applicable.
Historical evidence
At
656979361ae05cb59dc92b9989305274f725ae72, 459 wheel tests passed; new recovery controls produced 28 baseline failures and four passes. SDK/mock-transport checks cover retries, refusal, invalid output, cancellation and sibling findings. Source/wheel checks covered 32 full skills; eight natural live scans retained static findings, with one larger fixed case reaching its 600-second deadline. Those live runs did not inject a provider outage or formatting error. Independent static, CodeRabbit and Greptile reviews applied to that revision. GitHub run 41609069486 failed.Historical combined candidate
6d90c033bd59af64c98171bdb5c135f8c7d6ee88completed 100 offline and 50 live scans across 25 full skills, passing all 44 declared static controls and 52 typed-diagnostic wording checks. Seven live runs remained incomplete because of invalid AI output, refusals or PLC report limits. These combined results do not establish a current standalone CI or live pass.