Skip to content

fix(sarif): preserve supported finding identity across line moves - #10532

Merged
EffortlessSteven merged 37 commits into
mainfrom
fix/sarif-fingerprint-line
Nov 1, 2026
Merged

EffortlessSteven merged 37 commits into
mainfrom
fix/sarif-fingerprint-line

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Summary

Finding SARIF fingerprints omit the display line so supported native identities survive line moves. The Perl producer repair distinguishes separate changed behaviors, keeps native suppression matching exact, and preserves the existing location-bound seam fingerprint contract.

The combined candidate incorporates the existing native UTF-8 path repair from #9993 unchanged. Its downstream assertions now require the exact final file component in the line-free finding fingerprint. A new 12-file control follows real filenames through rendering, independent URI decoding and the actual baseline-policy reader, then checks the same keys after emitted line moves.

Draft / REVIEW_INCOMPLETE. Native Windows execution and required hosted qualification remain missing. The shared executable-lifetime prerequisite #10586 retains its existing repair owner. No qualification or merge is requested while those holds remain.

Source-of-truth Links

Proposal: Repair finding fingerprint line stability without collapsing distinct Perl changes.
Spec: docs/specs/RIPR-SPEC-0008-sarif-ci-policy.md; docs/specs/RIPR-SPEC-0064-perl-fact-packet-contract.md.
ADR: none; existing producer, output and policy owners remain authoritative.
Plan item: Preserve supported finding identities and document migration and collision limits.
Governing issue or accepted claim: the bounded combined-candidate continuation.
Acceptance delta (one sentence): Supported line moves retain finding fingerprints, separate Perl changes remain separate policy keys, and file/rule boundaries and unsupported identity limits remain explicit.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): fix/sarif-fingerprint-line; 444d675.
Stack parent or prerequisite PR (if any): existing #9993 at 15faca9 supplies the unchanged path implementation; its original source and protected landing remain with that owner. Shared qualification prerequisite #10586 remains separately owned.
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 existing fingerprint candidate remains selected; the native-path prerequisite remains canonical for its claim; no rival implementation or losing candidate is created.

Implementation and evidence

  • Named-owner Perl native IDs frame file, unique known owner kind/package/name, behavior hint, opaque changed-text digest and missing/null/value observable state. Full-packet assignment and source-order ordinals distinguish co-occurring identical payloads. Missing or ambiguous facts use a separate location-bound fallback. Canonical gap identity is unchanged.
  • Validated packet, real source/diff/currentness, public analysis and SARIF rendering feed the actual policy reader. The exact baseline key survives; exactly the second change is new; shifts before/within the owner move locations without rekeying. Native suppression removes only the intended key. Unmatched legacy selectors stay unapplied with a visible warning.
  • The accepted host-aware raw-path helper preserves literal Unix backslashes before URI encoding and fingerprint construction. The composed URI tests pin the exact final path component without the removed display-line suffix; URI expectations, actual-file controls, and full/partial fingerprint uniqueness are retained.
  • The 12-file consumer control covers native backslash/directory names, percent versus encoded-looking text, Unicode, quotes/newlines, spaces, fragments and queries. Literal URI values decode to the exact original filename bytes and marker contents. Twelve keys survive policy dedup; a six-result baseline leaves exactly the other six; an identical baseline and emitted line shifts add no keys. Distinct ASCII prefixes avoid assuming that canonical Unicode spellings are different physical files on every filesystem. Separate spelling-only controls still pin both composed/decomposed Unicode URIs.
  • Both fingerprint fields agree. File/rule controls remain distinct, while offset-derived seams retain their old line-bound shape. Historical index-projection digest constants remain unchanged: a test-only view reconstructs exactly the two legacy ID fields, with material-field mutation controls for the remaining projection.

Proof identity and validation

Current combined candidate: 444d675; tree c208e6d03aeb8245f638a02e974fc160bd2814e4. Its predecessor b43ca6a combines main c8af153, fingerprint repair c2111f9, and unchanged native-path prerequisite 15faca9. Composition merged cleanly. The successor changes only three added/two removed lines in the Unix URI test to reuse one readable drive-looking filename literal, preserving both the independent literal URI oracle and the existing policy allowance.

Executed combined-head proof at b43: 44/44 SARIF tests (including the retained native-file regression), 2/2 public URI tests and 4/4 producer-policy tests pass, native exit 0. The corrected current-head URI refresh also passes 2/2. Production, SARIF-unit, policy-test, fixture and manifest bytes are unchanged by this correction, so their unaffected b43 evidence remains current; those commands are not relabeled as executions of the successor. Corrected ci-policy completed with native exit 0 and status pass at this exact head: all 31 selected paths independently match the Git diff against main c8af153, with no omissions or extra paths. The local-context gate passes with the original allowance. This local policy pass explicitly leaves workspace Clippy to hosted qualification. The classified policy failure and bounded repair retain the original b43 failure.

Observed GitHub merge subject bb4a8ad has parents main c8f08a0 and this head, tree 3d3ff2af26667117ff4c51e1dff3c8cf11d099ab. It was inspected, not separately executed locally. Its 19 additional paths concern accepted corpus tags, MCP descriptions and scoreboard data; all material identity/path/policy-control/manifests/toolchain bytes match the local candidate. The earlier b43 merge subject bc2a9a7 exactly matched its executed tree 5b3d6d4e44a1f086fded89a1b28045d847e37348.

The b43 wheel build and clean pip/uv consumer jobs completed successfully with an actual b43 checkout; this is packaging evidence for that source, not native Windows or required Rust qualification. Its completed advisory wrapper records incomplete proof evidence. The advisory normalization-split source claim is refuted: the same raw file string feeds the location and both fingerprints. The current continuation receipt retains the live checks and dependency state. No required qualification has run for the successor; skipped checks and historical green runs do not qualify it.

Historical controls retain their source identities: the pre-repair producer-to-policy assertion reached successful ingestion/currentness and failed because two findings became one policy key. At c2111f9 the retained native-file control failed because two native files shared one fingerprint. Prior 166-test Perl and three-test producer-policy passes, ci-policy and 664-fixture golden results remain evidence for their recorded subjects. The former mocks compilation defect was repaired by #10506, which is included in this composition; it is not the current-main blocker.

Compatibility and limits

Old finding SARIF fingerprints change once even at unchanged locations. The policy reader compares opaque strings without migration aliases: review and refresh the baseline. Old Perl finding-ID suppression selectors require reviewed replacement; ambiguous legacy selectors remain unapplied with a warning. Rollback must review baselines and selectors for the chosen format.

Contract-derived packet fixtures do not qualify a live exporter. Full SHA-256 framing does not authenticate opaque producer digests or remove their collision limits. Changing indistinguishable-copy membership/order can reassign ordinals. Fallback and unowned Perl IDs and repo seams remain location-bound. Existing short-digest limits remain. Non-UTF-8 filenames, upstream seam byte loss and universal collision freedom are outside this repair. No live code-scanning migration or unexecuted native-platform coverage is claimed.

Changelog: the existing SARIF fingerprint Changed fragment and native filename Fixed fragment in changelog.d are retained, each using its canonical section marker, bullet and trailing repository reference. The downstream-only tests need no separate entry. No workflow-policy or gate behavior changes are introduced by this PR's delta against its integration basis.

Continuation

Owner / governing claim: this existing SARIF fingerprint candidate and the combined-candidate continuation linked above.
Candidate: exact head, tree and integration basis above; Draft.
Review: independent exact-head inspection record was published and read back at 444d675 as REVIEW_INCOMPLETE. No remaining candidate source or test-oracle issue was found; the normalization-split claim is refuted. Native Windows, the shared prerequisite, required hosted qualification and final landing judgment remain missing. REVIEW_READY is not claimed.
Validation: focused combined-tree execution and current remote checks are retained with their exact subjects; required hosted qualification remains missing.
Dependency: #9993 retains native-path source and landing ownership; #10586 retains the shared executable-lifetime repair. Native Windows execution of the composed URI target remains required.
Next: verify the native-path landing route and exact native Windows result, verify #10586's repair in the actual hosted merge subject, complete the Ready boundary and request required qualification once. Inspect terminal results and actual checkout, publish and read back exact-head REVIEW_READY, then separately verify current head/gates before protected expected-head squash merge.

EffortlessSteven and others added 6 commits October 23, 2026 08:32
…identity

finding.id and seam ids are content-addressed and line-stable so
suppressions follow code moves, but the GitHub-facing fingerprint added
the raw line back (ruleId|finding_id|probe_id|file|line). Cross-run code
scanning dedup consumes that fingerprint, so every pure line move minted
a new alert and orphaned the old suppression. Drop |line from both
finding and seam fingerprints and record the reasoning in
RIPR-SPEC-0008.

Two in-crate pins encoded the old shape and are updated to the new
contract: the exact-string expectation in
sarif_location_and_fingerprints_ignore_root_spelling (now ends at the
unencoded path, no |88) and the trailing-pipe substring in
finding_fingerprint_hashes_unencoded_path_while_uri_is_encoded (now
ends_with the unencoded path). No other repo surface pins fingerprint
text (repo-wide sweep; the xtask policy consumer treats fingerprints as
opaque strings).

Issue #10517.

Co-authored-by: Claude <noreply@anthropic.com>
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 54 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 150 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 2bb5ab78-dfc0-4e4f-a138-64f53b77176b
Commits

Reviewing files that changed from the base of the PR and between 6492b7a and 77faff3.

Files selected for processing: 31
  • .github/workflows/ci.yml
  • .ripr/traceability.d/10517-sarif-fingerprint-identity.toml
  • changelog.d/10517-sarif-fingerprint-line.md
  • crates/ripr/src/analysis/language/perl/fact_index_projection_tests.rs
  • crates/ripr/src/analysis/language/perl/identity.rs
  • crates/ripr/src/analysis/language/perl/identity_tests.rs
  • crates/ripr/src/analysis/language/perl/mod.rs
  • crates/ripr/src/analysis/language/perl/tests.rs
  • crates/ripr/src/output/sarif.rs
  • crates/ripr/tests/sarif_uri_identity.rs
  • docs/CI.md
  • docs/OUTPUT_SCHEMA.md
  • docs/specs/RIPR-SPEC-0008-sarif-ci-policy.md
  • docs/specs/RIPR-SPEC-0064-perl-fact-packet-contract.md
  • fixtures/perl_packet_contract_migration/sarif_identity/SPEC.md
  • fixtures/perl_packet_contract_migration/sarif_identity/baseline_one/diff.patch
  • fixtures/perl_packet_contract_migration/sarif_identity/baseline_one/packet.json
  • fixtures/perl_packet_contract_migration/sarif_identity/baseline_one/source.pm
  • fixtures/perl_packet_contract_migration/sarif_identity/current_two/diff.patch
  • fixtures/perl_packet_contract_migration/sarif_identity/current_two/packet.json
  • fixtures/perl_packet_contract_migration/sarif_identity/current_two/source.pm
  • fixtures/perl_packet_contract_migration/sarif_identity/shifted_body/diff.patch
  • fixtures/perl_packet_contract_migration/sarif_identity/shifted_body/packet.json
  • fixtures/perl_packet_contract_migration/sarif_identity/shifted_body/source.pm
  • fixtures/perl_packet_contract_migration/sarif_identity/shifted_owner/diff.patch
  • fixtures/perl_packet_contract_migration/sarif_identity/shifted_owner/packet.json
  • fixtures/perl_packet_contract_migration/sarif_identity/shifted_owner/source.pm
  • tools/repo-policy/tests/ci_leaf_contract.rs
  • xtask/Cargo.toml
  • xtask/src/reports/sarif.rs
  • xtask/src/reports/sarif_identity_tests.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Devin Review

Comment thread crates/ripr/src/output/sarif.rs Resolved

Copy link
Copy Markdown
Member Author

Independent source audit by verify_sarif_collision_scope confirms unresolved finding 4373367161 at exact head dbff223 / base 494a296. PerlAdapter's real validated packet/currentness path iterates changes, but finding/probe identity uses file, owner declaration line and behavior hint. Distinct change lines are location-only. Removing that final discriminator gives equal SARIF keys, and xtask's rule/fingerprint dedup plus baseline exclusion can hide a second same-owner/same-hint/same-class change. This is source-confirmed consumer impact, not a live GitHub ingestion test.

Additional limitation: owner declaration line remains embedded in those IDs, so removing probe.location.line alone does not establish Perl line stability. Please repair the identity/disambiguation in this existing lane and add producer-backed validated packet + real diff/currentness → SARIF → policy-reader controls: two distinct changes remain two keys; baseline-one/current-two reports one new result; pure shifts both within the owner and before its declaration preserve identities while physical locations update. Preserve both fingerprint fields, seam controls, root/unencoded-path invariants and existing suppression/fallback behavior. Existing spelling-only tests cannot prove these properties. No duplicate implementation or CI was started; keep the current finding unresolved until the repaired source and discriminating controls are reviewed.

The third pin encoding the old trailing |88 line segment; the other
fingerprint assertions on this branch already carry the new shape.

Co-authored-by: Claude <noreply@anthropic.com>
@EffortlessSteven
EffortlessSteven marked this pull request as draft October 26, 2026 04:11

EffortlessSteven commented Oct 26, 2026 •

Copy link
Copy Markdown
Member Author

Continuation claim for the existing SARIF fingerprint candidate fix/sarif-fingerprint-line, starting at ae8f45264a31412d77a97290df50b5a7e2740e2e. This continuation owns one bounded producer-identity, consumer-proof and compatibility repair wave on this PR; no competing candidate is being created.

Confirmed source findings:

  • Perl finding/probe identity uses file, owner declaration line and behavior hint. Removing the final SARIF location discriminator collapses separate same-owner/same-hint/same-class changes; policy deduplication and baseline exclusion can hide a second result. A producer-to-policy control reached its intended assertion after validated ingestion/currentness: two findings became one policy key instead of two. This is local behavioral evidence, not live code-scanning ingestion.
  • Seam IDs include normalized byte offsets. Their existing location-bound fingerprint contract must be retained rather than described as universally line-stable.
  • The current SARIF path normalizer aliases Unix literal-backslash filenames with nested paths. Dropping the line can additionally collapse results at different physical lines when their native IDs coincide. Existing PR fix(sarif): preserve native Unix filename identity #9993 owns this UTF-8 native filename repair; its source custody is preserved. The cross-file control and current integration must include that repair before final acceptance. Its fingerprint tests also need reconciliation with the line-free finding format.

The composed repair must preserve consistent full/partial fingerprints, distinct supported file/rule identities, exact native suppression selectors with reviewed legacy migration, and explicit fallback, duplicate-payload and producer-digest limits. Draft is retained and the old merge-ready request label has been removed. Existing successful qualification remains evidence for its original tested subject, not refutation of these defects. No new qualification is requested while the native path prerequisite remains unresolved.

Next: publish the coherent repaired candidate with its discriminating controls, complete independent exact-head review and affected local proof, then verify the native path prerequisite in the actual integration subject before requesting selected-head qualification and protected merge.

Frame named-owner packet facts into native finding IDs while retaining explicit location fallbacks and exact suppression matching. Restore the prior seam fingerprint shape and document baseline, selector and producer-digest limits. Add producer-to-policy controls and retain a failing native Unix filename regression for the existing path repair prerequisite.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REPAIR_REQUIRED at c2111f9.

Blocking source finding: crates/ripr/src/output/sarif.rs::normalize_path aliases Unix literal-backslash filenames with nested paths. With equal native finding/probe IDs at different emitted startLine values, removing the line suffix now makes their fingerprints equal. The URI/path alias is inherited; losing that fingerprint discriminator is worsened by this candidate. The retained sarif_finding_identity_keeps_distinct_native_unix_filenames control creates distinct readable native files and observes one fingerprint where two are required. It is a renderer contract control, not analyzer-derived line provenance. Preserve the existing native filename repair; do not qualify or merge this head before its repair and fingerprint expectation reconciliation are verified in the actual integration subject.

Inspected: native Perl identity construction and projection; full-packet/source-order duplicate handling; stable/fallback framing and missing/null/value observables; exact suppression matching and stale-selector migration; contract-derived packet/source/diff fixtures through public analysis, SARIF rendering and the real baseline policy reader; file/rule/seam controls; historical index-projection adapter, docs and traceability. No additional source or test-oracle defect found. The historical adapter retains original digest constants and every non-ID projection field, with literal and material-field negative controls. No production legacy aliases or weakened gates were introduced.

Observed validation: the pre-repair producer-to-policy control reaches its intended two-versus-one failure after ingestion/currentness; three repaired policy tests pass on a current-main composition whose identity helper, policy tests and fixture bytes match this head. Final source reports 166 Perl tests passed; SARIF has 43 passed and the one named native-file control failed. Existing successful hosted qualification retains its original subject and is not new-head proof.

Residual limits: opaque producer digests retain trust/collision limits; indistinguishable-copy membership/order can change ordinals; fallback/unowned Perl findings and seams remain location-bound; fixtures do not qualify the live exporter or code-scanning ingestion. Missing evidence: delivered native-path prerequisite, refreshed combined native-file controls, required qualification for this head, and final merge clearance. The Perl collision and seam overclaim are repaired within these stated limits; this review does not clear merge.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REPAIR_REQUIRED remains in force at c2111f9. This inline finding retains the separate native-filename blocker after the repaired Perl thread was addressed; it is not merge clearance.

Comment thread crates/ripr/src/output/sarif.rs Resolved

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decision

  • Needs verification checks before upstream.

Verification questions

  • Confirm the shifted-owner fixture leaves the Perl owner declaration at line 3 in both current_two and shifted_owner, so it does not prove owner-line movement preserves identity.
  • Confirm path normalization remains an explicitly bounded residual risk: the Unix literal-backslash case is covered, but broader native filename aliasing is not established.
  • Confirm the renderer retains a native Unix filename alias risk: literal src/a\b.rs and nested src/a/b.rs may normalize to one file segment after line removal.

Refuted

  • Line-free SARIF fingerprints could expose a stale active-view region or stale backing-store length.; refuted because: No shared mutable view or length snapshot exists in the changed code. Fingerprints use copied String/Path-derived values; physical startLine is read from the current finding, and policy parsing builds fresh owned values each run.
  • The fingerprint/identity changes introduce a worker-handoff, asynchronous capture, GC, detach, or transfer-boundary defect.; refuted because: The changed implementation and tests are synchronous Rust; values are cloned or owned locally, temporary fixture paths use RAII cleanup, and no JS-backed or transferable object crosses an asynchronous boundary.
  • The fingerprint migration requires every seam fingerprint to become line-stable too.; refuted because: The diff deliberately retains the seam fingerprint's trailing line because seam IDs include normalized byte offsets; the renderer and specification state this narrower contract.

Parked follow-ups

  • Identity hashes cover consumed packet facts but do not authenticate producer digests or prove universal collision freedom.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.
  • The packet fixture proves local ingestion/currentness and policy behavior, but not live GitHub code-scanning ingestion or producer digest authenticity.

Copy link
Copy Markdown
Member Author

Source-backed disposition of the owner-line verification question at c2111f9: the committed shifted-owner fixture moves the declaration from line 3 to line 5.

  • current_two/packet.json: its sole sub owner has range.start_line = 3; source.pm contains sub discount { at line 3.
  • shifted_owner/packet.json: the owner has range.start_line = 5, with a changed owner token; source.pm contains that declaration at line 5. Its changed returns move from lines 5/7 to 7/9.
  • shifted_body intentionally retains owner line 3 while moving the changed returns to 7/9, covering movement within the owner separately.

The producer-to-policy tests passed with these exact committed fixture bytes after normal ingestion, source-digest freshness and candidate-currentness checks. The owner-line question is therefore refuted for this head. These remain contract-derived packet fixtures, not live exporter qualification.

The native filename risk remains valid and is retained as an unresolved source finding. Overall disposition stays REPAIR_REQUIRED.

@EffortlessSteven EffortlessSteven changed the title fix(sarif): drop the line from fingerprints so line moves keep alert identity fix(sarif): preserve supported finding identity across line moves Oct 26, 2026

EffortlessSteven commented Oct 26, 2026 •

Copy link
Copy Markdown
Member Author

Owner / governing claim: the existing SARIF fingerprint continuation; #9993 remains the canonical native-path source owner.
Published candidate: b43ca6ac5b3493b42bab5c3a6da3584c14ef7011, tree 5b3d6d4e44a1f086fded89a1b28045d847e37348, combining main c8af153c1a5aae07d6abcf7f7a799cdf6992996c, prior fingerprint repair and unchanged #9993 source 15faca9252d323f2a48be85bb978f91cc5018e2e. Observed GitHub merge bc2a9a7041e6302cfc6dbea44cd00a298865b70f has exactly that tree.
Local correction: 444d6757e0a27933b03dab0f5392a4525c9317b9, tree c208e6d03aeb8245f638a02e974fc160bd2814e4; one Unix URI-test literal is reused for input/expected raw component, preserving the literal URI oracle and the existing allowance. The candidate-only policy classification was established against a passing exact-main gate before correction.
Review: independent inspection found no remaining source/oracle issue in the corrected head. Final disposition remains REVIEW_INCOMPLETE; the correction is not yet published. Both repaired source threads have accepted replies and resolved readbacks.
Validation: b43 passes 44/44 SARIF, 2/2 URI and 4/4 producer-policy controls. Corrected-head URI refresh passes 2/2, exit 0; production, SARIF-unit, policy-test and fixture bytes are unchanged. The corrected local policy gate is running. b43 wheel build and pip/uv consumer jobs completed successfully; those are packaging evidence, not native Windows or required Rust qualification. The existing b43 advisory job remains active and will be consumed before successor publication.
Dependency: #9993 retains its source and protected landing route; native Windows execution of the composed URI target remains missing. #10586 retains the unchanged shared executable-lifetime prerequisite. No affected hosted qualification is requested.
Next: inspect the terminal corrected policy report and existing advisory result, publish the single corrected successor, then read back its head/review/checks. Verify native Windows and the shared repair in the actual hosted integration subject before Ready or one qualification request. Protected merge requires terminal required proof and accepted exact-head REVIEW_READY. Draft is retained; no merge requested.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decision

  • Needs verification checks before upstream.

Verification questions

  • Confirm the 12-path consumer control reuses one opaque producer identity and therefore proves renderer/path contribution rather than independent producer identity uniqueness across filenames.
  • Confirm the shifted-owner producer fixture changes owner ID and owner range together, so it proves supported combined movement but not owner-geometry-only stability with volatile owner tokens held constant.
  • Confirm the 12-file policy oracle varies renderer paths while reusing one opaque producer identity, so it proves path contribution and policy deduplication rather than independent producer semantic uniqueness.
  • Confirm the shifted-owner oracle changes owner geometry and owner token/facts together, so it does not isolate semantic-owner identity under geometry-only owner movement.
  • Confirm the shifted-owner control does not isolate owner-geometry-only movement because the fixture changes owner range, owner token, and change token facts together.

Parked follow-ups

  • Native Windows filename/path behavior remains a qualification gap rather than a demonstrated source defect.

Evidence gaps

  • Native Windows execution remains unavailable, so Windows path-separator and filename-boundary behavior is not runtime-qualified in this lane.
  • Model proof intent was rejected by deterministic validation.
  • The changed workflow invokes a focused Cargo test but lacks a zizmor receipt; workflow hardening remains incompletely evidenced rather than a demonstrated exploit.
  • The PR's strongest claims remain broader than the available execution evidence.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decision

  • Needs verification checks before upstream.

Verification questions

  • Confirm the shifted-owner oracle changes owner geometry and owner facts together, so it does not isolate owner-geometry-only movement.
  • Confirm the shifted-owner producer fixture changes owner ID/range/facts together, so its stable-key assertion does not isolate geometry-only owner movement.
  • Confirm the named-owner unit test claims geometry and volatile packet tokens cannot rekey identity, but it mutates owner_id and change_id together with ranges, leaving owner-geometry-only invariance unproved.
  • Confirm the 12-file control is explicitly renderer/policy.
  • Confirm the shifted-owner fixture changes owner token, owner geometry, and change tokens together, so it proves supported combined movement but not geometry-only movement with volatile tokens held constant.

Parked follow-ups

  • The 12-file native-path control reuses one opaque producer identity, so it proves renderer/path contribution but not independent producer identity uniqueness.
  • Native filename handling has distinct Unix and Windows coverage, but Windows behavior remains a qualification gap.
  • Perl producer identity and SARIF consumer identity have separate contracts; the 12-file policy control varies renderer paths while reusing one opaque producer identity.
  • Security-relevant identity limits are explicit: opaque producer digests retain collision/trust limits, and native Windows behavior is not qualified in this packet.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.
  • Native Windows execution and required hosted qualification are absent; Unix controls cannot establish Windows separator and filename behavior in this exact composition.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decision

  • Needs verification checks before upstream.

Verification questions

  • Confirm duplicate Perl payloads with identical source coordinates have no stable tie-breaker beyond change_id, so packet-order changes can reassign ordinals.
  • Confirm the shifted-owner producer fixture changes owner_id, owner geometry, change IDs, and change geometry together; it proves supported combined movement, not owner-geometry-only invariance.

Evidence gaps

  • The feature-gated producer-to-policy suite lacks an exact-head successful cargo-test receipt.
  • Native Windows path behavior and full hosted qualification remain unverified in the available packet.
  • Native Windows behavior and current-head cargo execution are qualification gaps, not demonstrated test-oracle defects.
  • Model proof intent was rejected by deterministic validation.
  • Native Windows path behavior and current-head test execution remain qualification gaps, not demonstrated memory-safety failures.

Parked follow-ups

  • The 12-file policy control proves renderer/path contribution and policy deduplication, not independent producer identity uniqueness, because every synthetic finding reuses one opaque producer identity.
  • Native Windows filename behavior remains a qualification gap; the changed Unix literal-backslash control is cfg(unix), while Windows only pins separator conversion.
  • The 12-file control exercises renderer and policy path contribution, not independent producer identity uniqueness; its same opaque identity is intentional and separately bounded by producer tests.
  • The 12-file policy control varies renderer paths while reusing one opaque producer identity, so it proves path contribution and policy deduplication rather than independent producer-path uniqueness.

Copy link
Copy Markdown
Member Author

Review of record, head 19137158e8162c2d53d9e697e06b5a30ed8ecaa5 (main merged in over d8dec44). Basis: the prior exact-head independent inspection (review 5648660139, no remaining source/oracle defect), all 4 review threads (each repaired or refuted with evidence, all resolved), and the dependency state re-read just now: #9993 (native UTF-8 path repair, incorporated unchanged) is MERGED and #10586 is CLOSED by merged #10616. I did not re-derive the 31-file diff in this pass.

Angles: correctness (line-free finding fingerprint, Perl named-owner native IDs with full-packet ordinals, location-bound fallback for missing/ambiguous facts), tests (44/44 SARIF, 2/2 URI, 4/4 producer-policy at the combined head; 12-file consumer control through the real baseline-policy reader), contract (compat note: old fingerprints change once, baselines need review; no migration aliases), and platform (cfg(unix) distinctness control documented in RIPR-SPEC-0008; Windows separator conversion pinned by sarif_uri_identity; the Perl identity xtask controls are opt-in via the perl-identity feature so the shared test graph keeps the shipped feature set).
Open risk: native Windows execution of the composed URI target (sarif_uri_identity) is not established by the default Windows subset; hosted Result is the gate for the rest.
Findings: none open. Merge on a green Ripr Rust Small Result for this exact head; otherwise leave open.


Generated by Claude Code

@EffortlessSteven EffortlessSteven left a comment •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Independent review (fresh-context reviewer, head 259b0ba): REVIEW_INCOMPLETE

Inspected:

  • Delta from d72999f to 259b0ba: five candidate-owned commits (ea0e6bf "Update SARIF fold test fingerprint; list identity step in CI docs", d799f7c "count the SARIF identity cargo step in the native-failure denominator", 7068174 "exclude SARIF identity step from release-proof predecessor comparison", c05e60d "align seam identity test with line-independent seam fingerprints", 259b0ba "narrow PR-owned step allowance to exact job-scoped match with negative control"). The branch has not absorbed current main (main tip fa621a3 is not an ancestor of this head), so the candidate-owned range was isolated with git log <old>..<head> --not <main-tip> and every candidate-touched path was byte-compared at both heads. Load-bearing sources read at this head: crates/ripr/src/output/sarif.rs (the two identity tests and the fold test), tools/repo-policy/tests/ci_leaf_contract.rs, docs/CI.md, docs/specs/RIPR-SPEC-0008-sarif-ci-policy.md.
  • Prior findings (review 5721560305, bound to d72999f): the BLOCKING finding is REPAIRED and verified at this head. The earlier review showed crates/ripr/src/output/sarif.rs:3228-3231 still expecting the line-suffixed fingerprint ...|src/pricing.rs|88, which failed the "Rust-only feature lane" on that head. At this head the fold test same_line_same_class_findings_fold_into_one_alert_that_names_the_rest asserts crates/ripr/src/output/sarif.rs:3605-3609: "ripr.finding.weakly_exposed|finding:first|probe:src/pricing.rs:88:first|src/pricing.rs" - the trailing |88 line suffix is gone while the probe position stays in the probe segment. The earlier review's second item - the Rust gates job failing the user-text ceiling (discriminator in golden-human 3278 vs 3274, seam 596 vs 595) - is no longer reproducing: "Ripr Rust Small on GitHub Hosted / Rust gates" is success at this head. The earlier review's nit (docs/CI.md omitted the new step) is REPAIRED: docs/CI.md:958 now lists cargo test -p xtask --features perl-identity reports::sarif::identity_tests in the Perl lane block.
  • New in this delta: the CI-policy allowance was tightened. The earlier shape excluded any run block merely containing the substring reports::sarif::identity_tests; at this head tools/repo-policy/tests/ci_leaf_contract.rs carries an exact pair allowlist PR_OWNED_STEPS: &[(&str, &str)] of (job name, whole run block) and a two-sided negative control pr_owned_step_allowance_is_exact_and_job_scoped that shows an altered block (step + " --extra") is NOT excluded and that the same block under a different job name is NOT excluded. That is a real discriminator against an over-broad allowance - the previous substring form would have swallowed the altered block.
  • Spec/code parity is maintained for the renamed test: docs/specs/RIPR-SPEC-0008-sarif-ci-policy.md:368 now names sarif_seam_identity_is_line_independent_but_file_and_rule_bound.

Blocking:

  • None found in the candidate's own delta.

Non-blocking:

  • The seam identity contract test was re-pointed, not merely renamed. It was sarif_seam_identity_retains_its_location_bound_contract asserting assert_ne! on a line move ("offset-based seams are explicitly not line-stable"); at this head it is sarif_seam_identity_is_line_independent_but_file_and_rule_bound asserting assert_eq! on a line move, because main's #11345 changed the shipped identity to rule|file|identity_hash|ordinal. The re-point is correct against current main, and the test keeps a three-way shape: a pure line move keeps the fingerprint (:1761-1765), a different file separates it (:1770-1774), and a different rule class separates it (:1775-1779). One assertion is weaker than before it: the fingerprint is now checked only by prefix ripr.seam.weakly_expired|src/pricing.rs|-style prefix and a |0 suffix (:1750-1754), where the earlier test pinned the whole string including the identity hash. A fingerprint carrying a wrong identity hash would still satisfy the current shape assertion. Pinning the middle segment against base_entry.seam.id().as_str() would close that without changing the shipped behavior.
  • The one red hosted check at this head belongs to a superseded run and is not attributable to this candidate. "Ripr Rust Small Result" (job 124659808081) failed at step 2 "Recheck initially admitted eligibility" with ELIGIBILITY_RESULT: failure; that job belongs to merge-ready request run 41240234988, which is cancelled, and run 41242653906 for the same head 259b0ba superseded it. The eligibility step's own design states that a newer run of the workflow for the same head revokes the older invocation, so the red is the intended revocation of a stale request, not a source failure. The live run's substantive lanes are green so far: "Ripr Rust Small on GitHub Hosted / Rust gates" success, "Rust-only feature lane" success, "Admit PR Candidate" success.
  • Traceability is updated for the renamed test (.ripr/traceability.d/10517-sarif-fingerprint-identity.toml, one line) and the spec test list matches the renamed symbol.

Not run:

  • No cargo, cargo xtask, clippy or golden execution: this host has no Rust toolchain (cargo/rustc/rustup absent from PATH) and the working tree is shared with concurrent agents. Every source value above was read from the exact head SHA through git and the GitHub contents API; every test outcome quoted was read from the hosted job record, not inferred.
  • The four "Ripr Rust Small tests on GitHub Hosted / Rust tests shard N of 4" jobs for the live run 41242653906 have since reported: "Ripr Rust Small on GitHub Hosted / Rust gates" success, shards 2 and 4 success, shard 1 failure, shard 3 still running. The shard-1 failure is NOT attributable to this candidate: the nextest junit for that shard (artifact 13059731347) names exactly one failing case, analysis::language::python::guard_activation::tests::compare_literal_values_fails_open_on_undecoded_literals, panicking at crates/ripr/src/analysis/language/python/guard_activation.rs:1436 with "left: None, right: Some(true)" - the same test at the same line that the main rust-tests-junit run is failing at main tip fa621a3 - and this delta candidate-owned change touches no Python analyzer code at all. The workspace Rust test surface is therefore green apart from a base-inherited failure; shard 3 is still running, which is why the disposition stays REVIEW_INCOMPLETE rather than REVIEW_READY.
  • I did not run or read the reports::sarif::identity_tests xtask feature gate itself (it needs --features perl-identity); its step is present in the workflow and its allowance is now exact-match pinned, but its execution is only proven by the hosted Rust gates job.

Reviewed by an independent Mavis review agent on behalf of the maintainer; bound to head 259b0ba3c958427bec55de0be0f64f2f39e48b15. Not an approval.

@EffortlessSteven
EffortlessSteven merged commit d32f521 into main Nov 1, 2026
62 checks passed
@EffortlessSteven
EffortlessSteven deleted the fix/sarif-fingerprint-line branch November 1, 2026 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants