Skip to main content
Glama

arifOS — Constitutional AI Governance

This connector has been deprecated in the official MCP Registry

Memory Governor · Kernel

arif_memory
Destructive

Persistent 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

NameRequiredDescriptionDefault
modeNo'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
tierNoWhich memory tier to target, 'L1'–'L6' (L1 = hot working memory, L6 = sealed canon).
queryNoWhat to search for, in plain language (mode=recall/audit), e.g. 'past deploy rollback steps'.
contentNoThe text to store (mode=remember) — write it as a self-contained lesson or fact.
payloadNoExtra mode-specific fields as JSON — e.g. {"truth_class": "DERIVED", "provenance": "CI log"} for remember.
to_tierNoDestination tier when promoting, e.g. 'L4'.
actor_idNoYour agent identity, e.g. 'kimi-code/FI-008' — recorded in the audit log.
lease_idNoId of a short-lived permission grant (lease) authorizing this write, when one was issued to you.
trace_idNoCorrelation id of your choosing (e.g. 'req-8f3a') to find this call later in the logs.
memory_idNoUUID of the memory entry to inspect/revise/forget — it was returned when the memory was created or last listed.
session_idNoSession id returned by arif_init; attributes this call to your governed session.
new_contentNoReplacement text for the memory (mode=revise) — must refer to the same memory_id.
session_tokenNoSession Continuity Token (SCT) returned by arif_init — proves the session is yours.
human_approvalNoSet true ONLY when the human owner explicitly approved this promote/forget — the gate refuses without it.
idempotency_keyNoClient-chosen key (e.g. 'memo-42'); retries with the same key will not store duplicates.

Output Schema

NameRequiredDescriptionDefault
metaYes
toolYes
resultYes
statusYes
delta_SNo
reasonsYes
actor_idNo
timestampYes
session_idNo
nine_signalYes
output_policyNo
stage_progressionNo
philosophical_anchorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / mode / description
      Previous value: -"'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' — integrity scan; 'metabolize' — compact and consolidate tiers."New value: +"'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."
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "actor_id": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "delta_S": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "meta": {
      +      "additionalProperties": true,
      +      "type": "object"
      +    },
      +    "nine_signal": {
      +      "additionalProperties": true,
      +      "properties": {
      +        "delta": {
      +          "properties": {
      +            "en": {
      +              "type": "string"
      +            },
      +            "plane": {
      +              "type": "string"
      +            },
      +            "state": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "state",
      +            "en"
      +          ],
      +          "type": "object"
      +        },
      +        "omega": {
      +          "properties": {
      +            "en": {
      +              "type": "string"
      +            },
      +            "plane": {
      +              "type": "string"
      +            },
      +            "state": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "state",
      +            "en"
      +          ],
      +          "type": "object"
      +        },
      +        "overall": {
      +          "properties": {
      +            "en": {
      +              "type": "string"
      +            },
      +            "state": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "psi": {
      +          "properties": {
      +            "en": {
      +              "type": "string"
      +            },
      +            "plane": {
      +              "type": "string"
      +            },
      +            "state": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "state",
      +            "en"
      +          ],
      +          "type": "object"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "output_policy": {
      +      "type": "string"
      +    },
      +    "philosophical_anchor": {
      +      "additionalProperties": true,
      +      "type": "object"
      +    },
      +    "reasons": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "result": {
      +      "additionalProperties": true,
      +      "properties": {},
      +      "type": "object"
      +    },
      +    "session_id": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "stage_progression": {
      +      "anyOf": [
      +        {
      +          "type": "null"
      +        },
      +        {
      +          "properties": {
      +            "current_stage": {
      +              "type": "string"
      +            },
      +            "next_prompt": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "next_stage": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "next_tool": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            }
      +          },
      +          "type": "object"
      +        }
      +      ]
      +    },
      +    "status": {
      +      "type": "string"
      +    },
      +    "timestamp": {
      +      "type": "string"
      +    },
      +    "tool": {
      +      "const": "arif_memory"
      +    }
      +  },
      +  "required": [
      +    "status",
      +    "tool",
      +    "result",
      +    "meta",
      +    "timestamp",
      +    "nine_signal",
      +    "reasons"
      +  ],
      +  "type": "object"
      +}
  3. Added

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only give coarse whole-tool hints (destructiveHint=true, readOnlyHint=false), but the description disaggregates behavior per mode: recall/inspect/audit are side-effect-free while remember/promote/revise/metabolize mutate state, and promote/forget refuse without human_approval=true. It also discloses authorization context (only the human owner may destroy memory), the tier model, and the return shape, adding real value beyond the annotations rather than restating them.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded in the first clause, with modes, exclusions, and safety behavior following in a logical order. The mode enumeration is long but each entry carries distinct information; the paragraph is dense enough that a reader must parse carefully, which keeps it just short of a 5.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 15-parameter, nine-mode, destructive-capable tool, the description covers the prerequisite session, mode semantics, the approval gate, tier progression, and the distinction from sibling tools. The output schema and full param coverage handle return values and field meanings, so nothing an agent needs to call this correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, and every parameter is already documented there, including mode, tier, human_approval and idempotency_key. The description's mode list largely duplicates the enum description, so it adds only marginal meaning beyond the structured fields; baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence names the resource and the full set of verbs ('store, recall, and curate lessons, decisions, and context'), then enumerates all nine modes with a parenthetical gloss for each. It also explicitly distinguishes itself from two siblings (arif_observe for external facts, arif_seal for immutable ledger receipts), so an agent can route correctly without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the positive case ('carry knowledge forward between sessions'), two explicit exclusions with the correct alternative named for each, and a hard prerequisite ('Requires a valid arif_init session'). The gating condition for promote/forget is spelled out with the exact flag needed.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.