v0.2.0 — TurnState: always-on memory
v0.2.0 — first runnable module.
CharmOS ships its first real code: modules/turnstate/, the always-on memory pillar from the manifesto.
TurnState gives an AI coding/agent session a durable, queryable working memory without spending a single LLM token to maintain it. After each turn it writes one deterministic row (ask · summary · files · tools · commands · decisions · evidence pointer) to a local SQLite ledger.
Two halves:
turnstate_hook.py— real-timeStop-hook fast path. Pure stdlib, never raises into the session.turnstate_backfill.py— idempotent rebuild straight from transcripts + a--checkfreshness gate, so the ledger can never silently rot.
The raw transcript stays the source of truth; TurnState is the cheap derived index you recall against. Local-only, no data leaves your machine. See modules/turnstate/README.md.
Full notes in the CHANGELOG.