Skip to content

test(paths): pin analysis identity across equivalent root spellings - #8958

Merged
EffortlessSteven merged 3 commits into
mainfrom
codex/path-identity-control
Oct 22, 2026
Merged

EffortlessSteven merged 3 commits into
mainfrom
codex/path-identity-control

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

The native path journeys covered unusual root characters but did not compare analysis identity across equivalent root spellings. This adds one real-binary regression and maps it into RIPR-SPEC-0170. The current analyzer passes: no production normalization defect was reproduced in this bounded Linux investigation.

Scope and ownership

Control

The fixture has committed source changes and a related integration test under a root containing spaces, an apostrophe, non-ASCII and a non-BMP character. Each spelling is independently canonicalized to prove it selects that same physical directory before invoking ripr check --base HEAD~1 --json.

On Linux, eight equivalent spellings cover absolute, dotted, child/parent, relative, relative-dotted, root-CWD ././, and a symlink-to-child followed by .. whose lexical parent differs from its physical parent. Native Windows adds canonical and mixed-separator forms. Symlink setup is Unix-only; it does not require Windows symlink privileges.

The control requires nonempty predicate/related-test evidence and literal repository-relative file names; it compares ordered probes, canonical gaps, classification, RIPR evidence, related tests, summary and analysis outcome without normalizing or sorting the output. Every invocation repeats and must produce identical complete stdout bytes. A subsequent committed predicate edit must change the predicate ID.

Selected-root fields and generated next-action commands retain their existing independent contracts and are excluded from the cross-spelling projection. Full stdout repetition still checks determinism for an identical invocation. No recovery-command candidate is modified.

Validation and discriminator

Environment: Linux x86_64, Bash, Rust/Cargo 1.95.0, default product features; serialized Cargo with CARGO_BUILD_JOBS=2, CARGO_PROFILE_DEV_DEBUG=0, CARGO_INCREMENTAL=0, owned target /workspace/path-identity-control/target.

  • Exact base: worktree doctor, successful independently checked zero-path selector / check-fast, cargo check -p ripr --all-targets, and binary build passed. An initial ten-run CLI matrix retained identical nonempty finding identity/evidence/summary; identical-invocation JSON bytes matched. Root spellings were echoed in root/action fields; those are not an analyzer defect.
  • Targeted new control: 1 passed / 0 failed / 0 ignored on candidate source before commit.
  • Wrong-implementation experiment: a separate disposable worktree at the committed head changed the production ID input from &context.changed.path to &context.root.join(&context.changed.path). The new control reached completed nonempty analyses and failed the intended repo versus repo/. identity comparison: 0 passed / 1 failed / 0 ignored, native exit 101. The submitted candidate stayed unchanged.
  • Exact committed head: cargo test -p ripr --test native_path_roots passed 6/6, zero ignored; this includes four root journeys and two shared fixture-helper tests. The new journey performs 18 real CLI calls including repetition and its material-change control.
  • Exact committed head: check-process-policy, check-fast (stable three-path selector, 10 gates), ci-policy, and precommit all completed native 0. Both aggregate reports bind this head/base and all three paths with no limitations. precommit passed ripr and xtask all-target Clippy. Check-fast's own Clippy skip is retained honestly.
  • Full execution artifacts, mutation patch/log and hashed gate receipts, 27,149 UTF-8 bytes, SHA256 ba4aecce0716d16108dd5f6519515fe3e96d160c7c77786b264f5c2a0040d57d; full remote body readback matches the staged bytes.

No fresh full workspace test/nextest, golden, dogfood, release/package, native Windows or native macOS run is claimed. This evidence-only patch changes no analyzer output/goldens. The exact-base all-target check is carried-forward compilation evidence for unchanged targets; the changed integration target ran on the committed head.

Changelog disposition: no fragment, under docs/CHANGELOG_POLICY.md; this only adds regression evidence and its spec/test mapping, with no user behavior/API/output/workflow or documentation-system change.

Rollback: revert the three-file test/spec/traceability commit. Exact-head COMMENT review incorporates a separate read-only source/oracle reviewer and its inspection of the actual mutant failure. No material source/oracle finding. Gemini/CodeRabbit quota responses supplied no provider review. Hosted qualification, native Windows/macOS and final integration review remain REVIEW_INCOMPLETE.

Publication readback: Draft head remains b98484e8d; main was observed at 7070f8142e8dafd31bd60f63a86d1c31a7b56cc2. Its only intervening commit is #8941's separate xtask change; the relevant product/test/instruction owners are unchanged. No restack or combined-tree pass is claimed. No qualification labels or Ready transition were requested.

Continuation

Owner / governing claim: bounded equivalent-root control lane; coordinating parent owns follow-through
Candidate: b98484e8deb6f87a541ac065d74f27ba1248057d / basis 1e9468f4b0d133f0a50b64134318763d8cf48beb / tree 8dfbb736c1a42de46bdc438ab79bf4d60ebc73e8
Review: independent exact-head source/oracle inspection and native COMMENT 5580867407 complete; REVIEW_INCOMPLETE for hosted/platform/integration evidence
Validation: exact-head native_path_roots 6 passed; wrong-implementation 1 failed as intended; process policy / check-fast / ci-policy / precommit native0; artifacts in comment 6283660711; native Windows/macOS and hosted qualification unrun
Dependency: none for this evidence-only candidate; preserve all separate candidate and release holds
Next: coordinating parent reconciles published source/review/evidence and selects any further qualification; keep Draft, with no merge/release/deployment action from this lane

Source-of-truth Links

Governing issue or accepted claim: Deterministic analysis identity and repository-relative findings across equivalent selected-root spellings (RIPR-SPEC-0170)
Acceptance delta (one sentence): One real-binary regression proves equivalent root spellings keep ordered probe identities, gaps, classifications, evidence and related tests, with repeated JSON byte-identical, and the spec and traceability map it.

Swarm / Source Boundary

  • ordinary feature, analyzer, editor, docs, spec, fixture, badge, dependency, or repo-ops development for ripr-swarm

Generated by Claude Code

@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 20, 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 40 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 95 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
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: d9e7099e-619a-4dc2-ae78-48693b5899d7
📥 Commits

Reviewing files that changed from the base of the PR and between 9657ca7 and 7c3fcef.

📒 Files selected for processing: 3
  • .ripr/traceability.toml
  • crates/ripr/tests/native_path_roots.rs
  • docs/specs/RIPR-SPEC-0170-stable-cross-platform-path-text.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@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.

COMMENT — REVIEW_INCOMPLETE at b98484e (tree 8dfbb736c1a42de46bdc438ab79bf4d60ebc73e8), source basis 1e9468f. Author-account review record, incorporating a separate read-only exact-head reviewer.

No actionable source/oracle findings emitted. Inspected the complete three-file diff, native fixture/process helpers, production probe-ID and location-rendering owners, spec0170 and traceability. The real CLI path requires nonempty predicate/test subjects, literal relative locations, producer ordering, independent physical-root equivalence and repeated raw JSON. The material predicate edit checks ID invalidation. The shared command helper retains inherited CWD for existing consumers and does not add a process-launch site.

Observed by this lane: exact-head native_path_roots 6 passed / 0 failed / 0 ignored. Separate source reviewer read the actual one-line root-dependent-ID mutation and its retained failure log: completed nonempty analyses precede the intended repo versus repo/. comparison failure. The mutant is absent from the submitted tree. That reviewer ran no Cargo commands and did not independently observe native exit status; this lane observed native 101.

Current main 7070f81 contains the separate #8941 xtask change. The native-root test, analyzer/path owners and current instructions have no intervening delta; no combined-tree result is claimed.

Residuals: aggregate local policy is still running under this lane's retained driver; hosted qualification, native Windows/macOS execution and final integration review are unrun. Source review is complete, but this is not merge clearance. Keep Draft. Generated recovery-command candidates, security settings, release and deployment holds remain untouched.

Copy link
Copy Markdown
Member Author

Exact-candidate execution artifacts for b98484e, tree 8dfbb736c1a42de46bdc438ab79bf4d60ebc73e8; accepted source basis 1e9468f. Linux x86_64 / Bash / Rust-Cargo 1.95.0. Source and full patch are retained in this PR and its pushed branch. These complete text artifacts are receiver-readable here; local executable custody is not claimed as an uploaded artifact.

Commands used the owned candidate target and the following environment:

export CARGO_HOME=/workspace/.cargo RUSTUP_HOME=/workspace/.rustup
export PATH=/workspace/.cargo/bin:$PATH
export CARGO_TARGET_DIR=/workspace/path-identity-control/target
export CARGO_BUILD_JOBS=2 CARGO_PROFILE_DEV_DEBUG=0 CARGO_INCREMENTAL=0
cargo test -p ripr --test native_path_roots
cargo xtask check-process-policy
cargo xtask check-fast
cargo xtask ci-policy
cargo xtask precommit

Every listed command completed native 0. Both ci-policy and precommit reports bind the committed candidate and the complete expected three-path change set, with no limitations. Check-fast selected those three paths but skipped Clippy; ci-policy deliberately excludes it. Precommit actually passed ripr and xtask all-target Clippy, with zero skips. The exact-base all-target compile in the PR body remains a separate carried-forward result. Native Windows/macOS, full hosted qualification, complete workspace tests/nextest, goldens, dogfood and package/release proof were not rerun.

Source/oracle review is recorded as COMMENT / REVIEW_INCOMPLETE in review 5580867407. Gemini and CodeRabbit returned quota notices, not substantive provider reviews. The current empty inline-thread snapshot is not treated as review. The PR remains Draft; no qualification labels, settings, merge, release or deployment actions were made. Coordinating parent owns further qualification and integration decisions under the surviving holds.

For the negative control, a separate worktree at the same commit applied only the patch below and ran the new exact test selector. It failed after successful nonempty analyses at the intended cross-spelling equality (native 101); it is not a failing submitted candidate. The source-test fixture's material predicate change also passed its ID-invalidation assertion on the real candidate. No production repair is claimed.

Candidate CLI SHA256: 96dfa685bc3678731273f674415bf5ab7c36e0c50787fe95a3614c3dfa33cc41. Initial exact-base smoke CLI SHA256: 48b80b0b8b8c68246b68b40dfe5c92b3365d561c2aa62a5c841c85887399f6ab. The initial ten-run smoke belongs to base 1e9468f, not the committed candidate. The retained wrong-implementation CLI has its separate hash in the local manifest; only its complete source patch and execution log are delivered here.

Observed UTC: 2026-10-20T04:51:32.970087+00:00

Artifact manifest (hashes cover the exact UTF-8 file bytes inside each fence):

[
  {
    "artifact": "candidate-native-tests.log",
    "bytes": 799,
    "sha256": "cf06b1858bfccfd6afcc2fda0e85d8f40d0cc68698052304f469191ba5086979"
  },
  {
    "artifact": "root-dependent-id-mutant.patch",
    "bytes": 563,
    "sha256": "6c58b0c233dac439ebceed0537c9da14385d117af9f9c0257c256c36f3f7bc22"
  },
  {
    "artifact": "mutant-test.log",
    "bytes": 12011,
    "sha256": "2972a84de6eed24073d8228e4a89235da41d879e124d1891e509a56db1a6aa7f"
  },
  {
    "artifact": "check-fast.md",
    "bytes": 1314,
    "sha256": "05521df3d5b3fa3442dae11caee0114f625ff3505a9a2300637ad700863879b3"
  },
  {
    "artifact": "check-fast-selector.md",
    "bytes": 144,
    "sha256": "2910519ceb1d948a6088dc1bea32d6834b148965fe34dcff9f85eea0e001fd0c"
  },
  {
    "artifact": "ci-policy.json",
    "bytes": 3313,
    "sha256": "30dc0dfc62c1c55bca1e72c81123ebdf8ada1aa92afcb769c612e37e70dd1f82"
  },
  {
    "artifact": "precommit-v2.json",
    "bytes": 4720,
    "sha256": "e91e37c0ec1c35491e0b607fef8cc0f92a3c6b88f21fb351db075135147291d5"
  }
]

candidate-native-tests.log

   Compiling ripr v0.11.0 (/workspace/path-identity-control/crates/ripr)
    Finished `test` profile [unoptimized] target(s) in 53.24s
     Running tests/native_path_roots.rs (target/debug/deps/native_path_roots-55b00665eec56961)

running 6 tests
test common::fixture_git::tests::resolves_the_subcommand_past_global_options ... ok
test common::fixture_git::tests::zero_deadline_reports_timeouts_without_retrying_state ... ok
test unicode_root_check_and_file_fact_cache_round_trip ... ok
test long_root_check_round_trips_or_names_the_windows_path_limit ... ok
test spaced_root_check_and_file_fact_cache_round_trip ... ok
test equivalent_root_spellings_preserve_analysis_identity_and_repeated_json ... ok

test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.61s

root-dependent-id-mutant.patch

diff --git a/crates/ripr/src/analysis/probes/diff.rs b/crates/ripr/src/analysis/probes/diff.rs
index f3d5ae6c6..9c97a42b8 100644
--- a/crates/ripr/src/analysis/probes/diff.rs
+++ b/crates/ripr/src/analysis/probes/diff.rs
@@ -1312,7 +1312,7 @@ fn build_probe(
     let norm_expr = normalize_expression(text);
     // Ordinal 1 here; post-hoc dedup in probes_for_file handles collisions.
     let id = diff_probe_id(
-        &context.changed.path,
+        &context.root.join(&context.changed.path),
         &family,
         owner.as_ref(),
         &norm_expr,

mutant-test.log

   Compiling ripr v0.11.0 (/workspace/path-identity-mutant/crates/ripr)
    Finished `test` profile [unoptimized] target(s) in 54.12s
     Running tests/native_path_roots.rs (/workspace/path-identity-control/target/debug/deps/native_path_roots-55b00665eec56961)

running 1 test
test equivalent_root_spellings_preserve_analysis_identity_and_repeated_json ... FAILED

failures:

---- equivalent_root_spellings_preserve_analysis_identity_and_repeated_json stdout ----

thread 'equivalent_root_spellings_preserve_analysis_identity_and_repeated_json' (8546) panicked at crates/ripr/tests/native_path_roots.rs:467:9:
assertion `left == right` failed: analysis identity changed for /workspace/path-identity-mutant/target/ripr-native-root-equivalent-8545-1792471297367387396-0/it's ünïcødé 😀 repo/. from /workspace/path-identity-mutant/target/ripr-native-root-equivalent-8545-1792471297367387396-0
  left: Object {"analysis_outcome": Object {"analysis_complete": Bool(true), "outcome": Object {"claim_boundary": String("Static analysis outcome only; no correctness, test-adequacy, runtime-execution, or merge-readiness claim."), "counts": Object {"candidate_line_count": Number(2), "changed_file_count": Number(1), "changed_line_count": Number(4), "finding_count": Number(2), "probe_count": Number(2)}, "identity": Object {"base_revision": String("HEAD~1"), "config_identity": Null, "git_candidate_subject": Null, "input_identity": String("sha256:a043ec79b2c84ac4aad75820abc006adac99f40a1ba3b3bb7a0e58e49d548578"), "repository_identity": Null, "root_identity": Null, "snapshot_identity": Null}, "kind": String("complete_with_findings"), "limitations": Array [], "schema_version": String("0.1")}}, "findings": Array [Object {"canonical_gap": Object {"behavior_kind": String("static_unknown"), "file": String("src/lib.rs"), "id": String("gap:rust:src/lib.rs:gate_state:static_unknown:static_unknown:pub_fn_gate_state_flag_bool->bool"), "language": String("rust"), "normalized_discriminator": String("pub_fn_gate_state_flag_bool->bool"), "owner": String("gate_state"), "probe_kind": String("static_unknown")}, "canonical_gap_id": String("gap:rust:src/lib.rs:gate_state:static_unknown:static_unknown:pub_fn_gate_state_flag_bool->bool"), "classification": String("static_unknown"), "probe": Object {"delta": String("unknown"), "expression": String("pub fn gate_state(flag: bool) -> bool {"), "family": String("static_unknown"), "file": String("./src/lib.rs"), "id": String("probe:workspace_path-identity-mutant_target_ripr-native-root-equivalent-8545-1792471297367387396-0_it's ünïcødé 😀 repo_._src_lib.rs:static_unknown:5035911c"), "line": Number(1)}, "related_tests": Array [Object {"file": String("tests/end_to_end.rs"), "line": Number(2), "name": String("gate_state_passes_the_flag"), "oracle": String("assert!(native_root::gate_state(true));"), "oracle_kind": String("relational_check"), "oracle_strength": String("unknown"), "relation_confidence": String("high"), "relation_reason": String("direct_owner_call")}], "ripr": Object {"discriminate": Object {"confidence": String("low"), "state": String("unknown"), "summary": String("Assertions exist, but oracle strength is unknown")}, "infect": Object {"confidence": String("unknown"), "state": String("unknown"), "summary": String("Changed syntax is not mapped to a high-confidence probe family")}, "observe": Object {"confidence": String("medium"), "state": String("yes"), "summary": String("A related test observes a value or effect near the changed behavior")}, "propagate": Object {"confidence": String("low"), "state": String("unknown"), "summary": String("No propagation model is available for this changed syntax")}, "reach": Object {"confidence": String("medium"), "state": String("yes"), "summary": String("Related tests appear to reach gate_state: gate_state_passes_the_flag")}}}, Object {"canonical_gap": Object {"behavior_kind": String("predicate_boundary"), "file": String("src/lib.rs"), "id": String("gap:rust:src/lib.rs:gate_state:predicate_boundary:predicate:flag"), "language": String("rust"), "normalized_discriminator": String("flag"), "owner": String("gate_state"), "probe_kind": String("predicate")}, "canonical_gap_id": String("gap:rust:src/lib.rs:gate_state:predicate_boundary:predicate:flag"), "classification": String("infection_unknown"), "probe": Object {"delta": String("control"), "expression": String("flag"), "family": String("predicate"), "file": String("./src/lib.rs"), "id": String("probe:workspace_path-identity-mutant_target_ripr-native-root-equivalent-8545-1792471297367387396-0_it's ünïcødé 😀 repo_._src_lib.rs:predicate:69ea09b4"), "line": Number(2)}, "related_tests": Array [Object {"file": String("tests/end_to_end.rs"), "line": Number(2), "name": String("gate_state_passes_the_flag"), "oracle": String("assert!(native_root::gate_state(true));"), "oracle_kind": String("relational_check"), "oracle_strength": String("weak"), "relation_confidence": String("high"), "relation_reason": String("direct_owner_call")}], "ripr": Object {"discriminate": Object {"confidence": String("high"), "state": String("weak"), "summary": String("Only relational oracle found; it may not discriminate the changed value exactly")}, "infect": Object {"confidence": String("low"), "state": String("unknown"), "summary": String("Predicate changed, but no literal boundary was visible in the changed expression")}, "observe": Object {"confidence": String("medium"), "state": String("yes"), "summary": String("A related test observes a value or effect near the changed behavior")}, "propagate": Object {"confidence": String("medium"), "state": String("yes"), "summary": String("Changed behavior appears to influence returned value: true")}, "reach": Object {"confidence": String("medium"), "state": String("yes"), "summary": String("Related tests appear to reach gate_state: gate_state_passes_the_flag")}}}], "summary": Object {"changed_files_by_language": Array [Object {"files": Number(1), "language": String("rust")}], "changed_rust_files": Number(1), "exposed": Number(0), "findings": Number(2), "infection_unknown": Number(1), "no_static_path": Number(0), "probes": Number(2), "propagation_unknown": Number(0), "reachable_unrevealed": Number(0), "static_unknown": Number(1), "weakly_exposed": Number(0)}}
 right: Object {"analysis_outcome": Object {"analysis_complete": Bool(true), "outcome": Object {"claim_boundary": String("Static analysis outcome only; no correctness, test-adequacy, runtime-execution, or merge-readiness claim."), "counts": Object {"candidate_line_count": Number(2), "changed_file_count": Number(1), "changed_line_count": Number(4), "finding_count": Number(2), "probe_count": Number(2)}, "identity": Object {"base_revision": String("HEAD~1"), "config_identity": Null, "git_candidate_subject": Null, "input_identity": String("sha256:a043ec79b2c84ac4aad75820abc006adac99f40a1ba3b3bb7a0e58e49d548578"), "repository_identity": Null, "root_identity": Null, "snapshot_identity": Null}, "kind": String("complete_with_findings"), "limitations": Array [], "schema_version": String("0.1")}}, "findings": Array [Object {"canonical_gap": Object {"behavior_kind": String("static_unknown"), "file": String("src/lib.rs"), "id": String("gap:rust:src/lib.rs:gate_state:static_unknown:static_unknown:pub_fn_gate_state_flag_bool->bool"), "language": String("rust"), "normalized_discriminator": String("pub_fn_gate_state_flag_bool->bool"), "owner": String("gate_state"), "probe_kind": String("static_unknown")}, "canonical_gap_id": String("gap:rust:src/lib.rs:gate_state:static_unknown:static_unknown:pub_fn_gate_state_flag_bool->bool"), "classification": String("static_unknown"), "probe": Object {"delta": String("unknown"), "expression": String("pub fn gate_state(flag: bool) -> bool {"), "family": String("static_unknown"), "file": String("./src/lib.rs"), "id": String("probe:workspace_path-identity-mutant_target_ripr-native-root-equivalent-8545-1792471297367387396-0_it's ünïcødé 😀 repo_src_lib.rs:static_unknown:5b16aca7"), "line": Number(1)}, "related_tests": Array [Object {"file": String("tests/end_to_end.rs"), "line": Number(2), "name": String("gate_state_passes_the_flag"), "oracle": String("assert!(native_root::gate_state(true));"), "oracle_kind": String("relational_check"), "oracle_strength": String("unknown"), "relation_confidence": String("high"), "relation_reason": String("direct_owner_call")}], "ripr": Object {"discriminate": Object {"confidence": String("low"), "state": String("unknown"), "summary": String("Assertions exist, but oracle strength is unknown")}, "infect": Object {"confidence": String("unknown"), "state": String("unknown"), "summary": String("Changed syntax is not mapped to a high-confidence probe family")}, "observe": Object {"confidence": String("medium"), "state": String("yes"), "summary": String("A related test observes a value or effect near the changed behavior")}, "propagate": Object {"confidence": String("low"), "state": String("unknown"), "summary": String("No propagation model is available for this changed syntax")}, "reach": Object {"confidence": String("medium"), "state": String("yes"), "summary": String("Related tests appear to reach gate_state: gate_state_passes_the_flag")}}}, Object {"canonical_gap": Object {"behavior_kind": String("predicate_boundary"), "file": String("src/lib.rs"), "id": String("gap:rust:src/lib.rs:gate_state:predicate_boundary:predicate:flag"), "language": String("rust"), "normalized_discriminator": String("flag"), "owner": String("gate_state"), "probe_kind": String("predicate")}, "canonical_gap_id": String("gap:rust:src/lib.rs:gate_state:predicate_boundary:predicate:flag"), "classification": String("infection_unknown"), "probe": Object {"delta": String("control"), "expression": String("flag"), "family": String("predicate"), "file": String("./src/lib.rs"), "id": String("probe:workspace_path-identity-mutant_target_ripr-native-root-equivalent-8545-1792471297367387396-0_it's ünïcødé 😀 repo_src_lib.rs:predicate:ef1ab349"), "line": Number(2)}, "related_tests": Array [Object {"file": String("tests/end_to_end.rs"), "line": Number(2), "name": String("gate_state_passes_the_flag"), "oracle": String("assert!(native_root::gate_state(true));"), "oracle_kind": String("relational_check"), "oracle_strength": String("weak"), "relation_confidence": String("high"), "relation_reason": String("direct_owner_call")}], "ripr": Object {"discriminate": Object {"confidence": String("high"), "state": String("weak"), "summary": String("Only relational oracle found; it may not discriminate the changed value exactly")}, "infect": Object {"confidence": String("low"), "state": String("unknown"), "summary": String("Predicate changed, but no literal boundary was visible in the changed expression")}, "observe": Object {"confidence": String("medium"), "state": String("yes"), "summary": String("A related test observes a value or effect near the changed behavior")}, "propagate": Object {"confidence": String("medium"), "state": String("yes"), "summary": String("Changed behavior appears to influence returned value: true")}, "reach": Object {"confidence": String("medium"), "state": String("yes"), "summary": String("Related tests appear to reach gate_state: gate_state_passes_the_flag")}}}], "summary": Object {"changed_files_by_language": Array [Object {"files": Number(1), "language": String("rust")}], "changed_rust_files": Number(1), "exposed": Number(0), "findings": Number(2), "infection_unknown": Number(1), "no_static_path": Number(0), "probes": Number(2), "propagation_unknown": Number(0), "reachable_unrevealed": Number(0), "static_unknown": Number(1), "weakly_exposed": Number(0)}}
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    equivalent_root_spellings_preserve_analysis_identity_and_repeated_json

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 5 filtered out; finished in 0.23s

error: test failed, to rerun pass `-p ripr --test native_path_roots`

check-fast.md

# check-fast report

Status: pass

Selector: passed
Base: origin/main

Ran:
- fmt --check
- check-static-language
- check-command-catalog
- check-support-tiers
- check-covered-by
- check-process-policy
- check-network-policy
- check-generated
- check-generated-clean
- check-lint-policy

Skipped:
- cli-help-parity
- check-no-panic-family
- check-allow-attributes
- check-file-policy
- clippy
- check-fixture-contracts

## Child command diagnostics

Diagnostic observations of existing child calls in this invocation only. Missing rows/values are unavailable evidence, never zero compilation or completed work. Elapsed scopes differ; the captured runner polls exit and excludes pipe draining; enforced timeout duration includes termination/reaping and Unix process-group confirmation where applicable. Cargo progress counts recognize stderr lines only, not compiler-unit identities, completed artifacts, reuse proof or redundant compilation. These diagnostics waive no gate. Capture scope: fmt and workspace Clippy inherit streams; selected CLI help parity captures streams and reports recognized Cargo stderr progress.

- program="cargo"; argv=["fmt", "--check"]; outcome=pass; status=exit status: 0; exit_code=0; elapsed_ms=11118; elapsed_scope=inherited_status_call_including_launch; cargo_progress=unavailable

check-fast-selector.md

# check-fast selector

Status: pass
Base ref: origin/main
Selector: stable
Changed files: 3
Detail: selector and conditional gate receipt agree

ci-policy.json

{
  "schema_version": "0.2",
  "composition": "ci_policy",
  "status": "pass",
  "failure_kind": null,
  "repository_root": "$REPO",
  "head_sha": "b98484e8deb6f87a541ac065d74f27ba1248057d",
  "merge_base_ref": "origin/main",
  "merge_base_sha": "1e9468f4b0d133f0a50b64134318763d8cf48beb",
  "change_set": {
    "changes": [
      {
        "kind": "modified",
        "path": ".ripr/traceability.toml",
        "old_path": null,
        "origins": [
          "committed"
        ]
      },
      {
        "kind": "modified",
        "path": "crates/ripr/tests/native_path_roots.rs",
        "old_path": null,
        "origins": [
          "committed"
        ]
      },
      {
        "kind": "modified",
        "path": "docs/specs/RIPR-SPEC-0170-stable-cross-platform-path-text.md",
        "old_path": null,
        "origins": [
          "committed"
        ]
      }
    ],
    "complete": true,
    "limitations": []
  },
  "impact_plan": {
    "impacted_packages": [
      "ripr",
      "xtask"
    ],
    "workspace_clippy": false,
    "workspace_widening_reason": null,
    "skipped_reason": null
  },
  "commands": [
    {
      "command": "cargo metadata --format-version 1 --no-deps --manifest-path $REPO/Cargo.toml",
      "outcome": "pass",
      "detail": null,
      "diagnostic": null
    },
    {
      "command": "existing repository policy precommit",
      "outcome": "pass",
      "detail": null,
      "diagnostic": null
    },
    {
      "command": "git diff --check 1e9468f4b0d133f0a50b64134318763d8cf48beb...HEAD",
      "outcome": "pass",
      "detail": null,
      "diagnostic": {
        "program": "git",
        "argv": [
          "-C",
          "$REPO",
          "diff",
          "--check",
          "1e9468f4b0d133f0a50b64134318763d8cf48beb...HEAD"
        ],
        "outcome": "pass",
        "status": "exit status: 0",
        "exit_code": 0,
        "elapsed_ms": 100,
        "elapsed_scope": "runner_start_to_observed_exit_excluding_pipe_drain",
        "cargo_progress": null
      }
    },
    {
      "command": "git diff --cached --check",
      "outcome": "pass",
      "detail": null,
      "diagnostic": {
        "program": "git",
        "argv": [
          "-C",
          "$REPO",
          "diff",
          "--cached",
          "--check"
        ],
        "outcome": "pass",
        "status": "exit status: 0",
        "exit_code": 0,
        "elapsed_ms": 100,
        "elapsed_scope": "runner_start_to_observed_exit_excluding_pipe_drain",
        "cargo_progress": null
      }
    },
    {
      "command": "git diff --check",
      "outcome": "pass",
      "detail": null,
      "diagnostic": {
        "program": "git",
        "argv": [
          "-C",
          "$REPO",
          "diff",
          "--check"
        ],
        "outcome": "pass",
        "status": "exit status: 0",
        "exit_code": 0,
        "elapsed_ms": 100,
        "elapsed_scope": "runner_start_to_observed_exit_excluding_pipe_drain",
        "cargo_progress": null
      }
    }
  ],
  "skipped": [
    "local selected Clippy is outside ci-policy; CI must run its explicit cargo clippy --workspace --all-targets -- -D warnings obligation"
  ],
  "limitations": [],
  "report_digest": "sha256:7cdc74267f0f88124770e6650291dd4c47d2d79f8b3ace18a8b8142b0bc10a4e"
}

precommit-v2.json

{
  "schema_version": "0.2",
  "composition": "local_precommit",
  "status": "pass",
  "failure_kind": null,
  "repository_root": "$REPO",
  "head_sha": "b98484e8deb6f87a541ac065d74f27ba1248057d",
  "merge_base_ref": "origin/main",
  "merge_base_sha": "1e9468f4b0d133f0a50b64134318763d8cf48beb",
  "change_set": {
    "changes": [
      {
        "kind": "modified",
        "path": ".ripr/traceability.toml",
        "old_path": null,
        "origins": [
          "committed"
        ]
      },
      {
        "kind": "modified",
        "path": "crates/ripr/tests/native_path_roots.rs",
        "old_path": null,
        "origins": [
          "committed"
        ]
      },
      {
        "kind": "modified",
        "path": "docs/specs/RIPR-SPEC-0170-stable-cross-platform-path-text.md",
        "old_path": null,
        "origins": [
          "committed"
        ]
      }
    ],
    "complete": true,
    "limitations": []
  },
  "impact_plan": {
    "impacted_packages": [
      "ripr",
      "xtask"
    ],
    "workspace_clippy": false,
    "workspace_widening_reason": null,
    "skipped_reason": null
  },
  "commands": [
    {
      "command": "cargo metadata --format-version 1 --no-deps --manifest-path $REPO/Cargo.toml",
      "outcome": "pass",
      "detail": null,
      "diagnostic": null
    },
    {
      "command": "existing repository policy precommit",
      "outcome": "pass",
      "detail": null,
      "diagnostic": null
    },
    {
      "command": "git diff --check 1e9468f4b0d133f0a50b64134318763d8cf48beb...HEAD",
      "outcome": "pass",
      "detail": null,
      "diagnostic": {
        "program": "git",
        "argv": [
          "-C",
          "$REPO",
          "diff",
          "--check",
          "1e9468f4b0d133f0a50b64134318763d8cf48beb...HEAD"
        ],
        "outcome": "pass",
        "status": "exit status: 0",
        "exit_code": 0,
        "elapsed_ms": 100,
        "elapsed_scope": "runner_start_to_observed_exit_excluding_pipe_drain",
        "cargo_progress": null
      }
    },
    {
      "command": "git diff --cached --check",
      "outcome": "pass",
      "detail": null,
      "diagnostic": {
        "program": "git",
        "argv": [
          "-C",
          "$REPO",
          "diff",
          "--cached",
          "--check"
        ],
        "outcome": "pass",
        "status": "exit status: 0",
        "exit_code": 0,
        "elapsed_ms": 100,
        "elapsed_scope": "runner_start_to_observed_exit_excluding_pipe_drain",
        "cargo_progress": null
      }
    },
    {
      "command": "git diff --check",
      "outcome": "pass",
      "detail": null,
      "diagnostic": {
        "program": "git",
        "argv": [
          "-C",
          "$REPO",
          "diff",
          "--check"
        ],
        "outcome": "pass",
        "status": "exit status: 0",
        "exit_code": 0,
        "elapsed_ms": 100,
        "elapsed_scope": "runner_start_to_observed_exit_excluding_pipe_drain",
        "cargo_progress": null
      }
    },
    {
      "command": "cargo clippy --manifest-path $REPO/Cargo.toml -p ripr --all-targets -- -D warnings",
      "outcome": "pass",
      "detail": null,
      "diagnostic": {
        "program": "cargo",
        "argv": [
          "clippy",
          "--manifest-path",
          "$REPO/Cargo.toml",
          "-p",
          "ripr",
          "--all-targets",
          "--",
          "-D",
          "warnings"
        ],
        "outcome": "pass",
        "status": "exit status: 0",
        "exit_code": 0,
        "elapsed_ms": 95132,
        "elapsed_scope": "runner_start_to_observed_exit_excluding_pipe_drain",
        "cargo_progress": {
          "compiling_lines": 1,
          "checking_lines": null,
          "fresh_lines": null
        }
      }
    },
    {
      "command": "cargo clippy --manifest-path $REPO/Cargo.toml -p xtask --all-targets -- -D warnings",
      "outcome": "pass",
      "detail": null,
      "diagnostic": {
        "program": "cargo",
        "argv": [
          "clippy",
          "--manifest-path",
          "$REPO/Cargo.toml",
          "-p",
          "xtask",
          "--all-targets",
          "--",
          "-D",
          "warnings"
        ],
        "outcome": "pass",
        "status": "exit status: 0",
        "exit_code": 0,
        "elapsed_ms": 93317,
        "elapsed_scope": "runner_start_to_observed_exit_excluding_pipe_drain",
        "cargo_progress": {
          "compiling_lines": 1,
          "checking_lines": 31,
          "fresh_lines": null
        }
      }
    }
  ],
  "skipped": [],
  "limitations": [],
  "report_digest": "sha256:48f8c8c9dcf6423dfb95bac450bb6771ce3bfc90e7af1a088dfaa826bfccabab"
}

@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 predicate ID material-change is gated on a single root only; spellings other than the canonical root are not re-asserted after the edit.
  • Confirm projection equality uses serde_json::json! re-serialization; ordering of object keys is preserved but Value comparisons tolerate object key reordering. A different canonical_gap textual rendering or extra ripr evidence sub-key not asserted non-null could change identity silently.

Refuted

  • The new active-view surface may contain stale-length, detachment, transfer, or resize UB.; refuted because: The patch only owns Rust paths, subprocess output, parsed serde_json values, and immutable comparisons. It introduces no ArrayBuffer, TypedArray, mutable backing store, unsafe operation, or asynchronous buffer reuse.
  • run_ripr_from could leak a child stdio handle across an async boundary or detach into a background worker that outlasts the test; refuted because: Helper uses std::process::Command::output() (synchronous, blocking) inside a plain #[test] with no #[tokio::test], no AsyncRead/AsyncWrite, and no thread::spawn. .output() fully reaps stdout/stderr into owned Vec before returning, so there is no live handle to detach or transfer; the predicate test only consumes the owned bytes via parse_json. The lane's remit (JS-backed worker/async/GC/detach/transfer) is simply not present in Rust + std::process::Command::output.

Parked follow-ups

  • This lane's remit (JS-backed memory crossing worker/async/GC/detach/transfer) has no in-scope surface in a Rust-only ripr CLI test patch; the PR body and prior reviewer comment also independently mark native Windows/macOS and hosted qualification REVIEW_INCOMPLETE, but those are out of UB-worker-handoff scope.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.
  • test runs 18 real CLI invocations but ripr exited native 0 only in author account; this lane cannot independently re-run cargo (profile disables build leases). Late cargo-test receipt is scheduled but not yet landed.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 22, 2026 02:13

Copy link
Copy Markdown
Member Author

Review of record (single reviewer, sequential angles; no sub-reviewer agents available). origin/main merged cleanly (twice; the second merge was re-checked with check-traceability, check-spec-format, check-doc-artifacts).

  • Correctness: the new real-binary control builds one Git fixture under a root with spaces, an apostrophe, non-ASCII and a non-BMP character, then runs ripr check --base HEAD~1 --json from a chosen cwd for absolute, .-suffixed, child/.., relative, ./-relative and cwd-././ spellings (plus a symlink-parent spelling on Unix). The projection compares ordered probes, canonical gap ids, classification, RIPR evidence, related tests, summary and outcome without sorting, and requires a nonempty predicate finding with its related test, so an empty comparison cannot pass. Each invocation is repeated and must produce byte-identical stdout.
  • Contract: SPEC-0170 gains the equivalent-root-spelling bullet and the test is mapped in the spec and .ripr/traceability.toml; selected-root fields and next-action commands are explicitly excluded (separate contracts).
  • Tests: cargo test -p ripr --test native_path_roots: 6 passed (including the new one) on the pre-second-merge tree; cargo xtask precommit: exit 0. Windows-only spellings are native-Windows branches not exercised by this Linux run; hosted advisory Windows lanes cover them.
  • No production, schema or dependency change.

Head reviewed: 7c3fcef

🤖 Generated with Claude Code

https://claude.ai/code/session_01NnZhkThzBwCEoDGo2rn4Yo


Generated by Claude Code

@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!

@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: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@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 reviewer attention before upstream: findings remain.

Confirmed findings

  • ub-worker-handoff scope: no JS/async/Worker/GC/detach/transfer surface in this Rust test+spec+traceability diff; all pre-seeded worker-handoff objections (stdio leak, async detach, stale buffer) are refuted by inspection of run_ripr_from. Lane emits no candidate findings.

Verification questions

  • Confirm the projection uses assert!(!finding[field].is_null()) to pin five fields but does not pin the exact key set of ripr or canonical_gap; a silent extra/missing sub-key on the production side would not be detected. Acceptance: if RIPR-SPEC-0170 intends the ripr evidence object to be a frozen schema, add an exhaustive-keys assertion. Filed as residual for human/spec confirmation rather than a blocker because the spec text says 'repository-relative file names' and producer ordering — not full schema freeze.

Refuted

  • New active-view surface could contain stale-length, detachment, transfer, or resize UB.; refuted because: Patch only owns Rust paths, subprocess output, parsed serde_json values, and immutable comparisons; no ArrayBuffer, TypedArray, mutable backing store, unsafe, or async buffer reuse.
  • Patch could introduce a wasm/JS active-view surface with stale-length, detachment, transfer, or resize UB; refuted because: Diff is Rust test + markdown spec + TOML traceability; no wasm_bindgen, no JS, no ArrayBuffer/TypedArray, no mutable backing store, no async buffer reuse introduced or touched.
  • The new test could pass with a constant or empty projection because no command output is bound to a real fixture state; refuted because: FixtureBase creates a real Git repo, a real src/lib.rs predicate with a real related_tests entry under tests/end_to_end.rs::gate_state_passes_the_flag, and a real ripr check --base HEAD~1 --json is invoked; the predicate-id change after commit proves the projection is fed by actual subprocess output rather than a constant.
  • Changing process CWD for subprocesses could detach work, leak handles, or introduce a new native lifetime hazard.; refuted because: run_ripr_from synchronously uses std::process::Command::output() in ordinary Rust tests, awaits neither async I/O nor threads, and reaps the child before returning; unsafe-review reported no new gaps.

Parked follow-ups

  • Predicate ID material-change check asserts one root only after the edit; other spellings are not re-asserted. This is a test-coverage observation, not an active-view UB concern.
  • Native Windows and macOS behavior remains qualification debt rather than evidence supporting this Linux-only run.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

@EffortlessSteven
EffortlessSteven merged commit 8166c58 into main Oct 22, 2026
48 checks passed
@EffortlessSteven
EffortlessSteven deleted the codex/path-identity-control branch October 22, 2026 03:01
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.

1 participant