Skip to content

Defer full reviews for open PRs with confirmed merge conflicts - #10119

Open
loopx-agent wants to merge 3 commits into
mainfrom
codex/defer-conflicted-review-heads
Open

loopx-agent wants to merge 3 commits into
mainfrom
codex/defer-conflicted-review-heads

Conversation

@loopx-agent

@loopx-agent loopx-agent commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

An open PR with a known merge conflict still generated a full review plan and evidence commands. Resolving the conflict can replace the head before that review can be used.

Change

Keep the PR visible in the inventory and defer its routine full review when GitHub reports DIRTY or CONFLICTING. An explicit fresh-audit request can still select that exact revision. An approved head continues through the existing merge-readiness check. Conflict-free behind heads and unknown mergeability retain their existing selection behavior.

Validation

The ordinary CLI selected all five synthetic heads before this change. With the same input it selected three after the change, leaving both known conflicts visible without full review plans. Requesting one of those revisions explicitly restored its evidence plan. A sample of 24 open PRs contained no confirmed conflict, so it provided no observed production savings. No model-cost reduction was measured.

The review queue and GitHub scan suites passed 189 tests. The local premerge canary passed all 18 selected checks. The rebase evidence boundary is qualified below.

Starting effort for review

The JSON review plan and Markdown packet now recommend a starting reasoning effort when the inventory supports it. A small prose-only documentation change can suggest medium after the reviewer checks its actual diff. High regression risk can suggest xhigh. Unknown or mixed scope retains the host default. A compatibility shim or type cleanup needs caller evidence before a reviewer can lower effort. These are advisory choices and do not change the recorded runtime effort or the required exact-head evidence.

On the same ten fixture heads, nine had actionable review plans before and after; their target, evidence commands, required evidence and templates matched. One small guide suggested medium, one large diff suggested xhigh and seven actionable heads retained the host default. A conflicting head stayed deferred. A separate metadata sample of 24 open PRs produced no medium suggestion. Neither run measured provider tokens or established production savings.

The four focused suites passed 475 tests. The standard premerge canary executed all 18 selected checks and passed its six direct checks.

Rechecking a rebased revision

For an actionable single-commit PR, the queue can read an earlier independent approval first when local Git objects prove that both bases have identical trees and both resulting revisions have identical trees. The rebased commit must be directly on the target tip. The reviewer checks the original approval, target, outstanding threads, commit-sensitive behavior and validation environment before reusing specific evidence. Missing evidence triggers a full diff. Every revision still needs an independent verdict. High-risk diffs, fresh audits, missing objects and changed dependencies keep the ordinary route.

A paired comparison on the same 14 inputs and Git revisions produced 14 immediate full-patch reads before the change and 13 afterward. One verified rebase read the prior approval first. All 14 retained current-head review. This counts commands in plans, not hosted model calls or token savings. Routine rebases onto a different base tree still get a full diff.

On this revision the Python review and scan suites reported 709 passes and 45 opt-in live cases skipped. The TypeScript suite passed eight tests and the control-plane typecheck passed. The standard premerge gate passed all 18 selected checks (17 executed and one reused) plus six direct checks.

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant