Save this session
Use this vault-local workflow instead of the generic plugin save command.
- Determine the active zone from the conversation. Default to work. Never read or write another zone.
- Acquire
bash scripts/wiki-lock.sh acquire .vault-meta/write/ZONE --ttl 3600. Every batch writer for that zone uses this same lock path. Record the returned token. Use afinallypath that releases this exact token after success or failure. After every long phase and before later writes, build and checkpoint, runrenewthencheck. Never reacquire over an expired record and continue partial work. - Preserve raw session material only when useful. It is L0 and goes to the active inbox. Work inbox is
wiki/workspace/projects/inbox/. - Materialize explicit user decisions and verified reusable outcomes as separate project or resource pages. Use explicit L1 with
memory_provenance, or explicit L2 for canonical state and workflows. Automatically inferred or uncertain claims go throughmemory-candidates.pyand remain L0 until reviewed. Evidence paths remain L0. - Update the active zone index, project index, append-only log, then overwrite its hot cache. Do not call the plugin repository's
wiki-mode.py. - Run
memory-model.py scan, thenbuild --zone ZONE --lock-token TOKEN, thenvalidate --zone ZONE --lock-token TOKEN. The build is the final wiki write. - Check the token again, then create a local Git checkpoint containing only this save's durable files. Never push. Release in the
finallypath, then run one project-scoped retrieval acceptance query with the matching named role loadout and inspect its snippet and context budget.
If validation or checkpoint fails, release the token, report the exact state, then reacquire before repair. Do not claim that context was saved while retrieval is stale or the acceptance query fails.