Repository navigation
Pin nested untracked Rust source in worktree currentness test - #10905
Conversation
A root-only pathspec now fails the test: the nested source under a spaced path must make both producer and verifier report dirty. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Dpu1AbBoAbyviXbo3msrWD
|
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 23 minutes. View limit details
Comment |
There was a problem hiding this comment.
Code Review
This pull request updates the untracked-Rust worktree currentness test to pin a nested source under a spaced path, ensuring that root-only pathspec regressions fail the test. It adds corresponding test assertions in crates/ripr/src/agent/artifact.rs to verify that untracked nested Rust sources correctly report a dirty worktree, and updates the documentation and changelog accordingly. There are no review comments to address, and I have no additional feedback to provide.
There was a problem hiding this comment.
Decision
- Needs one verification check before upstream.
Verification questions
- Confirm the test routes the nested spaced-path fixture through both the direct Git status check and validate_repo_exposure_artifact, so it covers the public currentness classification and artifact exposure behavior.
Refuted
- This PR claims a production-path fix despite being described as test-only.; refuted because: The changed Rust lines are within the tests module and add only an additional regression scenario; documentation states the prior behavior is now pinned by a committed test.
- The docs update overstates the scope of this PR.; refuted because: The wording is limited to nested-source coverage and is consistent with the test-only source change and changelog entry.
- The changelog and spec overstate the change as production behavior rather than regression coverage.; refuted because: Both additions describe the test pinning nested untracked Rust detection, matching the diff, which modifies only a test and documentation.
Evidence gaps
- Focused executable confirmation was unavailable to this lane because cargo-test evidence remained scheduled late and ripr failed with exit code 2.
- The PR's test-only scope is consistent with the patch, although the packet lacks the scheduled cargo-test receipt.
Summary
untracked_rust_sources_make_the_worktree_dirtynow also creates an untracked Rust source under a nested, spaced path (crates/nested dir/src/deep.rs) and asserts the producer and verifier both report dirty. It also asserts that removing the root-level source first restores clean.*.rswith root-only:(glob)*.rsingit_worktree_dirtymakes the test fail with "untracked nested Rust source must report dirty". The mutation was reverted and is not in this PR.Swarm / Source Boundary
ripr-swarmSource-of-truth Links
Spec: docs/specs/RIPR-SPEC-0134-repair-artifact-provenance.md
Governing issue or accepted claim: #6817 (follow-up to merged #9826)
Acceptance delta (one sentence): The nested-path behavior that review verified by hand is now pinned by a committed test.
Candidate Relationships
Candidate branch: claude/nested-untracked-currentness-test
Stack parent or prerequisite PR (if any): none (#9826 is merged)
Scope
Scope Classification
Production delta: none.
Proof
cargo test -p ripr --lib untracked_rust_sources_make_the_worktree_dirtypasses; fails under the root-only mutant.cargo xtask precommitpasses.Generated by Claude Code