State Management
This repository uses a structured state contract for short-lived working memory, plus generated handoff packets for session-to-session continuity.
Files
state/session-state.json— canonical working state (project-scoped, installer scaffolded for project installs)handoff/latest.md— generated handoff summary (runtime output, not installer-seeded)
state/ is project-level working memory. Global installs do not create shared state.
Session State Contract
Required fields:
goal(string)current_phase(string)decisions(string[])open_risks(string[])blocked_by(string[])next_actions(string[])artifacts(string[])last_updated(ISO-8601 string)
Validate locally:
npm run validate:session
Handoff Packet
Generate a concise handoff for the next agent/operator:
npm run handoff:generate
The output includes objective, phase, decisions, risks, blockers, and next actions.
CI Enforcement
validate-session-statevalidatesstate/session-state.jsonvalidate-session-stategenerateshandoff/latest.mdhandoff/latest.mdis uploaded as a workflow artifact for traceability