# Documentation Maintenance Rules **Last Updated:** 2026-05-04 These rules govern how and when documentation is updated during implementation. ## When to Update Each File | File | Update Trigger | |---|---| | `SPRINT_BOARD.md` | Every task completion — move ACTIVE → COMPLETED, advance QUEUE → ACTIVE | | `NEXT_PROMPT.md` | Every task completion — overwrite with next task's full prompt | | `docs/00-governance/current_status.md` | Every task completion — update dates, active task, next task | | `docs/00-governance/active_work.md` | Every task completion — update to reflect new active task | | `docs/00-governance/common_failures.md` | When any NT8 API surprise or runtime issue is encountered | | `docs/00-governance/compile_guardrails.md` | When any compile error is encountered and resolved | | `docs/00-governance/patterns_and_antipatterns.md` | When a working implementation pattern is confirmed | | `docs/00-governance/decisions.md` | When a durable architectural decision is made | | `docs/00-governance/roadmap.md` | When sprint scope, sequence, or gate criteria change | | `docs/IDEAS_BACKLOG.md` | Whenever a new idea surfaces (add freely, Claude structures) | ## Self-Learning Loop The complete protocol is in `.kilocode/rules/self_learning_loop.md`. That file is the authoritative source. This file is a summary only. ## What NOT to Update During Implementation - Do not edit KILOCODE_RUNBOOK.md prompts mid-task (edit only between tasks) - Do not edit SPRINT_BOARD.md QUEUE order without noting it in active_work.md - Do not modify docs/archive/ contents (archive is read-only history) ## Format Rules - All dates: YYYY-MM-DD - All task IDs: [TASK-06a], [GAP-019] format with brackets - All learning entries: start with `## [date] [task-id] —` for easy searching - Git commit messages: follow format in project_context.md