You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Background auto-review never reviews or retries a stale, wrong-worktree, wrong-branch, or giant unrelated scope. Scope failures become cheap, terminal, diagnosable events instead of possible launch/retry loops.
Auto-review run 398c40ae-0323-4e2b-9e01-46fbb80e8d01 failed in under a minute with: diff is 1479472 chars (limit 120000).
The run record had branch=unknown, snapshot=unknown, changed_path_count=0, and a stale-looking base_commit recorded as an auto-review baseline snapshot.
Local inspection showed the visible branch/worktree was small, while the review scope was broad enough to trip the raw diff guard.
The failed run itself was cheap (~11.8k tokens), but this bug class can cause expensive background reviews if the stale/wrong diff is below the launch limit.
Acceptance Criteria
Auto-review run records persist worktree path, branch, head, base, snapshot, changed path count, diff size, and a cheap scope fingerprint before scope-size validation can fail.
review_scope_too_large is non-retryable for the same base/head/scope fingerprint and does not queue another pending review range automatically.
Pending auto-review baselines are discarded when their commit is not appropriate for the current branch/worktree lineage.
Auto-review baseline markers are keyed strongly enough by repo/worktree/branch or validated before reuse so a stale TUI session cannot review unrelated historical artifacts.
Duplicate suppression works for too-large scopes as well as successful scopes.
Tests cover stale baseline, branch/worktree mismatch, too-large scope metadata, and no retry after terminal scope failure.
Relationships
Parent: #50
Related: #92 for prompt/token/context visibility and #43 for the broader token-efficiency workstream.
Finish Line
Background auto-review never reviews or retries a stale, wrong-worktree, wrong-branch, or giant unrelated scope. Scope failures become cheap, terminal, diagnosable events instead of possible launch/retry loops.
Current Status
State: Active candidate under #50.
Evidence from 2026-06-06:
398c40ae-0323-4e2b-9e01-46fbb80e8d01failed in under a minute with:diff is 1479472 chars (limit 120000).branch=unknown,snapshot=unknown,changed_path_count=0, and a stale-lookingbase_commitrecorded as an auto-review baseline snapshot.Acceptance Criteria
review_scope_too_largeis non-retryable for the same base/head/scope fingerprint and does not queue another pending review range automatically.Relationships
Parent: #50
Related: #92 for prompt/token/context visibility and #43 for the broader token-efficiency workstream.