Skip to content

test(xtask): cover no-package combined preparation, document positionals - #8409

Merged
EffortlessSteven merged 1 commit into
mainfrom
claude/project-thread-5f3hgf
Oct 17, 2026
Merged

EffortlessSteven merged 1 commit into
mainfrom
claude/project-thread-5f3hgf

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Before: combined_preparation_args had two review nits from #8397: no test for selectors that carry only --bin/--test (no -p), and no note on why positional words are safe to accept.

After: a regression assertion that such selectors are not merged, and a comment on the positional arm.

How: test and comment only in xtask/src/policy/file_policy.rs; no behavior change.

Verified: cargo test -p xtask --bin xtask policy::file_policy (28 pass), cargo xtask precommit pass.


Generated by Claude Code

…ionals

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J3KUnhhKPXLyZHb2mHiFbC
@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!

Copy link
Copy Markdown
Member Author

In-session proof: cargo test -p xtask --bin xtask policy::file_policy 28 pass; cargo xtask precommit pass. Diff is a comment plus one test assertion (no production behavior change), reviewed by me against #8397's bot findings.


Generated by Claude Code

@coderabbitai

coderabbitai Bot commented Oct 17, 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 24 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 62 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: 4e65b8c7-a6b8-44ae-a1c8-bce91bb3472d
📥 Commits

Reviewing files that changed from the base of the PR and between b038650 and c4a75ff.

📒 Files selected for processing: 1
  • xtask/src/policy/file_policy.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Copy link
Copy Markdown
Member Author

The red "Ripr Rust Small / Rust gates" and "Ripr Rust Small Result" checks reported here are not from this PR's head. They come from run 39009103330, which ran on the merged #8397's old head (306cd52) before this branch name was reused. That run failed cargo xtask goldens check on one_hop_field_projection* human.txt, where the plain-language summary line had not been blessed. #8351 has since blessed those goldens on main, and this PR changes only a comment and one test in xtask/src/policy/file_policy.rs. Checks on this PR's own head (c4a75ff) are green or in progress so far; I am not re-running anything.


Generated by Claude Code

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

Refuted

  • Non-mergeable --bin/--test-only selectors need a dedicated helper rather than reusing the existing mergeability arm; refuted because: Existing None arm already sets mergeable=false for any non-flag word; adding a separate matcher would duplicate logic and inflate diff surface beyond smallest fix.
  • Comment addition restates the safety invariant of the positional arm; no behavior change in production code path.
  • The new regression test passes vacuously because both selectors short-circuit before reaching the merge arm, hiding a real bug where two bin/test-only selectors are merged.; refuted because: Both selectors are Some(...) and route through combine() to the Some(SelectorKind::Bin|Test) arm, which then sets mergeable=false on the None positional/locked/offline arm. No earlier guard short-circuits; the assertion would catch the regression it claims.

Parked follow-ups

  • ripr sensor failed with exit 2; diff is comment+test, so failure is unlikely to indicate a correctness defect in this PR.

Evidence gaps

  • ripr failed exit code 2; cargo-test scheduled as late evidence. Behavior-change claim in PR body (test+comment only) is plausible but ripr receipt would confirm no AST/unsafe drift beyond comment.
  • ripr sensor failed with exit code 2; cargo-test scheduled late. No public blocker since this PR has no Rust behavior change.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 17, 2026 07:07
@EffortlessSteven
EffortlessSteven merged commit dce4b32 into main Oct 17, 2026
33 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/project-thread-5f3hgf branch October 17, 2026 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants