Repository navigation
fix(sarif): preserve native Unix filename identity - #9993
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 37 minutes. View limit details
Comment |
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_INCOMPLETE on 15faca9252d323f2a48be85bb978f91cc5018e2e.
Source/proof inspection found no material defect in this scoped repair. The semantic owner is SARIF normalize_path, consumed by artifact URI encoding and fingerprint construction. The existing host-aware path helper preserves UTF-8 Unix backslashes and retains Windows separator conversion; the byte encoder is unchanged. Human-path production and upstream seam construction are outside this change.
The public-renderer integration obtains a real nonempty finding, verifies different contents in real literal-backslash and nested files, parses SARIF, and pins independent literal URI/fingerprint values. Its byte-identical source completed one ordinary-control pass and the intended identity failure on exact base 12e63da5587aff13584857f2ae3f5ca3e326dc4a. Current-head renderer tests passed 2/2; current-head ci-policy passed with the correct six-path selector. Earlier all-feature, golden and focused strict-Clippy results retain their original 06666fd7 identity.
Fetched GitHub merge subject 7dbc1b1c76f4576499893ecf7fe323a568571b59 has parents 3d9ce73d181087e99637e7da519e8b01468dca78 and the reviewed head, tree 7922b5cc0ce54bf2ed9104e2308edb440bd8881f. It matches local composition; production SARIF code and new test bytes match the candidate. This combined tree has not executed locally.
Draft remains appropriate. Full workspace Clippy/aggregate gates hit local memory admission; native Windows and hosted qualification remain missing. Gemini/CodeRabbit quota notices are missing provider review. Initial review/thread snapshots are empty, but the required complete head-bound pagination inventory is unavailable. No Ready or merge-ready request is justified until that inventory is established. This source/proof record is not approval or final merge clearance.
There was a problem hiding this comment.
Refuted
- A duplicate fixture or synthetic artifact could falsely prove native filename identity.; refuted because: The Unix test writes two distinct real files under a temporary directory and reads them back before rendering their distinct paths.
- The new integration test may be a synthetic private-helper test and therefore not prove the public output contract.; refuted because: The test calls public render_check, parses serialized SARIF, and extracts the emitted artifact URI and fingerprints from one real finding.
- The fix should cover upstream seam construction to preserve native Unix backslashes end-to-end.; refuted because: That would exceed this focused renderer repair and change a separate producer-owned normalization boundary; the spec explicitly preserves that boundary and the PR scope excludes upstream seam construction.
Parked follow-ups
- The hosted merge subject and current head were reviewed, but exact hosted CI qualification remains pending.
Evidence gaps
- The claimed native Windows behavior is specified and tested but is not executed by the available Linux-oriented evidence.
- The Windows-specific control exists but has not been executed natively in the supplied evidence.
- Windows-specific path behavior is asserted in source but has no native Windows execution receipt in the supplied evidence.
- Model proof intent was rejected by deterministic validation.
|
Independent focused integration receipt (2026-10-25; REVIEW_INCOMPLETE). Reconciled #9987, the canonical Frozen subject: PR head Actual Linux x86_64 execution in a review-owned detached checkout, preinstalled rustc/cargo 1.95.0, locked dependencies, default features, two build jobs, dev debug=0, incremental=0: A test-only extension then reused the real nonempty finding/public
The separately requested broader non-UTF8 no-conflation property FAILS and must not be claimed: distinct real native files with path bytes Evidence SHA-256: pristine execution log Next owner action: retain the UTF8 scope and carry this exact composition receipt into canonical delivery reconciliation. Complete the remaining review-inventory assurance and separately authorized native Windows/hosted/aggregate qualification before final clearance. Those remain unverified here; no hosted CI was dispatched, and no Ready, merge, release or external SARIF submission occurred. |
|
Head-bound inventory for the review-conversation prerequisite, read at head 15faca9 (paginated at 100 per page, one page each): submitted reviews = 2 (Steven source review 5631825701; github-actions summary 5632043225, both COMMENTED, neither requesting changes); inline review threads = 0; Conversation = Gemini and CodeRabbit quota notices only (missing provider review, not clean review). Generated by Claude Code |
|
Owner / governing claim: continuation of the existing SARIF candidate for #9987; source remains |
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_INCOMPLETE — independent exact-head source/oracle review.
reviewed_head_sha: 15faca9
integration_basis: observed merge 8a4429b, parents 494a296 and the reviewed head, tree 1b1e736edf083b1267f704334b69e00ddd6b5de1.
claim_boundary: retained native UTF-8 finding paths in the public SARIF renderer, as accepted in #9987.
Inspected all six changed files, public render_check dispatch, repository-relative path handling, path_display_lossy, SARIF URI encoding, both fingerprint fields, related-test metadata, and the xtask sarif-policy baseline consumer. No actionable candidate source or test-oracle defect was found. The candidate reuses the host-aware helper: Unix backslashes remain literal, percent signs are independently encoded, and UTF-8 bytes are preserved without normalization. Windows retains separator replacement. Both fingerprint fields retain the same raw normalized path; sarif-policy uses riprFingerprintV1 verbatim for deduplication and baseline comparison and retains the URI verbatim.
The literal URI assertions discriminate against the original slash-conflating implementation and incorrect percent/Unicode encoding. The backslash/directory fixture obtains a nonempty real finding and checks distinct real file contents before rendering. The core normalization/URI/fingerprint functions, consumer module, and integration test are unchanged in the observed composition. Test source SHA-256: e7c5bfb61c3e69512054a607bdb0099ea6abe395b62a0c6d7cbf91619e71ed45. Diff whitespace validation passed. Historical runtime receipts remain bound to their original subjects; this independent review did not execute runtime tests.
Blocking missing proof: native Windows execution of crates/ripr/tests/sarif_uri_identity.rs::native_windows_separators_are_slashes; terminal required hosted qualification with actual checkout and complete test-subject evidence; final published-head/integration reconciliation. The default merge-ready Windows subset does not run this integration target (docs/CI.md and .github/workflows/windows-advisory.yml); its compilation checks cannot satisfy the native execution requirement. The shared required-test failure remains owned by #10586 and must be reconciled before requesting affected qualification.
Residual non-claims: non-UTF-8 identity, upstream seam normalization, unusual-filename analyzer discovery, and external viewer behavior. No readiness or merge clearance is granted.
|
Focused composition and consumer evidence; qualification remains incomplete. Subject: unchanged PR head
Receipt SHA-256: pristine log Independent exact-head review was published and read back successfully as REVIEW_INCOMPLETE. Native Windows execution of Downstream composition: #10532 head Draft retained; no Ready transition, qualification request or merge. This is focused execution on the named composition, not final protected-merge clearance. |
|
Downstream combined-candidate evidence for #10532, preserving this PR's source ownership. Published downstream head is now The four downstream assertions require the exact final raw-path component in the line-free finding fingerprint, preserving literal URIs, actual native files and full/partial uniqueness. The successor changes only a Unix fixture's repeated drive-looking filename literal into one shared readable constant; its URI expectation and policy allowance are unchanged. Current-head URI refresh passes 2/2, exit 0. Production, SARIF-unit, policy-control, fixture and manifest bytes remain identical to b43's executed 44/44 SARIF and 4/4 producer-policy passes. Those earlier commands retain their b43 source identity. The new consumer control covers 12 real UTF-8 files, independent URI decoding/readback, exact baseline additions and stable keys after emitted line moves. Canonical Unicode spelling-only controls remain separate from distinct-physical-file assumptions. Observed successor GitHub merge Native Windows handoff: execute This PR retains native-path qualification and protected landing ownership; #10586 retains the shared executable-lifetime prerequisite. Both candidates remain Draft. No duplicate hosted qualification or merge was requested. |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
Refuted
- The new integration evidence is synthetic and does not exercise the public SARIF contract.; refuted because: The fixture creates a real Rust workspace and finding, invokes public render_check, parses serialized SARIF, and checks emitted URI and fingerprint fields.
- The fix should move native filename preservation into upstream seam construction.; refuted because: The change is intentionally scoped to retained paths at the renderer boundary, while the spec states that producer-side normalization remains a separate responsibility and cannot be restored by this renderer.
- The new test is a synthetic artifact incapable of proving filename identity.; refuted because: It invokes the public renderer on a real finding and the Unix control creates and reads two distinct real files before asserting emitted URIs and fingerprints.
Evidence gaps
- The Windows-specific control is source-defined but has not been executed on native Windows in the retained evidence.
- Native Windows acceptance lacks an execution receipt despite the platform-specific test being present.
- Model proof intent was rejected by deterministic validation.
- Native Windows behavior and required hosted qualification are not established by the current packet.
- The claimed native Windows behavior remains unexecuted in the available evidence, so the repository-wide qualification boundary is incomplete despite the bounded source design being consistent.
Summary
Preserve retained native UTF-8 finding filename identity in SARIF. The renderer now reuses the host-aware raw path helper before the existing URI encoder and fingerprint construction: Unix
src/a\b.rsemitssrc/a%5Cb.rs, distinct fromsrc/a/b.rs; Windows keeps its separator conversion.Swarm / Source Boundary
ripr-swarm.Source-of-truth Links
Proposal: Focused repair of native UTF-8 finding filename identity.
Spec: docs/specs/RIPR-SPEC-0008-sarif-ci-policy.md
ADR: None; existing output ownership and encoding remain in place.
Plan item: Repair the SARIF finding artifact-identity collision tracked by #9987.
Governing issue or accepted claim: #9987
Acceptance delta (one sentence): On Unix, a retained finding at
src/a\b.rsemitssrc/a%5Cb.rsand retains its native fingerprint path, distinct fromsrc/a/b.rs.Candidate Relationships
Candidate branch (GitHub PR head is authoritative after publication): codex/sarif-native-path-uri / 15faca9.
Stack parent or prerequisite PR (if any): No source stack; original merge-base 12e63da. Shared required-test failure #10586 must be reconciled before affected qualification; its investigation remains with its existing owner.
Proposed replacement of PR (if any; not yet accepted): None.
Acceptance retained from a replaced candidate (if any): None.
Accepted winner and losing candidate disposition (when decided): This is the sole finding-artifact candidate identified for #9987; no competing implementation.
PR #7833 and issues #7805/#7838 own assertion-value source_file provenance, a separate surface. PR #10532 owns line-move fingerprint stability; its repaired head
c2111f9a1e02656ce0ffe56d517476bf564b6ce2retains a failing native-filename control pending this fix. This repair does not change fingerprint tuple structure. When composing the two, the #9993 integration assertions for raw paths must be refreshed from|path|to the exact final path component because #10532 removes the trailing display-line field; preserve URI identity and fingerprint uniqueness controls.Scope and acceptance
Production changes only the SARIF path conversion. Evidence adds public-renderer integration tests, SPEC-0008/traceability mappings, one exact generic-path policy example allowance, and
changelog.d/9987-sarif-native-filename-identity.mdwith the canonical Fixed marker, bullet and trailing #9987 reference.The committed fixture obtains a real nonempty finding, verifies distinct actual Unix files, calls public render_check, parses SARIF, and checks literal URI values plus full/partial fingerprint identity. Controls cover ordinary/relative paths, percent escapes, spaces, fragments, queries, first-segment colon, quotes/newlines and composed/decomposed Unicode. A native Windows integration test pins separator conversion and percent encoding.
Non-goals remain human-path rendering, unusual-filename analyzer discovery, upstream repo-seam construction, non-UTF-8 identity and external viewer qualification. The upstream seam producer still normalizes backslashes; this renderer cannot restore discarded bytes. The retained non-UTF-8 counterexample is documented in the prior receipt below and is not claimed fixed.
Retained validation and review
Earlier evidence retains its original source identities:
12e63da5587aff13584857f2ae3f5ca3e326dc4a: byte-identical test source completed one ordinary-control pass and one intended URI assertion failure. Test SHA-256e7c5bfb61c3e69512054a607bdb0099ea6abe395b62a0c6d7cbf91619e71ed45.06666fd7b9c41be0cacd561abeebab03828f450a: renderer 2/2, all-target/all-feature check, goldens, focused strict Clippy, ci-policy and worktree doctor passed.1626adc2e154bae30f57c1c6df6f65d1cb6e938b, tree999d1146878764324c7a4fb96d6137f751b8c4a1, parents main97df16cb946c7f5af0b34760d5be69a879139ffdand candidate06666fd7…: renderer 2/2 passed.15faca925…adds only the changelog fragment to06666fd7…; current-head ci-policy and renderer 2/2 passed. Full workspace Clippy/check-fast/precommit did not establish aggregate passes.7dbc1b1c76f4576499893ecf7fe323a568571b59, tree7922b5cc0ce54bf2ed9104e2308edb440bd8881f, parents main3d9ce73d181087e99637e7da519e8b01468dca78and current head: inspected, not executed.8c43ac7088e91e18561a717402f0c7b6d30dabaa, treefa1a4e1f095944c4db4390f23cdb9458fcc89254, parents main875d1f2a30ae4ed4ea7d68dba74f76f769e08868and current head: renderer 2/2 passed, plus independent percent-decoding/file-consumer controls. Retained receipt and explicit non-UTF-8 limitation.Original exact-head review and automated review remain preserved. Independent refreshed review was successfully published and read back on exact head
15faca925…: no actionable candidate source/oracle defect, disposition REVIEW_INCOMPLETE for missing qualification.The existing URI encoder remains unchanged. The actual sarif-policy baseline consumer uses the raw fingerprint verbatim. Ordinary-path goldens were unchanged. The narrow
policy/local_context_allowlist.txtrow permits one generic Windows example in the test; it changes no checker rule or broad path exemption. Existing advisory PR-shape warnings retain that explanation.Continuation
Owner / governing claim: continuation of existing SARIF delivery / #9987; source remains on the canonical candidate branch.
Candidate:
15faca9252d323f2a48be85bb978f91cc5018e2e, tree4818c053738b603cf0334cdce0e4911eca8e6ed9. Observed GitHub merge subject8a4429bbdf618a46cc7a8fe297cfcba81c4d4531, parents494a2967b4be7f80ca86206217c79182c95e7798and current head, tree1b1e736edf083b1267f704334b69e00ddd6b5de1. Clean local composition with observed mainaeeeddacd1e24f3b04e713572717e7b172966431yields tree2655f28debd9953114929f5df588a6d62b733e67; it is not an executed or hosted subject.Review: exact-head independent REVIEW_INCOMPLETE linked above. No source repair identified. Native Windows execution and required hosted qualification remain missing.
Validation: historical receipts above remain bound to their subjects; new observed-merge execution and actual consumer receipt: pristine renderer 2/2, 12-file round-trip probe 1/1, actual sarif-policy distinct-baseline/identical-baseline controls passed. The experimental test was restored; no candidate source edits. No required Rust qualification is queued or running for this head in the inspected inventory. Skipped jobs are not passes.
Dependency: #10586 owns the shared executable-lifetime failure. Preserve its original failed runs and repair owner; do not duplicate the repair or blindly rerun affected qualification.
Next: reconcile #10586's outcome against the actual hosted subject; execute
cargo test --locked -p ripr --test sarif_uri_identity -- --nocaptureon native Windows with exact source/target evidence. The default merge-ready Windows subset does not execute this target. Then complete the repository's Ready boundary, request qualification once, inspect actual checkout and every required shard/subject, publish and read back final exact-head REVIEW_READY, and separately verify current gates/head before protected expected-head squash.Draft is retained. No merge-ready request or merge has been performed by this continuation. Raw GitHub mergeability is true with state blocked, not a source conflict. Rollback remains a normal revert of this coherent renderer/tests/spec/traceability/changelog slice. Issue #9987 remains open until acceptance is verified.