Repository navigation
Reject non-advancing GitHub review-thread cursors - #1670
Conversation
Architecture-Review: unchanged; review and readiness use the existing read errors when pagination cannot advance. Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
loopzero primary review by claude on 94e40dc19c8a240b014fc7539ef7aa9f5f9de13f, 16.5s: approve (0 critical, 0 important, 1 suggestion)
Settings per native call (launch configuration and CLI claims, not backend attestation):
- Call 1: requested model claude-opus-5-5 (effort medium); CLI-reported model claude-opus-5-5 (effort unknown); configured model claude-opus-5-5 (effort medium)
Native Claude output is retained in the restricted local review receipt.
| assert len(gh.calls) == len(cursors) | ||
|
|
||
|
|
||
| def test_thread_reply_read_rejects_repeated_cursor(gh: FakeGh) -> None: |
There was a problem hiding this comment.
suggestion: No test checks that a failed reply scan blocks the reply and resolve mutations
The acceptance criteria say a failed reply scan must not post a reply or resolve the thread. The code meets this: resolve_finding calls _has_thread_reply at github.py:1084, before _REPLY_MUTATION and _RESOLVE_MUTATION, so the GhError stops the flow before either mutation runs. The new test calls the private _has_thread_reply directly, though, so nothing protects that ordering. If someone later reorders the code or catches GhError around the reply check, the tests would still pass while the change silently posts or resolves. Smallest fix: add a test that calls github.resolve_finding(...). The thread page should have a comments pageInfo with hasNextPage=True, endCursor="C1", and the reply page should repeat C1. Assert that GhError is raised and that no recorded gh call contains addPullRequestReviewThreadReply or resolveReviewThread.
|
@Mergifyio queue |
✅ Merged into
|
|
No description provided. |
Reject non-advancing GitHub review-thread cursors
Context and goal
Closes #1659
Acceptance
Base
main @ 91d2e10
Validation
Recorded for
94e40dc19c8auv run --group dev ruff check src tests: exit 0uv run --group dev tach check: exit 0uv run --python 3.14 python scripts/check_architecture_docs.py: exit 0scripts/size_budget.sh: exit 0uv run --group dev pytest -q: exit 0Review
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.