Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ curl -H "Authorization: Bearer $TOKEN" http://127.0.0.1:8200/v1/me/profile

**AI backend runtime split:**

- `agent_runtime/` — pure domain. `execution/` (graph, deep agent builder, runtime contracts), `capabilities/` (tools, skills, MCP loaders + middleware + permissions), `context/memory`, `delegation/subagents`, `persistence/` (records, schema, ports), `observability/`, `api/` (presentation/service layer for the runtime API).
- `agent_runtime/` — pure domain, 21 packages. Runtime core: `execution/` (graph, deep agent builder, runtime contracts), `capabilities/` (tools, skills, MCP loaders + middleware + permissions), `context/memory`, `delegation/subagents`, `persistence/` (records + ports), `observability/`, `api/` (presentation/service layer for the runtime API), `prompts/`, `control_plane/`, `hyperparameters/`, `deployment/`. Generative Surfaces: `surfaces_v2/` (the Work Ledger), `effects/` (pure staging domain), `artifacts/`, `presentation/`. Known-misplaced, target home `backend`: `harness_quality/`, `pricing/`, `budgets/`, `release/`, `retention/` — see [BOUNDARY-AUDIT.md](docs/audit/ai-backend-smells/BOUNDARY-AUDIT.md).
- `runtime_api/` — FastAPI app exposing conversations, runs, event replay, SSE streaming, cancel, approvals.
- `runtime_worker/` — separate process that claims queued runs, drives the LangGraph execution, and emits typed `RuntimeEventEnvelope` records (`model_delta`, `final_response`, `run_completed`, tool/subagent/stream events). The API can also start an in-process worker via `RUNTIME_START_IN_PROCESS_WORKER=true` for local dev.
- `runtime_adapters/` — `in_memory` for tests/dev, `file` (JSONL session folders) for the desktop. Selected by `RUNTIME_STORE_BACKEND`, dispatched through `runtime_adapters/registry.py`; adding a backend is a provider module plus one registration, with no edit to any dispatch code.
Expand Down
Loading