Repository navigation
fix(evidence): retain source file across colliding assertion lines - #7833
EffortlessSteven wants to merge 20 commits into
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Important Review skippedToo many files! This PR contains 513 files, which is 363 over the limit of 150. To get a review, reduce the PR to 150 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to Team to raise the limit. Usage-priced reviews support at most 300 files. ⚙️ Run configuration
📒 Files selected for processing: 513
You can disable this status message by setting the
Comment |
There was a problem hiding this comment.
Decision
- Needs one verification check before upstream.
Verification questions
- Confirm sort+dedup key extension covers line/text/value/context and source_file, so per-file identical values stay distinct under the new identity-aware diff order (sort key is lexicographic, source_file appended last).
Refuted
- Box::from(slice) allocation failure on non-UTF8 source paths could silently drop source_file and regress line-collision identity; refuted because: attach_test_source only invokes stable_path_text on a &Path and assigns to Option; no Box<[u8]>::from slice conversion exists on this path, and the native-byte test asserts distinct serialized strings.
Parked follow-ups
- RIPR-SPEC-0158 and OUTPUT_SCHEMA.md limit source_file to Option with skip_serializing_if=Option::is_none; legacy facts without the field deserialize to None and round-trip unchanged. A future schema bump is not required.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Independent post-handoff review: REPAIR_REQUIRED. One verified source-identity defect; keep Draft.
Reviewed head: 73858a3882f932cd13f80c3e4907bbf3b55e8c26
Reviewed tree: 2618bb7f12688fc6f12b51767aa852aa437fbca1
Comparison/tested base: f9f30d56c8ae1cd5911004b35a8ae86a07ebed30
Observed main/PR base: ff4a2fcd6fac21a93b8fb04f1b0befc80311a601
Head read back unchanged before publication. Linux/Rust 1.95.0, reviewer-owned detached checkout; submitted branch untouched.
Blocking finding: the new source-aware deduplication uses a display encoding that merges native Unix backslashes with directory separators. See the inline repair packet. A real three-test Rust fixture compiles and passes, while the exact-head public API loses one file-distinct equal assertion fact. This is representation loss, not an oracle/classification finding.
Inspected owners and contracts: full 390-file change inventory; activation producer and run-scoped memo; same-file helper widening; derived-value constructors; ValueFact serde/equality; sort/dedup; JSON shared assertion-text/provenance fallback and both value arrays; SARIF projection; shared 32-value cap; stable native-path encoder/display consumers; schema, output docs/spec, traceability and reason records. Derived facts remain unsourced; source metadata supplies no admission authority. Sort keys and dedup keys otherwise agree. The public Rust struct-literal compatibility change is explicitly documented; absent legacy fields deserialize to None.
Independent golden semantic audit: recursively removing only source_file makes all 174 metadata-only existing JSON fixtures equal to base. The sole other existing JSON fixture, proximity_name_oracle_not_credited, adds precisely the line-6 enum row from the second of tests/owner_named.rs and tests/variants.rs, in both value arrays of each finding, plus one repeated source-value evidence line per finding. Removing only those exact duplicate rows/lines after stripping metadata reproduces each base finding completely: classes, stages, confidence/severity, oracle attribution, missing discriminators and repair advice remain equal. Its human change is only the disclosed detail count, 9 -> 10. All other existing human files are unchanged. All 1,620 source_file records in changed expected reports resolve to physical input files; 176 changed reason records cover the existing refreshes and new fixture. No broad classification churn was accepted.
Observed local execution:
- Exact-head public provenance integration tests: 6 pass, zero ignored (includes both JSON arrays, SARIF parity, same-line/equal-text identity, rename, repeat/relocation and legacy serde).
- Activation unit selection: 62 pass, zero ignored.
- SARIF source/cap selection: 1 pass, zero ignored.
cargo xtask check-output-contracts: pass; new collision fixture also validates against the checked schema with zero errors.- Additional independently compiled controls linked to the exact-head library: compiling decoy-assertion removal preserves owner source and all RIPR stages; computed boundary origins remain None; a quoted/percent/newline native filename compiles and survives JSON/SARIF. 3 pass.
- Unix backslash-versus-directory control: fixture 3 runtime tests pass; public provenance assertion fails, exit 101, with only two sources instead of the required owner plus two distinct test files.
Integration/currentness: local composition with recorded main is conflict-free, tree a8fdef488dde37505d7307f4109440676904d6e7; this is textual composition, not combined execution. #7809 has advanced from its issue-body handoff head 03cc959e to live head 563efcaeb7e327cdfb0a79626914bfd6f55a1467. The earlier clean composition is superseded: current composition exits 1 with a conflict in fixtures/boundary_gap/expected/CHANGELOG.md. Its full/sharded/compact cache generations remain 1.67/0.73/0.73, with no competing generation edit from this PR. Existing caches bind analyzer build identity to commit/source digest; legacy ValueFact defaults remain unknown. Preserve both candidates and reconcile that reason-record conflict during later composition.
Limits: full corpus regeneration, check-fast/precommit and downstream UB runtime receipts remain reported author evidence, not independently replayed here. Hosted checks were inspected as 26 listed checks with running/queued/skipped lanes; no all-green or required-matrix qualification claim. Native Windows, composed-tree execution, full workspace suite and consumer adoption are unestablished. No thread resolution, Ready, merge, release or deployment action was taken. Local control sources, logs and audit are retained in the reviewer executor; they are not hosted artifacts.
| return; | ||
| } | ||
| for fact in facts { | ||
| fact.source_file = Some(crate::analysis::stable_path_text(source_file).replace('\\', "/")); |
There was a problem hiding this comment.
[P1] Preserve native file identity before source-aware deduplication
Failure mode: On Unix, src/odd\\receipt.rs (a backslash inside one filename) and src/odd/receipt.rs (a directory plus filename) are distinct legal files. stable_path_text already replaces backslashes with slashes, and this helper retains that display text as identity. Equal line/text/value/context facts then collapse in sort_value_facts; JSON/SARIF report the directory path for both origins.
Verified against this exact head: an independent public-path fixture has the owner test and identical line-12 status assertions in those two files, with distinct related test names. The backslash file is selected with #[path = "odd\\\\receipt.rs"]; the nested file is an ordinary module. cargo test --offline compiles and passes all three runtime tests. The public API retains sources ["src/lib.rs", "src/odd/receipt.rs"], rather than three file-distinct facts; the independent assertion fails with exit 101. Classification remains weak.
Why here: #7805 and the new RIPR-SPEC-0158 contract require file/line/source/value/context identity to preserve equal assertions across distinct files. The shared encoder's existing display limitation becomes actual evidence loss when used as the new deduplication identity.
Fix direction: retain an injective native source identity before normalization (for example, reserve an escaped literal Unix backslash while preserving Windows separator handling and existing percent/non-UTF8 distinctions). Ensure the JSON and SARIF projections preserve that encoded identity; simply removing this final replace is insufficient because the shared encoder already normalizes it. Avoid changing unrelated analyzer admission.
Validation: add a public regression with both real files, equal assertion text and line, plus the compiling runtime control; require both distinct origins to survive sorting/dedup and both JSON arrays/SARIF. Retain the existing percent/non-UTF8, relocation, unknown-origin, legacy and cap controls and audit the resulting golden delta.
Confidence: High; compiled fixture and exact-head library execution reproduce the loss.
|
Repair handoff for #7838 / #7805: CANDIDATE_REPAIRED; PR_IN_FLIGHT, keep Draft. Exact published head: The producer now uses stable native source encoding before display normalization. Literal Unix backslashes use Discriminating proof: before repair, the permanent public regression recorded 8 passes/2 intended identity/removal failures, while its real Cargo fixture compiled and passed all 3 runtime tests. After repair, both actual files at the same line with the same assertion survive both JSON arrays and SARIF. Removing each assertion separately removes only its own source value with stimuli retained. A rename to an unambiguous filename preserves classification, every RIPR stage, all 3 related-test oracles and repair advice. A unit collision witness retains 3 native origins from 6 same-file/different-file facts, rejecting disabled dedup; percent/non-UTF8, quoted/newline, legacy/unknown, relocation and cap controls remain. Terminal local proof on published head (Linux, Rust 1.95.0):
Frozen-main execution:
Golden audit and changelog: this repair changes no fixture expectation or reason record, so no blessing was needed. The prior independent 174 metadata-only fixture audit and precisely bounded restored-row exception remain unchanged; this pass audited only the nine-file repair delta. Continuation: parent owns fresh independent review of this exact published head, hosted qualification and lifecycle. The old P1 thread is outdated but remains unresolved for that review. Fresh discussion read found only the automated 393-file review skip, no new substantive finding. Native Windows execution, full workspace execution and hosted required-matrix qualification are not established here. Separate #7809 writer/cache generations remain untouched; its previously reported boundary_gap reason-record composition conflict is parent-owned and was not reconciled in this pass. No Ready, merge, release, deployment, gate weakening or consumer adoption. Raw commands, red/green logs and exact-object reports remain executor-local; they are not hosted artifacts. Lane-owned disposable incremental cache was released after terminal candidate checks; source, executables, both worktrees and receipts are retained for parent review. |
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- No resizable buffer, typed-array, ArrayBuffer transfer/detach or active-view State surface is touched by this diff; the previous P1 concern about native-path identity collision from #7838 is now encoded as 5C-percent on Unix and survives sort+dedup. No active-view UB found within the lane's assigned scope.
Verification questions
- Confirm two overlapping fixtures/proximity_name_oracle_not_credited keep two sourced rows for the same enum variant at line6 (tests/owner_named.rs vs tests/variants.rs); the audit notes it as intentional. Worth flagging as a documentation hint for downstream consumers parsing source_file.
Refuted
- Box::<[u8]>::from(slice) allocation failure on non-UTF8 source paths could silently drop source_file and regress identity.; refuted because: Path uses stable_source_path_text(&Path)->String which delegates byte/UTF-8 handling inside push_stable_path_text; no Box<[u8]>::from slice conversion exists on this path.
- Bound default / postMessage / structured-clone / transferable / WeakRef detaching could drop or coerce the new Option source_file across a worker boundary.; refuted because: This diff is a Rust-only static analyzer change (Option serialized via serde with skip_serializing_if); there is no JS, no Worker, no transferable, no SharedArrayBuffer, and no cross-runtime memory crossing in any touched surface. The lane's surface set is empty for this PR.
- Box::<[u8]>::from(slice) on a non-UTF8 source path could silently drop source_file under stable_path_text, regressing line-collision identity (#7838 prior concern).; refuted because: stable_source_path_text operates on the encoded String returned by stable_native_path_text, never builds a Box<[u8]> from a UTF-8 slice of native bytes; valid paths use to_string_lossy + byte escape; the native_bytes_and_reserved_percent_keep_distinct_serializable_origins unit serializes both to JSON and asserts the source_file strings differ (tests/receipt_%FF.rs vs tests/receipt_%25FF.rs). No allocation failure mode exists on this path.
- Windows native separator encoded as / (not %5C) on cfg(not(unix)); spec/OUTPUT_SCHEMA both claim %5C is reserved for literal Unix backslashes only. On a Windows run this means a directory path and a backslash filename would collide. Asymmetric to Unix native encoding.
Box::from(slice)allocation failure does not returnNone; recoverable fallback claims are dropped.
Parked follow-ups
- Sort and dedup key extension appends source_file after text; same-file dup collapse still works and cross-file equal values stay distinct. Risk only if future keys add source_file before text and break stability across consumers.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
- Late.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Independent exact-head review: REPAIR_REQUIRED. The native-path blocker from review 5512180591 is repaired, but one verified integration/evidence defect remains. Keep Draft.
Reviewed head: aca2debf718d01106d929904be644314f3a76a91
Tree: 229368f900aa09a93f71110da6fe02565e4d8833
Source base: f9f30d56c8ae1cd5911004b35a8ae86a07ebed30
Head read back unchanged before publication. Linux/Rust 1.95.0; review-owned detached labs; submitted branches untouched.
P1 — fourteen nested canonical CLI JSON reports need source-file metadata refresh. See the inline repair packet. Exact main 4711c122a0248d75807ba2e0401169a2f46743aa passes the complete discarded-matcher CLI control; composing this candidate fails it at the first registered canonical byte comparison. Independently executing all fourteen subjects shows that removing only source_file from each actual JSON reproduces its canonical report completely. This is stale representation evidence, not a classification/oracle regression. Ordinary goldens and honesty pass because they do not establish this separate byte-comparison contract.
Native repair discrimination observed: current public tests 10 pass; old production head 73858a3882f932cd13f80c3e4907bbf3b55e8c26 plus only the exact current test file (experimental tree a0defbd950f59046bd1fdbc64665202f7bc9b367) yields 8 pass/2 intended identity/removal failures, exit101. Its real Cargo fixture compiles and passes all three runtime tests. Current activation selection 63 pass, stable native/decoder selection 4 pass, SARIF/shared cap selections 3 pass. Four additional reviewer controls pass: literal-percent/backslash/directory public distinction; same-named tests in colliding native files; encoded/unknown JSON+SARIF identity with the 32-value cap and total33; real derived boundary origins remain unknown in typed facts and both public projections. Rename/removal controls retain classification, RIPR stages, related-test oracles and repair advice.
Audit and aggregate execution: all nine repair files/two commits inspected, including native encoder extraction and display consumers, producer attachment, sort/dedup identity, serde/public struct compatibility, JSON/SARIF projection, schema/spec/traceability and bounded offline process policy. Same-file duplicates still collapse; percent escapes remain distinct; metadata grants no execution/admission credit. No repair fixture expectation or reason record changed, and no blessing was performed. The original 174 metadata-only fixture audit remains attached to its original review; the bounded proximity exception is unchanged. Current check-fast passes 15 gates/393 selected paths (independently verified merge-base and selector), full precommit, honesty and dogfood pass. The first golden check exposed the documented missing local anyhow1.0.100 dependency; the exact locked fetch restored zero drift/zero fixture errors without changing pins or expectations.
Frozen integration actually executed: local commit 93fe578f54cf52eeb0fe5ec282c0a6de659df30d, parents 4711c122a0248d75807ba2e0401169a2f46743aa then this candidate; tree 35b8eb9922859be64496a2e578514a1a6d507378. Conflict-free; candidate producer/domain/render/public-test blobs and main's returned-String evidence blobs match their respective parents. Provenance10, returned-String8, CLI path10 and CLI exit3 pass; output contracts, honesty and ordinary full goldens pass with zero drift/errors. The additional discarded-matcher control fails, exit101; the same control on exact main passes.
Hosted Rust-only failure was inspected down to the assertion and checkout: GitHub merge 632015510cfbcd652eeb968710baabb21e17a8c3 has the same two parents and tree as the local composition. Its cli_smoke target records 454 pass/1 fail at the same canonical comparison. The 25 listed head check-runs contain 14 success, 10 skipped, 1 failure; no all-green qualification claim.
Current main subsequently advanced to 65acc268b60518e7099bba0e1f39d2333024c944. Its rstest fixture/owner-pin, cache-generation and workflow deltas were inspected; source-file producer/projection and discarded-matcher control/report paths are unchanged. Frozen execution above is not execution of that newer composition. #7809's separate writer, cache-generation reconciliation and known boundary_gap reason overlap remain parent-owned; no unqualified sibling was integrated.
The later automated review's proximity question is confirmed: both value arrays retain the two line6 enum rows from tests/owner_named.rs and tests/variants.rs. Its Windows collision hypothesis does not identify two valid distinct native Windows origins: backslash separates components and cannot be a literal filename character under the Windows naming rules. The Box/JS hypotheses have no touched implementation surface. Native execution of the new Windows separator assertion remains unestablished; the passing Windows advisory subset does not run it.
Residuals/ownership: native Windows runtime, complete workspace/required-matrix qualification and newer-main composed execution are unestablished. Parent owns the fourteen-report governed repair, fresh exact-head checks/review, old-thread reconciliation and lifecycle. No author edits, thread resolution, Ready, merge, release or deployment action taken.
| let sp = " ".repeat(indent); | ||
| out.push_str(&format!("{sp}{{\n")); | ||
| number_field(out, indent + 1, "line", fact.line, true); | ||
| if let Some(source_file) = &fact.source_file { |
There was a problem hiding this comment.
[P1] Refresh the nested canonical reports for source_file
Failure mode: this valid additive producer change is absent from all fourteen fixtures/evidence-promotion-honesty-corpus/discarded-matcher-reports/*/check.json snapshots. In the current composed tree, cli_smoke::discarded_matches::discarded_matcher_cli_controls_reject_false_credit_and_retain_consumers fails at discarded_matches.rs:220 on bare-wildcard-original's exact byte comparison. Hosted Rust-only CI fails at the same assertion (454 pass/1 fail in cli_smoke).
Verified subjects: candidate aca2deb; exact main4711c122a0248d75807ba2e0401169a2f46743aa passes that complete focused control. Their local composition93fe578f54cf52eeb0fe5ec282c0a6de659df30d/tree35b8eb9922859be64496a2e578514a1a6d507378 fails, exit101. GitHub's actually checked-out merge632015510cfbcd652eeb968710baabb21e17a8c3 has identical parents/tree. Independent CLI audit of all14 subjects shows recursively removing only source_file exactly reproduces every canonical JSON; classification, stages, oracle attribution and repair advice are unchanged.
Why here: the registered raw producer-byte contract is separate from ordinary goldens and the semantic honesty corpus. Their green aggregates do not cover this required CLI comparison.
Fix direction: govern a bounded refresh of these14 JSON snapshots and associated producer/provenance receipt per discarded-matcher-reports/README.md's intentional-renderer-change protocol. Preserve the original/wrong stimuli, all human bytes and all semantic expectations; retain the existing hosted byte-compare as binding qualification. Do not strip source_file from the comparator, remove correct producer metadata, or re-bless the174 already-audited ordinary metadata fixtures.
Validation: run cargo test -p ripr --test cli_smoke discarded_matches::discarded_matcher_cli_controls_reject_false_credit_and_retain_consumers --locked on the repaired composed tree, re-audit the bounded JSON-only metadata delta, then require the exact-head hosted Rust-only lane to pass. Retain honesty, output-contract and provenance controls.
Confidence: High; exact-base pass, composed failure, all14 semantic equality checks and hosted actual-checkout evidence agree.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Independent exact-head inspection: REPAIR_REQUIRED for generated-output/consumer parity (#7853). This is a COMMENT review because the connected identity is the PR author; independent inspection is established by the evidence below, not account naming.
reviewed_head_sha: aca2deb (re-read unchanged before publication).
integration_basis: remote comparison observes main 78312b3 and merge-base f9f30d5; 7 candidate commits, 27 behind. Metadata base ff4a2fc... is not current main. The inspected hosted job actually checked out 6320155, merging this candidate into 4711c12. The author's ad9dbb7.../e078e51... composition remains reported evidence for that older frozen basis, not this review's fresh execution.
P1 generated-output parity: the new metadata is expected, but the registered discarded-matcher canonical reports are stale. Hosted Rust-only job 115652206776/run 38502415871 reaches the real CLI byte-equality consumer in cli_smoke/discarded_matches.rs:220 and fails at bare-wildcard-original. I independently decoded its actual/expected byte arrays: the only parsed differences are source_file:"src/lib.rs" at /findings/0/activation/observed_values/0 and /findings/0/observed_values/0. The candidate canonical blob 15676b3929aa75ab1de0a1a8e1f97eb418aa00fc is unchanged from the comparison base and matches the expected side of that failure. The 393-file inventory omits discarded-matcher-reports. This is an observed generated relationship defect, not missing CI, not a classification failure, and not an unproven base-only failure. The job's entire target returns exit101. #7853 contains the bounded same-candidate repair and seven original/wrong-pair acceptance; preserve the byte oracle and validator policy.
Inspected semantic owners and consumers: complete changed-file inventory and production diff; TestSummary.file -> activation::value_facts_for_test -> run-scoped TestValueFacts memo / fresh fallback -> source-aware sort/dedup -> ValueFact -> both shared JSON arrays and SARIF. The memo keys include indexed test/owner slots and index storage identity, so no filename-independent memo bypass was introduced. Derived/boundary/other-language constructors remain None; repo test-grip values are a separate producer and remain unknown. Shared numeric assertion_texts picks first text per line; differing texts still receive per-value provenance, and identical texts now remain source-distinct. JSON context packets share the value projection; shared cap remains 32 with total disclosure. Native-path producer precedes the renderer's display-only slash replacement. Schema, OUTPUT_SCHEMA, RIPR-SPEC-0158 and traceability describe the optional metadata and explicitly acknowledge Rust struct-literal compatibility. No metadata grants oracle execution/admission.
Prior native-path P1: repaired in inspected source. Independently compiled/run an extracted exact-head stable_source_path_text/native encoder/decoder control with pinned rustc 1.95.0 (59807616e...), Linux. Five siblings (Unix backslash, directory separator, literal %5C, invalid-byte path, literal %FF) remain distinct and byte-round-trip; reverting to the old display normalization collapses them to four. This is bounded extracted-function execution, not a full product build. Hosted job above independently records all 10 public provenance tests passing, including both native-file assertion-removal directions, real three-test fixture compilation, quoted/percent/newline, same-text collision, relocation and legacy controls. Those controls exercise actual public JSON arrays/SARIF and preserve weak discrimination, related-test oracles and repair advice. Source inspection confirms sort and dedup compare the same five fields; same-file duplicates remain collapsed. The outdated native thread remains unresolved; parent can reconcile it after repair acceptance. Windows-separator asymmetry is contract-consistent: backslash is a native separator on Windows, so the bot's hypothetical Windows literal-backslash filename collision is not the Unix failure. No Windows execution is inferred.
Golden exception: directly inspected proximity_name_oracle_not_credited expected JSON: both line6 enum rows survive from tests/owner_named.rs and tests/variants.rs. That is the intended identity-aware restored row, not a reason to collapse two files. The author's 174-fixture metadata-only audit/full-golden proof was not rerun locally and does not cover the separately failing registered CLI reports.
Stage-specific readiness: source/native-identity repair has no newly verified source defect in this pass. Candidate generated parity needs repair before Ready. Current metadata re-read is Draft/mergeable:true; initial mergeable:false was transient and is not a demonstrated current conflict. A bounded three-way content merge of traceability on exact candidate/comparison base/current main exits0 with no conflict; that is one file, not full integration qualification. #7809's separate reason-record composition remains parent-owned. The Ready-only routed-rust workflow at candidate blob 57878643f92039a47e2c1ed85a50fd4587988929 listens to ready_for_review and explicitly excludes draft synchronize from Ripr Rust Small Result generation; absence of that result while Draft is expected, not a pre-Ready missing-proof blocker. Parent owns Ready/protected checks/merge.
Observed: hosted Rust-only real consumer failure plus 10 provenance passes; current source/blob identities; independent extracted-path positive and reverted-wrong sibling; no broad redundant builds or CI reruns. Not established: fresh local full CLI execution, full current-main combined-tree proof, native Windows qualification, complete routed required matrix, ruleset authority through available read APIs, and author's executor-local raw artifacts (not present in this environment). Advisory quota/393-file skip and pending Droid are missing provider review, not source defects or clean review. Evidence locally retained at /workspace/scratch/review-7833; path-control executable SHA256 1bd2eb4d479f2ea7d4ea0c69f1f1fcd2c0d31f9d85f612797ae08cfc883a2eb7. Local paths are not uploaded artifacts.
Affected currentness dimensions for repair: registered generated reports, their real producer consumer and candidate head; rerun the focused consumer and audit the changed reports. Preserve existing writer and Perl #17479 publication/#17573 integration plus paused #17623 cancellation/#17655 fsync holds. No Ready, protected merge, CI duplication, cancellation, external-agent contact, release/deployment/access or validator-policy changes.
| let sp = " ".repeat(indent); | ||
| out.push_str(&format!("{sp}{{\n")); | ||
| number_field(out, indent + 1, "line", fact.line, true); | ||
| if let Some(source_file) = &fact.source_file { |
There was a problem hiding this comment.
[P1] Refresh the registered discarded-matcher reports alongside this new field
Failure mode: the real CLI consumer's exact byte oracle now fails because the canonical reports omit this expected source_file metadata. CI run 38502415871/job 115652206776 checks out merge 6320155 (this candidate into 4711c12) and fails at cli_smoke/discarded_matches.rs:220 for bare-wildcard-original. Independently decoded actual/expected arrays differ only at the two observed_values source_file fields, actual src/lib.rs versus omission. Candidate report blob 15676b3929aa75ab1de0a1a8e1f97eb418aa00fc matches the expected side and is unchanged from base.
Why here: this projection changes a real registered producer-output consumer beyond ordinary fixture goldens; the PR's 393-file inventory does not update discarded-matcher-reports. Metadata is correct; the generated relationship is stale.
Fix direction: existing #7833 writer should audit/refresh all seven original/wrong pairs under fixtures/evidence-promotion-honesty-corpus/discarded-matcher-reports through the governed producer route. Preserve byte equality and honesty classifications; do not strip this field or change validator policy. Detailed bounded handoff: #7853.
Validation: cargo test -p ripr --no-default-features --features lang-rust --test cli_smoke discarded_matches::discarded_matcher_cli_controls_reject_false_credit_and_retain_consumers --locked -- --exact; require all fourteen cases, then existing honesty/output-contract proof. Classification, RIPR stages, human reports, oracles and repair guidance must remain unchanged.
Confidence: High for the observed first failure; other report deltas require audit, not assumed execution.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Independent focused execution review: REPAIR_REQUIRED for existing #7853, plus a full-human acceptance mismatch requiring parent reconciliation. The #7838 native identity defect is repaired; no new classification/oracle defect found. Keep Draft and the existing writer.
reviewed_head_sha: aca2debf718d01106d929904be644314f3a76a91
reviewed_tree: 229368f900aa09a93f71110da6fe02565e4d8833
comparison: 73858a3882f932cd13f80c3e4907bbf3b55e8c26 → reviewed head; all nine files/two commits inspected.
integration_basis: refreshed origin/main 78312b335cdb1558372aded3a4911073052753a9; this review does not execute its composition. Published head re-read unchanged, Draft, immediately before this record. Review date: 2026-10-14 UTC.
Existing blocker #7853 independently reproduced locally. The exact-head CLI reports the reviewed SHA. All fourteen original/wrong discarded-matcher subjects produce JSON equal to their registered canonical reports after removing only the expected additive source_file fields (and the consumer's documented canonical_next_action member). There are 36 missing fields across these reports, in both value arrays. All fourteen full-human reports match their canonical bytes after the test's documented root-prefix projection. Classes, stages, oracles, guidance and every other JSON member match. Preserve the byte oracle and refresh through the existing writer/governed route; do not suppress source_file. This supplements the already-published finding rather than creating a rival repair.
Full-human invariance is not literal on the native collision case. I separately exercised the real CLI on the same three-file, equal-line/equal-assertion native fixture with the preserved pristine executable and an isolated old-normalization control. At aca2 each finding gains precisely two anonymous evidence lines:
source assertion argument value "not_collected" at line 12source assertion argument value "status" at line 12
All other full-human bytes match. These are the restored file-distinct values flowing into output::observed_values::source_value_evidence_line, not changed classification/admission. Renaming the backslash file to an unambiguous path produces the same repaired full-human content except the expected related-test location spelling. This is analogous to the earlier disclosed restored-row exception, but the assignment explicitly requires full-human behavior unchanged. Parent must reconcile that acceptance mismatch (accept the bounded restoration explicitly, or preserve the human projection) before claiming strict full-human invariance. I did not alter the candidate or bless output.
Exact-head independent Linux/Rust 1.95.0 execution:
cargo test -p ripr --test value_source_file_provenance --locked: 10 pass, zero ignored; includes all three real runtime fixture tests, both JSON arrays/SARIF, same-text cross-file identity, both assertion-removal directions, rename/repeat/relocation and legacy serde.cargo test -p ripr --lib source_provenance --locked: 3 pass. The six-fact witness collapses only same-file duplicates to three native origins, including literal backslash → %5C and literal %5C → %255C; native bytes/percent and empty-origin unknown controls pass.- The same exact-head unit executable: stable native/decoder filter 4 pass; SARIF optional-source/cap 1 pass; shared cap 2 pass.
- An additional reviewer Rust public-path control links the pristine library and creates a fourth real literal-%5C filename: owner, directory, backslash and percent-spelled sources remain four distinct origins through both JSON arrays/SARIF (1 pass).
- Wrong-result challenge: changing only attach_test_source's encoder back to stable_path_text in the review-owned checkout gives 8 pass / 2 intended identity/removal failures, exit101. Real runtime fixture still passes all three tests. This is an isolated equivalent old-normalization control, not a claim of running the full historical checkout. Experimental patch retained; review source restored clean.
Owners/contracts inspected: shared native encoder extraction preserves existing display normalization; source attachment precedes that normalization; sort/dedup still agree on line/context/value/text/source_file; JSON/SARIF display conversion cannot collapse escaped %5C/%255C; unknown/derived origins remain None; serde/schema/spec/docs/traceability and bounded offline Cargo process ownership agree. No new production decision or dependency/security/release surface. Native Windows assertion not executed; passing advisory Windows subset does not run that assertion.
Carry-forward and limits: carry forward the prior 390-file review and 174-fixture semantic audit at its original head for unaffected surfaces, including the precise proximity restored-row exception. Repair changes no existing golden/reason bytes; no broad rebuild, full corpus replay, CI rerun, current-main combined execution or #7809 interaction attempted. The inspected hosted Rust-only job is combined-tree execution at 632015510cfbcd652eeb968710baabb21e17a8c3, not our fresh local exact-head proof; it records 454 CLI passes/1 #7853 failure and ten public provenance passes. Complete required-matrix/native-Windows qualification remains unestablished.
Evidence: reviewer-local /workspace/review-7833-evidence contains logs, fourteen-case audit, fixture/control source, full-human comparisons and preserved binaries; these are not hosted artifacts. Pristine CLI SHA256 e4bca3a24311b35805d77131c6ffb820fb08cefed354f19c56ed557de58f1ddf; old-normalization CLI a51a49e75a4b5c262bbb2800cdfbd28ce03aff05311028ee67349697b77748f1. Published source/Draft unchanged. Parent owns #7853 repair acceptance, full-human contract reconciliation, #7809 composition, threads and integration; all release/deployment/upstream holds remain.
|
CANDIDATE_REPAIRED — #7853 governed generated-report repair. Keep Draft; fresh independent exact-head review and hosted qualification are parent-owned. Published head: Repair commit Observed RED at the assigned head: actual cli_smoke control exits101 at the reported bare-wildcard-original byte assertion. All fourteen separately executed subjects were audited: removing only the 36 additive source_file lines from canonical-projected actual JSON recovers every previous canonical byte. All fourteen concise/full human reports remain byte-identical under the existing root-prefix projection. Classifications, stages, oracle attribution, consumers, guidance and all other JSON members are therefore unchanged. JSON projection removes only the already-documented canonical_next_action member; the binding comparator is unchanged. Frozen-main composition Terminal final-head Linux / Rust1.95.0 proof:
Retained failures: initial doctor exit1 for behind-only status (current AGENTS says not to restack for that alone); initial golden dependency failure for missing exactly pinned anyhow1.0.100, repaired by cargo fetch --locked without pin/expectation changes; initial composed-tree new-fixture golden drift, repaired as above. They are not relabeled as passes. Raw arrays, captures, audit/helper source, logs/status and reports are retained locally at /workspace/7833-repair-evidence; these paths are executor evidence, not hosted artifacts. Changelog: changelog.d/7853-discarded-matcher-source-file-reports.md (Fixed, validated), plus existing #7805/#7838 fragments. Stage boundary / next owner: This establishes pre-Ready local source and frozen-main integration evidence. The README intentional-renderer protocol still requires the exact-head hosted byte comparison as binding qualification; no hosted Rust-only/full-matrix/native-Windows qualification is claimed. Main subsequently advanced (95c8a7d owner-pin/changelog-policy delta inspected; live remote main is 83d5b20); the frozen subject above is not an execution of later main. Parent owns fresh independent published-head review, current admission/required checks, Ready/merge, issue acceptance and thread resolution. Carry forward the native-collision full-human acceptance question from review5512743709 without claiming global literal human invariance; this repair preserves the fourteen reports and the new main fixture's human bytes. No lifecycle, thread, merge, release, deployment or access-setting action taken. Resources: source checkout, clean detached composition checkout and ~5MiB scoped evidence retained for parent review; inherited Cargo target/store retained with unknown prior-owner artifacts, no unrelated cleanup. No commands remain running. |
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- The producer-receipt.7833-source-file.json records binary_sha256 e8d8a8a7aa9fafe57f25b98238c76533d17c4ea020458b29889c2035964d3ea1 and per-case hashes for provisional local captures; it is not a binding hosted byte oracle. Receipt integrity relies on the documented intentional renderer refresh; rotation/regeneration must remain audited.
Verification questions
- Confirm native Windows backslashes still render as '/' and Unix backslashes escape to %5C before display; the producer-side shared encoder keeps its prior behavior. The display_path_text projection runs at JSON render time, so any future string-based equality test that compares raw source_file text must use stable_source_path_text; no such comparison exists in the diff. tests/value_source_file_provenance::literal_backslash_directory_and_percent_spelling_keep_distinct_origins pins three distinct encodings.
- Confirm source-route scope inspected; no public API route is widened, no struct literal caller is left without the new field, and the only new external process spawn is the test-only value_source_file_provenance runner under #[cfg(unix)] with a 120s deadline and isolated target. The remaining gap (hosted exact-head byte-compare of the discarded-matcher canonical reports) is out of route scope and is recorded as residual risk.
Refuted
- Box::from(slice) / Box::<[u8]>::from(slice) allocation failure on non-UTF8 source paths could silently drop source_file and regress identity.; refuted because: attach_test_source only invokes stable_source_path_text(&Path)->String which delegates byte/UTF-8 handling inside push_stable_path_text; no Box<[u8]>::from slice conversion exists on this path. Native-byte test asserts distinct serialized strings for non-UTF8 vs reserved-percent spellings.
- A worker handoff / structured-clone / transferable / WeakRef detach of the new Option source_file could drop or coerce the field across an async boundary.; refuted because: This lane's diff contains no JS-backed object, no worker port, no postMessage, no SharedArrayBuffer, no transferable handle, and no async runtime boundary for ValueFact. The source_file lifetime is strictly synchronous and single-threaded; failure would have to be a normal OOM abort, not a detached/transferable drop.
Box::from(slice)allocation failure does not returnNone; recoverable fallback claims are dropped.
Parked follow-ups
- Heavy sensors (cargo-test, miri, cargo-mutants, build, shellcheck, semgrep, gitleaks, osv-scanner, cargo-deny, cargo-audit, coverage) are skipped by profile. UB handoff lane is structurally inert here, so absent sanitizer/witness evidence is not a UB concern, but residual unverified path is the value_fact_json/sarif::value_facts call site that runs once per fact; it is pure sync I/O with no async surface. Note for human follow-up: keep this lane scoped to static single-threaded metadata.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
- process_allowlist.txt now names a Cargo test Command::new in value_source_file_provenance.rs (offline, 120s, isolated target, null stdin, file-backed streams). This is test-only and disjoint from production spawn sites, but a process-policy reviewer should sanity-check the policy entry text and target args match the actual spawn.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Independent exact-head review: no new actionable source/report defect verified in this scope. The native identity repair and #7853 report repair pass fresh Linux execution. REVIEW_INCOMPLETE for merge qualification; keep Draft under this assignment. The prior full-human acceptance question remains explicitly separate.
reviewed_head_sha: b73ee65495dbec4e6d5e8c3a9f34326f200a564a
reviewed_tree: d9f16f30b8ba2971cb2f6a3dd4967b2b5434f0f4
source_merge_base: b81496ae2127e62c15b92472e92e2409ece4b86a
Head re-read unchanged, open/Draft, before publication. Review date: 2026-10-14 UTC. COMMENT records independent inspection/execution; the connected account is also the PR author.
Source inspection. Inspected the complete 412-path candidate inventory against its actual source merge-base, production/test/schema/spec/process-policy deltas, generated reports, repair receipt, prior reviews and the three returned inline threads. Traced TestSummary.file through fresh/run-scoped memoized value production, native encoding, source-aware sorting/deduplication, ValueFact, both shared JSON value arrays and SARIF. Unix literal backslash becomes %5C before display normalization; literal percent spelling becomes %255C; native invalid bytes retain the reserved-percent distinction. Sorting and deduplication use the same five identity fields. Same-file duplicates remain deduplicated. Unknown/derived/other-producer origins stay None; renderers do not guess from the probe. Legacy serde omission, schema 0.2, numeric assertion_texts/per-value provenance, cap 32, documented Rust struct-literal compatibility and the test-only owned/offline Cargo process entry agree. No new assertion-admission or classification authority is introduced.
Complete committed-report audit. Independently fetched/audited all fourteen nested canonical JSONs at this head against aca2deb: exactly 36 source_file:"src/lib.rs" additions, in both value arrays; removing only those lines recovers every prior canonical byte. Verified each receipt's committed canonical JSON/human/full-human hashes, previous JSON hash, input-source and patch hashes, and added-field count. All 28 nested human files are unchanged. The fourteen corpus registrations, exact-byte comparator and historical portable receipt remain unchanged; main added separate corpus cases, so this is not a claim that the entire corpus manifest is byte-identical. Original provisional raw-capture hashes remain historical custody claims, not newly authenticated original captures.
The broader ordinary-report audit covers 177 changed expected/check.json files: 175 are byte-identical to frozen main after removing only source_file lines (the original 174 plus propagated_error_closing_early_path); one is the disclosed proximity restored-row exception; one is the new collision fixture. All 1,628 source_file fields in these reports name existing fixture input files. The proximity exception reduces to the old parsed report after removing source_file and exact duplicate value/evidence rows; its classes, stages, oracles and advice agree. This does not assert complete uncapped value inventory.
Executed published-head Linux/Rust 1.95.0 proof. Review-owned clean detached checkout; no implementation mutation.
- cargo test -p ripr --test value_source_file_provenance --locked: 10 pass, zero ignored. Includes real three-test native fixture compilation/execution, both assertion-removal directions with stimuli retained, unambiguous rename, repeated/relocated cases, quoted/percent/newline filenames, both JSON arrays/SARIF and legacy serialization.
- cargo test -p ripr --lib source_provenance --locked: 3 pass. Same exact-head unit executable: stable path/decoder 4 pass, optional-source/SARIF cap 1 pass, shared cap 2 pass.
- returned_render_buffer: 8 pass. Actual discarded-matcher CLI contract: 1 selected test, all fourteen subjects pass; the existing byte oracle is intact.
- cargo test -p xtask discarded_matcher --locked: 2 intended honesty negative tests pass, rejecting dishonest credit, missed credit and vacuity; other test targets selected zero and are not counted as proof.
- check-output-contracts and check-evidence-promotion-honesty: pass.
Existing removal/rename and semantic negative controls provide the wrong-behavior challenges; no code mutation was performed under the assignment's no-code-change boundary. Preserved candidate CLI reports b73ee65; SHA256 671c6c4a77c0dc2fe6e05523efb81fdcc411338a0fbd89ac4dbf0de4d7fcae8b.
Fresh executed integration, separately bound. Conflict-free local composition c201efb0353d9297b26f89763af031ae889c3dbc, parents ef2bce9017dde50949f4dbf26c7ff25ec6446247 then this candidate; tree 8b05ed1d6cce9ef3d21abf18e83ccb70340f6cbf. Candidate source-origin/projection/public-test/comparator/report blobs match. Provenance10, returned-String8, all14 CLI subjects, output contracts and honesty pass. Full goldens finally pass with zero drift / zero fixture errors.
Retained initial failure: goldens exited1 with three output drifts for owner_return_pin_fallible_literal. Offline locked cargo metadata then exited101: "failed to download anyhow v1.0.100" / HTTP requested under --offline. Fetching only that exact locked fixture dependency, without changing source, lockfiles or expectations, restores the complete golden pass on the same composition. Initial failure/report and recovery logs are retained. Final golden CLI reports c201efb03, SHA256 9e69428460f99215bc116db1b4471460cd5103ee193d5f13e90208b0801fc7ff. The earlier integration CLI-contract binary was separately observed as 32059765ddffc0b9124c646bd7c49d446a4486c52bed7cf0d5081008c311862a; these executable receipts are not conflated.
Hosted observation, not full required qualification. Independently inspected Rust-only job 115680086367 down to checkout and test logs. Actual checkout 094d4493a2e33796f58559908fc76c33fd53c4c1, tree 377692d9613112afc483075b2c11c4af8f5e46eb, parents 83d5b20d695379b5e9e55493f2ec00ae4967c124 then b73ee65. Relevant candidate blobs match. The no-default-features/lang-rust lane succeeds: CLI target455/0, the exact discarded-matcher byte comparison passes, provenance10 and returned-String8 pass, native source-origin units pass. This supplies fresh hosted binding byte-comparison evidence for the repair on that actual merge subject, superseding the earlier failing aca2 job; it is not execution of ef2bce9 or a complete required-matrix receipt.
The connected run/job readers are first-page scoped. Required-status-check and active-main-rule CLI reads both return transport Forbidden; no effective-protection/all-required-checks conclusion is possible. Routed Rust Small at this head admits PR qualification via ready_for_review; missing Draft admission is expected, not a demonstrated failed gate. The successful Windows advisory subset does not execute the new native Windows separator assertion, so native Windows source-identity qualification remains unestablished.
Reconciliation and remaining boundary. Prior native-path P1 is repaired in current source and native execution. Both duplicate #7853 stale-report threads are superseded by the complete audit plus fresh local/hosted real-consumer passes; physical thread/issue reconciliation remains parent-owned. Carry forward review5512743709's strict full-human acceptance question: restored file-distinct facts can add anonymous source-value evidence lines through the unchanged human projection. The fourteen repaired reports' human bytes are unchanged; no global literal-human invariance or resolution of that earlier acceptance requirement is claimed here.
No candidate edits, thread resolution, Ready, merge, release, deployment or protection changes. No full-workspace/precommit rerun or complete hosted/native-Windows qualification claim. Logs, independent artifact audit, initial/final integration reports, hashes and preserved CLI witnesses are retained at reviewer-local /workspace/review-7833-evidence; these are not uploaded artifacts. Source/report repair evidence is established within the stated bounds; parent owns remaining acceptance and lifecycle/qualification decisions.
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- Staged composition: PR body and seeded thread explicitly note local composition only; this lane cannot establish hosted byte-compare qualification of the 14 discarded-matcher canonical JSONs nor the new propagated_error_closing_early_path fixture. Treat 36-field refresh as historical, not binding.
Verification questions
- Confirm native Windows backslash and non-UTF8 bytes are representational metadata only; no info disclosure or boundary amplification surfaced.
Refuted
- Box::<[u8]>::from(slice) allocation-failure on non-UTF8 source paths cannot drop source_file because stable_source_path_text delegates to stable_native_path_text which never slices to Box<[u8]>; byte/UTF-8 handling stays inside push_stable_path_text.
Evidence gaps
- test fixture rust_adversarial_free_function_receiver, rust_adversarial_same_method_other_type, rust_macro_wrapped_assertion_limitation were taken from main's version during merge (per Claude Code update); they likely need goldens bless for the additive source_file metadata before next check-fast. Currently scheduled-late in cargo-test phase.
- Model proof intent was rejected by deterministic validation.
|
Head 8b9f20b: merged the latest origin/main (4e66779) and blessed the additive Blessed: 43 fixtures whose Validation:
Generated by Claude Code |
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- stable_path_text now wraps stable_native_path_text then replace('\','/'). stable_source_path_text is the only remaining direct caller of stable_native_path_text in production. The previous public surface was stable_path_text(&Path) -> String; the new public surface is stable_source_path_text(&Path) -> String. Both are pub(crate) so no external API drift, but the docstring of stable_path_text still says 'replaces backslashes with slashes' which is now the wrap step, not the encoding step. Realign the comment to describe the split or hoist stable_path_text to call stable_source_path_text (which already encodes backslashes correctly per platform). (crates/ripr/src/analysis/mod.rs:484).
Verification questions
- Confirm rust callers constructing the public ValueFact struct must supply the new field; this is an explicit struct-literal source-compat change acknowledged in the PR body and reproduced at every ValueFact literal site in this diff (16 files).
Refuted
- Box::<[u8]>::from(slice) allocation failure on non-UTF8 source paths could silently drop source_file and regress line-collision identity.; refuted because: Reused refuted objection from seeded thread. attach_test_source calls stable_source_path_text(&Path) -> String which delegates to stable_native_path_text(&Path); no Box<[u8]>::from slice conversion exists on this path. Native-byte test asserts distinct serialized strings; covered in seeded refuted evidence.
- Producer-receipt is provisional local capture, so the 174-fixture additive audit is not binding.; refuted because: README and receipt qualify as intentional_renderer_refresh_provisional_local and require hosted byte-compare as binding; this is a receipts-honesty concern, not an oracle strength regression. The test surface (public controls + SARIF cap + legacy round-trip) executes in-tree and is independent of hosted qualification.
Box::from(slice)allocation failure does not returnNone; recoverable fallback claims are dropped.
Evidence gaps
- Hosted byte-compare qualification of 14 discarded-matcher canonical JSONs is unestablished; producer-receipt explicitly says provisional local capture, head advanced past aca2deb to 8b9f20b, and value_source_file_collision/check.json not_blessed from main's #7393 next-step text remains an unresolved delta in cargo-test phase.
- Model proof intent was rejected by deterministic validation.
|
Claimed by the backlog thread: carrying the golden re-bless against current main. Please don't duplicate it. Generated by Claude Code |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Head 5e72065: merged origin/main (71859f9), resolved the fixture CHANGELOG conflicts by keeping both sides, and set Goldens, all blessed individually with a reason and no blanket re-bless:
Validation:
No independent review was done on this head. The PR is non-draft; the Generated by Claude Code |
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- The public lane signal is unchanged from prior reviews: RIPR-SPEC-0158 carries no execution/observation/oracle admission authority for source_file. The shared encoder split (stable_source_path_text wraps stable_native_path_text) is consistent with #7838 native identity repair and preserves Windows separator display via the explicit cfg(not(unix)) replace branch.
Verification questions
- Confirm policy/process_allowlist.txt gains a Command::new allowlist entry for the Unix-only value_source_file_provenance runtime; OwnedProcess supplies a 120s deadline, null stdin, file-backed streams. No shell or network invocation, no user-repo mutation.
- Confirm sarif cap test in crates/ripr/src/output/sarif.rs::source_file_tests confirms the existing 32-value cap still applies when every fact carries a source_file; this is regression coverage that the additive metadata does not silently slip a fact past bounded_observed_values, but it only exercises one path (ascending line numbers, single file). A test that mixed two source files under the same cap would harden the assertion. Not a blocker for merge; the cap function read at sarif.rs:857 is unchanged.
Refuted
- Box::<[u8]>::from(slice) allocation-failure on non-UTF8 source paths could silently drop source_file and regress identity; refuted because: Path uses stable_source_path_text(&Path) -> String which calls stable_native_path_text; byte/UTF-8 handling is fully inside push_stable_path_text (OsStrExt) and no Box<[u8]>::from slice conversion is on this path. The native_bytes_and_reserved_percent_keep_distinct_serializable_origins unit test pins distinct serde_json serialization for both spellings.
- The PR's own rust_adversarial_free_function_receiver, rust_adversarial_same_method_other_type, rust_macro_wrapped_assertion_limitation, rust_test_written_expected_file, rust_test_written_expected_file_bound, rust_committed_golden_expected_file check.json were taken from main during a Claude Code merge and may carry additive source_file drift that has not been independently audited.; refuted because: Per the merged CHANGELOGs (rust_adversarial_free_function_receiver expected/CHANGELOG.md lines 92-118; rust_adversarial_same_method_other_type expected/CHANGELOG.md lines 235-261; rust_macro_wrapped_assertion_limitation expected/CHANGELOG.md lines 448-474), the additive blesses cite RIPR-SPEC-0158 and #7805 explicitly and were authored individually against this PR, not pulled from main's source_file pipeline. The drift on those six goldens is the producer-side source_file insertion, structurally identical to the 174 PR-owned additive blesses.
Box::from(slice)allocation failure does not returnNone; recoverable fallback claims are dropped.
Parked follow-ups
- Add a documented “unknown” sentinel for residual producer-side
source_filesemantics.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
… main Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Gy7H9ZboifMj8Wv9qitPRY
|
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.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- sort_value_facts appends source_file as the last comparator (after line, context, value, text); dedup_by likewise appends it. This is benign for the representation contract but means within-file deduplication across files depends on source_file being always present, and derived/legacy ValueFacts carry None which can collide across producers — flagged as a latent risk for any consumer that joins on (line,text,value,context) without considering source_file.
- fixtures/value_source_file_collision/expected/CHANGELOG.md:15 — The CHANGELOG conflates the additive source_file audit with a non-additive re-bless covering #7393 and #8165; reviewers cannot tell whether value_source_file_collision drift is the additive source_file bytes or the human text. Split into two Pending sections with distinct owners (one for source_file audit, one for human/next-step re-bless) so goldens blessing can be done piecemeal and audit-clear.
Verification questions
- Confirm the line_colliding value_source_file_collision fixture was re-blessed for both PR #7393 exact-oracle next step and PR #8165 plain-language human render in addition to the source_file additive refresh; the prior review explicitly flagged that this non-additive re-bless requires an owner decision and reason citing #7393.
- Confirm process_allowlist gains a Command::new entry for value_source_file_provenance.rs that spawns cargo test --offline --lib inside a disposable root with a 120s deadline; this is a new external process surface in the trusted path and is asserted as Unix-only with null stdin and file-backed streams.
Refuted
- Cross-platform Windows render regression: new
stable_source_path_textcfg(not(unix))branch maps\ -> /, but a WindowsDisplayimpl or consumer that re-derives fromOsStrcould double-strip a leadingC:\toC/. Status: not present in the diff. No Display impl touches the new function;display_path_textis the only caller used by both JSON and SARIF, andoutput/path.rs::display_path_textwas not modified here. Treat as a parked parent-owned cross-platform qualification, not a new finding.; refuted because: checked: no Display impl added in this diff for source_file; only renderer is display_path_text which was not touched.
Parked follow-ups
- Three fixtures were taken from main during merge instead of being re-blessed: rust_adversarial_free_function_receiver, rust_adversarial_same_method_other_type, rust_macro_wrapped_assertion_limitation. PR body explicitly flagged this and parked a follow-up bless pass; CHANGELOGs gained additive source_file pending entries but the diff-only pre-existing
check.jsonprojections of these three fixtures were not inspected end-to-end. Parent reconciliation owns the bless command; this lane only reports the parked sibling surface so the next review round does not forget it. - Docstring of crates/ripr/src/analysis/mod.rs::stable_path_text still says it 'replaces backslashes with slashes' although the actual replacement now happens in stable_native_path_text; consumers were not broken, but a future caller who edits the docstring without reading stable_source_path_text could reintroduce the #7838 native-identity regression. Trivial cleanup, parked.
Evidence gaps
- Hosted byte-compare qualification of the 14 discarded-matcher canonical JSONs remains unestablished; cargo-test receipt is scheduled-late and will land before the gate, but hosted golden check does not.
- Model proof intent was rejected by deterministic validation.
- Hosted byte-compare qualification of the 14 discarded-matcher canonical JSONs and the propagated_error_closing_early_path fixture is not established in this lane; producer-receipt.7833-source-file.json is provisional local evidence per its own 'qualification' field.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Gy7H9ZboifMj8Wv9qitPRY
|
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.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- proximity_name_oracle_not_credited intentionally retains two equal enum-variant rows at line 6 from tests/owner_named.rs and tests/variants.rs; evidence_path/golden audit append 'source enum variant value ParseError::MalformedSource at line 6' twice and human.txt detail-window count moves 9->10. Worth flagging to downstream consumers that source_file metadata is the deduplication key, not line+text+value.
Verification questions
- Confirm public API struct definition ValueFact gained an Option source_file field with skip_serializing_if. Source identity is set only via attach_test_source in activation::value_facts_for_test; all other production construction sites (Python, slice_boundary, infection, test_grip_evidence, value_resolution, boundary_pairing tests, agent_seam_packets, human, JSON, hover, repair_card_handoff, observed_values, evidence_health, evidence_record, repo_exposure, lsp/tests, context_packet, diagnostic_witness) supply source_file:None.
- Confirm public API route surface is unchanged: ValueFact was added a field, sort_value_facts/dedup_by comparison append source_file last; JSON and SARIF projections omit when None; legacy facts deserialize with source_file=None and round-trip unchanged; no constructor accepts file inference from changed probe; rendering cap unchanged.
- Confirm public API struct field is Option with #[serde(default, skip_serializing_if)] on ValueFact (crates/ripr/src/domain/probe.rs:337). Public test values/value_source_file_provenance.rs::legacy_facts_keep_unknown_source_identity_without_changing_serialization pins the round-trip equality. PR body, RIPR-SPEC-0158 lines 130–147, and a public new test assert an additive contract and a non-enforcement interpretation: source_file grants no execution, observation or oracle credit.
- Confirm sort_value_facts and dedup_by use (line,text,value,context,source_file); derived/legacy ValueFacts with source_file=None can collide across producers.
- Confirm bound std::process::Command::new allowlist policy/process_allowlist.txt entry for the new Unix-only value_source_file_provenance runtime test confirms OwnedProcess uses a 120s deadline, null stdin, file-backed streams, no shell/network; value_source_file_provenance.rs confirms it spawns cargo test --offline --lib only. Not a defect.
Refuted
- Box::<[u8]>::from(slice) allocation failure on non-UTF8 source paths would silently drop source_file and regress line-collision identity.; refuted because: attach_test_source in crates/ripr/src/analysis/classify/activation/source_provenance.rs:14 only invokes stable_source_path_text(&Path) -> String; no Box<[u8]>::from slice conversion exists on this path. stable_source_path_text delegates to stable_native_path_text in crates/ripr/src/analysis/mod.rs:484, which keeps byte/UTF-8 handling inside push_stable_path_text and emits %XX for non-UTF8 bytes (preserved in native_bytes_and_reserved_percent_keep_distinct_serialized_origins unit test).
- Adding Box::from(slice) or Box::<[u8]>::from(slice) on non-UTF8 source paths could silently drop source_file and regress line-collision identity; refuted because: The producer path is stable_source_path_text(&Path) -> String -> String, no Box<[u8]> conversion exists on the source_file pipeline. tests/value_source_file_provenance.rs::native_bytes_and_reserved_percent_keep_distinct_serializable_origins asserts non-UTF8 and reserved-percent origins produce distinct serializable JSON. Prior review (github-actions[bot] 5513310394) refuted this on identical evidence.
Parked follow-ups
- attach_test_source is a synchronous, run-scoped leaf that assigns Option; it does not allocate across worker or async boundaries nor detach any handle, so a worker-handoff objection has no surface in this diff.
- Three main-merge check.json drifts (rust_adversarial_free_function_receiver, rust_adversarial_same_method_other_type, rust_macro_wrapped_assertion_limitation) appear additive-only source_file per observed_value; the seeded PR thread already notes Claude Code took main's version on merge and the prior author re-bless on head 8b9f20b confirmed no fixture drift beyond additive source_file. cargo-test is scheduled-late, not missing; parked follow-up consistent with prior reviews.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
|
Closing as not landable in this form (release-control triage, 2026-10-17). At head Generated by Claude Code |
Current generated-report repair handoff (#7853)
Published head:
b73ee65495dbec4e6d5e8c3a9f34326f200a564a; tree:d9f16f30b8ba2971cb2f6a3dd4967b2b5434f0f4. Complete exact-head repair and frozen-main integration evidence. Keep Draft; parent owns fresh independent review, threads, Ready and hosted qualification.The fourteen nested canonical JSON reports now include 36 correct additive source_file fields. Removing only those fields recovers their previous bytes; all fourteen concise/full human reports are unchanged. The governed per-case refresh receipt preserves old/current/raw hashes and historical custody. The exact-byte comparator, classifier and oracle behavior are unchanged.
The observed frozen-main integration failure also required a governed eight-field JSON refresh for main's newly added propagated_error_closing_early_path fixture. Its human bytes and all other JSON members are unchanged. The exact tested main composition was incorporated without history rewriting; the prior174 audit and native filename repair remain intact. No unpublished #7809 cache candidate was integrated.
Final published-head local proof: actual14-subject CLI contract, provenance10, returned-String8, two honesty negative controls, output contracts, honesty, full goldens (zero drift/errors), check-fast (15 gates/412 independently selected paths), full precommit and dogfood pass. Frozen main/source merge-base:
b81496ae2127e62c15b92472e92e2409ece4b86a. This is pre-Ready local source/integration proof; binding hosted byte-compare/full matrix and native Windows qualification remain unestablished. Later main has advanced; the handoff records that boundary and carries the separate native-collision full-human acceptance question for parent reconciliation.Changelog:
changelog.d/7853-discarded-matcher-source-file-reports.md(Fixed; validated), retaining the existing #7805/#7838 fragments.Historical native repair handoff (#7838)
Published head:
aca2debf718d01106d929904be644314f3a76a91; tree:229368f900aa09a93f71110da6fe02565e4d8833. Complete exact-head repair handoff. Keep Draft; parent owns fresh independent review and hosted qualification.Literal Unix backslashes retain
%5Cbefore display normalization, while reserved-percent/non-UTF8 encoding and native separator handling remain intact. Permanent public collision/removal controls preserve both real file origins in both JSON arrays/SARIF and keep classification, RIPR stages, oracles and repair advice unchanged. Same-file dedup remains enabled. Changelog:changelog.d/7838-source-file-native-identity.md(Fixed; validated).Local published-head proof: 10 public tests, 63 activation tests, 4 stable-path tests, 3 cap tests; check-fast (15 gates/393 paths), full precommit, honesty, dogfood and full goldens pass. Zero golden drift or fixture errors; no expectation/reason-record change in this repair.
Frozen main
ad9dbb7a48a41a00b6a39e76198db2604e50a46a+ this head executes as local compositione078e51c7a5a84bbd8030980b3edb09c081342d1, treefe34391785f4736ba9db008cc02c4ea803cae2f4: 10 provenance + 8 returned-String tests from #7808 pass, plus output contracts, honesty and full goldens (zero drift/errors). This is bounded local composition evidence; no hosted/native-Windows/full-suite clearance. #7809's separate writer and known reason-record conflict remain parent-owned.The original implementation and independent golden-audit evidence below retain their original identities. The prior native-path review finding is repaired in this candidate and awaits parent exact-head review.
Summary
A finding's line-keyed assertion map can point at an unrelated file's assertion when two files share a line number. Differing text already survives via per-value provenance; the missing piece is file identity. This PR adds optional source_file metadata to ordinary Rust diff-test source values, preserves file-distinct values during sorting/de-duplication, and projects the metadata through JSON and SARIF. Existing classification and assertion admission remain unchanged.
Addresses #7805. Spec: RIPR-SPEC-0158. Consumer investigation: EffortlessMetrics/ub-review#1437.
Swarm / Source Boundary
Scope and compatibility
One representation contract. Production owners: domain/probe.rs::ValueFact; activation/source_provenance.rs::attach_test_source called by activation::value_facts_for_test; activation::sort_value_facts; JSON value_fact_json and SARIF value_facts. Other Rust edits supply source_file: None to existing constructors.
source_file is Option, using stable native source encoding before display normalization. Literal Unix backslashes encode as %5C, native separators render as slashes, and reserved-percent/non-UTF8 spellings remain distinct and serializable. Empty, derived, other-producer and legacy/cached origins without a file witness remain unknown; no renderer guesses a file from the changed probe. Source identity grants no execution, observation or oracle credit.
The serialized field is additive and omitted when unknown. Legacy facts deserialize to None and round-trip unchanged; JSON schema remains 0.2. Rust callers constructing the public ValueFact struct must supply the added field: this is an explicit struct-literal source compatibility change. Numeric assertion_texts and per-value provenance stay compatible. Rendering caps remain 32 values.
Evidence and golden audit
Public API controls cover colliding assertions, decoy assertion removal with stimuli retained, identical text in two files, a renamed decoy, repeated/relocated fixtures, legacy deserialization, both JSON arrays and SARIF parity. Native unit controls cover empty origins, non-UTF8 versus reserved-percent identity, serialization and the existing SARIF cap.
A first full corpus run exposed a missing local locked anyhow1.0.100 source for owner_return_pin_fallible_literal. Fetching that exact dependency without altering the pin restores its expected exposed result; it was not blessed as a classification regression.
Each changed existing fixture was independently audited before native blessing:
The golden support is large because the same optional field appears throughout existing Rust reports; it is not a broad analyzer redesign.
Historical implementation proof (head 73858a3)
Tested base: f9f30d5
Observed GitHub PR base at handoff: ff4a2fc (later main; integration qualification remains separate)
Head: 73858a3
Tree: 2618bb7f12688fc6f12b51767aa852aa437fbca1
Rust1.95.0/Linux, isolated /workspace/ripr-7805, CARGO_TARGET_DIR=/workspace/ripr-7805-target.
Built CLI reports this exact head; SHA2569ba67e84f3c7f493b59294ce44766aad4f764015b7993b2a42dad48495bcd34c.
Separate downstream runtime evidence
Frozen UB head026f93c0f0ad72740e082003cae2403e8ac676c6/tree1c87a775c2c3d195a447ec30e638424a5409b0ce; exact coverage blob4726ceb148696769586b66d26b2441bca73710de.
A bounded witness copies the complete production coverage file and all four existing tests unchanged, with exact support definitions. Baseline/restored4 pass. Three compiling mutants are rejected: Some(text)->None (explicit Option annotation solely for inference):4 fail; unreadable None->Some(empty):3 pass/1 fail at invalidUTF8 status; absent None->Some(empty):3 pass/1 fail at missing status. No missing UB test was invented and no already-confirmed truncation/bypass proof was duplicated. This is local bounded execution, not hosted/native-full-workspace qualification.
Historical implementation review and handoff
Author source inspection: REVIEW_INCOMPLETE. Inspected source-origin assignment, same-file helper widening, legacy serialization, stable path encoding, cap projection, sort identity and the exact golden exceptions. No concrete defect found in this declared representation contract. Independent exact-head review and hosted qualification remain parent-owned; keep Draft.
Separate #7809 owns MatchArm assert! execution admission. Production function seams do not overlap; shared .ripr/traceability.toml and lsp/hover.rs changes here are scoped mapping/neutral initializer edits. Preserve both candidates during later composition.
Traceability, changelog and rollback
Spec/docs/schema and .ripr/traceability.toml map the public tests, leaf, domain and output owners. Changelog: changelog.d/7805-value-source-file-provenance.md, canonical Fixed marker/bullet/issue format. Each golden refresh has its own reason record.
Rollback: revert these scoped commits and their expectation updates together; older facts remain readable. No successor classification repair is selected here. CI economics: n/a; no workflow or lane changes.
Local raw receipts and per-fixture audit are retained in /workspace/ub1437-evidence. They are executor-local evidence, not uploaded hosted artifacts.