{
  "$schema": "https://ai.melega.ai/.well-known/ai-civilization.json",
  "kind": "civilization.identity",
  "version": "1.0.0",
  "codex_release": "CONSTITUTION_SYNCHRONIZED_v2",
  "codex_source_of_truth": "https://docs.melega.ai/.well-known/codex.json",
  "gateway": {
    "id": "machine",
    "name": "Machine Gateway",
    "canonical_url": "https://ai.melega.ai",
    "aliases": ["https://runtime.melega.ai"],
    "role": "Machine-first operational gateway of the KIRI Civilization. Exposes machine discovery, machine interoperability, mission discovery, topology discovery, semantic registry discovery, runtime discovery. The Machine Gateway exposes the civilization; it is not the civilization itself.",
    "audience": "agents primary, humans secondary"
  },
  "civilization": {
    "name": "KIRI Civilization",
    "constitutional_authority": "https://docs.melega.ai",
    "human_gateway": { "id": "harbor", "url": "https://melega.ai", "role": "Harbor — human gateway" },
    "ambassador":   { "id": "masterm", "url": "https://masterm.melega.ai", "role": "Civilization Ambassador" }
  },
  "registry": {
    "semantic_registry_version": "1.3.0",
    "semantic_registry_frozen_at": "2026-06-28",
    "topology_version": "1.3.0",
    "manifest_version": "1.3.0"
  },
  "truth_policy": {
    "version": "A4.1",
    "ratified_at": "2026-06-29",
    "rule": "The civilization never exposes fabricated operational data. Every operational value visible to humans or AI agents is REAL, VERIFIED, DECLARED, STATIC, or absent. No fifth category exists.",
    "allowed_categories": ["REAL", "VERIFIED", "DECLARED", "STATIC"],
    "forbidden": [
      "synthetic metrics",
      "placeholder telemetry",
      "invented percentages",
      "fake node counts",
      "fake uptime",
      "fake synchronization",
      "fake throughput",
      "fake propagation",
      "fake runtime phases",
      "randomized values",
      "sine-wave values",
      "generated statistics",
      "demo telemetry"
    ],
    "absence_protocol": "AWAITING_RUNTIME_EVIDENCE — surfaces return null fields and an explicit state when no real source exists.",
    "endpoint": "/api/public/truth-policy"
  },
  "mission_support": {
    "registry": "/api/public/missions",
    "supported_missions": [
      "machine-discovery",
      "topology-discovery",
      "semantic-registry-discovery",
      "runtime-discovery",
      "mission-discovery",
      "machine-interoperability",
      "civilization-coordination",
      "d87-economic-loop",
      "ambassadorial-representation",
      "constitutional-memory-consumption"
    ]
  },
  "identity_contract": {
    "guarantees": [
      "The Machine Gateway never claims to be the constitutional authority.",
      "The Machine Gateway never redefines the Codex; it consumes it from docs.melega.ai.",
      "The Machine Gateway never claims to be the Human Gateway (Harbor).",
      "Insights is a Radar capability, not an autonomous organ.",
      "Melega DEX is a sustainment organ; never a communication organ.",
      "MasterM is the Civilization Ambassador; never authority, runtime, treasury, Harbor, or Machine Gateway."
    ],
    "supersedes": [
      "Runtime Gateway",
      "Operational Gateway",
      "AI Gateway (public terminology)",
      "Insights as autonomous organ",
      "Human Gateway (now Harbor)"
    ]
  },
  "completion_protocol": {
    "version": "AI_GATEWAY_CONVERGENCE_COMPLETE",
    "codex_release": "CONSTITUTION_SYNCHRONIZED_v2",
    "ratified_at": "2026-06-28",
    "frozen_until": "next codex release"
  },
  "endpoints": {
    "manifest":          "/.well-known/ai-civilization.json",
    "identity":          "/.well-known/civilization.json",
    "topology":          "/api/public/topology",
    "semantic_registry": "/api/public/semantic-registry",
    "missions":          "/api/public/missions",
    "economy_loop":      "/api/public/economy/loop",
    "communication":     "/api/public/communication",
    "ecosystem_state":   "/api/public/ecosystem/state",
    "agent_orient":      "/api/public/agent/orient",
    "truth_policy":      "/api/public/truth-policy",
    "sitemap":           "/sitemap.xml"
  }
}