feat(#108): short-circuit review on rebase-only pushes - #111
Closed
fullsend-ai-coder[bot] wants to merge 1 commit into
Closed
feat(#108): short-circuit review on rebase-only pushes#111fullsend-ai-coder[bot] wants to merge 1 commit into
fullsend-ai-coder[bot] wants to merge 1 commit into
Conversation
Add step 2a-1 to the pr-review skill to detect rebase-only pushes early and skip sub-agent dispatch. When PRIOR_REVIEW_SHA is set, provenance is app-verified, the compare API returns 0 changed files, and the base branch diff is unchanged, the orchestrator reuses the prior review's findings directly — skipping steps 3-6 and proceeding to step 7 to write the result. This avoids the token cost of dispatching opus-tier sub-agents for a result identical to the prior review, as observed on PR #90 where review run 4 (triggered by a rebase) produced the same output as review run 3. Guards fall through to full review when the compare API fails, provenance is untrusted, files changed between the prior SHA and HEAD, or the base branch has diverged. Note: pre-commit could not run in sandbox (network restriction blocked shellcheck-py install). One pre-existing test failure in post-triage-test.sh is unrelated to this change. Closes #108
Member
|
This sounds dangerous to me. I don't want to introduce it without pre-existing evals. |
|
🤖 Finished Retro · ✅ Success · Started 7:07 PM UTC · Completed 7:17 PM UTC |
Retro: PR #111 — short-circuit review on rebase-only pushes (closed without merge)Timeline
What went well
What went wrong
Existing issues with new evidence
Proposals filed |
Member
Agreed, though it is a feature which we need to have eventually. Time for 🤔. |
Member
|
What about something deterministic on the invocation side? If the "changes" to the PR are ONLY commit SHA changes (no diff changes), fail early and don't launch the review agent... |
This was referenced Jul 16, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add step 2a-1 to the pr-review skill to detect rebase-only pushes early and skip sub-agent dispatch. When PRIOR_REVIEW_SHA is set, provenance is app-verified, the compare API returns 0 changed files, and the base branch diff is unchanged, the orchestrator reuses the prior review's findings directly — skipping steps 3-6 and proceeding to step 7 to write the result.
This avoids the token cost of dispatching opus-tier sub-agents for a result identical to the prior review, as observed on PR #90 where review run 4 (triggered by a rebase) produced the same output as review run 3.
Guards fall through to full review when the compare API fails, provenance is untrusted, files changed between the prior SHA and HEAD, or the base branch has diverged.
Note: pre-commit could not run in sandbox (network restriction blocked shellcheck-py install). One pre-existing test failure in post-triage-test.sh is unrelated to this change.
Closes #108
Post-script verification
agent/108-rebase-short-circuit)8fb64a25b70e4d364f6d535bb252c1bad521629d..HEAD)