Conversation
📝 WalkthroughWalkthroughThis PR integrates ATDD (Acceptance Test-Driven Development) artifact handling into the BMM story workflow. Changes span four documentation files: updating create-story template and workflow to include an optional ATDD step, and extending dev-story checklist and workflow to detect, load, and conditionally activate pre-generated ATDD scaffold tests during implementation. Changes
Sequence Diagram(s)sequenceDiagram
participant StoryCreator as Story Creator
participant Validator as Validate Step
participant ATDD as TEA / ATDD<br/>(Optional)
participant DevStory as Dev Story<br/>Workflow
participant TestRunner as Test Runner
participant DevAgent as Dev Agent<br/>Record
StoryCreator->>StoryCreator: Create story with acceptance criteria
StoryCreator->>Validator: Trigger validate-create-story
Validator->>Validator: Review & validate story
Validator-->>StoryCreator: Validation complete
Note over ATDD,StoryCreator: Optional ATDD path (if TEA installed)
StoryCreator->>ATDD: Trigger /bmad:tea:atdd
ATDD->>ATDD: Generate scaffold tests<br/>(API, E2E, Component)
ATDD->>StoryCreator: Link ATDD artifacts<br/>& checklist to Dev Notes
StoryCreator->>DevStory: Trigger dev-story<br/>with ATDD artifacts (if available)
DevStory->>DevAgent: Load ATDD checklist<br/>from Dev Notes references
DevAgent-->>DevStory: Extract test inventory<br/>& activation guidance
Note over DevStory,TestRunner: RED Phase - Conditional Test Activation
alt ATDD Scaffold Tests Exist
DevStory->>TestRunner: Activate scaffold tests<br/>(remove test.skip())
TestRunner->>TestRunner: Run scaffold tests<br/>(expect failures)
TestRunner-->>DevStory: Tests fail (RED phase)
else No ATDD Artifacts
DevStory->>TestRunner: Write new failing tests<br/>(original behavior)
TestRunner-->>DevStory: Tests fail (RED phase)
end
DevStory->>DevStory: Implement feature<br/>(activate/extend ATDD tests)
DevStory->>DevAgent: Update file list<br/>(include ATDD test files)
DevStory->>TestRunner: Run tests
TestRunner-->>DevStory: Tests pass (GREEN phase)
DevStory-->>StoryCreator: Implementation complete
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Possibly related issues
Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🤖 Augment PR SummarySummary: Integrates optional Test Architect (TEA) ATDD artifacts into the story creation and dev-story workflows. Changes:
🤖 Was this summary useful? React with 👍 or 👎 |
Addresses #2243.
What
Added ATDD-aware implementation handoff in Phase 4 so create-story surfaces /bmad:tea:atdd before dev-story, and dev-story can discover, load, and consume TEA-generated ATDD artifacts when they exist.
Why
This closes the integration gap where BMM Phase 4 ignored TEA acceptance-test scaffolds and gave no durable story-level pointer to those artifacts. Fixes #2243.
How
Testing
Validated the changed workflow/template files with git diff --check and manually reviewed the updated Phase 4 flow for consistency from create-story through dev-story. No runtime test suite was run because these changes are workflow/catalog/template logic rather than executable application code.