Skip to main content

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
1

Epic Analysis

SM reads the epic document to understand overall scope and goals
2

Story Decomposition

Breaks epic into implementation-sized user stories (typically 1-3 days each)
3

Story Drafting

Creates story markdown with:
  • Clear title and description
  • Acceptance criteria (initially as placeholders)
  • File list section
  • Task checklist
  • Metadata (status: Draft)

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
Gate Checkpoint: Story cannot proceed to development without PO validation.

Validation Checklist

The PO agent verifies:
  • Title follows format: “Story -
  • Status field present and set to “Draft”
  • Epic linkage documented
  • Effort estimate provided
  • Dependencies listed (or explicitly “None”)
  • At least 3 testable criteria
  • Each criterion is measurable
  • Criteria align with epic goals
  • No invented requirements (Constitution check)
  • File list includes all expected changes
  • Task breakdown is actionable
  • Complexity assessment reasonable
  • Technical approach documented if STANDARD/COMPLEX

Validation Outcomes

Story status updated to Approved. Developer can proceed.

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
Best for: Complex stories, learning

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

1

Story Analysis

Developer agent reads story, acceptance criteria, and linked spec/epic
2

Implementation Planning

Creates execution plan:
  • File changes needed
  • Order of implementation
  • Test strategy
3

Code Implementation

Implements each acceptance criterion:
  • Writes production code
  • Creates/updates tests
  • Updates configuration if needed
4

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
5

Pre-commit Quality Gate

Runs Layer 1 quality checks:
BLOCKED if any check fails.
6

Local Commit

Creates commit with conventional commit message:
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

Checks:
  • All acceptance criteria met
  • Feature works as specified
  • Edge cases handled
  • Error handling robust
Method: Code review + test execution
Checks:
  • Follows coding standards
  • No code smells or anti-patterns
  • Proper error handling
  • Logging and observability added
  • Comments where needed (not obvious code)
Method: Static analysis + manual review
Checks:
  • Unit tests for new functions
  • Integration tests for workflows
  • Coverage >= previous level (no regression)
  • Tests are meaningful (not just mocks)
Method: Coverage report + test quality review
Checks:
  • Story file list updated
  • README updated if needed
  • API docs generated
  • Comments explain “why” not “what”
Method: Documentation review
Checks:
  • Performance targets met (NFR-001: < 200ms)
  • Security best practices followed
  • Accessibility standards if UI change
  • Dependency updates justified
Method: NFR checklist validation

QA Verdicts

Story proceeds to DevOps for push and PR creation.

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
1

Pre-Push Quality Gate (Layer 2)

Runs comprehensive checks:
BLOCKED if any check fails.
2

Push to Remote

Only @devops has authority to push (Constitution).
3

Create Pull Request

Automated PR creation via GitHub CLI:
4

Trigger CI/CD

GitHub Actions triggered:
  • Run tests on multiple environments
  • CodeRabbit review (automated)
  • Build verification
  • Security scans

Quality Gates Integration

The development cycle enforces three quality gate layers: See Quality Gates for detailed documentation.

Story Status Lifecycle

Best Practices

Keep stories small and focused:Good:
  • Implement OAuth provider integration (3 points)
  • Add user session management (5 points)
  • Create login UI component (2 points)
Too Large:
  • Build complete authentication system (21 points) ← Should be an epic
Rule of Thumb: If story > 5 points, consider splitting.
Use conventional commits:
Include story reference: Closes Story-{id} or Refs Story-{id}
Write tests before or during implementation:
  1. Read acceptance criterion
  2. Write failing test
  3. Implement code to pass test
  4. Refactor if needed
  5. Move to next criterion

Troubleshooting

Issue: Pre-commit quality gate failsResolution:
Issue: QA returns FAIL multiple timesResolution:
  • Review QA findings carefully
  • Ensure you understand root cause, not just symptoms
  • Consider pairing with human developer if stuck
  • After 5 iterations, escalate to @architect for guidance

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