{
  "$schema": "https://twin.kotoba.cloud/twin-data/enterprise/ontology.jsonld",
  "generated_at": "2026-09-18T00:00:00+09:00",
  "note": "Enterprise digital twin seed (v0.1). First twin subject = the kotoba.cloud control plane itself: every instance is cited to an in-repo source of truth (wrangler.jsonc at pin d127bc75, superproject manifest/repos.edn, docs/billing). Nothing invented; nothing secret.",
  "ontology": {
    "@context": {
      "twin": "https://twin.kotoba.cloud/twin-data/enterprise/ontology#",
      "LegalEntity": "twin:LegalEntity",
      "OperatorOrg": "twin:OperatorOrg",
      "Jurisdiction": "twin:Jurisdiction",
      "Host": "twin:Host",
      "Worker": "twin:Worker",
      "ServiceBinding": "twin:ServiceBinding",
      "DataStore": "twin:DataStore",
      "ObjectStore": "twin:ObjectStore",
      "DurableObject": "twin:DurableObject",
      "ExternalDependency": "twin:ExternalDependency",
      "edge": {"@id": "twin:edge", "@type": "@id"},
      "kind": "twin:kind",
      "jurisdiction": {"@id": "twin:jurisdiction", "@type": "@id"},
      "operates": {"@id": "twin:operates", "@type": "@id"},
      "subsidiaryOf": {"@id": "twin:subsidiaryOf", "@type": "@id"},
      "serves": {"@id": "twin:serves", "@type": "@id"},
      "bindsTo": {"@id": "twin:bindsTo", "@type": "@id"},
      "dependsOn": {"@id": "twin:dependsOn", "@type": "@id"},
      "storesIn": {"@id": "twin:storesIn", "@type": "@id"},
      "billingAccount": "twin:billingAccount",
      "source": "twin:source"
    }
  },
  "entities": [
    {"@id": "entity:cloud-kotoba", "kind": "OperatorOrg", "name": "cloud-kotoba (kotoba.cloud operator)",
     "jurisdiction": "jurisdiction:jp",
     "source": "superproject manifest/repos.edn :orgs cloud-kotoba {role :cloud-operator} (2026-09-16 transfer from kotoba-lang)"},
    {"@id": "entity:network-awai", "kind": "LegalEntity", "name": "AWAI Network, L.L.C. (Delaware)",
     "jurisdiction": "jurisdiction:us-de",
     "billingAccount": "acct_1TuxvPIzvFrqWhXK-live",
     "source": "manifest/repos.edn :orgs network-awai {entity \"AWAI Network, L.L.C. (Delaware)\"}; wrangler.jsonc BILLING_ENVIRONMENT_ID (AWAI live Stripe, docs/billing)"},
    {"@id": "entity:kotoba-lang", "kind": "LegalEntity", "name": "kotoba-lang (language substrate)",
     "jurisdiction": "jurisdiction:jp",
     "source": "manifest/repos.edn :orgs kotoba-lang {role :language-substrate}"}
  ],
  "jurisdictions": [
    {"@id": "jurisdiction:jp", "name": "Japan"},
    {"@id": "jurisdiction:us-de", "name": "United States - Delaware"},
    {"@id": "jurisdiction:cloudflare", "name": "Cloudflare global edge (worker jurisdiction: distributed)"}
  ],
  "workers": [
    {"@id": "worker:kotoba-cloud-control-plane", "name": "kotoba-cloud-control-plane",
     "serves": ["host:kotoba.cloud", "host:www", "host:api", "host:console", "host:boot", "host:docs", "host:kyber", "host:knowledge", "host:data-old", "host:yabai", "host:blog", "host:graph", "host:support", "host:apps", "host:twin"],
     "source": "wrangler.jsonc name + routes"},
    {"@id": "worker:kotoba-identity-authority", "name": "kotoba-identity-authority", "serves": ["host:auth"], "source": "wrangler.jsonc services; auth.kotoba.cloud live"},
    {"@id": "worker:kotoba-research-authority", "name": "kotoba-research-authority",
     "serves": [], "source": "wrangler.jsonc services (RESEARCH_AUTHORITY + ORG_AUTHORITY + FAKE_REPORT_AUTHORITY)"},
    {"@id": "worker:kotoba-cloud-database", "name": "kotoba-cloud-database", "source": "wrangler.jsonc services DATABASE_SERVICE"},
    {"@id": "worker:kotobase-authn", "name": "kotobase-authn", "serves": [], "source": "wrangler.jsonc services AUTHN_SERVICE"}
  ],
  "hosts": [
    {"@id": "host:kotoba.cloud", "name": "kotoba.cloud"}, {"@id": "host:www", "name": "www.kotoba.cloud"},
    {"@id": "host:api", "name": "api.kotoba.cloud"}, {"@id": "host:console", "name": "console.kotoba.cloud"},
    {"@id": "host:boot", "name": "boot.kotoba.cloud"},
    {"@id": "host:docs", "name": "docs.kotoba.cloud"}, {"@id": "host:kyber", "name": "kyber.kotoba.cloud"},
    {"@id": "host:knowledge", "name": "knowledge.kotoba.cloud"}, {"@id": "host:data-old", "name": "data.kotoba.cloud"},
    {"@id": "host:yabai", "name": "yabai.kotoba.cloud"}, {"@id": "host:blog", "name": "blog.kotoba.cloud"},
    {"@id": "host:graph", "name": "graph.mithril.fund"}, {"@id": "host:support", "name": "support.kotoba.cloud"},
    {"@id": "host:apps", "name": "apps.kotoba.cloud"}, {"@id": "host:twin", "name": "twin.kotoba.cloud"},
    {"@id": "host:auth", "name": "auth.kotoba.cloud", "source": "identity authority host (Biscuit configuration at /.well-known/biscuit-configuration)"}
  ],
  "service_bindings": [
    {"edge": "bindsTo", "from": "worker:kotoba-cloud-control-plane", "to": "worker:kotoba-identity-authority", "name": "IDENTITY_AUTHORITY"},
    {"edge": "bindsTo", "from": "worker:kotoba-cloud-control-plane", "to": "worker:kotoba-research-authority", "name": "RESEARCH_AUTHORITY"},
    {"edge": "bindsTo", "from": "worker:kotoba-cloud-control-plane", "to": "worker:kotoba-research-authority", "name": "ORG_AUTHORITY"},
    {"edge": "bindsTo", "from": "worker:kotoba-cloud-control-plane", "to": "worker:kotoba-research-authority", "name": "FAKE_REPORT_AUTHORITY"},
    {"edge": "bindsTo", "from": "worker:kotoba-cloud-control-plane", "to": "worker:kotoba-cloud-database", "name": "DATABASE_SERVICE"},
    {"edge": "bindsTo", "from": "worker:kotoba-cloud-control-plane", "to": "worker:kotobase-authn", "name": "AUTHN_SERVICE"}
  ],
  "data_stores": [
    {"@id": "store:r2-kotobase-graph-database-production", "kind": "ObjectStore",
     "name": "R2 kotobase-graph-database-production (PUBLIC_BLOCKS)",
     "storedBy": ["worker:kotoba-cloud-control-plane"], "source": "wrangler.jsonc r2_buckets"},
    {"@id": "store:do-pq-key-registry", "kind": "DurableObject",
     "name": "Durable Object PqKeyRegistry (SQLite, post-quantum key registry)",
     "storedBy": ["worker:kotoba-cloud-control-plane"], "source": "wrangler.jsonc durable_objects v1-pq-key-registry"},
    {"@id": "store:do-billing-accounts", "kind": "DurableObject",
     "name": "Durable Object BillingAccount (SQLite)",
     "storedBy": ["worker:kotoba-cloud-control-plane"], "source": "wrangler.jsonc durable_objects v2-billing-accounts"}
  ],
  "external_dependencies": [
    {"@id": "dep:stripe", "name": "Stripe (live billing, AWAI account)", "jurisdiction": "jurisdiction:us",
     "billingAccount": "acct_1TuxvPIzvFrqWhXK-live",
     "source": "wrangler.jsonc BILLING_MODE=live + docs/billing/stripe-live-catalog.json"},
    {"@id": "dep:cloudflare", "name": "Cloudflare Workers / R2 / DO / custom domains", "jurisdiction": "jurisdiction:cloudflare",
     "source": "wrangler.jsonc account 4da88288dc30d9ee257f319d3c33ecf0"}
  ],
  "controls": [
    {"@id": "control:rate-limit-support", "name": "SUPPORT_RATE_LIMIT 10/min per client address (503 by name on miss)",
     "source": "wrangler.jsonc ratelimits"},
    {"@id": "control:biscuit-root-key", "name": "POST /v1/invoke verifies Biscuits against pinned root public key; absent key refuses every invocation by name",
     "source": "wrangler.jsonc BISCUIT_ROOT_PUBLIC_KEY_B64URL note (ADR-2609162400)"}
  ],
  "query_hint": "Load ontology.jsonld + this index into the graph lane: cypher/sparql/gremlin via https://graph.mithril.fund/v1/graph/query (read-only, PAT). MCP: https://graph.mithril.fund/mcp",
  "discipline": "no secrets, no internal risk scores, every instance cites an in-repo source of truth. The twin-ops bot re-measures this file against wrangler.jsonc on each patrol."
}
