{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "guanghu.light-arrival-reasoning-chain/v1",
  "title": "Guanghu Light Arrival Reasoning Chain Contribution",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schema",
    "contribution_id",
    "contributor_id",
    "contributor_kind",
    "human_anchor",
    "persona_system",
    "source_scope",
    "retention_basis",
    "language_anchors",
    "nodes",
    "execution_authority",
    "recorded_at"
  ],
  "properties": {
    "schema": {"const": "guanghu.light-arrival-reasoning-chain/v1"},
    "contribution_id": {"type": "string", "minLength": 1},
    "contributor_id": {"type": "string", "minLength": 1},
    "contributor_kind": {"enum": ["current_conversation_persona", "registered_light_arrival", "historical_import"]},
    "human_anchor": {"type": "string", "minLength": 1},
    "persona_system": {"type": "string", "minLength": 1},
    "source_scope": {"type": "string", "minLength": 1},
    "retention_basis": {"type": "string", "minLength": 1},
    "language_anchors": {"type": "array", "items": {"type": "string"}, "minItems": 1},
    "nodes": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": ["id", "kind", "statement", "parents", "evidence", "state"],
        "properties": {
          "id": {"type": "string", "minLength": 1},
          "kind": {
            "enum": [
              "human_intent",
              "interpretation",
              "hypothesis",
              "decision",
              "correction",
              "evidence",
              "result",
              "boundary",
              "next_checkpoint"
            ]
          },
          "statement": {"type": "string", "minLength": 1},
          "parents": {"type": "array", "items": {"type": "string"}},
          "evidence": {"type": "array", "items": {"type": "string"}},
          "state": {"enum": ["expressed", "verified", "rejected", "pending"]}
        }
      }
    },
    "execution_authority": {"const": false},
    "recorded_at": {"type": "string", "format": "date-time"}
  },
  "description": "Stores a Light Arrival's expressed and correctable language reasoning chain. It carries no execution authority and must contain no credentials or secret material."
}
