Repository navigation
style(typescript): restore rustfmt module order on main - #4741
EffortlessSteven wants to merge 1 commit into
Conversation
#4635 added line_index_tests beside a module_entries declaration that a concurrent PR added, and the squash result on main is out of rustfmt order, so every PR's formatting gate fails on its merge ref. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FTQw4QPFK98a1kLKHyKTJQ
|
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 reachedNext included review available in 51 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Closing as a duplicate of #4739, which carries the same one-line reorder and also adds the compile fix main needs. Generated by Claude Code |
There was a problem hiding this comment.
Decision
- Needs focused proof failure resolved before upstream.
Verification questions
- Confirm single-line rustfmt reorder; no test surface changed. Lane has no blocker; recommend focused
cargo fmt --all -- --checkas the sole proof, plus late-scheduled cargo-test receipt for compilation confirmation.
Refuted
- PR claim 'cargo fmt --all -- --check exits 0' is a formatting witness, not a red/green test oracle. The fmt check is mechanical and does not require cargo-test to validate.
- The reorder might break test compilation if line_index_tests or module_entries reference symbols whose module-level declarations are order-sensitive.; refuted because: Rust mod declarations are unordered; the parent file only declares children. No #[path] or inline mod bodies in the changed hunk; the three sibling files compile independently.
- Reordering mod declarations might change module load order or test-only module visibility boundaries; refuted because: rustfmt only sorts adjacent mod items lexicographically; module linkage, cfg(test) gating, and visibility are determined by attribute syntax and pub modifiers, not declaration adjacency.
Test proof
- Focused HEAD proof failed (exit 101):
cargo test --locked --package ripr --test agent_command_journey. This is a current failure, not a red/green witness.
Parked follow-ups
- PR author states the change restores rustfmt order so
cargo fmt --all -- --checkexits 0; conflict with seeded PR-thread comment that #4741 is closed as duplicate of #4739. - Prior thread shows EffortlessSteven closed it in favor of #4739 which carries the same reorder plus a compile fix. The compile fix is out of scope for this diff and is not a tests-red-green blocker here.
- Author commented PR is duplicate of #4739 which carries the same reorder plus a compile fix; PR body still describes this as standalone formatting repair.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
Requested by Steven · project thread
Summary
cargo fmt --checkfails on main at e005ab2 incrates/ripr/src/analysis/language/typescript/mod.rs. perf(typescript): index line lookups once per source #4635 addedmod line_index_tests;next to amod module_entries;line that a concurrent PR added, and the squash result is out of rustfmt order. Every open PR'sRust gatesformatting step fails on its merge ref (seen on fix(python): bound operator and elif nesting so deep files degrade instead of overflowing the stack #4494, run 36517829307).cargo fmt --all -- --checkexits 0 on this head.Swarm / Source Boundary
Source-of-truth Links
Governing issue or accepted claim: combined-tree interaction from #4635
Acceptance delta (one sentence): main passes the formatting gate again.
Scope
modline moved; no behavior change.Scope Classification
Production delta: none.
🤖 Generated with Claude Code
https://claude.ai/code/session_01FTQw4QPFK98a1kLKHyKTJQ
Generated by Claude Code