When something important happens — a decision, observation, tension, question, outcome, or context change
Before making decisions that might have prior context. Query by time, type, keyword, or ID
At session end — returns episodes + current continuity + association context + compression instructions
After compressing — server validates structure, citations, records associations, applies decay, and saves
Remove content that should not exist (PII, sensitive data). Cascades to associations. Logged in audit trail (best-effort: the deletion is never failed by an audit-write failure; check `status().audit_write_failures` when the log is your evidence — a loss *recorded* there survives the process, so a…
Check memory health: episode counts, wrap history, continuity size, association network metrics
Abandon a wrap that is open and will not be finished — the escape hatch when `prepare_wrap` refuses with "a wrap is already in progress". Episodes are not deleted; the next `prepare_wrap` picks them up. Optional `wrap_token`: cancel only if that wrap is still the one in progress, refused with no ch…
Recall crystallized (graduated, long-term) patterns relevant to a query — the on-demand semantic tier. Keyword scoring is corpus-aware (rare, distinctive terms outweigh common process-words, so recall stays precise on a large store), and recall also follows evidence edges — surfacing a pattern grou…
The always-on name + one-clause menu of the crystallized store — what graduated wisdom exists, so the agent isn't blind to its own corpus (the bodies fill on cue via `crystal_recall`)