Outcome
Implement the local execution substrate for review-fix-loop: common-directory locking, isolated attempts, durable checkpoints, recovery, and clean canonical promotion.
Parent epic: #95
Design: design/review-fix-loop.md
Scope
- Acquire stable local-ref locks, plus the remote-target lock required by
update_pr, in deterministic order.
- Create and clean isolated attempt worktrees without mutating user-specified reference branches.
- Persist enough state to resume or safely report interruption.
- Promote a converged candidate only after verifying the canonical worktree is clean and the expected old state still matches.
- Preserve recoverable commits and report their identifiers when promotion cannot complete.
Non-goals
- A distributed lease, ownership, fencing, or coordinator service.
- Review orchestration or finding selection.
- Remote publication.
Acceptance criteria
Validation
- Deterministic tests for contention, interruption, stale state, dirty worktrees, promotion races, and cleanup.
- Repository
just format, just lint, and just test.
Dependencies
Blocked by the contract leaf.
Outcome
Implement the local execution substrate for
review-fix-loop: common-directory locking, isolated attempts, durable checkpoints, recovery, and clean canonical promotion.Parent epic: #95
Design:
design/review-fix-loop.mdScope
update_pr, in deterministic order.Non-goals
Acceptance criteria
update_prwork.Validation
just format,just lint, andjust test.Dependencies
Blocked by the contract leaf.