This project uses a structured context pipeline for continuity, planning, code traceability, and clean handoffs.
- Session continuity
- Clean handoffs between sessions
- Verified planning before implementation
- Auditable progress history
- Code-referenced architecture coverage
- Reusable workflows captured as skills only when truly repeatable
critical_prompt.md- product/system scope and north star
context.md- live current statecontext_history/- archived priorcontext.mdsnapshotscontext_checkpoints/- end-of-session handoff snapshotsstructure.md- project tree and source ownership snapshot
instructions.md- documentation workflowwork_prompt.md- session start/end templatescontext_pipeline.md- this file
architecture/code-map.md- subsystem-to-code/test/doc ownership maparchitecture/components/- focused component contractsSYSTEM_FLOW_INDEX.md- compact runtime and UX flow indextest_index/- validation docs and commands
logs/- session activity historydecisions/- ADRserrors/- hard debugging notesaudits/- read-only audit reports
plans/- active plansknowledgebase/- verified reusable findingsskills/- reusable workflows only
Read, in order:
critical_prompt.mdcontext.md- Latest file in
context_checkpoints/if resuming architecture/code-map.mdwhen source files, tests, or architecture are in scope- Relevant component doc in
architecture/components/ - Relevant active plan in
plans/ - Relevant repo-local skill in
skills/
- Verify uncertain technical details from code.
- Record reusable findings in
knowledgebase/. - Create or refine a plan in
plans/. - Create an ADR in
decisions/when the choice changes future work.
- Implement according to the accepted plan.
- Track changed source files against
architecture/code-map.md. - Keep
context.mdcurrent. - Add or update component docs, test docs, ADRs, or KB notes when contracts move.
- Create a log entry in
logs/. - Create a checkpoint in
context_checkpoints/. - Archive previous
context.mdintocontext_history/if meaningfully changed. - Rewrite
context.mdas the concise live snapshot. - Name changed source files and owning
architecture/code-map.mdrows. - Update related component/test docs or explicitly state why they are unchanged.
- Run
python scripts/check_doc_coverage.pyand include notable warnings.
Do not turn context.md into a full architecture document. It should point to
the current anchors and summarize restart state. Durable architecture belongs in
architecture/; validation meaning belongs in test_index/.