Skip to content

Share transient retry budget with structured response formatting - #998

Merged
yashrajp22 merged 4 commits into
NVIDIA:mainfrom
yashrajp22:yashraj/llm-formatting-retry-budget
Nov 4, 2026
Merged

yashrajp22 merged 4 commits into
NVIDIA:mainfrom
yashrajp22:yashraj/llm-formatting-retry-budget

Conversation

@yashrajp22

@yashrajp22 yashrajp22 commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

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-up 91cf28336756279169b6d4d062456d265c41546a only 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 6d90c033bd59af64c98171bdb5c135f8c7d6ee88 completed 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.

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]>
@yashrajp22
yashrajp22 marked this pull request as ready for review November 4, 2026 09:28
@yashrajp22
yashrajp22 merged commit ff644bf into NVIDIA:main Nov 4, 2026
6 checks passed
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Keep shared transient retries active during structured-response formatting

1 participant