Skip to main content
Glama

arifOS — Constitutional AI Kernel

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. Changed15 schema fields changed
    • addedInput schema / properties / _envelope / description
      Added value: +"Reserved for the transport layer — never fill this in."
    • addedInput schema / properties / ack_irreversible / description
      Added value: +"Set true to confirm you understand sealed entries are PERMANENT — they can never be edited or removed."
    • addedInput schema / properties / actor_id / description
      Added value: +"Your agent identity, e.g. 'kimi-code/FI-008' or 'claude/sonnet'. Recorded in the audit log so this action is attributed to you."
    • addedInput schema / properties / actor_signature / description
      Added value: +"Cryptographic signature over the request, if your agent holds a key — proves the call genuinely came from actor_id. Omit if you have no key."
    • addedInput schema / properties / constitutional / description
      Added value: +"JSON block of governance metadata (floors consulted, chain references) — normally built by the kernel, not by callers."
    • addedInput schema / properties / constitutional_chain_id / description
      Added value: +"Id 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."
    • addedInput schema / properties / drift_events / description
      Added value: +"JSON list of deviations observed, e.g. [{\"what\": \"schema drift\", \"where\": \"tools/list\"}] — stored with the record."
    • addedInput schema / properties / judge_state_hash / description
      Added value: +"Hash string from the arif_judge SEAL response — ties this entry to the verdict that authorized it."
    • addedInput schema / properties / mode / description
      Added value: +"'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."
    • addedInput schema / properties / nonce / description
      Added value: +"One-time random string (e.g. a UUID) making this request unique; protects against replay of the same call."
    • addedInput schema / properties / payload / description
      Added value: +"The content to store forever, as a string (usually JSON-serialized) — the outcome, lesson, or record itself."
    • addedInput schema / properties / seal_purpose / description
      Added value: +"One sentence saying why this verdict/record must exist, e.g. 'closing deployment D-17'. Stored permanently alongside the record."
    • addedInput schema / properties / session_id / description
      Added value: +"Session id returned by arif_init (looks like 'sess-…'). Pass it on every call after init so the action is attributed to your governed session."
    • addedInput schema / properties / session_token / description
      Added value: +"Session 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."
    • addedInput schema / properties / witness_type / description
      Added value: +"Who witnessed the sealed fact: 'ai', 'human', or 'external' system."
  6. Changed15 schema fields changed
    • removedInput schema / properties / _envelope / description
      Removed value: -"Reserved for the transport layer — never fill this in."
    • removedInput schema / properties / ack_irreversible / description
      Removed value: -"Set true to confirm you understand sealed entries are PERMANENT — they can never be edited or removed."
    • removedInput schema / properties / actor_id / description
      Removed value: -"Your agent identity, e.g. 'kimi-code/FI-008' or 'claude/sonnet'. Recorded in the audit log so this action is attributed to you."
    • removedInput schema / properties / actor_signature / description
      Removed value: -"Cryptographic signature over the request, if your agent holds a key — proves the call genuinely came from actor_id. Omit if you have no key."
    • removedInput schema / properties / constitutional / description
      Removed value: -"JSON block of governance metadata (floors consulted, chain references) — normally built by the kernel, not by callers."
    • removedInput schema / properties / constitutional_chain_id / description
      Removed value: -"Id 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."
    • removedInput schema / properties / drift_events / description
      Removed value: -"JSON list of deviations observed, e.g. [{\"what\": \"schema drift\", \"where\": \"tools/list\"}] — stored with the record."
    • removedInput schema / properties / judge_state_hash / description
      Removed value: -"Hash string from the arif_judge SEAL response — ties this entry to the verdict that authorized it."
    • removedInput schema / properties / mode / description
      Removed value: -"'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."
    • removedInput schema / properties / nonce / description
      Removed value: -"One-time random string (e.g. a UUID) making this request unique; protects against replay of the same call."
    • removedInput schema / properties / payload / description
      Removed value: -"The content to store forever, as a string (usually JSON-serialized) — the outcome, lesson, or record itself."
    • removedInput schema / properties / seal_purpose / description
      Removed value: -"One sentence saying why this verdict/record must exist, e.g. 'closing deployment D-17'. Stored permanently alongside the record."
    • removedInput schema / properties / session_id / description
      Removed value: -"Session id returned by arif_init (looks like 'sess-…'). Pass it on every call after init so the action is attributed to your governed session."
    • removedInput schema / properties / session_token / description
      Removed value: -"Session 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."
    • removedInput schema / properties / witness_type / description
      Removed value: -"Who witnessed the sealed fact: 'ai', 'human', or 'external' system."
  7. Changed15 schema fields changed
    • addedInput schema / properties / _envelope / description
      Added value: +"Reserved for the transport layer — never fill this in."
    • addedInput schema / properties / ack_irreversible / description
      Added value: +"Set true to confirm you understand sealed entries are PERMANENT — they can never be edited or removed."
    • addedInput schema / properties / actor_id / description
      Added value: +"Your agent identity, e.g. 'kimi-code/FI-008' or 'claude/sonnet'. Recorded in the audit log so this action is attributed to you."
    • addedInput schema / properties / actor_signature / description
      Added value: +"Cryptographic signature over the request, if your agent holds a key — proves the call genuinely came from actor_id. Omit if you have no key."
    • addedInput schema / properties / constitutional / description
      Added value: +"JSON block of governance metadata (floors consulted, chain references) — normally built by the kernel, not by callers."
    • addedInput schema / properties / constitutional_chain_id / description
      Added value: +"Id 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."
    • addedInput schema / properties / drift_events / description
      Added value: +"JSON list of deviations observed, e.g. [{\"what\": \"schema drift\", \"where\": \"tools/list\"}] — stored with the record."
    • addedInput schema / properties / judge_state_hash / description
      Added value: +"Hash string from the arif_judge SEAL response — ties this entry to the verdict that authorized it."
    • addedInput schema / properties / mode / description
      Added value: +"'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."
    • addedInput schema / properties / nonce / description
      Added value: +"One-time random string (e.g. a UUID) making this request unique; protects against replay of the same call."
    • addedInput schema / properties / payload / description
      Added value: +"The content to store forever, as a string (usually JSON-serialized) — the outcome, lesson, or record itself."
    • addedInput schema / properties / seal_purpose / description
      Added value: +"One sentence saying why this verdict/record must exist, e.g. 'closing deployment D-17'. Stored permanently alongside the record."
    • addedInput schema / properties / session_id / description
      Added value: +"Session id returned by arif_init (looks like 'sess-…'). Pass it on every call after init so the action is attributed to your governed session."
    • addedInput schema / properties / session_token / description
      Added value: +"Session 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."
    • addedInput schema / properties / witness_type / description
      Added value: +"Who witnessed the sealed fact: 'ai', 'human', or 'external' system."
  8. Changed1 schema field changed
    • addedInput schema / properties / ack_irreversible
      Added value: +{
      +  "default": false,
      +  "type": "boolean"
      +}
  9. Changed1 schema field changed
    • removedInput schema / properties / ack_irreversible
      Removed value: -{
      -  "default": false,
      -  "type": "boolean"
      -}
  10. Changed2 schema fields changed
    • addedInput schema / properties / ack_irreversible
      Added value: +{
      +  "default": false,
      +  "type": "boolean"
      +}
    • changedInput schema / properties / mode / enum
      Previous value: -[
      -  "ed25519_verify"
      -]New value: +[
      +  "seal",
      +  "verify",
      +  "ledger",
      +  "changelog",
      +  "audit",
      +  "session_close"
      +]
  11. Changed1 schema field changed
    • addedInput schema / properties / seal_purpose
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
  12. Changed1 schema field changed
    • changedInput schema / properties / mode / enum
      Previous value: -[
      -  "seal",
      -  "verify",
      -  "ledger",
      -  "changelog",
      -  "audit"
      -]New value: +[
      +  "ed25519_verify"
      +]
  13. Changed1 schema field changed
    • addedInput schema / properties / constitutional
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": true,
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
  14. Changed1 schema field changed
    • addedInput schema / properties / session_token
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
  15. Changed1 schema field changed
    • removedInput schema / properties / ack_irreversible
      Removed value: -{
      -  "default": false,
      -  "type": "boolean"
      -}
  16. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "type": "object"
      -}New value: +null
  17. Added
  18. Removed
  19. Changed3 schema fields changed
    • addedOutput schema / additionalProperties
      Added value: +true
    • removedOutput schema / properties
      Removed value: -{
      -  "_nine_signal_compliant": {
      -    "description": "Internal compliance flag",
      -    "type": "boolean"
      -  },
      -  "_violations": {
      -    "description": "Non-compliance audit trail",
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  "actor_id": {
      -    "description": "Sovereign or agent actor ID",
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "delta_S": {
      -    "description": "Thermodynamic entropy change",
      -    "type": "number"
      -  },
      -  "meta": {
      -    "description": "Metadata including actor_id, mode, circuit",
      -    "type": "object"
      -  },
      -  "nine_signal": {
      -    "description": "F2 addendum nine-signal block",
      -    "type": "object"
      -  },
      -  "output_policy": {
      -    "description": "Policy constraints: DOMAIN_SEAL, DOMAIN_HOLD, DOMAIN_VOID, SIMULATION_ONLY",
      -    "type": "string"
      -  },
      -  "reasons": {
      -    "description": "Human-readable justification list",
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  "result": {
      -    "description": "Tool-specific payload",
      -    "type": "object"
      -  },
      -  "session_id": {
      -    "description": "Active session identifier",
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "stage_progression": {
      -    "description": "Next stage auto-chain hint",
      -    "type": [
      -      "object",
      -      "null"
      -    ]
      -  },
      -  "status": {
      -    "description": "Execution status: OK, ERROR, TIMEOUT, DRY_RUN",
      -    "type": "string"
      -  },
      -  "timestamp": {
      -    "description": "ISO-8601 timestamp",
      -    "type": "string"
      -  },
      -  "tool": {
      -    "description": "Canonical tool name that produced this response",
      -    "type": "string"
      -  },
      -  "verdict": {
      -    "description": "Constitutional verdict: SEAL, HOLD, VOID, SABAR, PROVISIONAL, PARTIAL",
      -    "type": "string"
      -  }
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "status",
      -  "tool",
      -  "verdict",
      -  "result",
      -  "nine_signal",
      -  "reasons"
      -]
  20. First observed

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.