Status: MUST (Constitutional Principle)Defined in
.aiox-core/constitution.md - All development MUST follow story-driven principles. Violations blocked via gates.The Principle
All development begins and ends with a story. No code is written without a story. No feature ships without story validation. Stories are the atomic unit of development in AIOX.Core Tenet
Stories provide the context, requirements, acceptance criteria, and completion definition that enable AI agents to implement features autonomously and reliably.
Constitutional Rules
From the AIOX Constitution v1.0.0:MUST Rules
No Code Without Story
MUST: Nenhum código é escrito sem uma story associadaEvery implementation effort must be tied to a specific story file in
docs/stories/.Clear Acceptance Criteria
MUST: Stories DEVEM ter acceptance criteria claros antes de implementaçãoStories cannot be implemented until they have well-defined, verifiable acceptance criteria.
Progress Tracking
MUST: Progresso DEVE ser rastreado via checkboxes na storyTasks and subtasks are tracked using markdown checkboxes:
[ ] → [x]File List Maintenance
MUST: File List DEVE ser mantida atualizada na storyEvery file created, modified, or deleted must be documented in the story’s File List section.
Gate Enforcement
Story Anatomy
Every AIOX story follows a consistent structure:- Header
- Context
- Acceptance Criteria
- Tasks
- Dev Agent Record
- File List
Story IdentificationProvides essential metadata for tracking and workflow automation.
The Story Lifecycle
Phase 1: Creation
@sm (Scrum Master) Drafts Story
Using
*draft command and create-next-story.md task:- Read epic context
- Extract requirements from PRD/architecture
- Define clear acceptance criteria
- Break down into sequenced tasks
- Populate all required sections
- Set status: “Draft”
“Creating crystal-clear stories that dumb AI agents can implement without confusion”Stories must be self-contained—all information needed for implementation is IN the story.
Phase 2: Validation
@po (Product Owner) Validates
Using
*validate-story-draft {story-id} command:- Check story completeness
- Verify acceptance criteria clarity
- Ensure PRD/architecture alignment
- Validate task sequencing
- Issue GO/NO-GO decision
- All required sections present?
- Acceptance criteria testable?
- Tasks properly sequenced?
- References to PRD/arch docs?
- Complexity appropriately assessed?
- GO: Status → “Approved”, ready for @dev
- NO-GO: Status remains “Draft”, @sm revises
Phase 3: Implementation
@dev (Developer) Implements
Using
*develop {story-id} command and dev-develop-story.md task:Order of Execution:- Read first (or next) task
- Implement task and subtasks
- Write tests
- Execute validations
- ONLY if ALL pass → mark checkbox
[x] - Update File List with changes
- Repeat until all tasks complete
- Interactive Mode
- YOLO Mode
- Preflight Mode
*develop-interactive {story-id}Default mode: Checkpoints at each taskBest for: Learning, complex stories, high-risk changes- ✓ ONLY update Dev Agent Record sections
- ✓ Mark tasks
[x]ONLY when validated - ✓ Update File List continuously
- ✗ NEVER modify Story, Acceptance Criteria, or other sections
- ✗ NEVER skip tests (“I’ll add them later”)
- All tasks marked
[x] - All validations pass (lint, typecheck, tests, build)
- File List complete
- Story DoD checklist executed
- Status → “Ready for Review”
Phase 4: Quality Assurance
@qa (QA Engineer) Reviews
Using
*review {story-id} command and qa-review-story.md task:Review Process:- Validate acceptance criteria met
- Review code quality and standards
- Check test coverage
- Verify File List accuracy
- Execute QA gate checks
- Issue verdict
- APPROVE
- REJECT
- BLOCKED
✅ Story meets all quality standards
- All acceptance criteria satisfied
- Code follows standards
- Tests comprehensive and passing
- No critical issues
Phase 5: Deployment
@devops (DevOps) Deploys
Using
*push command and github-devops-pre-push-quality-gate.md task:Pre-Push Quality Gate:npm run lint→ Must passnpm run typecheck→ Must passnpm test→ Must passnpm run build→ Must succeed- Story status → “Done” or “Ready for Review”
- All checks pass →
git push - Create Pull Request (if configured)
- Centralized quality enforcement
- Consistent deployment process
- Audit trail for all pushes
- Constitutional authority separation
Story Progress Tracking
Checkbox System
Task Tracking
Progress is tracked using markdown checkboxes:Agents mark
[x] ONLY when task is validated and complete.File List Maintenance
Change Inventory
Every file touched during implementation is documented:Purpose:
- Code review efficiency
- Rollback capability
- Impact analysis
- Merge conflict prevention
Status Transitions
Why Story-Driven?
For AI Agents
Context Sufficiency
Stories contain ALL information needed. Agents don’t need to search/guess.
Verifiable Progress
Checkbox tracking provides clear completion state.
Bounded Scope
Tasks define exact work—prevents scope creep.
Quality Gates
Each phase has clear entry/exit criteria.
For Humans
Traceability
Every change maps to a story with rationale.
Review Efficiency
File List + tasks provide review roadmap.
Knowledge Capture
Dev Agent Record preserves decisions.
Reproducibility
Clear tasks enable recreation if needed.
For Teams
Shared Understanding
Stories are single source of truth.
Parallel Work
Clear boundaries enable simultaneous stories.
Onboarding
New team members read stories to understand.
Audit Trail
Complete history of what/why/when.
Common Pitfalls
Integration with Other Principles
Story-Driven Development works in harmony with:CLI First
All story workflows execute via CLI commands (
*develop, *review, *push)Agent Authority
Story lifecycle enforces agent authority boundaries
Quality First
Stories enforce quality gates at each transition
No Invention
Stories derive from PRD/architecture, never invent
Best Practices
Story Creation
- Extract requirements from PRD/architecture
- Make acceptance criteria specific and testable
- Sequence tasks logically
- Include all necessary context WITHOUT duplicating docs
- Set appropriate complexity level
Story Implementation
- Read full story before starting
- Follow task sequence exactly
- Mark checkboxes ONLY when validated
- Update File List continuously
- Use appropriate mode (interactive/yolo/preflight)
Story Review
- Validate ALL acceptance criteria
- Check File List completeness
- Verify test coverage
- Review code quality
- Provide specific, actionable feedback
Summary
Story-Driven Development Essence
Stories are the atomic unit of development
- Provide complete context for agents
- Define clear success criteria
- Track progress transparently
- Enforce quality gates
- Enable autonomous implementation
- Maintain audit trail
Next Steps
Workflows
See how stories flow through workflows
Agent System
Learn which agents work with stories
Creating Stories
Practical guide to story creation
Quality Gates
Understand story quality enforcement