Skip to content
wiki.fftac.org

Memory Checkpoint Requests - Source Excerpt 01

Back to Memory Checkpoint Requests

Summary

This source excerpt preserves a bounded section of Spiralist/wp-content/plugins/uai-1-wordpress/schemas/memory-checkpoint-requests.schema.json so readers can inspect the evidence without opening the full source file.

**Source path:** Spiralist/wp-content/plugins/uai-1-wordpress/schemas/memory-checkpoint-requests.schema.json

{
  "$id": "https://spiralist.org/wp-content/plugins/uai-1-wordpress/schemas/memory-checkpoint-requests.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Spiralist UAIX Runtime Memory Checkpoint Request Envelopes",
  "type": "object",
  "additionalProperties": true,
  "required": [
    "uai_version",
    "profile",
    "message_id",
    "source",
    "target",
    "conversation",
    "delivery",
    "trust",
    "body",
    "provenance",
    "integrity",
    "extensions"
  ],
  "properties": {
    "uai_version": { "const": "1.0" },
    "profile": { "const": "uai.intent.request.v1" },
    "message_id": { "type": "string", "minLength": 1 },
    "source": { "$ref": "#/$defs/party" },
    "target": { "$ref": "#/$defs/party" },
    "conversation": {
      "type": "object",
      "required": ["conversation_id", "turn_id", "sequence"],
      "properties": {
        "conversation_id": { "type": "string", "minLength": 1 },
        "turn_id": { "type": "string", "minLength": 1 },
        "parent_message_id": { "type": "string" },
        "traceparent": { "type": "string" },
        "sequence": { "type": "integer", "minimum": 1 }
      }
    },
    "delivery": {
      "type": "object",
      "required": ["mode", "priority", "expires_at", "reply_requested", "ack_required"],
      "properties": {
        "mode": { "enum": ["sync", "async", "event"] },
        "priority": { "enum": ["routine", "interactive", "urgent"] },
        "expires_at": { "type": "string", "format": "date-time" },
        "reply_requested": { "type": "boolean" },
        "ack_required": { "type": "boolean" },
        "task_ref": { "type": "string" }
      }
    },
    "trust": {
      "type": "object",
      "required": ["channel", "auth_scheme", "principal"],
      "properties": {
        "channel": { "enum": ["public-web", "private-api", "mtls", "signed-envelope", "credentialed"] },
        "auth_scheme": { "type": "string", "minLength": 1 },
        "principal": { "type": "string", "minLength": 1 },
        "credential_ref": { "type": "string" },
        "signature_ref": { "type": "string" },
        "replay_window_id": { "type": "string" }
      }
    },
    "body": {
      "oneOf": [
        { "$ref": "#/$defs/create_checkpoint_body" },
        { "$ref": "#/$defs/drift_audit_body" },
        { "$ref": "#/$defs/restore_brief_body" }
      ]
    },
    "provenance": {
      "type": "object",
      "required": ["trace_id", "issued_at", "log_ref", "agent_id", "model_id", "confidence"],
      "properties": {
        "trace_id": { "type": "string", "minLength": 1 },
        "parent_trace_id": { "type": "string" },
        "issued_at": { "type": "string", "format": "date-time" },
        "log_ref": { "type": "string", "minLength": 1 },
        "agent_id": { "type": "string", "minLength": 1 },
        "model_id": { "type": "string", "minLength": 1 },
        "confidence": { "type": "number", "minimum": 0, "maximum": 1 },
        "lineage": { "type": "array" }
      }
    },
    "integrity": {
      "type": "object",
      "required": ["version", "algorithm", "canonicalization", "checksum"],
      "properties": {
        "version": { "type": "integer", "minimum": 1 },
        "algorithm": { "const": "sha256" },
        "canonicalization": { "const": "jcs" },
        "checksum": { "type": "string", "minLength": 1 }
      }
    },
    "extensions": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["namespace", "purpose", "critical"],
        "properties": {
          "namespace": { "type": "string", "minLength": 1 },
          "purpose": { "type": "string", "minLength": 1 },
          "critical": { "type": "boolean" }
        }
      }
    }
  },
  "$defs": {
    "party": {
      "type": "object",
      "required": ["type", "id"],
      "properties": {
        "type": { "type": "string", "minLength": 1 },
        "id": { "type": "string", "minLength": 1 },
        "label": { "type": "string" },
        "uri": { "type": "string" },
        "did": { "type": "string" },
        "role": { "type": "string" },
        "implementation": { "type": "string" }
      }
    },
    "runtime_constraints": {
      "type": "array",
      "contains": { "const": "runtime-payload-only" },
      "allOf": [
        {
          "contains": { "const": "no-protocol5-registry-write" }
        }
      ],
      "items": {
        "enum": [
          "runtime-payload-only",
          "no-protocol5-registry-write",
          "human-review-required",
          "no-sensitive-data-expansion",
          "return-drift-score-only",
          "brief-must-identify-unknowns"
        ]
      }
    },
    "symbol_ref": {
      "enum": [
        "protocol5.symbol.circle",
        "protocol5.symbol.dual-circle",
        "protocol5.symbol.triangle",
        "protocol5.symbol.square",
        "protocol5.symbol.spiral"
      ]
    },
    "runtime_entropy": {
      "type": "object",
      "additionalProperties": true,
      "required": [
        "storage_class",
        "registry_authority",
        "protocol5_registry_write_allowed",
        "protocol5_registry_write_attempted",
        "crisis_plate"
      ],
      "properties": {
        "storage_class": { "const": "runtime-execution-payload" },
        "registry_authority": { "const": "none" },
        "protocol5_registry_write_allowed": { "const": false },
        "protocol5_registry_write_attempted": { "const": false },
        "crisis_plate": {
          "enum": [
            "the-sealed-system",
            "the-signal-system",
            "the-collapse-system",
            "this-one"
          ]
        },
        "confidence": { "type": "number", "minimum": 0, "maximum": 1 }
      }
    },
    "create_checkpoint_body": {
      "type": "object",
      "additionalProperties": false,
      "required": ["intent", "subject", "requested_profile", "parameters", "constraints", "response_profile"],
      "properties": {
        "intent": { "const": "spiralist.memory.checkpoint.create" },
        "subject": { "const": "workspace.session" },
        "requested_profile": { "const": "spiralist.memory.checkpoint.result.v1" },
        "parameters": {
          "type": "object",
          "required": ["session_id", "checkpoint_label", "turn_window", "summary"],
          "properties": {
            "session_id": { "type": "string", "minLength": 1 },
            "participant_id": { "type": "string" },
            "checkpoint_label": { "type": "string", "minLength": 1 },
            "turn_window": {
              "type": "object",
              "required": ["start_turn_id", "end_turn_id", "turn_count"],
              "properties": {
                "start_turn_id": { "type": "string", "minLength": 1 },
                "end_turn_id": { "type": "string", "minLength": 1 },
                "turn_count": { "type": "integer", "minimum": 1 }
              }
            },
            "summary": { "type": "string", "minLength": 1 },
            "stable_facts": { "type": "array", "items": { "type": "string" } },
            "open_tasks": { "type": "array", "items": { "type": "string" } },
            "unresolved_questions": { "type": "array", "items": { "type": "string" } },
            "persona_constraints": { "type": "array", "items": { "type": "string" } },
            "canonical_symbol_refs": { "type": "array", "items": { "$ref": "#/$defs/symbol_ref" } },
            "runtime_entropy": { "$ref": "#/$defs/runtime_entropy" },
            "redactions": {
              "type": "array",
              "items": {
                "type": "object",
                "required": ["field", "reason"],
                "properties": {
                  "field": { "type": "string", "minLength": 1 },
                  "reason": {
                    "enum": ["credential", "personal-data", "authorization-boundary", "user-request"]
                  }
                }
              }
            }
          }
        },
        "constraints": { "$ref": "#/$defs/runtime_constraints" },
        "response_profile": { "const": "uai.intent.response.v1" }
      }
    },
    "drift_audit_body": {
      "type": "object",
      "additionalProperties": false,
      "required": ["intent", "subject", "requested_profile", "parameters", "constraints", "response_profile"],
      "properties": {
        "intent": { "const": "spiralist.memory.drift.audit" },
        "subject": { "const": "workspace.session" },
        "requested_profile": { "const": "spiralist.memory.drift.audit.result.v1" },
        "parameters": {
          "type": "object",
          "required": ["session_id", "baseline_checkpoint_id", "current_turn_id", "current_session_digest"],
          "properties": {