fix: commit phase artifacts when created (#12)
Each phase workflow now commits its artifacts immediately: - discuss-phase.md commits CONTEXT.md - research-phase.md commits RESEARCH.md - plan-phase.md commits PLAN.md (and DISCOVERY.md) - execute-phase.md commits only execution artifacts (SUMMARY, STATE, ROADMAP) Planning artifacts are inputs to execution and should be saved when created. Execution artifacts are outputs and are committed after execution completes. Closes #12
This commit is contained in:
@@ -391,6 +391,30 @@ This ensures every PLAN.md gets optimal context automatically assembled via depe
|
||||
For multi-plan phases: each plan has focused scope, references previous plan summaries (via frontmatter selection), last plan's success criteria includes "Phase X complete".
|
||||
</step>
|
||||
|
||||
<step name="git_commit">
|
||||
Commit phase plan(s):
|
||||
|
||||
```bash
|
||||
# Stage all PLAN.md files for this phase
|
||||
git add .planning/phases/${PHASE}-*/${PHASE}-*-PLAN.md
|
||||
|
||||
# Also stage DISCOVERY.md if it was created during mandatory_discovery
|
||||
git add .planning/phases/${PHASE}-*/DISCOVERY.md 2>/dev/null
|
||||
|
||||
git commit -m "$(cat <<'EOF'
|
||||
docs(${PHASE}): create phase plan
|
||||
|
||||
Phase ${PHASE}: ${PHASE_NAME}
|
||||
- [N] plan(s) created
|
||||
- [X] total tasks defined
|
||||
- Ready for execution
|
||||
EOF
|
||||
)"
|
||||
```
|
||||
|
||||
Confirm: "Committed: docs(${PHASE}): create phase plan"
|
||||
</step>
|
||||
|
||||
<step name="offer_next">
|
||||
```
|
||||
Phase plan created: .planning/phases/XX-name/{phase}-01-PLAN.md
|
||||
@@ -451,5 +475,6 @@ Phase planning complete when:
|
||||
- [ ] Each task: Type, Files (if auto), Action, Verify, Done
|
||||
- [ ] Checkpoints properly structured
|
||||
- [ ] If RESEARCH.md exists: "don't hand-roll" items NOT being custom-built
|
||||
- [ ] PLAN file(s) committed to git
|
||||
- [ ] User knows next steps
|
||||
</success_criteria>
|
||||
|
||||
Reference in New Issue
Block a user