agent-reliability-ci 2.3.0__tar.gz → 2.4.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 (85) hide show
  1. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/CHANGELOG.md +84 -0
  2. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/PKG-INFO +42 -29
  3. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/README.md +41 -28
  4. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/pyproject.toml +1 -1
  5. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/__init__.py +1 -1
  6. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/logs/claude_code.py +31 -3
  7. agent_reliability_ci-2.4.0/src/arci/logs/cli.py +504 -0
  8. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/logs/codex.py +21 -3
  9. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/logs/decide.py +21 -2
  10. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/logs/html.py +15 -4
  11. agent_reliability_ci-2.4.0/src/arci/logs/kept.py +258 -0
  12. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/logs/measures.py +132 -62
  13. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/logs/records.py +23 -2
  14. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/logs/report.py +128 -28
  15. agent_reliability_ci-2.4.0/src/arci/logs/schema.py +773 -0
  16. agent_reliability_ci-2.3.0/src/arci/logs/cli.py +0 -289
  17. agent_reliability_ci-2.3.0/src/arci/logs/schema.py +0 -386
  18. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/.gitignore +0 -0
  19. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/LICENSE +0 -0
  20. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/NOTICE +0 -0
  21. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/__main__.py +0 -0
  22. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/adapters/__init__.py +0 -0
  23. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/adapters/langchain.py +0 -0
  24. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/cli.py +0 -0
  25. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/contracts.py +0 -0
  26. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/demo/__init__.py +0 -0
  27. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/demo/agents.py +0 -0
  28. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/demo/experiment.py +0 -0
  29. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/demo/outcomes/__init__.py +0 -0
  30. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/demo/outcomes/order-desk-run-1/baseline.csv +0 -0
  31. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/demo/outcomes/order-desk-run-1/candidate.csv +0 -0
  32. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/demo/outcomes/order-desk-run-1/rule.yaml +0 -0
  33. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/demo/run.py +0 -0
  34. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/demo/suite.py +0 -0
  35. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/demo/world.py +0 -0
  36. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/descriptor.py +0 -0
  37. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/diff.py +0 -0
  38. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/fingerprint.py +0 -0
  39. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/gate.py +0 -0
  40. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/grade.py +0 -0
  41. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/hashing.py +0 -0
  42. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/html_base.py +0 -0
  43. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/html_report.py +0 -0
  44. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/importers/__init__.py +0 -0
  45. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/importers/inspect_log.py +0 -0
  46. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/importers/junit.py +0 -0
  47. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/init.py +0 -0
  48. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/interfaces.py +0 -0
  49. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/logs/__init__.py +0 -0
  50. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/logs/discover.py +0 -0
  51. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/logs/example/__init__.py +0 -0
  52. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/logs/example/claude/history.jsonl +0 -0
  53. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/logs/example/codex/archived_sessions/rollout-subagent.jsonl +0 -0
  54. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/logs/example/codex/sessions/rollout-example.jsonl +0 -0
  55. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/logs/example/now.txt +0 -0
  56. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/logs/rank_test.py +0 -0
  57. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/mcp_boundary.py +0 -0
  58. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/mcp_shim.py +0 -0
  59. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/mcp_toolset_server.py +0 -0
  60. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/minimize.py +0 -0
  61. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/outcome_report.py +0 -0
  62. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/outcome_schema.py +0 -0
  63. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/outcomes.py +0 -0
  64. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/perturb.py +0 -0
  65. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/planning.py +0 -0
  66. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/py.typed +0 -0
  67. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/reliability.py +0 -0
  68. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/replay.py +0 -0
  69. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/report.py +0 -0
  70. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/runner.py +0 -0
  71. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/schedule.py +0 -0
  72. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/schema.py +0 -0
  73. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/stats.py +0 -0
  74. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/storage.py +0 -0
  75. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/suite_gate.py +0 -0
  76. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/suite_report.py +0 -0
  77. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/suite_runner.py +0 -0
  78. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/suite_schedule.py +0 -0
  79. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/suite_schema.py +0 -0
  80. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/suite_stats.py +0 -0
  81. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/suite_storage.py +0 -0
  82. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/toolbox.py +0 -0
  83. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/trace_check.py +0 -0
  84. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/triage.py +0 -0
  85. {agent_reliability_ci-2.3.0 → agent_reliability_ci-2.4.0}/src/arci/worker.py +0 -0
@@ -1,5 +1,89 @@
1
1
  # Changelog
2
2
 
3
+ ## v2.4.0 (2026-11-16)
4
+
5
+ - **Added:** `arci-logs/2` records, a best-case earliest test date when usable days are
6
+ too few, and bounded client-version names after the split. `--keep` saves daily counts,
7
+ dates and accepted settings to `realornoise-days/1`; `--keep-dir` chooses its directory
8
+ and `--ignore-kept` skips reading it. Kept days are counted and marked in HTML.
9
+ - **Changed:** the default model and effort now come from the most responses after the
10
+ split, falling back to the whole window only when no candidate has an after-response.
11
+ In 2.4.0 the readers return client-version names and also return main-thread and
12
+ sub-agent responses that lack a model or an effort. Those responses count only toward
13
+ context counts and the version list, never toward responses or day values. The readers
14
+ take model and effort names from the kept table so labels stay stable across runs.
15
+ Context counts can therefore differ from those 2.3.0 printed for the same logs.
16
+ 2.4.0 follows the definition in the records.
17
+ Both skills run `uvx --python 3.14 realornoise==2.4.0` without keeping days. Version 1
18
+ log records remain readable. The printed limits state the largest wrong REAL DROP rate
19
+ of the rule as built over all histories in the correlation, weekly-cycle and regime
20
+ cells of the [self-check](docs/results/logs-selfcheck.md):
21
+ wrong REAL DROP 362/2000 = 0.181000 [0.164743, 0.198480] (18.1%, Wilson 95% interval),
22
+ seed 18112185, regime-switching days with log SD 0.45, 14 days after and 16 before.
23
+ Work in phases can break the bound; other patterns can give more.
24
+ - **Fixed:** the tool never removes a directory. A failed write restores files;
25
+ the table directory and any parents it created stay, empty, with mode 0700.
26
+ Existing directories keep their mode. Overlapping table writes merge under an
27
+ exclusive directory lock, held through moves and cleanup. Failure to open the
28
+ directory is a write error; an unavailable lock module or failed lock call
29
+ allows the write to proceed without a lock. The tool assumes no other program
30
+ removes or replaces the directory during a run. Output names beginning with
31
+ `.realornoise-`, after NFKC normalization and case folding, including symbolic
32
+ links that resolve to such names, are refused before any read or write.
33
+ Successful table writes remove regular files with that prefix while holding the
34
+ lock. Report temporary files use `.realornoise.out-`, so table cleanup leaves
35
+ another run's pending reports alone. A keyboard interrupt during writing ends
36
+ with the write error and exit 3. An interrupt during the same-file check removes
37
+ this run's new empty targets and preserves another writer's file. An interrupted
38
+ move restores old bytes and modes and removes new targets; after the last move
39
+ the files are already written. A second interrupt during restore can leave some
40
+ files replaced, and an interrupt can leave a report temporary file. A process
41
+ killed outright restores nothing and can leave replaced files, empty new targets
42
+ and temporary files. Report leftovers may be deleted by hand.
43
+ - **Fixed:** equal numeric client-version tuples now use ascending text order in both
44
+ the displayed list and record validation. With four equivalent spellings, the wrong
45
+ three had been shown. A kept-table path below a regular file is now absent rather
46
+ than unreadable: `--keep` reports a write error instead of success without a write,
47
+ and a read-only run no longer reports an unreadable table that never existed.
48
+ Both defects were found by the blind acceptance tests. Same-file placeholders are removed
49
+ before staging, so interruption during staging or replacement leaves no new empty target.
50
+ A zero-byte table is absent and can be replaced.
51
+ Overlapping writes merge under a directory lock where available; a successful write removes
52
+ leftover regular `.realornoise-` files. An empty `--keep-dir` is a usage error.
53
+ Margin self-checks also gate the moved measure's own finding. Gates remain active under
54
+ Python optimisation. Quick gates use exact binomial smoke limits and support no claim.
55
+ Privacy tests restrict bounded names and versions to their specified JSON fields.
56
+ Documentation corrects release metadata, reader changes and installation network use.
57
+ - **Not in this release:** an unknown split date, repeated daily looks with a stated
58
+ error rate, a replacement streak check, two-model comparisons, a range for the change,
59
+ other coding agents, OpenTelemetry input, a public tracker, real-machine Windows
60
+ checks, older log formats, usage-limit or cost measures, or sending data anywhere.
61
+ - **Docs:** record 0017, the logs/2 statistics and self-check, the live example transcript,
62
+ kept-table format and retention limits, the realornoise threat model, skill pins,
63
+ release checks, compatibility and roadmap. The documented command requests Python
64
+ 3.14 for compressed Codex logs. Related tools are described without comparison claims.
65
+ - **CI:** CodeQL (Python and Actions) and zizmor now scan every push to `main` and
66
+ `sprint/**` and every pull request to `main`, Dependabot opens one monthly grouped pull request for
67
+ GitHub Actions versions, uv is installed from a hash-pinned requirements file in every
68
+ workflow that can check out the repository first, and a new "oracle / SciPy" CI job checks
69
+ the exact rank test against SciPy's own permutation and Mann-Whitney tests.
70
+ - **Docs:** added `CONTRIBUTING.md`, `CODE_OF_CONDUCT.md`, issue and pull request templates,
71
+ and a test that these files exist and stay consistent with each other.
72
+ - **Docs:** the README now starts with a generated banner (`docs/assets/banner-{light,dark}.svg`,
73
+ from `make_figures.py`) whose dots are the packaged example's day values, checked by a test.
74
+ - **Tests:** `test_slow_healthy_predecessor_has_no_gate_deadline` now uses a wait limit of
75
+ 0.3 s and tool calls of 0.8 s (before: 0.03 s and 0.08 s). On a loaded CI machine the
76
+ gap between one tool call ending and the next starting could pass 0.03 s and fail the
77
+ test with "tool order wait timeout". The released code uses 30 s and was not affected.
78
+ - **Tests:** added `tests/unit/logs/test_format_incidents.py`, guarding the three 2026
79
+ `ccusage` breakages (a `null` model inside `usage.iterations[]`, a session kept twice
80
+ once compressed, and a record cut off in the middle of its JSON) against both readers
81
+ and against an end-to-end `arci logs` run, plus `tests/unit/packaging/test_client_versions.py`.
82
+ - **CI:** a new daily `client-versions` workflow asks npm for the latest Claude Code and
83
+ Codex CLI versions and compares them with the versions `docs/LOG_FORMATS.md` says the
84
+ readers were checked against; when either is newer it keeps one open issue up to date
85
+ asking for the format tests to be run against a session of the new client.
86
+
3
87
  ## v2.3.0 (2026-11-15)
4
88
 
5
89
  - **Added:** `arci logs` reads local Claude Code and Codex session logs and compares daily
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: agent-reliability-ci
3
- Version: 2.3.0
3
+ Version: 2.4.0
4
4
  Summary: Did your AI agent get worse? Real, noise, or cannot tell: from coding-agent session logs, imported results, or controlled trials with fault injection.
5
5
  Project-URL: Homepage, https://github.com/ajaysurya1221/agent-reliability-ci
6
6
  Project-URL: Source, https://github.com/ajaysurya1221/agent-reliability-ci
@@ -29,30 +29,37 @@ Provides-Extra: langchain
29
29
  Requires-Dist: langchain<2,>=1.4.9; extra == 'langchain'
30
30
  Description-Content-Type: text/markdown
31
31
 
32
+ <picture>
33
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/ajaysurya1221/agent-reliability-ci/main/docs/assets/banner-dark.svg">
34
+ <img src="https://raw.githubusercontent.com/ajaysurya1221/agent-reliability-ci/main/docs/assets/banner-light.svg" alt="Real or noise? Dots for 42 earlier days scatter inside one band; dots for 14 recent days sit well below it. Generated example data. Command: uvx --python 3.14 realornoise." width="100%">
35
+ </picture>
36
+
32
37
  # Did your agent get worse? Real, noise, or cannot tell.
33
38
 
34
39
  [![PyPI](https://img.shields.io/pypi/v/agent-reliability-ci)](https://pypi.org/project/agent-reliability-ci/)
35
40
 
36
- ARCI (agent-reliability-ci) answers that question in three ways, from the least effort and the
37
- weakest evidence to the most. Each one prints the assumptions it cannot check.
41
+ ARCI (agent-reliability-ci) offers three comparisons with increasing effort and evidence.
42
+ Each prints the assumptions it cannot check.
38
43
 
39
44
  **1. Logs you already have.** If you use Claude Code or Codex, the session logs on your disk
40
45
  record how the model behaved each day. One command compares recent days with earlier ones:
41
46
 
42
47
  ```bash
43
- uvx realornoise
48
+ uvx --python 3.14 realornoise
44
49
  ```
45
50
 
46
- On the packaged example data (`uvx realornoise --example`):
51
+ Python 3.14 reads compressed Codex logs; uvx downloads it if missing.
52
+
53
+ On the packaged example data (`uvx --python 3.14 realornoise --example`):
47
54
 
48
55
  ```text
49
56
  RESULT: REAL DROP
50
57
  reasoning tokens per response 986 (42) 529 (14) -46% real drop
51
58
  ```
52
59
 
53
- Nothing leaves your machine, and the output holds counts, rates, dates and the names of the model
54
- and effort compared. It shows what your logs recorded, not why: your tasks, prompts and client
55
- changed too. With a short history the usual answer is `CANNOT TELL`.
60
+ The tool sends nothing; installing it downloads the package. The output holds counts, rates, dates and bounded model, effort
61
+ and client-version names. It shows what your logs recorded, not why: your tasks, prompts and client
62
+ may have changed too. With a short history the usual answer is `CANNOT TELL`.
56
63
  [How to read it](https://github.com/ajaysurya1221/agent-reliability-ci/blob/main/docs/recipes/logs.md) ·
57
64
  [the method and its limits](https://github.com/ajaysurya1221/agent-reliability-ci/blob/main/docs/STATISTICS_LOGS.md)
58
65
 
@@ -66,9 +73,11 @@ tasks, injects tool timeouts, errors and empty results, and returns `PASS`, `BLO
66
73
  defaults and under assumptions ARCI states and does not check.
67
74
  [Start here](#controlled-trials-arci-run) · no install: `uvx --from agent-reliability-ci arci demo`
68
75
 
69
- ## New in 2.3: a result from logs you already have
76
+ ## New in 2.4: compare the setting you use now
70
77
 
71
- `arci logs` reads local Claude Code and Codex session logs, runs no model, and compares usable days for one model and effort setting per tool.
78
+ `arci logs` compares the model and effort used most after the split, instead of the most used over the whole window.
79
+ `--keep` saves daily counts beyond vendor retention. Claude Code deletes session files after 30 days by default (`cleanupPeriodDays`; [settings reference](https://code.claude.com/docs/en/settings-reference), read 15 Nov 2026).
80
+ With a short history the usual answer is CANNOT TELL. When days are too few, the output names the earliest possible test date, conditional on daily usable counts and retained earlier days.
72
81
  Packaged example data (`arci logs --example`), Claude Code:
73
82
 
74
83
  ```text
@@ -76,16 +85,12 @@ RESULT: REAL DROP
76
85
  reasoning tokens per response 986 (42) 529 (14) -46% real drop
77
86
  ```
78
87
 
79
- REAL DROP means a recorded measure moved toward worse beyond a chance ordering of days.
80
- NO DROP rules out each measure's margin under the stated assumptions; it does not mean improvement.
81
- CANNOT TELL means the history is too short, variable or streaky to decide.
82
- This cannot show cause, answer quality or a change to a model; tasks, prompts and clients can change too.
83
- In the final AR(1) self-check at correlation 0.5 and log SD 0.45, the rule as built gave wrong REAL DROP rates of 0.080500, 0.035500 and 0.002500 and wrong NO DROP rates of 0.005000, 0.005000 and 0.000500 at 5/10, 7/21 and 14/42 after/before days (2000 histories each); the first two wrong REAL DROP rates exceed the nominal bound of 0.025, and [the method](docs/STATISTICS_LOGS.md#what-the-method-cannot-see) gives all variants, wrong-NO-DROP rates and intervals.
84
-
88
+ The output states the largest wrong-REAL-DROP rate of the rule as built, over all histories, in the [self-check](docs/results/logs-selfcheck.md)'s correlation, weekly-cycle and regime cells: 18.1%, at 14/16 after/before days in regimes (362/2000 = 0.181000 [0.164743, 0.198480], Wilson 95% interval, seed 18112185).
89
+ For AR(1) correlation 0.5 and log SD 0.45, the rule as built measured wrong REAL DROP at 0.092500, 0.036000 and 0.005000 for 5/10, 7/21 and 14/42 days (2000 histories each).
90
+ Work in phases can break the bound; other patterns can give more. These logs cannot establish cause, answer quality or a model change.
85
91
  Claude Code: `/plugin marketplace add ajaysurya1221/agent-reliability-ci`, `/plugin install realornoise@agent-reliability-ci`, then `/realornoise:realornoise`.
86
- Codex: copy [`integrations/codex/skills/realornoise`](integrations/codex/skills/realornoise/SKILL.md) into `~/.agents/skills/`.
87
- Both put the printed numbers into that assistant's conversation.
88
- [Recipe](docs/recipes/logs.md) · [Statistics and limits](docs/STATISTICS_LOGS.md) · [Design record](docs/design/0016-logs.md).
92
+ Codex: copy [`integrations/codex/skills/realornoise`](integrations/codex/skills/realornoise/SKILL.md) into `~/.agents/skills/`. Both skills put the printed numbers into the conversation.
93
+ [Recipe](docs/recipes/logs.md) · [Statistics and limits](docs/STATISTICS_LOGS.md) · [Design record](docs/design/0017-logs-2.md).
89
94
 
90
95
  ## New in 2.2: a verdict from results another tool produced
91
96
 
@@ -199,6 +204,13 @@ compares two different models with everything else equal
199
204
  As each project describes itself; read in November 2026, not tested here. Corrections are
200
205
  welcome as issues.
201
206
 
207
+ - Tools about "did the model get worse", as they describe themselves, read 16 Nov 2026,
208
+ not tested here: [is-it-nerfed](https://github.com/resitaydin/is-it-nerfed),
209
+ "A Claude Code plugin that checks your own logs for proof". It asks Sonnet subagents
210
+ whether you had to correct the model, for a sample of your prompts, and compares the
211
+ last two weeks with an earlier window. [livenerf](https://github.com/ninjahawk/livenerf),
212
+ "A long-running, deterministic-as-possible benchmark for detecting whether a frontier
213
+ model gets quietly worse after launch".
202
214
  - Fault injection for agent tool calls:
203
215
  [agentchaos-sdk](https://pypi.org/project/agentchaos-sdk/),
204
216
  [probe-ai](https://pypi.org/project/probe-ai/),
@@ -610,15 +622,15 @@ schema); re-run the experiment rather than trust an unreadable store.
610
622
 
611
623
  ### GitHub Actions
612
624
 
613
- This example pins `v2.3.0`, the current release (the Action installs that tag's source; the
614
- same code is on PyPI as `agent-reliability-ci==2.3.0`). See
625
+ This example pins `v2.4.0`, the current release (the Action installs that tag's source; the
626
+ same code is on PyPI as `agent-reliability-ci==2.4.0`). See
615
627
  [CHANGELOG.md](https://github.com/ajaysurya1221/agent-reliability-ci/blob/main/CHANGELOG.md).
616
628
 
617
629
  ```yaml
618
630
  - uses: actions/setup-python@v7
619
631
  with: { python-version: "3.12" }
620
632
  - run: pip install -e . # your agent, importable
621
- - uses: ajaysurya1221/agent-reliability-ci@v2.3.0
633
+ - uses: ajaysurya1221/agent-reliability-ci@v2.4.0
622
634
  id: gate
623
635
  with:
624
636
  manifest: reliability/manifest.json
@@ -662,8 +674,9 @@ never change the gate result. Racing duplicate comments are refreshed on the nex
662
674
  passing the streak check does not establish interchangeable days. The measured error
663
675
  rates under correlation can exceed the claimed bound's nominal level, as
664
676
  [the statistics](docs/STATISTICS_LOGS.md) show. There is no scan over dates, comparison
665
- of two models, stored history beyond log retention, range for the change, cost or
666
- usage-limit measure, or reader for other agents. Windows is untested for this command.
677
+ of two models, range for the change, cost or usage-limit measure, or reader for other
678
+ agents. Days are kept only with `--keep`, and only when captured while their files
679
+ still existed. Windows is untested for this command.
667
680
  - **It is not a sandbox and not a security boundary.** Python agents share a process with their tool
668
681
  boundary. Command agents use a separate harness-owned MCP boundary, which is isolation from
669
682
  accident, not containment. Both assume buggy, non-hostile agent code; a hostile agent could still
@@ -726,8 +739,8 @@ here claims adoption, performance or superiority.
726
739
  ## Roadmap
727
740
 
728
741
  Nothing is scheduled. From v2.1.0 on, an item is taken up only when someone who would use it
729
- asks for it, or when a recorded run shows the need. What is not in 2.3.0 (stored log history,
730
- a scan over split dates, reading an Inspect `.eval` log directly, promptfoo, the Action's verdict mode, interrupts, async agents, a suite
742
+ asks for it, or when a recorded run shows the need. What is not in 2.4.0
743
+ (a scan over split dates, reading an Inspect `.eval` log directly, promptfoo, the Action's verdict mode, interrupts, async agents, a suite
731
744
  example with several faults in one condition, a second framework adapter, the v1 commands that
732
745
  do not yet accept suites) and the earlier candidate list (last revised for v0.8.0) are in
733
746
  [docs/ROADMAP.md](https://github.com/ajaysurya1221/agent-reliability-ci/blob/main/docs/ROADMAP.md).
@@ -767,9 +780,9 @@ records live in [docs/design](https://github.com/ajaysurya1221/agent-reliability
767
780
 
768
781
  ### Availability and project status
769
782
 
770
- **Availability:** v2.3.0 is the current release. Install `agent-reliability-ci==2.3.0` from PyPI
771
- (`agent-reliability-ci[langchain]==2.3.0` for the LangChain adapter), use `uvx realornoise`,
772
- or use Action tag `v2.3.0`. The `realornoise` distribution pins the same main-package version.
783
+ **Availability:** v2.4.0 is the current release. Install `agent-reliability-ci==2.4.0` from PyPI
784
+ (`agent-reliability-ci[langchain]==2.4.0` for the LangChain adapter), use `uvx realornoise`,
785
+ or use Action tag `v2.4.0`. The `realornoise` distribution pins the same main-package version.
773
786
  The [release page](https://github.com/ajaysurya1221/agent-reliability-ci/releases/latest)
774
787
  links the wheel, sdist, checksums and verification receipt. The release workflow
775
788
  builds both distributions, tests their wheels on Ubuntu/macOS, and publishes the main
@@ -1,27 +1,34 @@
1
+ <picture>
2
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/ajaysurya1221/agent-reliability-ci/main/docs/assets/banner-dark.svg">
3
+ <img src="https://raw.githubusercontent.com/ajaysurya1221/agent-reliability-ci/main/docs/assets/banner-light.svg" alt="Real or noise? Dots for 42 earlier days scatter inside one band; dots for 14 recent days sit well below it. Generated example data. Command: uvx --python 3.14 realornoise." width="100%">
4
+ </picture>
5
+
1
6
  # Did your agent get worse? Real, noise, or cannot tell.
2
7
 
3
8
  [![PyPI](https://img.shields.io/pypi/v/agent-reliability-ci)](https://pypi.org/project/agent-reliability-ci/)
4
9
 
5
- ARCI (agent-reliability-ci) answers that question in three ways, from the least effort and the
6
- weakest evidence to the most. Each one prints the assumptions it cannot check.
10
+ ARCI (agent-reliability-ci) offers three comparisons with increasing effort and evidence.
11
+ Each prints the assumptions it cannot check.
7
12
 
8
13
  **1. Logs you already have.** If you use Claude Code or Codex, the session logs on your disk
9
14
  record how the model behaved each day. One command compares recent days with earlier ones:
10
15
 
11
16
  ```bash
12
- uvx realornoise
17
+ uvx --python 3.14 realornoise
13
18
  ```
14
19
 
15
- On the packaged example data (`uvx realornoise --example`):
20
+ Python 3.14 reads compressed Codex logs; uvx downloads it if missing.
21
+
22
+ On the packaged example data (`uvx --python 3.14 realornoise --example`):
16
23
 
17
24
  ```text
18
25
  RESULT: REAL DROP
19
26
  reasoning tokens per response 986 (42) 529 (14) -46% real drop
20
27
  ```
21
28
 
22
- Nothing leaves your machine, and the output holds counts, rates, dates and the names of the model
23
- and effort compared. It shows what your logs recorded, not why: your tasks, prompts and client
24
- changed too. With a short history the usual answer is `CANNOT TELL`.
29
+ The tool sends nothing; installing it downloads the package. The output holds counts, rates, dates and bounded model, effort
30
+ and client-version names. It shows what your logs recorded, not why: your tasks, prompts and client
31
+ may have changed too. With a short history the usual answer is `CANNOT TELL`.
25
32
  [How to read it](https://github.com/ajaysurya1221/agent-reliability-ci/blob/main/docs/recipes/logs.md) ·
26
33
  [the method and its limits](https://github.com/ajaysurya1221/agent-reliability-ci/blob/main/docs/STATISTICS_LOGS.md)
27
34
 
@@ -35,9 +42,11 @@ tasks, injects tool timeouts, errors and empty results, and returns `PASS`, `BLO
35
42
  defaults and under assumptions ARCI states and does not check.
36
43
  [Start here](#controlled-trials-arci-run) · no install: `uvx --from agent-reliability-ci arci demo`
37
44
 
38
- ## New in 2.3: a result from logs you already have
45
+ ## New in 2.4: compare the setting you use now
39
46
 
40
- `arci logs` reads local Claude Code and Codex session logs, runs no model, and compares usable days for one model and effort setting per tool.
47
+ `arci logs` compares the model and effort used most after the split, instead of the most used over the whole window.
48
+ `--keep` saves daily counts beyond vendor retention. Claude Code deletes session files after 30 days by default (`cleanupPeriodDays`; [settings reference](https://code.claude.com/docs/en/settings-reference), read 15 Nov 2026).
49
+ With a short history the usual answer is CANNOT TELL. When days are too few, the output names the earliest possible test date, conditional on daily usable counts and retained earlier days.
41
50
  Packaged example data (`arci logs --example`), Claude Code:
42
51
 
43
52
  ```text
@@ -45,16 +54,12 @@ RESULT: REAL DROP
45
54
  reasoning tokens per response 986 (42) 529 (14) -46% real drop
46
55
  ```
47
56
 
48
- REAL DROP means a recorded measure moved toward worse beyond a chance ordering of days.
49
- NO DROP rules out each measure's margin under the stated assumptions; it does not mean improvement.
50
- CANNOT TELL means the history is too short, variable or streaky to decide.
51
- This cannot show cause, answer quality or a change to a model; tasks, prompts and clients can change too.
52
- In the final AR(1) self-check at correlation 0.5 and log SD 0.45, the rule as built gave wrong REAL DROP rates of 0.080500, 0.035500 and 0.002500 and wrong NO DROP rates of 0.005000, 0.005000 and 0.000500 at 5/10, 7/21 and 14/42 after/before days (2000 histories each); the first two wrong REAL DROP rates exceed the nominal bound of 0.025, and [the method](docs/STATISTICS_LOGS.md#what-the-method-cannot-see) gives all variants, wrong-NO-DROP rates and intervals.
53
-
57
+ The output states the largest wrong-REAL-DROP rate of the rule as built, over all histories, in the [self-check](docs/results/logs-selfcheck.md)'s correlation, weekly-cycle and regime cells: 18.1%, at 14/16 after/before days in regimes (362/2000 = 0.181000 [0.164743, 0.198480], Wilson 95% interval, seed 18112185).
58
+ For AR(1) correlation 0.5 and log SD 0.45, the rule as built measured wrong REAL DROP at 0.092500, 0.036000 and 0.005000 for 5/10, 7/21 and 14/42 days (2000 histories each).
59
+ Work in phases can break the bound; other patterns can give more. These logs cannot establish cause, answer quality or a model change.
54
60
  Claude Code: `/plugin marketplace add ajaysurya1221/agent-reliability-ci`, `/plugin install realornoise@agent-reliability-ci`, then `/realornoise:realornoise`.
55
- Codex: copy [`integrations/codex/skills/realornoise`](integrations/codex/skills/realornoise/SKILL.md) into `~/.agents/skills/`.
56
- Both put the printed numbers into that assistant's conversation.
57
- [Recipe](docs/recipes/logs.md) · [Statistics and limits](docs/STATISTICS_LOGS.md) · [Design record](docs/design/0016-logs.md).
61
+ Codex: copy [`integrations/codex/skills/realornoise`](integrations/codex/skills/realornoise/SKILL.md) into `~/.agents/skills/`. Both skills put the printed numbers into the conversation.
62
+ [Recipe](docs/recipes/logs.md) · [Statistics and limits](docs/STATISTICS_LOGS.md) · [Design record](docs/design/0017-logs-2.md).
58
63
 
59
64
  ## New in 2.2: a verdict from results another tool produced
60
65
 
@@ -168,6 +173,13 @@ compares two different models with everything else equal
168
173
  As each project describes itself; read in November 2026, not tested here. Corrections are
169
174
  welcome as issues.
170
175
 
176
+ - Tools about "did the model get worse", as they describe themselves, read 16 Nov 2026,
177
+ not tested here: [is-it-nerfed](https://github.com/resitaydin/is-it-nerfed),
178
+ "A Claude Code plugin that checks your own logs for proof". It asks Sonnet subagents
179
+ whether you had to correct the model, for a sample of your prompts, and compares the
180
+ last two weeks with an earlier window. [livenerf](https://github.com/ninjahawk/livenerf),
181
+ "A long-running, deterministic-as-possible benchmark for detecting whether a frontier
182
+ model gets quietly worse after launch".
171
183
  - Fault injection for agent tool calls:
172
184
  [agentchaos-sdk](https://pypi.org/project/agentchaos-sdk/),
173
185
  [probe-ai](https://pypi.org/project/probe-ai/),
@@ -579,15 +591,15 @@ schema); re-run the experiment rather than trust an unreadable store.
579
591
 
580
592
  ### GitHub Actions
581
593
 
582
- This example pins `v2.3.0`, the current release (the Action installs that tag's source; the
583
- same code is on PyPI as `agent-reliability-ci==2.3.0`). See
594
+ This example pins `v2.4.0`, the current release (the Action installs that tag's source; the
595
+ same code is on PyPI as `agent-reliability-ci==2.4.0`). See
584
596
  [CHANGELOG.md](https://github.com/ajaysurya1221/agent-reliability-ci/blob/main/CHANGELOG.md).
585
597
 
586
598
  ```yaml
587
599
  - uses: actions/setup-python@v7
588
600
  with: { python-version: "3.12" }
589
601
  - run: pip install -e . # your agent, importable
590
- - uses: ajaysurya1221/agent-reliability-ci@v2.3.0
602
+ - uses: ajaysurya1221/agent-reliability-ci@v2.4.0
591
603
  id: gate
592
604
  with:
593
605
  manifest: reliability/manifest.json
@@ -631,8 +643,9 @@ never change the gate result. Racing duplicate comments are refreshed on the nex
631
643
  passing the streak check does not establish interchangeable days. The measured error
632
644
  rates under correlation can exceed the claimed bound's nominal level, as
633
645
  [the statistics](docs/STATISTICS_LOGS.md) show. There is no scan over dates, comparison
634
- of two models, stored history beyond log retention, range for the change, cost or
635
- usage-limit measure, or reader for other agents. Windows is untested for this command.
646
+ of two models, range for the change, cost or usage-limit measure, or reader for other
647
+ agents. Days are kept only with `--keep`, and only when captured while their files
648
+ still existed. Windows is untested for this command.
636
649
  - **It is not a sandbox and not a security boundary.** Python agents share a process with their tool
637
650
  boundary. Command agents use a separate harness-owned MCP boundary, which is isolation from
638
651
  accident, not containment. Both assume buggy, non-hostile agent code; a hostile agent could still
@@ -695,8 +708,8 @@ here claims adoption, performance or superiority.
695
708
  ## Roadmap
696
709
 
697
710
  Nothing is scheduled. From v2.1.0 on, an item is taken up only when someone who would use it
698
- asks for it, or when a recorded run shows the need. What is not in 2.3.0 (stored log history,
699
- a scan over split dates, reading an Inspect `.eval` log directly, promptfoo, the Action's verdict mode, interrupts, async agents, a suite
711
+ asks for it, or when a recorded run shows the need. What is not in 2.4.0
712
+ (a scan over split dates, reading an Inspect `.eval` log directly, promptfoo, the Action's verdict mode, interrupts, async agents, a suite
700
713
  example with several faults in one condition, a second framework adapter, the v1 commands that
701
714
  do not yet accept suites) and the earlier candidate list (last revised for v0.8.0) are in
702
715
  [docs/ROADMAP.md](https://github.com/ajaysurya1221/agent-reliability-ci/blob/main/docs/ROADMAP.md).
@@ -736,9 +749,9 @@ records live in [docs/design](https://github.com/ajaysurya1221/agent-reliability
736
749
 
737
750
  ### Availability and project status
738
751
 
739
- **Availability:** v2.3.0 is the current release. Install `agent-reliability-ci==2.3.0` from PyPI
740
- (`agent-reliability-ci[langchain]==2.3.0` for the LangChain adapter), use `uvx realornoise`,
741
- or use Action tag `v2.3.0`. The `realornoise` distribution pins the same main-package version.
752
+ **Availability:** v2.4.0 is the current release. Install `agent-reliability-ci==2.4.0` from PyPI
753
+ (`agent-reliability-ci[langchain]==2.4.0` for the LangChain adapter), use `uvx realornoise`,
754
+ or use Action tag `v2.4.0`. The `realornoise` distribution pins the same main-package version.
742
755
  The [release page](https://github.com/ajaysurya1221/agent-reliability-ci/releases/latest)
743
756
  links the wheel, sdist, checksums and verification receipt. The release workflow
744
757
  builds both distributions, tests their wheels on Ubuntu/macOS, and publishes the main
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "agent-reliability-ci"
3
- version = "2.3.0"
3
+ version = "2.4.0"
4
4
  description = "Did your AI agent get worse? Real, noise, or cannot tell: from coding-agent session logs, imported results, or controlled trials with fault injection."
5
5
  readme = "README.md"
6
6
  license = "Apache-2.0"
@@ -1,3 +1,3 @@
1
1
  """agent-reliability-ci: regression testing for stochastic AI agents."""
2
2
 
3
- __version__ = "2.3.0"
3
+ __version__ = "2.4.0"
@@ -22,6 +22,7 @@ from .records import (
22
22
  render_model,
23
23
  string_of,
24
24
  time_of,
25
+ version_name,
25
26
  without_timezone,
26
27
  )
27
28
 
@@ -29,17 +30,26 @@ _USED = frozenset({"assistant", "user"})
29
30
  _EDIT_TOOLS = frozenset({"Edit", "Write", "MultiEdit", "NotebookEdit"})
30
31
 
31
32
 
32
- def read(paths: Sequence[Path], *, project: Path | None, now: datetime) -> ReadResult:
33
+ def read(
34
+ paths: Sequence[Path],
35
+ *,
36
+ project: Path | None,
37
+ now: datetime,
38
+ model_names: Sequence[str] = (),
39
+ effort_names: Sequence[str] = (),
40
+ ) -> ReadResult:
33
41
  counts = ReaderCounters()
34
- models: dict[str, int] = {}
35
- efforts: dict[str, int] = {}
42
+ models: dict[str, int] = {name: i for i, name in enumerate(sorted(set(model_names)))}
43
+ efforts: dict[str, int] = {name: i for i, name in enumerate(sorted(set(effort_names)))}
36
44
  versions: dict[str | None, int] = {}
37
45
  workdirs: dict[str | None, int] = {}
38
46
  responses: list[Response] = []
47
+ unconfigured: list[Response] = []
39
48
  edits: list[EditResult] = []
40
49
  seen: set[str] = set()
41
50
  latest_main_response: datetime | None = None
42
51
  for path in paths:
52
+ file_unconfigured: list[Response] = []
43
53
  saved_counts = counts
44
54
  counts = replace(counts)
45
55
  saved_models, saved_efforts = models.copy(), efforts.copy()
@@ -99,6 +109,21 @@ def read(paths: Sequence[Path], *, project: Path | None, now: datetime) -> ReadR
99
109
  latest_main_response = when
100
110
  if not model or not effort:
101
111
  counts.responses_without_setting += 1
112
+ cwd = string_of(data.get("cwd"))
113
+ version = string_of(data.get("version"))
114
+ file_unconfigured.append(
115
+ Response(
116
+ "claude-code",
117
+ when,
118
+ -1,
119
+ -1,
120
+ data.get("isSidechain") is not True,
121
+ None,
122
+ versions.setdefault(version, len(versions)),
123
+ workdirs.setdefault(cwd, len(workdirs)),
124
+ in_project(cwd, project),
125
+ )
126
+ )
102
127
  continue
103
128
  elif identity not in pending:
104
129
  # A later content block cannot supply a missing first setting.
@@ -182,6 +207,7 @@ def read(paths: Sequence[Path], *, project: Path | None, now: datetime) -> ReadR
182
207
  versions, workdirs = saved_versions, saved_workdirs
183
208
  latest_main_response = saved_latest
184
209
  continue
210
+ unconfigured.extend(file_unconfigured)
185
211
  edits.extend(file_edits)
186
212
  seen.update(file_seen)
187
213
  for response in pending.values():
@@ -201,4 +227,6 @@ def read(paths: Sequence[Path], *, project: Path | None, now: datetime) -> ReadR
201
227
  tuple(efforts[effort] for effort in sorted(efforts)),
202
228
  counts,
203
229
  latest_main_response,
230
+ versions=tuple(version_name(version) for version in versions),
231
+ unconfigured_responses=tuple(unconfigured),
204
232
  )