Repository navigation
agent-crashtest 0.3.1: the Action runs both scenarios, honest PASS reports, quieter output
LatestA patch release. No verdict, checker or contract change, and no change of result or exit code for any run: every trial is still judged from the sink's rows by crashtest.checker (the verdict-property tests check every case).
From a maintainer-side test run of v0.3.0 (not counted as an independent tester report):
- The Action takes a
scenarioinput:refunds(the default, unchanged),refunds-cut-before-request, orall. Withallit runs both scenarios one after the other; itsresultis the worst of the two, itsexit-codethe most serious, andjunit-filelists both reports. CI shows why it matters: a test agent that reports "done" after an error passesrefundsalone and fails withall. - A PASS that never sent an idempotency key says so. When no request in any trial carried a key, the report's recommended-fix section carries a caveat instead of "nothing to fix". In the refunds scenario: the agent avoided the duplicate some other way (for example a lookup), which can race with a commit in a real system. In the cut scenario: nothing was committed before the retry. The caveat is in all four formats (
caveatsin JSON, acaveatproperty in JUnit). crashtest selftest's passing line no longer says your agent's result "can be trusted". It now says the harness's counts are reliable on this machine, and that a PASS covers only the scenario.- The connection cut no longer prints a traceback. In
refunds-cut-before-requestthe refund MCP server used to log a fullClientDisconnecttraceback ("Exception in ASGI application") on every trial, which read like a crash. It now logs one line: the client disconnected before its request was read, and no tool was called. Other errors keep their traceback.
Also:
crashtest --versionprints the installed version.- Reports say what ran the test: the JSON report has
report_schema(the layout's version; keys are only added within a version) andenvironment(the agent-crashtest,mcpand Python versions, the OS, its release and the machine type), and the JUnit report has the same asenv_*properties. No host name, user name, path or environment variable is recorded. The text and Markdown reports are unchanged. - A stack file left by a killed
crashtest serveis cleaned up.servenow records its process ID in.crashtest-stack.json; when a later command finds that the process is gone, it removes the file and says so on stderr, instead of using URLs that point at nothing. - CI runs the full test suite on Windows and macOS, not only on Ubuntu.
- Docs: a status lookup before retrying (
check_refund_status) is no longer presented as equal to an idempotency key; the README,docs/scenarios.md,docs/connect-your-client.mdand the example say it can race in a real system. The README's limitations say what a PASS does and does not show, and that the full suite runs in CI on all three systems. - New: a Tester report issue form for sharing any result, pass or fail: self-test only or a completed run, both scenarios' results, setup, MCP client or framework, full output, suggestions, and permission to quote.
- New:
CODE_OF_CONDUCT.md(Contributor Covenant 2.1), a pull-request template, docs/testing.md, docs/RELEASING.md and docs/decisions.md.CONTRIBUTING.md's good first issues are brought up to date. - For maintainers:
tools/triage_report.pyreads the issues labelledtester-reportand prints the tracker, applying the counting rules and checking that the pasted output supports the chosen result..github/workflows/reproduce.yml(started by hand) installs a release on a chosen OS and Python version and runs the self-tests and both example agents. Neither posts, labels or closes anything; see docs/testing.md.
Compatibility. Nothing is removed and no default changes. If you parse output:
crashtest selftest's passing line has new wording (exit code 0, as before).- A PASS report's recommended-fix section can show the caveat where it said "nothing to fix in this scenario" (text and Markdown).
- The JSON report has a new
caveatskey (a list, empty unless the caveat applies) under the samereport_schema; keys are only ever added within a schema version. - JUnit reports can carry a new
caveatproperty.
Install
pip install "agent-crashtest[local] @ git+https://github.com/munendra07-tech/agent-crashtest@v0.3.1"
crashtest selftestUpgrade from 0.3.0
Install the same way, with @v0.3.1. Nothing to change in your setup: commands, defaults, results and exit codes are as in 0.3.0. In the GitHub Action, change @v0.3.0 to @v0.3.1 and add scenario: all to run both scenarios.