Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Tested end to end

Unit tests with a scripted model are fast, and they can lie. Before the end-to-end suite, every online test used a scripted transport, so a tool-call failure with one real provider shipped without any test noticing. The suite is the answer: agents and workflows built only through the public API, the macros and the builders, run against real systems, with nothing mocked.

Note

The suite shipped in 0.4.0. The links below point at its source at v0.4.0. No page here claims a pass that a CI run has not shown.

What it covers

Each test is one row of a feature matrix, online or offline. The online rows run on a real Anthropic model; the OpenAI and Gemini rows are skipped until keys are added. The offline rows run on a real GGUF model through llama.cpp.

FeatureTests
Agents, personas and toolsagents.rs: macro agent, builder persona, tool calls, evals, memory, knowledge, tracing, route policy, inline law, graph pipeline
Kill and resumedurable.rs: a killed worker process, online and on a local model
Spend limitsspend.rs: a run cap and a shared scope cap stop the call before it is made
Offline and on-deviceoffline.rs: local agent, private agent, fallback to local, local knowledge, catalog download
Graphsengine.rs: branches, routes, setup errors, persona directories
Workflowsworkflow.rs: an approval that pauses and resumes in a new process, online and on a local model, and a budget pause that finishes after raise_budget
Local twinstwins.rs: agents on a local GGUF model: evals, start and resume, inline law, persona file, events, closure tool, memory, tracing, graph stream
Search, web tools, encryptionretrieval.rs, tools.rs, cipher.rs
Errors and safetyfeatures.rs: turn limit on an endless tool loop, a wrong API key that never shows the key, a trace that never holds the key

The workflow runs on release pull requests and nightly, on GitHub-hosted runners, and also runs every example whose API key and model are set. The Rust suite has a hard cap of 5 US dollars per workflow run, and 0.20 US dollars per agent run, enforced by troupekit's own spend limits on one SQLite ledger. The support_agent example and the Python and Kotlin rows spend outside that ledger, under their own limits (harness.rs). The suite tests the spend limits by living under them.

What it does not cover yet

The suite names its own gaps. One test is skipped with a reason in the code: the reported cost of an offline routed run (skipped for a billing bug that 0.4.0 fixes; the test is not turned back on yet). A generated "Tested end to end" page, built in CI from the suite's own results file so it cannot claim a pass that did not happen, is planned.