Repository navigation
Harden repair execution for rebase conflicts - #308
Jhacarreiro wants to merge 1 commit into
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 16, 2026, 2:52 PM ET / 18:52 UTC. Summary Reproducibility: yes. from source inspection, but not from a live run: current main can treat unresolved rebase conflicts as working-tree changes before Review metrics: 2 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Land the narrow conflict-loop hardening after the formatting failure is fixed and the contributor adds redacted live repair-worker proof for the conflicted rebase retry or blocked-path behavior. Do we have a high-confidence way to reproduce the issue? Yes from source inspection, but not from a live run: current main can treat unresolved rebase conflicts as working-tree changes before Is this the best way to solve the issue? Yes in direction: keeping unresolved conflicts inside the bounded edit loop is the narrow repair path, but this PR still needs the format fix and live behavior proof before merge. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against c88270b81889. Label changesLabel justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
b22b040 to
3064d1b
Compare
|
Closing this branch for now instead of trying to prove it with local operational runs. If the rebase-conflict hardening is still needed, it should come back as a small, model-agnostic PR focused only on deterministic conflict lifecycle behavior, with clean checks and upstream-clean proof. Any adapter or non-Codex-specific behavior must not be part of ClawSweeper. |
|
Closed in favor of smaller model-agnostic PRs only; adapter/non-Codex behavior must stay outside ClawSweeper. |
|
Landed the reviewed rewrite in #332 via commit 39239e7. The original fork branch rejected maintainer pushes despite GitHub reporting maintainer edits enabled, so I recreated the final tree as one maintainer commit and preserved João's co-author credit. Thank you for identifying the rebase-conflict retry gap. For future contributions, please verify that “Allow edits by maintainers” also grants the repository bot/token branch write access. |
Summary
Rationale
Repair execution currently treats any working tree change as enough to leave the edit loop. In a conflicted rebase, unresolved unmerged paths are also working tree changes, so the executor can proceed to
completeRebaseIfResolved()and fail only after the edit loop has ended. This makes the repair worker less likely to retry with focused conflict evidence.This keeps conflict handling inside the bounded edit loop and makes unresolved conflict paths explicit in progress/reporting.
Verification
corepack pnpm install --frozen-lockfilecorepack pnpm run build:repairnode --test dist/repair/fix-prompt-builder.test.jsnode --test dist/repair/fix-prompt-builder.test.js test/repair/execute-fix-validation.test.ts test/repair/fix-edit-policy.test.ts test/repair/mechanical-rebase-conflicts.test.ts