@@ -39,6 +39,7 @@ Comprehensive implementation guide for the Aegis framework, containing detailed
3939 - Target state allowed
4040 - Dependencies met
4141 - Progress tracked
42+ - Test status appropriate
4243
43443 . ** Memory Validation**
4445 - Front matter valid
@@ -82,6 +83,8 @@ Comprehensive implementation guide for the Aegis framework, containing detailed
8283- [ ] Validate the current task state
8384- [ ] Perform the requested task operation
8485- [ ] Update the task document
86+ - [ ] Verify test status when completing a task
87+ - [ ] Prompt for confirmation if test status is not "Passing" or "Not Applicable"
8588- [ ] Update project.json with task changes
8689- [ ] Update timestamps to current time
8790- [ ] Verify all files have been properly updated
@@ -151,6 +154,7 @@ Comprehensive implementation guide for the Aegis framework, containing detailed
151154 - Dependencies noted
152155 - Status updated
153156 - Next steps defined
157+ - Test status managed
154158
1551592 . Directory Structure
156160```
@@ -195,6 +199,33 @@ Comprehensive implementation guide for the Aegis framework, containing detailed
195199 - Include test files only when the task directly involves testing
196200 - For framework tasks, include only the specific framework files being modified
197201
202+ 4 . Test-Driven Development Integration
203+ - Purpose: Support TDD workflow within the framework
204+ - Implementation:
205+ - Each task includes a "Test Status" section
206+ - Valid statuses: Not Started, Failing, Passing, Not Applicable
207+ - "Not Started": Tests haven't been written yet, or testing has not begun
208+ - "Failing": Tests exist but are failing (implementation incomplete/incorrect)
209+ - "Passing": All tests are passing (implementation complete and correct)
210+ - "Not Applicable": Task doesn't require tests (documentation, planning, etc.)
211+ - Related test files are tracked with brief descriptions
212+ - Task Completion Logic:
213+ - When test status is "Passing", task can be completed normally
214+ - When test status is "Failing", prompt user for confirmation before completing
215+ - When test status is "Not Applicable", task can be completed normally
216+ - When test status is "Not Started", prompt user for confirmation before completing
217+ - Status Management:
218+ - Update test status when test files are created or modified
219+ - Set initial status to "Not Started" for tasks involving implementation
220+ - Set initial status to "Not Applicable" for tasks not requiring tests (e.g., documentation)
221+ - Track test files path and descriptions in the task document
222+ - Best Practices:
223+ - Always update test status when related tests are created or modified
224+ - Include comments or documentation about test requirements
225+ - Link to specific test files in the task document
226+ - Explain why a task is marked as "Not Applicable" when applicable
227+ - For TDD workflow: tests should transition from "Not Started" → "Failing" → "Passing"
228+
198229## Memory System
199230
200231### Memory Types
@@ -619,4 +650,27 @@ If you detect inconsistencies between state files and the actual system:
6196501. Prioritize the actual system state (files in directories) as the source of truth
6206512. Update state files to match the actual system state
6216523. Document the reconciliation in your response to the user
622- 4. Suggest preventive measures to avoid future inconsistencies
653+ 4. Suggest preventive measures to avoid future inconsistencies
654+
655+ ### TaskTemplate
656+ "FrontMatter": [
657+ "title, type=task",
658+ "status=[planned|active|completed|hold]",
659+ "created=YYYY-MM-DDTHH:MM:SS",
660+ "updated=YYYY-MM-DDTHH:MM:SS",
661+ "id=TASK-XXX",
662+ "priority=[high|medium|low]",
663+ "memory_types=[procedural|semantic|episodic]",
664+ "dependencies, tags"
665+ ]
666+ },
667+ "RequiredTaskSections": [
668+ "Description",
669+ "Objectives",
670+ "Steps",
671+ "Progress",
672+ "Dependencies",
673+ "Test Status",
674+ "Notes",
675+ "Next Steps"
676+ ],
0 commit comments