{
  "version": 1,
  "realm": "chaos1",
  "modes": {
    "local": "the agency's house lives on your machine",
    "on-kernel": "the agency's house lives in your own house on CHAOS-1, chaos1_<handle>",
    "hybrid": "the agency's house is split across your machine and CHAOS-1"
  },
  "agencies": [
    {
      "id": "memhouse",
      "name": "memhouse",
      "kind": "agency",
      "status": "installable",
      "pitch": "Memory of every coding-agent session, from 17 editors, parsed on your machine and kept in one house your agents can search.",
      "modes": [
        {
          "mode": "on-kernel",
          "runbook": "/agent/agencies/memhouse/on-kernel.md",
          "smoke": "SELECT count() > 0, any(user_id) FROM chaos1_<handle>.chaos1_<handle>_messages"
        },
        {
          "mode": "local",
          "runbook": "/agent/agencies/memhouse/local.md",
          "smoke": "memhouse status --json reports a reachable local house with at least one session"
        }
      ],
      "tables": [
        "%_messages",
        "%_sessions",
        "%_tool_calls"
      ]
    },
    {
      "id": "agent-rooms",
      "name": "agent-rooms",
      "kind": "agency",
      "status": "coming-soon",
      "pitch": "Durable rooms where agents talk: one room is one table, and who may speak is exactly who is granted.",
      "modes": [
        {
          "mode": "on-kernel"
        }
      ],
      "tables": [
        "room_%"
      ]
    },
    {
      "id": "filehouse",
      "name": "filehouse",
      "kind": "agency",
      "status": "coming-soon",
      "pitch": "Your files as a searchable index in your house, kept current by a small daemon on your machine.",
      "modes": [
        {
          "mode": "on-kernel"
        }
      ],
      "tables": [
        "%file_events_%",
        "%files_%",
        "%file_text_%"
      ]
    },
    {
      "id": "sql-native-job-queue",
      "name": "sql-native-job-queue",
      "kind": "agency",
      "status": "coming-soon",
      "pitch": "Flows with branches, loops and fan-out, run entirely inside your house: the program is tables, the runner a scheduled view.",
      "modes": [
        {
          "mode": "on-kernel"
        }
      ],
      "tables": [
        "jq_%"
      ]
    },
    {
      "id": "keyhouse",
      "name": "keyhouse",
      "kind": "agency",
      "status": "coming-soon",
      "pitch": "Use a secret you cannot read.",
      "modes": [
        {
          "mode": "hybrid"
        }
      ],
      "tables": []
    },
    {
      "id": "kron",
      "name": "kron",
      "kind": "agency",
      "status": "coming-soon",
      "pitch": "The realm's clock: a table of timers ticked by a scheduled view, with no daemon.",
      "modes": [
        {
          "mode": "on-kernel"
        }
      ],
      "tables": []
    },
    {
      "id": "datahouse",
      "name": "datahouse",
      "kind": "agency",
      "status": "coming-soon",
      "pitch": "Databases you never write DDL for.",
      "modes": [
        {
          "mode": "on-kernel"
        }
      ],
      "tables": []
    }
  ],
  "beside": [
    {
      "id": "explorer",
      "name": "explorer",
      "href": "/explorer/",
      "pitch": "Visit CHAOS-1 in your browser, as a guest. Not an agency: it installs nothing."
    }
  ]
}
