{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mnemoverse-com/json-schema/mnemoverse-com-atom-detail-schema-schema.json",
  "title": "AtomDetailSchema",
  "description": "Full atom detail (for point reads and debug).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mnemoverse-com-memory-v1-api-openapi.yml#/components/schemas/AtomDetailSchema",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id",
      "description": "Atom UUID."
    },
    "content": {
      "type": "string",
      "title": "Content",
      "description": "Stored text content."
    },
    "concepts": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Concepts",
      "description": "Associated concepts."
    },
    "atom_type": {
      "type": "string",
      "title": "Atom Type",
      "description": "episode, prototype, or singleton."
    },
    "created_at": {
      "type": "string",
      "title": "Created At",
      "description": "ISO 8601 creation timestamp."
    },
    "occurred_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Occurred At",
      "description": "ISO 8601 time the remembered thing happened, as the write stated it; null when the write gave none (the atom's time is then `created_at`)."
    },
    "last_accessed_at": {
      "type": "string",
      "title": "Last Accessed At",
      "description": "ISO 8601 last access timestamp."
    },
    "access_count": {
      "type": "integer",
      "title": "Access Count",
      "description": "Number of times accessed."
    },
    "importance": {
      "type": "number",
      "title": "Importance",
      "description": "Importance score [0, 1]."
    },
    "valence": {
      "type": "number",
      "title": "Valence",
      "description": "Outcome valence [-1, 1]."
    },
    "outcome_count": {
      "type": "integer",
      "title": "Outcome Count",
      "description": "Number of feedback events."
    },
    "is_protected": {
      "type": "boolean",
      "title": "Is Protected",
      "description": "Von Restorff singleton flag."
    },
    "domain": {
      "type": "string",
      "title": "Domain",
      "description": "Domain namespace."
    },
    "external_ref": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "External Ref",
      "description": "External reference."
    },
    "metadata": {
      "additionalProperties": true,
      "type": "object",
      "title": "Metadata",
      "description": "Arbitrary metadata."
    },
    "supersedes": {
      "items": {
        "type": "string",
        "format": "uuid"
      },
      "type": "array",
      "title": "Supersedes",
      "description": "Ids of the atoms this atom replaced. Empty for an unversioned atom."
    },
    "superseded_by": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Superseded By",
      "description": "Id of the atom that replaced this one, or null while this is the live tip. A non-null value means this atom is marked superseded; it will be excluded from default reads once reads leave out superseded atoms, and stays readable here by id either way."
    }
  },
  "type": "object",
  "required": [
    "id",
    "content",
    "concepts",
    "atom_type",
    "created_at",
    "last_accessed_at",
    "access_count",
    "importance",
    "valence",
    "outcome_count",
    "is_protected",
    "domain"
  ]
}