Skip to content

Preserve source and measured causes for parser limitations - #999

Merged
yashrajp22 merged 17 commits into
NVIDIA:mainfrom
yashrajp22:yashraj/ci-parser-limitation-causes
Nov 4, 2026
Merged

yashrajp22 merged 17 commits into
NVIDIA:mainfrom
yashrajp22:yashraj/ci-parser-limitation-causes

Conversation

@yashrajp22

@yashrajp22 yashrajp22 commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #996.

Parser failures previously appeared as generic limits even when inspection encountered unsupported syntax, uncertain command boundaries, runtime-dependent code or malformed input. This change preserves the actual cause and gives a plain-language explanation in terminal, Markdown, SARIF, JSON and MCP reports.

It retains measured limits, units and source locations; preserves the first unresolved cause across nested inspection; and enriches a copied public report without changing the raw ledger, findings, bounds or incomplete-scan gates.

Current test-only compatibility follow-up: 3b840137e1bc15b5602761759154d6e307e05861, following 0ac556fef2755280030bde15a9ce26aa882a44f2. This PR targets main for GitHub CI and includes prerequisites #997 and #973. Merge those prerequisites first; until then, this diff also contains their changes. Independent retry and archive changes remain in #998 and #1000.

Current CI follow-up at 3b840137e1bc15b5602761759154d6e307e05861: align the host-language regression expectation so PowerShell is tested according to its own syntax, while Markdown and Python retain their separate controls. This follow-up changes only the test expectation; production code is unchanged. The evidence below remains tied to its originally tested revisions. GitHub CI is running on this current head.

The integration preserves typed dispatch while carrying #973's bounded constant-field and import-evidence checks. Known omitted bytecode, native modules and unreadable source can deny optional caller proof without changing the analyzer worklist. The standalone #973 carrier 1aa76e62 passes 597 checks in each of source and fresh-wheel modes and restores full CAD static inspection to 109/109, retaining security findings and reference caveats. This is standalone carrier evidence, not a new standalone #999 test result.

The combined candidate a8b67911 passes 3,384/3,384 focused checks in each mode, across 13 modules. Its fresh wheel has 148 source-matching package files. All 50 offline scans produced reports, with exact source/wheel parity across 25 pairs and 46/46 controls satisfied. Only CAD changes from 6d90c033: 108/109 becomes 109/109 with no finding changes; all other normalized findings and inspection accounting match. A separate 12/12 full-skill edge matrix passes with six matching source/wheel pairs: opaque imported code denies optional caller proof, existing findings remain, and the destructive neighbor retains its same-file TM1 finding. The added coverage warning is not a confirmed vulnerability.

Final combined live validation completed 22 scans across 11 directories, passing 18/18 static expectations with matching static accounting in all 11 pairs. CAD reaches 109/109 in both modes. All six customer runs (CAD, SONiC and ArchCM, source and wheel) completed planned AI work; 16/22 runs have complete AI accounting overall. Six negative-control runs retained 11 final provider refusals. The record preserves 39 response-validation error attempts, two HTTP 503 responses, four connection errors and six missing-usage requests. No completed scan was repeated; this is not an error-free or universal-AI-pass claim.

Prior validation stays bound to its tested commits:

  • c303a825: 462/462 critical installed-package checks, source identity, lint and formatting passed. The earlier dd723653 compatibility head passed 2,017/2,017 focused checks.
  • Combined 6d90c033: 100 offline scans and 50 live scans across 25 directories; 44/44 static controls in each, exact offline source/wheel parity, and 52/52 live typed-message checks. Its 3,283 focused parser checks and 97 batch-security checks passed. Seven live runs retained AI-review limitations; these are preserved, not relabeled as current-head results.

Independent static reviews cover the typed integration and import-evidence correction. Greptile reviewed the three-file #973 correction with no security finding and one nonblocking inventory-indexing suggestion, which was evaluated and deferred. That scope does not cover this entire stacked integration. CodeRabbit failed before analysis; a complete two-vendor review is not claimed.

Unsupported or runtime-dependent code remains incomplete, and the ledger cap can still omit later detail rows. This improves reporting rather than proving every skill safe or fully inspectable. The PR remains draft pending prerequisite integration and successful CI on its current head.

Record the first known parser cause with allowlisted checks, measured units, prefix certainty, original source ranges and remaining scope. Preserve existing parser decisions, bounds and findings across raw and derived views.

Keep known parser incompleteness when aggregate OUTPUT_LIMIT reconciliation resolves only output duplication; the normal reconciled-output control still completes. Carry safe diagnostics through ledger grouping and terminal, Markdown, JSON and SARIF output.

Refs NVIDIA#996

Signed-off-by: yashrajbasav <[email protected]>
Use vetted nested parser measurements when deciding whether a resource exception lacks counters. Keep the explicit missing-measurement explanation for truly unmeasured parser causes across public report formats.

Refs NVIDIA#996

Signed-off-by: yashrajbasav <[email protected]>
Map the first newly learned startup proof diagnostic back to the eval carrier when recursive analysis returns. Preserve the original cause and measured prefix beside the shared exposure flag without another parse; child-shell contexts remain isolated.

Extend existing regressions for unsupported and budget causes, repeated and nested eval carriers, measured counters and non-leaking child-shell controls.

Refs NVIDIA#996

Signed-off-by: yashrajbasav <[email protected]>
Recognize the exact seeded startup diagnostic returned through a nested eval and restore its existing parent carrier before remapping. New limitations retain their own source mapping. All inherited startup return paths pass the same object, preserving origin at each recursion level.

Extend existing regressions for later consuming eval chains, unsupported and measured budget origins, and new earlier limitations that must remain distinct from inherited causes.

Refs NVIDIA#996

Signed-off-by: yashrajbasav <[email protected]>
Use a command word beginning with r, which the existing bounded command-word candidate sweep recognizes, for the later independent 4097-character limit. Preserve every cause, measurement and source-carrier assertion. An all-a word only reaches the optional startup proof when exposure has not already been established.

Refs NVIDIA#996

Signed-off-by: yashrajbasav <[email protected]>
Supply canonical completeness before both report calls, matching the report node contract. Render Markdown and normalize human text wrapping while retaining all semantic text, numeric, source-line, security and finding assertions.

Refs NVIDIA#996

Signed-off-by: yashrajbasav <[email protected]>
Preserve all parameter-expansion call-count, scan-size, and runtime assertions while forwarding optional diagnostic arguments. Follow-up for NVIDIA#996.

Signed-off-by: yashrajbasav <[email protected]>
…ci-parser-limitation-causes

Signed-off-by: yashrajbasav <[email protected]>
@yashrajp22
yashrajp22 changed the base branch from yashraj/ci-limit-diagnostics to main November 4, 2026 05:11
@yashrajp22 yashrajp22 closed this Nov 4, 2026
@yashrajp22 yashrajp22 reopened this Nov 4, 2026
@yashrajp22
yashrajp22 force-pushed the yashraj/ci-parser-limitation-causes branch from a7e363d to cd5ebd3 Compare November 4, 2026 12:14
@yashrajp22
yashrajp22 marked this pull request as ready for review November 4, 2026 15:31
@yashrajp22
yashrajp22 merged commit 7a17737 into NVIDIA:main Nov 4, 2026
6 checks passed
yashrajp22 added a commit that referenced this pull request Nov 4, 2026
…causes

Preserve source and measured causes for parser limitations

(cherry picked from commit 7a17737)
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.

Distinguish parser budget exhaustion from unresolved and runtime-dependent syntax

1 participant