Repository navigation
Run review-comments owner attribution under the run cancellation token - #10252
Conversation
#1604) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FrVWuPEQjhYo674kxG7wdc
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
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
Comment |
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm the focused test verifies token presence during owner attribution but does not assert that cancellation interrupts an already-running owner-attribution operation.
- Confirm the new test proves token presence, not that a large or already-expired run is interrupted inside owner attribution.
Refuted
- The changelog says a large diff can no longer spend the budget there with no checkpoint, while the PR body explicitly disclaims interior checkpoints in rust_index::build_index.
- The changelog overstates the effect: installing a cancellation token does not itself make a large diff stop at an interior checkpoint unless owner attribution consults that token.
- The fix should introduce a broader cancellation helper or refactor all analysis phases to ensure owner attribution is covered.; refuted because: Rejected: the existing with_token helper is already the established phase-level mechanism; a local wrapper around the complete owner-attribution call is the smallest complete boundary change.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
…ten changelog wording (#1604) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FrVWuPEQjhYo674kxG7wdc
|
Review of record so far (head f28b98a; supersedes b46651e) Two independent read-only reviewers inspected b46651e: (1) correctness and edge cases, (2) tests, regressions, spec and contract. Gemini and CodeRabbit were quota-limited, so they count as missing, not clean.
Generated by Claude Code |
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm the source comment says the token gives the index build an interior checkpoint to stop it, but the diff only installs a token around the complete attribution call; it does not make an already-running index build observe cancellation.
- Confirm the added tests verify token presence and the post-attribution timeout publication path, but do not directly assert interruption of an already-running attribution operation.
Refuted
- Installing the cancellation token necessarily interrupts an already-running owner-attribution index build.; refuted because: The changed code establishes phase-level token scope, not an interrupt mechanism. The PR body explicitly disclaims interior checkpoints, so the claim is false unless a separate index implementation detail is shown.
- The changelog overclaims that owner attribution cannot spend the budget without an interior stop.; refuted because: The current wording says the index build honors the time budget cooperatively, while the PR body and code comments explicitly preserve only phase-boundary enforcement; the seeded thread records this earlier objection as corrected.
- Installing the run token alone proves owner attribution is stopped at an interior checkpoint.; refuted because: The diff establishes token installation, while interruption semantics depend on the attribution implementation consulting the token; the PR wording intentionally limits the claim to cooperative behavior and the seeded thread resolved the earlier overstatement.
- Wrapping only the attribution call introduces duplicated token scoping or leaks scope across phases.; refuted because: The wrapper owns a scoped phase boundary, follows the existing helper used by other analysis phases, and leaves the subsequent deadline check outside the scope where needed.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
|
Reply to the github-actions "Needs verification" review of f28b98a. No change needed.
Generated by Claude Code |
|
Required CI on f28b98a is red, and it is not this PR's. All 21094 tests passed; the job then failed at Fix of record is #10269 (re-blesses the 14 drifting fixtures; #10273 is a duplicate). No re-run is available to me without dispatching the routed workflow, which is not allowed on a PR branch. Once #10269 lands I will merge main into this branch and re-apply Generated by Claude Code |
…2 traceability (#1604) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FrVWuPEQjhYo674kxG7wdc
|
Head is now 573fec5 (main merged in, then one repair).
Waiting on the required result for 573fec5. Generated by Claude Code |
There was a problem hiding this comment.
Decision
- Needs one verification check before upstream.
Verification questions
- Confirm the new token test proves scope but not interruption inside a real index build.
Refuted
- The diff causes an already-running owner-attribution index build to observe cancellation directly.; refuted because: The wrapper installs the token, but the added tests do not prove prompt interruption of a real index build; the conservative changelog wording and seeded-thread clarification avoid promising that stronger behavior.
- The timeout test claims to prove real index cancellation.; refuted because: The test and seeded discussion explicitly scope it to the post-attribution deadline/publication path; it does not claim to interrupt a real index build.
- The changelog overclaims that owner attribution honors the time budget.; refuted because: The wording says it honors the budget cooperatively, matching the established token/checkpoint mechanism rather than guaranteeing immediate interruption. The seeded thread records an earlier overclaim was corrected.
Parked follow-ups
- The new tests prove token installation and timeout publication, but do not exercise an actual index build observing cancellation at an interior checkpoint.
- Real index-build interruption is not directly tested by the added unit tests.
- The changelog's cooperative-cancellation wording is materially accurate but stronger than the directly injected test proof.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
Plan item: #1604 piece 1, prove the cancellation token reaches the long analysis loops.
Governing issue or accepted claim: #1604
Acceptance delta (one sentence):
ripr review-commentsowner attribution, which builds a Rust index over every changed file, now runs under the run's cancellation token instead of outside it.What I checked
The canonical analysis, seam inventory and related phases already run under
analysis::cancellation::with_token. Owner attribution (attribute_ownersinreview_comments_with_admission) did not, so the per-file and per-batch checkpoints insidebuild_indexwere inert there and a large diff could spend the budget with nothing to stop it.Proof
review_comments_owner_attribution_runs_under_the_run_tokeninjects anattribute_ownersclosure that records whether a token is installed.with_tokenwrapper reverted the test fails ("owner attribution ran without the run's cancellation token installed"); with it restored it passes.cargo test -p ripr --lib review_comments: 99 passed.cargo xtask precommit: passed.Behavior note
A cancelled attribution still returns empty owners (the helper swallows
Err). That cannot be published as complete: the deadline check that follows uses the same clock and records alimited_timeoutreceipt.🤖 Generated with Claude Code
https://claude.ai/code/session_01FrVWuPEQjhYo674kxG7wdc