Repository navigation
fix(dx): preserve native output destination identity - #7601
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
EffortlessSteven
left a comment
There was a problem hiding this comment.
reviewed_head_sha: 1833deb
integration_basis: candidate parent be2ad06; published PR base 6bd4e76; owning helper unchanged across this main tail.
claim_boundary: preserve native lexical destination identity in existing JSONL collision guards.
Inspected all five changed files, output::path::same_output_leaf/normalize_output_leaf, both policy-history and PR-ledger guard consumers, native file writes, real-CLI fixture setup and output oracles, SPEC0041 mapping, and canonical changelog disposition. The production owner uses Path components directly; a parent cancels only a Normal component, remains unresolved for a relative path, and cannot pop a rooted prefix. Native Unix backslash names retain distinct identity; Windows components retain native separator and prefix semantics.
Oracle challenge: original real binary rejects both legitimate destinations and passes the true-alias refusal. Candidate CLI writes independent report/JSONL artifacts and validates the entire appended snapshot against the report plus a literal input timestamp. The negative case rejects actual current-input aliases before writes and preserves its exact bytes. Existing dot/parent normalization tests retain the other consumer's shared guard behavior. No new process spawn site, schema or filesystem authority.
blocking_findings: none observed in source or Linux proof.
proof_and_ci_observed: exact-head output-path suite 16 passed; exact-head public CLI suite 3 passed; process policy and candidate check-fast passed, including workspace/all-target Clippy; selector agrees with independent five-path diff.
proof_or_review_missing: precommit still running; hosted required qualification and provider review not yet complete; native Windows drive-relative/rooted and separator controls not executed here.
residual_assumptions: lexical alias model only; symlink/case/cwd equivalence remains outside this patch. No complete Windows or release qualification claim. Protected PR7520 files excluded, with SPEC0041 mapping used instead of its traceability registry.
disposition: REVIEW_INCOMPLETE. Author COMMENT self-review; this is not approval or merge readiness. Continue normal qualification on this published head, obtain native Windows evidence, and refresh hosted-head review before any merge. No auto-merge armed.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
Summary by CodeRabbit
WalkthroughOutput leaf normalization now uses native path components and preserves unresolved relative parents. Unit and CLI smoke tests cover distinct destinations, path aliases, and platform-specific path behavior. ChangesOutput path identity
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~12 minutes Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to
|
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Qualification continuation on unchanged 1833deb, observed 2026-10-13 02:57 UTC: all local handles completed. Exact-head path unit tests 16 passed, public CLI tests 3 passed, process-policy/check-fast/precommit native exit 0; precommit-v2 records five changed paths and both selected Clippy children passing. The earlier self-review's pending-precommit dimension is now satisfied; overall disposition remains REVIEW_INCOMPLETE for hosted/native-Windows proof and provider findings. Required Ready run https://github.com/EffortlessMetrics/ripr-swarm/actions/runs/38339326108 is in progress; requested full Windows advisory https://github.com/EffortlessMetrics/ripr-swarm/actions/runs/38339185982 is pending. Existing subset is not the new controls' proof. No re-toggle, cancellation, auto-merge or merge. Gemini quota exhaustion is missing review, not a clean review; available UB/Droid work remains in flight. Delivery coordinator resumes by inspecting native same_output_leaf/output_leaf_identity test observations, required gates and current review findings, then refreshing exact-head review before protected integration. Full continuation and retained saved-environment witnesses are in the updated PR body. PR7520 ownership/files remain preserved. |
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- Helper still performs pure lexical comparison; symlink aliases and case-folding rebinds are explicitly out of scope per PR body, so duplicate-destination via realpath is not caught by this repair.
Verification questions
- Confirm cI smoke fixture parent directory is created via std::fs::create_dir(fixture.0.join('child')) relative to a freshly unique_temp_workspace, then report/JSONL are written and validated against the canonical report schema. No reliance on pre-existing tree state.
Refuted
Box::from(slice)allocation failure does not returnNone; recoverable fallback claims are dropped.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Independent exact-head review: no blocking source/oracle defect. REVIEW_INCOMPLETE for required hosted qualification and native Windows execution; no merge/auto-merge credit.
reviewed_head_sha: 1833deb
integration_basis: main 6bd4e76; parent/main path helper byte-identical. merge-tree native 0, combined tree e6ce065d3a5f9725c8d71dae4f186febf156e499, composition only.
claim_boundary: native lexical output-destination comparison retains unresolved parents and Unix backslash filename identity, while reducing ordinary dot/parent aliases. Issue #7594 acceptance inspected. No realpath/symlink identity, case-folding, cwd rebinding, schema or retention #7520 change.
changed_surfaces_and_semantic_owners_inspected: all five changed files; normalize_output_leaf/same_output_leaf; both policy::parse history and pr-ledger record guards before reads/writes; actual report/JSONL producers; CLI fixture setup and oracles; SPEC0041 mapping and canonical changelog. Windows drive prefixes remain components; unresolved parents are preserved for drive-relative paths but clamped at rooted paths.
blocking_findings: none.
non_blocking_suggestions: second public-consumer test coverage suggestion addressed with independent pr-ledger CLI evidence, source-backed reply confirmed and thread resolution read back.
refuted_or_stale_findings: UB's lexical-only observation is an explicit existing boundary, not an introduced defect. The new fixture creates a unique root, child and required reports directory; it does not rely on pre-existing tree state.
proof_and_ci_observed: Rust 1.95.0/Linux, clean detached candidate. Full cargo test -p ripr --lib output::path::tests::: 16/16 passed, 0 ignored. cargo test -p ripr --test cli_smoke output_leaf_identity: 3/3 passed, 451 filtered. Source-module independent controls additionally pass 12 lexical pairs (multiple leading parents, cancellation, root clamp, relative versus absolute, native backslash) and distinct non-UTF8 filenames. An initial isolated-module broad run exposed a harness stable_path_text stub limitation in an unrelated percent-escaping test; focused affected tests pass and the real full production path suite above passes. No stub result is represented as a full-crate result.
Baseline real CLI witness from #7597 has the byte-identical parent path module blob c32fe2eeccd3f7e1c3415eef616a48cbee20feea: both false-collision controls fail at same-path refusal and both alias controls pass. Exact candidate CLI version names this complete head, SHA256 7f1ac1fb2e4f8b53ff08f840567e51d57e07438eb78e48fc8c4f5fa3b7d33c56. Independent policy-history replay passes distinct parent/local and literal-backslash/directory destinations; exactly one JSONL record equals example_append_record with original generated_at pinned. Dot/parent input aliases refuse exit 2 without writes or changed input bytes.
The second pr-ledger consumer passes those same four cases: distinct destinations produce pr_evidence_ledger report with pr.number=7601 and exactly one JSONL line structurally equal to the actual report; dot/parent gate-input aliases refuse before writing and gate bytes remain unchanged. The initial independent ledger oracle used the wrong report shape; corrected against the real producer (pr.number, and JSONL is the same report object), rerun on fresh fixtures. This was a reviewer-harness error, not product failure.
proof_or_review_missing: required Routed Rust Small 38339326108 remains in progress; full Windows 38339185982 now runs but affected tests have not been observed executing. Its green always-on subset does not establish the new Windows drive-relative/rooted or native separator controls. No rerun or Ready toggle issued. Provider quota is missing review, not clean approval.
affected_currentness_dimensions: production, consumer routing, test/oracle and public contract reviewed on unchanged head; hosted/Windows qualification pending.
residual_assumptions_and_non_claims: lexical aliases only; paths containing symlinks, case aliases or ambiguous Windows cwd/drive resolution remain outside this repair. No release/deployment/settings changes.
Retained evidence: /workspace/proof-7601/{path-full.log,cli-tests.log,path-focused.log,path-independent.log,public-{red,green}.log,ledger-{red,green-verified}.log}; every public argv/exit/stdout/stderr retained in per-run receipt.json, with frozen exact-head executable. Author check-fast/precommit read as reported evidence, not relabeled as independent runs.
disposition: REVIEW_INCOMPLETE for outstanding hosted/native Windows proof; independent source/oracle/public-consumer PASS. Refresh required result, Windows executed controls, current reviews and threads before protected squash integration.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Windows qualification coverage clarified on unchanged head 1833deb.
The existing full Windows run 38339185982 / job 115109034612 covers the five affected native subjects:
- output::path::tests::same_output_leaf_keeps_unresolved_relative_parents
- output::path::tests::same_output_leaf_uses_native_separator_identity
- output::path::tests::same_output_leaf_keeps_drive_relative_parents_and_root_prefixes (Windows-only)
- output_leaf_identity::policy_history_distinguishes_parent_and_local_destinations
- output_leaf_identity::policy_history_still_refuses_native_aliases_before_writing (includes the Windows backslash/parent alias)
The Unix-only backslash-filename distinction test is intentionally not a Windows subject. The existing collapses_dot_and_parent_components unit is an additional preserved-alias control.
Exact-head workflow inspection: Test --no-default-features executes cargo test -p ripr --no-default-features --features lang-rust --no-fail-fast, including these unconditional/Windows unit and CLI tests. Both subsequent cargo test --workspace --no-fail-fast repetitions include them too. The Rust-only step has completed, and workspace run 1 is executing. Step success is not native proof because this advisory workflow captures PIPESTATUS[0] and exits 0. Required evidence is explicit per-test PASS/execution in target/nofeatures-test.log or target/windows-run{1,2}.log, plus native .status files and recorded Windows/Rust environment.
No author code/test work is currently needed: the declared tests and existing full job cover the gap. Native execution evidence is pending completion/publication of the full job logs/artifact; the always-on subset artifact does not cover these controls. A running-job log read returned BlobNotFound, so no pass is inferred. The required Rust qualifier 38339326108 has independently advanced beyond required tests/doctests/goldens/fixture contracts into verdict corpora; final Ripr Rust Small Result is still outstanding. Disposition remains REVIEW_INCOMPLETE until the actual required result and Windows test evidence are inspected. No duplicate CI or Ready toggle requested.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Final integration review: REVIEW_READY for 1833deb. The previously missing affected native Windows evidence is now inspected; no source/oracle blocker remains in this bounded comparison repair.
Independent review 5498333682 remains current (16 full path tests, three committed CLI regressions, independent real policy-history and pr-ledger consumers, true-alias refusal/no-write controls, native lexical counterexamples and duplicate input identity proof). Second-consumer suggestion thread remains addressed and resolved. Current available CodeRabbit review says no actionable comments; UB lexical-only observation is the stated existing contract and its fixture question was verified.
Required Routed Rust Small 38339326108/result115119383078 succeeded. Completed actual Rust job log: 14,906 executed/passed, two skipped; all changed Linux path/CLI controls explicitly PASS, with the complete required policy/Clippy/test/doctest/golden/fixture/corpus/PR-evidence lane successful.
Native Windows run38339185982/job115109034612 is NOT a green full matrix: its 90-minute job ended cancelled during workspace run2, and broad native suites contain failed subjects. Completed job logs were inspected, not the green advisory wrapper. Environment explicitly reports Rust1.95.0 host x86_64-pc-windows-msvc. All five affected subjects pass in three separate executions: Rust-only no-default-features, workspace run1, and the partial workspace run2:
- same_output_leaf_keeps_unresolved_relative_parents
- same_output_leaf_uses_native_separator_identity
- same_output_leaf_keeps_drive_relative_parents_and_root_prefixes (Windows-only)
- output_leaf_identity::policy_history_distinguishes_parent_and_local_destinations
- output_leaf_identity::policy_history_still_refuses_native_aliases_before_writing (Windows native backslash alias included)
The unchanged same_output_leaf_collapses_dot_and_parent_components alias control also passes each time (18 explicit PASS lines for these six subjects). Unit pass timestamps: 03:17:43,03:45:39,04:16:59 UTC; CLI passes:03:28:08,03:56:04,04:27:28. Unix-only literal-backslash-filename test is intentionally not a Windows subject.
The broader Windows failures are recorded, not hidden or called exact-base failures. Examples: integration-helper discovery credit, gap-ledger source-subject copying, /workspace versus D:/workspace command expectation, canonical //?/ drive spelling, selector retry rendering, and xtask budget/permission controls. Source inspection establishes the changed pure private helper is used only by policy-history and pr-ledger collision guards; display/human-path/provenance/discovery/xtask filesystem mechanisms are unchanged. Sample failing gap-ledger/first-useful-action paths do not call either guard, and failures observe different unchanged sinks. Thus no candidate-introduced, worsened or claim-falsifying failure was found; unrelated native Windows platform repair remains separate. No claim that the full Windows suites pass, nor that these failures were reproduced on the exact base. No duplicate Windows run is requested.
Full Windows artifact11789626784 is retained by GitHub, digest sha256:8944cfa4387c98545ebf927d66702e0bd1347339e9f3c5bb3aaee1d22b045314; completed decoded job log is the inspected execution evidence. Raw .status archive was not successfully materialized locally, so no native aggregate exit-0 claim is made.
Fresh observed main3f6114352c4158cb8dd42f5db506c9abb9133a5d; merge-tree native0, combined tree1ce13cdfd70ff3a62e87f809ef54d1d6d9a0226c, composition only. Head unchanged, no unresolved threads. Required branch context green; active ruleset requires zero approving reviews and resolved threads, permits squash without bypass. Classic full-protection read remains inaccessible; normal expected-head guarded merge must respect server enforcement. Fresh gates will be read together immediately before the action. Retention#7520/#7578, settings, release/deployment untouched.
disposition: REVIEW_READY for the claimed native lexical comparison and qualified ordinary protected integration; broader Windows suite health remains explicitly red/cancelled outside this repair.
EffortlessSteven
left a comment
There was a problem hiding this comment.
PR_MERGED — normal expected-head protected squash retry succeeded as 243a854 after fresh exact-head/check/thread/review/protection reads. Head remained 1833deb; required result115119383078 SUCCESS; current REVIEW_READY5498939597; repaired thread resolved; no requests for changes; current main b344e98 composed conflict-free (merge-tree 0/tree5ac2d40ddfd4ff6148e10ea5d88b3d2dd33a72ab). No bypass, settings changes or auto-merge.
Fetched main contains the squash result. Reviewed production output/path.rs blob16e5c51525f0abc7c3ac8762dcc8c2d637571f5d and public CLI output_leaf_identity.rs blob225f7d14497eef2a8f2fb69127cedad40973cad2 are byte-identical in the landed result. Issue7594 is closed by integration. New main-push validation is in flight, including routed Rust run38350735376 and CI38350735292; candidate-head success is not a combined-tree pass. Full Windows aggregate red/cancellation remains as recorded in the final review, with all affected Windows controls observed passing. No duplicate CI requested.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Post-merge combined-tree qualification is terminal and explicitly PARTIAL/FAILURE, not green. Exact main head243a8548b50caaf8a3b8ed830162abbbbed7daad contains #7597/#7611/#7606/#7607/#7601. CI38350735292 succeeds: Rust-only9675passed/0failed/2ignored across test summaries, Perl/package dry-run and VS Code pass; MSRV skipped.
Existing Routed Rust38350735376/job115145555531 FAILED at Verdict corpora; Result115158455871 failure. All15,020 required tests passed,2skipped; affected implicit Git boundary/cache/precedence, retained hover, output identity/refusal and work-ranking controls explicitly PASS. Formatting/policies/workspace/all-features/strict Clippy/tests/goldens/fixtures succeed; PR evidence skipped after first failure.
The sole reported corpus drift is the five existing #6670 inequality rows (assert-ne-ok-value, assert-ne-scalar, assert-ne-struct-literal, ensure-not-equal, helper-assert-not-equal): obsolete exact_value/strong expected readings versus relational_check/weak or whole_object_equality/weak. Rust oracle31/34,0overclaims,3underclaims. Source comparison against earlier mainb835 shows Rust classifier, these five expected rows and oracle ledger unchanged. An unrelated spec0117-proximity row changed but is not a failure subject. This bounded known main reconciliation is already owned by #7631 (current heade3f71dd98f6bbcdb994a0376cf591c85a1a00e66); #7627 overlaps the expected rows with additional distinct behavior. Exact failure routed to owner: #7631 (comment) . Parent must integrate the qualified existing repair; no duplicate repair or rerun of cancelled runs.
Artifact11792528414 SHA25629f3eb841fb2d761db97111937d988b2872fba57702c835c5f39d90556b09d19,392952bytes; completed decoded logs inspected, archive not materialized. Landed reviewed repairs remain present; aggregate integration proof is failed until corpus reconciliation passes. No release/deployment or protection changes.
When JSONL history output is compared with report or input paths, the shared normalizer drops leading
..and renders native paths as slash text.ripr policy history --out ../report.json --out-jsonl report.jsontherefore rejects distinct parent/local files; on Unix, a literal backslash filename also collides with a directory path.The comparison now walks native
Pathcomponents and retains unresolved relative parents. Ordinary dot/parent aliases still refuse before writing. The same helper servespr-ledger record.Closes #7594. Governing existing contract: RIPR-SPEC-0041 (JSONL history production), with SPEC0018 as the shared-helper consumer. Candidate:
1833debc3e21cb4ba75378c7669db8c7fd5aed0c; base:be2ad06fa86edf2cca68f9dd0ffb107b94c16484.Acceptance and observed proof:
Scope is one native lexical destination comparison plus tests, SPEC0041 test mapping and changelog. Changelog:
changelog.d/7594-native-output-leaf-identity.md, canonical Fixed marker, bullet and trailing #7594 reference.Ownership: all-state same_output_leaf and out-jsonl/path searches find predecessor #4878, no equivalent repair. The space-quoting lead #7349 is already fixed by merged #7360 and current main. Pre-publication main refresh
6bd4e76cce997a216f11d7841d80a14b280f4070leaves the owning helper unchanged; merge-base remains be2ad06. PR7520 and its prerequisite ownership are preserved. None of its changed files are edited; .ripr/traceability.toml is intentionally untouched, and the new test mapping is recorded directly in SPEC0041.Review: committed source, consumers, fixture setup/oracles, alias refusals, native path semantics and rollback inspected. No source blocker found; REVIEW_INCOMPLETE pending hosted checks/review and native Windows controls. Final unchanged head completed the normal Draft-to-Ready transition; no auto-merge armed. Required Routed Rust Small 38339326108 is in progress. Full Windows Advisory 38339185982, requested via windows-ci, is pending. Existing always-on Windows subset 38338977070 is not proof of these new controls. Source of Truth 38338977138 and Printed Command Paste 38338977113 passed. Gemini reports quota exhaustion, so its review is missing, not clean; UB/Droid reviews remain in flight.
Limits: lexical comparison only; no new filesystem canonicalization, symlink alias guarantee, case-folding/cwd rebinding, output schema, cache changes, process spawn allowance, credentials, release or deployment. Rollback: revert this scoped commit; no migration. No successor selected within this bounded repair.
Retained Linux RED executable SHA256: e61271fbcff07ccd35ab38054f610704e005ed23d99404b7705b06e04d49b492. The successful-record oracle was corrected before GREEN to compare with example_append_record; the RED failures occur before that assertion. Local logs and original binary are retained in the saved environment for replay, rather than relabeled as hosted proof.
Continuation handoff (2026-10-13): published head read back as 1833deb, non-draft, mergeable; REVIEW_INCOMPLETE. Next owner: delivery coordinator resumes exact-head review after the required run, native Windows test observations and available provider reviews. Do not re-toggle Ready or cancel the running qualifier. No merge attempted. For native Windows, inspect execution of output::path::tests::same_output_leaf_* and CLI output_leaf_identity tests, including drive-relative/rooted and separator controls; an advisory job's green wrapper alone is insufficient.
Saved-environment proof custody: /workspace/scratch/path-output7594 (original RED binary, candidate binary, logs, selector and precommit receipts), retained for reviewer replay. Candidate CLI binary SHA256 5bec2ee09a9e1cdc1b4d94066ff76242698d6e26c9d73e712831c18811eaa2bf. These are source-workspace witnesses, not release/installed-candidate qualification. Mutable target build state retained for this open candidate; pre-existing state preserved. Local commands have all reached native terminal status. ~17GiB free remains against 10GiB reserve; task build allowance 14GiB additional, proof allowance 1GiB.