Memory Governor · Kernel
arif_memoryPersistent institutional knowledge across sessions — store, recall, and curate lessons, decisions, and context so later sessions inherit them. Modes: recall (semantic search, default), inspect (read one memory in full), attest (vouch for its accuracy), remember (store a self-contained lesson), promote (move up a tier), revise (replace its text), forget (remove — gated), audit (integrity scan), metabolize (compact and consolidate tiers). Use to carry knowledge forward between sessions; NOT for fresh external facts (arif_observe) and NOT for permanent audit receipts — those are arif_seal appends to the VAULT999 ledger, which can never be edited, whereas memory entries are revisable by design. Tiers L1 (hot working memory) → L6 (sealed canon). Behavior: reads (recall/inspect/audit) are side-effect-free; writes (remember/promote/revise/metabolize) mutate memory state; promote and forget refuse without human_approval=true — only the human owner may destroy memory. Requires a valid arif_init session. Outputs: scoped memory entries with tier and provenance.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "arif_memory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 'recall' (default) — semantic search of stored memories; 'inspect' — read one memory in full; 'attest' — vouch for a memory's accuracy; 'remember' — store new text; 'promote' — move a memory up a tier; 'revise' — replace a memory's text; 'forget' — remove a memory (gated); 'audit' (memory integrity scan — verifies and integrity-scans stored semantic knowledge across tiers L1–L6; distinct from arif_seal's immutable ledger audit); 'metabolize' — compact and consolidate tiers. | recall |
| tier | No | Which memory tier to target, 'L1'–'L6' (L1 = hot working memory, L6 = sealed canon). | |
| query | No | What to search for, in plain language (mode=recall/audit), e.g. 'past deploy rollback steps'. | |
| content | No | The text to store (mode=remember) — write it as a self-contained lesson or fact. | |
| payload | No | Extra mode-specific fields as JSON — e.g. {"truth_class": "DERIVED", "provenance": "CI log"} for remember. | |
| to_tier | No | Destination tier when promoting, e.g. 'L4'. | |
| actor_id | No | Your agent identity, e.g. 'kimi-code/FI-008' — recorded in the audit log. | |
| lease_id | No | Id of a short-lived permission grant (lease) authorizing this write, when one was issued to you. | |
| trace_id | No | Correlation id of your choosing (e.g. 'req-8f3a') to find this call later in the logs. | |
| memory_id | No | UUID of the memory entry to inspect/revise/forget — it was returned when the memory was created or last listed. | |
| session_id | No | Session id returned by arif_init; attributes this call to your governed session. | |
| new_content | No | Replacement text for the memory (mode=revise) — must refer to the same memory_id. | |
| session_token | No | Session Continuity Token (SCT) returned by arif_init — proves the session is yours. | |
| human_approval | No | Set true ONLY when the human owner explicitly approved this promote/forget — the gate refuses without it. | |
| idempotency_key | No | Client-chosen key (e.g. 'memo-42'); retries with the same key will not store duplicates. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | Yes | ||
| tool | Yes | ||
| result | Yes | ||
| status | Yes | ||
| delta_S | No | ||
| reasons | Yes | ||
| actor_id | No | ||
| timestamp | Yes | ||
| session_id | No | ||
| nine_signal | Yes | ||
| output_policy | No | ||
| stage_progression | No | ||
| philosophical_anchor | No |