Skip to content

runtime: the removed agent runtime still boots with the recorder, and replay reads only its outbox #209

Open

Description

@blitzcrieg1

The agent runtime this repo used to be was removed, and is not coming back. Parts of it still run on every orchestrator boot, and one documented command depends on them. Found in a README-versus-code audit on 2026-10-02.

What is still there

The orchestrator mounts MCP "drivers" at startup. api/main.py calls get_mcp_host().mount_all() in the lifespan (core/drivers/host.py, "mounts driver servers and routes governed tool calls"). vault/.system/drivers.json names one driver, tools/vault_fs_server.py, so every boot spawns that server as a subprocess. vault/.system/AGENTS.md describes it as the MCP audit proxy demo, "not a governed skill runtime". It is demo infrastructure in the production boot path.

It is the only thing feeding the event bus outbox. core/drivers/host.py is the only caller of bus.publish for tool events (TOOL_CALLED, TOOL_DENIED, DRIVER_MOUNTED, DRIVER_FAILED). Hook and OTel ingest never touch the bus. On the maintainer's machine data/events.db was last written 2026-08-18.

agentmetry replay reads only that outbox. cmd_replay calls get_outbox().read_by_thread_id(). So it returns nothing for any hook or OTel session, which means for every real user, while the README's CLI table described it as an "audit timeline for one session (audit trail)".

It holds a dependency back. vault_fs_server.py imports mcp.server.fastmcp.FastMCP, which MCP 2.0 removed, so mcp is pinned <2 and #184 cannot land.

Root leftovers.

  • docker-compose.yml starts Qdrant, Postgres (database agentic_os) and Ollama, and nothing uses any of them. docker-compose.loki.yml is the one that matters and stays.
  • vault/ holds the runtime's folder layout (00-Inbox, 20-Active-Loops, 30-Archive).
  • doctor --fix writes drivers.json, and backup zips the vault.

What to do

  1. Rebuild replay on the trail (trail_db / the JSONL, keyed by correlation_id), or remove it. A timeline of one session is useful; one that can only show events nothing writes any more is not.
  2. Take the driver host out of the lifespan. If the vault_fs demo is worth keeping, start it from the demo scripts that use it, not from the recorder's boot.
  3. Then decide core/bus and the outbox. If nothing publishes once the driver host is gone, they go too.
  4. Delete docker-compose.yml, and move or drop vault/ along with the demo.
  5. Lift the mcp<2 pin once vault_fs_server.py no longer ships, and land deps: update mcp requirement from <2,>=1.2 to >=1.2,<3 in /apps/orchestrator #184.

Constraints

  • The detection freeze. The corpus uses vault_fs.* tool names as data, and rules.py / traits.py mention vault. Leave the frozen files and the corpus alone. They are inputs, not runtime.
  • The dashboard's state model is Dashboard: remove the removed product's state model #26. This issue is the backend and repo side of the same cleanup.

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions