Repository navigation
perf(check): classify displayed Rust stub choices once per file - #15818
Conversation
|
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 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 6 minutes. View limit details
|
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Reviewed head: c162669.
I reviewed post-expression selection, the per-row eight-candidate cap, scoped and unscoped inventory selection, content-bound cache identity, row order, hidden-row behavior, and whole-inventory failure versus an absent ID. The final version evaluates each requested ID once, keeps its original first match, and drops the classified payload before preparing another file. Its finite reference test folds the old complete-inventory search independently for each original row. The two-file native CLI control retained all 97,013 output bytes, including ten real stub commands for 20 findings. The focused 38 tests and a separate single-seam control passed. Keep the bounded timeout and final-original-incident measurement distinct in reporting. The hosted required checks and actual protected merge group remain outstanding.
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Reviewed head: e82fd51.
The preceding c162669 implementation, proof and source review still apply. The change restores a comment anchor and moves the existing reference test without changing its behavior. Before this adjustment, the prior head conflicted in two places with queued #15642 on 5c62799. I verified the heads now join in both orders at identical tree 2ccfb7ddc6706a1e6e5305d26dbc1119b70635b9. All 40 native test_stub tests passed on the joined tree. The exact full incident took 173.85 seconds on the reviewed implementation and preserved the earlier candidate's complete 767,945-byte JSON. The prior current-main 400-second trial produced no JSON. Hosted qualification on this new head and protected landing remain outstanding.
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_READY
Reviewed e82fd51. I retain the exact source judgment on per-file candidate batching, ordered ambiguity decisions, failure behavior, corpus identity and the conflict-free composition with #15642. The matched cold original and candidate used Cargo 1.95 on the full incident tree. Original 2,622.54 s / 3,480,724 KiB, candidate 173.85 s / 2,460,096 KiB. Both produced the exact same 767,945 bytes, SHA-256 0d95d529358037bcd8eb9e80547c739267d6a610679590a07c22107e811604c8; I checked the retained original file digest. A separate pair using Cargo 1.75 had the same bytes within that pair, and the narrow control identified the Cargo executable as the cause of the previously observed cross-environment differences.
Run 44826586784 passed for this head, including required Result 136622776414. Its different synthetic PR input took 341.524 s for the scoped check and two canonical snapshots timed out with an explicit unavailable result. Those costs remain separate from the incident replay. No unresolved review threads. The shared account already placed this exact head in native queue entry MQE_lQDOSiSx0c8AAAABQxiIB84ABWODzgQxDXY. This final review supports that existing entry and its subsequent protected qualification.
|
Native composition break at Native readback: 44964126769, candidate 01:05 UTC rebuild: 44968683378, candidate |
#15642 landed stub_route_seam_choice, a production caller of stub_route_for_finding, after this branch gated that helper to tests. The queue composition stopped at E0425. The helper already completes through the batched route, so only the cfg gate goes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmo5LTikCwnHLzQsL5J
|
Composition repair on Local proof: Generated by Claude Code |
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Independent source-only review of facc34a6395ac40f830432701352d1b586fd09a2 on main 7cf9cd6d61feb6c2f4ea58d2ca1a0b8fa51adce2 for the #15642 interaction. The last commit removes the test-only gate from the existing single-finding helper and adds a comment; it doesn't introduce a second classifier or alter the route choice. The production stub_route_seam_choice caller can now use it. The wrapper and the check path still share finish_stub_routes; check completes the combined visible/hidden plans once, dedupes eligible IDs per scoped file, and restores prior row order. Ambiguous or withheld candidates do not get an executable seam command, and incomplete inventory or an absent/over-limit choice still withholds advice.
No source blocker found in the composition delta. The author reports exact-head cargo check --all-targets and formatting passed; the local lib test build did not complete. I did not rerun Rust tests. Hosted 44950373629 stopped at the former review attestation before Rust jobs, so the fresh hosted and native qualification, including the ambiguous single-route and batched work-count controls, still need to pass. Technical COMMENT only; no merge approval.
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Head facc34a6395ac40f830432701352d1b586fd09a2 (open-PR drain). Scope of this pass is the delta since the previously attested head e82fd51e27: a clean merge of main at 7cf9cd6d61 plus one repair commit. The repair removes the #[cfg(test)] gate from stub_route_for_finding because main's stub_route_seam_choice calls it in the production build; the body is unchanged and still completes through finish_stub_routes.
The earlier source review of e82fd51e27 stands for everything else; the merge brought no conflict and no other file of this PR changed. Proof on this head: cargo check -p ripr --all-targets and cargo fmt --check pass locally. The test run is not established locally (the lib test binary cannot be linked in this container) and is requested from hosted qualification.
Generated by Claude Code
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_READY
Final pre-enqueue pass on facc34a6395ac40f830432701352d1b586fd09a2 (open-PR drain). Hosted qualification on this exact head is green: https://github.com/EffortlessMetrics/ripr-swarm/actions/runs/44951392767/job/137004717012 (Rust gates, both test shards, shard verification and Ripr Rust Small Result). That run supplies the test evidence the source review on this head recorded as missing locally. No review thread is unresolved and no new finding was posted on this head. The queue run on the composed tree is the remaining proof.
Generated by Claude Code
Summary
A Rust finding can refer to several seams on one line. Validating which commands to print previously classified every seam in the file for each requested inventory. This collects the displayed candidates by file and resolves their eligible seam IDs together against the full evidence corpus.
Swarm / Source Boundary
Source-of-truth Links
Proposal: #15682.
Spec: RIPR-SPEC-0122, bounded human check output, and RIPR-SPEC-0431, complete stub-guidance reuse.
ADR: existing staged evidence and cache contracts.
Plan item: #15682 production reproduction and route equivalence.
Governing issue or accepted claim: #15682.
Acceptance delta (one sentence): a batch of eligible stub choices resolves each scoped file once and preserves the advice each row receives.
Candidate Relationships
Candidate branch (GitHub PR head is authoritative after publication): perf/15682-bounded-stub-inventory
Stack parent or prerequisite PR (if any): #14850 and #13542 already merged.
Proposed replacement of PR (if any; not yet accepted): none.
Acceptance retained from a replaced candidate (if any): no candidate is displaced.
Accepted winner and losing candidate disposition (when decided): standalone candidate for #15682.
The module split in #15609 reduced the workload of that PR. This change addresses ambiguity validation in the analyzer independent of that split. #13401 owns placement and #15642 owns error hints.
Scope
The check producer gathers eligible seam IDs after expression narrowing and the existing eight-candidate limit. Repeated IDs share a compact validated result. Each finding retains its original order, weak-oracle/refusal priorities and eligibility rules. An incomplete inventory still withholds advice. A distinct content-bound identity covers multi-ID results; a singleton uses the existing single-seam identity.
Scope Proof
The unbatched test oracle searches the complete inventory per candidate in original order. Increasing a file from 8 to 32 functions must still yield one preparation and two classifications across four planned rows, including a missing ID and an over-limit row. The external CLI comparison independently covers two changed files with twenty findings and ten stub commands.
Support-tier Impact
Policy Impact
Spec 0122 and its traceability entry cover how the existing navigation producer handles multiple displayed rows.
Proof
The source of the production report is the scoped JSON check used by the PR-evidence producer. The historic hosted failure bound base 17e7460 to incident head 6915b31. The November 20 local run used current-main binary 0d6b9c7 for the old producer and the same incident tree, Git diff, cold cache, native Linux Rust 1.95 debug profile and 400 s cap for both producers.
On e82fd51 the only change from c162669 is the location of one cfg(test) function and one documentation line. The complete remaining source bytes and the body of that test are identical. This avoids two textual conflicts with queued #15642 without importing its product code. Both merge orders with 5c62799 yield tree 2ccfb7ddc6706a1e6e5305d26dbc1119b70635b9. A native Rust 1.95 Linux build of that synthetic tree passed all 40 app::test_stub tests across both changes. The previous H qualification was cancelled after this ordinary fast-forward.
An additional full baseline run under a 3,600 s ceiling finished in 2,752.19 s. Its runtime PATH selected system Cargo 1.75.0, which failed offline metadata for this edition-2024 workspace. The paired 400 s runs above selected Cargo 1.95.0, which succeeded. Compared across those different environments, all 35 finding IDs, classifications, navigation routes, summary and canonical next action match. Seven findings differ in observed-value totals. One of those also differs in related-test count and another has a different displayed test and evidence path. Full JSON digests differ across those inputs. The final-binary control selecting the same system PATH finished in 203.13 s and emitted the exact 768,039 baseline bytes (SHA-256 3346eeb7165c06b9267c4a204de6edb706ad4b2c93f5feb6ff06f43edf6ba4c4). All seven discrepancies are reproducible by switching runtime PATH with the final product held constant. With the final analyzer and rustc 1.95.0 held fixed, switching only the cargo executable to 1.75.0 also reproduced all 768,039 system-environment bytes. A warm-cache Cargo 1.95.0 replay reproduced all 767,945 pinned cold-cache bytes. The subject tree was 1728e7f9ae03270b44177302a49e521a76c5aad1 and Git reported no tracked, untracked or ignored changes. The cold Cargo 1.95.0 baseline completed in 2,622.54 s (exit 0, peak RSS 3,480,724 KiB). Its full 767,945 bytes are identical to the cold and warm candidate reports, SHA-256 0d95d529358037bcd8eb9e80547c739267d6a610679590a07c22107e811604c8. On this incident the cold candidate completed 15.08 times faster and used 29.32% less peak RSS. The separate hosted PR evidence run measured 341.524 s for its own scoped check and reached the two existing canonical snapshot timeouts (125.769 s and 125.241 s). The required hosted result passed.
Claim Boundary
The measured runtime and memory apply to these inputs. The typed evidence classifier, support tiers and mutation claims retain their existing contracts. A direct standalone whole-file inventory remains available to consumers that request it.
Rollback
Revert the navigation batching, many-ID lookup and its accompanying proof together. The distinct multi-ID cache keys are advisory and unreachable from the previous producer.
Spec-Test-Code Traceability
Static Language Check
A route records a static decision about producing a Rust test stub. Runtime mutation coverage is outside this proof.
CI Economics
The historical failure spent its full 3,600 s scoped-check allowance. This change bounds classified seams per group and reuses compact outcomes. Hosted qualification uses its existing controls.
Engineering Check
Candidate collection and classification run before decisions are folded. A hidden row never triggers its unique direct route. Candidate-order and original-HEAD comparisons are exercised through real inputs.
Gates
Local proof is recorded above. Native PR and merge-group qualification are owned by the protected queue.
Closes #15682.