Skip to content

test: move bounded_input's tests out of line (#15193) - #16671

Open
EffortlessSteven wants to merge 1 commit into
mainfrom
claude/relocate-tail-pr5
Open

EffortlessSteven wants to merge 1 commit into
mainfrom
claude/relocate-tail-pr5

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Requested by Steven · project thread

Summary

Moves bounded_input.rs's inline tests to bounded_input/tests.rs. The verifier refuses this owner because one test calls line!(), only to make a temp directory name unique (prefix ripr-bounded-input-dir-, plus the process id). A new line number keeps it unique, so this is the verifier's transform with that one check relaxed; its token-identity check still ran. The process-allowlist row follows the moved Command::new.

Source-of-truth Links

Proposal: #15217
Governing issue or accepted claim: #15193
Acceptance delta (one sentence): Moves bounded_input's inline tests out of the published source.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): claude/relocate-tail-pr5
Stack parent or prerequisite PR (if any): none
Proposed replacement of PR (if any; not yet accepted): none

Scope

Production delta:

  • None. Only #[cfg(test)] code moves.

Evidence/support delta:

  • bounded_input/tests.rs (new), the owner, policy/inline-test-modules.txt, policy/process_allowlist.txt, and the traceability rows in .ripr/traceability.d/15275-lsp-artifact-file-type.toml.

Non-goals:

Proof

  • Reproduction: mechanical_relocation.py apply on base 3b7bf9e, with only the check named below relaxed, regenerates every file in this commit byte for byte (relaxed: the line! refusal).
  • mechanical_relocation.py verify refuses it as expected, so this is an ordinary PR under the size cap, not the mechanical route.
  • cargo xtask precommit exits 0 on 559ccb9; check-process-policy, check-traceability, check-architecture and indirect-owners --check exit 0.
  • Independent subagent review of this head: no findings.

Source review: REVIEW_READY 559ccb9

  • Not run locally: the moved tests in the ripr lib binary (it runs out of memory in this container). Hosted CI runs them.

Claim Boundary

May claim: these inline tests leave the published source and still compile and run as unit tests.
Must not claim: a measured .crate size change.

Rollback

Plain revert.

Static Language Check

  • Static output avoids killed, survived, untested, proven, and adequate.

CI Economics

  • n/a (no workflow change).

Generated by Claude Code

The verifier refuses this owner because a test calls line!() to make a temp
directory name unique. A new line number keeps it unique, so the move is the
verifier's transform with that one check relaxed; its token-identity check
still ran. The process-allowlist row follows the moved Command::new.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YVdGzV3JdcCDM6STapqHBr
@EffortlessSteven EffortlessSteven self-assigned this Nov 30, 2026
@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 Nov 30, 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 29 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 137 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

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 5dc308a5-d965-4e8a-966f-76ab93596bed
Commits

Reviewing files that changed from the base of the PR and between 3b7bf9e and 559ccb9.

Files selected for processing: 5

  • .ripr/traceability.d/15275-lsp-artifact-file-type.toml
  • crates/ripr/src/bounded_input.rs
  • crates/ripr/src/bounded_input/tests.rs
  • policy/inline-test-modules.txt
  • policy/process_allowlist.txt
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

SOURCE_REVIEW_READY

Head: 559ccb9

Inspected: the full diff, a byte-for-byte reproduction of every moved file with the repository's relocation transform (only the line! refusal relaxed), and an independent subagent review of this head.

  • The one line!() call only makes the temp directory ripr-bounded-input-dir-{pid}-{line} unique; nothing asserts its value and no other temp directory in the file shares that prefix.
  • No file reads bounded_input.rs as text; verdict_corpus_tests.rs passes the path string only, and the path still exists.
  • The traceability ids and the Command::new allowlist row follow the moved tests.
    Local: cargo xtask precommit exit 0 on this head; the reviewer also ran check-process-policy, check-traceability, check-architecture and indirect-owners --check (all exit 0). The moved unit tests run in hosted CI only.

Generated by Claude Code

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review November 30, 2026 07:08
@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!

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.

2 participants