agent-reliability-ci 2.0.0__tar.gz → 2.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/CHANGELOG.md +52 -1
  2. agent_reliability_ci-2.2.0/NOTICE +48 -0
  3. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/PKG-INFO +153 -47
  4. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/README.md +150 -45
  5. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/pyproject.toml +8 -2
  6. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/__init__.py +1 -1
  7. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/adapters/langchain.py +3 -1
  8. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/cli.py +306 -2
  9. agent_reliability_ci-2.2.0/src/arci/demo/outcomes/__init__.py +1 -0
  10. agent_reliability_ci-2.2.0/src/arci/demo/outcomes/order-desk-run-1/baseline.csv +97 -0
  11. agent_reliability_ci-2.2.0/src/arci/demo/outcomes/order-desk-run-1/candidate.csv +97 -0
  12. agent_reliability_ci-2.2.0/src/arci/demo/outcomes/order-desk-run-1/rule.yaml +110 -0
  13. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/html_report.py +66 -2
  14. agent_reliability_ci-2.2.0/src/arci/importers/__init__.py +105 -0
  15. agent_reliability_ci-2.2.0/src/arci/importers/inspect_log.py +151 -0
  16. agent_reliability_ci-2.2.0/src/arci/importers/junit.py +57 -0
  17. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/init.py +15 -6
  18. agent_reliability_ci-2.2.0/src/arci/outcome_report.py +296 -0
  19. agent_reliability_ci-2.2.0/src/arci/outcome_schema.py +161 -0
  20. agent_reliability_ci-2.2.0/src/arci/outcomes.py +834 -0
  21. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/report.py +156 -0
  22. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/suite_gate.py +85 -30
  23. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/suite_report.py +3 -1
  24. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/suite_stats.py +10 -3
  25. agent_reliability_ci-2.0.0/NOTICE +0 -9
  26. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/.gitignore +0 -0
  27. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/LICENSE +0 -0
  28. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/__main__.py +0 -0
  29. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/adapters/__init__.py +0 -0
  30. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/contracts.py +0 -0
  31. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/demo/__init__.py +0 -0
  32. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/demo/agents.py +0 -0
  33. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/demo/experiment.py +0 -0
  34. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/demo/run.py +0 -0
  35. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/demo/suite.py +0 -0
  36. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/demo/world.py +0 -0
  37. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/descriptor.py +0 -0
  38. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/diff.py +0 -0
  39. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/fingerprint.py +0 -0
  40. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/gate.py +0 -0
  41. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/grade.py +0 -0
  42. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/hashing.py +0 -0
  43. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/interfaces.py +0 -0
  44. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/mcp_boundary.py +0 -0
  45. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/mcp_shim.py +0 -0
  46. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/mcp_toolset_server.py +0 -0
  47. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/minimize.py +0 -0
  48. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/perturb.py +0 -0
  49. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/planning.py +0 -0
  50. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/py.typed +0 -0
  51. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/reliability.py +0 -0
  52. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/replay.py +0 -0
  53. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/runner.py +0 -0
  54. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/schedule.py +0 -0
  55. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/schema.py +0 -0
  56. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/stats.py +0 -0
  57. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/storage.py +0 -0
  58. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/suite_runner.py +0 -0
  59. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/suite_schedule.py +0 -0
  60. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/suite_schema.py +0 -0
  61. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/suite_storage.py +0 -0
  62. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/toolbox.py +0 -0
  63. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/trace_check.py +0 -0
  64. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/triage.py +0 -0
  65. {agent_reliability_ci-2.0.0 → agent_reliability_ci-2.2.0}/src/arci/worker.py +0 -0
@@ -1,6 +1,57 @@
1
1
  # Changelog
2
2
 
3
- ## Unreleased
3
+ ## v2.2.0 (2026-11-15)
4
+
5
+ - **Added:** `arci verdict`, `arci verdict-rule` and `arci verdict --example`: a baseline-
6
+ against-candidate verdict from pass/fail outcomes another tool already produced (Inspect AI
7
+ JSON logs, JUnit XML, or CSV/JSONL), using ARCI's existing decision rule. `--previous
8
+ DECISION.json` continues an earlier import under the same rule. The rule's required
9
+ `fixed_before_runs` declares whether it was fixed before either arm ran; `verdict-rule`
10
+ always writes `false`, which labels the output a descriptive verdict and withholds the error
11
+ bound. A second console script, `agent-reliability-ci`, shares the entry point. New
12
+ `bench/export_outcomes.py` (the store exporter) and the packaged
13
+ `examples/outcomes/order-desk/` example files. Design record 0015.
14
+ - **Changed:** the suite decision loop was extracted into `walk_rounds`, shared by suites and
15
+ imported outcomes, with no behaviour change to either path.
16
+ - **Not in this release:** reading an Inspect `.eval` file directly, promptfoo, the GitHub
17
+ Action's verdict mode, and HTML output for imported outcomes.
18
+ - **Docs:** `NOTICE` now also names the four files of `examples/guardrail_agent` that
19
+ were taken from frontier-scout and the two datasets whose label names the calibration
20
+ results use, and carries the MIT permission notice for the portions received under that
21
+ licence. The example's README no longer says a section was removed from `policy.json`
22
+ (the file is unchanged). `docs/ROADMAP.md` records v2.0.0 and v2.1.0 and no longer
23
+ presents the earlier candidate list as the plan. The README's Roadmap, Development,
24
+ Availability and GitHub Actions passages describe 2.1.0 instead of 1.0.0, and its limits
25
+ list no longer says an unfired fault goes unreported. `CITATION.cff` gives version 2.1.0.
26
+ No code change.
27
+ - **Docs:** the sealed stores of both runs of the order-desk study are committed under
28
+ `docs/results/order-desk-study/`, with a test that re-derives both decisions from the
29
+ trials. New `docs/PROVENANCE.md`. `docs/COMPATIBILITY.md` gains a section on what 2.x
30
+ added and what is kept stable. The README's "Related tools" names seven more projects.
31
+ No code change.
32
+
33
+ ## v2.1.0 (2026-11-13)
34
+
35
+ - **Added:** tool outcomes in suite reports (Markdown, HTML and the JSON key
36
+ `tool_outcomes`): per arm, how many trials had a recorded tool failure without an
37
+ injection marker and how many of those passed; per tool, trials with and without a
38
+ recorded start. Descriptive only; the record does not show why a call failed.
39
+ - **Fixed:** the LangChain quickstart, run with two different model ids, also removed the
40
+ candidate's retry, so a model comparison mixed two changes. Different ids now keep the
41
+ same retry, prompt and temperature in both arms and label the arms with the model ids at
42
+ registration. Equal ids and the offline demo are unchanged. New recipe
43
+ `docs/recipes/model-swap.md`.
44
+ - **Corrected:** the README said nothing can PASS before about 80 paired runs. That is the
45
+ figure when every pair is a tie (79 at the defaults); pairs in the candidate's favour
46
+ cross sooner. Verdicts are given only at the end of complete rounds.
47
+ - **Docs:** `docs/results/order-desk-study.md` records both pre-registered runs of the
48
+ example on two local models and the correction to run 1's first write-up. New README
49
+ first screen and a "Related tools" section. Design record 0014.
50
+ - **Tests:** one adapter test replaced `ast.literal_eval` for the whole process and failed
51
+ on langchain-core 1.8.0, where set-up reaches that function through `inspect`. The adapter
52
+ now holds its own reference and the test replaces only that. No behaviour change.
53
+ - **Unchanged:** every stored record, v1 (`arci/0.5`) report output (the HTML footer shows
54
+ the new version), the statistics.
4
55
 
5
56
  ## v2.0.0 (2026-11-11)
6
57
 
@@ -0,0 +1,48 @@
1
+ agent-reliability-ci
2
+ Copyright 2026 Ajay Surya Senthilrajan
3
+
4
+ This product includes software adapted from evalopt-graph
5
+ (https://github.com/ajaysurya1221/evalopt-graph), Copyright (c) 2026
6
+ Ajay Surya Senthilrajan, MIT License: the canonical JSON hashing helpers in
7
+ src/arci/hashing.py (from src/evalopt_graph/attestation.py) and the
8
+ self-sealing decision pattern in src/arci/schema.py (from
9
+ src/evalopt_graph/kernel.py).
10
+
11
+ The example in examples/guardrail_agent, which is in the source repository
12
+ and not in the PyPI package, includes four files taken from frontier-scout
13
+ (https://github.com/ajaysurya1221/frontier-scout) at commit 58b0b17 (the
14
+ same content is on its main branch at commit 042bdfd),
15
+ Copyright (c) 2026 Frontier Scout contributors, MIT License: hook_runtime.py
16
+ (frontier_scout/agent_firewall/hook_runtime.py, unchanged below a five-line
17
+ header that says so), policy.json (frontier-scout.policy.json, unchanged),
18
+ commands.jsonl (docs/evaluation/decision-model/commands.jsonl, unchanged)
19
+ and answers.jsonl (docs/evaluation/decision-model/answers.jsonl, unchanged).
20
+ The example's README gives the SHA-256 of each file as it is in
21
+ frontier-scout; for hook_runtime.py that is the hash without the header.
22
+
23
+ The results under docs/results/jev-calibration, which are in the source
24
+ repository and not in the PyPI package, use the intent label names of the
25
+ CLINC150 dataset (Larson et al., 2019) and the Banking77 dataset (Casanueva
26
+ et al., 2020), both CC BY licensed and credited in
27
+ bench/jev_calibration/PROTOCOL.md. The dataset texts are not included.
28
+
29
+ The MIT License, under which the evalopt-graph and frontier-scout portions
30
+ named above were received:
31
+
32
+ Permission is hereby granted, free of charge, to any person obtaining a copy
33
+ of this software and associated documentation files (the "Software"), to deal
34
+ in the Software without restriction, including without limitation the rights
35
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
36
+ copies of the Software, and to permit persons to whom the Software is
37
+ furnished to do so, subject to the following conditions:
38
+
39
+ The above copyright notice and this permission notice shall be included in all
40
+ copies or substantial portions of the Software.
41
+
42
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
43
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
44
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
45
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
46
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
47
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
48
+ SOFTWARE.
@@ -1,16 +1,17 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: agent-reliability-ci
3
- Version: 2.0.0
3
+ Version: 2.2.0
4
4
  Summary: Regression testing for stochastic AI agents: frozen experiments, fault injection, replayable reduced failures.
5
5
  Project-URL: Homepage, https://github.com/ajaysurya1221/agent-reliability-ci
6
6
  Project-URL: Source, https://github.com/ajaysurya1221/agent-reliability-ci
7
7
  Project-URL: Changelog, https://github.com/ajaysurya1221/agent-reliability-ci/blob/main/CHANGELOG.md
8
8
  Project-URL: Issues, https://github.com/ajaysurya1221/agent-reliability-ci/issues
9
9
  Project-URL: Design records, https://github.com/ajaysurya1221/agent-reliability-ci/tree/main/docs/design
10
+ Author: Ajay Surya Senthilrajan
10
11
  License-Expression: Apache-2.0
11
12
  License-File: LICENSE
12
13
  License-File: NOTICE
13
- Keywords: ai-agents,evaluation,fault-injection,reliability,reproducibility,statistics
14
+ Keywords: ai-agents,ci,evaluation,fault-injection,llm,pytest,regression,reliability,reproducibility,statistics,testing
14
15
  Classifier: Development Status :: 4 - Beta
15
16
  Classifier: Intended Audience :: Developers
16
17
  Classifier: Operating System :: POSIX
@@ -30,22 +31,33 @@ Description-Content-Type: text/markdown
30
31
 
31
32
  # Did this change make your agent less reliable?
32
33
 
33
- ARCI (agent-reliability-ci) runs your baseline and candidate repeatedly under the same predeclared
34
- tasks and injected tool faults, grades each run with an independent success check, returns `PASS`,
35
- `BLOCK`, `INCONCLUSIVE` or `ERROR` with an exit code, and can replay a recorded failure offline.
34
+ [![PyPI](https://img.shields.io/pypi/v/agent-reliability-ci)](https://pypi.org/project/agent-reliability-ci/)
36
35
 
37
- Try it without cloning (seeded fixture, no model call):
36
+ You swapped the model, edited the prompt or removed a retry. ARCI (agent-reliability-ci) runs the
37
+ old agent and the new one on the same predeclared tasks, injects tool timeouts, errors and empty
38
+ results, and returns `PASS`, `BLOCK`, `INCONCLUSIVE` or `ERROR` with an exit code. A statistical
39
+ `PASS` or `BLOCK` is wrong at most 2.5% of the time each, at the defaults and under assumptions
40
+ ARCI states and does not check.
41
+
42
+ A LangChain `create_agent` example, offline, no API key:
38
43
 
39
44
  ```bash
40
- uvx --from agent-reliability-ci arci demo
45
+ pip install 'agent-reliability-ci[langchain]'
46
+ mkdir try-arci && cd try-arci && arci init --langchain && arci run arci.yaml
41
47
  ```
42
48
 
43
- Replace these example references with your project's importable Python functions:
44
-
45
- ```bash
46
- uv tool install agent-reliability-ci && arci init checkout-retry --baseline app.v1:run --candidate app.v2:run --toolset tests.world:make_world --oracle tests.world:passed && arci run arci.yaml
49
+ ```text
50
+ VERDICT: BLOCK (exit 1)
51
+ pairs: 96 (192 trials)
52
+ baseline 96/96 passed, candidate 48/96 passed
47
53
  ```
48
54
 
55
+ The candidate is the baseline with one retry removed. Next:
56
+ [swap the model](https://github.com/ajaysurya1221/agent-reliability-ci/blob/main/docs/recipes/model-swap.md) ·
57
+ [your own agent](https://github.com/ajaysurya1221/agent-reliability-ci/blob/main/docs/recipes/langchain.md) ·
58
+ [plain Python functions](#gate-your-own-agent) ·
59
+ no install: `uvx --from agent-reliability-ci arci demo`
60
+
49
61
  `baseline + candidate → same predeclared tasks/faults → repeated trials → verdict → minimise/replay`
50
62
 
51
63
  **PASS means only this:** for this predeclared experiment, the evidence supports that any reliability
@@ -58,14 +70,39 @@ choosing a larger confirmatory run.
58
70
  ARCI observes calls that cross its tool boundary. It is not a sandbox, it does not replay model
59
71
  inference, and trace divergence shows where runs differ, not why.
60
72
 
73
+ ## New in 2.2: a verdict from results another tool produced
74
+
75
+ **Imported outcomes.** `arci verdict` decides a baseline against a candidate from pass/fail
76
+ results another tool already produced (Inspect AI, pytest, or CSV/JSONL), using ARCI's existing
77
+ decision rule; `arci verdict-rule` writes a rule file from those results' task ids. ARCI runs
78
+ nothing on this path: no fault injection, no fault accounting, no replay.
79
+
80
+ ```bash
81
+ uvx --from agent-reliability-ci arci verdict --example
82
+ ```
83
+
84
+ ```text
85
+ Descriptive verdict: the rule file declares it was written after outcomes existed. The error bound is not claimed.
86
+ VERDICT: BLOCK (exit 1)
87
+
88
+ BLOCK threshold crossed
89
+ ```
90
+
91
+ Once installed: `arci verdict --example` (drop the `uvx --from agent-reliability-ci` prefix).
92
+
93
+ A rule written from files that already exist is always labelled a **descriptive verdict** and
94
+ never claims the error bound; claiming the bound needs a rule written and declared
95
+ `fixed_before_runs: true` before either arm ran. See the
96
+ [verdict recipe](https://github.com/ajaysurya1221/agent-reliability-ci/blob/main/docs/recipes/verdict.md).
97
+
61
98
  ## New in 2.0: many tasks, and LangChain agents
62
99
 
63
100
  **Suites.** v1 gates one task under a few fault conditions. A suite registers many tasks by
64
101
  fault conditions and gates the suite average, in rounds, stopping as soon as the evidence
65
102
  decides. A PASS covers the average and can hide a regression in one task, so the per-task
66
- table sits beside every verdict. Nothing can PASS before about 80 paired runs at the
67
- default margin. The statistics and their assumptions are in
68
- [docs/STATISTICS_SUITE.md](docs/STATISTICS_SUITE.md).
103
+ table sits beside every verdict. Verdicts are given only at the end of complete rounds; when every
104
+ pair is a tie, a PASS needs 79 pairs at the default margin. The statistics and their assumptions are in
105
+ [docs/STATISTICS_SUITE.md](https://github.com/ajaysurya1221/agent-reliability-ci/blob/main/docs/STATISTICS_SUITE.md).
69
106
 
70
107
  **LangChain.** If your agent is built with `create_agent`, ARCI can run it behind its tool
71
108
  boundary: you supply your tools, two settings functions and a check.
@@ -77,15 +114,68 @@ mkdir try-arci && cd try-arci && arci init --langchain && arci run arci.yaml
77
114
 
78
115
  That runs a 24-task example offline with a scripted model and ends in `BLOCK`, by
79
116
  construction. To compare real models, see
80
- [examples/langchain_quickstart](examples/langchain_quickstart/README.md) and the
81
- [recipe](docs/recipes/langchain.md).
82
-
83
- **One recorded comparison.** A pre-registered run of that example on two local models
84
- (12B baseline, 4B candidate, temperature 0.7) ended in `BLOCK` after one round: 96 of 96
85
- against 70 of 96, with the prediction written beforehand being `PASS`. The report also
86
- showed the injected fault firing in 24 of 24 baseline trials but 18 to 20 of 24 candidate
87
- trials per faulted condition. It is one comparison on one suite and says nothing about
88
- these models elsewhere. Report: [docs/results/order-desk-study.html](docs/results/order-desk-study.html).
117
+ [examples/langchain_quickstart](https://github.com/ajaysurya1221/agent-reliability-ci/blob/main/examples/langchain_quickstart/README.md) and the
118
+ [recipe](https://github.com/ajaysurya1221/agent-reliability-ci/blob/main/docs/recipes/langchain.md).
119
+
120
+ **Two recorded comparisons.** Both pre-registered, with the prediction written first, on two
121
+ local models (12B baseline, 4B candidate, temperature 0.7) and the 24-task example.
122
+
123
+ | | Run 1: a wrong tool call ends the trial | Run 2: the tool's error is returned to the model |
124
+ |---|---|---|
125
+ | Prediction | `PASS` (wrong) | `INCONCLUSIVE` (right) |
126
+ | Verdict | `BLOCK` after 1 round | `INCONCLUSIVE` after 5 rounds |
127
+ | Baseline passed | 96 of 96 | 480 of 480 |
128
+ | Candidate passed | 70 of 96 | 428 of 480 |
129
+
130
+ Run 1's write-up first called the gap a capability gap. A reader pointed out that the tool
131
+ raised an exception the model never saw, so one wrong call was fatal. The correction and
132
+ run 2 came from that comment. In run 2 the small model made the same wrong first call as
133
+ often and went on to pass in most of those trials; 77 of its passes came after a tool error
134
+ that would have ended the trial under run 1's set-up. Most of its remaining failures (41 of
135
+ 52) had both an injected fault and a tool error of this kind in one trial. These are two runs on one suite and say nothing about the models elsewhere.
136
+ Write-up: [docs/results/order-desk-study.md](https://github.com/ajaysurya1221/agent-reliability-ci/blob/main/docs/results/order-desk-study.md). Reports:
137
+ [run 1](https://github.com/ajaysurya1221/agent-reliability-ci/blob/main/docs/results/order-desk-study.html), [run 2](https://github.com/ajaysurya1221/agent-reliability-ci/blob/main/docs/results/order-desk-study-run-2.html).
138
+
139
+ **Since 2.1.** Suite reports show, per arm, which tools were never called and how many trials
140
+ had a recorded tool failure without an injection marker, and how many of those passed. The
141
+ record does not show why a call failed. The quickstart
142
+ compares two different models with everything else equal
143
+ ([model swap](https://github.com/ajaysurya1221/agent-reliability-ci/blob/main/docs/recipes/model-swap.md)).
144
+
145
+ ## Related tools
146
+
147
+ As each project describes itself; read in November 2026, not tested here. Corrections are
148
+ welcome as issues.
149
+
150
+ - Fault injection for agent tool calls:
151
+ [agentchaos-sdk](https://pypi.org/project/agentchaos-sdk/),
152
+ [probe-ai](https://pypi.org/project/probe-ai/),
153
+ [flakestorm](https://pypi.org/project/flakestorm/),
154
+ [chaos-agents](https://pypi.org/project/chaos-agents/),
155
+ [agentfuzz](https://pypi.org/project/agentfuzz/),
156
+ [agentic-chaos](https://github.com/DeepAgentLabs/agentic-chaos), and the chaos testing in
157
+ [Strands Evals](https://github.com/strands-agents/evals).
158
+ - Sequential tests with a bounded false-alarm rate for agent verifiers:
159
+ [E-valuator](https://arxiv.org/abs/2512.03109).
160
+ - Three-valued verdicts (PASS, FAIL, INCONCLUSIVE) for agent regression testing:
161
+ [AgentAssay](https://arxiv.org/abs/2603.02601).
162
+ - Statistical comparison of two evaluation runs from their result files:
163
+ [evalsig](https://pypi.org/project/evalsig/) (paired tests, sequential testing and a
164
+ release gate), and the evaluation comparison in
165
+ [inspect-mlflow](https://inspect-mlflow.readthedocs.io/en/latest/comparison.html)
166
+ (McNemar's test on two Inspect AI logs).
167
+ - Repeated trials with confidence intervals:
168
+ [agentrial](https://github.com/alepot55/agentrial). Repeated runs against a pass-rate
169
+ threshold in pytest: [pytest-agent-eval](https://github.com/datarootsio/pytest-agent-eval).
170
+ - A reliability platform for tool-using agents with fault injection and statistical scoring:
171
+ [agent-reliability](https://github.com/karthikrshet/agent-reliability).
172
+ - Evaluation platforms and frameworks (LangSmith, promptfoo, DeepEval, Inspect AI, Braintrust,
173
+ Phoenix) score and compare runs; use them for that.
174
+
175
+ What ARCI adds is the join: injected tool faults, a baseline-against-candidate verdict from a rule
176
+ fixed before the run, a stated bound on each kind of wrong statistical verdict, and a count of whether each
177
+ fault fired. We did not find another tool that does all four together. If you know one,
178
+ please open an issue.
89
179
 
90
180
  ## Try the offline demo
91
181
 
@@ -452,15 +542,15 @@ schema); re-run the experiment rather than trust an unreadable store.
452
542
 
453
543
  ### GitHub Actions
454
544
 
455
- This example pins `v1.0.0`, the released feature set (the Action installs that tag's source; the
456
- same code is on PyPI as `agent-reliability-ci==1.0.0`). See
545
+ This example pins `v2.2.0`, the current release (the Action installs that tag's source; the
546
+ same code is on PyPI as `agent-reliability-ci==2.2.0`). See
457
547
  [CHANGELOG.md](https://github.com/ajaysurya1221/agent-reliability-ci/blob/main/CHANGELOG.md).
458
548
 
459
549
  ```yaml
460
550
  - uses: actions/setup-python@v7
461
551
  with: { python-version: "3.12" }
462
552
  - run: pip install -e . # your agent, importable
463
- - uses: ajaysurya1221/agent-reliability-ci@v1.0.0
553
+ - uses: ajaysurya1221/agent-reliability-ci@v2.2.0
464
554
  id: gate
465
555
  with:
466
556
  manifest: reliability/manifest.json
@@ -476,9 +566,9 @@ there for steps that run after the gate. This repository's own CI runs the test
476
566
  re-derives the archived decisions, smoke-tests the built wheel on Linux and macOS, and runs the Action
477
567
  on a committed fixture that must BLOCK.
478
568
 
479
- The v2.0.0 release candidate adds opt-in `pr-comment: "true"`: it uploads the offline HTML
480
- report and creates or updates a PR summary. These inputs are not available on the v1.0.0 tag
481
- above; use a verified v2 revision. Grant `pull-requests: write` and serialize runs for each PR:
569
+ Since v2.0.0 the Action has an opt-in `pr-comment: "true"`: it uploads the offline HTML
570
+ report and creates or updates a PR summary. Grant `pull-requests: write` and serialize runs for
571
+ each PR:
482
572
 
483
573
  ```yaml
484
574
  permissions:
@@ -526,12 +616,16 @@ never change the gate result. Racing duplicate comments are refreshed on the nex
526
616
  - **Reference validation executes user code.** `arci init` validates Python references by importing
527
617
  them, and calls the toolset factory once, in a child process; import-time code runs.
528
618
  - **Declaring a fault does not guarantee injection.** A fault names a tool; if the agent never calls
529
- that tool at that occurrence, the condition runs clean and nothing says so. Inspect the recorded
530
- calls to confirm injection.
619
+ that tool at that occurrence, the condition runs clean. Since 2.0.0 the fault accounting section
620
+ of a report counts, per arm, the trials each declared fault fired in, and marks a fault that
621
+ never fired.
531
622
  - Command agents get one stdio MCP server (revision 2026-07-28), serial tool calls, no HTTP
532
623
  transport, no concurrent decisions.
533
- - No importers (OTLP, Claude Code, Codex). POSIX only: on Windows the package
534
- installs and `arci --help` runs, but experiments are unsupported.
624
+ - **Since 2.2.0**, `arci verdict` reads pass/fail outcomes another tool already produced
625
+ (Inspect AI JSON logs, JUnit XML, CSV, JSONL) and gives a verdict only; there are still no
626
+ trace importers (OTLP, Claude Code, Codex), and imported outcomes cannot be replayed,
627
+ minimised or fault-accounted. POSIX only: on Windows the package installs and `arci --help`
628
+ runs, but experiments are unsupported.
535
629
 
536
630
  **Related work:** [Documentation comparison, checked 2026-10-05; not a matched benchmark.](https://github.com/ajaysurya1221/agent-reliability-ci/blob/main/docs/reports/ci-gate-2026-10-06/REPORT.md#6-related-work-and-honest-positioning)
537
631
 
@@ -549,22 +643,33 @@ from it, and it shares no runtime layer with the maintainer's sibling projects A
549
643
  Frontier Scout. [NOTICE](https://github.com/ajaysurya1221/agent-reliability-ci/blob/main/NOTICE) records two adaptations from evalopt under MIT with attribution: the
550
644
  canonical JSON hashing helpers in `src/arci/hashing.py` and the self-sealing decision pattern in
551
645
  `src/arci/schema.py`, both attributed source adaptation inside the frozen manifest, not a dependency.
646
+ It also names the four files of the `examples/guardrail_agent` example that were taken from
647
+ Frontier Scout under MIT; that example is in the repository and not in the PyPI package.
552
648
  ARCI is not a successor to, conformance target for or drop-in replacement for evalopt, and nothing
553
649
  here claims adoption, performance or superiority.
554
650
 
555
651
  ## Roadmap
556
652
 
557
- Most valuable first: per-request pacing through parent IPC; counterfactual replay of recorded
558
- decisions, if it can be done without overstating what a re-perturbed recording proves; extending
559
- the intent-routing calibration audit to labelled coding-agent permission decisions, with a
560
- separate protocol and explicit limits. Full list in [docs/ROADMAP.md](https://github.com/ajaysurya1221/agent-reliability-ci/blob/main/docs/ROADMAP.md).
653
+ Nothing is scheduled. From v2.1.0 on, an item is taken up only when someone who would use it
654
+ asks for it, or when a recorded run shows the need. What is not in 2.2.0 (reading an Inspect
655
+ `.eval` log directly, promptfoo, the Action's verdict mode, interrupts, async agents, a suite
656
+ example with several faults in one condition, a second framework adapter, the v1 commands that
657
+ do not yet accept suites) and the earlier candidate list (last revised for v0.8.0) are in
658
+ [docs/ROADMAP.md](https://github.com/ajaysurya1221/agent-reliability-ci/blob/main/docs/ROADMAP.md).
561
659
 
562
660
  ## Development
563
661
 
564
- **How it was built.** One maintainer, September to October 2026, with Claude Code and Codex as
565
- pair-programmers (recorded in the commit messages). The experiment design, the decision rule and
566
- its calibration, the trust model and the acceptance tests are the maintainer's own; the retry
567
- demo, the calibration table and the test suite reproduce from a clean clone. Issues and PRs welcome.
662
+ **How it was built.** One maintainer, September to November 2026, with Claude Code and Codex as
663
+ pair-programmers (recorded in the commit messages). Through v1.0.0 the experiment design, the
664
+ decision rule and its calibration, the trust model and the acceptance tests are the maintainer's
665
+ own. For 2.0.0 and 2.1.0 the design records were drafted by Claude as orchestrator and approved
666
+ by the maintainer; for 2.2.0 the maintainer approved the plan, and design record 0015 was drafted
667
+ by Claude and reviewed twice by Codex. The implementation of all three was by Codex from written
668
+ briefs (design records 0011 to 0015). The retry demo, the calibration table and the test suite reproduce from
669
+ a clean clone.
670
+ Issues and PRs welcome.
671
+ Where the code came from and who holds it: [docs/PROVENANCE.md](https://github.com/ajaysurya1221/agent-reliability-ci/blob/main/docs/PROVENANCE.md).
672
+ Commercial and partnership questions: see the maintainer's GitHub profile.
568
673
 
569
674
  ```bash
570
675
  uv sync
@@ -584,17 +689,18 @@ records live in [docs/design](https://github.com/ajaysurya1221/agent-reliability
584
689
 
585
690
  ### Availability and project status
586
691
 
587
- **Availability:** v1.0.0 adds one-command native-run triage and cross-run trace comparison.
588
- Install `agent-reliability-ci==1.0.0` from PyPI or use Action tag `v1.0.0`.
589
- The [release page](https://github.com/ajaysurya1221/agent-reliability-ci/releases/tag/v1.0.0)
692
+ **Availability:** v2.2.0 is the current release. Install `agent-reliability-ci==2.2.0` from PyPI
693
+ (`agent-reliability-ci[langchain]==2.2.0` for the LangChain adapter) or use Action tag `v2.2.0`.
694
+ The [release page](https://github.com/ajaysurya1221/agent-reliability-ci/releases/latest)
590
695
  links the wheel, sdist, checksums and verification receipt. The release workflow
591
696
  builds once, tests the wheel on Ubuntu/macOS, and publishes through trusted
592
- publishing with attestations. The packaged demo, descriptors, initialization,
593
- planner and opt-in pass^k reporting remain available from the v0.8.0 release.
697
+ publishing with attestations. The single-task gate, `triage`, `trace-check`, the packaged demo,
698
+ descriptors, initialization, planner and opt-in pass^k reporting from earlier releases remain
699
+ available.
594
700
  **Boundary:** PASS means relative non-inferiority, not absolute reliability. This is not a sandbox.
595
701
 
596
702
  [![CI](https://img.shields.io/github/actions/workflow/status/ajaysurya1221/agent-reliability-ci/ci.yml?branch=main&style=flat-square&label=CI)](https://github.com/ajaysurya1221/agent-reliability-ci/actions/workflows/ci.yml)
597
- [![Release](https://img.shields.io/github/v/release/ajaysurya1221/agent-reliability-ci?sort=semver&style=flat-square)](https://github.com/ajaysurya1221/agent-reliability-ci/releases/tag/v1.0.0)
703
+ [![Release](https://img.shields.io/github/v/release/ajaysurya1221/agent-reliability-ci?sort=semver&style=flat-square)](https://github.com/ajaysurya1221/agent-reliability-ci/releases/latest)
598
704
  [![Evidence package](https://img.shields.io/badge/evidence_package-2026--10--06-555?style=flat-square)](https://github.com/ajaysurya1221/agent-reliability-ci/releases/tag/evidence-2026-10-06)
599
705
  [![License](https://img.shields.io/badge/license-Apache--2.0-blue?style=flat-square)](https://github.com/ajaysurya1221/agent-reliability-ci/blob/main/LICENSE)
600
706
  [![Python](https://img.shields.io/badge/python-3.11%2B-blue?style=flat-square)](https://github.com/ajaysurya1221/agent-reliability-ci/blob/main/pyproject.toml)