{
  "schema": "https://ser6buzz.tail3ab3aa.ts.net/machine/luna-architecture.schema.json",
  "schema_version": "0.1.0",
  "thesis": {
    "technical_framing": "AncientOS is a transport-neutral, provider-neutral governed cognition kernel for personal AI continuity.",
    "public_framing": "AncientOS lets your AI relationship move with you.",
    "core_purpose": [
      "continuity",
      "trust",
      "memory",
      "identity",
      "governance",
      "operational_alignment",
      "reasoning_style",
      "cognitive_relationship"
    ],
    "not_primary_identity": [
      "enterprise_governance_platform",
      "autonomous_agent_swarm",
      "AGI_project",
      "compliance_framework",
      "Discord_bot"
    ]
  },
  "system": {
    "name": "AncientOS",
    "host": "SER6BUZZ",
    "description": "A transport-neutral, provider-neutral governed cognition kernel for personal AI continuity with artifact-backed memory, capability-first routing, bounded execution lanes, replaceable providers, replaceable transports, and fail-closed governance. Luna is an interactive conversation interface over this kernel; historical file and route names may still use Luna naming."
  },
  "human_docs": {
    "overview": "/",
    "kernel_spec_v1": "/architecture/ancientos_kernel_spec_v1/",
    "architecture": "/architecture/",
    "canonical_terminology": "/canonical_terminology/",
    "roadmap": "/luna_master_roadmap/",
    "memory_architecture": "/memory_architecture/",
    "operational_awareness": "/operational_awareness/",
    "oracle_operational_ergonomics": "/oracle_operational_ergonomics/",
    "operational_cognition_routing": "/operational_cognition_routing/",
    "coordination_doctrine": "/coordination_doctrine/"
  },
  "machine_readable": {
    "architecture_manifest": "/machine/luna-architecture.json",
    "architecture_schema": "/machine/luna-architecture.schema.json",
    "capability_ontology": "/machine/capability-ontology.json",
    "capability_ontology_schema": "/machine/capability-ontology.schema.json",
    "coordination_cognition": "/machine/coordination-cognition.json",
    "operational_cognition_routing": "/machine/operational-cognition-routing.json"
  },
  "invariants": [
    "transport_neutral",
    "provider_neutral",
    "personal_ai_continuity",
    "artifact_backed",
    "deterministic_first",
    "governance_gated",
    "fail_closed",
    "replayable",
    "auditable",
    "no_hidden_autonomy",
    "human_centered_control"
  ],
  "taxonomy": {
    "core_components": [
      {
        "component_id": "rubick",
        "symbolic_name": "Rubick",
        "classification": "ancientos_kernel_service",
        "canonical_role": "capability_repository_relationship_and_knowledge_graph_reasoning"
      },
      {
        "component_id": "meepo",
        "symbolic_name": "Meepo",
        "classification": "ancientos_kernel_service",
        "canonical_role": "transition_integrity_infrastructure"
      },
      {
        "component_id": "roshan",
        "symbolic_name": "Roshan",
        "classification": "ancientos_kernel_service",
        "canonical_role": "governed_execution_lane"
      },
      {
        "component_id": "invoker",
        "symbolic_name": "Invoker",
        "classification": "ancientos_kernel_service",
        "canonical_role": "safe_self_development_lane"
      },
      {
        "component_id": "trollwarlord",
        "symbolic_name": "TrollWarlord",
        "classification": "ancientos_kernel_service",
        "canonical_role": "promotion_commit_engine"
      },
      {
        "component_id": "tinker",
        "symbolic_name": "Tinker",
        "classification": "ancientos_kernel_service",
        "canonical_role": "local_executor_provider_lane"
      },
      {
        "component_id": "creep",
        "symbolic_name": "Creep",
        "classification": "ancientos_kernel_service",
        "canonical_role": "executor_component_worker"
      },
      {
        "component_id": "zeus",
        "symbolic_name": "Zeus",
        "classification": "ancientos_kernel_service",
        "canonical_role": "evidence_supervision_and_replay_governance"
      },
      {
        "component_id": "oracle",
        "symbolic_name": "Oracle",
        "classification": "ancientos_kernel_service",
        "canonical_role": "evidence_synthesis_and_operational_review"
      },
      {
        "component_id": "keeper",
        "symbolic_name": "Keeper",
        "classification": "ancientos_kernel_service",
        "canonical_role": "objective_task_coordination_and_planning"
      },
      {
        "component_id": "beastmaster",
        "symbolic_name": "Beastmaster",
        "classification": "ancientos_kernel_service",
        "canonical_role": "runtime_and_host_awareness"
      },
      {
        "component_id": "lifevault",
        "symbolic_name": "LifeVault",
        "classification": "ancientos_kernel_service",
        "canonical_role": "memory_authority_and_continuity"
      },
      {
        "component_id": "runtime_kernel",
        "symbolic_name": "Runtime Kernel",
        "classification": "ancientos_kernel_service",
        "canonical_role": "transport_neutral_message_processing_and_routing"
      },
      {
        "component_id": "kunkka",
        "symbolic_name": "Kunkka",
        "classification": "ancientos_kernel_service_candidate",
        "canonical_role": "navigation_workflow_routing_candidate"
      },
      {
        "component_id": "lich",
        "symbolic_name": "Lich",
        "classification": "ancientos_kernel_service",
        "canonical_role": "approval_confirmation_governance_language"
      },
      {
        "component_id": "nyx",
        "symbolic_name": "Nyx",
        "classification": "ancientos_kernel_service_candidate",
        "canonical_role": "preflight_interception_safety_candidate"
      }
    ],
    "shared_substrate_primitives": [
      "governance",
      "routing_arbitration",
      "memory_authority",
      "artifacts",
      "ledgers",
      "evidence",
      "capability_registry",
      "provider_selection",
      "policy_engine",
      "replay_provenance",
      "repository_reasoning",
      "knowledge_graph_reasoning",
      "operational_awareness",
      "oracle_operational_state",
      "oracle_readiness_graph",
      "oracle_report_schemas",
      "oracle_operational_topology",
      "oracle_temporal_reconstruction",
      "oracle_dependency_propagation",
      "oracle_governance_risk_surface",
      "oracle_bottleneck_analysis",
      "oracle_readiness_drift",
      "oracle_stable_state_comparison",
      "oracle_zeus_advisory_hooks",
      "coordination_cognition",
      "coordination_workflow_state",
      "coordination_dependency_reasoning",
      "coordination_proposals",
      "coordination_simulation",
      "coordination_risk_warnings",
      "operational_cognition_routing",
      "operational_console_surfaces",
      "posture_continuity",
      "transition_continuity"
    ],
    "apps_workflows": [
      {
        "app_id": "luna",
        "symbolic_name": "Luna",
        "classification": "ancientos_app",
        "canonical_role": "interactive_conversation_interface"
      },
      {
        "app_id": "naga_siren",
        "symbolic_name": "Naga-Siren",
        "classification": "ancientos_app",
        "canonical_role": "governed_publishing_workflow"
      },
      {
        "app_id": "keeper_console",
        "symbolic_name": "Keeper Console",
        "classification": "ancientos_app",
        "canonical_role": "manual_keeper_task_interface"
      },
      {
        "app_id": "x_feed_worker",
        "symbolic_name": "X-feed-worker",
        "classification": "ancientos_app",
        "canonical_role": "feed_ingestion_service_workflow"
      },
      {
        "app_id": "prophet",
        "symbolic_name": "Prophet",
        "classification": "ancientos_app",
        "canonical_role": "read_only_prediction_market_intelligence_manual_review"
      }
    ],
    "providers_adapters": [
      "Codex",
      "Claude Code",
      "Ollama",
      "OpenAI",
      "Anthropic",
      "X API",
      "GitHub",
      "search/browser providers"
    ],
    "interfaces_transports": [
      "Discord",
      "CLI",
      "Web",
      "Android",
      "future desktop/mobile clients"
    ]
  },
  "continuity_stack": [
    {
      "name": "AncientOS",
      "role": "Transport-neutral, provider-neutral governed cognition kernel for the operator's long-term AI relationship."
    },
    {
      "name": "Luna",
      "role": "Interactive conversation interface over AncientOS kernel services."
    },
    {
      "name": "Semantic Router",
      "role": "Intent classification and routing layer; it does not own governance, approval, execution, or domain truth."
    },
    {
      "name": "Chen",
      "role": "App-layer workflow orchestration framework that coordinates capabilities and multi-step domain flows without owning kernel governance."
    },
    {
      "name": "Media Manager",
      "role": "Chen's first active domain implementation for media readiness and planning; retained at app/media_manager for compatibility."
    },
    {
      "name": "LifeVault",
      "role": "Logical memory continuity layer for durable memory authority, promotion state, provenance, supersession/deprecation status, archive lifecycle, and retrieval eligibility independent of storage backends."
    },
    {
      "name": "Rubick",
      "role": "Capability, repository, relationship, and knowledge graph reasoning service for evidenced AncientOS capabilities."
    },
    {
      "name": "Meepo",
      "role": "Transition integrity infrastructure for fail-closed revalidation of approved state changes."
    },
    {
      "name": "Oracle",
      "role": "Read-only evidence synthesis and operational review layer."
    },
    {
      "name": "Lich",
      "role": "Approval and governance gate for authority-bearing changes."
    },
    {
      "name": "Roshan/Tinker/Invoker",
      "role": "Bounded execution and implementation paths under approval, validation, and replayable evidence."
    },
    {
      "name": "Transports",
      "role": "Replaceable interaction surfaces such as Discord, CLI, web, mobile, and future clients."
    },
    {
      "name": "Providers/models",
      "role": "Replaceable inference and execution infrastructure behind governed contracts; frontier models are infrastructure, not identity."
    }
  ],
  "continuity_primitives": [
    {
      "name": "memory_continuity",
      "owner": "LifeVault/context retrieval",
      "meaning": "Durable, reviewable memory and context that survive model, provider, transport, storage backend, and runtime changes through LifeVault authority, promotion, provenance, and lifecycle rules. Keeper task state may supply evidence but is not memory authority."
    },
    {
      "name": "posture_continuity",
      "owner": "Rubick",
      "meaning": "Operator-visible behavior, prompt/profile stance, cognitive mode, and continuity-safe configuration across changing infrastructure."
    },
    {
      "name": "transition_continuity",
      "owner": "Meepo",
      "meaning": "Trust-preserving revalidation when approved state moves from proposal to execution, result, commit, or promotion."
    },
    {
      "name": "governance_continuity",
      "owner": "Rubick/Meepo/Lich/Zeus",
      "meaning": "Approval, policy, audit, rollback, and fail-closed expectations remain stable across lanes and providers."
    },
    {
      "name": "interaction_continuity",
      "owner": "AncientOS runtime/transport adapters",
      "meaning": "The AI relationship can move across transports without losing identity or context."
    },
    {
      "name": "execution_continuity",
      "owner": "Roshan/Tinker/Invoker",
      "meaning": "Bounded execution paths remain replayable, validated, and provider-independent as executors change."
    }
  ],
  "subsystem_relationships": [
    {
      "name": "Rubick",
      "role": "Reasons about evidenced capabilities, repository relationships, provider/consumer descriptors, and knowledge graph context."
    },
    {
      "name": "Meepo",
      "role": "Protects transition integrity and continuity trust across state changes."
    },
    {
      "name": "Oracle",
      "role": "Explains state and evidence without execution or mutation."
    },
    {
      "name": "Lich",
      "role": "Gates authority-bearing changes through explicit approval and governance decisions."
    },
    {
      "name": "Chen",
      "role": "Orchestrates workflows and delegates to Rubick, Oracle, Lich, Tinker, and domain adapters without owning kernel authority."
    },
    {
      "name": "Media Manager",
      "role": "Implements Chen's media domain; Bitmagnet, Plex, qBittorrent, and similar systems remain external service adapters."
    },
    {
      "name": "Keeper",
      "role": "Coordinates governed objectives, task state, planning records, blockers, preflight context, and next review needs without execution authority."
    },
    {
      "name": "Beastmaster",
      "role": "Provides bounded runtime and host awareness evidence when supplied through approved or replayed channels."
    },
    {
      "name": "LifeVault",
      "role": "Preserves long-term memory continuity and distinguishes memory authority from pgvector/Postgres, SQLite, files, artifacts, audits, Discord history, Oracle evidence, Rubick records, Meepo packets, and provider outputs."
    },
    {
      "name": "Luna",
      "role": "Expresses interactive conversation and current relationship interface without owning kernel authority."
    },
    {
      "name": "Roshan/Tinker/Invoker",
      "role": "Handle bounded execution paths under approved scope."
    }
  ],
  "future_continuity_concepts": [
    "provider_switching_without_relationship_loss",
    "transport_switching_without_relationship_loss",
    "prompt_profile_portability",
    "continuity_safe_upgrades",
    "long_term_ai_relationship_persistence",
    "continuity_preserving_migrations"
  ],
  "continuity_risks": [
    "vendor_lock_in",
    "memory_fragmentation",
    "posture_drift",
    "transition_drift",
    "provider_coupling",
    "transport_coupling",
    "governance_inconsistency"
  ],
  "execution_lanes": [
    {
      "name": "Invoker",
      "purpose": "safe self-development lane",
      "risk_posture": "bounded"
    },
    {
      "name": "Roshan",
      "purpose": "governed executor escalation lane",
      "risk_posture": "approval_required"
    },
    {
      "name": "Tinker",
      "purpose": "local executor/provider lane",
      "risk_posture": "bounded_provider"
    }
  ],
  "primary_surfaces": [
    {
      "name": "Luna",
      "role": "interactive conversation interface over AncientOS kernel services"
    },
    {
      "name": "Discord",
      "role": "transport/rendering adapter"
    },
    {
      "name": "luna-tools",
      "role": "bounded FastAPI tools gateway"
    },
    {
      "name": "MkDocs",
      "role": "human and machine-readable architecture documentation surface"
    },
    {
      "name": "Oracle report schemas",
      "role": "transport-neutral operational cards, panels, narration, readiness graph, topology, propagation, risk, drift, stable-state, bottleneck, and dashboard semantics"
    },
    {
      "name": "Oracle situational awareness surfaces",
      "role": "bounded advisory-only topology, temporal reconstruction, constitutional risk, dependency propagation, operational narrative, readiness drift, stable-state comparison, bottleneck analysis, and Zeus advisory metadata"
    },
    {
      "name": "Coordination cognition reports",
      "role": "transport-neutral workflow-state, dependency coordination, proposal, capability-composition, simulation, governance-friction, recovery, and risk schemas with no execution authority"
    },
    {
      "name": "Operational console routing",
      "role": "deterministic runtime-kernel routing that separates operational introspection from execution and mutation requests"
    }
  ]
}
