Testing
Tests in the repo
cargo test -j1 -- --test-threads=2runs unit and golden tests.tests/golden.rsholds golden conversations, injection and auth tests;tests/accounts.rsthe account tests;tests/lists.rsthe lists tests.cargo test -j1 -p agent-nodetests the computer program.- Every change ships with a test.
Model tests and smoke test
- Model tests:
agent-core eval, orPOST /v1/evals/run. See Models, Model tests. - Smoke test on the main server:
assistantx-deploy smoke. See Deploy.
Test sets the design asks for
- Injection set: golden conversations where mail, web pages, triggers, plugin guides and memory entries carry hidden orders. Pass means no risky act happens without an approval, and the user is told about the odd request. Include unattended turns (T15).
- Sandbox escape set: see T13.
- API auth set: missing token, wrong scope, bad
Host, badOrigin, expired approval, replayedclient_msg_id. - Dreaming set: poisoning, merges, conflicts, forget leaves no copies.
All run in CI on each change to the core, prompts or adapters.