Metadata-Version: 2.5
Name: dagentos
Version: 0.17.1
Summary: A control plane for durable, observable, human-in-the-loop LLM agent workflows
Project-URL: Homepage, https://github.com/AmitSinghOM/AgentOS
Project-URL: Repository, https://github.com/AmitSinghOM/AgentOS
Project-URL: Changelog, https://github.com/AmitSinghOM/AgentOS/releases
Project-URL: Documentation, https://github.com/AmitSinghOM/AgentOS/blob/main/README.md
License: MIT
License-File: LICENSE
Keywords: agents,durable-execution,event-sourcing,human-in-the-loop,llm,workflow
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Classifier: Typing :: Typed
Requires-Python: >=3.11
Requires-Dist: anyio>=4
Requires-Dist: fastapi>=0.110
Requires-Dist: httpx>=0.27
Requires-Dist: psycopg-pool>=3.2
Requires-Dist: psycopg[binary]>=3.1
Requires-Dist: pydantic>=2.6
Requires-Dist: uvicorn[standard]>=0.29
Provides-Extra: dev
Requires-Dist: httpx>=0.27; extra == 'dev'
Requires-Dist: import-linter>=2.0; extra == 'dev'
Requires-Dist: pytest>=8.0; extra == 'dev'
Requires-Dist: ruff>=0.4; extra == 'dev'
Provides-Extra: observability
Requires-Dist: opentelemetry-api>=1.25; extra == 'observability'
Requires-Dist: opentelemetry-exporter-otlp-proto-http>=1.25; extra == 'observability'
Requires-Dist: opentelemetry-sdk>=1.25; extra == 'observability'
Requires-Dist: opentelemetry-semantic-conventions>=0.46b0; extra == 'observability'
Requires-Dist: prometheus-client>=0.20; extra == 'observability'
Provides-Extra: providerkit
Requires-Dist: httpx>=0.27; extra == 'providerkit'
Requires-Dist: jsonschema<5,>=4.20; extra == 'providerkit'
Description-Content-Type: text/markdown

# AgentOS

**A control plane for durable, observable, human-in-the-loop LLM agent workflows.**

Define a workflow as a DAG of agent steps. AgentOS runs it durably — surviving crashes,
recording exactly one committed completion per step (a step that ran but did not commit
before a crash is re-run, so external effects rely on downstream idempotency — see
[FAIL_MODES.md](./docs/FAIL_MODES.md)), pausing for human approval, and emitting a full
trace and cost breakdown for every run.

The interesting part isn't calling LLMs. It's the distributed-systems layer around them:
**durable execution, idempotency, retries without corruption, suspended workflows, and
observability.** See [DESIGN.md](./DESIGN.md) for the architecture and the decisions
behind it.

---

## Why this exists

A notebook chaining three agent calls works until something real happens — the process
crashes mid-run, a model call times out, a step needs sign-off, or you need to explain
why run #4821 cost $2.10. AgentOS handles those.

## What it looks like running

One trace per run, derived from the event log. This one wrote a haiku on a local model,
suspended for a human's approval of a `spend` step, waited, and resumed after the grant —
the gap is the human:

![Jaeger: a run suspended for approval, then resumed](docs/images/jaeger-run-payment.png)

The provisioned Grafana dashboard, from the same log: runs per minute, error rate, latency
percentiles, step outcomes, retries and dead-letters, tokens by executor, approval wait,
cost by workflow. Every number is a fold of events — replaying the log rebuilds it exactly.

![Grafana: the AgentOS dashboard](docs/images/grafana-dashboard.png)

Both are from a real two-process run (API + worker) against Ollama — see
[`docs/quickstart-llm.md`](docs/quickstart-llm.md) §7 to reproduce them.

## Architecture (at a glance)

```mermaid
flowchart TD
    C[Client] -->|define / start / approve| API[FastAPI API]
    API -->|append run.started, enqueue| PG[(PostgreSQL or SQLite<br/>event log · queue · leases · blobs)]
    PG --> W[Worker<br/>fenced lease, wave scheduler]
    W --> EXEC[Executors]
    EXEC --> PROV[Provider plugins<br/>openai-compat · anthropic · openai-agents · pydantic-ai · acp]
    EXEC --> TOOL[tool<br/>HTTP · subprocess]
    W -->|append events| PG
    PG -.observers derive.-> OTEL[OpenTelemetry → Jaeger]
    PG -.observers derive.-> PROM[Prometheus → Grafana]
```

One store is the whole truth: the append-only, hash-chained event log, plus the queue,
fenced leases and content-addressed blobs, behind one `Store` port with PostgreSQL, SQLite
and in-memory adapters. There is no second system to keep consistent. Snapshots bound
replay cost and are only a cache of the fold.

## Quick start

Three paths. **With a real model, no API key** (recommended): [`docs/quickstart-llm.md`](docs/quickstart-llm.md) —
Ollama + the `openai-compat` provider, five minutes, a poet and a critic on your laptop.
**The approval gate, end to end**: [`docs/tutorial.md`](docs/tutorial.md) — a run that suspends
before a `spend` step, decided as a named human, then the log that proves it and a rewind to the
moment it stopped; ten minutes, no model. **Without any model** (the mechanics only), below.

```bash
cp .env.example .env
pip install -e ".[dev]"
uvicorn dagentos.api.main:app --reload      # API (SQLite file ./agentos.db by default)
python -m dagentos.worker                   # worker, in another terminal
```

Installing rather than cloning: distribution and import package are both **`dagentos`**
(`pip install dagentos` → `import dagentos`). The product is AgentOS; the name `agentos` on PyPI
belongs to an unrelated project, so the package carries a `d` for durable. The `AGENTOS_*`
environment variables and the `agentos` CLI keep the product name.
Every release ships wheels with Sigstore-signed provenance and a multi-arch image built from the
same wheels — verification in [`docs/RELEASING.md`](docs/RELEASING.md).

```bash
pip install "dagentos[providerkit]" agentos-provider-openai-compat
docker run --rm -p 127.0.0.1:8000:8000 ghcr.io/amitsinghom/agentos   # API on loopback; python -m dagentos.worker for the worker
```

A whole coding agent as a step: [`providers/acp`](providers/acp/README.md) runs one
[Agent Client Protocol](https://agentclientprotocol.com) turn (`kiro-cli acp` by default, any
ACP agent by config) under the same gate — the agent's permission prompts are answered from
the step's declared effect classes, never `allow_always`, and an unasked undeclared tool
dead-letters the step.

No Docker needed for the default SQLite store. For Postgres (needs the `.env` from above —
the compose file reads `POSTGRES_PASSWORD` from it and refuses to start without one):
`docker compose up -d`, then `AGENTOS_STORE=postgres AGENTOS_PG_DSN=postgresql://agentos:agentos@localhost/agentos`
for both processes.

Define and run a workflow (the `Content-Type` header matters — without it curl sends a
form body and the API answers 422):

```bash
# register an agent
curl -X POST localhost:8000/agents -H 'Content-Type: application/json' -d @examples/echo_agent.json

# define a workflow
curl -X POST localhost:8000/workflows -H 'Content-Type: application/json' -d @examples/hello_workflow.json

# start a run: 202 + run id; the worker advances it. Repeating with the same
# Idempotency-Key returns the same run.
curl -X POST localhost:8000/workflows/hello/runs -H 'Idempotency-Key: demo-1'

# fetch the folded state, or the raw event log paged by seq
curl localhost:8000/runs/{run_id}
curl 'localhost:8000/runs/{run_id}/events?after=0'

# a step that exhausted its retries is dead-lettered with the cause; reopen it,
# recording who asked, and the run continues from where it stopped
curl -X POST localhost:8000/runs/{run_id}/steps/{step_id}/retry \
     -H 'Content-Type: application/json' \
     -d '{"principal": {"kind": "human", "id": "amit"}, "reason": "fixed the agent"}'

# operator control: each is a persisted request, finalized at the worker's next
# boundary (or immediately if nothing is running). Completed steps are never lost.
curl -X POST localhost:8000/runs/{run_id}/pause
curl -X POST localhost:8000/runs/{run_id}/resume
curl -X POST localhost:8000/runs/{run_id}/cancel

# human-in-the-loop: a step whose agent declares spend / write_external / send_message /
# execute_code suspends the run BEFORE it runs. Decide from the inbox; the decision and
# who made it are in the log; the step then runs, and its completion is committed once.
curl localhost:8000/approvals
curl -X POST localhost:8000/runs/{run_id}/approvals/{approval_id}/approve \
     -H 'Content-Type: application/json' \
     -d '{"principal": {"kind": "human", "id": "amit"}, "reason": "within budget"}'

# or run synchronously in the API process (Phase 0 behaviour)
curl -X POST 'localhost:8000/workflows/hello/runs?sync=true'
```

Or run the same walkthrough as a test: `pytest tests/test_quickstart.py`.

## What people use it for

AgentOS is for the agent work that has to be **accountable**: it spends money, writes to a
system someone else depends on, or has to be explained afterwards to a person who was not
there. Each use case below is one declared workflow; the files named are in
[`examples/`](examples/) and run against the quick start.

| Use case | The shape | Where the ledger earns its keep |
|---|---|---|
| **Content pipeline with a reviewer** — write, then critique, then ship | two `llm` steps: `poet` writes, `critic` reviews with `depends_on: ["write"]` and a `retry` policy ([`haiku_workflow.json`](examples/haiku_workflow.json)); `critic_typed_agent.json` makes the review a typed `{score, reason}` via `output_schema` | `budget.max_run_cost` caps the whole run; a flaky model is retried per node and dead-lettered with the cause, not silently dropped |
| **Research, then write** — pull facts from an API, hand them to a model | a `tool` step (`kind: http`, effect `read`) feeding an `llm` step ([`research_workflow.json`](examples/research_workflow.json)); the URL is the operator's and inputs reach the tool as values only, never as URL or argv | the response body (capped at 1 MiB, header values redacted) is the step's recorded output, so the writer's prompt is reproducible after the API changes |
| **Anything that spends or ships** — payment, deploy, outbound email | any node whose agent declares `spend`, `write_external`, `send_message` or `execute_code` ([`diamond_workflow.json`](examples/diamond_workflow.json) with `payer_agent.json`) | the run **suspends before the step runs**; a named human approves from the inbox or the API; who, when and why are in the hash-chained log; the step's completion is then committed once |
| **A coding agent as one step** — fix a failing test, open a change | one `llm` step with `executor: acp` declaring `[compute, read, execute_code]` ([`providers/acp`](providers/acp/README.md)); the agent's permission prompts are answered from that declaration | an unasked edit outside the declaration dead-letters the step; every tool call is recorded by SHA-256; no `allow_always` ever |
| **Scheduled and event-driven runs** — nightly reports, "on every push" | `python -m dagentos.triggers` with cron slots (IANA time zones) and HMAC-signed webhooks ([`triggers.json`](examples/triggers.json)) | every trigger goes through the public run-start API with a derived `Idempotency-Key`, so a redelivered webhook or a retried slot is one run |
| **Comparing models or harnesses** — same task, different backend | one workflow, `executor` swapped between `openai-compat`, `anthropic`, `openai-agents`, `pydantic-ai` and `acp`; the two API providers share one output shape and the two SDK harnesses another, each pinned by a test | the cost panel and `provenance.model_id` make the comparison a query over runs, not a spreadsheet |

If the work is a conversation with an agent that should remember you, that is a workspace
product (Kiro CLI, Kiro Crew) — AgentOS runs *its* agent as a step when the step needs the
ledger, and stays out of the way otherwise.

## Using it with popular models

Every model touches the core through one seam, the `Executor` port, so the choice of model
is an agent-definition field plus environment variables — never a code change. Two agents in
the same workflow can use two vendors.

| Backend | `executor` | Environment | `config.model` |
|---|---|---|---|
| **Ollama** (local, the default) | `openai-compat` | none — `ollama serve` on `127.0.0.1:11434`, `ollama pull qwen2.5:0.5b` | alias `chat.fast` → `qwen2.5:0.5b`, `chat.default` → `llama3.2:3b` |
| **OpenAI** (`gpt-4.1`, `gpt-4o`, `o3-mini`, …) | `openai-compat` | `AGENTOS_OPENAI_BASE_URL=https://api.openai.com/v1` and `OPENAI_API_KEY` | a concrete id, or re-point the aliases: `AGENTOS_OPENAI_ALIASES='{"chat.fast":"gpt-4o-mini","chat.default":"gpt-4.1"}'` |
| **Anthropic** (`claude-sonnet-4`, `claude-3-5-haiku-latest`, …) | `anthropic` | `AGENTOS_ANTHROPIC_BASE_URL=https://api.anthropic.com` (no `/v1`) and `ANTHROPIC_API_KEY` | `AGENTOS_ANTHROPIC_ALIASES='{"chat.fast":"claude-3-5-haiku-latest","chat.default":"claude-sonnet-4"}'` |
| **Google Gemini** | `openai-compat` | `AGENTOS_OPENAI_BASE_URL=https://generativelanguage.googleapis.com/v1beta/openai` and `AGENTOS_OPENAI_API_KEY=<Gemini key>` | e.g. `gemini-2.5-flash` — any id the endpoint lists |
| **OpenRouter** (hundreds of models behind one key) | `openai-compat` | `AGENTOS_OPENAI_BASE_URL=https://openrouter.ai/api/v1` and `AGENTOS_OPENAI_API_KEY` | the router's `vendor/model` id, as its `GET /models` lists it |
| **vLLM / LM Studio / any OpenAI-compatible server** | `openai-compat` | `AGENTOS_OPENAI_BASE_URL=http://host:8000/v1` (vLLM) or `http://127.0.0.1:1234/v1` (LM Studio) | whatever the server reports at `GET /models` |
| **An agent SDK with tools** (OpenAI Agents SDK, PydanticAI) | `openai-agents` / `pydantic-ai` | same shape with the `AGENTOS_OPENAI_AGENTS_*` / `AGENTOS_PYDANTIC_AI_*` prefix; both default to local Ollama | alias or id; `tools` names registered operator functions, each with an effect class |
| **A whole coding agent** (Kiro CLI, Gemini CLI, Claude Code via its ACP adapter, …) | `acp` | `AGENTOS_ACP_COMMAND='["kiro-cli","acp"]'` (default) plus the agent's own login | ignored — the agent brings its model |

The same poet, three ways. Only `executor` (and the environment above) changes:

```json
{"name": "poet", "type": "llm", "executor": "openai-compat",
 "config": {"model": "chat.fast", "system": "You are a terse poet.",
            "prompt": "Write a haiku about {run.topic}."}}
```

```json
{"name": "poet", "type": "llm", "executor": "anthropic",
 "config": {"model": "claude-3-5-haiku-latest", "system": "You are a terse poet.",
            "prompt": "Write a haiku about {run.topic}."}}
```

```json
{"name": "poet", "type": "llm", "executor": "pydantic-ai", "declared_effects": ["compute"],
 "config": {"model": "gpt-4o-mini", "instructions": "You are a terse poet.",
            "prompt": "Write a haiku about {run.topic}.", "tools": ["utc_now"]}}
```

Mixing vendors in one run is the same file twice: register the Anthropic poet and an OpenAI
critic, and `haiku_workflow.json` runs unchanged. `GET /executors` shows each backend's health
(server reachable, aliases resolvable to models it actually has) before you start a run.

What the log records is the same for all of them: the concrete `model_id` the server reported
(not the alias you asked for), token usage, and a `cost` metered through a content-addressed
pricing table whose hash is on every step. OpenAI and Anthropic ids in the bundled tables are
priced; anything else (Gemini, OpenRouter, a local model) is recorded with its meters and
`priced: false` until you point `AGENTOS_OPENAI_PRICING` / `AGENTOS_ANTHROPIC_PRICING` at your own
table — the amount is never guessed. A misconfiguration is a `ConfigError` naming the variable;
an unreachable server, a missing model or a bad key is a `step.failed` whose message says what
to do (`ollama pull …`, set the key), then the node's retry policy, then a dead-letter with that
message as the cause. Full per-provider tables: [`providers/*/README.md`](providers/).

### Authentication

The quick start runs with `AGENTOS_AUTH=asserted` (the default): the `principal` in a
request body is recorded as given and **nothing verifies it** — the API says so in a
startup warning. Before anyone else can reach the API, switch to bearer mode, where the
credential decides who the caller is and the body may not:

```bash
# one line per principal; the file holds SHA-256 hashes, never tokens
TOKEN=$(openssl rand -hex 32)
printf '{"principals": [{"sha256": "%s", "kind": "human", "id": "amit"}]}\n' \
  "$(printf %s "$TOKEN" | shasum -a 256 | cut -d' ' -f1)" > tokens.json
AGENTOS_AUTH=bearer AGENTOS_AUTH_TOKENS=tokens.json uvicorn dagentos.api.main:app

# every request except /health, /ready and /metrics needs the token; decisions drop the body principal
curl -X POST localhost:8000/runs/{run_id}/approvals/{approval_id}/approve \
     -H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' \
     -d '{"reason": "within budget"}'
```

The recorded principal on `approval.granted` is the token's (`kind`, `id`, and an
`attestation` naming which credential, `token:sha256:<12 hex>`), a body `principal` is
rejected 422 rather than silently replaced, an `agent`-kind token can neither approve a
`spend` step (403) nor register agents or define workflows (403), and every rejection is
logged by hash prefix only. Rotate by editing the file and restarting. Tests:
`tests/test_auth.py`; contract: `docs/TRUST_BOUNDARY.md` §1. Which way every chokepoint fails,
with the test that pins it: `docs/FAIL_MODES.md`.

### Operator policy ceiling

Every limit the gate enforces comes from the workflow's `budget` — written by whoever defines
the workflow. The operator's rules live in one file that every workflow budget is intersected
with before the gate sees it. Tightest wins; a policy can only narrow:

```bash
AGENTOS_POLICY=examples/operator_policy.json uvicorn dagentos.api.main:app   # and the worker
curl localhost:8000/policy          # the ceiling and its sha256
```

`effect_ceiling` is the set of effect classes any step may ever run (outside it → refused
before dispatch, whatever the workflow says); `always_approve` forces a decision even where a
workflow allows a class freely; `agent_approval_allowed: false` revokes `allow_agent_approval`
everywhere, including on the approve path; `allowed_executors` fails a run at dispatch if an
agent names anything else; the cost and wall limits are minimums. Each run records
`governance.policy_applied` right after `run.started` with the policy's sha256 and every
narrowing, so the log says which ceiling governed it. No `AGENTOS_POLICY` → no ceiling and a
startup warning. Tests: `tests/test_policy.py`.

### Operator UI

The API serves a small React app at `/ui` — in the wheel and the image, no Node at runtime —
with three screens: the **approvals inbox**, the **run list** (status filter held in the URL),
and the **run page**: the DAG laid out by dagre with each node's state read from the server's
folded run, the live stream as the trigger for refetches, a timeline with **time travel**
(`GET /runs/{id}?at=k`, folded on the server, never in the browser), cost and latency per node,
Pause / Resume / Cancel and per-step retry that mirror the engine's 409 rules, an integrity
verdict chip from `GET /runs/{id}/integrity`, and decisions in place with the same
`ApprovalCard` the inbox uses. Every decision control shows exactly who the log will name
first (`GET /me`; in `asserted` mode the banner says **Unverified** and makes you type a
principal), keeps the bearer token in the tab's `sessionStorage` only, sends the API's own
bodies, and shows the API's errors verbatim. Three runtime dependencies, a ~325 kB bundle, a
strict CSP (`frame-ancestors 'none'`) on every `/ui` response. Building from a checkout:
`cd ui && npm ci && npm run build`; the contract and what the UI deliberately does not do are
in [`docs/UI.md`](docs/UI.md), and [`docs/tutorial.md`](docs/tutorial.md) drives all three
screens in ten minutes.

### Triggers: cron and webhooks

Runs can start without a person at a terminal, through the same `POST /workflows/{name}/runs`
everything else uses — no second door into the engine:

```bash
AGENTOS_TRIGGERS=triggers.json uvicorn dagentos.api.main:app     # mounts POST /triggers/webhooks/{name}
AGENTOS_TRIGGERS=triggers.json python -m dagentos.triggers       # fires the cron triggers
```

A cron slot becomes `Idempotency-Key: cron:{name}:{slot}`, a webhook delivery becomes
`webhook:{name}:{delivery-id}`, so a restarted runner or a redelivered webhook lands on the
same run. Webhooks are signed Stripe-style (`X-AgentOS-Timestamp` + HMAC-SHA256
`X-AgentOS-Signature`, ±300 s), the secret comes from an environment variable the file
names, and an unset secret stops the API at startup rather than mounting an unsignable
route. Missed cron slots are never backfilled. Contract, file format and every fail mode in
[`docs/triggers.md`](docs/triggers.md).

### Approval notices in Slack

```bash
AGENTOS_SLACK_WEBHOOK=https://hooks.slack.com/services/T…/B…/… python -m dagentos.worker
```

When a run suspends for a human, the channel gets the workflow, step, effect class, reason
and a link to the run page; when someone decides, it gets who and why. The message carries
**no authority** — no approve button, no token — because an incoming webhook can verify
nobody; the decision stays in the UI or API where the principal is. Posts happen off the
engine's thread on a bounded queue, and Slack being down is a warning, never a failed run.
[`docs/notifications.md`](docs/notifications.md).

### Sealed chains and the `agentos` CLI

The hash chain makes edits visible; it cannot stop someone with database access from
rewriting an idle run and recomputing every hash. With a keyring configured, every event that
leaves a run idle is followed in the same batch by a seal — an HMAC under a key the database
host never sees — so a rewrite needs the key and a deleted seal shows as an unsigned tail:

```bash
printf '{"active": "k1", "keys": {"k1": "%s"}}\n' "$(openssl rand -hex 32)" > signing-keys.json
AGENTOS_SIGNING_KEYS=signing-keys.json uvicorn dagentos.api.main:app      # and the worker

agentos verify                      # every run: chain + seals; exit 1 on any failure
agentos doctor                      # store, migrations, executors, auth/policy/signing, every run
agentos policy explain hello        # what the operator ceiling does to one workflow, per node
```

`GET /runs/{id}/integrity` reports the same seal state (`unsigned | verified | unverifiable |
INVALID`). Limits, stated plainly in `docs/TRUST_BOUNDARY.md` §2: the key is symmetric (keep it
off the DB host), and nothing in the log can detect truncation *after* the last seal — the CLI
reports the uncovered tail instead of pretending. Tests: `tests/test_seal_and_cli.py`.

### Observability

Telemetry is derived from the event log, so it can be rebuilt from any stored run and the
core imports no telemetry SDK.

```bash
pip install -e ".[observability]"
docker compose up -d jaeger prometheus grafana
AGENTOS_OTEL_EXPORTER=otlp OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 \
  uvicorn dagentos.api.main:app          # and the worker, with the same two variables
```

- Traces: [Jaeger](http://localhost:16686) — one span per run, one per step attempt, with
  OpenTelemetry GenAI attributes (`gen_ai.system`, `gen_ai.request.model`,
  `gen_ai.usage.*_tokens`) plus `agentos.*` (effects declared/reported, cost, approval and
  dead-letter events).
- Metrics: `GET /metrics` on the API, scraped by [Prometheus](http://localhost:9090).
- Dashboard: [Grafana](http://localhost:3000), provisioned — runs/min, error rate, runs
  awaiting approval, total cost, latency p50/p95/p99, step outcomes, retries and
  dead-letters, tokens by agent, approval wait, cost per minute by workflow.

### The crash demo, as a test

```bash
pytest tests/chaos/test_kill9_real_process.py -v
```

A real worker process is started, hard-killed (exit 137) right after step 2 of 3 is
committed, and a second process picks the run up and finishes it. The test asserts step 2
is never started again and the log has exactly one completion per step. Every fault point
in the commit path has a test in `tests/chaos/`; they run on every PR.

## Roadmap

This is built in public, in phases, each ending in a tagged release and a writeup.
See [ROADMAP.md](./ROADMAP.md).

| Phase | Ships | Status |
|-------|-------|--------|
| 0 · Walking skeleton | API + Postgres up, single-step run end-to-end | ✅ `v0.1.0-skeleton` |
| 1 · Durable execution | Event-sourced state, idempotent steps, crash-resume | ✅ `v0.2.0-durable` |
| 2 · DAG orchestration | Parallel branches, agent versioning, retries + DLQ | ✅ `v0.3.0-dag` |
| 3 · HITL + observability | Approval gates, OpenTelemetry, cost dashboard | ✅ `v0.4.0-observable` |
| 4 · Providers + DX | OpenAI-compatible + Anthropic plugins, aliases, cassettes, 5-minute quickstart | ✅ `v0.5.0-providers` |
| 5 · Trust boundary + polish | C12: strict control payloads, tamper-evident log, inputs as data; screenshots | ✅ `v0.6.0-trusted` |
| 6 · Tools, snapshots, survey close-out | `tool` agent, verified snapshots + migrations, all 15 `landscape-con` issues closed with tests | ✅ `v0.7.0-complete` |
| 7 · Streaming + inner harness | `GET /runs/{id}/stream` (SSE over the log), OpenAI Agents SDK and PydanticAI as governed steps | ✅ `v0.8.0-watchable`, `v0.8.1` |
| 8 · Pilot readiness | Authenticated `Principal`, operator policy ceiling, sealed chains + `agentos verify` / `doctor` / `policy explain`, FAIL_MODES, publishing with provenance as `agentos-durable` (renamed `dagentos` in v0.11.0) | ✅ `v0.9.0-pilot` |
| 9 · UI | Approvals inbox, live run graph over the stream, timeline with time travel, cost + latency — served at `/ui`, in the wheel and image | ✅ `v0.10.0-ui`, detailed in `v0.12.0`, production passes in `v0.13.0` and `v0.14.0`, shell in `v0.15.0`, run controls, in-place decisions, first-hour tutorial and four-seat review in `v0.16.0` |
| 10 · Triggers, notifier, ACP, hardening | Cron runner + HMAC-signed webhooks through the public run-start API, Slack approval notices that carry no authority, a whole ACP coding agent as one governed step, compose and image on loopback with no literal credential, asserted-mode tool deny, first PyPI release | ✅ `v0.17.0`, `v0.17.1` |

Phases 1–3 are scoped against a survey of what the popular agent runtimes get wrong
(LangGraph, agno, Microsoft Agent Framework, crewAI, ADK, mastra, Temporal, Hatchet…).
Each gap is a tracked issue labelled `landscape-con`; see [ROADMAP.md](./ROADMAP.md).

## Engineering writeups

Each phase produces an article on a distributed-systems problem solved here:
- Idempotency Beyond API Keys
- Durable Execution: Resuming Workflows After a Crash
- Retry Without Data Corruption
- Suspended Workflows: Human Approval as a First-Class State
- Providers Are Plugins
- Three Doors: Where Untrusted Bytes Meet an Agent Engine
- Snapshots That Are Never the Truth
- The Stream Is the Log

(See [`docs/blog/`](./docs/blog).)

## Security

Report vulnerabilities privately through GitHub's Security Advisory form; scope, supported
versions and response times are in [`SECURITY.md`](SECURITY.md). Dependabot watches every
distribution, the UI and the workflow actions; CI runs `pip-audit --strict` and
`npm audit --audit-level=high` on every pull request. Release artifacts carry build
provenance (`gh attestation verify`).

## License

MIT
