IW-607: A resumed phase-pr judges the pushed head, not a stale one #692
No reviewers
Labels
No labels
agent-ready
bug
contract
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-human
needs-input
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
iterative-works/iw-cli!692
Loading…
Reference in a new issue
No description provided.
Delete branch "IW-607"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
A resumed
phase-prpushes the branch onto a pull request that is already open and then gates CI at once. When the forge was slow to move the PR head to the pushed commit, the gate judged the old head: a stale red used up a recovery attempt, and a stale green handed over (or merged with--batch) a commit CI never judged.Defects fixed
phase-prreads the local HEAD after its push and passes it to the gate asCiGateTarget.expectedHead. The gate now waits while the forge reports another head (the existing IW-601 guard), and judges only the pushed commit. A HEAD that cannot be read leaves the gate as before (analysis decision D1).Out of scope
awaitCihas the same race. It needs aci-gateoption for the expected head — filed as #690.Testing
core/test/PhasePrHarnessTest.scala: stale red, stale green, a resume that pushed nothing new, a timeout while the forge keeps the old head, a first push, and an unreadable HEAD.Release notes
See
project-management/issues/IW-607/release-notes.md(Czech).🤖 Generated with Claude Code
Closes #607
phase-pr and kanon awaitCi can gate a stale head and use up a CI attempt Artifacts: - analysis.md - issue.md 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>phase-pr and kanon awaitCi can gate a stale head and use up a CI attempt Artifacts: - tasks.md - review-state.json (tasks_ready) 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>Issue: IW-607 Phase: 1 - A resumed phase-pr judges the head the forge held before its push This commit marks the checkpoint for phase 1 context generation. Use dx-fix IW-607 to return to this point. 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>A resumed phase-pr judges the head the forge held before its push Artifacts: - phase-01-tasks.md 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>We have conflicts.
Implement: rework for review 16
The rework phase merged into IW-607 through #726; this pull request carries it.