{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:agla:candidate:mediated-agent-context:0.1.0",
  "type": "object",
  "additionalProperties": false,
  "required": ["context_id", "invocation_epoch", "local_goal", "write_scope", "tenet_evidence_ref", "rotas_evidence_ref", "arepo_decision_ref", "agent_profile_ref", "source_package_ref", "qualified_liber_refs", "return_schema_ref", "escalation_rule_ref", "expiry_condition", "authority_effect"],
  "properties": {
    "context_id": {"type": "string", "minLength": 1},
    "invocation_epoch": {"type": "string", "minLength": 1},
    "local_goal": {"type": "string", "minLength": 1},
    "write_scope": {"type": "array", "minItems": 1, "items": {"type": "string", "minLength": 1}},
    "tenet_evidence_ref": {"type": "string", "minLength": 1},
    "rotas_evidence_ref": {"type": "string", "minLength": 1},
    "arepo_decision_ref": {"type": "string", "minLength": 1},
    "agent_profile_ref": {"type": "string", "minLength": 1},
    "sephirotic_binding_ref": {"type": ["string", "null"]},
    "gradus_ref": {"type": ["string", "null"]},
    "graphus_instance_ref": {"type": ["string", "null"]},
    "traversal_record_ref": {"type": ["string", "null"]},
    "preference_record_ref": {"type": ["string", "null"]},
    "arithmetic_contract_ref": {"type": ["string", "null"]},
    "source_package_ref": {"type": "string", "minLength": 1},
    "qualified_liber_refs": {"type": "array", "items": {"type": "string"}},
    "return_schema_ref": {"type": "string", "minLength": 1},
    "escalation_rule_ref": {"type": "string", "minLength": 1},
    "expiry_condition": {"type": "array", "minItems": 1, "items": {"type": "string"}},
    "authority_effect": {"const": "NONE"}
  }
}

