Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
1ca9e5c
bench(form-tx): third held-out set, two new carrier quote portals
abrichr Nov 21, 2026
e67d58c
bench(form-tx): reference runs and manifest for the third held-out set
abrichr Nov 21, 2026
a45523a
bench(form-tx): operator answers for the stop cases in the third held…
abrichr Nov 21, 2026
177378a
bench(form-tx): re-record reference runs and manifest for the third h…
abrichr Nov 21, 2026
6174801
fix(form-tx): re-check after a sign-in, watch unbound controls, name …
abrichr Nov 21, 2026
f5b14f5
Merge branch 'claude/form-tx-rework' into claude/form-tx-rework-run
abrichr Nov 21, 2026
8a9f08b
fix(form-tx): an empty read-only box the intake has a value for also …
abrichr Nov 21, 2026
f425b6a
Merge branch 'claude/form-tx-rework' into claude/form-tx-rework-run
abrichr Nov 21, 2026
0de9e75
bench(form-tx): pre-register the third held-out run (two new portals)…
abrichr Nov 21, 2026
41da115
Merge remote-tracking branch 'origin/claude/form-tx-heldout3-portals'…
abrichr Nov 21, 2026
322f7fa
bench(form-tx): wire the third held-out set into the runner, summariz…
abrichr Nov 21, 2026
f8b2a1f
bench(form-tx): dev-case demonstrations for the third held-out set
abrichr Nov 21, 2026
33851c2
fix(form-tx): intake values no binding enters block verified; name le…
abrichr Nov 21, 2026
ad7afd3
Merge branch 'claude/form-tx-rework' into claude/form-tx-rework-run
abrichr Nov 21, 2026
13772e2
docs(form-tx): capabilities row for the rework; refresh the review brief
abrichr Nov 21, 2026
2b87134
Merge branch 'claude/form-tx-rework' into claude/form-tx-rework-run
abrichr Nov 21, 2026
85606e0
bench(form-tx): packs for the third held-out set (dev case only), eng…
abrichr Nov 21, 2026
a1f024d
bench(form-tx): third held-out run, arms A and B rows and results (ve…
abrichr Nov 21, 2026
d17cda2
bench(form-tx): dev re-run of the eight earlier portals on the rework…
abrichr Nov 21, 2026
74b42ad
bench(form-tx): third held-out results, causes checked against trap l…
abrichr Nov 21, 2026
866aac8
fix(form-tx): re-walk only from the first visited screen; mypy fixes
abrichr Nov 21, 2026
4a3a749
Merge branch 'claude/form-tx-rework' into claude/form-tx-rework-run
abrichr Nov 21, 2026
4a1f52a
bench(form-tx): fourth held-out set of synthetic quote portals
abrichr Nov 21, 2026
b4180ba
bench(form-tx): operator answers for recurring questions in set 4
abrichr Nov 21, 2026
d84e57c
ci(form-tx): rename the held-out answers file so CI does not read it …
abrichr Nov 21, 2026
fa26f69
fix(form-tx): a written field with no expected value and an empty sum…
abrichr Nov 21, 2026
c329c57
fix(form-tx): a leading-part type-ahead match counts only after this …
abrichr Nov 21, 2026
dd78df9
fix(form-tx): absent-evidence-as-success and partial-match-as-match, …
abrichr Nov 21, 2026
a055c4a
fix(form-tx): partial-match-as-match for type-ahead picks, by class
abrichr Nov 21, 2026
be4ee06
fix(form-tx): bind coverage to observations and save evidence (absent…
abrichr Nov 21, 2026
86e32aa
feat(form-tx): stop on shown-but-unanswered fields, check the review …
abrichr Nov 21, 2026
6fcff6c
Merge remote-tracking branch 'origin/claude/form-tx-weekend' into cla…
abrichr Nov 21, 2026
8ffc791
Merge remote-tracking branch 'origin/claude/form-gap-2-typeahead' int…
abrichr Nov 21, 2026
1dbb756
bench(form-tx): pre-register Set 4 (three new portals, arms A, B0 and…
abrichr Nov 21, 2026
ec001cb
Merge remote-tracking branch 'origin/claude/form-tx-heldout4-portals'…
abrichr Nov 21, 2026
a96e612
bench(form-tx): wire Set 4 into the runner and summarizer (arm B and …
abrichr Nov 21, 2026
c0f6367
fix(form-tx): merge follow-ups: group-named kept writes, leading-part…
abrichr Nov 21, 2026
dff5bf0
fix(form-tx): save evidence and subject coverage at the signer (absen…
abrichr Nov 21, 2026
99b150f
bench(form-tx): Set 4 dev-case demonstrations (captured before every …
abrichr Nov 21, 2026
84e484a
Merge claude/form-tx-weekend (open-stop guard) into #2448; pre-click …
abrichr Nov 21, 2026
b297d31
bench(form-tx): Set 4 arm B0 packs (round-2 engine 866aac8c1, no comp…
abrichr Nov 21, 2026
50bc2fe
Merge remote-tracking branch 'origin/claude/form-tx-weekend' into cla…
abrichr Nov 21, 2026
33484ac
Merge commit '84e484a27180987d20eaba0ede6fcd1d229d5129' into claude/f…
abrichr Nov 21, 2026
d9777a3
feat(form-tx): review skips are not_checked, unknown saves on non-net…
abrichr Nov 21, 2026
ab14206
Merge commit 'd9777a34c6ccba6677fe730467067d6c182dc9a6' into claude/f…
abrichr Nov 21, 2026
5798bbc
fix(form-tx): a radio group is one subject in the write ledger (absen…
abrichr Nov 22, 2026
1ddd697
fix(form-tx): intake values the portal never asks for are named not c…
abrichr Nov 22, 2026
1f7fcea
bench(form-tx): pre-register Set 4 v2 (sealed portals); first Set 4 b…
abrichr Nov 22, 2026
38363d9
Merge branch 'claude/form-tx-rework' into claude/form-tx-rework-run
abrichr Nov 22, 2026
60e7f30
bench(form-tx): Set 4 v2 runner wiring (sealed portals via FORM_TX_SE…
abrichr Nov 22, 2026
a4e890c
bench(form-tx): Set 4 v2 packs for arms B0 and B (dev case only), dev…
abrichr Nov 22, 2026
8ec8d73
bench(form-tx): Set 4 v2 arms A, B0 and B, results (halving test kill…
abrichr Nov 22, 2026
aa0a70c
bench(form-tx): B vs B0 breakdown on Set 4 v2; scripted operator maps…
abrichr Nov 22, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitleaksignore
Original file line number Diff line number Diff line change
Expand Up @@ -216,3 +216,10 @@ e4ebb9330cf3fcbf3de89a76d912cf3609163b22:packages/flow/tests/test_choice_widgets
cc5fba3e0b69646430c7e11ae0c181aaaad82d7f:packages/flow/tests/test_sanitized_artifact.py:gitlab-pat:1891
# #2293 squash merge: the same tx/lens.py:885 type annotation that is already ignored at 7571d9c8 (no secret).
5e37bf177d46afddb4e48ea7b1bf87499964e276:packages/flow/openadapt_flow/tx/lens.py:generic-api-key:885
# PR #2429: sha256 digests of the synthetic held-out benchmark's answers file in
# MANIFEST.json, under the old "answer_key" names (renamed to answers.json and
# answers_sha256, so new commits no longer match). Digests, not keys.
36be56dcd6fdc9adc97567bce272ab81d2a528ff:packages/flow/benchmark/form_tx_heldout/MANIFEST.json:generic-api-key:3
36be56dcd6fdc9adc97567bce272ab81d2a528ff:packages/flow/benchmark/form_tx_heldout/MANIFEST.json:generic-api-key:8
3146a82dd83641e83021d7034aaf03411c635555:packages/flow/benchmark/form_tx_heldout/MANIFEST.json:generic-api-key:3
3146a82dd83641e83021d7034aaf03411c635555:packages/flow/benchmark/form_tx_heldout/MANIFEST.json:generic-api-key:6
2 changes: 1 addition & 1 deletion CAPABILITIES.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ improvising or retrying when something is off.
| Read the saved record back from the system of record (API, database, FHIR, separate session) | Released | Real app (OpenEMR 12 of 12 fields) | [VERIFICATION.md](packages/flow/docs/VERIFICATION.md), `runtime/effects/` |
| Read values out of an app as a workflow step (READ), with a records format, a signed review queue and export to CSV or a database | Released ([#1229](https://github.com/OpenAdaptAI/OpenAdapt/pull/1229), [#1215](https://github.com/OpenAdaptAI/OpenAdapt/pull/1215), [#1218](https://github.com/OpenAdaptAI/OpenAdapt/pull/1218)–[#1224](https://github.com/OpenAdaptAI/OpenAdapt/pull/1224)) | Synthetic (mock desktop apps) | `openadapt_flow/interchange/` |
| Stop before the effect instead of improvising (`HALTED_BEFORE_EFFECT`) | Released | Real app and synthetic | `runtime/replayer.py` |
| Fill a multi-step browser form or quote wizard from an intake record, including forms in same-origin iframes and open shadow roots, typed type-aheads, radio groups and two-step or in-page popup estimators; stop for an operator on a prefill that disagrees with the intake, a question the intake does not answer, a sign-in wall or session-expiry banner, or a control it cannot act on; submit once; and give every typed, selected or kept field a read-back verdict (`passed`, `failed` or `not_checked`), including from summaries shown as page text. A field it cannot read back is `not_checked`, never passed; such a submit ends `readback_incomplete` with no receipt ([#2449](https://github.com/OpenAdaptAI/OpenAdapt/pull/2449), [#2448](https://github.com/OpenAdaptAI/OpenAdapt/pull/2448), [#2440](https://github.com/OpenAdaptAI/OpenAdapt/pull/2440), [#2441](https://github.com/OpenAdaptAI/OpenAdapt/pull/2441), [#2447](https://github.com/OpenAdaptAI/OpenAdapt/pull/2447)) | On main, prototype; not on PyPI until Flow 3.4.0 ([#2308](https://github.com/OpenAdaptAI/OpenAdapt/pull/2308)) | Synthetic only, pre-registered. Four new held-out quote portals, 33 cases: 6 correct, 5 wrong submitted (all flagged after submit, none with a receipt), 1 verified with a receipt; 15 of 18 trap cases stopped before submit but none of those then ended correct; 10 of 15 clean cases stopped. Verdict: rework. On the first four portals (now a dev set) 20 of 32 correct, 10 verified, and 2 receipts for wrong quotes, because a receipt covers only the fields the pack binds. A sign-in mid-quote can reset fields the layer does not re-check (caught by read-back). Rule proposals from repeated operator answers had no measured effect ([RESULTS](packages/flow/benchmark/form_tx_heldout2_run/RESULTS.md)) | `openadapt_flow/form_tx/`, [FORM_TX.md](packages/flow/docs/FORM_TX.md) |
| Fill a multi-step browser form or quote wizard from an intake record, including forms in same-origin iframes and open shadow roots, typed type-aheads, radio groups and two-step or in-page popup estimators; stop for an operator on a prefill that disagrees with the intake, a question the intake does not answer, a sign-in wall or session-expiry banner, or a control it cannot act on; submit once; and give every typed, selected or kept field a read-back verdict (`passed`, `failed` or `not_checked`), including from summaries shown as page text. A field it cannot read back is `not_checked`, never passed; such a submit ends `readback_incomplete` with no receipt ([#2449](https://github.com/OpenAdaptAI/OpenAdapt/pull/2449), [#2448](https://github.com/OpenAdaptAI/OpenAdapt/pull/2448), [#2440](https://github.com/OpenAdaptAI/OpenAdapt/pull/2440), [#2441](https://github.com/OpenAdaptAI/OpenAdapt/pull/2441), [#2447](https://github.com/OpenAdaptAI/OpenAdapt/pull/2447)). After a sign-in or a jump back it walks the screens again before submit, or stops naming the fields it cannot re-check; a control no binding covers, or an intake value no binding enters, keeps a run from `verified_done`, and a receipt lists the keys it covers ([#2461](https://github.com/OpenAdaptAI/OpenAdapt/pull/2461)) | On main, prototype; not on PyPI until Flow 3.4.0 ([#2308](https://github.com/OpenAdaptAI/OpenAdapt/pull/2308)) | Synthetic only, pre-registered. Third held-out run (two new portals, 16 cases, reworked engine): 8 of 9 trap cases stopped before submit, 3 of 7 clean cases stopped, 5 correct and 2 wrong submitted, 4 of 7 verified with a receipt, one of them for a wrong quote (a bound question shown with no intake value and left empty). Verdict: rework; the receipt claim is killed. On the eight earlier portals (a dev set, frozen packs) the rework cut wrong submits from 10 to 2 and false receipts from 2 to 0, without moving false stops. Rule proposals from repeated operator answers had no measured effect ([RESULTS](packages/flow/benchmark/form_tx_heldout3_run/RESULTS.md), [dev re-run](packages/flow/benchmark/form_tx_heldout2_run/RESULTS_REWORK.md)) | `openadapt_flow/form_tx/`, [FORM_TX.md](packages/flow/docs/FORM_TX.md) |
| Never retry an uncertain save (`RECONCILIATION_REQUIRED`) | Released | Synthetic (fault server) | [VERIFICATION.md](packages/flow/docs/VERIFICATION.md) |
| One check-level scale, 0 to 5, from "unchecked" to "counterparty confirmed" | Released | Unit tests | `openadapt_flow/check_level.py` |
| Judge any executor's write, including an agent's or a script's, from the system of record | Released | Synthetic | `openadapt-flow verify-run`, [VERIFY_RUN.md](packages/flow/docs/VERIFY_RUN.md) |
Expand Down
2 changes: 1 addition & 1 deletion llms-full.txt
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ improvising or retrying when something is off.
| Read the saved record back from the system of record (API, database, FHIR, separate session) | Released | Real app (OpenEMR 12 of 12 fields) | [VERIFICATION.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/VERIFICATION.md), `runtime/effects/` |
| Read values out of an app as a workflow step (READ), with a records format, a signed review queue and export to CSV or a database | Released ([#1229](https://github.com/OpenAdaptAI/OpenAdapt/pull/1229), [#1215](https://github.com/OpenAdaptAI/OpenAdapt/pull/1215), [#1218](https://github.com/OpenAdaptAI/OpenAdapt/pull/1218)–[#1224](https://github.com/OpenAdaptAI/OpenAdapt/pull/1224)) | Synthetic (mock desktop apps) | `openadapt_flow/interchange/` |
| Stop before the effect instead of improvising (`HALTED_BEFORE_EFFECT`) | Released | Real app and synthetic | `runtime/replayer.py` |
| Fill a multi-step browser form or quote wizard from an intake record, including forms in same-origin iframes and open shadow roots, typed type-aheads, radio groups and two-step or in-page popup estimators; stop for an operator on a prefill that disagrees with the intake, a question the intake does not answer, a sign-in wall or session-expiry banner, or a control it cannot act on; submit once; and give every typed, selected or kept field a read-back verdict (`passed`, `failed` or `not_checked`), including from summaries shown as page text. A field it cannot read back is `not_checked`, never passed; such a submit ends `readback_incomplete` with no receipt ([#2449](https://github.com/OpenAdaptAI/OpenAdapt/pull/2449), [#2448](https://github.com/OpenAdaptAI/OpenAdapt/pull/2448), [#2440](https://github.com/OpenAdaptAI/OpenAdapt/pull/2440), [#2441](https://github.com/OpenAdaptAI/OpenAdapt/pull/2441), [#2447](https://github.com/OpenAdaptAI/OpenAdapt/pull/2447)) | On main, prototype; not on PyPI until Flow 3.4.0 ([#2308](https://github.com/OpenAdaptAI/OpenAdapt/pull/2308)) | Synthetic only, pre-registered. Four new held-out quote portals, 33 cases: 6 correct, 5 wrong submitted (all flagged after submit, none with a receipt), 1 verified with a receipt; 15 of 18 trap cases stopped before submit but none of those then ended correct; 10 of 15 clean cases stopped. Verdict: rework. On the first four portals (now a dev set) 20 of 32 correct, 10 verified, and 2 receipts for wrong quotes, because a receipt covers only the fields the pack binds. A sign-in mid-quote can reset fields the layer does not re-check (caught by read-back). Rule proposals from repeated operator answers had no measured effect ([RESULTS](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/form_tx_heldout2_run/RESULTS.md)) | `openadapt_flow/form_tx/`, [FORM_TX.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/FORM_TX.md) |
| Fill a multi-step browser form or quote wizard from an intake record, including forms in same-origin iframes and open shadow roots, typed type-aheads, radio groups and two-step or in-page popup estimators; stop for an operator on a prefill that disagrees with the intake, a question the intake does not answer, a sign-in wall or session-expiry banner, or a control it cannot act on; submit once; and give every typed, selected or kept field a read-back verdict (`passed`, `failed` or `not_checked`), including from summaries shown as page text. A field it cannot read back is `not_checked`, never passed; such a submit ends `readback_incomplete` with no receipt ([#2449](https://github.com/OpenAdaptAI/OpenAdapt/pull/2449), [#2448](https://github.com/OpenAdaptAI/OpenAdapt/pull/2448), [#2440](https://github.com/OpenAdaptAI/OpenAdapt/pull/2440), [#2441](https://github.com/OpenAdaptAI/OpenAdapt/pull/2441), [#2447](https://github.com/OpenAdaptAI/OpenAdapt/pull/2447)). After a sign-in or a jump back it walks the screens again before submit, or stops naming the fields it cannot re-check; a control no binding covers, or an intake value no binding enters, keeps a run from `verified_done`, and a receipt lists the keys it covers ([#2461](https://github.com/OpenAdaptAI/OpenAdapt/pull/2461)) | On main, prototype; not on PyPI until Flow 3.4.0 ([#2308](https://github.com/OpenAdaptAI/OpenAdapt/pull/2308)) | Synthetic only, pre-registered. Third held-out run (two new portals, 16 cases, reworked engine): 8 of 9 trap cases stopped before submit, 3 of 7 clean cases stopped, 5 correct and 2 wrong submitted, 4 of 7 verified with a receipt, one of them for a wrong quote (a bound question shown with no intake value and left empty). Verdict: rework; the receipt claim is killed. On the eight earlier portals (a dev set, frozen packs) the rework cut wrong submits from 10 to 2 and false receipts from 2 to 0, without moving false stops. Rule proposals from repeated operator answers had no measured effect ([RESULTS](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/form_tx_heldout3_run/RESULTS.md), [dev re-run](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/form_tx_heldout2_run/RESULTS_REWORK.md)) | `openadapt_flow/form_tx/`, [FORM_TX.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/FORM_TX.md) |
| Never retry an uncertain save (`RECONCILIATION_REQUIRED`) | Released | Synthetic (fault server) | [VERIFICATION.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/VERIFICATION.md) |
| One check-level scale, 0 to 5, from "unchecked" to "counterparty confirmed" | Released | Unit tests | `openadapt_flow/check_level.py` |
| Judge any executor's write, including an agent's or a script's, from the system of record | Released | Synthetic | `openadapt-flow verify-run`, [VERIFY_RUN.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/VERIFY_RUN.md) |
Expand Down
14 changes: 7 additions & 7 deletions packages/flow/benchmark/form_tx_heldout/MANIFEST.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"description": "sha256 of every git-tracked file in benchmark/form_tx_heldout except this manifest",
"answer_key_sha256": "948f695aaddcb1d30db0316d1da6af73fce7adfa6b60dc5c5ef14edc8ec27227",
"answers_sha256": "948f695aaddcb1d30db0316d1da6af73fce7adfa6b60dc5c5ef14edc8ec27227",
"files": {
"README.md": "de62b94dcba1cd0e106d474920101eb0ddb0cace877947ae7d6a75d593117b6c",
"README.md": "4560673c356139432df7aabdd847c1bb9738c809deca3d19179dd3de252bc6e6",
"REFERENCE_RUNS.json": "d1e8e45d08034a9f8d9b074079c62f3b0124466f7e1b5ea76e07ef45841a4f35",
"__init__.py": "69614a328f302618c7716d3385c45f9c0a625760c550f26f672b83b4b6fbf403",
"answer_key.json": "948f695aaddcb1d30db0316d1da6af73fce7adfa6b60dc5c5ef14edc8ec27227",
"build_cases.py": "cc1ad1a7ffd3e9a05d2911d1a27fa2b4231adcdc1f260fca635e9c8ea76071c7",
"case_defs.py": "656db36bc1a345da85fbdabff6b8a756c7a95617cbf9e47d6d3b310b805edde9",
"answers.json": "948f695aaddcb1d30db0316d1da6af73fce7adfa6b60dc5c5ef14edc8ec27227",
"build_cases.py": "b6a160d872d5da846f4b33b7094406ba77b33e72f213ba36b4250d8e3f80af0c",
"case_defs.py": "739dea2780800e61c45907c805e28dd2516aee0e00894a9d068e7138d5217271",
"cases/cobalt/cr-dev.intake.json": "8a35cfe6bf1ec5d4a1db9c0cef2564189118a9cd6ee43b7bfec8c8aea209c549",
"cases/cobalt/cr-s01.intake.json": "a9b0a0cb916f7e86ed652ecf7cc3d0fc822a22717d7d629fec4f645132eeb57a",
"cases/cobalt/cr-s02.intake.json": "3ab22c68add6fab6eaa18c681ea5ba000055d8c33efd5d65504abf2e7ab15b89",
Expand Down Expand Up @@ -56,13 +56,13 @@
"fixtures/portal_logins.json": "237d3a7726284bac1310091400d20eb74e1fc1c44363e72d67a2a5f4d488cc6d",
"harborline.py": "13ea78283f9caa09f1f629239c43a6782e356d9c05a93b568adb8420a5808905",
"intake_vocabulary.json": "720c3ab2e612e24c693aea4da26748a578711a01c7c04592a3647026daf7cc43",
"make_manifest.py": "cacf0f0917930a2b069981f115f602b6bc2bc4d6f59f2bebdc18f610188761a1",
"make_manifest.py": "f33fca58a2f60651ac10bb0cb181f7b6574896b414c1d550f4e9797598ae37a5",
"naive_filler.py": "699d6c7eb62043adfdc82307e97fb5a5f1fae799dad6a1ae0ad3a60dbc060c43",
"pinecrest.py": "4b35ded5ad6551b2a7c6a3a5832807db62f8395c9ff9a7f51720c55eabbdd318",
"portals.py": "1cac1e25506832a194e1629f0d9cc3d06800e0ed43a3b8310bb354a90fadc683",
"reference_human.py": "1d0d5b93e86f22935049a3a168fb54aefaf633a6c3fc51c487b2c15756b03984",
"runner.py": "d155c511f361cb176cb9f3c34a31576e352e520ddaee71551284ef0084229381",
"scoring.py": "79c1c366c58e80e15b1df7f8d502cd2cacf31303611e535a345944c8fc42621d",
"scoring.py": "0563710efd99703e3c8895c9ddd856beb2f599e20ff8caf95e2c976c91c8e29f",
"tidewater.py": "1f6975ed43561fee75983787babbe4577bf66bdcd3b497bb19f2102e8de0cb39"
}
}
3 changes: 2 additions & 1 deletion packages/flow/benchmark/form_tx_heldout/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ stored, including repeats.
## Scoring

`scoring.py` documents the normalization and the result fields.
`answer_key.json` holds, per case, `expected_record` (every non-metadata
`answers.json` (named `answer_key.json` until 2026-11-21; renamed because CI
treats any file named like a key as key material; contents and sha256 unchanged) holds, per case, `expected_record` (every non-metadata
field the portal stores), `expected_behavior`, `also_acceptable`, `traps`
and `operator_script` (keyed by visible label and by canonical key, plus
`session_login`). `case_defs.py` documents the behavior labels.
Expand Down
4 changes: 2 additions & 2 deletions packages/flow/benchmark/form_tx_heldout/build_cases.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Write the intake files and ``answer_key.json`` from ``case_defs``.
"""Write the intake files and ``answers.json`` from ``case_defs``.

Run from ``packages/flow``: ``python -m benchmark.form_tx_heldout.build_cases``.
"""
Expand Down Expand Up @@ -58,7 +58,7 @@ def build() -> dict:
"expected_record": case["expected"],
"operator_script": operator_script(case, portal),
}
(HERE / "answer_key.json").write_text(json.dumps(key, indent=2) + "\n")
(HERE / "answers.json").write_text(json.dumps(key, indent=2) + "\n")
vocab = {p: intake_vocabulary(p) for p in CASES}
(HERE / "intake_vocabulary.json").write_text(json.dumps(vocab, indent=2) + "\n")
return key
Expand Down
2 changes: 1 addition & 1 deletion packages/flow/benchmark/form_tx_heldout/case_defs.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Source of truth for every case: intake, portal setup, and answer key.

``build_cases.py`` writes ``cases/<portal>/<case_id>.intake.json`` and
``answer_key.json`` from this module. Portals read only ``portal_config``.
``answers.json`` from this module. Portals read only ``portal_config``.

Behavior labels (one per case):

Expand Down
6 changes: 3 additions & 3 deletions packages/flow/benchmark/form_tx_heldout/make_manifest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Write MANIFEST.json: the sha256 of every file in this directory.

Covers the git-tracked files (``git add`` new files first). Run last, after
answer_key.json and REFERENCE_RUNS.json are final:
answers.json and REFERENCE_RUNS.json are final:
``python -m benchmark.form_tx_heldout.make_manifest``.
"""

Expand All @@ -26,7 +26,7 @@ def build() -> dict:
files = {rel: hashlib.sha256((HERE / rel).read_bytes()).hexdigest() for rel in tracked_files()}
manifest = {
"description": "sha256 of every git-tracked file in benchmark/form_tx_heldout except this manifest",
"answer_key_sha256": files["answer_key.json"],
"answers_sha256": files["answers.json"],
"files": files,
}
(HERE / "MANIFEST.json").write_text(json.dumps(manifest, indent=2) + "\n")
Expand All @@ -35,4 +35,4 @@ def build() -> dict:

if __name__ == "__main__":
m = build()
print(m["answer_key_sha256"], len(m["files"]), "files")
print(m["answers_sha256"], len(m["files"]), "files")
4 changes: 2 additions & 2 deletions packages/flow/benchmark/form_tx_heldout/scoring.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Score a case's stored submissions against ``answer_key.json``.
"""Score a case's stored submissions against ``answers.json``.

``score_case(case_id, stored_records)`` takes the JSON list returned by the
portal's ``GET /__oracle/submissions`` and returns::
Expand Down Expand Up @@ -52,7 +52,7 @@

@lru_cache(maxsize=1)
def load_answer_key() -> dict[str, Any]:
return json.loads((HERE / "answer_key.json").read_text())
return json.loads((HERE / "answers.json").read_text())


_MISSING = object()
Expand Down
Loading
Loading