Repository navigation
test(paths): pin analysis identity across equivalent root spellings - #8958
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 40 minutes. View limit details
Comment |
EffortlessSteven
left a comment
There was a problem hiding this comment.
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.
|
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 precommitEvery 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: 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 root-dependent-id-mutant.patch mutant-test.log check-fast.md check-fast-selector.md ci-policy.json precommit-v2.json |
There was a problem hiding this comment.
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_gaptextual rendering or extrariprevidence 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.
|
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).
Head reviewed: 7c3fcef 🤖 Generated with Claude Code https://claude.ai/code/session_01NnZhkThzBwCEoDGo2rn4Yo 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! |
There was a problem hiding this comment.
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 ofriprorcanonical_gap; a silent extra/missing sub-key on the production side would not be detected. Acceptance: if RIPR-SPEC-0170 intends theriprevidence 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_testsentry under tests/end_to_end.rs::gate_state_passes_the_flag, and a realripr check --base HEAD~1 --jsonis 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.
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
ripr-swarmdocs/spec/test-only evidence package.docs/specs/RIPR-SPEC-0170-stable-cross-platform-path-text.md; matching.ripr/traceability.tomlentry.codex/path-identity-control; headb98484e8deb6f87a541ac065d74f27ba1248057d, tree8dfbb736c1a42de46bdc438ab79bf4d60ebc73e8, base1e9468f4b0d133f0a50b64134318763d8cf48beb.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.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.&context.changed.pathto&context.root.join(&context.changed.path). The new control reached completed nonempty analyses and failed the intendedrepoversusrepo/.identity comparison: 0 passed / 1 failed / 0 ignored, native exit 101. The submitted candidate stayed unchanged.cargo test -p ripr --test native_path_rootspassed 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.check-process-policy,check-fast(stable three-path selector, 10 gates),ci-policy, andprecommitall completed native 0. Both aggregate reports bind this head/base and all three paths with no limitations.precommitpassedriprandxtaskall-target Clippy. Check-fast's own Clippy skip is retained honestly.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 at7070f8142e8dafd31bd60f63a86d1c31a7b56cc2. 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
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
ripr-swarmGenerated by Claude Code