phase-pr leaves its final awaiting_review write uncommitted after CI goes green #680
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#680
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Same symptom as the closed #292, so this is a regression.
Found during IW-652 (per-user dashboard, service links, Claude session links). Follow-ups, verbatim:
iw phase-pr(waiting, without--no-wait) left its finalawaiting_reviewwrite uncommitted after CI went green — PR #664, second CI run.Intake: needs-input
The dirty card after a green
phase-pris probably not a regression of #292. It comes from a decision: commit89d9a61f(IW-491, PR #591) made this behaviour on purpose.phase-prwithout--no-wait, when CI is green, the code writes theawaiting_reviewcard and does not commit it. This is intentional:core/commands/PhasePr.scalafinish/handOverpassespersistCard = false, and its scaladoc says "a push here would move that head past the commit the verdict just proved". IW-491 (commit89d9a61f) made this change, and itsanalysis.md:11rejects "commit locally, do not push", because the nextphase-prpushes the local commit anyway.phase-merge(doMergeAndAdvance) andphase-advance(doAdvance, IW-583) commit the dirty card before they check out a branch, andPhasePrHarnessTestasserts the dirty card (committedMessages == Nil). Which behaviour do you want?phase-mergeandphase-advancealready accept the dirty card.Answer in a comment on this issue; intake reads it on its next iteration.
Irrelevant now