IW-583: phase-advance commits the review-state card before it checks out the feature branch #589
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!589
Loading…
Reference in a new issue
No description provided.
Delete branch "IW-583"
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
iw phase-advancerangit checkout <feature>before it committed the review-state card. A card left uncommitted by a gate (phase-mergetimeout or CI failure, a pausedphase-pr/phase-mergewait,iw ci-gate) made git refuse the checkout, sophase-advanceexited 1 after a manual merge and did nothing. Same root cause as IW-578, which fixed onlyphase-merge.Defects fixed
phase-advance(#588).PhaseAdvance.doAdvancenow commits the card before the checkout, only on the phase branch and only aftercheckMergedpasses. Both card commits share one commit message.Testing
PhaseAdvanceHarnessTest: a dirty card no longer blocks the checkout (failed before the fix); no commit when the PR is not merged; a dirty user file still refuses the checkout.test/phase-advance.bats: real git, bare origin — an uncommitted card still letsphase-advancecheck out the feature branch.Follow-ups
Release notes
Příkaz
iw phase-advancenyní spolehlivě převede práci zpět na hlavní větev úkolu i v situaci, kdy po předchozím kroku zůstal v pracovní kopii neuložený stavový záznam fáze. Uživatel tak po ručním sloučení pull requestu už nemusí nic opravovat ručně. Příkaz stavový záznam uloží sám, až poté, co ověří, že pull request fáze je sloučen; ostatní neuložené soubory zůstávají chráněny jako dříve.Full notes:
project-management/issues/IW-583/release-notes.md🤖 Generated with Claude Code
Closes #583
Issue: IW-583 Phase: 1 - A dirty review-state card blocks the checkout in phase-advance This commit marks the checkpoint for phase 1 context generation. Use dx-fix IW-583 to return to this point. 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>A dirty review-state card blocks the checkout in phase-advance Artifacts: - phase-01-tasks.md 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>