Fully Automated - 100% Backpressure - Pipeline runner ๐Ÿƒ for AI workflows. ๐Ÿš€

Commit a4952cf7

a4952cf77cbeMerged

Scott Nixon <[email protected]> ยท 9 months ago ยท 1 file ยท +1 added

Description

Add spec template (attractor-dwf)

Details

Commit
a4952cf77cbe
Parent
c2798e002559

templates/spec-template.mdaddedView file

1+# Technical Specification: [Feature or Epic Title]
2+
3+**Status:** Draft | In Review | Approved
4+**Author:** [Your Name]
5+**Created:** [YYYY-MM-DD]
6+**PRD Link:** [Link to corresponding PRD or epic]
7+
8+---
9+
10+## Architecture Overview
11+
12+[Provide a high-level architectural description of how the feature will be implemented. Include:
13+- System components and their relationships
14+- Data flow and interactions
15+- Key design decisions and rationale
16+- Before/after diagrams or descriptions if helpful]
17+
18+### Before/After (Optional)
19+
20+**Before:**
21+[Current state or behavior]
22+
23+**After:**
24+[New state or behavior after implementation]
25+
26+---
27+
28+## File Changes
29+
30+[List each file or component that will be modified. Use numbered sections for each file.]
31+
32+### 1. [Component/File Name]
33+
34+**Location:** `path/to/file.rs` or `path/to/module/`
35+
36+**Change Description:**
37+[Describe what will change in this file and why]
38+
39+**Before:**
40+```
41+[Current code or structure]
42+```
43+
44+**After:**
45+```
46+[New code or structure]
47+```
48+
49+---
50+
51+### 2. [Another Component/File Name]
52+
53+**Location:** `path/to/another/file.ext`
54+
55+**Change Description:**
56+[Describe the modification]
57+
58+**Before:**
59+```
60+[Current implementation]
61+```
62+
63+**After:**
64+```
65+[New implementation]
66+```
67+
68+---
69+
70+## Implementation Phases
71+
72+[This section is critical - the `decompose` CLI command reads these phases to create beads tasks. Structure each phase with clear task lists and dependencies.]
73+
74+### Phase 1: [Title]
75+
76+**Description:** [What this phase accomplishes]
77+
78+**Tasks:**
79+- [ ] [T1-1] Task description with estimated scope
80+- [ ] [T1-2] Subtask or related work
81+- [ ] [T1-3] Complete this phase requirement
82+
83+**Dependencies:** [Other phases or tasks that must be completed first]
84+
85+**Acceptance Criteria:**
86+- [Verifiable criterion for phase completion]
87+- [Test or validation requirement]
88+
89+---
90+
91+### Phase 2: [Title]
92+
93+**Description:** [What this phase accomplishes]
94+
95+**Tasks:**
96+- [ ] [T2-1] Task description
97+- [ ] [T2-2] Related implementation work
98+- [ ] [T2-3] Integration or testing tasks
99+
100+**Dependencies:** Phase 1 (must complete Phase 1 before starting this phase)
101+
102+**Acceptance Criteria:**
103+- [Criterion for phase completion]
104+- [Verification or test requirement]
105+
106+---
107+
108+### Phase 3: [Title]
109+
110+**Description:** [What this phase accomplishes]
111+
112+**Tasks:**
113+- [ ] [T3-1] Final implementation tasks
114+- [ ] [T3-2] Verification and validation
115+- [ ] [T3-3] Documentation or cleanup
116+
117+**Dependencies:** Phase 2
118+
119+**Acceptance Criteria:**
120+- [Final acceptance criterion]
121+- [Complete implementation check]
122+
123+---
124+
125+## Configuration
126+
127+[Document any environment variables, settings, configuration files, or prerequisites needed.]
128+
129+### Environment Variables
130+
131+| Variable | Type | Required | Description |
132+|----------|------|----------|-------------|
133+| `VAR_NAME` | string | Yes | [What this variable controls] |
134+| `ANOTHER_VAR` | integer | No | [Optional configuration, default value] |
135+
136+### Prerequisites
137+
138+| Item | Description | How to Setup |
139+|------|-------------|--------------|
140+| [Dependency Name] | [What it is] | [Steps to install/configure] |
141+| [Tool or Library] | [Purpose in implementation] | [Installation or setup command] |
142+
143+---
144+
145+## Testing Strategy
146+
147+[Describe how the implementation will be tested. Include different testing approaches.]
148+
149+### 1. Unit Tests
150+
151+[Describe unit tests for individual functions/modules]
152+- Test coverage targets: [percentage or specific modules]
153+- Mock dependencies: [What will be mocked]
154+- Test file location: `tests/` or `src/`
155+
156+### 2. Integration Tests
157+
158+[Describe integration tests for component interactions]
159+- Component combinations to test
160+- Setup and teardown requirements
161+- Expected behavior verification
162+
163+### 3. End-to-End Tests
164+
165+[Describe E2E tests for complete features]
166+- User workflows to validate
167+- Test data and scenarios
168+- Performance or load testing if applicable
169+
170+### 4. Manual Testing Checklist
171+
172+- [ ] [Manually test feature X]
173+- [ ] [Verify behavior in condition Y]
174+- [ ] [Check compatibility with existing features]
175+- [ ] [Validate error handling scenarios]
176+
177+---
178+
179+## Rollback Plan
180+
181+[Describe how to revert these changes if problems occur in production.]
182+
183+### Rollback Steps
184+
185+1. [First step to revert - e.g., revert commit or feature flag]
186+2. [Stop/restart services if needed]
187+3. [Restore database state or data migrations]
188+4. [Verify rollback completed successfully]
189+
190+### Rollback Verification
191+
192+- [ ] [Check that system is in prior state]
193+- [ ] [Verify no data loss or corruption]
194+- [ ] [Confirm performance is back to baseline]
195+- [ ] [Validate no side effects remain]
196+
197+### Known Limitations
198+
199+[Document any limitations or risks in rollback:
200+- Irreversible changes (database migrations that can't be reversed)
201+- Manual intervention required
202+- Data considerations during rollback]
203+
204+---
205+
206+## Notes
207+
208+[Any additional context, decisions, or considerations that don't fit other sections:]
209+
210+- [Design decision and rationale]
211+- [Architectural alternative considered and why it wasn't chosen]
212+- [Known technical debt or future improvements]
213+- [References to spike/investigation work done during planning]
214+
215+---
216+
217+<!--
218+INSTRUCTIONS FOR USING THIS TEMPLATE:
219+
220+1. Replace all [bracketed placeholders] with actual content
221+2. Update Status as you progress (Draft โ†’ In Review โ†’ Approved)
222+3. Link to the PRD that defines the what/why for this spec
223+4. Make Architecture Overview clear enough for anyone to understand the design
224+5. Be specific in File Changes with actual code examples
225+6. Implementation Phases MUST have clear task lists - this is what `decompose` reads
226+7. Include realistic dependencies between phases
227+8. Configuration section should be comprehensive and include examples
228+9. Testing Strategy should cover all critical paths and edge cases
229+10. Rollback Plan must be concrete and testable
230+
231+For decompose integration:
232+- Create a PRD linked in the metadata
233+- Structure Implementation Phases with numbered tasks [T-Phase-Task format]
234+- List clear dependencies between phases
235+- Run `bd decompose <spec>` to generate beads tasks from phases
236+- Each phase becomes a beads epic, each task becomes a beads task
237+- Dependencies translate to beads blocking relationships
238+
239+Tips:
240+- Keep phases logically grouped around deliverables
241+- Make task descriptions small enough to complete in one session
242+- Include acceptance criteria for each phase so you know when it's done
243+- Reference this spec in beads issues for full traceability
244+-->