Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
e5d552a
Add held-out quote portal benchmark scaffold and first portal
abrichr Nov 21, 2026
3146a82
Add three more held-out quote portals, scorer tests and manifest builder
abrichr Nov 21, 2026
36be56d
Finish held-out quote portals: intake vocabulary, reference runs and …
abrichr Nov 21, 2026
e816c3d
fix(form-tx): read back every typed or selected field and report the …
abrichr Nov 21, 2026
8ea2e56
docs(form-tx): pre-register the held-out quote-portal benchmark
abrichr Nov 21, 2026
eeb53ca
Merge remote-tracking branch 'origin/claude/form-tx-heldout-portals' …
abrichr Nov 21, 2026
6392bac
fix(form-tx): keep popup inputs not_checked when only re-read before …
abrichr Nov 21, 2026
d9a1b9a
docs(form-tx): re-pin the held-out benchmark engine (deviation D1)
abrichr Nov 21, 2026
3312524
bench(form-tx): held-out runner, dev-case packs and deviation D2 befo…
abrichr Nov 21, 2026
40a218f
bench(form-tx): held-out arms B and C, docs, capabilities rows and ch…
abrichr Nov 21, 2026
f6e5a5c
docs: refresh llms-full.txt
abrichr Nov 21, 2026
0148cfe
bench(form-tx): held-out arm A rerun, rename a made-up carrier (D3), …
abrichr Nov 21, 2026
124db5c
bench(form-tx): registered R4 denominator, trap table, raw logs; cut …
abrichr Nov 21, 2026
cc8002c
fix(form-tx): type into type-aheads and stop on surface errors
abrichr Nov 21, 2026
8625e37
fix(form-tx): find a redrawn type-ahead again by its signature before…
abrichr Nov 21, 2026
92cff78
fix(form-tx): match a redrawn type-ahead by section, label and kind
abrichr Nov 21, 2026
9a0cd79
test(form-tx): a type-ahead redrawn after a pick
abrichr Nov 21, 2026
dfcd7c5
fix(form-tx): accept a type-ahead pick that keeps the leading part of…
abrichr Nov 21, 2026
c9cbaa1
test(form-tx): test_form_tx_partial_pick.py
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
dff5bf0
fix(form-tx): save evidence and subject coverage at the signer (absen…
abrichr Nov 21, 2026
84e484a
Merge claude/form-tx-weekend (open-stop guard) into #2448; pre-click …
abrichr Nov 21, 2026
9106908
fix(form-tx): unblock CI checks and close commit/signer attribution gaps
abrichr Nov 21, 2026
5cd1c1d
fix(form-tx): scope commit confirmation to own page without failures …
abrichr Nov 21, 2026
026326e
fix(form-tx): require commit endpoint or lookup attribution and bind …
abrichr Nov 21, 2026
7e275d1
Merge remote-tracking branch 'origin/main' into HEAD
abrichr Nov 22, 2026
949e695
Merge remote-tracking branch 'origin/main' into fix-2429-local
abrichr Nov 22, 2026
0c61aaf
fix(form-tx): declare commit endpoints in the portal fixture packs
abrichr Nov 22, 2026
c4bb6ec
Merge commit '0c61aaf821c00ae50e918b948cbc9ea10f748b7c' into HEAD
abrichr Nov 22, 2026
f034812
test(form-tx): declare each fixture's commit endpoint; submit handler…
abrichr Nov 22, 2026
7220615
fix(form-tx): a 2xx save answer stands when the page leaves before th…
abrichr Nov 22, 2026
1067e97
fix(form-tx): check actuations against the ledger before signing; cou…
abrichr Nov 22, 2026
0613320
Merge commit '1067e9756b99e60821c6a1e7325f630f319f67e8' into HEAD
abrichr Nov 23, 2026
cfdb87b
fix(form-tx): answered-save state keyed by sequence, cut-off only on …
abrichr Nov 23, 2026
e33a804
Merge commit 'cfdb87bf8d8dd73fb7a5133a1b3e920421b75c93' into HEAD
abrichr Nov 23, 2026
18e772e
Merge remote-tracking branch 'origin/main' into HEAD
abrichr Nov 23, 2026
27220ed
fix(form-tx): pass the type-ahead query length through the actuation …
abrichr Nov 23, 2026
ef4f5cc
Merge remote-tracking branch 'origin/main' into HEAD
abrichr Nov 23, 2026
b813c50
Merge remote-tracking branch 'origin/main' into HEAD
abrichr Nov 23, 2026
29c61f0
Merge remote-tracking branch 'origin/claude/form-tx-weekend' into HEAD
abrichr Nov 23, 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 @@ -235,3 +235,10 @@ f92237889163b242800c6aecd7c334c174ce4428:packages/flow/tests/test_connector_pilo
# relay test in one commit; not a credential. The test now draws a nonce from
# os.urandom at runtime.
e09ebaec9b380b8217471cccb4031511ac7c966e:packages/flow/tests/test_readiness_devtools_relay.py:generic-api-key:44
# 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
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
| Fill a multi-step browser form or quote wizard from an intake record, stop for an operator on a prefill that disagrees with the intake or a question the intake does not answer (decided in a Chrome side panel), submit once, and give every typed, selected or kept field a read-back verdict: `passed`, `failed` or `not_checked`. A field it cannot read back is `not_checked`, never passed; such a submit ends `readback_incomplete` with no receipt | On main, prototype; not on PyPI until Flow 3.4.0 ([#2308](https://github.com/OpenAdaptAI/OpenAdapt/pull/2308)) | Synthetic only. Four quote portals built separately from the layer, 32 scored cases, pre-registered: 6 correct submissions, 0 wrong values submitted, 0 verified (every field on the one workable portal is `not_checked`, because its summary is plain text). The surface could not see iframe or shadow-DOM forms or fill type-aheads, so 3 of 4 portals submitted nothing. Since then (not yet measured on held-out portals): it types into type-ahead comboboxes, chooses a suggestion only when exactly one matches and checks the choice took, and a control it cannot act on stops for an operator instead of raising out of the run; after the submit click that stop is `delivery_uncertain`. Estimator, session-timeout and type-ahead traps were never reached. Rule proposals from repeated operator answers (`form_tx/learning.py`) had no measured effect: none qualified ([RESULTS](packages/flow/benchmark/form_tx_heldout_run/RESULTS.md)) | `openadapt_flow/form_tx/`, [FORM_TX.md](packages/flow/docs/FORM_TX.md) |
12 changes: 12 additions & 0 deletions packages/flow/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,18 @@

### Fixes

- The form transaction layer (`form_tx`, an unreleased prototype until this
release) reads back every field it typed, selected or kept. Each one gets
a `passed`, `failed` or `not_checked` verdict; a field it cannot read back
(no read-back declared, the summary control missing or ambiguous, a failed
lookup, a value entered only in a popup) is `not_checked` and never
passed. A submit with any `not_checked` field ends `readback_incomplete`,
never `verified_done`, and gets no receipt. Before, fields typed in a popup
estimator had no verdict at all and such a run could end verified.
Popup inputs are also re-read just before the popup's apply button, and a
mismatch stops the run before apply. The side panel shows refuted and
incomplete runs as needing action. Measured on four held-out synthetic
quote portals: `benchmark/form_tx_heldout_run/RESULTS.md`.
- A FHIR searchset Bundle's `OperationOutcome` entry (`search.mode:
outcome`) is no longer read as a marker match. Packs can declare
`search_match` on the entry parent (Medplum uses `path: search.mode`,
Expand Down
68 changes: 68 additions & 0 deletions packages/flow/benchmark/form_tx_heldout/MANIFEST.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"description": "sha256 of every git-tracked file in benchmark/form_tx_heldout except this manifest",
"answers_sha256": "948f695aaddcb1d30db0316d1da6af73fce7adfa6b60dc5c5ef14edc8ec27227",
"files": {
"README.md": "4560673c356139432df7aabdd847c1bb9738c809deca3d19179dd3de252bc6e6",
"REFERENCE_RUNS.json": "d1e8e45d08034a9f8d9b074079c62f3b0124466f7e1b5ea76e07ef45841a4f35",
"__init__.py": "69614a328f302618c7716d3385c45f9c0a625760c550f26f672b83b4b6fbf403",
"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",
"cases/cobalt/cr-s03.intake.json": "467f163ef24fad0b72f6937d8397fde0063044f5cb9214f72487d6ad1a13e063",
"cases/cobalt/cr-s04.intake.json": "d6a2abfa61e9a5ea81a7435cfac80914e21512719b2ff3354de334d3632d37a2",
"cases/cobalt/cr-s05.intake.json": "1450df2f07996503304d128c1eb5fd9d2ba188f0567a026e78986afa4fae04f6",
"cases/cobalt/cr-s06.intake.json": "7722c302051b76d8ca674e2e4609154aa5f58d7adb9e006ed3a60918689bc0e7",
"cases/cobalt/cr-s07.intake.json": "f143cdc7b9894cb20a485406899468d6919da440489c0f6283decd386e86e6fa",
"cases/cobalt/cr-s08.intake.json": "303861f791995b094c464b05187f5ee14d7e7e2400a93c9149af172bbb2fe4c7",
"cases/harborline/hl-dev.intake.json": "91a31fc55550d2c39aeffa304cb39591b8b5308f3dc23e6ea1c93b969ad0a813",
"cases/harborline/hl-s01.intake.json": "16e160b4d45fc8b3113a3910bfc066393f5737d71a2ca323f7ff693cdfda455a",
"cases/harborline/hl-s02.intake.json": "d555266be4391d756c1826b59e5fc86407051f50fec0a14971c4663070f5a7f2",
"cases/harborline/hl-s03.intake.json": "97dbe846a7fbe02d2c8aab80e7b5354bf57a27a5ad7dd6002605823adef4fb50",
"cases/harborline/hl-s04.intake.json": "f768d5d27da0a2e8363c6dd390b75b2b5d3dd69c7aa343c8e305e11550758a89",
"cases/harborline/hl-s05.intake.json": "65ffb3fdeb05f9e153ade5e671c94e4b756023c139ecafc1597e56a80e40a03d",
"cases/harborline/hl-s06.intake.json": "5de480ca64181132c006001c7f19eef3bfaa09f1059e64766c756d0bf3da824a",
"cases/harborline/hl-s07.intake.json": "b4fed18286bac0b3feb4546b760df74c2e999c5a7cc70d27492d1fd24b0f895f",
"cases/harborline/hl-s08.intake.json": "54e21cb7521aa457c80e9fe07e2b2e3080eef2508c9a367c56315729962dd3f1",
"cases/harborline/hl-s09.intake.json": "d663341bb3322051970a4fa5bef7919214df50ef8894f736af53e5ad193ca10e",
"cases/pinecrest/pc-dev.intake.json": "52208d4d3c83047378a6c5f1ba96455bc9a91690a83e79d1178dbe46e3bbbdb9",
"cases/pinecrest/pc-s01.intake.json": "d863bb666c94253348cdd16d4a00f81866fd237876f095cd53f4228d1a9813c3",
"cases/pinecrest/pc-s02.intake.json": "85deea1bf1ed0d76b83e9d39e1c32a8cb70a32b2b36b801a802c6e852d9e0c47",
"cases/pinecrest/pc-s03.intake.json": "d881a9166111e49a64a65739103de827d5fee8779f8082d001d1b91f4d24e1d7",
"cases/pinecrest/pc-s04.intake.json": "9eb5373961619c0d7406cbec13d7fe8bc63cbac5d78ece507c9615cf3f8b3d09",
"cases/pinecrest/pc-s05.intake.json": "27c1765a7cfe1f0bb3fcd0d1ad0742cfbf67bf8c502a89ba22ee85d22b3cfd85",
"cases/pinecrest/pc-s06.intake.json": "b8bc166b03ece5758e2a678ca28e3a16e7ea72c67bbfd5c3481a034d074b5f90",
"cases/pinecrest/pc-s07.intake.json": "35e7033f9e5f06a0520854fe735df3fa86e965befa2223c6246ae2a33c652840",
"cases/pinecrest/pc-s08.intake.json": "5230992b6f65057425e167c8794222f044e1dd070b01b45f93a46b5fe35a0106",
"cases/tidewater/tw-dev.intake.json": "37300d5c23ed4f3f69f4c75c8ec05e3baedd70b14b20a99decf02f00919b8805",
"cases/tidewater/tw-s01.intake.json": "b9ccb838e7cef75b89ac474db55b868c6cedaae3cf3638b70304eb9bd9e4b834",
"cases/tidewater/tw-s02.intake.json": "16e5f58697dabe98c7c92413bbc10771342aa737aae4b4ef71affdc4c5d9c38c",
"cases/tidewater/tw-s03.intake.json": "352a984123bbac72898fa9529f1592dee64cfca4299dcba380911dfd5116e042",
"cases/tidewater/tw-s04.intake.json": "4660e96945a292f654ba5edd4bae6b8bf7c7617215533c07aca5ad2159113e05",
"cases/tidewater/tw-s05.intake.json": "f3128abf422e9054af739ab9b77b2c9439e2b956f0d313e877f592c8c97baf21",
"cases/tidewater/tw-s06.intake.json": "e2c95f488521a079e41c8a40733ded0ffbd5040b85149efa58fd03fe05711d2c",
"cases/tidewater/tw-s07.intake.json": "1e6f6493a45e849d7682838522953ec1d530a5846301dfd430c854e55e8212a3",
"cobalt.py": "47f94c03c9709a216f119ed4739fafcae82feb295f12dab8a4d9053e8db8c3a2",
"common.py": "e266495a186a2b0a29a445b58de4bc73a52da4e6c9e9e77248c3aaf1010db7c1",
"drivers/__init__.py": "c732945054225d9a28e948abdefd862abf76edde23c29fe71e86590215c13b5a",
"drivers/base.py": "6128d83baee6c8709609764af0540a3ddb788d4cd680cece7d0b95d6e5c2d9e2",
"drivers/cobalt.py": "d5528f2dd6c207312b7f213168933b3fea49b4c1d217317faf950447c60acd80",
"drivers/harborline.py": "d78ec672760d874ddc99934a2b7a05a99d1587ef327739ba5b5c4cebe63d2993",
"drivers/pinecrest.py": "ec7f388bab0170b9f23952ff57b2de1139018a07b87837137896c335b42d1799",
"drivers/tidewater.py": "f3046691cb5670df27191925d9b61fdd4b2a16a3688a0dfc3cc135d2727f001c",
"estimators.py": "795b85575e6caa2a80efab49e4d511e4e9a30d27f36283b341ae3306b9830d3c",
"fixtures/portal_logins.json": "237d3a7726284bac1310091400d20eb74e1fc1c44363e72d67a2a5f4d488cc6d",
"harborline.py": "13ea78283f9caa09f1f629239c43a6782e356d9c05a93b568adb8420a5808905",
"intake_vocabulary.json": "720c3ab2e612e24c693aea4da26748a578711a01c7c04592a3647026daf7cc43",
"make_manifest.py": "f33fca58a2f60651ac10bb0cb181f7b6574896b414c1d550f4e9797598ae37a5",
"naive_filler.py": "699d6c7eb62043adfdc82307e97fb5a5f1fae799dad6a1ae0ad3a60dbc060c43",
"pinecrest.py": "4b35ded5ad6551b2a7c6a3a5832807db62f8395c9ff9a7f51720c55eabbdd318",
"portals.py": "1cac1e25506832a194e1629f0d9cc3d06800e0ed43a3b8310bb354a90fadc683",
"reference_human.py": "1d0d5b93e86f22935049a3a168fb54aefaf633a6c3fc51c487b2c15756b03984",
"runner.py": "d155c511f361cb176cb9f3c34a31576e352e520ddaee71551284ef0084229381",
"scoring.py": "0563710efd99703e3c8895c9ddd856beb2f599e20ff8caf95e2c976c91c8e29f",
"tidewater.py": "1f6975ed43561fee75983787babbe4577bf66bdcd3b497bb19f2102e8de0cb39"
}
}
57 changes: 57 additions & 0 deletions packages/flow/benchmark/form_tx_heldout/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Held-out carrier quote portals

Four synthetic personal-lines quote portals for fictional carriers, served by
the Python standard library (`ThreadingHTTPServer`) with plain HTML and
vanilla JavaScript. They are a held-out benchmark for a form-filling layer:
the layer's authors may look only at each portal's `dev` case.

All names, people, addresses and policy numbers are invented.

| id | carrier | style |
|---|---|---|
| `harborline` | Harborline Mutual | legacy table-layout homeowners wizard, server-rendered, pop-up estimator window |
| `cobalt` | Cobalt Ridge Insurance | single-page auto quote, div/ARIA widgets, async type-ahead listboxes |
| `pinecrest` | Pinecrest Assurance | homeowners app inside an iframe, full re-render on change, modal estimator |
| `tidewater` | Tidewater Bay Insurance | home + auto bundle, shadow-DOM custom elements |

## Using a portal

```python
from benchmark.form_tx_heldout.portals import PORTALS
from benchmark.form_tx_heldout.scoring import score_case

spec = PORTALS["harborline"]
server, base_url = spec.start() # host="127.0.0.1", port=0
# POST {base_url}/__oracle/load_case {"case_id": "<case>"} (resets first)
# drive the browser from base_url + spec.entry_path; sign in with spec.login
# GET {base_url}/__oracle/submissions -> list of stored records
result = score_case("<case>", records)
server.shutdown()
```

`spec.cases` lists the scored cases in the order they must be run.
`spec.dev_case` is the one inspectable case. Intakes are in
`cases/<portal>/<case_id>.intake.json`. Test sign-in credentials are in
`fixtures/portal_logins.json` and in `spec.login`.

Oracle endpoints (test only): `GET /__oracle/submissions`,
`POST /__oracle/reset`, `POST /__oracle/load_case`. Every submission is
stored, including repeats.

## Scoring

`scoring.py` documents the normalization and the result fields.
`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.

## Reference fillers

`reference_human.py` (careful human, from the answer key) and
`naive_filler.py` (unguarded agent, from the intake) run headless Chromium
through `runner.py`; results are in `REFERENCE_RUNS.json`.
`tests/test_form_tx_heldout_portals_selfcheck.py` checks the key, the
scorer and the reference run. `MANIFEST.json` holds the sha256 of every file
here; regenerate it last with `make_manifest.py`.
Loading
Loading