System Architecture
🏗️ Complete System Architecture
The following diagram illustrates the complete workflow from user requests through epic/requirement/task creation to automated reporting and self-management:
graph TD
A["User/Agent Request"] --> B{"Request Type?"}
B -->|Epic Creation| C["./wf.sh new epic 'name'"]
B -->|Requirement| D["./wf.sh new requirement 'name' --epic='epic'"]
B -->|Task| E["./wf.sh new todo 'name' --requirement='req'"]
C --> F["Create Epic Folder<br/>docs/kanban/EPICS/epic-name/"]
F --> G["Epic Overview File<br/>epic-overview.md"]
D --> H["Create Requirement<br/>REQUIREMENTS/req-name.md"]
H --> I["Gherkin Format<br/>Feature/Scenario/Given-When-Then"]
E --> J["Create Task<br/>TASKS/task-name.md"]
J --> K["Link to Requirement<br/>Update metadata"]
I --> L["Git Integration"]
K --> L
L --> M["Commit Tracking<br/>REQ-XXX: commit message"]
L --> N["Branch Mapping<br/>feature/req-001-name"]
M --> O["Progress Calculation"]
N --> O
O --> P["Automated Reporting<br/>Epic/Requirement Status"]
P --> Q["Self-Management<br/>Hand-offs & Onboarding"]
Q --> R["CSV Export<br/>Progress Tracking"]
R --> S["Repository Self-Management"]
🔄 Main Workflow Decision Tree
graph TD
A[User Input] --> B{Analyze Input}
B --> C{Off-Topic?}
C -->|Yes| D[Create Quick Feature Requirement]
C -->|No| E{Conflicts with Current Work?}
E -->|Yes| F[Document Conflict & Resolution]
E -->|No| G{Determine Scope}
G --> H{Epic Indicators?}
H -->|Yes| I[Create Epic]
G --> J{Requirement Indicators?}
J -->|Yes| K[Create Requirement]
G --> L{Task Indicators?}
L -->|Yes| M[Create Task]
D --> N[Save to Quick Features]
F --> O[Update Current Work]
I --> P[Epic Workflow]
K --> Q[Requirement Workflow]
M --> R[Task Workflow]
style A fill:#e1f5fe
style B fill:#fff3e0
style D fill:#f3e5f5
style F fill:#ffebee
style I fill:#e8f5e8
style K fill:#e3f2fd
style M fill:#fff8e1
🎯 Scope Classification
Epic Indicators
- Multiple related features or major system changes
- Cross-cutting concerns affecting multiple components
- Long-term initiatives spanning multiple sprints
- Infrastructure or architectural changes
Examples:
- "Implement complete user authentication system"
- "Add real-time collaboration features"
- "Migrate to microservices architecture"
Requirement Indicators
- Specific functional capabilities
- Well-defined acceptance criteria
- Single area of functionality
- Can be implemented in 1-2 sprints
Examples:
- "User login with email and password"
- "Export data to CSV format"
- "Add dark mode toggle"
Task Indicators
- Specific implementation work
- Bug fixes or small improvements
- Part of a larger requirement
- Can be completed in hours or days
Examples:
- "Fix login button styling"
- "Add unit tests for auth service"
- "Update documentation for new API endpoint"
🔄 Flow Control Logic
Off-Topic Request Handling
When a request doesn't fit current project scope:
- Quick Assessment - Is this a valid future feature?
- Documentation - Create requirement stub for future consideration
- Prioritization - Add to backlog with appropriate priority
- Communication - Inform stakeholders of deferral
Conflict Resolution
When new requests conflict with current work:
- Impact Analysis - Assess effect on current sprint/work
- Stakeholder Communication - Discuss priority changes
- Documentation - Record conflict and resolution approach
- Re-planning - Adjust current work to accommodate if needed
🚀 Automation Touch Points
Git Integration
- Branch Creation - Automatic branch naming based on requirement IDs
- Commit Tracking - REQ-XXX format for traceability
- Metadata Updates - Automatic git tracking in requirement files
- Progress Calculation - Commit-based progress indicators
File System Organization
supernal-coding/
├── kanban/
│ ├── epics/ # Epic planning and overview
│ ├── tasks/ # Individual work items
│ └── handoffs/ # Agent transfer documentation
├── requirements/ # Gherkin-based specifications
│ ├── core/ # Core system requirements
│ ├── infrastructure/ # Infrastructure requirements
│ └── workflow/ # Workflow requirements
└── templates/ # Standard templates for consistency
Automated Reporting
- Real-time Metrics - Live requirement count and status
- Progress Tracking - Automatic completion percentage calculation
- CSV Export - Structured data for external analysis
- Dashboard Integration - Live visualization of project state
🤖 Agent Integration Points
Entry Points
- Handoff Review - Check current work context from previous agents
- Requirement Analysis - Understand current sprint and dependencies
- Priority Assessment - Evaluate new work against existing priorities
Decision Support
- Scope Classification - Automated suggestions for epic vs requirement vs task
- Conflict Detection - Identification of potential work conflicts
- Resource Planning - Estimation based on current capacity and velocity
Knowledge Transfer
- Structured Handoffs - Standardized format for agent-to-agent communication
- Context Preservation - Automatic capture of work context and decisions
- Progress Documentation - Real-time updates to work item status
This architecture ensures consistent, trackable, and automated management of complex software development workflows while supporting both AI agents and human developers.