Skip to main content
Glama

arifOS — Constitutional AI Governance

999 Seal · VAULT999

arif_seal
Destructive

Append verified outcome or lesson to the immutable audit ledger. Requires ack_irreversible=true to confirm permanent commit. Outputs: immutable ledger entry receipt.

Input Schema

NameRequiredDescriptionDefault
modeNo'seal' (default) — append a permanent entry; 'verify' — check one entry; 'ledger' — read the ledger head; 'changelog' — recent appends; 'audit' — integrity check; 'session_close' — close out a session into the ledger.seal
nonceNoOne-time random string (e.g. a UUID) making this request unique; protects against replay of the same call.
payloadNoThe content to store forever, as a string (usually JSON-serialized) — the outcome, lesson, or record itself. Required for the write modes (seal, session_close); pure reads (verify, ledger, changelog, audit) may omit it.
actor_idNoYour agent identity, e.g. 'kimi-code/FI-008' or 'claude/sonnet'. Recorded in the audit log so this action is attributed to you.
session_idNoSession id returned by arif_init (looks like 'sess-…'). Pass it on every call after init so the action is attributed to your governed session.
drift_eventsNoJSON list of deviations observed, e.g. [{"what": "schema drift", "where": "tools/list"}] — stored with the record.
seal_purposeNoOne sentence saying why this verdict/record must exist, e.g. 'closing deployment D-17'. Stored permanently alongside the record.
witness_typeNoWho witnessed the sealed fact: 'ai', 'human', or 'external' system.ai
session_tokenNoSession Continuity Token (SCT) — the credential string arif_init returned alongside session_id. Pass it back on follow-up calls to prove the session is yours; without it the kernel treats you as unauthenticated.
constitutionalNoJSON block of governance metadata (floors consulted, chain references) — normally built by the kernel, not by callers.
actor_signatureNoCryptographic signature over the request, if your agent holds a key — proves the call genuinely came from actor_id. Omit if you have no key.
ack_irreversibleNoSet true to confirm you understand sealed entries are PERMANENT — they can never be edited or removed.
judge_state_hashNoHash string from the arif_judge SEAL response — ties this entry to the verdict that authorized it.
constitutional_chain_idNoId of the evidence chain this call belongs to (observe→think→judge→seal). Copy it from the earlier step's response to link the steps together.

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. Changed2 schema fields changed
    • changedInput schema / allOf
      Previous value: -[
      -  {
      -    "if": {
      -      "anyOf": [
      -        {
      -          "not": {
      -            "required": [
      -              "mode"
      -            ]
      -          }
      -        },
      -        {
      -          "properties": {
      -            "mode": {
      -              "enum": [
      -                "seal"
      -              ]
      -            }
      -          },
      -          "required": [
      -            "mode"
      -          ]
      -        }
      -      ]
      -    },
      -    "then": {
      -      "required": [
      -        "seal_purpose"
      -      ]
      -    }
      -  }
      -]New value: +[
      +  {
      +    "if": {
      +      "anyOf": [
      +        {
      +          "not": {
      +            "required": [
      +              "mode"
      +            ]
      +          }
      +        },
      +        {
      +          "properties": {
      +            "mode": {
      +              "enum": [
      +                "seal",
      +                "session_close"
      +              ]
      +            }
      +          },
      +          "required": [
      +            "mode"
      +          ]
      +        }
      +      ]
      +    },
      +    "then": {
      +      "required": [
      +        "payload",
      +        "seal_purpose"
      +      ]
      +    }
      +  }
      +]
    • removedInput schema / required
      Removed value: -[
      -  "payload"
      -]
  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": {
      +        "merkle_root": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "mode": {
      +          "type": "string"
      +        },
      +        "nine_signal": {
      +          "additionalProperties": true,
      +          "type": "object"
      +        },
      +        "reasons": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "timestamp": {
      +          "type": "string"
      +        },
      +        "vault_entry_id": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "verdict": {
      +          "type": "string"
      +        }
      +      },
      +      "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_seal"
      +    }
      +  },
      +  "required": [
      +    "status",
      +    "tool",
      +    "result",
      +    "meta",
      +    "timestamp",
      +    "nine_signal",
      +    "reasons"
      +  ],
      +  "type": "object"
      +}
  3. Changed3 schema fields changed
    • addedInput schema / allOf
      Added value: +[
      +  {
      +    "if": {
      +      "anyOf": [
      +        {
      +          "not": {
      +            "required": [
      +              "mode"
      +            ]
      +          }
      +        },
      +        {
      +          "properties": {
      +            "mode": {
      +              "enum": [
      +                "seal"
      +              ]
      +            }
      +          },
      +          "required": [
      +            "mode"
      +          ]
      +        }
      +      ]
      +    },
      +    "then": {
      +      "required": [
      +        "seal_purpose"
      +      ]
      +    }
      +  }
      +]
    • changedInput schema / properties / payload / description
      Previous value: -"The content to store forever, as a string (usually JSON-serialized) — the outcome, lesson, or record itself."New value: +"The content to store forever, as a string (usually JSON-serialized) — the outcome, lesson, or record itself. Required for the write modes (seal, session_close); pure reads (verify, ledger, changelog, audit) may omit it."
    • addedInput schema / required
      Added value: +[
      +  "payload"
      +]
  4. Changed1 schema field changed
    • removedInput schema / properties / _envelope
      Removed value: -{
      -  "default": null,
      -  "description": "Reserved for the transport layer — never fill this in.",
      -  "title": "Envelope"
      -}
  5. Added

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and non-idempotent, and the description reinforces this with the immutability framing and the mandatory ack flag, plus it names the receipt output. It stops short of noting that the read modes on this same tool are non-destructive, so the safety picture is only partly drawn.

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?

Three short sentences, front-loaded with the action and immediately followed by the hard prerequisite. Nothing is padded, though the brevity comes at the cost of omitting the mode-selection surface entirely.

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

Completeness3/5

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

The output schema and 100%-documented param schema cover return values and per-parameter meaning, so little is owed there. But for a 14-parameter, six-mode tool the description describes only the seal path, leaving the read/verify/audit behaviors and the judge-to-seal chaining (judge_state_hash, constitutional_chain_id) undisclosed at the description level.

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 each of the 14 parameters already carries a detailed description, so the schema does the heavy lifting. The description adds only the ack_irreversible requirement, which the schema itself also explains — baseline 3.

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

Purpose4/5

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

States a specific verb and resource: 'Append verified outcome or lesson to the immutable audit ledger' — clear what gets written and where it goes. It does not differentiate this tool from siblings such as arif_judge or arif_report, which also produce verdict/evidence artifacts, so the agent cannot easily tell which to pick.

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

Usage Guidelines2/5

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

The only usage instruction is the ack_irreversible=true prerequisite for the permanent-commit path. Nothing says when to seal versus judge, report, or remember, and the description never mentions the mode enum ('verify', 'ledger', 'changelog', 'audit', 'session_close'), so an agent would reasonably assume this is write-only and miss five of its six behaviors.

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.