Repository navigation
v0.18.0 — Hardening, operability, run index, archive, function calling
Seventy-five commits and twenty-one merged pull requests since v0.17.1, all of them ordered by
the repository audit of 2026-11-12 (kept outside the repository; rows are cited by id, I-… for
issues and E-… for enhancements) and landed in three waves. Wave 1 (#134–#138) closed the
audit's blocker rows: scheduled CI so a dependency drift shows up on main the day it happens,
tool output read under a byte cap instead of into memory, substituted secrets scrubbed from what
the log records, a stream reconnect that no longer mislabels a live run, and a deployment-wide
kill switch. Wave 2 (#139–#146, #150) paid down tooling and supply-chain debt: a real ruff rule
set and a mypy baseline gate, every CI action pinned by commit SHA, an image that installs from
hash-pinned constraints, a documentation drift sweep with four reconstructed ADRs, community files,
and agentos init / agentos run. Wave 3 (#148, #149, #151–#154) added the operability the
audit ranked highest: a rebuildable runs index behind a server-side GET /runs?status=, a run
export an auditor can take away, a retention command that purges only what it has already exported
and verified, a function-calling round trip for the plain OpenAI-compatible provider gated by the
step's declared effect classes, six Hypothesis properties over random logs, and four more Toxiproxy
scenarios. Two migrations (3 and 4), one read-only route (GET /scheduler), three query parameters
on GET /runs, six CLI subcommands and 11 docs/FAIL_MODES.md rows were added. No event type was
added and the golden logs are unchanged. Every row the audit called a blocker is closed; what stays
open is listed at the end and in ROADMAP.md "Open items".
Wave 1 — hardening (audit blockers)
- Scheduled CI on
main, nightly for all five providers (#134; I-11) —ci.ymlgains
schedule: cron "37 4 * * *", and itsconcurrency.groupnow includesgithub.event_nameso
a scheduled run and a push tomaincannot cancel each other (both resolved to
refs/heads/mainbefore). Every job runs on the schedule, including the fresh 3.11 + 3.14
resolve, so a floor drift like the pydantic-ai 2.60 break that stayed invisible for three weeks
beforev0.17.0now fails onmainwithin a day.provider-live.ymlgets
permissions: contents: read, installs the same five providers as thetestjob (acp was
missing) and replays all five suites (pytest -q providers tests/test_quickstart_llm.py).
Pinned bytests/test_packaging.py::test_main_is_checked_daily_and_the_nightly_replays_every_provider. - Five small hardening rows (#136; I-10, I-15, I-18, I-16/I-37, I-42) — (1) a worker thread
that dies mid-test now fails the test:pyproject.tomlsets
filterwarnings = ["error::pytest.PytestUnhandledThreadExceptionWarning"], which exposed one
test appending an unchained cancel "as the API would" (the real API chains through
engine._emit; the test now callsrequest_cancel). (2)agentos.dbis created0600:
SqliteStoreopens a not-yet-existing plain path withos.open(O_CREAT | O_RDWR, 0o600)before
sqlite3.connect, and SQLite copies that mode onto the-wal/-shmsidecars
(tests/test_store_typed_and_bounded.py::test_sqlite_file_is_created_owner_only). (3)
AGENTOS_PG_SCHEMAmust match^[a-z_][a-z0-9_]{0,62}$orstore_from_envrefuses before any
connection, naming the variable and the rule (it is interpolated intoCREATE SCHEMAand
search_path). (4)SECURITY.mdanddocs/TRUST_BOUNDARY.mdstate that/metricsis open and
what its labels carry, and both now list the real open paths (/health,/ready,/metrics,
GET/HEADof/uistatic files, the self-authenticated/triggers/webhooks/*). (5) the
image installs the acp provider wheel (Dockerfilehad four of five);
tests/test_packaging.py::test_dockerfile_installs_every_provider_wheelderives the set from
providers/*/pyproject.toml. - Tool executor: streaming byte caps and redaction (#137; I-08, I-14) —
max_bytes(default
1 MiB) was checked after the whole body was in memory. Now the http path usesc.stream()+
iter_bytes()with a running counter (after decompression, so a compressed body cannot slip
under the cap) and abandons the body at the cap; the subprocess path replacescommunicate()
with aselectorspump that writes stdin as the pipe drains, reads stdout in 64 KiB chunks,
keeps stderr as a 64 KiB tail (it was unbounded too) andkillpgs the group past the cap. A
hostile endpoint or program can no longer push gigabytes into the worker, or into the API
process under?sync=true. Redaction: every value_substitutefills in for a${NAME}
reference in this step'sheaders/env(values of 8+ characters) becomes[REDACTED:NAME]
in the recorded body/JSON/headers, the stderr tail, the error text andprogress()notes;
output.redactionslists the names removed so replay stays deterministic and an auditor sees
that something is missing. The outgoing request still carries the real value. A step that
substitutes nothing records output verbatim with noredactionskey, so existing runs replay
unchanged. Known limits in the module docstring: values under 8 chars and secrets that come
back transformed (encoded, JSON-escaped, split across the tail boundary); the general
pre-append pass stays ROADMAP row 7. Five FAIL_MODES rows (one amended, four new), pinned in
tests/test_tool_agent.py(test_http_body_over_cap_is_refused_while_streaming_and_memory_stays_bounded,
test_subprocess_endless_stdout_is_cut_at_the_cap_not_at_the_timeout,
test_http_output_and_error_text_redact_the_substituted_header_value,
test_subprocess_output_redacts_the_substituted_env_value,
test_steps_without_env_references_record_output_unchanged). - UI stream reconnect (#135; I-09 / D6) — after the server closed the SSE stream at its
maximum duration,RunGraph.tsxdid onerefetch(), andrefetchreturnsnullon any
error, so one transient 5xx at that boundary set the chip toclosedon a run that was still
running. Anullrefetch is now a stream error: it counts towardMAX_CONSECUTIVE_ERRORS,
backs off and retries; only a terminal status from the server closes the loop; a frame or a
successful refetch resets the counter. Two vitest cases inui/src/RunGraph.test.tsx(blip
then recovery withLast-Event-ID; every refetch failing → "gave up after 5 attempts", chip
error, neverclosed). UI tests 99 → 101. - Global pause (#138; A12 / E-03) — the incident kill switch.
agentos pause --all [--reason ..] [--principal NAME],agentos resume --all,agentos pause --statuswrite and
read one deployment-wide fact: the newest row of a store-level, append-onlyscheduler_state
history (migration 3, hash-pinned per dialect intests/test_migrations.py;SchedulerState
indagentos/core/events.pysays in its first line that it is not a run event, because the
log is per run and replay must stay per-run deterministic). The engine consults it at every
wave boundary after the per-run control check and before_ready_nodes, so the in-flight wave
is recorded, nothing new starts, and the run staysrunning— the?sync=truepath honours it
too. The worker checks it beforequeue.pulland at the top ofrecover(): no pull, no
re-enqueue, no approval expiry — the deployment is frozen, not drained. A run the engine
stopped mid-advance is pushed straight back on the queue so the first tick afterresume
continues it. Fail-closed: aget_scheduler_state()that raises is treated as paused and
logged with the exception class.GET /scheduleris read-only and bearer-gated; every write
verb is 405, so a stolen API token cannot un-pause an incident (un-pausing takes store access).
Trade-off accepted and documented: the pause history is auditable but not hash-chained or
sealed. Three FAIL_MODES rows (84 → 87);tests/test_global_pause.py(9 tests), a store
contract case for every adapter, migration 3 pinned.
Wave 2 — tooling, supply chain, docs, community
- ruff rule set,
py.typed, mypy baseline gate (#139; I-23, I-24) —[tool.ruff.lint] select = ["E", "F", "B", "BLE", "UP", "I", "RUF100"](ruff had been running its default
E4/E7/E9/F set, so the 27# noqa: BLE001comments were inert). The first run reported 191
findings; 148E501and 8UP042are ignored with a comment saying why (a reflow pass and a
StrEnumbehaviour change, respectively), the rest were fixed by hand or scoped by
per-file-ignores; no control flow changed. Emptypy.typedindagentos/and all five
provider packages (the wheels were declaredTyping :: Typedwithout one).[tool.mypy]
non-strict overdagentos; mypy 2.4.1 reports 40 errors in 14 files, recorded verbatim in
mypy-baseline.txt;scripts/typecheck_gate.pycompares the current output to the baseline
without line numbers (multiset) and exits 1 only on a new error, printed verbatim. A ninth CI
job,typecheck, runs it;tests/test_typecheck_gate.py(12 cases) pins the comparison. - Supply chain (#140, #145; I-22, I-21/E-20) — every
uses:inci.ymland
provider-live.ymlisowner/action@<40-hex> # vN.N.N(checkout 3d3c42e v7.0.1, setup-python
6d4fd22 v7.1.0, setup-node 949feb2 v7.1.0, upload-artifact cf430e0 v7.0.2), the shape
publish.ymlalready used and Dependabot keeps bumping; #145 pinned thetypecheckjob's two
actions after #139 and #140 merged minutes apart and the new lock test went red onmain. The
nightly'scurl … | shOllama installer is downloaded, checked against a recorded sha256
(OLLAMA_INSTALL_SHA256in the step'senv:) and only then run — the day Ollama ships a new
install.shthe nightly fails closed and the hash is re-recorded. The model input reaches the
shell throughenv:only. Reproducible image:deploy/constraints.txtpins 70
third-party distributions pluspip, each with the sha256 of every file PyPI serves,
compiled byscripts/refresh_constraints.pywithuv pip compile --universal --generate-hashes --python-version 3.12(one file for amd64 and arm64); theDockerfile
installs them with--require-hashes, then our own wheels with--no-deps, thenpip check.
--checkreports a stale file..github/dependabot.ymlgains thedockerecosystem, narrowed
by #146 topython:3.12-slimpatch digests (Dependabot had proposed 3.15). Six tests in
tests/test_packaging.py(every workflow pinned, installer verified, Dependabot watches the
base, image installs from constraints and every direct requirement is pinned, refresh is
scripted and documented). - Documentation drift sweep (#141; I-29…I-45, W3-23) —
ROADMAP.mdgains the "Open items"
list at the top (every still-open ⏭ row in one place, each with its phase anchor) and ticks
five rows for work that had shipped;DESIGN.mdgets a current status line and dated
Superseded banners on its Redis-era sections, pointing at the current source rather than
rewriting the prose;docs/DEVELOPMENT_STRUCTURE.mddescribes the real toolchain (pip +
Dependabot groups, no lockfile) and the real test layout;docs/LANDSCAPE.mdis a redacted
public extract of the private landscape note the ROADMAP cited; ADRs 0006–0009
(docs/adr/: core depends on nothing, the log is the API, providers are plugins, queue and
lease are ports) are reconstructed from the ROADMAP's design notes, each naming its enforcing
contract or test;docs/UI.md,docs/TRUST_BOUNDARY.md,docs/triggers.md,
docs/notifications.md, three provider READMEs,docs/RELEASING.mdand.env.example
(AGENTOS_PG_SCHEMA,AGENTOS_LOG,AGENTOS_FAULT) corrected line by line against the code. - Community files, badges,
agentos init/agentos run(#142; I-36, E-04) —
CONTRIBUTING.md(every sentence checked againstci.ymlandpyproject.toml; the test
extracts the install line from the workflow and asserts it appears verbatim), issue forms
(bug_report.ymlasks foragentos doctor --jsonand reminds about redaction;
feature_request.yml;config.ymlwithblank_issues_enabled: false), a PR template that
asks for the red-first and discrimination proof, README badges (CI, PyPI version, Python
versions, MIT) and a/uiscreenshot of the diamond example suspended onpay. The first
five minutes shrink from.env+ two processes + four curls topip install→ `agentos init ` (writes `.env`, `agent.json`, `workflow.json`, a README; refuses a non-empty dir) → `agentos run workflow.json [--agents …] [--input k=v] [--store URL]`, which registers the agents and workflow and drives `Engine.start_run` in-process — the same object the API's `?sync=true` path calls — printing `run : , events`; exit 0 completed, 3 suspended for approval, 1 failed/cancelled, 2 usage error. `tests/test_cli_init.py` (9) and six new locks in `tests/test_repo_hygiene.py`. - npm audit gate scope (#150) — GHSA-fc5q-39xc-vjpf (picomatch ≤ 4.0.7, high) has no patched
release and reachesui/package-lock.jsononly through vite / vitest devDependencies, so the
auditjob was red on every open PR for something that never ships. The blocking step is now
npm audit --audit-level=high --omit=dev(the three runtime deps inui/dist: @dagrejs/dagre,
react, react-dom — 0 vulnerabilities); the full-tree audit still runs and emits a::warning
so the dev-tree state stays visible.SECURITY.mdand the README state the scope.
Wave 3 — operability
- Run index (#151; E-07) — the log is the truth; the new columns are a rebuildable index of
it, and nothing that decides anything reads them. Migration 4 adds toruns:status
(the fold'sRunStatus),pending_approvals(JSON; so anapproval.grantedcan tell whether
it was the last pending one),indexed_seq(the last seq the row reflects, so a row behind its
log is detectable) andupdated_at, with indexes(status, created_at, run_id)and
(created_at, run_id). One pure function,dagentos/core/run_index.py::index_events, mirrors
fold._apply's transitions and every adapter calls it inside the transaction that appends
the events (SQLiteBEGIN IMMEDIATE, Postgres under the run row'sFOR UPDATE), so the row
never disagrees with the fold at a commit boundary. Backfill and catch-up live in
migrate(): after migrations apply, every run whose row is behind its log is re-indexed, one
short transaction per run — on the upgrade that is every run. SQLite migrations became atomic
(ledger read, scripts statement by statement, ledger rows in oneBEGIN IMMEDIATE) because
SQLite has noADD COLUMN IF NOT EXISTS; a current database is only read on open and takes no
write lock. Contract:Store.list_runs(status=, workflow=, cursor=, limit=) -> RunPageand
run_status_counts();GET /runs?status=&workflow=&cursor=&limit=(422 on a bad status, 400
on a foreign cursor) returnsnext_cursorand store-widecounts; the cursor is
(created_at, run_id)— notupdated_at, which a status change bumps and would skip the run
on later pages (mutation M6 showed it). A row whose index disagrees with its fold is left out
of a status filter, never shown under the wrong status.GET /approvalsand the worker sweep
fold only the runs the index lists;agentos doctorgains a read-onlyruns indexrow
("N/N rows agree with the fold"). UI run list: server-side status chips with store-wide counts,
workflow filter, Load more on the cursor. One FAIL_MODES row (87 → 88). Locks:
tests/test_run_index.py(index == fold at every cut point of every golden and seeded log;
backfill of av0.17.1-shaped database; atomic migration re-run; nullingindexed_seq
rebuilds),tests/test_run_index_api.py, five contract cases per adapter, four vitest cases;
11 targeted mutations all caught. agentos export-run(#149; A11 / E-08, E-06) —agentos export-run (--run ID | --all) --format jsonl [--out PATH|-] [--include-blobs]writes one run (or every run, one stream,
oldest first) as JSON Lines: a header
({"kind":"agentos.export","version":1,"run_id","exported_at","chain":{verified,sealed_through,seals,error}}),
every event in seq order exactly asGET /runs/{id}/eventsreturns it (hashes included, canonical
lines: sorted keys, compact, ASCII — the same serializationevent_hashhashes, so a reader
re-verifies the chain with stdlibjson+hashlib), one{"kind":"blob",…}line per
referenced blob with--include-blobs(a missing blob is a marked line, not a gap), and a
summary fromfold(). A failed chain exits 1 and the run is still exported, header
verified: false, summarystatus: null: the auditor needs the tampered record as stored.
A re-export is byte-identical exceptexported_at; the--outfile is0600. No new
redaction (events are stored already redacted where #137 redacts). Logic in a new top-level
dagentos/export.pyover the core ports (lint-importsstill 3 kept / 0 broken).
tests/test_export_run.py(9), including a round trip that re-folds the file and equals the
live API; ten behaviour mutations caught. E-06:SECURITY.mdanddocs/TRUST_BOUNDARY.mdnow
say plainly thatexecute_coderuns with the worker's privileges — atoolsubprocess shares
the worker's uid, filesystem and network and can reach the DSN; the ACP agent process inherits
the worker's whole environment — and what an operator should do meanwhile.agentos archive(#153; E-08 second half) — retention without erasure.agentos archive --older-than <N>m|h|d|w --out DIR [--status completed,failed,cancelled] [--include-blobs] [--dry-run | --yes](dry run is the default). Candidates come from the run index; the index
only picks, the fold decides: each run is re-read, its chain and seals judged asagentos verifyjudges them, and folded — a run the fold does not call terminal is skipped asindex drift. Export-then-purge, in that order:write_runtoDIR/<run_id>.jsonl.part(0600),
fsync, read back as an auditor would (every line parses, seqs 1..n, summary agrees), rename,
fsync the directory; then — only ifchain.verified—Store.purge_run(run_id, expected_seq=n, blobs=…)removes events, snapshot, queue and lease rows and the run row in one
transaction, refused withConflictErrorif the log's last seq moved (a retry appended since).
An unverified chain is exported, kept, and exits 1: the store never destroys the only
evidence of a tampering. A blob is deleted only if no remaining run's stored record contains
its sha256 (checked inside the purge transaction).DIR/ARCHIVE.jsonlis an append-only,
fsynced manifest with one row per exported run (file,sha256,bytes,events,
status,chain_verified,purged,blobs_removed). Afterwards the run is gone from
GET /runs,counts,verify --allanddoctor; the export file is the record and re-folds
to the pre-purgeGET /runs/{id}.docs/REPLAY.mdstates the boundary: this is retention, not
erasure — the file holds every event; true erasure is A7 crypto-shredding, still open. Three
FAIL_MODES rows (88 → 91);tests/test_archive_runs.py(19 collected) and three contract cases
per adapter.- Function calling on
openai-compat(#148, #154; A8 / E-17) — the plain OpenAI-wire
provider (Ollama, vLLM, LM Studio, OpenRouter, OpenAI) had no tool round trip; operator tools
worked only through the two SDK harnesses. Agentconfiggainstools(registered names),
tool_choiceandmax_tool_rounds(default 4). Offer:ToolRegistry.select(config.tools, declared_effects)— the rule both harnesses apply — sends only tools whose effect class the
step declared, as OpenAItoolswith a JSON Schema from the function's annotated signature.
Check before anything runs: a call to a tool that was not offered (undeclared class or
unregistered name) or whose arguments fail validation is rejected: the function never runs,
the record saysrejected: true, the refusal goes back as that call'srole: toolresult so
the model can still answer or retry. Return as data: an executed tool's result goes back
wrapped in<input name="tool.NAME">…</input>viawrap_inputunder the existing
DATA_BOUNDARY(C12). Bounded: pastmax_tool_rounds, or on a tool that raises, the step
fails withToolErrornaming the cap or the tool. Recorded like the harnesses:
output.tool_calls[]{name, call_id, arguments_sha256, output_sha256[, rejected]},
tools_offered,tools_withheld,turns, usage summed across rounds and priced once;
effects arecomputeplus one per distinct offered tool called, so_settlenever sees an
undeclared class from a refusal. One AgentOS step is still onestep.completed; no store, port
or API change. A live run onllama3.2:3bfound the model pasting the<input>tags into the
tool argument on 6 of 10 topics; one sentence appended to the system prompt only when tools are
offered (TOOL_NOTE) brings clean calls to 8/10. #154 added the one fixture recorded from a
real model —tool_round_trip_live.jsonfrom Ollamaqwen2.5:1.5b(qwen2.5:0.5bnever emits
atool_callsentry: 0/3) — and the nightlyprovider-livejob now pulls a second model
(model_tools, defaultqwen2.5:1.5b), runs the tool path live against it
(AGENTOS_LIVE_TOOLS=1 pytest -k live_tool) and re-records that cassette into the run's
artifact. 15 tests inproviders/openai-compat/tests/test_openai_compat_tools.pyincl. a parity
test against the pydantic-ai harness on the same trajectory and one that runs the
docs/quickstart-llm.mdtool agent as written; 11 behaviour mutations caught.
openai-compat suite 18 → 34. - Property and chaos tests (#152; E-12) — tests only.
tests/property/(Hypothesis,dev
extra only;max_examples=50,deadline=None,derandomize=True,database=None;
AGENTOS_PROPERTY_EXAMPLES=Nto explore): a shared strategy draws 1–6-node DAGs, retry
policies, parallelism, scripted executor failures and an operator interleaving drawn per state
(advance / pause / cancel / resume / approve / reject / retry). Six properties: for every k,
GET /runs/{id}?at=k == fold(events[:k])andfold_from(fold(events[:k]), events[k:]) == fold(events), plus the snapshot path and the five chaos-plan invariants; one record edited,
inserted or removed anywhere →FoldError; 1–16 run starts with five keys or none → same key
same run, no phantom run, onerun.startedper run; topological order independent of listing
order, a back-edge ring or dangling dependency →ValueErrornaming it. ~1300 examples across
four seeds, no engine defect; five engine mutations all caught.tests/chaos/network/
scenarios 2–5 (Toxiproxy, CI'schaos-networkjob): a partition atbefore_/
after_effect_commitwhile worker A is inside a step (A ends in a transport error, B resumes
via the sweep, exactly onestep.completedper step, the log read through the healed proxy is
byte-identical); 200 ms latency under fan-out (branches overlap, fan-in sees all three
outputs); a partition just before / after the real API'sPOST …/approveappend (retry after
heal is 202 or 409is granted, exactly oneapproval.granted); a real worker process killed
mid-fan-out withAGENTOS_FAULT=after_effect_commit:n2and a second process on the direct link
completing it (n2 replayed never re-run, n3/n4 re-attempted once). Scenarios 2–4 passed on the
first real run; scenario 5 needed one timing fix in the test (a 1 s lease outlasted by three
serialized appends — the A5 lease-loss path doing its job).
Dependencies (#130, #144, #147)
@testing-library/user-event 14.6.8 → 14.6.10 and vite to 8.3.8 (#130, npm minor/patch group,
dev only), actions/upload-artifact 7.0.1 → 7.0.2 (#144, SHA re-pinned), python:3.12-slim
digest 2f17fc0 → 5e2bdb1 (#147, the first bump from the new docker ecosystem). hypothesis>=6
and mypy>=1.13 join the dev extra; the openai-compat provider now lists pydantic>=2.6
directly (it imports it; the core already pins it, so the image constraints already covered it).
Core runtime dependencies are unchanged (three).
Operator notes
- Two migrations run on first start. Migration 3 creates
scheduler_state(instant).
Migration 4 adds four columns and two indexes torunsand then backfills the index for
every existing run, one short transaction per run, before the process serves — time grows
with the number of runs in the store (each run is folded once). Both dialects are safe to
re-run: SQLite applies each migration with its ledger row in oneBEGIN IMMEDIATE
transaction (a second process starting at the same time waits, then finds the ledger row);
Postgres usesADD COLUMN IF NOT EXISTS. On a large store, start one process first so the
backfill runs once. Rebuild the index at any time:UPDATE runs SET indexed_seq = NULL, then
restart. - New CLI surface:
agentos pause --all | resume --all | pause --status, `agentos init `, `agentos run `, `agentos export-run`, `agentos archive`. All read the store from the environment like `verify` and `doctor`. `archive` is dry-run by default and needs `--yes` to purge; a cron job around it is the operator's. - New API surface:
GET /scheduler(read-only; 405 on every write verb; 503
{"paused": true, "store": "<ExceptionClass>"}on a store fault, like/ready).
GET /runs?status=&workflow=&cursor=&limit=withnext_cursorandcountsin the response
andupdated_atper item.?limitalone behaves as before. - Pause semantics: while paused, nothing is pulled, re-enqueued or dispatched and approval
expiry does not tick; in-flight steps finish and their wave is recorded; runs stayrunning.
A store fault reads as paused. Un-pausing takes store access (the CLI), never the API. - Tool output is now redacted where a
${NAME}value comes back ([REDACTED:NAME],
output.redactions), and cut atmax_byteswhile streaming; stderr is kept as a 64 KiB tail.
Steps that substitute nothing are byte-for-byte as before. - Unchanged from
v0.17.0: the asserted-mode tool deny (POST /agentsrefuses subprocess /
${NAME}/ private-networktoolagents withoutAGENTOS_ASSERTED_ALLOW_UNSAFE_TOOLS=1),
127.0.0.1binds in the Dockerfile example and compose, every environment variable. No new
runtime environment variable in this release (AGENTOS_PROPERTY_EXAMPLESand
AGENTOS_LIVE_TOOLSare test-only). - CI and image: the
auditjob's blockingnpm auditnow covers production dependencies
only (--omit=dev); the dev tree is audited as a warning (today: picomatch
GHSA-fc5q-39xc-vjpf, no fix published). The image installs every third-party distribution from
deploy/constraints.txtwith--require-hashes; refresh it (python scripts/refresh_constraints.py) after Dependabotpipmerges —--checksays whether it is
stale. A newtypecheckjob fails only on a mypy error not inmypy-baseline.txt. The
nightly pullsqwen2.5:1.5bas well asqwen2.5:0.5band fails closed if Ollama's installer
changes. - Retention is not erasure.
agentos archivemoves rows out of the store into a0600file
that still holds every event (and every blob with--include-blobs); A7 crypto-shredding is
still open.
Install
pip install "dagentos[providerkit]" agentos-provider-openai-compat
uvicorn dagentos.api.main:app && open http://localhost:8000/ui/
docker run --rm -p 127.0.0.1:8000:8000 ghcr.io/amitsinghom/agentos:0.18.0Or, without a server: pip install dagentos && agentos init demo && cd demo && agentos run workflow.json --agents agent.json.
All six distributions — dagentos and agentos-provider-{openai-compat,anthropic,openai-agents,pydantic-ai,acp}
— publish from this tag's run at 0.18.0. Every wheel and the image carry Sigstore-signed
provenance; docs/RELEASING.md shows how to verify.
Events and API
No new event types; golden logs unchanged (tests/golden/, and now
tests/property/test_fold_determinism.py over random logs). SchedulerState is a store record,
not an event. New route GET /scheduler (read-only). GET /runs gains status, workflow and
cursor query parameters (limit existed) and next_cursor, counts, per-item updated_at in the
response. Store port: get_scheduler_state / set_scheduler_state (#138), list_runs /
run_status_counts (#151), purge_run (#153). Migrations 3 and 4. tool executor output may
carry redactions. openai-compat step.completed output may carry tool_calls,
tools_offered, tools_withheld, turns when config.tools is set.
Still open
Listed with their phase anchors in ROADMAP.md "Open items (as of 2026-11-18)": MCP / A2A
adapters (A8, the protocols/ half), SSO-backed approver identity, the Ed25519 signer through
the seal seam, a sandbox around the tool subprocess and the sensitive-path check, mid-step
suspension (SDK needs_approval, ACP session/load), A7 KeyStore + crypto-shredding erasure,
the general pre-append redaction pass, agentos snapshot, token-level streaming, the filesystem
BlobStore, D10 OpenAPI client codegen. The reviews that ordered earlier releases are in
docs/reviews/; the 2026-11-12 audit itself stays outside the repository.
Numbers
Measured in a Python 3.13.12 venv with every provider installed (pytest --collect-only -q):
tests/ 626 → 792 collected (618 → 778 outside tests/chaos; tests/chaos 8 → 14, of which
tests/chaos/network 8; tests/property 6 new); provider suites 116 → 132 (acp 43, anthropic 16,
openai-agents 14, openai-compat 18 → 34, pydantic-ai 25); tests + providers together 742 → 924.
Local gate on this release's tree: pytest -q --ignore=tests/chaos 905 passed, 5 skipped (one
skip is the opt-in live tool test). docs/FAIL_MODES.md 80 → 91 rows. mypy-baseline.txt 40
lines; deploy/constraints.txt 70 pins. UI tests 99 → 105 (13 files, vitest run). UI bundle
325.34 → 327.13 kB minified (CSS 21.57 kB, unchanged); precompressed siblings 346,920 → 348,713 B
raw, 91,704 → 92,194 B brotli (74 % smaller), 105,987 → 106,535 B gzip. npm audit --omit=dev
reports zero vulnerabilities; the full tree reports picomatch (dev only, no fix published).
v0.18.0 — Hardening, operability, run index, archive, function calling
Seventy-five commits and twenty-one merged pull requests since v0.17.1, all of them ordered by
the repository audit of 2026-11-12 (kept outside the repository; rows are cited by id, I-… for
issues and E-… for enhancements) and landed in three waves. Wave 1 (#134–#138) closed the
audit's blocker rows: scheduled CI so a dependency drift shows up on main the day it happens,
tool output read under a byte cap instead of into memory, substituted secrets scrubbed from what
the log records, a stream reconnect that no longer mislabels a live run, and a deployment-wide
kill switch. Wave 2 (#139–#146, #150) paid down tooling and supply-chain debt: a real ruff rule
set and a mypy baseline gate, every CI action pinned by commit SHA, an image that installs from
hash-pinned constraints, a documentation drift sweep with four reconstructed ADRs, community files,
and agentos init / agentos run. Wave 3 (#148, #149, #151–#154) added the operability the
audit ranked highest: a rebuildable runs index behind a server-side GET /runs?status=, a run
export an auditor can take away, a retention command that purges only what it has already exported
and verified, a function-calling round trip for the plain OpenAI-compatible provider gated by the
step's declared effect classes, six Hypothesis properties over random logs, and four more Toxiproxy
scenarios. Two migrations (3 and 4), one read-only route (GET /scheduler), three query parameters
on GET /runs, six CLI subcommands and 11 docs/FAIL_MODES.md rows were added. No event type was
added and the golden logs are unchanged. Every row the audit called a blocker is closed; what stays
open is listed at the end and in ROADMAP.md "Open items".
Wave 1 — hardening (audit blockers)
- Scheduled CI on
main, nightly for all five providers (#134; I-11) —ci.ymlgains
schedule: cron "37 4 * * *", and itsconcurrency.groupnow includesgithub.event_nameso
a scheduled run and a push tomaincannot cancel each other (both resolved to
refs/heads/mainbefore). Every job runs on the schedule, including the fresh 3.11 + 3.14
resolve, so a floor drift like the pydantic-ai 2.60 break that stayed invisible for three weeks
beforev0.17.0now fails onmainwithin a day.provider-live.ymlgets
permissions: contents: read, installs the same five providers as thetestjob (acp was
missing) and replays all five suites (pytest -q providers tests/test_quickstart_llm.py).
Pinned bytests/test_packaging.py::test_main_is_checked_daily_and_the_nightly_replays_every_provider. - Five small hardening rows (#136; I-10, I-15, I-18, I-16/I-37, I-42) — (1) a worker thread
that dies mid-test now fails the test:pyproject.tomlsets
filterwarnings = ["error::pytest.PytestUnhandledThreadExceptionWarning"], which exposed one
test appending an unchained cancel "as the API would" (the real API chains through
engine._emit; the test now callsrequest_cancel). (2)agentos.dbis created0600:
SqliteStoreopens a not-yet-existing plain path withos.open(O_CREAT | O_RDWR, 0o600)before
sqlite3.connect, and SQLite copies that mode onto the-wal/-shmsidecars
(tests/test_store_typed_and_bounded.py::test_sqlite_file_is_created_owner_only). (3)
AGENTOS_PG_SCHEMAmust match^[a-z_][a-z0-9_]{0,62}$orstore_from_envrefuses before any
connection, naming the variable and the rule (it is interpolated intoCREATE SCHEMAand
search_path). (4)SECURITY.mdanddocs/TRUST_BOUNDARY.mdstate that/metricsis open and
what its labels carry, and both now list the real open paths (/health,/ready,/metrics,
GET/HEADof/uistatic files, the self-authenticated/triggers/webhooks/*). (5) the
image installs the acp provider wheel (Dockerfilehad four of five);
tests/test_packaging.py::test_dockerfile_installs_every_provider_wheelderives the set from
providers/*/pyproject.toml. - Tool executor: streaming byte caps and redaction (#137; I-08, I-14) —
max_bytes(default
1 MiB) was checked after the whole body was in memory. Now the http path usesc.stream()+
iter_bytes()with a running counter (after decompression, so a compressed body cannot slip
under the cap) and abandons the body at the cap; the subprocess path replacescommunicate()
with aselectorspump that writes stdin as the pipe drains, reads stdout in 64 KiB chunks,
keeps stderr as a 64 KiB tail (it was unbounded too) andkillpgs the group past the cap. A
hostile endpoint or program can no longer push gigabytes into the worker, or into the API
process under?sync=true. Redaction: every value_substitutefills in for a${NAME}
reference in this step'sheaders/env(values of 8+ characters) becomes[REDACTED:NAME]
in the recorded body/JSON/headers, the stderr tail, the error text andprogress()notes;
output.redactionslists the names removed so replay stays deterministic and an auditor sees
that something is missing. The outgoing request still carries the real value. A step that
substitutes nothing records output verbatim with noredactionskey, so existing runs replay
unchanged. Known limits in the module docstring: values under 8 chars and secrets that come
back transformed (encoded, JSON-escaped, split across the tail boundary); the general
pre-append pass stays ROADMAP row 7. Five FAIL_MODES rows (one amended, four new), pinned in
tests/test_tool_agent.py(test_http_body_over_cap_is_refused_while_streaming_and_memory_stays_bounded,
test_subprocess_endless_stdout_is_cut_at_the_cap_not_at_the_timeout,
test_http_output_and_error_text_redact_the_substituted_header_value,
test_subprocess_output_redacts_the_substituted_env_value,
test_steps_without_env_references_record_output_unchanged). - UI stream reconnect (#135; I-09 / D6) — after the server closed the SSE stream at its
maximum duration,RunGraph.tsxdid onerefetch(), andrefetchreturnsnullon any
error, so one transient 5xx at that boundary set the chip toclosedon a run that was still
running. Anullrefetch is now a stream error: it counts towardMAX_CONSECUTIVE_ERRORS,
backs off and retries; only a terminal status from the server closes the loop; a frame or a
successful refetch resets the counter. Two vitest cases inui/src/RunGraph.test.tsx(blip
then recovery withLast-Event-ID; every refetch failing → "gave up after 5 attempts", chip
error, neverclosed). UI tests 99 → 101. - Global pause (#138; A12 / E-03) — the incident kill switch.
agentos pause --all [--reason ..] [--principal NAME],agentos resume --all,agentos pause --statuswrite and
read one deployment-wide fact: the newest row of a store-level, append-onlyscheduler_state
history (migration 3, hash-pinned per dialect intests/test_migrations.py;SchedulerState
indagentos/core/events.pysays in its first line that it is not a run event, because the
log is per run and replay must stay per-run deterministic). The engine consults it at every
wave boundary after the per-run control check and before_ready_nodes, so the in-flight wave
is recorded, nothing new starts, and the run staysrunning— the?sync=truepath honours it
too. The worker checks it beforequeue.pulland at the top ofrecover(): no pull, no
re-enqueue, no approval expiry — the deployment is frozen, not drained. A run the engine
stopped mid-advance is pushed straight back on the queue so the first tick afterresume
continues it. Fail-closed: aget_scheduler_state()that raises is treated as paused and
logged with the exception class.GET /scheduleris read-only and bearer-gated; every write
verb is 405, so a stolen API token cannot un-pause an incident (un-pausing takes store access).
Trade-off accepted and documented: the pause history is auditable but not hash-chained or
sealed. Three FAIL_MODES rows (84 → 87);tests/test_global_pause.py(9 tests), a store
contract case for every adapter, migration 3 pinned.
Wave 2 — tooling, supply chain, docs, community
- ruff rule set,
py.typed, mypy baseline gate (#139; I-23, I-24) —[tool.ruff.lint] select = ["E", "F", "B", "BLE", "UP", "I", "RUF100"](ruff had been running its default
E4/E7/E9/F set, so the 27# noqa: BLE001comments were inert). The first run reported 191
findings; 148E501and 8UP042are ignored with a comment saying why (a reflow pass and a
StrEnumbehaviour change, respectively), the rest were fixed by hand or scoped by
per-file-ignores; no control flow changed. Emptypy.typedindagentos/and all five
provider packages (the wheels were declaredTyping :: Typedwithout one).[tool.mypy]
non-strict overdagentos; mypy 2.4.1 reports 40 errors in 14 files, recorded verbatim in
mypy-baseline.txt;scripts/typecheck_gate.pycompares the current output to the baseline
without line numbers (multiset) and exits 1 only on a new error, printed verbatim. A ninth CI
job,typecheck, runs it;tests/test_typecheck_gate.py(12 cases) pins the comparison. - Supply chain (#140, #145; I-22, I-21/E-20) — every
uses:inci.ymland
provider-live.ymlisowner/action@<40-hex> # vN.N.N(checkout 3d3c42e v7.0.1, setup-python
6d4fd22 v7.1.0, setup-node 949feb2 v7.1.0, upload-artifact cf430e0 v7.0.2), the shape
publish.ymlalready used and Dependabot keeps bumping; #145 pinned thetypecheckjob's two
actions after #139 and #140 merged minutes apart and the new lock test went red onmain. The
nightly'scurl … | shOllama installer is downloaded, checked against a recorded sha256
(OLLAMA_INSTALL_SHA256in the step'senv:) and only then run — the day Ollama ships a new
install.shthe nightly fails closed and the hash is re-recorded. The model input reaches the
shell throughenv:only. Reproducible image:deploy/constraints.txtpins 70
third-party distributions pluspip, each with the sha256 of every file PyPI serves,
compiled byscripts/refresh_constraints.pywithuv pip compile --universal --generate-hashes --python-version 3.12(one file for amd64 and arm64); theDockerfile
installs them with--require-hashes, then our own wheels with--no-deps, thenpip check.
--checkreports a stale file..github/dependabot.ymlgains thedockerecosystem, narrowed
by #146 topython:3.12-slimpatch digests (Dependabot had proposed 3.15). Six tests in
tests/test_packaging.py(every workflow pinned, installer verified, Dependabot watches the
base, image installs from constraints and every direct requirement is pinned, refresh is
scripted and documented). - Documentation drift sweep (#141; I-29…I-45, W3-23) —
ROADMAP.mdgains the "Open items"
list at the top (every still-open ⏭ row in one place, each with its phase anchor) and ticks
five rows for work that had shipped;DESIGN.mdgets a current status line and dated
Superseded banners on its Redis-era sections, pointing at the current source rather than
rewriting the prose;docs/DEVELOPMENT_STRUCTURE.mddescribes the real toolchain (pip +
Dependabot groups, no lockfile) and the real test layout;docs/LANDSCAPE.mdis a redacted
public extract of the private landscape note the ROADMAP cited; ADRs 0006–0009
(docs/adr/: core depends on nothing, the log is the API, providers are plugins, queue and
lease are ports) are reconstructed from the ROADMAP's design notes, each naming its enforcing
contract or test;docs/UI.md,docs/TRUST_BOUNDARY.md,docs/triggers.md,
docs/notifications.md, three provider READMEs,docs/RELEASING.mdand.env.example
(AGENTOS_PG_SCHEMA,AGENTOS_LOG,AGENTOS_FAULT) corrected line by line against the code. - Community files, badges,
agentos init/agentos run(#142; I-36, E-04) —
CONTRIBUTING.md(every sentence checked againstci.ymlandpyproject.toml; the test
extracts the install line from the workflow and asserts it appears verbatim), issue forms
(bug_report.ymlasks foragentos doctor --jsonand reminds about redaction;
feature_request.yml;config.ymlwithblank_issues_enabled: false), a PR template that
asks for the red-first and discrimination proof, README badges (CI, PyPI version, Python
versions, MIT) and a/uiscreenshot of the diamond example suspended onpay. The first
five minutes shrink from.env+ two processes + four curls topip install→ `agentos init ` (writes `.env`, `agent.json`, `workflow.json`, a README; refuses a non-empty dir) → `agentos run workflow.json [--agents …] [--input k=v] [--store URL]`, which registers the agents and workflow and drives `Engine.start_run` in-process — the same object the API's `?sync=true` path calls — printing `run : , events`; exit 0 completed, 3 suspended for approval, 1 failed/cancelled, 2 usage error. `tests/test_cli_init.py` (9) and six new locks in `tests/test_repo_hygiene.py`. - npm audit gate scope (#150) — GHSA-fc5q-39xc-vjpf (picomatch ≤ 4.0.7, high) has no patched
release and reachesui/package-lock.jsononly through vite / vitest devDependencies, so the
auditjob was red on every open PR for something that never ships. The blocking step is now
npm audit --audit-level=high --omit=dev(the three runtime deps inui/dist: @dagrejs/dagre,
react, react-dom — 0 vulnerabilities); the full-tree audit still runs and emits a::warning
so the dev-tree state stays visible.SECURITY.mdand the README state the scope.
Wave 3 — operability
- Run index (#151; E-07) — the log is the truth; the new columns are a rebuildable index of
it, and nothing that decides anything reads them. Migration 4 adds toruns:status
(the fold'sRunStatus),pending_approvals(JSON; so anapproval.grantedcan tell whether
it was the last pending one),indexed_seq(the last seq the row reflects, so a row behind its
log is detectable) andupdated_at, with indexes(status, created_at, run_id)and
(created_at, run_id). One pure function,dagentos/core/run_index.py::index_events, mirrors
fold._apply's transitions and every adapter calls it inside the transaction that appends
the events (SQLiteBEGIN IMMEDIATE, Postgres under the run row'sFOR UPDATE), so the row
never disagrees with the fold at a commit boundary. Backfill and catch-up live in
migrate(): after migrations apply, every run whose row is behind its log is re-indexed, one
short transaction per run — on the upgrade that is every run. SQLite migrations became atomic
(ledger read, scripts statement by statement, ledger rows in oneBEGIN IMMEDIATE) because
SQLite has noADD COLUMN IF NOT EXISTS; a current database is only read on open and takes no
write lock. Contract:Store.list_runs(status=, workflow=, cursor=, limit=) -> RunPageand
run_status_counts();GET /runs?status=&workflow=&cursor=&limit=(422 on a bad status, 400
on a foreign cursor) returnsnext_cursorand store-widecounts; the cursor is
(created_at, run_id)— notupdated_at, which a status change bumps and would skip the run
on later pages (mutation M6 showed it). A row whose index disagrees with its fold is left out
of a status filter, never shown under the wrong status.GET /approvalsand the worker sweep
fold only the runs the index lists;agentos doctorgains a read-onlyruns indexrow
("N/N rows agree with the fold"). UI run list: server-side status chips with store-wide counts,
workflow filter, Load more on the cursor. One FAIL_MODES row (87 → 88). Locks:
tests/test_run_index.py(index == fold at every cut point of every golden and seeded log;
backfill of av0.17.1-shaped database; atomic migration re-run; nullingindexed_seq
rebuilds),tests/test_run_index_api.py, five contract cases per adapter, four vitest cases;
11 targeted mutations all caught. agentos export-run(#149; A11 / E-08, E-06) —agentos export-run (--run ID | --all) --format jsonl [--out PATH|-] [--include-blobs]writes one run (or every run, one stream,
oldest first) as JSON Lines: a header
({"kind":"agentos.export","version":1,"run_id","exported_at","chain":{verified,sealed_through,seals,error}}),
every event in seq order exactly asGET /runs/{id}/eventsreturns it (hashes included, canonical
lines: sorted keys, compact, ASCII — the same serializationevent_hashhashes, so a reader
re-verifies the chain with stdlibjson+hashlib), one{"kind":"blob",…}line per
referenced blob with--include-blobs(a missing blob is a marked line, not a gap), and a
summary fromfold(). A failed chain exits 1 and the run is still exported, header
verified: false, summarystatus: null: the auditor needs the tampered record as stored.
A re-export is byte-identical exceptexported_at; the--outfile is0600. No new
redaction (events are stored already redacted where #137 redacts). Logic in a new top-level
dagentos/export.pyover the core ports (lint-importsstill 3 kept / 0 broken).
tests/test_export_run.py(9), including a round trip that re-folds the file and equals the
live API; ten behaviour mutations caught. E-06:SECURITY.mdanddocs/TRUST_BOUNDARY.mdnow
say plainly thatexecute_coderuns with the worker's privileges — atoolsubprocess shares
the worker's uid, filesystem and network and can reach the DSN; the ACP agent process inherits
the worker's whole environment — and what an operator should do meanwhile.agentos archive(#153; E-08 second half) — retention without erasure.agentos archive --older-than <N>m|h|d|w --out DIR [--status completed,failed,cancelled] [--include-blobs] [--dry-run | --yes](dry run is the default). Candidates come from the run index; the index
only picks, the fold decides: each run is re-read, its chain and seals judged asagentos verifyjudges them, and folded — a run the fold does not call terminal is skipped asindex drift. Export-then-purge, in that order:write_runtoDIR/<run_id>.jsonl.part(0600),
fsync, read back as an auditor would (every line parses, seqs 1..n, summary agrees), rename,
fsync the directory; then — only ifchain.verified—Store.purge_run(run_id, expected_seq=n, blobs=…)removes events, snapshot, queue and lease rows and the run row in one
transaction, refused withConflictErrorif the log's last seq moved (a retry appended since).
An unverified chain is exported, kept, and exits 1: the store never destroys the only
evidence of a tampering. A blob is deleted only if no remaining run's stored record contains
its sha256 (checked inside the purge transaction).DIR/ARCHIVE.jsonlis an append-only,
fsynced manifest with one row per exported run (file,sha256,bytes,events,
status,chain_verified,purged,blobs_removed). Afterwards the run is gone from
GET /runs,counts,verify --allanddoctor; the export file is the record and re-folds
to the pre-purgeGET /runs/{id}.docs/REPLAY.mdstates the boundary: this is retention, not
erasure — the file holds every event; true erasure is A7 crypto-shredding, still open. Three
FAIL_MODES rows (88 → 91);tests/test_archive_runs.py(19 collected) and three contract cases
per adapter.- Function calling on
openai-compat(#148, #154; A8 / E-17) — the plain OpenAI-wire
provider (Ollama, vLLM, LM Studio, OpenRouter, OpenAI) had no tool round trip; operator tools
worked only through the two SDK harnesses. Agentconfiggainstools(registered names),
tool_choiceandmax_tool_rounds(default 4). Offer:ToolRegistry.select(config.tools, declared_effects)— the rule both harnesses apply — sends only tools whose effect class the
step declared, as OpenAItoolswith a JSON Schema from the function's annotated signature.
Check before anything runs: a call to a tool that was not offered (undeclared class or
unregistered name) or whose arguments fail validation is rejected: the function never runs,
the record saysrejected: true, the refusal goes back as that call'srole: toolresult so
the model can still answer or retry. Return as data: an executed tool's result goes back
wrapped in<input name="tool.NAME">…</input>viawrap_inputunder the existing
DATA_BOUNDARY(C12). Bounded: pastmax_tool_rounds, or on a tool that raises, the step
fails withToolErrornaming the cap or the tool. Recorded like the harnesses:
output.tool_calls[]{name, call_id, arguments_sha256, output_sha256[, rejected]},
tools_offered,tools_withheld,turns, usage summed across rounds and priced once;
effects arecomputeplus one per distinct offered tool called, so_settlenever sees an
undeclared class from a refusal. One AgentOS step is still onestep.completed; no store, port
or API change. A live run onllama3.2:3bfound the model pasting the<input>tags into the
tool argument on 6 of 10 topics; one sentence appended to the system prompt only when tools are
offered (TOOL_NOTE) brings clean calls to 8/10. #154 added the one fixture recorded from a
real model —tool_round_trip_live.jsonfrom Ollamaqwen2.5:1.5b(qwen2.5:0.5bnever emits
atool_callsentry: 0/3) — and the nightlyprovider-livejob now pulls a second model
(model_tools, defaultqwen2.5:1.5b), runs the tool path live against it
(AGENTOS_LIVE_TOOLS=1 pytest -k live_tool) and re-records that cassette into the run's
artifact. 15 tests inproviders/openai-compat/tests/test_openai_compat_tools.pyincl. a parity
test against the pydantic-ai harness on the same trajectory and one that runs the
docs/quickstart-llm.mdtool agent as written; 11 behaviour mutations caught.
openai-compat suite 18 → 34. - Property and chaos tests (#152; E-12) — tests only.
tests/property/(Hypothesis,dev
extra only;max_examples=50,deadline=None,derandomize=True,database=None;
AGENTOS_PROPERTY_EXAMPLES=Nto explore): a shared strategy draws 1–6-node DAGs, retry
policies, parallelism, scripted executor failures and an operator interleaving drawn per state
(advance / pause / cancel / resume / approve / reject / retry). Six properties: for every k,
GET /runs/{id}?at=k == fold(events[:k])andfold_from(fold(events[:k]), events[k:]) == fold(events), plus the snapshot path and the five chaos-plan invariants; one record edited,
inserted or removed anywhere →FoldError; 1–16 run starts with five keys or none → same key
same run, no phantom run, onerun.startedper run; topological order independent of listing
order, a back-edge ring or dangling dependency →ValueErrornaming it. ~1300 examples across
four seeds, no engine defect; five engine mutations all caught.tests/chaos/network/
scenarios 2–5 (Toxiproxy, CI'schaos-networkjob): a partition atbefore_/
after_effect_commitwhile worker A is inside a step (A ends in a transport error, B resumes
via the sweep, exactly onestep.completedper step, the log read through the healed proxy is
byte-identical); 200 ms latency under fan-out (branches overlap, fan-in sees all three
outputs); a partition just before / after the real API'sPOST …/approveappend (retry after
heal is 202 or 409is granted, exactly oneapproval.granted); a real worker process killed
mid-fan-out withAGENTOS_FAULT=after_effect_commit:n2and a second process on the direct link
completing it (n2 replayed never re-run, n3/n4 re-attempted once). Scenarios 2–4 passed on the
first real run; scenario 5 needed one timing fix in the test (a 1 s lease outlasted by three
serialized appends — the A5 lease-loss path doing its job).
Dependencies (#130, #144, #147)
@testing-library/user-event 14.6.8 → 14.6.10 and vite to 8.3.8 (#130, npm minor/patch group,
dev only), actions/upload-artifact 7.0.1 → 7.0.2 (#144, SHA re-pinned), python:3.12-slim
digest 2f17fc0 → 5e2bdb1 (#147, the first bump from the new docker ecosystem). hypothesis>=6
and mypy>=1.13 join the dev extra; the openai-compat provider now lists pydantic>=2.6
directly (it imports it; the core already pins it, so the image constraints already covered it).
Core runtime dependencies are unchanged (three).
Operator notes
- Two migrations run on first start. Migration 3 creates
scheduler_state(instant).
Migration 4 adds four columns and two indexes torunsand then backfills the index for
every existing run, one short transaction per run, before the process serves — time grows
with the number of runs in the store (each run is folded once). Both dialects are safe to
re-run: SQLite applies each migration with its ledger row in oneBEGIN IMMEDIATE
transaction (a second process starting at the same time waits, then finds the ledger row);
Postgres usesADD COLUMN IF NOT EXISTS. On a large store, start one process first so the
backfill runs once. Rebuild the index at any time:UPDATE runs SET indexed_seq = NULL, then
restart. - New CLI surface:
agentos pause --all | resume --all | pause --status, `agentos init `, `agentos run `, `agentos export-run`, `agentos archive`. All read the store from the environment like `verify` and `doctor`. `archive` is dry-run by default and needs `--yes` to purge; a cron job around it is the operator's. - New API surface:
GET /scheduler(read-only; 405 on every write verb; 503
{"paused": true, "store": "<ExceptionClass>"}on a store fault, like/ready).
GET /runs?status=&workflow=&cursor=&limit=withnext_cursorandcountsin the response
andupdated_atper item.?limitalone behaves as before. - Pause semantics: while paused, nothing is pulled, re-enqueued or dispatched and approval
expiry does not tick; in-flight steps finish and their wave is recorded; runs stayrunning.
A store fault reads as paused. Un-pausing takes store access (the CLI), never the API. - Tool output is now redacted where a
${NAME}value comes back ([REDACTED:NAME],
output.redactions), and cut atmax_byteswhile streaming; stderr is kept as a 64 KiB tail.
Steps that substitute nothing are byte-for-byte as before. - Unchanged from
v0.17.0: the asserted-mode tool deny (POST /agentsrefuses subprocess /
${NAME}/ private-networktoolagents withoutAGENTOS_ASSERTED_ALLOW_UNSAFE_TOOLS=1),
127.0.0.1binds in the Dockerfile example and compose, every environment variable. No new
runtime environment variable in this release (AGENTOS_PROPERTY_EXAMPLESand
AGENTOS_LIVE_TOOLSare test-only). - CI and image: the
auditjob's blockingnpm auditnow covers production dependencies
only (--omit=dev); the dev tree is audited as a warning (today: picomatch
GHSA-fc5q-39xc-vjpf, no fix published). The image installs every third-party distribution from
deploy/constraints.txtwith--require-hashes; refresh it (python scripts/refresh_constraints.py) after Dependabotpipmerges —--checksays whether it is
stale. A newtypecheckjob fails only on a mypy error not inmypy-baseline.txt. The
nightly pullsqwen2.5:1.5bas well asqwen2.5:0.5band fails closed if Ollama's installer
changes. - Retention is not erasure.
agentos archivemoves rows out of the store into a0600file
that still holds every event (and every blob with--include-blobs); A7 crypto-shredding is
still open.
Install
pip install "dagentos[providerkit]" agentos-provider-openai-compat
uvicorn dagentos.api.main:app && open http://localhost:8000/ui/
docker run --rm -p 127.0.0.1:8000:8000 ghcr.io/amitsinghom/agentos:0.18.0Or, without a server: pip install dagentos && agentos init demo && cd demo && agentos run workflow.json --agents agent.json.
All six distributions — dagentos and agentos-provider-{openai-compat,anthropic,openai-agents,pydantic-ai,acp}
— publish from this tag's run at 0.18.0. Every wheel and the image carry Sigstore-signed
provenance; docs/RELEASING.md shows how to verify.
Events and API
No new event types; golden logs unchanged (tests/golden/, and now
tests/property/test_fold_determinism.py over random logs). SchedulerState is a store record,
not an event. New route GET /scheduler (read-only). GET /runs gains status, workflow and
cursor query parameters (limit existed) and next_cursor, counts, per-item updated_at in the
response. Store port: get_scheduler_state / set_scheduler_state (#138), list_runs /
run_status_counts (#151), purge_run (#153). Migrations 3 and 4. tool executor output may
carry redactions. openai-compat step.completed output may carry tool_calls,
tools_offered, tools_withheld, turns when config.tools is set.
Still open
Listed with their phase anchors in ROADMAP.md "Open items (as of 2026-11-18)": MCP / A2A
adapters (A8, the protocols/ half), SSO-backed approver identity, the Ed25519 signer through
the seal seam, a sandbox around the tool subprocess and the sensitive-path check, mid-step
suspension (SDK needs_approval, ACP session/load), A7 KeyStore + crypto-shredding erasure,
the general pre-append redaction pass, agentos snapshot, token-level streaming, the filesystem
BlobStore, D10 OpenAPI client codegen. The reviews that ordered earlier releases are in
docs/reviews/; the 2026-11-12 audit itself stays outside the repository.
Numbers
Measured in a Python 3.13.12 venv with every provider installed (pytest --collect-only -q):
tests/ 626 → 792 collected (618 → 778 outside tests/chaos; tests/chaos 8 → 14, of which
tests/chaos/network 8; tests/property 6 new); provider suites 116 → 132 (acp 43, anthropic 16,
openai-agents 14, openai-compat 18 → 34, pydantic-ai 25); tests + providers together 742 → 924.
Local gate on this release's tree: pytest -q --ignore=tests/chaos 905 passed, 5 skipped (one
skip is the opt-in live tool test). docs/FAIL_MODES.md 80 → 91 rows. mypy-baseline.txt 40
lines; deploy/constraints.txt 70 pins. UI tests 99 → 105 (13 files, vitest run). UI bundle
325.34 → 327.13 kB minified (CSS 21.57 kB, unchanged); precompressed siblings 346,920 → 348,713 B
raw, 91,704 → 92,194 B brotli (74 % smaller), 105,987 → 106,535 B gzip. npm audit --omit=dev
reports zero vulnerabilities; the full tree reports picomatch (dev only, no fix published).