Overview
The Development Cycle (Story Development Cycle - SDC) is the primary workflow for all code implementation in AIOX. It enforces story-driven development through a structured, four-phase agent handoff sequence.Typical Duration: 1-5 days depending on story complexitySuccess Indicators:
- Story status: “Ready for Review” or “Done”
- All tests passing
- PR created and approved
Phase 1: Story Creation (SM)
Agent: River (@sm)
Command:*draft or *create-next-story
Task: create-next-story.md
Input: Epic context from docs/epics/{epic-id}.md
Output: Story file in docs/stories/{story-id}-{title}.md
Story Template
Story Template
Phase 2: Story Validation (PO)
Agent: Nova (@po)
Command:*validate-story-draft {story-id}
Task: validate-next-story.md
Input: Draft story from Phase 1
Output: GO/NO-GO decision + updated story status
Validation Checklist
The PO agent verifies:Story Structure
Story Structure
- Title follows format: “Story - ”
- Status field present and set to “Draft”
- Epic linkage documented
- Effort estimate provided
- Dependencies listed (or explicitly “None”)
Acceptance Criteria
Acceptance Criteria
- At least 3 testable criteria
- Each criterion is measurable
- Criteria align with epic goals
- No invented requirements (Constitution check)
Implementation Plan
Implementation Plan
- File list includes all expected changes
- Task breakdown is actionable
- Complexity assessment reasonable
- Technical approach documented if STANDARD/COMPLEX
Validation Outcomes
- GO
- NO-GO
Phase 3: Implementation (Dev)
Agent: Dex (@dev)
Command:*develop {story-id} (interactive) or *develop-yolo {story-id} (autonomous)
Task: dev-develop-story.md
Input: Approved story
Output: Implemented code + updated story status
Interactive Mode
Default modePauses at key checkpoints:
- After planning
- Before major changes
- After each acceptance criterion
YOLO Mode
Autonomous executionRuns end-to-end without interruption.Best for: Simple stories, trusted patterns
Pre-flight Mode
Plan-then-executeShows complete plan, waits for approval, then executes.Best for: High-risk changes
Development Workflow
Implementation Planning
Creates execution plan:
- File changes needed
- Order of implementation
- Test strategy
Code Implementation
Implements each acceptance criterion:
- Writes production code
- Creates/updates tests
- Updates configuration if needed
Story Progress Update
As each task completes, developer updates story:
- Checks off completed tasks:
[ ]→[x] - Updates File List with actual changes
- Documents any deviations or decisions
Developer does NOT push to remote. That authority belongs exclusively to @devops per the Constitution.
Phase 4: QA Review (QA)
Agent: Quinn (@qa)
Command:*review {story-id} (full review) or *gate {story-id} (quick gate)
Task: qa-gate.md or qa-review-story.md
Input: Implemented story with code changes
Output: Verdict (PASS/CONCERNS/FAIL/WAIVED) + findings
QA Evaluation Layers
Functional Verification
Functional Verification
Checks:
- All acceptance criteria met
- Feature works as specified
- Edge cases handled
- Error handling robust
Code Quality
Code Quality
Checks:
- Follows coding standards
- No code smells or anti-patterns
- Proper error handling
- Logging and observability added
- Comments where needed (not obvious code)
Test Coverage
Test Coverage
Checks:
- Unit tests for new functions
- Integration tests for workflows
- Coverage >= previous level (no regression)
- Tests are meaningful (not just mocks)
Documentation
Documentation
Checks:
- Story file list updated
- README updated if needed
- API docs generated
- Comments explain “why” not “what”
NFR Compliance
NFR Compliance
Checks:
- Performance targets met (NFR-001: < 200ms)
- Security best practices followed
- Accessibility standards if UI change
- Dependency updates justified
QA Verdicts
- PASS
- CONCERNS
- FAIL
- WAIVED
QA Loop (Iterative)
If QA returns FAIL, enter the QA Loop: Max Iterations: 5 (configurable) Commands:*fix-qa-issues- Developer addresses specific findings*apply-qa-fixes- Developer applies automated fixes*review {story-id}- QA re-reviews after fixes
Phase 5: Push & PR Creation (DevOps)
Agent: Felix (@devops)
Command:*push (pre-push checks + push + PR)
Task: github-devops-pre-push-quality-gate.md
Input: QA-approved code on local branch
Output: Code pushed to remote + PR created
Quality Gates Integration
The development cycle enforces three quality gate layers:| Layer | Phase | Enforcement | Automated? |
|---|---|---|---|
| Layer 1 | Pre-commit (Dev) | Local checks before commit | Yes |
| Layer 2 | PR Automation (DevOps) | CI/CD + CodeRabbit | Yes |
| Layer 3 | Human Review (Post-PR) | Architecture + final approval | No |
Story Status Lifecycle
Best Practices
Story Sizing
Story Sizing
Keep stories small and focused:Good:
- Implement OAuth provider integration (3 points)
- Add user session management (5 points)
- Create login UI component (2 points)
- Build complete authentication system (21 points) ← Should be an epic
Commit Hygiene
Commit Hygiene
Use conventional commits:Include story reference:
Closes Story-{id} or Refs Story-{id}Test-Driven Development
Test-Driven Development
Write tests before or during implementation:
- Read acceptance criterion
- Write failing test
- Implement code to pass test
- Refactor if needed
- Move to next criterion
Troubleshooting
Next Steps
Quality Gates
Understand the three-layer validation system in detail
Agent: Developer
Explore Dex’s full command set and capabilities
Agent: QA
Learn about Quinn’s review methodology and criteria
Story Templates
Reference templates for different story types