Repository navigation
Preserve source and measured causes for parser limitations - #999
Merged
yashrajp22 merged 17 commits intoNov 4, 2026
Merged
Conversation
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]>
Signed-off-by: yashrajbasav <[email protected]>
Signed-off-by: yashrajbasav <[email protected]>
Signed-off-by: yashrajbasav <[email protected]>
Signed-off-by: yashrajbasav <[email protected]>
…ci-parser-limitation-causes Signed-off-by: yashrajbasav <[email protected]>
This was referenced Nov 3, 2026
Signed-off-by: yashrajbasav <[email protected]>
Signed-off-by: yashrajbasav <[email protected]>
Signed-off-by: yashrajbasav <[email protected]>
Signed-off-by: yashrajbasav <[email protected]>
Signed-off-by: yashrajbasav <[email protected]>
yashrajp22
force-pushed
the
yashraj/ci-parser-limitation-causes
branch
from
November 4, 2026 12:14
a7e363d to
cd5ebd3
Compare
yashrajp22
marked this pull request as ready for review
November 4, 2026 15:31
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]>
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.
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, following0ac556fef2755280030bde15a9ce26aa882a44f2. This PR targetsmainfor 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
1aa76e62passes 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
a8b67911passes 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 from6d90c033: 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 earlierdd723653compatibility head passed 2,017/2,017 focused checks.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.