The framework has contradictory directives about project files:
- Says: Track project work in git (PRDs, specs, tasks, state)
- But also says: Delete state when complete, keep directories empty
- Result: Confusion about what's permanent vs temporary
Was: Ignoring /PRD.md, /ai_project/specs/, /ai_project/tasks/, /ai_project/state/
Now: Only ignores framework dev files (WORKING_*.md)
Status: ✅ Fixed
Line 105: Changed "pure, no project pollution" → "serve the project" ✅
Line 121: Changed "all project files here" → "YOUR PROJECT WORK" ✅
Lines 135-153: Added verbose "PROJECT-FIRST" section
Line 5: "State is ONLY for crash/interruption recovery" Line 17: "Directory should be EMPTY after completion" Lines 22-23: "DELETE ALL STATE FILES - they are for resumption only" Entire file philosophy: Treats state as temporary runtime data, not project artifacts
A. Permanent Project Artifacts (NEVER delete, ALWAYS track in git):
/PRD.md,/PRD_*.md- Requirements/ai_project/specs/- Specifications/ai_project/tasks/- Task lists/ai_project/resources/- Examples and assets/ai_project/contexts/- Project customizations
B. Project Progress Tracking (Keep and track):
/ai_project/state/project_progress.json- Overall progress- Task completion checkboxes in task lists
C. Session Recovery (Could be local/ephemeral, team decides):
/ai_project/state/session_state.json- Current editing context/ai_project/state/checkpoint.json- Recovery instructions- These could be gitignored like
.vscode/workspaceOR tracked for team collaboration
Delete the "PROJECT-FIRST: GIT TRACKING (PARAMOUNT)" section I added to AI_CONTEXT.md. If we don't tell people to ignore files, we don't need verbose instructions to track them.
In ai_state_rules.md and AI_CONTEXT.md:
Change from:
- "State is ONLY for recovery"
- "Delete when complete"
- "Directory empty between tasks"
Change to:
- State includes project progress (permanent) and session recovery (ephemeral)
- Never delete project artifacts
- Session recovery files can be cleared, project progress cannot
Change code examples from:
if task_complete:
clear_all_state_files() # ❌ Wrong - deletes project workTo:
if task_complete:
# Update task list (permanent record)
update_task_list(task_id, completed=True)
# Clear session recovery (optional, if user prefers)
clear_session_recovery() # Only session_state.json, checkpoint.json
# NEVER clear project_progress.json or task lists!Make these surgical changes:
- Remove lines 135-153 from AI_CONTEXT.md (verbose section I added)
- Rewrite lines 159-164 to clarify permanent vs ephemeral
- Rewrite ai_state_rules.md with correct philosophy
- Update code examples to never delete project artifacts
Don't add:
- Verbose "track everything!" instructions
- Redundant explanations
- Counter-directives
Just remove the contradictions and let natural behavior emerge.