2.1 KiB
2.1 KiB
| nextStep | scriptsDir | outputFile | executionPatterns | retryStrategy | triggers |
|---|---|---|---|---|---|
| ./step-04-wrapup.md | ../bin/story-automator | {output_folder}/story-automator/orchestration-{epic_id}-{timestamp}.md | ../data/execution-patterns.md | ../data/retry-fallback-strategy.md | ../data/escalation-triggers.md |
Step 3c: Execution Complete
Goal: Summarize results after all stories finish, persist final status, and transition to wrapup. Interaction mode: Deterministic auto-proceed.
All Complete
Display:
**All {count} stories completed!**
If `{count} <= 10`:
| Story | Status |
|-------|--------|
{summary_table}
If `{count} > 10`:
- Completed: {completed_count}
- Warnings: {warning_count}
- Escalations: {escalation_count}
- See state log for full per-story table.
Proceeding to wrap-up...
"{scriptsDir}" orchestrator-helper state-update "{outputFile}" \
--set status=EXECUTION_COMPLETE --set lastUpdated="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
echo "- **[$(date -u +%Y-%m-%dT%H:%M:%SZ)]** All stories complete — execution finished" >> "{outputFile}"
Parallelism & Escalation
Parallelism: When overrides.maxParallel > 1, batch independent stories into concurrent groups:
- Check story dependency graph — only stories with no shared file dependencies can run in parallel
- Spawn up to
maxParalleltmux sessions simultaneously (each runs steps A→F independently) - Wait for all sessions in the batch to complete before starting the next batch
- Epic completion check (H) runs only after all batches finish
See {executionPatterns} for forbidden patterns and session isolation rules.
Escalation: See {triggers} for trigger definitions and {retryStrategy} for retry/fallback patterns. Escalation only after exhausting all retry attempts.
Auto-Proceed to Wrap-up
Display: "Execution loop complete. Proceeding to wrap-up..."
"{scriptsDir}" orchestrator-helper state-update "{outputFile}" \
--set currentStep=step-04-wrapup \
--set lastUpdated="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
Then
→ Immediately load and execute {nextStep}