State-machine study: the state_machines/ folder, its card section and validation checks

#1
README.md CHANGED
@@ -140,7 +140,9 @@ and why". It comes in three parts, all in this repository:
140
 
141
  Beside them, [`second_judges/deepseek-v4.1-flash-1017/`](https://huggingface.co/datasets/quickchatai/quickreview-bench/tree/main/second_judges/deepseek-v4.1-flash-1017) holds a second judge's verdicts on the
142
  reviewers of the repository README's full tables, on all three benchmarks,
143
- next to the published judge's ("Second judge").
 
 
144
 
145
  DOI: [10.57967/hf/11598](https://doi.org/10.57967/hf/11598). The code, the benchmark definition and both papers are in the
146
  QuickReview repository, https://github.com/quickchatai/quickreview, under
@@ -211,7 +213,7 @@ config lists a group on each run directory its claims' recompute keys read
211
  and for a script that reads the run archive the keys its `reads` ties to each
212
  unit (the keys whose numbers moved when that unit's files were changed and the
213
  script rerun). A group none of whose keys reads a run is on no run:
214
- `do:sets`, `second-judge`.
215
  Volume names drop the `quickreview-runs-` prefix and the `.tar.zst` suffix.
216
  The scripts are in the QuickReview repository under `bench/aacr/`.
217
 
@@ -240,6 +242,7 @@ The scripts are in the QuickReview repository under `bench/aacr/`.
240
  | QuickReview paper: tuning appendix (prompt iterations, levers, lenses) | `qr:app:tuning` | `arms`, `defect_verdicts` | `aacr-dev-iterations`, `aacr-dev-levers-presets` | `verify_claims.py` (its table checks, `recompute/claim_metrics.py`); `recompute/missed_defects.py` |
241
  | QuickReview paper: the max preset example | `qr:basemodel` | `arms` (`quickreview-max-g61`) | `aacr-g61-smokes` | `compare.py` |
242
  | The second judge beside the published judges (this card's "Second judge"; benchmark paper `tab:dsjudge` and its judge-reliability section; QuickReview paper's limits) | `second-judge` | none: the folder `second_judges/deepseek-v4.1-flash-1017/`, beside the published judge's rows in `defect_verdicts`, `comment_verdicts`, `martian_verdicts`, `martian_reviews`, `qodo_verdicts` | none | `recompute/score_verdicts.py`, `recompute/martian_scores.py`, `recompute/qodo_scores.py` (the folder README's commands); `recompute/second_judges.py`; `validation.json` |
 
243
 
244
  `tab:copilot2025`'s rows are these arms, on the 19 PRs that have a
245
  `copilot-2025-upstream` review (`final/copilot19.txt`):
@@ -739,6 +742,56 @@ run bench/aacr/recompute/qodo_scores.py --data $D --verdicts $V/qodo --judge $L
739
  number of this section from the folder (`second_judge` in
740
  `bench/aacr/claims.json`).
741
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
742
  ## What is not here, and why
743
 
744
  - **QuickReview reviewing the authors' own repositories.** A self-review run
@@ -909,7 +962,7 @@ was verified against, then recompute:
909
 
910
  ```sh
911
  hf download quickchatai/quickreview-bench --repo-type dataset --local-dir quickreview-bench
912
- git clone --branch bench-data-v1 https://github.com/quickchatai/quickreview
913
  cd quickreview
914
  D=../quickreview-bench
915
 
@@ -928,7 +981,7 @@ python3 bench/aacr/recompute/elo_ratings.py slim/elo/martian-hard20-all-gpt --ch
928
  --runs-dir slim/runs --runs-dir slim/open-models/runs
929
  ```
930
 
931
- `bench-data-v1` is the release's tag. It is made on the repository's main
932
  branch when the release's code is merged, and its `bench/aacr/` is the code
933
  this release was built and verified with, file for file.
934
 
@@ -974,10 +1027,10 @@ uv run --no-project --with pyarrow python bench/aacr/verify_claims.py --data $D
974
  It fails on a mismatch, an error, a missing source, a claim with no
975
  recompute script and a claim whose data the release does not hold; left
976
  without an input above, it fails on the claims that need it.
977
- On this release: all 6,337 claims pass, with 0 mismatch, 0 error, 0 missing source and no claim left unchecked. The release's own checks pass 285 of 285: 280 from `validation.json`, re-run on the dataset (271 on the tables and 9 on its `second_judges/` folder), and 5 the slim bundle's. `--partial` without `--martian` and `--qodo-gt` re-runs 283 of them (the slim bundle's Martian and Qodo re-scores need those inputs), and with the tables alone the 271 from `validation.json`.
978
 
979
  Its release checks are the checks of `validation.json` (below) that need only
980
- the tables and the `second_judges/` folder, re-run on your download, and the
981
  slim bundle's own (every file's hash, no transcript text, every Martian and
982
  Qodo scoring dir re-scored, the Elo refit). `validation.json` also holds the checks the export ran against its
983
  own inputs (the source run directories, the commit remap, the archive's index,
@@ -998,10 +1051,10 @@ a missing input fails.
998
  defects, 3,093 exclusions, 185 PRs per full arm, 1,418 references, 173
999
  Martian goldens, 580 Qodo issues), the papers' headline numbers (every arm's
1000
  defects found by severity, comments correct, cost and time; the second judge;
1001
- judge agreement; the AACR metric; Martian and Qodo scores), the open-model
1002
  rows, the Elo ratings (refit from `elo_judgments` and compared with the
1003
  run's own `ratings.json`), the judge coverage above, and that every shipped
1004
- run family has rows in the tables it should. This release passes 504 of 504
1005
  checks.
1006
 
1007
  ## Re-judge with your own judge
 
140
 
141
  Beside them, [`second_judges/deepseek-v4.1-flash-1017/`](https://huggingface.co/datasets/quickchatai/quickreview-bench/tree/main/second_judges/deepseek-v4.1-flash-1017) holds a second judge's verdicts on the
142
  reviewers of the repository README's full tables, on all three benchmarks,
143
+ next to the published judge's ("Second judge"), and [`state_machines/`](https://huggingface.co/datasets/quickchatai/quickreview-bench/tree/main/state_machines)
144
+ holds a study of QuickReview's state-machine review with every label it made
145
+ ("State-machine study").
146
 
147
  DOI: [10.57967/hf/11598](https://doi.org/10.57967/hf/11598). The code, the benchmark definition and both papers are in the
148
  QuickReview repository, https://github.com/quickchatai/quickreview, under
 
213
  and for a script that reads the run archive the keys its `reads` ties to each
214
  unit (the keys whose numbers moved when that unit's files were changed and the
215
  script rerun). A group none of whose keys reads a run is on no run:
216
+ `do:sets`, `second-judge`, `state-machines`.
217
  Volume names drop the `quickreview-runs-` prefix and the `.tar.zst` suffix.
218
  The scripts are in the QuickReview repository under `bench/aacr/`.
219
 
 
242
  | QuickReview paper: tuning appendix (prompt iterations, levers, lenses) | `qr:app:tuning` | `arms`, `defect_verdicts` | `aacr-dev-iterations`, `aacr-dev-levers-presets` | `verify_claims.py` (its table checks, `recompute/claim_metrics.py`); `recompute/missed_defects.py` |
243
  | QuickReview paper: the max preset example | `qr:basemodel` | `arms` (`quickreview-max-g61`) | `aacr-g61-smokes` | `compare.py` |
244
  | The second judge beside the published judges (this card's "Second judge"; benchmark paper `tab:dsjudge` and its judge-reliability section; QuickReview paper's limits) | `second-judge` | none: the folder `second_judges/deepseek-v4.1-flash-1017/`, beside the published judge's rows in `defect_verdicts`, `comment_verdicts`, `martian_verdicts`, `martian_reviews`, `qodo_verdicts` | none | `recompute/score_verdicts.py`, `recompute/martian_scores.py`, `recompute/qodo_scores.py` (the folder README's commands); `recompute/second_judges.py`; `validation.json` |
245
+ | The state-machine study (this card's "State-machine study"; the QuickReview write-up on implicit state machines) | `state-machines` | none: the folder `state_machines/`, beside the answer key's `defects` | none | `recompute/state_machines.py`; `validation.json` |
246
 
247
  `tab:copilot2025`'s rows are these arms, on the 19 PRs that have a
248
  `copilot-2025-upstream` review (`final/copilot19.txt`):
 
742
  number of this section from the folder (`second_judge` in
743
  `bench/aacr/claims.json`).
744
 
745
+ ## State-machine study
746
+
747
+ [`state_machines/`](https://huggingface.co/datasets/quickchatai/quickreview-bench/tree/main/state_machines) holds a study of QuickReview's state-machine review: two
748
+ runs on the 34 AACR-Bench pull requests that hold an earlier list of 45
749
+ labelled state defects (28 of them hold a state defect under the strict
750
+ relabel below), reviewer and judge `gpt-6.1-sol`, one run each. `sm4-p`
751
+ is the state-machine review alone (`review.profile=state-machines`, the eight
752
+ `pass-sm-*` lenses, built from public main). `sm1-c` is the default review
753
+ with its automatic state lens off, on an earlier build from a branch that was
754
+ never published, so its `qcr_commit` is not on public main. The folder holds
755
+ both runs' posted comments and the judge's verdicts, every AI label the study
756
+ made, the earlier builds' found flags and the write-up's charts; its README
757
+ describes every table and how each number is recomputed. No config reads it.
758
+
759
+ **What it found.** Two AI readers relabelled all 186 answer-key defects of
760
+ these pull requests blind, by one rule (a state bug needs a named state and an
761
+ event or sequence): 56 state, 2 borderline, 128 not; 55 of the 56 can happen
762
+ at head. On those 55 the state review found 44 and the default review 45.
763
+ Both reviews also posted real state bugs the answer key does not list. AI
764
+ agents confirmed 50 of them in the code, for 105 known real state bugs. Of
765
+ the 105 the state review found 89 (85%) and the default review 75 (71%), for
766
+ $2.78 and $2.77 a pull request and with 4.7 against 11.7 comments a pull
767
+ request; together they found 95. Of the state review's 159 comments, 96 are
768
+ about state bugs, 31 are borderline and 32 are about something else.
769
+
770
+ **Limits.** AI agents made the answer key, every state label and the checks
771
+ of the bugs outside the key, and no person has checked them. The pool holds
772
+ the state bugs known on these pull requests, so its shares overstate true
773
+ recall. The judge is the reviewer's model, each arm ran once, the default
774
+ arm's build is not the state arm's, and part of the answer key came from the
775
+ default review's own earlier comments.
776
+
777
+ | File | Rows |
778
+ |---|---:|
779
+ | `state_machines/arms.parquet` | 2 |
780
+ | `state_machines/cases.parquet` | 68 |
781
+ | `state_machines/reviews.parquet` | 561 |
782
+ | `state_machines/defect_verdicts.parquet` | 372 |
783
+ | `state_machines/comment_verdicts.parquet` | 561 |
784
+ | `state_machines/state_labels.parquet` | 186 |
785
+ | `state_machines/comment_state_labels.parquet` | 383 |
786
+ | `state_machines/pooled_bugs.parquet` | 105 |
787
+ | `state_machines/misses.parquet` | 12 |
788
+ | `state_machines/earlier_arms.parquet` | 224 |
789
+
790
+ `bench/aacr/recompute/state_machines.py --data <this dataset>` recomputes
791
+ every number of the folder's README from its tables and checks that the
792
+ README is the one they give, and `validation.json` holds the same checks of
793
+ the folder (see "How to verify").
794
+
795
  ## What is not here, and why
796
 
797
  - **QuickReview reviewing the authors' own repositories.** A self-review run
 
962
 
963
  ```sh
964
  hf download quickchatai/quickreview-bench --repo-type dataset --local-dir quickreview-bench
965
+ git clone --branch bench-data-v1.1 https://github.com/quickchatai/quickreview
966
  cd quickreview
967
  D=../quickreview-bench
968
 
 
981
  --runs-dir slim/runs --runs-dir slim/open-models/runs
982
  ```
983
 
984
+ `bench-data-v1.1` is the release's tag. It is made on the repository's main
985
  branch when the release's code is merged, and its `bench/aacr/` is the code
986
  this release was built and verified with, file for file.
987
 
 
1027
  It fails on a mismatch, an error, a missing source, a claim with no
1028
  recompute script and a claim whose data the release does not hold; left
1029
  without an input above, it fails on the claims that need it.
1030
+ On this release: all 6,365 claims pass, with 0 mismatch, 0 error, 0 missing source and no claim left unchecked. The release's own checks pass 303 of 303: 298 from `validation.json`, re-run on the dataset (271 on the tables, 9 on its `second_judges/` folder and 18 on its `state_machines/` folder), and 5 the slim bundle's. `--partial` without `--martian` and `--qodo-gt` re-runs 301 of them (the slim bundle's Martian and Qodo re-scores need those inputs), and with the tables alone the 271 from `validation.json`.
1031
 
1032
  Its release checks are the checks of `validation.json` (below) that need only
1033
+ the tables and the `second_judges/` and `state_machines/` folders, re-run on your download, and the
1034
  slim bundle's own (every file's hash, no transcript text, every Martian and
1035
  Qodo scoring dir re-scored, the Elo refit). `validation.json` also holds the checks the export ran against its
1036
  own inputs (the source run directories, the commit remap, the archive's index,
 
1051
  defects, 3,093 exclusions, 185 PRs per full arm, 1,418 references, 173
1052
  Martian goldens, 580 Qodo issues), the papers' headline numbers (every arm's
1053
  defects found by severity, comments correct, cost and time; the second judge;
1054
+ the state-machine study; judge agreement; the AACR metric; Martian and Qodo scores), the open-model
1055
  rows, the Elo ratings (refit from `elo_judgments` and compared with the
1056
  run's own `ratings.json`), the judge coverage above, and that every shipped
1057
+ run family has rows in the tables it should. This release passes 522 of 522
1058
  checks.
1059
 
1060
  ## Re-judge with your own judge
state_machines/README.md ADDED
@@ -0,0 +1,163 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # State-machine study
2
+
3
+ A study of QuickReview's state-machine review on the 34 AACR-Bench pull requests that hold the
4
+ earlier list of 45 labelled state defects (28 of them hold a state
5
+ defect under the strict relabel below), with the default review beside it. It holds the two runs'
6
+ posted comments and judge verdicts, every label the study made, and the earlier builds' found flags on
7
+ the answer key's state defects. No config of the card reads this folder, so `load_dataset` returns the
8
+ same rows with or without it. `bench/aacr/recompute/state_machines.py --data <this dataset>` recomputes
9
+ every number below from these tables alone, checks that this README is the one the tables give, and
10
+ runs the release's other checks of the folder (`validation.json` holds them).
11
+
12
+ The folder backs the write-up's sections on the merged build: the strict relabel, the two runs on all
13
+ 34 pull requests, the bugs outside the answer key, and the cost of the two runs. It does not back
14
+ the write-up's earlier tests on the list of 45 (their recall, costs and miss traces), the
15
+ lookup tool's and the validator's audits, or the self-review of the change that adds the state lenses.
16
+
17
+ ## The two runs
18
+
19
+ | Arm | What ran | Inline comments | $ per PR | Minutes per PR |
20
+ |---|---|---|---|---|
21
+ | `sm4-p` | the state-machine review: `review.profile=state-machines`, the eight `pass-sm-*` lenses alone, at deep on every change, on public main | 159 | 2.78 | 12.0 |
22
+ | `sm1-c` | the default review with its automatic state lens off (`state_machines.triggers=off`), on an earlier build from a branch that was never published (`arms.qcr_commit_on_public_main` false) | 397 | 2.77 | 14.0 |
23
+
24
+ Reviewer and judge gpt-6.1-sol, the judge at high effort; one run each. Cost is the list-price
25
+ equivalent, priced per review as the dataset's `reviews.cost_usd` is (compare.usd_and_minutes).
26
+ Every count of comments here is of inline comments; the default review also posted
27
+ 5 findings in its review body, and the state review
28
+ 0.
29
+
30
+ ## Tables
31
+
32
+ Every table is a `.parquet` file in this folder.
33
+
34
+ - `arms`: the two runs: image, config, `profile` (null when the run set none), the build commit as the
35
+ release states one (`qcr_commit`, `qcr_commit_on_public_main`, `qcr_commit_match`, `qcr_commit_dirty`,
36
+ see the card's `runs`), pi, models, run directories.
37
+ - `cases`: one row per arm and pull request: set, run, `status` (the case's run status), the
38
+ review's `verdict` (`APPROVE`, `COMMENT` or `REQUEST_CHANGES`), cost, minutes, `n_posted` (the inline
39
+ comments), whether the judge read it, and the judge's token usage.
40
+ - `reviews`: every finding of both runs as QuickReview posted it, with the judge's id for it
41
+ (`comment_id`, C1..Cn). An inline comment has `inline` true, `index` from 0 in posting order, and the
42
+ `path`, `line`, `side` and `body` it was posted with. A finding posted in the review body instead has
43
+ `inline` false, `index` null, its `path` and last `line`, and its text as the judge read it.
44
+ - `defect_verdicts`, `comment_verdicts`: the judge's verdicts, with the dataset's columns of the same
45
+ names (`judge`, `key_version`, `credit`, ...) except `run_family`, since these runs are not in its
46
+ `runs` table; `comment_verdicts.index` is the inline comment the judged row is (null for a finding
47
+ posted in the review body). The answer-key defects themselves are in the dataset's `defects` table,
48
+ by `instance_id` and `defect_id`.
49
+ - `state_labels`: all 186 answer-key defects of these pull requests, relabelled blind by
50
+ two AI readers (a third settled 28 disagreements, `how` `tiebreak`): `verdict`
51
+ `state_machine`, `borderline` or `not`, by the rule that a state bug needs a named state and an event
52
+ or sequence, so that a single call with fresh state would behave correctly; `klass`, the kind of state
53
+ bug; `old45`, whether the defect was on the earlier list of 45; `reachable`, false for a
54
+ state defect a second reader agreed cannot happen at head; `votes`, each reader's verdict, kind and
55
+ reason. Where a reason repeated 10 or more words in a row of the defect's own text, those
56
+ words are replaced by `[words of the answer key's defect]`; the text is in `defects`.
57
+ - `comment_state_labels`: every inline comment of the state review (159), and
58
+ every inline comment of the default review that the judge matched to no answer-key defect
59
+ (224), labelled with the same rule: `title`, the comment's first line;
60
+ `verdict`, `klass` and `reason`. The state review's non-state calls were read a second time
61
+ (64 reads, 2 changed): `first_verdict` is
62
+ the first reader's, `second_read_*` the second read's, and `verdict` the final one. `key_defect` is
63
+ the answer-key defect the judge matched a state-review comment to (null when none, and for the
64
+ default review's rows). `real_if_unlisted` is, for a state comment that matches no answer-key defect,
65
+ whether a reader found the bug real at head (`real` or `unsure`), and `n/a` for every other comment.
66
+ - `pooled_bugs`: the 105 known real state bugs: the 55 reachable strict state
67
+ defects of the answer key (`source` `answer-key`, `local_id` the defect id) and 50
68
+ real state bugs either review posted that the key does not list (`source` `unlisted`, `local_id`
69
+ U1..; `statement` is ours). An unlisted bug was confirmed in the code at head by an AI reader and
70
+ re-checked by a sceptical one (`check_reason`); a candidate the check rated unsure at head is left
71
+ out. The inline comments that raise it are listed by `index` (`state_review_comments`,
72
+ `default_review_comments`); each one only one review found was checked once more blind to which
73
+ review posted it (`blind_*`). The answer-key rows' found flags are the judge's verdicts (`found`);
74
+ the unlisted rows' are the labels, and each is true exactly when its list of comments is not empty.
75
+ - `misses`: the state review's 12 misses on the strict state defects, each traced
76
+ through the run's plan, lens transcripts and candidate findings (the trace itself is not here): the
77
+ `cause`, the lens that owned the defect (`owning_lens`), the lenses the run's plan held
78
+ (`planned_lenses`), and what would have caught it; `second_read_*` is a second reader's check of the
79
+ cause where one was made, and `relabel_note` says why a cause was changed on review (null where it
80
+ was not).
81
+ - `earlier_arms`: whether each of four earlier builds found each strict state defect (judge verdict
82
+ `found`); derived flags only, their reviews are not in this folder.
83
+ - `figures/`: the write-up's four charts.
84
+
85
+ ## The numbers, and how each is recomputed
86
+
87
+ **The strict relabel** (`state_labels`): 56 state, 2 borderline,
88
+ 128 not, of 186; 55 of the state ones are reachable at
89
+ head, and 21 of them were not on the earlier list. Of the earlier list of
90
+ 45 (`old45`): 35 state, 2 borderline, 8 not.
91
+
92
+ **Answer-key recall** on the 55 (`defect_verdicts.verdict` `found`, against the
93
+ reachable state rows of `state_labels`): the state review 44 (80%),
94
+ the default review 45 (82%). The state review found
95
+ 0 the default review did not; the default review found
96
+ 1 the state review did not (`immich-app__immich@b7a1255#D2`). On the earlier list of
97
+ 45 the state review found 35 and the default review
98
+ 36. The earlier builds (`earlier_arms`):
99
+
100
+ | Arm | Build | Found of 55 |
101
+ |---|---|---|
102
+ | `sm1-s4` | the state-machine review's first version: four state lenses on every change, the other four on a signal | 38 (69%) |
103
+ | `sm1-s8` | all eight state lenses on every change, normal effort | 39 (71%) |
104
+ | `sm1-s8d` | all eight state lenses on every change, higher effort, before the lookup tool | 43 (78%) |
105
+ | `sm1-r` | the eight state lenses added to the default review, in one run (an earlier build) | 46 (84%) |
106
+
107
+ **The pool** (`pooled_bugs`): 105 known real state bugs, 55 in the answer key and
108
+ 50 outside it. Found: the state review 89 (85%), the
109
+ default review 75 (71%), either 95
110
+ (90%). Of the unlisted: 25 both, 20 only the
111
+ state review, 5 only the default review; 25 of the
112
+ 25 one-sided ones held when re-checked blind.
113
+
114
+ | Class | Pool | State review | Default review |
115
+ |---|---|---|---|
116
+ | event-order | 31 | 29 | 22 |
117
+ | stale-copy | 25 | 18 | 16 |
118
+ | lifecycle-order | 18 | 17 | 13 |
119
+ | stored-state | 13 | 8 | 10 |
120
+ | stuck-state | 8 | 7 | 7 |
121
+ | unhandled-state | 4 | 4 | 3 |
122
+ | unchecked-transition | 3 | 3 | 3 |
123
+ | impossible-states | 3 | 3 | 1 |
124
+
125
+ **Comments** (`reviews` with `inline` true, `comment_state_labels`, `comment_verdicts`): the state review
126
+ posted 159 (4.7 per PR), 96 state
127
+ (60%), 31 borderline and
128
+ 32 not (20%); the judge graded
129
+ 28 of the 32 not-state ones correct. The
130
+ default review posted 397 (11.7 per PR),
131
+ 224 of them matched to no answer-key defect; together
132
+ 16.4 per PR. Of all 186 answer-key defects, of every kind, the
133
+ default review found 161 (`found`; 1 more partly) and
134
+ the state review 92 (0 more partly). A judge's credit
135
+ for a finding posted in the review body counts: its text is the `reviews` row with `inline` false.
136
+
137
+ **Misses** (`misses`): 12, 11 of them real: 5
138
+ where a lens read the site and reported nothing, 6 where it
139
+ reported a different problem at the site, 1 not real at head.
140
+ They are exactly the strict state defects the state review did not find.
141
+
142
+ **Cost** (`cases.usd`): 2.78 and 2.77 dollars
143
+ per PR, rounded to cents as the write-up prints them; both runs together cost
144
+ 5.56 per PR, the exact sum (5.5566) rounded, not the sum of
145
+ the two rounded costs.
146
+
147
+ ## Limits
148
+
149
+ - AI agents made the answer key, the state labels, the comment labels and the checks of the unlisted
150
+ bugs, and no person has checked them.
151
+ - The pool counts the state bugs known on these pull requests. A state bug that neither review found and
152
+ the answer key does not list cannot be counted, so the pooled shares are of the known bugs and
153
+ overstate true recall.
154
+ - The answer-key part is scored by the judge; the unlisted part by AI agents reading the code.
155
+ - One run per arm. A repeat of one earlier build differed by one defect.
156
+ - The default arm ran with its automatic state lens off, on an earlier build from a branch that was never
157
+ published; the merge did not change its other lenses.
158
+ - The judge is the reviewer's model, gpt-6.1-sol.
159
+ - Part of the answer key entered it through the default review's own earlier comments, which favours
160
+ the default review on the key.
161
+ - The pull requests were chosen because they hold labelled state defects, so state bugs are more common
162
+ in them than in ordinary pull requests.
163
+ - The earlier builds' reviews and costs are not in this folder; their found flags are.
state_machines/arms.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d753e5c656c1f5d8720a69dfd35caf3e381fb665fb1f927b20214932983f7e18
3
+ size 6598
state_machines/cases.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da4c7d797a117695aa62f730842e61236dfc96305f7d06ec6c01c6da85275345
3
+ size 6793
state_machines/comment_state_labels.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5228a9be3dd7210eecd8aabfe4fa4ac5be28763d7aabe293cdd11a2af6bb4138
3
+ size 45630
state_machines/comment_verdicts.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4e33ed7b12d049b7ba9ba7b8e9e77a34c2aa001f5018d47b3b63b8832c4e0d2c
3
+ size 40183
state_machines/defect_verdicts.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7e8fcc7ee8cfd98099deefd164a8e345bebef37633bd4a1e59b085f38f17f678
3
+ size 19766
state_machines/earlier_arms.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cebb3647d9ee542cd8a314a5024a84cd880bd14c08b6681f79adce4e95528db3
3
+ size 2655
state_machines/figures/fig1-every-known-state-bug.svg ADDED
state_machines/figures/fig2-outside-the-answer-key.svg ADDED
state_machines/figures/fig3-builds-on-the-answer-key.svg ADDED
state_machines/figures/fig4-by-kind.svg ADDED
state_machines/misses.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a5638cd6bcc5ea1bb60ffa328a90b3799ee2ee1f7978e5c249c933d5964662f9
3
+ size 18050
state_machines/pooled_bugs.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:31cad52ce689d13658535675ff9fa89d5488d99524d8073690364b2fda79eae3
3
+ size 72238
state_machines/reviews.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a36e3876a45be049c3fb6239ce58a32115dbcbe920d5156c12580e559a9591ca
3
+ size 145158
state_machines/state_labels.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c899aeae10986ff0c711e84f8a4a74a3466b56646ad56a8993f4954785ba4a1a
3
+ size 35359
validation.json CHANGED
@@ -3146,6 +3146,356 @@
3146
  "want": {},
3147
  "ok": true
3148
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3149
  {
3150
  "check": "figures: every chart the papers include is byte-identical in the repository and in figures/",
3151
  "got": [],
 
3146
  "want": {},
3147
  "ok": true
3148
  },
3149
+ {
3150
+ "check": "state_machines: every file is the committed manifest's (bench/aacr/hf/state-machines.sha256), none missing, extra or differing",
3151
+ "got": {
3152
+ "missing": [],
3153
+ "extra": [],
3154
+ "differs": []
3155
+ },
3156
+ "want": {
3157
+ "missing": [],
3158
+ "extra": [],
3159
+ "differs": []
3160
+ },
3161
+ "ok": true
3162
+ },
3163
+ {
3164
+ "check": "state_machines: every table has exactly its listed columns (no answer-key defect text)",
3165
+ "got": {},
3166
+ "want": {},
3167
+ "ok": true
3168
+ },
3169
+ {
3170
+ "check": "state_machines: the rows are whole: both arms judged on the same pull requests, one verdict per arm on every labelled answer-key defect, every judged comment a posted one (inline or in the review body), every labelled comment an inline one, the default review's labelled comments exactly its inline comments matched to no answer-key defect, and every unlisted bug found exactly by the reviews whose inline comments it lists",
3171
+ "got": {},
3172
+ "want": {},
3173
+ "ok": true
3174
+ },
3175
+ {
3176
+ "check": "state_machines: README.md is the README its tables give (state_machines.readme of numbers())",
3177
+ "got": true,
3178
+ "want": true,
3179
+ "ok": true
3180
+ },
3181
+ {
3182
+ "check": "state_machines: no label text of ours repeats 10 words in a row of an answer-key defect's text (the dataset's `defects`)",
3183
+ "got": {},
3184
+ "want": {},
3185
+ "ok": true
3186
+ },
3187
+ {
3188
+ "check": "state_machines: both arms reviewed the same pull requests",
3189
+ "got": 34,
3190
+ "want": 34,
3191
+ "ok": true
3192
+ },
3193
+ {
3194
+ "check": "state_machines: the strict relabel of the answer-key defects: state, borderline and not, the state ones reachable at head, and the state ones not on the earlier list of 45",
3195
+ "got": {
3196
+ "total": 186,
3197
+ "state": 56,
3198
+ "borderline": 2,
3199
+ "not": 128,
3200
+ "reachable": 55,
3201
+ "state_not_old45": 21
3202
+ },
3203
+ "want": {
3204
+ "total": 186,
3205
+ "state": 56,
3206
+ "borderline": 2,
3207
+ "not": 128,
3208
+ "reachable": 55,
3209
+ "state_not_old45": 21
3210
+ },
3211
+ "ok": true
3212
+ },
3213
+ {
3214
+ "check": "state_machines: the earlier list of 45 state defects under the strict relabel, and how many of them the default review found",
3215
+ "got": {
3216
+ "total": 45,
3217
+ "state": 35,
3218
+ "borderline": 2,
3219
+ "not": 8,
3220
+ "found_default": 36
3221
+ },
3222
+ "want": {
3223
+ "total": 45,
3224
+ "state": 35,
3225
+ "borderline": 2,
3226
+ "not": 8,
3227
+ "found_default": 36
3228
+ },
3229
+ "ok": true
3230
+ },
3231
+ {
3232
+ "check": "state_machines: answer-key recall on the reachable strict state defects (judge verdict found), of the two runs and the four earlier builds",
3233
+ "got": {
3234
+ "sm4-p": 44,
3235
+ "sm1-c": 45,
3236
+ "sm1-s4": 38,
3237
+ "sm1-s8": 39,
3238
+ "sm1-s8d": 43,
3239
+ "sm1-r": 46
3240
+ },
3241
+ "want": {
3242
+ "sm4-p": 44,
3243
+ "sm1-c": 45,
3244
+ "sm1-s4": 38,
3245
+ "sm1-s8": 39,
3246
+ "sm1-s8d": 43,
3247
+ "sm1-r": 46
3248
+ },
3249
+ "ok": true
3250
+ },
3251
+ {
3252
+ "check": "state_machines: the reachable strict state defects one run found and the other did not, and which",
3253
+ "got": {
3254
+ "state_not_default": 0,
3255
+ "default_not_state": 1,
3256
+ "default_not_state_ids": [
3257
+ "immich-app__immich@b7a1255#D2"
3258
+ ]
3259
+ },
3260
+ "want": {
3261
+ "state_not_default": 0,
3262
+ "default_not_state": 1,
3263
+ "default_not_state_ids": [
3264
+ "immich-app__immich@b7a1255#D2"
3265
+ ]
3266
+ },
3267
+ "ok": true
3268
+ },
3269
+ {
3270
+ "check": "state_machines: the pool of known real state bugs (answer key + unlisted) and how many of them each run and either run found; the answer-key part's found flags are the judge's verdicts",
3271
+ "got": {
3272
+ "total": 105,
3273
+ "key": 55,
3274
+ "unlisted": 50,
3275
+ "sm4-p": 89,
3276
+ "sm1-c": 75,
3277
+ "union": 95
3278
+ },
3279
+ "want": {
3280
+ "total": 105,
3281
+ "key": 55,
3282
+ "unlisted": 50,
3283
+ "sm4-p": 89,
3284
+ "sm1-c": 75,
3285
+ "union": 95
3286
+ },
3287
+ "ok": true
3288
+ },
3289
+ {
3290
+ "check": "state_machines: the unlisted bugs found by both runs or by one, and the one-sided ones re-checked blind",
3291
+ "got": {
3292
+ "both": 25,
3293
+ "state_only": 20,
3294
+ "default_only": 5,
3295
+ "blind_checked": 25,
3296
+ "blind_agree": 25
3297
+ },
3298
+ "want": {
3299
+ "both": 25,
3300
+ "state_only": 20,
3301
+ "default_only": 5,
3302
+ "blind_checked": 25,
3303
+ "blind_agree": 25
3304
+ },
3305
+ "ok": true
3306
+ },
3307
+ {
3308
+ "check": "state_machines: per class of state bug: pool, state review, default review",
3309
+ "got": {
3310
+ "event-order": [
3311
+ 31,
3312
+ 29,
3313
+ 22
3314
+ ],
3315
+ "stale-copy": [
3316
+ 25,
3317
+ 18,
3318
+ 16
3319
+ ],
3320
+ "lifecycle-order": [
3321
+ 18,
3322
+ 17,
3323
+ 13
3324
+ ],
3325
+ "stored-state": [
3326
+ 13,
3327
+ 8,
3328
+ 10
3329
+ ],
3330
+ "stuck-state": [
3331
+ 8,
3332
+ 7,
3333
+ 7
3334
+ ],
3335
+ "unhandled-state": [
3336
+ 4,
3337
+ 4,
3338
+ 3
3339
+ ],
3340
+ "unchecked-transition": [
3341
+ 3,
3342
+ 3,
3343
+ 3
3344
+ ],
3345
+ "impossible-states": [
3346
+ 3,
3347
+ 3,
3348
+ 1
3349
+ ]
3350
+ },
3351
+ "want": {
3352
+ "event-order": [
3353
+ 31,
3354
+ 29,
3355
+ 22
3356
+ ],
3357
+ "stale-copy": [
3358
+ 25,
3359
+ 18,
3360
+ 16
3361
+ ],
3362
+ "lifecycle-order": [
3363
+ 18,
3364
+ 17,
3365
+ 13
3366
+ ],
3367
+ "stored-state": [
3368
+ 13,
3369
+ 8,
3370
+ 10
3371
+ ],
3372
+ "stuck-state": [
3373
+ 8,
3374
+ 7,
3375
+ 7
3376
+ ],
3377
+ "unhandled-state": [
3378
+ 4,
3379
+ 4,
3380
+ 3
3381
+ ],
3382
+ "unchecked-transition": [
3383
+ 3,
3384
+ 3,
3385
+ 3
3386
+ ],
3387
+ "impossible-states": [
3388
+ 3,
3389
+ 3,
3390
+ 1
3391
+ ]
3392
+ },
3393
+ "ok": true
3394
+ },
3395
+ {
3396
+ "check": "state_machines: the percentages: answer-key recall, the pool found, and the state review's comments about something else",
3397
+ "got": {
3398
+ "key": {
3399
+ "sm4-p": 80,
3400
+ "sm1-c": 82,
3401
+ "sm1-s4": 69,
3402
+ "sm1-s8": 71,
3403
+ "sm1-s8d": 78
3404
+ },
3405
+ "pool": {
3406
+ "sm4-p": 85,
3407
+ "sm1-c": 71,
3408
+ "union": 90
3409
+ },
3410
+ "state_comments_not": 20
3411
+ },
3412
+ "want": {
3413
+ "key": {
3414
+ "sm4-p": 80,
3415
+ "sm1-c": 82,
3416
+ "sm1-s4": 69,
3417
+ "sm1-s8": 71,
3418
+ "sm1-s8d": 78
3419
+ },
3420
+ "pool": {
3421
+ "sm4-p": 85,
3422
+ "sm1-c": 71,
3423
+ "union": 90
3424
+ },
3425
+ "state_comments_not": 20
3426
+ },
3427
+ "ok": true
3428
+ },
3429
+ {
3430
+ "check": "state_machines: the inline comments: the state review's by label after the second reads, its not-state ones the judge graded correct, the default review's, and comments per pull request",
3431
+ "got": {
3432
+ "sm4-p": 159,
3433
+ "state": 96,
3434
+ "borderline": 31,
3435
+ "not": 32,
3436
+ "not_judged_correct": 28,
3437
+ "sm1-c": 397,
3438
+ "per_pr_state": 4.7,
3439
+ "per_pr_default": 11.7,
3440
+ "per_pr_union": 16.4
3441
+ },
3442
+ "want": {
3443
+ "sm4-p": 159,
3444
+ "state": 96,
3445
+ "borderline": 31,
3446
+ "not": 32,
3447
+ "not_judged_correct": 28,
3448
+ "sm1-c": 397,
3449
+ "per_pr_state": 4.7,
3450
+ "per_pr_default": 11.7,
3451
+ "per_pr_union": 16.4
3452
+ },
3453
+ "ok": true
3454
+ },
3455
+ {
3456
+ "check": "state_machines: the answer-key defects of every kind the default review found",
3457
+ "got": {
3458
+ "found": 161,
3459
+ "of": 186
3460
+ },
3461
+ "want": {
3462
+ "found": 161,
3463
+ "of": 186
3464
+ },
3465
+ "ok": true
3466
+ },
3467
+ {
3468
+ "check": "state_machines: the state review's misses on the strict state defects, by cause",
3469
+ "got": {
3470
+ "total": 12,
3471
+ "real": 11,
3472
+ "site_read_nothing_reported": 5,
3473
+ "reported_a_different_problem": 6,
3474
+ "defect_not_real_or_unreachable": 1
3475
+ },
3476
+ "want": {
3477
+ "total": 12,
3478
+ "real": 11,
3479
+ "site_read_nothing_reported": 5,
3480
+ "reported_a_different_problem": 6,
3481
+ "defect_not_real_or_unreachable": 1
3482
+ },
3483
+ "ok": true
3484
+ },
3485
+ {
3486
+ "check": "state_machines: list-price dollars per pull request (compare.usd_and_minutes), and both runs' exact combined cost rounded",
3487
+ "got": {
3488
+ "usd_per_pr_state": 2.78,
3489
+ "usd_per_pr_default": 2.77,
3490
+ "usd_per_pr_both": 5.56
3491
+ },
3492
+ "want": {
3493
+ "usd_per_pr_state": 2.78,
3494
+ "usd_per_pr_default": 2.77,
3495
+ "usd_per_pr_both": 5.56
3496
+ },
3497
+ "ok": true
3498
+ },
3499
  {
3500
  "check": "figures: every chart the papers include is byte-identical in the repository and in figures/",
3501
  "got": [],