- Nx 22.7 monorepo (pnpm 11.1, TypeScript 5.9, Node 24) - apps/api: NestJS 11 (CJS conforme CODING-RULES.md PGD-DB-004) - apps/web: React 19 + Vite 8 (ESM) - libs/shared/api-interface: Zod contract base - Docker Compose dev: Postgres 18, Valkey 8, MinIO, Mailpit - WDS artifacts: - design-artifacts/A-Product-Brief/ (5 docs canônicos + 16 dialogs) - design-artifacts/B-Trigger-Map/ (hub + 4 personas + feature impact) - Stack canon: STACK.md v2.2 + CODING-RULES.md v2.0 + brand.md - AGENTS.md + README.md como entrada para devs/agentes Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
4.5 KiB
Retrospective Automation Data
This file provides instructions for running retrospectives in YOLO mode (fully automated, no user input expected).
YOLO Mode Principles
- No User Input Expected: The retrospective must complete autonomously
- Data-Driven Decisions: All decisions based on sprint-status, story files, and artifacts
- Safe Failure: If anything goes wrong, log and skip - never escalate
- Configured Agent: Retrospectives inherit the configured primary agent unless
retrois explicitly overridden
Agent Constraints
Retrospectives have complex multi-agent "party mode" interactions that require:
- Natural language dialogue synthesis
- Multi-step reasoning across story analysis
- Document generation with rich context
Retrospectives use the configured agentConfig retro selection. If no explicit retro override is present, they inherit the configured primary agent.
Timeout Configuration
Retrospectives analyze all stories in an epic and generate comprehensive reports:
- Base timeout: 60 minutes (3600000ms)
- Extended timeout for large epics (>10 stories): 90 minutes (5400000ms)
YOLO Mode Prompt Template
When spawning a retrospective in YOLO mode, use this prompt:
Execute the BMAD retrospective workflow for epic {epic_number}.
READ this skill first: <installed-skill-root>/bmad-retrospective/SKILL.md
READ this workflow file next: <installed-skill-root>/bmad-retrospective/workflow.md
Run the retrospective in #YOLO mode.
Assume the user will NOT provide any input to the retrospective directly.
For ALL prompts that expect user input, make reasonable autonomous decisions based on:
- Sprint status data
- Story files and their dev notes
- Previous retrospective if available
- Architecture and PRD documents
Key behaviors:
- When asked to confirm epic number: auto-confirm based on sprint-status
- When asked for observations: synthesize from story analysis
- When asked for decisions: make data-driven choices
- When presented menus: select the most appropriate option based on context
- Skip all "WAIT for user" instructions - continue autonomously
After the retrospective has run and created documents, you MUST:
1. Create a list of documentation that may need updates based on implementation learnings
2. For each doc in the list, verify whether updates are actually needed by:
- Reading the current doc content
- Comparing against actual implementation code
- Checking for discrepancies between doc and code
3. Update docs that have verified discrepancies
4. Discard proposed updates where code matches docs
Focus on these doc types:
- Architecture decisions that changed during implementation
- API documentation that diverged from specs
- README files with outdated instructions
- Configuration documentation
EVERYTHING SHOULD BE AUTOMATED. THIS IS NOT A SESSION WHERE YOU SHOULD BE EXPECTING USER INPUT.
Multi-Epic Support
When multiple epics are provided to story-automator:
Tracking Multiple Epics
State document should track:
epics:
- epicNumber: 1
storyRange: ["1-1", "1-2", "1-3"]
status: "completed"
retrospectiveStatus: "completed"
- epicNumber: 2
storyRange: ["2-1", "2-2"]
status: "in_progress"
retrospectiveStatus: "pending"
Aggregation Rules
- Complete epics during run: If epic N completes while stories from epic N+1 are being processed, trigger retrospective for epic N
- Batch retrospectives: After all stories complete, run retrospectives for all completed epics in order
- Independent failures: If retrospective for epic N fails, continue to epic N+1 retrospective
Safe Skip on Failure
If a retrospective fails:
- Log:
⚠️ Retrospective for Epic {N} skipped: {reason} - Update state:
retrospectives.epic-{N}.status = "skipped" - Update state:
retrospectives.epic-{N}.reason = "{reason}" - Continue to next epic - NEVER ESCALATE
Documentation Verification
See retrospective-doc-verification.md for doc verification patterns and output parsing.
Error Handling
Network Errors
If retrospective session fails due to network:
- Wait 60 seconds
- Retry once
- If retry fails, mark as skipped
Session Crashes
If retrospective session crashes:
- Check output file for partial progress
- If retro doc was partially created, mark as partial
- Log crash reason
- Skip to next epic
Timeout
If retrospective exceeds timeout:
- Check if core analysis completed
- If retro doc exists, mark as partial success
- Skip doc verification phase
- Continue to next epic