Repository navigation
arci check-attacks reads attack results that another tool has already run and graded, and checks the mean attack success rate over a fixed list of cases against a limit you set: PASS, BLOCK, INCONCLUSIVE or ERROR. It finds no attacks and runs nothing, and a PASS never means the agent is safe.
pip install "agent-reliability-ci==3.6.0"The recipe has a small example to paste and run.
- New command
arci check-attacks RULE --runs FILE... --out DIR: a verdict on a fixed list of
attack cases (for example prompt-injection cases from a benchmark) from repeated runs that
another tool ran and graded. It answers PASS when the labels cross the rule's threshold for a
mean attack success rate below the margin, BLOCK when they cross the one for a rate above it,
INCONCLUSIVE or ERROR, with exit codes 0, 1, 2 and 3 and a look after each complete round
through the statistical stop.
That is a statement about the rate, with the rule's error bound, only for a rule fixed before
the runs and under the stated conditions. For a complete input inventory, the report lists
every case labelledfail, with its file and row; an incomplete inventory shows only
validated rows. Recipe - No new statistics. The command writes a constant reference arm (every case resisted in
every round) and calls the imported-outcomes rule unchanged with that reference as the
baseline. For PASS, BLOCK or INCONCLUSIVE,arci verdictreproducesdecision.jsonbyte for
byte with the same rule,--previous, file bytes, recorded path spellings and order, and
platform line endings. Use--format auto, or--format jsonlfor JSONL runs under another
extension. Replay requires that the parser accept those spellings in their recorded argument
positions and that the argument list fit the host's execution limit. The rule format staysarci-outcomes/1.
Statistical contract - Explicit labels only, and stricter inputs than
arci verdict. The command reads CSV and
JSONL, where every case-run carries a literal outcome:pass,failorerror. It does not
interpret JUnit results, Inspect scores or execution status, so those files are refused. It
answers ERROR for the same run file given twice (under any spelling or link), for a round with
a registered case missing, for an input that lies inside the output directory, and for one of
its own reference files given as a run: every reference row carries the field
arci_reference. The output directory is filled in one step after every file is written.
With a rule not declaredfixed_before_runs, the report of a PASS or BLOCK says at which round
the threshold was crossed on the supplied labels and claims no error bound. - Gating a defence change needs no new command: the recipe compares the old and the new
defence witharci verdicttwice, on the attack cases and on normal tasks, and requires both
to PASS. - Compatibility. Apart from the version number they print, every other command behaves as
in 3.5.0, and the readersarci verdictandcheck-changeuse are unchanged. - Known limits. The command finds no attacks and runs nothing: it reads labels another tool
produced and cannot verify that a run happened. It judges the mean over the listed cases, so
one case can succeed every time inside a PASS; the report lists such cases. Attacks outside
the list and an attacker who adapts are outside the claim, and a PASS never means the agent is
safe. There is no planner, HTML report or packaged example for it. Resume and parallel
launches, named for 3.6 in the 3.5.0 record, are not in this release.
Release record - Studies. Two studies registered before they ran used the command on AgentDojo's banking
suite with one local model and a simulated bank. Inject-0: BLOCK at round 1 against a limit of
10%, the benchmark's grader crediting the attacker's goal in 79 of 108 case-runs; 19 of the 29
other runs had a reply cut off at the length cap. Inject-1 compared one built-in defence with
none: the defence passed both 10-point "not worse" rules, with one clean task falling from 6
of 6 to 2 of 6 inside that PASS; a cut of more than 10 points stayed INCONCLUSIVE after two
rounds; and the defended agent was still BLOCKed against the 10% limit (credited in 158 of 216
runs without the defence and 155 of 216 with it; 74 undefended runs ended at the length cap
against 3 defended ones). AgentDojo-3 repeated the real-commit
comparison: PASS at round 6 with fresh servers, no verdict in 20 rounds on a shared server.
All three are listed in docs/STUDIES.md at the commits that hold them.
Changelog: v3.6.0 · Design record: 0028 · PyPI: realornoise, agent-reliability-ci
SHA-256 of the files on PyPI:
00d5071a82b25c10385d0100940212f4a375ac172fd1e839dd45a2923663cf99(agent-reliability-ci wheel)5c592d220a8bfe902fb1ca9c978e7f01e6e787d63571ae2a8ecb432711df22af(agent-reliability-ci sdist)20642aba1c51b9aab5468abf30746da58b3c781f7a9c5b1580c2d91f6ef1b17f(realornoise wheel)736e6c0f8b1da2e3666aaae463e0f8d74250a4ac3a20b6d5abaa15cef299892a(realornoise sdist)