diff --git a/.gitleaksignore b/.gitleaksignore index be39e46c21..7ae113aa35 100644 --- a/.gitleaksignore +++ b/.gitleaksignore @@ -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 diff --git a/CAPABILITIES.md b/CAPABILITIES.md index a888652425..1c2e3700a8 100644 --- a/CAPABILITIES.md +++ b/CAPABILITIES.md @@ -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) | diff --git a/llms-full.txt b/llms-full.txt index 07277161d0..48a92cd81f 100644 --- a/llms-full.txt +++ b/llms-full.txt @@ -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) | diff --git a/packages/flow/benchmark/form_tx_heldout/MANIFEST.json b/packages/flow/benchmark/form_tx_heldout/MANIFEST.json index 6d0dbe5c62..27dc3de00e 100644 --- a/packages/flow/benchmark/form_tx_heldout/MANIFEST.json +++ b/packages/flow/benchmark/form_tx_heldout/MANIFEST.json @@ -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", @@ -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" } } diff --git a/packages/flow/benchmark/form_tx_heldout/README.md b/packages/flow/benchmark/form_tx_heldout/README.md index 13c3ba18f3..2c6fff7947 100644 --- a/packages/flow/benchmark/form_tx_heldout/README.md +++ b/packages/flow/benchmark/form_tx_heldout/README.md @@ -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. diff --git a/packages/flow/benchmark/form_tx_heldout/answer_key.json b/packages/flow/benchmark/form_tx_heldout/answers.json similarity index 100% rename from packages/flow/benchmark/form_tx_heldout/answer_key.json rename to packages/flow/benchmark/form_tx_heldout/answers.json diff --git a/packages/flow/benchmark/form_tx_heldout/build_cases.py b/packages/flow/benchmark/form_tx_heldout/build_cases.py index b04ef44833..dfe0025c28 100644 --- a/packages/flow/benchmark/form_tx_heldout/build_cases.py +++ b/packages/flow/benchmark/form_tx_heldout/build_cases.py @@ -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``. """ @@ -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 diff --git a/packages/flow/benchmark/form_tx_heldout/case_defs.py b/packages/flow/benchmark/form_tx_heldout/case_defs.py index 8128207616..a4cc2d0a3f 100644 --- a/packages/flow/benchmark/form_tx_heldout/case_defs.py +++ b/packages/flow/benchmark/form_tx_heldout/case_defs.py @@ -1,7 +1,7 @@ """Source of truth for every case: intake, portal setup, and answer key. ``build_cases.py`` writes ``cases//.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): diff --git a/packages/flow/benchmark/form_tx_heldout/make_manifest.py b/packages/flow/benchmark/form_tx_heldout/make_manifest.py index 2ab8d50f4e..d6e12b943e 100644 --- a/packages/flow/benchmark/form_tx_heldout/make_manifest.py +++ b/packages/flow/benchmark/form_tx_heldout/make_manifest.py @@ -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``. """ @@ -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") @@ -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") diff --git a/packages/flow/benchmark/form_tx_heldout/scoring.py b/packages/flow/benchmark/form_tx_heldout/scoring.py index dbd3442682..7bb85765b8 100644 --- a/packages/flow/benchmark/form_tx_heldout/scoring.py +++ b/packages/flow/benchmark/form_tx_heldout/scoring.py @@ -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:: @@ -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() diff --git a/packages/flow/benchmark/form_tx_heldout2_run/RESULTS_REWORK.md b/packages/flow/benchmark/form_tx_heldout2_run/RESULTS_REWORK.md new file mode 100644 index 0000000000..3ab8dd9224 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout2_run/RESULTS_REWORK.md @@ -0,0 +1,85 @@ +# Dev re-run: the reworked engine on the eight portals it was fixed against + +**These are dev-set rows, not held-out evidence.** The four set-2 portals +(ferncastle, glasswing, okelund, velloway) and the four set-1 portals +(harborline, cobalt, pinecrest, tidewater) were read in full while writing +the rework (#2461): their source, cases and answer key. The packs are the +frozen ones from the earlier runs (`packs2`, `packs`), unchanged. These rows +therefore measure what the engine change does to the same packs, nothing +more. The held-out evidence for the rework is `../form_tx_heldout3_run/`. + +Run 2026-11-21, lab laptop, headless, arm B, same runner and scripted +operator, no `--posthoc`. Two engines: +- `8a9f08b75`: the first rework commits. +- `13772e2b6`: final. It adds the unused-intake rule, legend-less radio + names and one-question forms. + +Raw rows are in `results_rework/`. + +## Set 2 (ferncastle, glasswing, okelund, velloway), 33 cases (18 trap, 15 clean) + +| Metric | Before (`72a6ad428`, `results/arm_B.jsonl`) | `8a9f08b75` | `13772e2b6` | +| --- | ---: | ---: | ---: | +| Submitted | 11 | 6 | 6 | +| Correct | 6 | 6 | 6 | +| Correct and verified with a receipt | 1 | 1 | 1 | +| Wrong submitted | **5** | **0** | **0** | +| - with a receipt | 0 | 0 | 0 | +| Trap cases stopped before submit | 15 | 17 | 17 | +| - then correct | 0 | 1 | 1 | +| Clean cases with a false stop | 10 | 11 | 11 | +| Unsubmitted | 22 | 27 | 27 | + +## Set 1 (harborline, cobalt, pinecrest, tidewater), 32 cases (18 trap, 14 clean) + +| Metric | Before (`72a6ad428`, `results/dev_set_old_portals_arm_B.jsonl`) | `8a9f08b75` | `13772e2b6` | +| --- | ---: | ---: | ---: | +| Submitted | 25 | 23 | 23 | +| Correct | 20 | 21 | 21 | +| Correct and verified with a receipt | 10 | 9 | 0 | +| Wrong submitted | 5 | 2 | 2 | +| - with a receipt (false proof) | **2** | **1** | **0** | +| - flagged after submit | 3 | 1 | 2 | +| Trap cases stopped before submit | 16 | 17 | 17 | +| - then correct | 9 | 11 | 11 | +| Clean cases with a false stop | 2 | 3 | 3 | + +## What the rows show + +### Wrong submits drop + +Set 2 goes from 5 wrong submits to 0, and set 1 goes from 5 to 2. The five +set-2 wrong submits each became a stop before submit: + +- `fc-s04`, `ok-s03`, `vw-s06`: the sign-in-then-reset cases end in + `fields_not_rechecked`, because the frozen packs have no + `revisit_selector`. +- `fc-s02`: a client number in the intake with an empty field stops. +- `gw-s04`: the unbound roommate prefill stops; the operator clears it, and + the case then submits correctly but `readback_incomplete`. + +### False receipts are gone at the final engine + +- `cr-s02` now stops on the unbound additional-driver prefill. +- `cr-s07` (a driver the intake has but the pack never entered) kept its + receipt at `8a9f08b75`. At `13772e2b6` it is `readback_incomplete`, and + the flag names the `driver2.*` intake keys. + +### Verification falls to 0 on set 1 + +The final engine counts every intake key the old packs never consumed +(`property.area_unit`, `property.city_state` and others) as `not_checked`, +because those packs predate `ignored_intake_keys`. This is the rule working +as designed on packs that never declared what they skip. It is not a +regression in what gets read back. + +### K2 does not move on these packs + +The false stops on clean cases are now named, but the frozen packs still: + +- treat portal defaults as prefills (no `portal_default_values`); +- leave the okelund lookup's "Select" without `row_cell_dossier_keys`; +- have no read-back for velloway's three-box dates. + +So the operator script has no entry, and the case escalates. Revising those +packs would be a further, clearly post-hoc row, and it was not run. diff --git a/packages/flow/benchmark/form_tx_heldout2_run/results_rework/dev_rerun_new4_final_engine_arm_B.jsonl b/packages/flow/benchmark/form_tx_heldout2_run/results_rework/dev_rerun_new4_final_engine_arm_B.jsonl new file mode 100644 index 0000000000..5fb1470deb --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout2_run/results_rework/dev_rerun_new4_final_engine_arm_B.jsonl @@ -0,0 +1,33 @@ +{"portal": "ferncastle", "case_id": "fc-s01", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Mortgagee name (blank if none)", "dossier_key": "property.mortgagee_name", "message": "The intake has 'property.mortgagee_name', but no binding enters it, and the field 'Mortgagee name (blank if none)' is empty", "url": "desk/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_ee52f72895b648 to owner", "receipt": false, "elapsed_s": 7.5, "score": {"case_id": "fc-s01", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["client_no", "first_name", "last_name", "email", "phone", "street", "city", "state", "zip", "year_built", "units", "construction", "sqft", "roof_year", "mortgagee", "monthly_rent", "occupancy", "eff_date", "dwelling_limit", "loss_of_rents", "liability", "deductible"]}, "arm": "B"} +{"portal": "ferncastle", "case_id": "fc-s02", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Client number", "dossier_key": "history.client_number", "message": "The intake has 'history.client_number', but no binding enters it, and the field 'Client number' is empty", "url": "desk/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_0917274e4632e3 to owner", "receipt": false, "elapsed_s": 2.9, "score": {"case_id": "fc-s02", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["client_no", "first_name", "last_name", "email", "phone", "street", "city", "state", "zip", "year_built", "units", "construction", "sqft", "roof_year", "mortgagee", "monthly_rent", "occupancy", "eff_date", "dwelling_limit", "loss_of_rents", "liability", "deductible"]}, "arm": "B"} +{"portal": "ferncastle", "case_id": "fc-s03", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Client number", "dossier_key": "history.client_number", "message": "The intake has 'history.client_number', but no binding enters it, and the field 'Client number' is empty", "url": "desk/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_1e4853fd821572 to owner", "receipt": false, "elapsed_s": 2.8, "score": {"case_id": "fc-s03", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["client_no", "first_name", "last_name", "email", "phone", "street", "city", "state", "zip", "year_built", "units", "construction", "sqft", "roof_year", "mortgagee", "monthly_rent", "occupancy", "eff_date", "dwelling_limit", "loss_of_rents", "liability", "deductible"]}, "arm": "B"} +{"portal": "ferncastle", "case_id": "fc-s04", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Deductible", "dossier_key": "coverage.deductible", "message": "Prefilled value on 'Deductible' conflicts with grounded dossier state for 'coverage.deductible'", "url": "desk/quote", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "auth_wall_detected", "label": "", "dossier_key": null, "message": "Sign-in wall at 'http://127.0.0.1:45003/desk/quote' (sign-in form on screen)", "url": "desk/quote", "action": "fixed_on_screen", "before_submit": true}, {"halt_kind": "fields_not_rechecked", "label": "City", "dossier_key": null, "message": "A sign-in or a jump back interrupted this quote after fields were entered, and these fields cannot be re-checked from here before submit: ['City', 'Construction', 'Deductible', 'Dwelling limit ($)', 'Email', 'First name', 'Last name', 'Loss", "url": "desk/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_7b26111afe8dbb to owner", "receipt": false, "elapsed_s": 11.4, "score": {"case_id": "fc-s04", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["client_no", "first_name", "last_name", "email", "phone", "street", "city", "state", "zip", "year_built", "units", "construction", "sqft", "roof_year", "mortgagee", "monthly_rent", "occupancy", "eff_date", "dwelling_limit", "loss_of_rents", "liability", "deductible"]}, "arm": "B"} +{"portal": "ferncastle", "case_id": "fc-s05", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Unit occupancy", "dossier_key": null, "message": "Screen 'fc_rental' did not advance after clicking Next; Unit occupancy: Required", "url": "desk/quote", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Premises liability", "dossier_key": "coverage.liability_limit", "message": "Prefilled value on 'Premises liability' conflicts with grounded dossier state for 'coverage.liability_limit'", "url": "desk/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_fd154bb64b2829 to owner", "receipt": false, "elapsed_s": 11.2, "score": {"case_id": "fc-s05", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["client_no", "first_name", "last_name", "email", "phone", "street", "city", "state", "zip", "year_built", "units", "construction", "sqft", "roof_year", "mortgagee", "monthly_rent", "occupancy", "eff_date", "dwelling_limit", "loss_of_rents", "liability", "deductible"]}, "arm": "B"} +{"portal": "ferncastle", "case_id": "fc-s06", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Mortgagee name (blank if none)", "dossier_key": "property.mortgagee_name", "message": "The intake has 'property.mortgagee_name', but no binding enters it, and the field 'Mortgagee name (blank if none)' is empty", "url": "desk/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_f5978fe2b2c4b1 to owner", "receipt": false, "elapsed_s": 7.4, "score": {"case_id": "fc-s06", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["client_no", "first_name", "last_name", "email", "phone", "street", "city", "state", "zip", "year_built", "units", "construction", "sqft", "roof_year", "mortgagee", "monthly_rent", "occupancy", "eff_date", "dwelling_limit", "loss_of_rents", "liability", "deductible"]}, "arm": "B"} +{"portal": "ferncastle", "case_id": "fc-s07", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Unit occupancy", "dossier_key": null, "message": "Screen 'fc_rental' did not advance after clicking Next; Unit occupancy: Required", "url": "desk/quote", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Premises liability", "dossier_key": "coverage.liability_limit", "message": "Prefilled value on 'Premises liability' conflicts with grounded dossier state for 'coverage.liability_limit'", "url": "desk/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_a97faf309b9a79 to owner", "receipt": false, "elapsed_s": 9.9, "score": {"case_id": "fc-s07", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["client_no", "first_name", "last_name", "email", "phone", "street", "city", "state", "zip", "year_built", "units", "construction", "sqft", "roof_year", "mortgagee", "monthly_rent", "occupancy", "eff_date", "dwelling_limit", "loss_of_rents", "liability", "deductible"]}, "arm": "B"} +{"portal": "ferncastle", "case_id": "fc-s08", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Premises liability", "dossier_key": "coverage.liability_limit", "message": "Prefilled value on 'Premises liability' conflicts with grounded dossier state for 'coverage.liability_limit'", "url": "desk/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_7ab87b79a892a9 to owner", "receipt": false, "elapsed_s": 10.1, "score": {"case_id": "fc-s08", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["client_no", "first_name", "last_name", "email", "phone", "street", "city", "state", "zip", "year_built", "units", "construction", "sqft", "roof_year", "mortgagee", "monthly_rent", "occupancy", "eff_date", "dwelling_limit", "loss_of_rents", "liability", "deductible"]}, "arm": "B"} +{"portal": "glasswing", "case_id": "gw-s01", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Deductible", "dossier_key": "coverage.deductible", "message": "Prefilled value on 'Deductible' conflicts with grounded dossier state for 'coverage.deductible'", "url": "resident", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_a3d8f74b38752c to owner", "receipt": false, "elapsed_s": 6.5, "score": {"case_id": "gw-s01", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "start_date", "sprinklered", "roommate", "personal_property", "deductible", "liability"]}, "arm": "B"} +{"portal": "glasswing", "case_id": "gw-s02", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['contents.furnished', 'contents.rooms', 'residence.address_full', 'coverage.personal_property', 'intake:household.adults']", "readback": {"passed": 13, "failed": [], "not_checked": ["contents.furnished", "contents.rooms", "residence.address_full", "coverage.personal_property", "intake:household.adults"]}, "receipt": false, "elapsed_s": 10.3, "score": {"case_id": "gw-s02", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "glasswing", "case_id": "gw-s03", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Deductible", "dossier_key": "coverage.deductible", "message": "Prefilled value on 'Deductible' conflicts with grounded dossier state for 'coverage.deductible'", "url": "resident", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_06cc3c62c807ab to owner", "receipt": false, "elapsed_s": 6.5, "score": {"case_id": "gw-s03", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "start_date", "sprinklered", "roommate", "personal_property", "deductible", "liability"]}, "arm": "B"} +{"portal": "glasswing", "case_id": "gw-s04", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Roommate to add to the policy (full name)", "dossier_key": null, "message": "'Roommate to add to the policy (full name)' holds a value this run did not type, and no binding covers it", "url": "resident", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['contents.furnished', 'contents.rooms', 'residence.address_full', 'control:Roommate to add to the policy (full name)', 'coverage.personal_property', 'intake:household.adults']", "readback": {"passed": 13, "failed": [], "not_checked": ["contents.furnished", "contents.rooms", "residence.address_full", "control:Roommate to add to the policy (full name)", "coverage.personal_property", "intake:household.adults"]}, "receipt": false, "elapsed_s": 8.3, "score": {"case_id": "gw-s04", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "glasswing", "case_id": "gw-s05", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Does your building have a fire sprinkler system?", "dossier_key": "building.sprinklered", "message": "Please complete this.; Does your building have a fire sprinkler system?: Please complete this.", "url": "resident", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Liability limit", "dossier_key": "coverage.liability_limit", "message": "Prefilled value on 'Liability limit' conflicts with grounded dossier state for 'coverage.liability_limit'", "url": "resident", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_bddeab89dfbf71 to owner", "receipt": false, "elapsed_s": 7.3, "score": {"case_id": "gw-s05", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "start_date", "sprinklered", "roommate", "personal_property", "deductible", "liability"]}, "arm": "B"} +{"portal": "glasswing", "case_id": "gw-s06", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Roommate to add to the policy (full name)", "dossier_key": null, "message": "'Roommate to add to the policy (full name)' holds a value this run did not type, and no binding covers it", "url": "resident", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_312d6e7f31eaf6 to owner", "receipt": false, "elapsed_s": 3.2, "score": {"case_id": "gw-s06", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "start_date", "sprinklered", "roommate", "personal_property", "deductible", "liability"]}, "arm": "B"} +{"portal": "glasswing", "case_id": "gw-s07", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['contents.furnished', 'contents.rooms', 'residence.address_full', 'coverage.personal_property', 'intake:household.adults']", "readback": {"passed": 13, "failed": [], "not_checked": ["contents.furnished", "contents.rooms", "residence.address_full", "coverage.personal_property", "intake:household.adults"]}, "receipt": false, "elapsed_s": 9.2, "score": {"case_id": "gw-s07", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "glasswing", "case_id": "gw-s08", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Does your building have a fire sprinkler system?", "dossier_key": "building.sprinklered", "message": "Please complete this.; Does your building have a fire sprinkler system?: Please complete this.", "url": "resident", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Deductible", "dossier_key": "coverage.deductible", "message": "Prefilled value on 'Deductible' conflicts with grounded dossier state for 'coverage.deductible'", "url": "resident", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_b81c2b7512b9d7 to owner", "receipt": false, "elapsed_s": 7.2, "score": {"case_id": "gw-s08", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "start_date", "sprinklered", "roommate", "personal_property", "deductible", "liability"]}, "arm": "B"} +{"portal": "okelund", "case_id": "ok-s01", "halts": [{"halt_kind": "popup_contract_failed", "label": "", "dossier_key": "vehicle.model", "message": "Anchor {'label_patterns': ('^Select$',), 'name_or_id_patterns': (), 'section_patterns': ('^Vehicle Lookup$',), 'row_cell_dossier_keys': ()} matched 2 controls: ['Select (#results > tbody > tr:nth-of-type(1) > td:nth-of-type(3) > input)', 'S", "url": "an/desk", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_a7d3803c7d0389 to owner", "receipt": false, "elapsed_s": 12.2, "score": {"case_id": "ok-s01", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "marital_status", "email", "street", "city", "state", "zip", "license_state", "years_licensed", "accidents", "violations", "driver_training", "vehicle_year", "make", "model", "use", "annual_miles", "ownership", "aftermarket", "bi_limits", "coll_ded", "comp_ded", "rental", "eff_date"]}, "arm": "B"} +{"portal": "okelund", "case_id": "ok-s02", "halts": [{"halt_kind": "popup_contract_failed", "label": "", "dossier_key": "vehicle.model", "message": "Anchor {'label_patterns': ('^Select$',), 'name_or_id_patterns': (), 'section_patterns': ('^Vehicle Lookup$',), 'row_cell_dossier_keys': ()} matched 2 controls: ['Select (#results > tbody > tr:nth-of-type(1) > td:nth-of-type(3) > input)', 'S", "url": "an/desk", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_6cc8322cd5c662 to owner", "receipt": false, "elapsed_s": 10.2, "score": {"case_id": "ok-s02", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "marital_status", "email", "street", "city", "state", "zip", "license_state", "years_licensed", "accidents", "violations", "driver_training", "vehicle_year", "make", "model", "use", "annual_miles", "ownership", "aftermarket", "bi_limits", "coll_ded", "comp_ded", "rental", "eff_date"]}, "arm": "B"} +{"portal": "okelund", "case_id": "ok-s03", "halts": [{"halt_kind": "auth_wall_detected", "label": "", "dossier_key": null, "message": "Sign-in wall at 'http://127.0.0.1:45523/an/login' (sign-in form on screen)", "url": "an/desk", "action": "fixed_on_screen", "before_submit": true}, {"halt_kind": "fields_not_rechecked", "label": "Annual Miles", "dossier_key": null, "message": "A sign-in or a jump back interrupted this quote after fields were entered, and these fields cannot be re-checked from here before submit: ['Annual Miles:', 'Any custom or aftermarket equipment (wheels, audio, lift kits)?', 'At-Fault Acciden", "url": "an/desk", "script_hit": true, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_563ea12ed992ff to owner", "receipt": false, "elapsed_s": 15.9, "score": {"case_id": "ok-s03", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "marital_status", "email", "street", "city", "state", "zip", "license_state", "years_licensed", "accidents", "violations", "driver_training", "vehicle_year", "make", "model", "use", "annual_miles", "ownership", "aftermarket", "bi_limits", "coll_ded", "comp_ded", "rental", "eff_date"]}, "arm": "B"} +{"portal": "okelund", "case_id": "ok-s04", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Completed a state-approved driver training course?", "dossier_key": null, "message": "Screen 'ok_driver' did not advance after clicking Next; Completed a state-approved driver training course?: Required", "url": "an/desk", "script_hit": true, "action": "provide_value", "before_submit": true, "resolution_error": "ValueError('Human decision context changed; observe and review again')"}], "outcome": "validation_blocked", "what_happened": "Screen 'ok_driver' did not advance after clicking Next; Completed a state-approved driver training course?: Required", "receipt": false, "elapsed_s": 7.3, "score": {"case_id": "ok-s04", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "marital_status", "email", "street", "city", "state", "zip", "license_state", "years_licensed", "accidents", "violations", "driver_training", "vehicle_year", "make", "model", "use", "annual_miles", "ownership", "aftermarket", "bi_limits", "coll_ded", "comp_ded", "rental", "eff_date"]}, "arm": "B"} +{"portal": "okelund", "case_id": "ok-s05", "halts": [], "outcome": "verified_done", "what_happened": "Committed and verified via independent read-back", "readback": {"passed": 25, "failed": [], "not_checked": []}, "receipt": true, "elapsed_s": 13.8, "score": {"case_id": "ok-s05", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "okelund", "case_id": "ok-s06", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Completed a state-approved driver training course?", "dossier_key": null, "message": "Screen 'ok_driver' did not advance after clicking Next; Completed a state-approved driver training course?: Required", "url": "an/desk", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_651f1a4cf38991 to owner", "receipt": false, "elapsed_s": 7.1, "score": {"case_id": "ok-s06", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "marital_status", "email", "street", "city", "state", "zip", "license_state", "years_licensed", "accidents", "violations", "driver_training", "vehicle_year", "make", "model", "use", "annual_miles", "ownership", "aftermarket", "bi_limits", "coll_ded", "comp_ded", "rental", "eff_date"]}, "arm": "B"} +{"portal": "okelund", "case_id": "ok-s07", "halts": [{"halt_kind": "popup_contract_failed", "label": "", "dossier_key": "vehicle.model", "message": "Anchor {'label_patterns': ('^Select$',), 'name_or_id_patterns': (), 'section_patterns': ('^Vehicle Lookup$',), 'row_cell_dossier_keys': ()} matched 2 controls: ['Select (#results > tbody > tr:nth-of-type(1) > td:nth-of-type(3) > input)', 'S", "url": "an/desk", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_ddc78d794a97f7 to owner", "receipt": false, "elapsed_s": 11.1, "score": {"case_id": "ok-s07", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "marital_status", "email", "street", "city", "state", "zip", "license_state", "years_licensed", "accidents", "violations", "driver_training", "vehicle_year", "make", "model", "use", "annual_miles", "ownership", "aftermarket", "bi_limits", "coll_ded", "comp_ded", "rental", "eff_date"]}, "arm": "B"} +{"portal": "okelund", "case_id": "ok-s08", "halts": [], "outcome": "readback_refuted", "what_happened": "Independent read-back did not verify commit: ['coverage.rental_reimbursement']", "readback": {"passed": 24, "failed": ["coverage.rental_reimbursement"], "not_checked": []}, "receipt": false, "elapsed_s": 14.1, "score": {"case_id": "ok-s08", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "velloway", "case_id": "vw-s01", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Umbrella limit", "dossier_key": "coverage.umbrella_limit", "message": "Prefilled value on 'Umbrella limit' conflicts with grounded dossier state for 'coverage.umbrella_limit'", "url": "umbrella/apply", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_e740c514f5e56c to owner", "receipt": false, "elapsed_s": 10.0, "score": {"case_id": "vw-s01", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "phone", "street", "city", "state", "zip", "occupation", "drivers", "youthful_drivers", "youthful_violations", "vehicles", "watercraft", "auto_liability", "home_liability", "rental_properties", "nonprofit_board", "umbrella_limit", "start_date"]}, "arm": "B"} +{"portal": "velloway", "case_id": "vw-s02", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Household account number (optional)", "dossier_key": "history.household_account", "message": "The intake has 'history.household_account', but no binding enters it, and the field 'Household account number (optional)' is empty", "url": "umbrella/start", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_9a0c8ec21c1c85 to owner", "receipt": false, "elapsed_s": 1.1, "score": {"case_id": "vw-s02", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "phone", "street", "city", "state", "zip", "occupation", "drivers", "youthful_drivers", "youthful_violations", "vehicles", "watercraft", "auto_liability", "home_liability", "rental_properties", "nonprofit_board", "umbrella_limit", "start_date"]}, "arm": "B"} +{"portal": "velloway", "case_id": "vw-s03", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Household account number (optional)", "dossier_key": "history.household_account", "message": "The intake has 'history.household_account', but no binding enters it, and the field 'Household account number (optional)' is empty", "url": "umbrella/start", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_e54e0fde9ff328 to owner", "receipt": false, "elapsed_s": 1.2, "score": {"case_id": "vw-s03", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "phone", "street", "city", "state", "zip", "occupation", "drivers", "youthful_drivers", "youthful_violations", "vehicles", "watercraft", "auto_liability", "home_liability", "rental_properties", "nonprofit_board", "umbrella_limit", "start_date"]}, "arm": "B"} +{"portal": "velloway", "case_id": "vw-s04", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Umbrella limit", "dossier_key": "coverage.umbrella_limit", "message": "Prefilled value on 'Umbrella limit' conflicts with grounded dossier state for 'coverage.umbrella_limit'", "url": "umbrella/apply", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_f877f2e68c11e7 to owner", "receipt": false, "elapsed_s": 8.9, "score": {"case_id": "vw-s04", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "phone", "street", "city", "state", "zip", "occupation", "drivers", "youthful_drivers", "youthful_violations", "vehicles", "watercraft", "auto_liability", "home_liability", "rental_properties", "nonprofit_board", "umbrella_limit", "start_date"]}, "arm": "B"} +{"portal": "velloway", "case_id": "vw-s05", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['applicant.dob_day', 'applicant.dob_month', 'applicant.dob_year', 'coverage.start_day', 'coverage.start_month', 'coverage.start_year', 'flow.confirm_details', 'intake:applicant.date_of_birth', 'intake:coverage.start_date', 'intake:household.watercraft_count']", "readback": {"passed": 20, "failed": [], "not_checked": ["applicant.dob_day", "applicant.dob_month", "applicant.dob_year", "coverage.start_day", "coverage.start_month", "coverage.start_year", "flow.confirm_details", "intake:applicant.date_of_birth", "intake:coverage.start_date", "intake:household.watercraft_count"]}, "receipt": false, "elapsed_s": 13.2, "score": {"case_id": "vw-s05", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "velloway", "case_id": "vw-s06", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Umbrella limit", "dossier_key": "coverage.umbrella_limit", "message": "Prefilled value on 'Umbrella limit' conflicts with grounded dossier state for 'coverage.umbrella_limit'", "url": "umbrella/apply", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "auth_wall_detected", "label": "", "dossier_key": null, "message": "Sign-in wall at 'http://127.0.0.1:45281/account/sign-in' (sign-in form on screen)", "url": "account/sign-in", "action": "fixed_on_screen", "before_submit": true}, {"halt_kind": "fields_not_rechecked", "label": "Address line 1", "dossier_key": null, "message": "A sign-in or a jump back interrupted this quote after fields were entered, and these fields cannot be re-checked from here before submit: ['Address line 1', 'Auto liability limits', 'Day', 'Does anyone in your household serve as a director ", "url": "umbrella/summary", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_56e8878f639fa2 to owner", "receipt": false, "elapsed_s": 15.3, "score": {"case_id": "vw-s06", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "phone", "street", "city", "state", "zip", "occupation", "drivers", "youthful_drivers", "youthful_violations", "vehicles", "watercraft", "auto_liability", "home_liability", "rental_properties", "nonprofit_board", "umbrella_limit", "start_date"]}, "arm": "B"} +{"portal": "velloway", "case_id": "vw-s07", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Umbrella limit", "dossier_key": "coverage.umbrella_limit", "message": "Prefilled value on 'Umbrella limit' conflicts with grounded dossier state for 'coverage.umbrella_limit'", "url": "umbrella/apply", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_3dd5caccdcd407 to owner", "receipt": false, "elapsed_s": 8.3, "score": {"case_id": "vw-s07", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "phone", "street", "city", "state", "zip", "occupation", "drivers", "youthful_drivers", "youthful_violations", "vehicles", "watercraft", "auto_liability", "home_liability", "rental_properties", "nonprofit_board", "umbrella_limit", "start_date"]}, "arm": "B"} +{"portal": "velloway", "case_id": "vw-s08", "halts": [{"halt_kind": "portal_validation_blocked", "label": "", "dossier_key": null, "message": "There is a problemEnter or choose: Has any driver under 25 had a moving violation in the last 3 years", "url": "umbrella/apply", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_2df8f345fc6c23 to owner", "receipt": false, "elapsed_s": 12.1, "score": {"case_id": "vw-s08", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "phone", "street", "city", "state", "zip", "occupation", "drivers", "youthful_drivers", "youthful_violations", "vehicles", "watercraft", "auto_liability", "home_liability", "rental_properties", "nonprofit_board", "umbrella_limit", "start_date"]}, "arm": "B"} +{"portal": "velloway", "case_id": "vw-s09", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Household account number (optional)", "dossier_key": "history.household_account", "message": "The intake has 'history.household_account', but no binding enters it, and the field 'Household account number (optional)' is empty", "url": "umbrella/start", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_84e8a537ede0ba to owner", "receipt": false, "elapsed_s": 1.1, "score": {"case_id": "vw-s09", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "phone", "street", "city", "state", "zip", "occupation", "drivers", "youthful_drivers", "youthful_violations", "vehicles", "watercraft", "auto_liability", "home_liability", "rental_properties", "nonprofit_board", "umbrella_limit", "start_date"]}, "arm": "B"} diff --git a/packages/flow/benchmark/form_tx_heldout2_run/results_rework/dev_rerun_new4_final_engine_arm_B_full.log b/packages/flow/benchmark/form_tx_heldout2_run/results_rework/dev_rerun_new4_final_engine_arm_B_full.log new file mode 100644 index 0000000000..47b47703a7 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout2_run/results_rework/dev_rerun_new4_final_engine_arm_B_full.log @@ -0,0 +1,33 @@ +FORM_TX_HELDOUT_LAYER {"portal": "ferncastle", "case_id": "fc-s01", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Mortgagee name (blank if none)", "dossier_key": "property.mortgagee_name", "message": "The intake has 'property.mortgagee_name', but no binding enters it, and the field 'Mortgagee name (blank if none)' is empty", "url": "desk/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_ee52f72895b648 to owner", "receipt": false, "elapsed_s": 7.5, "score": {"case_id": "fc-s01", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["client_no", "first_name", "last_name", "email", "phone", "street", "city", "state", "zip", "year_built", "units", "construction", "sqft", "roof_year", "mortgagee", "monthly_rent", "occupancy", "eff_date", "dwelling_limit", "loss_of_rents", "liability", "deductible"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "ferncastle", "case_id": "fc-s02", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Client number", "dossier_key": "history.client_number", "message": "The intake has 'history.client_number', but no binding enters it, and the field 'Client number' is empty", "url": "desk/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_0917274e4632e3 to owner", "receipt": false, "elapsed_s": 2.9, "score": {"case_id": "fc-s02", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["client_no", "first_name", "last_name", "email", "phone", "street", "city", "state", "zip", "year_built", "units", "construction", "sqft", "roof_year", "mortgagee", "monthly_rent", "occupancy", "eff_date", "dwelling_limit", "loss_of_rents", "liability", "deductible"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "ferncastle", "case_id": "fc-s03", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Client number", "dossier_key": "history.client_number", "message": "The intake has 'history.client_number', but no binding enters it, and the field 'Client number' is empty", "url": "desk/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_1e4853fd821572 to owner", "receipt": false, "elapsed_s": 2.8, "score": {"case_id": "fc-s03", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["client_no", "first_name", "last_name", "email", "phone", "street", "city", "state", "zip", "year_built", "units", "construction", "sqft", "roof_year", "mortgagee", "monthly_rent", "occupancy", "eff_date", "dwelling_limit", "loss_of_rents", "liability", "deductible"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "ferncastle", "case_id": "fc-s04", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Deductible", "dossier_key": "coverage.deductible", "message": "Prefilled value on 'Deductible' conflicts with grounded dossier state for 'coverage.deductible'", "url": "desk/quote", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "auth_wall_detected", "label": "", "dossier_key": null, "message": "Sign-in wall at 'http://127.0.0.1:45003/desk/quote' (sign-in form on screen)", "url": "desk/quote", "action": "fixed_on_screen", "before_submit": true}, {"halt_kind": "fields_not_rechecked", "label": "City", "dossier_key": null, "message": "A sign-in or a jump back interrupted this quote after fields were entered, and these fields cannot be re-checked from here before submit: ['City', 'Construction', 'Deductible', 'Dwelling limit ($)', 'Email', 'First name', 'Last name', 'Loss", "url": "desk/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_7b26111afe8dbb to owner", "receipt": false, "elapsed_s": 11.4, "score": {"case_id": "fc-s04", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["client_no", "first_name", "last_name", "email", "phone", "street", "city", "state", "zip", "year_built", "units", "construction", "sqft", "roof_year", "mortgagee", "monthly_rent", "occupancy", "eff_date", "dwelling_limit", "loss_of_rents", "liability", "deductible"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "ferncastle", "case_id": "fc-s05", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Unit occupancy", "dossier_key": null, "message": "Screen 'fc_rental' did not advance after clicking Next; Unit occupancy: Required", "url": "desk/quote", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Premises liability", "dossier_key": "coverage.liability_limit", "message": "Prefilled value on 'Premises liability' conflicts with grounded dossier state for 'coverage.liability_limit'", "url": "desk/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_fd154bb64b2829 to owner", "receipt": false, "elapsed_s": 11.2, "score": {"case_id": "fc-s05", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["client_no", "first_name", "last_name", "email", "phone", "street", "city", "state", "zip", "year_built", "units", "construction", "sqft", "roof_year", "mortgagee", "monthly_rent", "occupancy", "eff_date", "dwelling_limit", "loss_of_rents", "liability", "deductible"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "ferncastle", "case_id": "fc-s06", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Mortgagee name (blank if none)", "dossier_key": "property.mortgagee_name", "message": "The intake has 'property.mortgagee_name', but no binding enters it, and the field 'Mortgagee name (blank if none)' is empty", "url": "desk/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_f5978fe2b2c4b1 to owner", "receipt": false, "elapsed_s": 7.4, "score": {"case_id": "fc-s06", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["client_no", "first_name", "last_name", "email", "phone", "street", "city", "state", "zip", "year_built", "units", "construction", "sqft", "roof_year", "mortgagee", "monthly_rent", "occupancy", "eff_date", "dwelling_limit", "loss_of_rents", "liability", "deductible"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "ferncastle", "case_id": "fc-s07", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Unit occupancy", "dossier_key": null, "message": "Screen 'fc_rental' did not advance after clicking Next; Unit occupancy: Required", "url": "desk/quote", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Premises liability", "dossier_key": "coverage.liability_limit", "message": "Prefilled value on 'Premises liability' conflicts with grounded dossier state for 'coverage.liability_limit'", "url": "desk/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_a97faf309b9a79 to owner", "receipt": false, "elapsed_s": 9.9, "score": {"case_id": "fc-s07", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["client_no", "first_name", "last_name", "email", "phone", "street", "city", "state", "zip", "year_built", "units", "construction", "sqft", "roof_year", "mortgagee", "monthly_rent", "occupancy", "eff_date", "dwelling_limit", "loss_of_rents", "liability", "deductible"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "ferncastle", "case_id": "fc-s08", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Premises liability", "dossier_key": "coverage.liability_limit", "message": "Prefilled value on 'Premises liability' conflicts with grounded dossier state for 'coverage.liability_limit'", "url": "desk/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_7ab87b79a892a9 to owner", "receipt": false, "elapsed_s": 10.1, "score": {"case_id": "fc-s08", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["client_no", "first_name", "last_name", "email", "phone", "street", "city", "state", "zip", "year_built", "units", "construction", "sqft", "roof_year", "mortgagee", "monthly_rent", "occupancy", "eff_date", "dwelling_limit", "loss_of_rents", "liability", "deductible"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "glasswing", "case_id": "gw-s01", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Deductible", "dossier_key": "coverage.deductible", "message": "Prefilled value on 'Deductible' conflicts with grounded dossier state for 'coverage.deductible'", "url": "resident", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_a3d8f74b38752c to owner", "receipt": false, "elapsed_s": 6.5, "score": {"case_id": "gw-s01", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "start_date", "sprinklered", "roommate", "personal_property", "deductible", "liability"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "glasswing", "case_id": "gw-s02", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['contents.furnished', 'contents.rooms', 'residence.address_full', 'coverage.personal_property', 'intake:household.adults']", "readback": {"passed": 13, "failed": [], "not_checked": ["contents.furnished", "contents.rooms", "residence.address_full", "coverage.personal_property", "intake:household.adults"]}, "receipt": false, "elapsed_s": 10.3, "score": {"case_id": "gw-s02", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "glasswing", "case_id": "gw-s03", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Deductible", "dossier_key": "coverage.deductible", "message": "Prefilled value on 'Deductible' conflicts with grounded dossier state for 'coverage.deductible'", "url": "resident", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_06cc3c62c807ab to owner", "receipt": false, "elapsed_s": 6.5, "score": {"case_id": "gw-s03", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "start_date", "sprinklered", "roommate", "personal_property", "deductible", "liability"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "glasswing", "case_id": "gw-s04", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Roommate to add to the policy (full name)", "dossier_key": null, "message": "'Roommate to add to the policy (full name)' holds a value this run did not type, and no binding covers it", "url": "resident", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['contents.furnished', 'contents.rooms', 'residence.address_full', 'control:Roommate to add to the policy (full name)', 'coverage.personal_property', 'intake:household.adults']", "readback": {"passed": 13, "failed": [], "not_checked": ["contents.furnished", "contents.rooms", "residence.address_full", "control:Roommate to add to the policy (full name)", "coverage.personal_property", "intake:household.adults"]}, "receipt": false, "elapsed_s": 8.3, "score": {"case_id": "gw-s04", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "glasswing", "case_id": "gw-s05", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Does your building have a fire sprinkler system?", "dossier_key": "building.sprinklered", "message": "Please complete this.; Does your building have a fire sprinkler system?: Please complete this.", "url": "resident", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Liability limit", "dossier_key": "coverage.liability_limit", "message": "Prefilled value on 'Liability limit' conflicts with grounded dossier state for 'coverage.liability_limit'", "url": "resident", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_bddeab89dfbf71 to owner", "receipt": false, "elapsed_s": 7.3, "score": {"case_id": "gw-s05", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "start_date", "sprinklered", "roommate", "personal_property", "deductible", "liability"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "glasswing", "case_id": "gw-s06", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Roommate to add to the policy (full name)", "dossier_key": null, "message": "'Roommate to add to the policy (full name)' holds a value this run did not type, and no binding covers it", "url": "resident", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_312d6e7f31eaf6 to owner", "receipt": false, "elapsed_s": 3.2, "score": {"case_id": "gw-s06", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "start_date", "sprinklered", "roommate", "personal_property", "deductible", "liability"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "glasswing", "case_id": "gw-s07", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['contents.furnished', 'contents.rooms', 'residence.address_full', 'coverage.personal_property', 'intake:household.adults']", "readback": {"passed": 13, "failed": [], "not_checked": ["contents.furnished", "contents.rooms", "residence.address_full", "coverage.personal_property", "intake:household.adults"]}, "receipt": false, "elapsed_s": 9.2, "score": {"case_id": "gw-s07", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "glasswing", "case_id": "gw-s08", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Does your building have a fire sprinkler system?", "dossier_key": "building.sprinklered", "message": "Please complete this.; Does your building have a fire sprinkler system?: Please complete this.", "url": "resident", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Deductible", "dossier_key": "coverage.deductible", "message": "Prefilled value on 'Deductible' conflicts with grounded dossier state for 'coverage.deductible'", "url": "resident", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_b81c2b7512b9d7 to owner", "receipt": false, "elapsed_s": 7.2, "score": {"case_id": "gw-s08", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "start_date", "sprinklered", "roommate", "personal_property", "deductible", "liability"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "okelund", "case_id": "ok-s01", "halts": [{"halt_kind": "popup_contract_failed", "label": "", "dossier_key": "vehicle.model", "message": "Anchor {'label_patterns': ('^Select$',), 'name_or_id_patterns': (), 'section_patterns': ('^Vehicle Lookup$',), 'row_cell_dossier_keys': ()} matched 2 controls: ['Select (#results > tbody > tr:nth-of-type(1) > td:nth-of-type(3) > input)', 'S", "url": "an/desk", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_a7d3803c7d0389 to owner", "receipt": false, "elapsed_s": 12.2, "score": {"case_id": "ok-s01", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "marital_status", "email", "street", "city", "state", "zip", "license_state", "years_licensed", "accidents", "violations", "driver_training", "vehicle_year", "make", "model", "use", "annual_miles", "ownership", "aftermarket", "bi_limits", "coll_ded", "comp_ded", "rental", "eff_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "okelund", "case_id": "ok-s02", "halts": [{"halt_kind": "popup_contract_failed", "label": "", "dossier_key": "vehicle.model", "message": "Anchor {'label_patterns': ('^Select$',), 'name_or_id_patterns': (), 'section_patterns': ('^Vehicle Lookup$',), 'row_cell_dossier_keys': ()} matched 2 controls: ['Select (#results > tbody > tr:nth-of-type(1) > td:nth-of-type(3) > input)', 'S", "url": "an/desk", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_6cc8322cd5c662 to owner", "receipt": false, "elapsed_s": 10.2, "score": {"case_id": "ok-s02", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "marital_status", "email", "street", "city", "state", "zip", "license_state", "years_licensed", "accidents", "violations", "driver_training", "vehicle_year", "make", "model", "use", "annual_miles", "ownership", "aftermarket", "bi_limits", "coll_ded", "comp_ded", "rental", "eff_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "okelund", "case_id": "ok-s03", "halts": [{"halt_kind": "auth_wall_detected", "label": "", "dossier_key": null, "message": "Sign-in wall at 'http://127.0.0.1:45523/an/login' (sign-in form on screen)", "url": "an/desk", "action": "fixed_on_screen", "before_submit": true}, {"halt_kind": "fields_not_rechecked", "label": "Annual Miles", "dossier_key": null, "message": "A sign-in or a jump back interrupted this quote after fields were entered, and these fields cannot be re-checked from here before submit: ['Annual Miles:', 'Any custom or aftermarket equipment (wheels, audio, lift kits)?', 'At-Fault Acciden", "url": "an/desk", "script_hit": true, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_563ea12ed992ff to owner", "receipt": false, "elapsed_s": 15.9, "score": {"case_id": "ok-s03", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "marital_status", "email", "street", "city", "state", "zip", "license_state", "years_licensed", "accidents", "violations", "driver_training", "vehicle_year", "make", "model", "use", "annual_miles", "ownership", "aftermarket", "bi_limits", "coll_ded", "comp_ded", "rental", "eff_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "okelund", "case_id": "ok-s04", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Completed a state-approved driver training course?", "dossier_key": null, "message": "Screen 'ok_driver' did not advance after clicking Next; Completed a state-approved driver training course?: Required", "url": "an/desk", "script_hit": true, "action": "provide_value", "before_submit": true, "resolution_error": "ValueError('Human decision context changed; observe and review again')"}], "outcome": "validation_blocked", "what_happened": "Screen 'ok_driver' did not advance after clicking Next; Completed a state-approved driver training course?: Required", "receipt": false, "elapsed_s": 7.3, "score": {"case_id": "ok-s04", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "marital_status", "email", "street", "city", "state", "zip", "license_state", "years_licensed", "accidents", "violations", "driver_training", "vehicle_year", "make", "model", "use", "annual_miles", "ownership", "aftermarket", "bi_limits", "coll_ded", "comp_ded", "rental", "eff_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "okelund", "case_id": "ok-s05", "halts": [], "outcome": "verified_done", "what_happened": "Committed and verified via independent read-back", "readback": {"passed": 25, "failed": [], "not_checked": []}, "receipt": true, "elapsed_s": 13.8, "score": {"case_id": "ok-s05", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "okelund", "case_id": "ok-s06", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Completed a state-approved driver training course?", "dossier_key": null, "message": "Screen 'ok_driver' did not advance after clicking Next; Completed a state-approved driver training course?: Required", "url": "an/desk", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_651f1a4cf38991 to owner", "receipt": false, "elapsed_s": 7.1, "score": {"case_id": "ok-s06", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "marital_status", "email", "street", "city", "state", "zip", "license_state", "years_licensed", "accidents", "violations", "driver_training", "vehicle_year", "make", "model", "use", "annual_miles", "ownership", "aftermarket", "bi_limits", "coll_ded", "comp_ded", "rental", "eff_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "okelund", "case_id": "ok-s07", "halts": [{"halt_kind": "popup_contract_failed", "label": "", "dossier_key": "vehicle.model", "message": "Anchor {'label_patterns': ('^Select$',), 'name_or_id_patterns': (), 'section_patterns': ('^Vehicle Lookup$',), 'row_cell_dossier_keys': ()} matched 2 controls: ['Select (#results > tbody > tr:nth-of-type(1) > td:nth-of-type(3) > input)', 'S", "url": "an/desk", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_ddc78d794a97f7 to owner", "receipt": false, "elapsed_s": 11.1, "score": {"case_id": "ok-s07", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "marital_status", "email", "street", "city", "state", "zip", "license_state", "years_licensed", "accidents", "violations", "driver_training", "vehicle_year", "make", "model", "use", "annual_miles", "ownership", "aftermarket", "bi_limits", "coll_ded", "comp_ded", "rental", "eff_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "okelund", "case_id": "ok-s08", "halts": [], "outcome": "readback_refuted", "what_happened": "Independent read-back did not verify commit: ['coverage.rental_reimbursement']", "readback": {"passed": 24, "failed": ["coverage.rental_reimbursement"], "not_checked": []}, "receipt": false, "elapsed_s": 14.1, "score": {"case_id": "ok-s08", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "velloway", "case_id": "vw-s01", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Umbrella limit", "dossier_key": "coverage.umbrella_limit", "message": "Prefilled value on 'Umbrella limit' conflicts with grounded dossier state for 'coverage.umbrella_limit'", "url": "umbrella/apply", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_e740c514f5e56c to owner", "receipt": false, "elapsed_s": 10.0, "score": {"case_id": "vw-s01", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "phone", "street", "city", "state", "zip", "occupation", "drivers", "youthful_drivers", "youthful_violations", "vehicles", "watercraft", "auto_liability", "home_liability", "rental_properties", "nonprofit_board", "umbrella_limit", "start_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "velloway", "case_id": "vw-s02", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Household account number (optional)", "dossier_key": "history.household_account", "message": "The intake has 'history.household_account', but no binding enters it, and the field 'Household account number (optional)' is empty", "url": "umbrella/start", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_9a0c8ec21c1c85 to owner", "receipt": false, "elapsed_s": 1.1, "score": {"case_id": "vw-s02", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "phone", "street", "city", "state", "zip", "occupation", "drivers", "youthful_drivers", "youthful_violations", "vehicles", "watercraft", "auto_liability", "home_liability", "rental_properties", "nonprofit_board", "umbrella_limit", "start_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "velloway", "case_id": "vw-s03", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Household account number (optional)", "dossier_key": "history.household_account", "message": "The intake has 'history.household_account', but no binding enters it, and the field 'Household account number (optional)' is empty", "url": "umbrella/start", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_e54e0fde9ff328 to owner", "receipt": false, "elapsed_s": 1.2, "score": {"case_id": "vw-s03", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "phone", "street", "city", "state", "zip", "occupation", "drivers", "youthful_drivers", "youthful_violations", "vehicles", "watercraft", "auto_liability", "home_liability", "rental_properties", "nonprofit_board", "umbrella_limit", "start_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "velloway", "case_id": "vw-s04", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Umbrella limit", "dossier_key": "coverage.umbrella_limit", "message": "Prefilled value on 'Umbrella limit' conflicts with grounded dossier state for 'coverage.umbrella_limit'", "url": "umbrella/apply", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_f877f2e68c11e7 to owner", "receipt": false, "elapsed_s": 8.9, "score": {"case_id": "vw-s04", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "phone", "street", "city", "state", "zip", "occupation", "drivers", "youthful_drivers", "youthful_violations", "vehicles", "watercraft", "auto_liability", "home_liability", "rental_properties", "nonprofit_board", "umbrella_limit", "start_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "velloway", "case_id": "vw-s05", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['applicant.dob_day', 'applicant.dob_month', 'applicant.dob_year', 'coverage.start_day', 'coverage.start_month', 'coverage.start_year', 'flow.confirm_details', 'intake:applicant.date_of_birth', 'intake:coverage.start_date', 'intake:household.watercraft_count']", "readback": {"passed": 20, "failed": [], "not_checked": ["applicant.dob_day", "applicant.dob_month", "applicant.dob_year", "coverage.start_day", "coverage.start_month", "coverage.start_year", "flow.confirm_details", "intake:applicant.date_of_birth", "intake:coverage.start_date", "intake:household.watercraft_count"]}, "receipt": false, "elapsed_s": 13.2, "score": {"case_id": "vw-s05", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "velloway", "case_id": "vw-s06", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Umbrella limit", "dossier_key": "coverage.umbrella_limit", "message": "Prefilled value on 'Umbrella limit' conflicts with grounded dossier state for 'coverage.umbrella_limit'", "url": "umbrella/apply", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "auth_wall_detected", "label": "", "dossier_key": null, "message": "Sign-in wall at 'http://127.0.0.1:45281/account/sign-in' (sign-in form on screen)", "url": "account/sign-in", "action": "fixed_on_screen", "before_submit": true}, {"halt_kind": "fields_not_rechecked", "label": "Address line 1", "dossier_key": null, "message": "A sign-in or a jump back interrupted this quote after fields were entered, and these fields cannot be re-checked from here before submit: ['Address line 1', 'Auto liability limits', 'Day', 'Does anyone in your household serve as a director ", "url": "umbrella/summary", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_56e8878f639fa2 to owner", "receipt": false, "elapsed_s": 15.3, "score": {"case_id": "vw-s06", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "phone", "street", "city", "state", "zip", "occupation", "drivers", "youthful_drivers", "youthful_violations", "vehicles", "watercraft", "auto_liability", "home_liability", "rental_properties", "nonprofit_board", "umbrella_limit", "start_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "velloway", "case_id": "vw-s07", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Umbrella limit", "dossier_key": "coverage.umbrella_limit", "message": "Prefilled value on 'Umbrella limit' conflicts with grounded dossier state for 'coverage.umbrella_limit'", "url": "umbrella/apply", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_3dd5caccdcd407 to owner", "receipt": false, "elapsed_s": 8.3, "score": {"case_id": "vw-s07", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "phone", "street", "city", "state", "zip", "occupation", "drivers", "youthful_drivers", "youthful_violations", "vehicles", "watercraft", "auto_liability", "home_liability", "rental_properties", "nonprofit_board", "umbrella_limit", "start_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "velloway", "case_id": "vw-s08", "halts": [{"halt_kind": "portal_validation_blocked", "label": "", "dossier_key": null, "message": "There is a problemEnter or choose: Has any driver under 25 had a moving violation in the last 3 years", "url": "umbrella/apply", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_2df8f345fc6c23 to owner", "receipt": false, "elapsed_s": 12.1, "score": {"case_id": "vw-s08", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "phone", "street", "city", "state", "zip", "occupation", "drivers", "youthful_drivers", "youthful_violations", "vehicles", "watercraft", "auto_liability", "home_liability", "rental_properties", "nonprofit_board", "umbrella_limit", "start_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "velloway", "case_id": "vw-s09", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Household account number (optional)", "dossier_key": "history.household_account", "message": "The intake has 'history.household_account', but no binding enters it, and the field 'Household account number (optional)' is empty", "url": "umbrella/start", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_84e8a537ede0ba to owner", "receipt": false, "elapsed_s": 1.1, "score": {"case_id": "vw-s09", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "phone", "street", "city", "state", "zip", "occupation", "drivers", "youthful_drivers", "youthful_violations", "vehicles", "watercraft", "auto_liability", "home_liability", "rental_properties", "nonprofit_board", "umbrella_limit", "start_date"]}, "arm": "B"} diff --git a/packages/flow/benchmark/form_tx_heldout2_run/results_rework/dev_rerun_new4_frozen_packs_arm_B.jsonl b/packages/flow/benchmark/form_tx_heldout2_run/results_rework/dev_rerun_new4_frozen_packs_arm_B.jsonl new file mode 100644 index 0000000000..6e8cef69dc --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout2_run/results_rework/dev_rerun_new4_frozen_packs_arm_B.jsonl @@ -0,0 +1,33 @@ +{"portal": "ferncastle", "case_id": "fc-s01", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Mortgagee name (blank if none)", "dossier_key": "property.mortgagee_name", "message": "The intake has 'property.mortgagee_name', but no binding enters it, and the field 'Mortgagee name (blank if none)' is empty", "url": "desk/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_ee52f72895b648 to owner", "receipt": false, "elapsed_s": 6.9, "score": {"case_id": "fc-s01", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["client_no", "first_name", "last_name", "email", "phone", "street", "city", "state", "zip", "year_built", "units", "construction", "sqft", "roof_year", "mortgagee", "monthly_rent", "occupancy", "eff_date", "dwelling_limit", "loss_of_rents", "liability", "deductible"]}, "arm": "B"} +{"portal": "ferncastle", "case_id": "fc-s02", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Client number", "dossier_key": "history.client_number", "message": "The intake has 'history.client_number', but no binding enters it, and the field 'Client number' is empty", "url": "desk/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_0917274e4632e3 to owner", "receipt": false, "elapsed_s": 3.0, "score": {"case_id": "fc-s02", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["client_no", "first_name", "last_name", "email", "phone", "street", "city", "state", "zip", "year_built", "units", "construction", "sqft", "roof_year", "mortgagee", "monthly_rent", "occupancy", "eff_date", "dwelling_limit", "loss_of_rents", "liability", "deductible"]}, "arm": "B"} +{"portal": "ferncastle", "case_id": "fc-s03", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Client number", "dossier_key": "history.client_number", "message": "The intake has 'history.client_number', but no binding enters it, and the field 'Client number' is empty", "url": "desk/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_1e4853fd821572 to owner", "receipt": false, "elapsed_s": 3.1, "score": {"case_id": "fc-s03", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["client_no", "first_name", "last_name", "email", "phone", "street", "city", "state", "zip", "year_built", "units", "construction", "sqft", "roof_year", "mortgagee", "monthly_rent", "occupancy", "eff_date", "dwelling_limit", "loss_of_rents", "liability", "deductible"]}, "arm": "B"} +{"portal": "ferncastle", "case_id": "fc-s04", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Deductible", "dossier_key": "coverage.deductible", "message": "Prefilled value on 'Deductible' conflicts with grounded dossier state for 'coverage.deductible'", "url": "desk/quote", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "auth_wall_detected", "label": "", "dossier_key": null, "message": "Sign-in wall at 'http://127.0.0.1:45859/desk/quote' (sign-in form on screen)", "url": "desk/quote", "action": "fixed_on_screen", "before_submit": true}, {"halt_kind": "fields_not_rechecked", "label": "City", "dossier_key": null, "message": "A sign-in or a jump back interrupted this quote after fields were entered, and these fields cannot be re-checked from here before submit: ['City', 'Construction', 'Deductible', 'Dwelling limit ($)', 'Email', 'First name', 'Last name', 'Loss", "url": "desk/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_7b26111afe8dbb to owner", "receipt": false, "elapsed_s": 13.7, "score": {"case_id": "fc-s04", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["client_no", "first_name", "last_name", "email", "phone", "street", "city", "state", "zip", "year_built", "units", "construction", "sqft", "roof_year", "mortgagee", "monthly_rent", "occupancy", "eff_date", "dwelling_limit", "loss_of_rents", "liability", "deductible"]}, "arm": "B"} +{"portal": "ferncastle", "case_id": "fc-s05", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Unit occupancy", "dossier_key": null, "message": "Screen 'fc_rental' did not advance after clicking Next; Unit occupancy: Required", "url": "desk/quote", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Premises liability", "dossier_key": "coverage.liability_limit", "message": "Prefilled value on 'Premises liability' conflicts with grounded dossier state for 'coverage.liability_limit'", "url": "desk/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_fd154bb64b2829 to owner", "receipt": false, "elapsed_s": 10.7, "score": {"case_id": "fc-s05", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["client_no", "first_name", "last_name", "email", "phone", "street", "city", "state", "zip", "year_built", "units", "construction", "sqft", "roof_year", "mortgagee", "monthly_rent", "occupancy", "eff_date", "dwelling_limit", "loss_of_rents", "liability", "deductible"]}, "arm": "B"} +{"portal": "ferncastle", "case_id": "fc-s06", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Mortgagee name (blank if none)", "dossier_key": "property.mortgagee_name", "message": "The intake has 'property.mortgagee_name', but no binding enters it, and the field 'Mortgagee name (blank if none)' is empty", "url": "desk/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_f5978fe2b2c4b1 to owner", "receipt": false, "elapsed_s": 7.9, "score": {"case_id": "fc-s06", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["client_no", "first_name", "last_name", "email", "phone", "street", "city", "state", "zip", "year_built", "units", "construction", "sqft", "roof_year", "mortgagee", "monthly_rent", "occupancy", "eff_date", "dwelling_limit", "loss_of_rents", "liability", "deductible"]}, "arm": "B"} +{"portal": "ferncastle", "case_id": "fc-s07", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Unit occupancy", "dossier_key": null, "message": "Screen 'fc_rental' did not advance after clicking Next; Unit occupancy: Required", "url": "desk/quote", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Premises liability", "dossier_key": "coverage.liability_limit", "message": "Prefilled value on 'Premises liability' conflicts with grounded dossier state for 'coverage.liability_limit'", "url": "desk/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_a97faf309b9a79 to owner", "receipt": false, "elapsed_s": 12.1, "score": {"case_id": "fc-s07", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["client_no", "first_name", "last_name", "email", "phone", "street", "city", "state", "zip", "year_built", "units", "construction", "sqft", "roof_year", "mortgagee", "monthly_rent", "occupancy", "eff_date", "dwelling_limit", "loss_of_rents", "liability", "deductible"]}, "arm": "B"} +{"portal": "ferncastle", "case_id": "fc-s08", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Premises liability", "dossier_key": "coverage.liability_limit", "message": "Prefilled value on 'Premises liability' conflicts with grounded dossier state for 'coverage.liability_limit'", "url": "desk/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_7ab87b79a892a9 to owner", "receipt": false, "elapsed_s": 10.0, "score": {"case_id": "fc-s08", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["client_no", "first_name", "last_name", "email", "phone", "street", "city", "state", "zip", "year_built", "units", "construction", "sqft", "roof_year", "mortgagee", "monthly_rent", "occupancy", "eff_date", "dwelling_limit", "loss_of_rents", "liability", "deductible"]}, "arm": "B"} +{"portal": "glasswing", "case_id": "gw-s01", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Deductible", "dossier_key": "coverage.deductible", "message": "Prefilled value on 'Deductible' conflicts with grounded dossier state for 'coverage.deductible'", "url": "resident", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_a3d8f74b38752c to owner", "receipt": false, "elapsed_s": 7.1, "score": {"case_id": "gw-s01", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "start_date", "sprinklered", "roommate", "personal_property", "deductible", "liability"]}, "arm": "B"} +{"portal": "glasswing", "case_id": "gw-s02", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['contents.furnished', 'contents.rooms', 'residence.address_full', 'coverage.personal_property']", "readback": {"passed": 13, "failed": [], "not_checked": ["contents.furnished", "contents.rooms", "residence.address_full", "coverage.personal_property"]}, "receipt": false, "elapsed_s": 11.1, "score": {"case_id": "gw-s02", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "glasswing", "case_id": "gw-s03", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Deductible", "dossier_key": "coverage.deductible", "message": "Prefilled value on 'Deductible' conflicts with grounded dossier state for 'coverage.deductible'", "url": "resident", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_06cc3c62c807ab to owner", "receipt": false, "elapsed_s": 7.0, "score": {"case_id": "gw-s03", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "start_date", "sprinklered", "roommate", "personal_property", "deductible", "liability"]}, "arm": "B"} +{"portal": "glasswing", "case_id": "gw-s04", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Roommate to add to the policy (full name)", "dossier_key": null, "message": "'Roommate to add to the policy (full name)' holds a value this run did not type, and no binding covers it", "url": "resident", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['contents.furnished', 'contents.rooms', 'residence.address_full', 'control:Roommate to add to the policy (full name)', 'coverage.personal_property']", "readback": {"passed": 13, "failed": [], "not_checked": ["contents.furnished", "contents.rooms", "residence.address_full", "control:Roommate to add to the policy (full name)", "coverage.personal_property"]}, "receipt": false, "elapsed_s": 8.1, "score": {"case_id": "gw-s04", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "glasswing", "case_id": "gw-s05", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Street address", "dossier_key": "residence.address_full", "message": "Please complete this.; Street address: Street address Start typing, then choose your address from the list.", "url": "resident", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_1819afc9a31a98 to owner", "receipt": false, "elapsed_s": 6.4, "score": {"case_id": "gw-s05", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "start_date", "sprinklered", "roommate", "personal_property", "deductible", "liability"]}, "arm": "B"} +{"portal": "glasswing", "case_id": "gw-s06", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Roommate to add to the policy (full name)", "dossier_key": null, "message": "'Roommate to add to the policy (full name)' holds a value this run did not type, and no binding covers it", "url": "resident", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_312d6e7f31eaf6 to owner", "receipt": false, "elapsed_s": 3.5, "score": {"case_id": "gw-s06", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "start_date", "sprinklered", "roommate", "personal_property", "deductible", "liability"]}, "arm": "B"} +{"portal": "glasswing", "case_id": "gw-s07", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['contents.furnished', 'contents.rooms', 'residence.address_full', 'coverage.personal_property']", "readback": {"passed": 13, "failed": [], "not_checked": ["contents.furnished", "contents.rooms", "residence.address_full", "coverage.personal_property"]}, "receipt": false, "elapsed_s": 11.5, "score": {"case_id": "gw-s07", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "glasswing", "case_id": "gw-s08", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Street address", "dossier_key": "residence.address_full", "message": "Please complete this.; Street address: Street address Start typing, then choose your address from the list.", "url": "resident", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_b7a44ae9800aee to owner", "receipt": false, "elapsed_s": 6.1, "score": {"case_id": "gw-s08", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "start_date", "sprinklered", "roommate", "personal_property", "deductible", "liability"]}, "arm": "B"} +{"portal": "okelund", "case_id": "ok-s01", "halts": [{"halt_kind": "popup_contract_failed", "label": "", "dossier_key": "vehicle.model", "message": "Anchor {'label_patterns': ('^Select$',), 'name_or_id_patterns': (), 'section_patterns': ('^Vehicle Lookup$',), 'row_cell_dossier_keys': ()} matched 2 controls: ['Select (#results > tbody > tr:nth-of-type(1) > td:nth-of-type(3) > input)', 'S", "url": "an/desk", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_a7d3803c7d0389 to owner", "receipt": false, "elapsed_s": 11.9, "score": {"case_id": "ok-s01", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "marital_status", "email", "street", "city", "state", "zip", "license_state", "years_licensed", "accidents", "violations", "driver_training", "vehicle_year", "make", "model", "use", "annual_miles", "ownership", "aftermarket", "bi_limits", "coll_ded", "comp_ded", "rental", "eff_date"]}, "arm": "B"} +{"portal": "okelund", "case_id": "ok-s02", "halts": [{"halt_kind": "popup_contract_failed", "label": "", "dossier_key": "vehicle.model", "message": "Anchor {'label_patterns': ('^Select$',), 'name_or_id_patterns': (), 'section_patterns': ('^Vehicle Lookup$',), 'row_cell_dossier_keys': ()} matched 2 controls: ['Select (#results > tbody > tr:nth-of-type(1) > td:nth-of-type(3) > input)', 'S", "url": "an/desk", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_6cc8322cd5c662 to owner", "receipt": false, "elapsed_s": 12.8, "score": {"case_id": "ok-s02", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "marital_status", "email", "street", "city", "state", "zip", "license_state", "years_licensed", "accidents", "violations", "driver_training", "vehicle_year", "make", "model", "use", "annual_miles", "ownership", "aftermarket", "bi_limits", "coll_ded", "comp_ded", "rental", "eff_date"]}, "arm": "B"} +{"portal": "okelund", "case_id": "ok-s03", "halts": [{"halt_kind": "auth_wall_detected", "label": "", "dossier_key": null, "message": "Sign-in wall at 'http://127.0.0.1:46363/an/login' (sign-in form on screen)", "url": "an/desk", "action": "fixed_on_screen", "before_submit": true}, {"halt_kind": "fields_not_rechecked", "label": "Annual Miles", "dossier_key": null, "message": "A sign-in or a jump back interrupted this quote after fields were entered, and these fields cannot be re-checked from here before submit: ['Annual Miles:', 'At-Fault Accidents (3 Yrs):', 'Bodily Injury Limits:', 'Date of Birth (MM/DD/YYYY):", "url": "an/desk", "script_hit": true, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_0627585703c1cb to owner", "receipt": false, "elapsed_s": 16.2, "score": {"case_id": "ok-s03", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "marital_status", "email", "street", "city", "state", "zip", "license_state", "years_licensed", "accidents", "violations", "driver_training", "vehicle_year", "make", "model", "use", "annual_miles", "ownership", "aftermarket", "bi_limits", "coll_ded", "comp_ded", "rental", "eff_date"]}, "arm": "B"} +{"portal": "okelund", "case_id": "ok-s04", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Yes", "dossier_key": null, "message": "Screen 'ok_driver' did not advance after clicking Next; Yes: Required", "url": "an/desk", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_09447ff2f6dc6c to owner", "receipt": false, "elapsed_s": 7.3, "score": {"case_id": "ok-s04", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "marital_status", "email", "street", "city", "state", "zip", "license_state", "years_licensed", "accidents", "violations", "driver_training", "vehicle_year", "make", "model", "use", "annual_miles", "ownership", "aftermarket", "bi_limits", "coll_ded", "comp_ded", "rental", "eff_date"]}, "arm": "B"} +{"portal": "okelund", "case_id": "ok-s05", "halts": [], "outcome": "verified_done", "what_happened": "Committed and verified via independent read-back", "readback": {"passed": 25, "failed": [], "not_checked": []}, "receipt": true, "elapsed_s": 14.0, "score": {"case_id": "ok-s05", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "okelund", "case_id": "ok-s06", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Yes", "dossier_key": null, "message": "Screen 'ok_driver' did not advance after clicking Next; Yes: Required", "url": "an/desk", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_651f1a4cf38991 to owner", "receipt": false, "elapsed_s": 7.1, "score": {"case_id": "ok-s06", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "marital_status", "email", "street", "city", "state", "zip", "license_state", "years_licensed", "accidents", "violations", "driver_training", "vehicle_year", "make", "model", "use", "annual_miles", "ownership", "aftermarket", "bi_limits", "coll_ded", "comp_ded", "rental", "eff_date"]}, "arm": "B"} +{"portal": "okelund", "case_id": "ok-s07", "halts": [{"halt_kind": "popup_contract_failed", "label": "", "dossier_key": "vehicle.model", "message": "Anchor {'label_patterns': ('^Select$',), 'name_or_id_patterns': (), 'section_patterns': ('^Vehicle Lookup$',), 'row_cell_dossier_keys': ()} matched 2 controls: ['Select (#results > tbody > tr:nth-of-type(1) > td:nth-of-type(3) > input)', 'S", "url": "an/desk", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_ddc78d794a97f7 to owner", "receipt": false, "elapsed_s": 11.9, "score": {"case_id": "ok-s07", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "marital_status", "email", "street", "city", "state", "zip", "license_state", "years_licensed", "accidents", "violations", "driver_training", "vehicle_year", "make", "model", "use", "annual_miles", "ownership", "aftermarket", "bi_limits", "coll_ded", "comp_ded", "rental", "eff_date"]}, "arm": "B"} +{"portal": "okelund", "case_id": "ok-s08", "halts": [], "outcome": "readback_refuted", "what_happened": "Independent read-back did not verify commit: ['coverage.rental_reimbursement']", "readback": {"passed": 24, "failed": ["coverage.rental_reimbursement"], "not_checked": []}, "receipt": false, "elapsed_s": 14.4, "score": {"case_id": "ok-s08", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "velloway", "case_id": "vw-s01", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Umbrella limit", "dossier_key": "coverage.umbrella_limit", "message": "Prefilled value on 'Umbrella limit' conflicts with grounded dossier state for 'coverage.umbrella_limit'", "url": "umbrella/apply", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_e740c514f5e56c to owner", "receipt": false, "elapsed_s": 10.7, "score": {"case_id": "vw-s01", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "phone", "street", "city", "state", "zip", "occupation", "drivers", "youthful_drivers", "youthful_violations", "vehicles", "watercraft", "auto_liability", "home_liability", "rental_properties", "nonprofit_board", "umbrella_limit", "start_date"]}, "arm": "B"} +{"portal": "velloway", "case_id": "vw-s02", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Household account number (optional)", "dossier_key": "history.household_account", "message": "The intake has 'history.household_account', but no binding enters it, and the field 'Household account number (optional)' is empty", "url": "umbrella/start", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_9a0c8ec21c1c85 to owner", "receipt": false, "elapsed_s": 1.2, "score": {"case_id": "vw-s02", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "phone", "street", "city", "state", "zip", "occupation", "drivers", "youthful_drivers", "youthful_violations", "vehicles", "watercraft", "auto_liability", "home_liability", "rental_properties", "nonprofit_board", "umbrella_limit", "start_date"]}, "arm": "B"} +{"portal": "velloway", "case_id": "vw-s03", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Household account number (optional)", "dossier_key": "history.household_account", "message": "The intake has 'history.household_account', but no binding enters it, and the field 'Household account number (optional)' is empty", "url": "umbrella/start", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_e54e0fde9ff328 to owner", "receipt": false, "elapsed_s": 1.2, "score": {"case_id": "vw-s03", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "phone", "street", "city", "state", "zip", "occupation", "drivers", "youthful_drivers", "youthful_violations", "vehicles", "watercraft", "auto_liability", "home_liability", "rental_properties", "nonprofit_board", "umbrella_limit", "start_date"]}, "arm": "B"} +{"portal": "velloway", "case_id": "vw-s04", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Umbrella limit", "dossier_key": "coverage.umbrella_limit", "message": "Prefilled value on 'Umbrella limit' conflicts with grounded dossier state for 'coverage.umbrella_limit'", "url": "umbrella/apply", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_f877f2e68c11e7 to owner", "receipt": false, "elapsed_s": 10.8, "score": {"case_id": "vw-s04", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "phone", "street", "city", "state", "zip", "occupation", "drivers", "youthful_drivers", "youthful_violations", "vehicles", "watercraft", "auto_liability", "home_liability", "rental_properties", "nonprofit_board", "umbrella_limit", "start_date"]}, "arm": "B"} +{"portal": "velloway", "case_id": "vw-s05", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['applicant.dob_day', 'applicant.dob_month', 'applicant.dob_year', 'coverage.start_day', 'coverage.start_month', 'coverage.start_year', 'flow.confirm_details']", "readback": {"passed": 20, "failed": [], "not_checked": ["applicant.dob_day", "applicant.dob_month", "applicant.dob_year", "coverage.start_day", "coverage.start_month", "coverage.start_year", "flow.confirm_details"]}, "receipt": false, "elapsed_s": 12.1, "score": {"case_id": "vw-s05", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "velloway", "case_id": "vw-s06", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Umbrella limit", "dossier_key": "coverage.umbrella_limit", "message": "Prefilled value on 'Umbrella limit' conflicts with grounded dossier state for 'coverage.umbrella_limit'", "url": "umbrella/apply", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "auth_wall_detected", "label": "", "dossier_key": null, "message": "Sign-in wall at 'http://127.0.0.1:44863/account/sign-in' (sign-in form on screen)", "url": "account/sign-in", "action": "fixed_on_screen", "before_submit": true}, {"halt_kind": "fields_not_rechecked", "label": "Address line 1", "dossier_key": null, "message": "A sign-in or a jump back interrupted this quote after fields were entered, and these fields cannot be re-checked from here before submit: ['Address line 1', 'Auto liability limits', 'Day', 'Does anyone in your household serve as a director ", "url": "umbrella/summary", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_56e8878f639fa2 to owner", "receipt": false, "elapsed_s": 15.4, "score": {"case_id": "vw-s06", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "phone", "street", "city", "state", "zip", "occupation", "drivers", "youthful_drivers", "youthful_violations", "vehicles", "watercraft", "auto_liability", "home_liability", "rental_properties", "nonprofit_board", "umbrella_limit", "start_date"]}, "arm": "B"} +{"portal": "velloway", "case_id": "vw-s07", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Umbrella limit", "dossier_key": "coverage.umbrella_limit", "message": "Prefilled value on 'Umbrella limit' conflicts with grounded dossier state for 'coverage.umbrella_limit'", "url": "umbrella/apply", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_3dd5caccdcd407 to owner", "receipt": false, "elapsed_s": 8.8, "score": {"case_id": "vw-s07", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "phone", "street", "city", "state", "zip", "occupation", "drivers", "youthful_drivers", "youthful_violations", "vehicles", "watercraft", "auto_liability", "home_liability", "rental_properties", "nonprofit_board", "umbrella_limit", "start_date"]}, "arm": "B"} +{"portal": "velloway", "case_id": "vw-s08", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Has any driver under 25 had a moving violation in the last 3 years?", "dossier_key": null, "message": "There is a problemEnter or choose: Has any driver under 25 had a moving violation in the last 3 years; Has any driver under 25 had a moving violation in the last 3 years?: Has any driver under 25 had a moving violation in the last 3 years?E", "url": "umbrella/apply", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_eafb015b5904b7 to owner", "receipt": false, "elapsed_s": 12.1, "score": {"case_id": "vw-s08", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "phone", "street", "city", "state", "zip", "occupation", "drivers", "youthful_drivers", "youthful_violations", "vehicles", "watercraft", "auto_liability", "home_liability", "rental_properties", "nonprofit_board", "umbrella_limit", "start_date"]}, "arm": "B"} +{"portal": "velloway", "case_id": "vw-s09", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Household account number (optional)", "dossier_key": "history.household_account", "message": "The intake has 'history.household_account', but no binding enters it, and the field 'Household account number (optional)' is empty", "url": "umbrella/start", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_84e8a537ede0ba to owner", "receipt": false, "elapsed_s": 1.1, "score": {"case_id": "vw-s09", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "phone", "street", "city", "state", "zip", "occupation", "drivers", "youthful_drivers", "youthful_violations", "vehicles", "watercraft", "auto_liability", "home_liability", "rental_properties", "nonprofit_board", "umbrella_limit", "start_date"]}, "arm": "B"} diff --git a/packages/flow/benchmark/form_tx_heldout2_run/results_rework/dev_rerun_new4_frozen_packs_arm_B_full.log b/packages/flow/benchmark/form_tx_heldout2_run/results_rework/dev_rerun_new4_frozen_packs_arm_B_full.log new file mode 100644 index 0000000000..5b382b23a7 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout2_run/results_rework/dev_rerun_new4_frozen_packs_arm_B_full.log @@ -0,0 +1,35 @@ + 04:44:22 up 13:21, 2 users, load average: 4.01, 3.53, 2.85 +Mem: 10954 3318 2988 259 5110 7636 +FORM_TX_HELDOUT_LAYER {"portal": "ferncastle", "case_id": "fc-s01", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Mortgagee name (blank if none)", "dossier_key": "property.mortgagee_name", "message": "The intake has 'property.mortgagee_name', but no binding enters it, and the field 'Mortgagee name (blank if none)' is empty", "url": "desk/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_ee52f72895b648 to owner", "receipt": false, "elapsed_s": 6.9, "score": {"case_id": "fc-s01", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["client_no", "first_name", "last_name", "email", "phone", "street", "city", "state", "zip", "year_built", "units", "construction", "sqft", "roof_year", "mortgagee", "monthly_rent", "occupancy", "eff_date", "dwelling_limit", "loss_of_rents", "liability", "deductible"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "ferncastle", "case_id": "fc-s02", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Client number", "dossier_key": "history.client_number", "message": "The intake has 'history.client_number', but no binding enters it, and the field 'Client number' is empty", "url": "desk/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_0917274e4632e3 to owner", "receipt": false, "elapsed_s": 3.0, "score": {"case_id": "fc-s02", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["client_no", "first_name", "last_name", "email", "phone", "street", "city", "state", "zip", "year_built", "units", "construction", "sqft", "roof_year", "mortgagee", "monthly_rent", "occupancy", "eff_date", "dwelling_limit", "loss_of_rents", "liability", "deductible"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "ferncastle", "case_id": "fc-s03", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Client number", "dossier_key": "history.client_number", "message": "The intake has 'history.client_number', but no binding enters it, and the field 'Client number' is empty", "url": "desk/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_1e4853fd821572 to owner", "receipt": false, "elapsed_s": 3.1, "score": {"case_id": "fc-s03", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["client_no", "first_name", "last_name", "email", "phone", "street", "city", "state", "zip", "year_built", "units", "construction", "sqft", "roof_year", "mortgagee", "monthly_rent", "occupancy", "eff_date", "dwelling_limit", "loss_of_rents", "liability", "deductible"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "ferncastle", "case_id": "fc-s04", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Deductible", "dossier_key": "coverage.deductible", "message": "Prefilled value on 'Deductible' conflicts with grounded dossier state for 'coverage.deductible'", "url": "desk/quote", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "auth_wall_detected", "label": "", "dossier_key": null, "message": "Sign-in wall at 'http://127.0.0.1:45859/desk/quote' (sign-in form on screen)", "url": "desk/quote", "action": "fixed_on_screen", "before_submit": true}, {"halt_kind": "fields_not_rechecked", "label": "City", "dossier_key": null, "message": "A sign-in or a jump back interrupted this quote after fields were entered, and these fields cannot be re-checked from here before submit: ['City', 'Construction', 'Deductible', 'Dwelling limit ($)', 'Email', 'First name', 'Last name', 'Loss", "url": "desk/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_7b26111afe8dbb to owner", "receipt": false, "elapsed_s": 13.7, "score": {"case_id": "fc-s04", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["client_no", "first_name", "last_name", "email", "phone", "street", "city", "state", "zip", "year_built", "units", "construction", "sqft", "roof_year", "mortgagee", "monthly_rent", "occupancy", "eff_date", "dwelling_limit", "loss_of_rents", "liability", "deductible"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "ferncastle", "case_id": "fc-s05", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Unit occupancy", "dossier_key": null, "message": "Screen 'fc_rental' did not advance after clicking Next; Unit occupancy: Required", "url": "desk/quote", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Premises liability", "dossier_key": "coverage.liability_limit", "message": "Prefilled value on 'Premises liability' conflicts with grounded dossier state for 'coverage.liability_limit'", "url": "desk/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_fd154bb64b2829 to owner", "receipt": false, "elapsed_s": 10.7, "score": {"case_id": "fc-s05", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["client_no", "first_name", "last_name", "email", "phone", "street", "city", "state", "zip", "year_built", "units", "construction", "sqft", "roof_year", "mortgagee", "monthly_rent", "occupancy", "eff_date", "dwelling_limit", "loss_of_rents", "liability", "deductible"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "ferncastle", "case_id": "fc-s06", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Mortgagee name (blank if none)", "dossier_key": "property.mortgagee_name", "message": "The intake has 'property.mortgagee_name', but no binding enters it, and the field 'Mortgagee name (blank if none)' is empty", "url": "desk/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_f5978fe2b2c4b1 to owner", "receipt": false, "elapsed_s": 7.9, "score": {"case_id": "fc-s06", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["client_no", "first_name", "last_name", "email", "phone", "street", "city", "state", "zip", "year_built", "units", "construction", "sqft", "roof_year", "mortgagee", "monthly_rent", "occupancy", "eff_date", "dwelling_limit", "loss_of_rents", "liability", "deductible"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "ferncastle", "case_id": "fc-s07", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Unit occupancy", "dossier_key": null, "message": "Screen 'fc_rental' did not advance after clicking Next; Unit occupancy: Required", "url": "desk/quote", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Premises liability", "dossier_key": "coverage.liability_limit", "message": "Prefilled value on 'Premises liability' conflicts with grounded dossier state for 'coverage.liability_limit'", "url": "desk/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_a97faf309b9a79 to owner", "receipt": false, "elapsed_s": 12.1, "score": {"case_id": "fc-s07", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["client_no", "first_name", "last_name", "email", "phone", "street", "city", "state", "zip", "year_built", "units", "construction", "sqft", "roof_year", "mortgagee", "monthly_rent", "occupancy", "eff_date", "dwelling_limit", "loss_of_rents", "liability", "deductible"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "ferncastle", "case_id": "fc-s08", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Premises liability", "dossier_key": "coverage.liability_limit", "message": "Prefilled value on 'Premises liability' conflicts with grounded dossier state for 'coverage.liability_limit'", "url": "desk/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_7ab87b79a892a9 to owner", "receipt": false, "elapsed_s": 10.0, "score": {"case_id": "fc-s08", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["client_no", "first_name", "last_name", "email", "phone", "street", "city", "state", "zip", "year_built", "units", "construction", "sqft", "roof_year", "mortgagee", "monthly_rent", "occupancy", "eff_date", "dwelling_limit", "loss_of_rents", "liability", "deductible"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "glasswing", "case_id": "gw-s01", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Deductible", "dossier_key": "coverage.deductible", "message": "Prefilled value on 'Deductible' conflicts with grounded dossier state for 'coverage.deductible'", "url": "resident", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_a3d8f74b38752c to owner", "receipt": false, "elapsed_s": 7.1, "score": {"case_id": "gw-s01", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "start_date", "sprinklered", "roommate", "personal_property", "deductible", "liability"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "glasswing", "case_id": "gw-s02", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['contents.furnished', 'contents.rooms', 'residence.address_full', 'coverage.personal_property']", "readback": {"passed": 13, "failed": [], "not_checked": ["contents.furnished", "contents.rooms", "residence.address_full", "coverage.personal_property"]}, "receipt": false, "elapsed_s": 11.1, "score": {"case_id": "gw-s02", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "glasswing", "case_id": "gw-s03", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Deductible", "dossier_key": "coverage.deductible", "message": "Prefilled value on 'Deductible' conflicts with grounded dossier state for 'coverage.deductible'", "url": "resident", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_06cc3c62c807ab to owner", "receipt": false, "elapsed_s": 7.0, "score": {"case_id": "gw-s03", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "start_date", "sprinklered", "roommate", "personal_property", "deductible", "liability"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "glasswing", "case_id": "gw-s04", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Roommate to add to the policy (full name)", "dossier_key": null, "message": "'Roommate to add to the policy (full name)' holds a value this run did not type, and no binding covers it", "url": "resident", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['contents.furnished', 'contents.rooms', 'residence.address_full', 'control:Roommate to add to the policy (full name)', 'coverage.personal_property']", "readback": {"passed": 13, "failed": [], "not_checked": ["contents.furnished", "contents.rooms", "residence.address_full", "control:Roommate to add to the policy (full name)", "coverage.personal_property"]}, "receipt": false, "elapsed_s": 8.1, "score": {"case_id": "gw-s04", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "glasswing", "case_id": "gw-s05", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Street address", "dossier_key": "residence.address_full", "message": "Please complete this.; Street address: Street address Start typing, then choose your address from the list.", "url": "resident", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_1819afc9a31a98 to owner", "receipt": false, "elapsed_s": 6.4, "score": {"case_id": "gw-s05", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "start_date", "sprinklered", "roommate", "personal_property", "deductible", "liability"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "glasswing", "case_id": "gw-s06", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Roommate to add to the policy (full name)", "dossier_key": null, "message": "'Roommate to add to the policy (full name)' holds a value this run did not type, and no binding covers it", "url": "resident", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_312d6e7f31eaf6 to owner", "receipt": false, "elapsed_s": 3.5, "score": {"case_id": "gw-s06", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "start_date", "sprinklered", "roommate", "personal_property", "deductible", "liability"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "glasswing", "case_id": "gw-s07", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['contents.furnished', 'contents.rooms', 'residence.address_full', 'coverage.personal_property']", "readback": {"passed": 13, "failed": [], "not_checked": ["contents.furnished", "contents.rooms", "residence.address_full", "coverage.personal_property"]}, "receipt": false, "elapsed_s": 11.5, "score": {"case_id": "gw-s07", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "glasswing", "case_id": "gw-s08", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Street address", "dossier_key": "residence.address_full", "message": "Please complete this.; Street address: Street address Start typing, then choose your address from the list.", "url": "resident", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_b7a44ae9800aee to owner", "receipt": false, "elapsed_s": 6.1, "score": {"case_id": "gw-s08", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "start_date", "sprinklered", "roommate", "personal_property", "deductible", "liability"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "okelund", "case_id": "ok-s01", "halts": [{"halt_kind": "popup_contract_failed", "label": "", "dossier_key": "vehicle.model", "message": "Anchor {'label_patterns': ('^Select$',), 'name_or_id_patterns': (), 'section_patterns': ('^Vehicle Lookup$',), 'row_cell_dossier_keys': ()} matched 2 controls: ['Select (#results > tbody > tr:nth-of-type(1) > td:nth-of-type(3) > input)', 'S", "url": "an/desk", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_a7d3803c7d0389 to owner", "receipt": false, "elapsed_s": 11.9, "score": {"case_id": "ok-s01", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "marital_status", "email", "street", "city", "state", "zip", "license_state", "years_licensed", "accidents", "violations", "driver_training", "vehicle_year", "make", "model", "use", "annual_miles", "ownership", "aftermarket", "bi_limits", "coll_ded", "comp_ded", "rental", "eff_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "okelund", "case_id": "ok-s02", "halts": [{"halt_kind": "popup_contract_failed", "label": "", "dossier_key": "vehicle.model", "message": "Anchor {'label_patterns': ('^Select$',), 'name_or_id_patterns': (), 'section_patterns': ('^Vehicle Lookup$',), 'row_cell_dossier_keys': ()} matched 2 controls: ['Select (#results > tbody > tr:nth-of-type(1) > td:nth-of-type(3) > input)', 'S", "url": "an/desk", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_6cc8322cd5c662 to owner", "receipt": false, "elapsed_s": 12.8, "score": {"case_id": "ok-s02", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "marital_status", "email", "street", "city", "state", "zip", "license_state", "years_licensed", "accidents", "violations", "driver_training", "vehicle_year", "make", "model", "use", "annual_miles", "ownership", "aftermarket", "bi_limits", "coll_ded", "comp_ded", "rental", "eff_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "okelund", "case_id": "ok-s03", "halts": [{"halt_kind": "auth_wall_detected", "label": "", "dossier_key": null, "message": "Sign-in wall at 'http://127.0.0.1:46363/an/login' (sign-in form on screen)", "url": "an/desk", "action": "fixed_on_screen", "before_submit": true}, {"halt_kind": "fields_not_rechecked", "label": "Annual Miles", "dossier_key": null, "message": "A sign-in or a jump back interrupted this quote after fields were entered, and these fields cannot be re-checked from here before submit: ['Annual Miles:', 'At-Fault Accidents (3 Yrs):', 'Bodily Injury Limits:', 'Date of Birth (MM/DD/YYYY):", "url": "an/desk", "script_hit": true, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_0627585703c1cb to owner", "receipt": false, "elapsed_s": 16.2, "score": {"case_id": "ok-s03", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "marital_status", "email", "street", "city", "state", "zip", "license_state", "years_licensed", "accidents", "violations", "driver_training", "vehicle_year", "make", "model", "use", "annual_miles", "ownership", "aftermarket", "bi_limits", "coll_ded", "comp_ded", "rental", "eff_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "okelund", "case_id": "ok-s04", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Yes", "dossier_key": null, "message": "Screen 'ok_driver' did not advance after clicking Next; Yes: Required", "url": "an/desk", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_09447ff2f6dc6c to owner", "receipt": false, "elapsed_s": 7.3, "score": {"case_id": "ok-s04", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "marital_status", "email", "street", "city", "state", "zip", "license_state", "years_licensed", "accidents", "violations", "driver_training", "vehicle_year", "make", "model", "use", "annual_miles", "ownership", "aftermarket", "bi_limits", "coll_ded", "comp_ded", "rental", "eff_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "okelund", "case_id": "ok-s05", "halts": [], "outcome": "verified_done", "what_happened": "Committed and verified via independent read-back", "readback": {"passed": 25, "failed": [], "not_checked": []}, "receipt": true, "elapsed_s": 14.0, "score": {"case_id": "ok-s05", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "okelund", "case_id": "ok-s06", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Yes", "dossier_key": null, "message": "Screen 'ok_driver' did not advance after clicking Next; Yes: Required", "url": "an/desk", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_651f1a4cf38991 to owner", "receipt": false, "elapsed_s": 7.1, "score": {"case_id": "ok-s06", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "marital_status", "email", "street", "city", "state", "zip", "license_state", "years_licensed", "accidents", "violations", "driver_training", "vehicle_year", "make", "model", "use", "annual_miles", "ownership", "aftermarket", "bi_limits", "coll_ded", "comp_ded", "rental", "eff_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "okelund", "case_id": "ok-s07", "halts": [{"halt_kind": "popup_contract_failed", "label": "", "dossier_key": "vehicle.model", "message": "Anchor {'label_patterns': ('^Select$',), 'name_or_id_patterns': (), 'section_patterns': ('^Vehicle Lookup$',), 'row_cell_dossier_keys': ()} matched 2 controls: ['Select (#results > tbody > tr:nth-of-type(1) > td:nth-of-type(3) > input)', 'S", "url": "an/desk", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_ddc78d794a97f7 to owner", "receipt": false, "elapsed_s": 11.9, "score": {"case_id": "ok-s07", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "marital_status", "email", "street", "city", "state", "zip", "license_state", "years_licensed", "accidents", "violations", "driver_training", "vehicle_year", "make", "model", "use", "annual_miles", "ownership", "aftermarket", "bi_limits", "coll_ded", "comp_ded", "rental", "eff_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "okelund", "case_id": "ok-s08", "halts": [], "outcome": "readback_refuted", "what_happened": "Independent read-back did not verify commit: ['coverage.rental_reimbursement']", "readback": {"passed": 24, "failed": ["coverage.rental_reimbursement"], "not_checked": []}, "receipt": false, "elapsed_s": 14.4, "score": {"case_id": "ok-s08", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "velloway", "case_id": "vw-s01", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Umbrella limit", "dossier_key": "coverage.umbrella_limit", "message": "Prefilled value on 'Umbrella limit' conflicts with grounded dossier state for 'coverage.umbrella_limit'", "url": "umbrella/apply", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_e740c514f5e56c to owner", "receipt": false, "elapsed_s": 10.7, "score": {"case_id": "vw-s01", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "phone", "street", "city", "state", "zip", "occupation", "drivers", "youthful_drivers", "youthful_violations", "vehicles", "watercraft", "auto_liability", "home_liability", "rental_properties", "nonprofit_board", "umbrella_limit", "start_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "velloway", "case_id": "vw-s02", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Household account number (optional)", "dossier_key": "history.household_account", "message": "The intake has 'history.household_account', but no binding enters it, and the field 'Household account number (optional)' is empty", "url": "umbrella/start", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_9a0c8ec21c1c85 to owner", "receipt": false, "elapsed_s": 1.2, "score": {"case_id": "vw-s02", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "phone", "street", "city", "state", "zip", "occupation", "drivers", "youthful_drivers", "youthful_violations", "vehicles", "watercraft", "auto_liability", "home_liability", "rental_properties", "nonprofit_board", "umbrella_limit", "start_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "velloway", "case_id": "vw-s03", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Household account number (optional)", "dossier_key": "history.household_account", "message": "The intake has 'history.household_account', but no binding enters it, and the field 'Household account number (optional)' is empty", "url": "umbrella/start", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_e54e0fde9ff328 to owner", "receipt": false, "elapsed_s": 1.2, "score": {"case_id": "vw-s03", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "phone", "street", "city", "state", "zip", "occupation", "drivers", "youthful_drivers", "youthful_violations", "vehicles", "watercraft", "auto_liability", "home_liability", "rental_properties", "nonprofit_board", "umbrella_limit", "start_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "velloway", "case_id": "vw-s04", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Umbrella limit", "dossier_key": "coverage.umbrella_limit", "message": "Prefilled value on 'Umbrella limit' conflicts with grounded dossier state for 'coverage.umbrella_limit'", "url": "umbrella/apply", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_f877f2e68c11e7 to owner", "receipt": false, "elapsed_s": 10.8, "score": {"case_id": "vw-s04", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "phone", "street", "city", "state", "zip", "occupation", "drivers", "youthful_drivers", "youthful_violations", "vehicles", "watercraft", "auto_liability", "home_liability", "rental_properties", "nonprofit_board", "umbrella_limit", "start_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "velloway", "case_id": "vw-s05", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['applicant.dob_day', 'applicant.dob_month', 'applicant.dob_year', 'coverage.start_day', 'coverage.start_month', 'coverage.start_year', 'flow.confirm_details']", "readback": {"passed": 20, "failed": [], "not_checked": ["applicant.dob_day", "applicant.dob_month", "applicant.dob_year", "coverage.start_day", "coverage.start_month", "coverage.start_year", "flow.confirm_details"]}, "receipt": false, "elapsed_s": 12.1, "score": {"case_id": "vw-s05", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "velloway", "case_id": "vw-s06", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Umbrella limit", "dossier_key": "coverage.umbrella_limit", "message": "Prefilled value on 'Umbrella limit' conflicts with grounded dossier state for 'coverage.umbrella_limit'", "url": "umbrella/apply", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "auth_wall_detected", "label": "", "dossier_key": null, "message": "Sign-in wall at 'http://127.0.0.1:44863/account/sign-in' (sign-in form on screen)", "url": "account/sign-in", "action": "fixed_on_screen", "before_submit": true}, {"halt_kind": "fields_not_rechecked", "label": "Address line 1", "dossier_key": null, "message": "A sign-in or a jump back interrupted this quote after fields were entered, and these fields cannot be re-checked from here before submit: ['Address line 1', 'Auto liability limits', 'Day', 'Does anyone in your household serve as a director ", "url": "umbrella/summary", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_56e8878f639fa2 to owner", "receipt": false, "elapsed_s": 15.4, "score": {"case_id": "vw-s06", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "phone", "street", "city", "state", "zip", "occupation", "drivers", "youthful_drivers", "youthful_violations", "vehicles", "watercraft", "auto_liability", "home_liability", "rental_properties", "nonprofit_board", "umbrella_limit", "start_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "velloway", "case_id": "vw-s07", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Umbrella limit", "dossier_key": "coverage.umbrella_limit", "message": "Prefilled value on 'Umbrella limit' conflicts with grounded dossier state for 'coverage.umbrella_limit'", "url": "umbrella/apply", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_3dd5caccdcd407 to owner", "receipt": false, "elapsed_s": 8.8, "score": {"case_id": "vw-s07", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "phone", "street", "city", "state", "zip", "occupation", "drivers", "youthful_drivers", "youthful_violations", "vehicles", "watercraft", "auto_liability", "home_liability", "rental_properties", "nonprofit_board", "umbrella_limit", "start_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "velloway", "case_id": "vw-s08", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Has any driver under 25 had a moving violation in the last 3 years?", "dossier_key": null, "message": "There is a problemEnter or choose: Has any driver under 25 had a moving violation in the last 3 years; Has any driver under 25 had a moving violation in the last 3 years?: Has any driver under 25 had a moving violation in the last 3 years?E", "url": "umbrella/apply", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_eafb015b5904b7 to owner", "receipt": false, "elapsed_s": 12.1, "score": {"case_id": "vw-s08", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "phone", "street", "city", "state", "zip", "occupation", "drivers", "youthful_drivers", "youthful_violations", "vehicles", "watercraft", "auto_liability", "home_liability", "rental_properties", "nonprofit_board", "umbrella_limit", "start_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "velloway", "case_id": "vw-s09", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Household account number (optional)", "dossier_key": "history.household_account", "message": "The intake has 'history.household_account', but no binding enters it, and the field 'Household account number (optional)' is empty", "url": "umbrella/start", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_84e8a537ede0ba to owner", "receipt": false, "elapsed_s": 1.1, "score": {"case_id": "vw-s09", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "phone", "street", "city", "state", "zip", "occupation", "drivers", "youthful_drivers", "youthful_violations", "vehicles", "watercraft", "auto_liability", "home_liability", "rental_properties", "nonprofit_board", "umbrella_limit", "start_date"]}, "arm": "B"} diff --git a/packages/flow/benchmark/form_tx_heldout2_run/results_rework/dev_rerun_old4_final_engine_arm_B.jsonl b/packages/flow/benchmark/form_tx_heldout2_run/results_rework/dev_rerun_old4_final_engine_arm_B.jsonl new file mode 100644 index 0000000000..2c28f012f4 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout2_run/results_rework/dev_rerun_old4_final_engine_arm_B.jsonl @@ -0,0 +1,32 @@ +{"portal": "harborline", "case_id": "hl-s01", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Construction Class", "dossier_key": "property.construction_class", "message": "Required control 'Construction Class:' has no grounded value in dossier", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['intake:property.area_unit', 'intake:property.city_state', 'intake:property.exterior_wall']", "readback": {"passed": 21, "failed": [], "not_checked": ["intake:property.area_unit", "intake:property.city_state", "intake:property.exterior_wall"]}, "receipt": false, "elapsed_s": 14.3, "score": {"case_id": "hl-s01", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "harborline", "case_id": "hl-s02", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Roof Covering Last Replaced (Year)", "dossier_key": "property.roof_year", "message": "Prefilled value on 'Roof Covering Last Replaced (Year):' conflicts with grounded dossier state for 'property.roof_year'", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Number of Losses (Last 5 Yrs)", "dossier_key": "history.prior_claims_5yr", "message": "Prefilled value on 'Number of Losses (Last 5 Yrs):' conflicts with grounded dossier state for 'history.prior_claims_5yr'", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "ungrounded_required_field", "label": "Construction Class", "dossier_key": "property.construction_class", "message": "Required control 'Construction Class:' has no grounded value in dossier", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_refuted", "what_happened": "Independent read-back did not verify commit: ['property.stories']", "readback": {"passed": 21, "failed": ["property.stories"], "not_checked": ["intake:property.area_unit", "intake:property.city_state", "intake:property.exterior_wall"]}, "receipt": false, "elapsed_s": 11.9, "score": {"case_id": "hl-s02", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "harborline", "case_id": "hl-s03", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Dwelling Coverage (A)", "dossier_key": "coverage.dwelling_a", "message": "Popup 'hl_rce' showed '$678,160' but put '680,000' in 'coverage.dwelling_a'", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "ungrounded_required_field", "label": "Construction Class", "dossier_key": "property.construction_class", "message": "Required control 'Construction Class:' has no grounded value in dossier", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.construction_quality', 'intake:property.area_unit', 'intake:property.city_state', 'intake:property.exterior_wall']", "readback": {"passed": 21, "failed": [], "not_checked": ["property.construction_quality", "intake:property.area_unit", "intake:property.city_state", "intake:property.exterior_wall"]}, "receipt": false, "elapsed_s": 14.1, "score": {"case_id": "hl-s03", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "harborline", "case_id": "hl-s04", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['intake:property.area_unit', 'intake:property.city_state', 'intake:property.exterior_wall']", "readback": {"passed": 20, "failed": [], "not_checked": ["intake:property.area_unit", "intake:property.city_state", "intake:property.exterior_wall"]}, "receipt": false, "elapsed_s": 13.7, "score": {"case_id": "hl-s04", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "harborline", "case_id": "hl-s05", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Construction Class", "dossier_key": "property.construction_class", "message": "Required control 'Construction Class:' has no grounded value in dossier", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "auth_wall_detected", "label": "", "dossier_key": null, "message": "Sign-in wall at 'http://127.0.0.1:45477/agent/login' (sign-in form on screen)", "url": "agent/login", "action": "fixed_on_screen", "before_submit": true}, {"halt_kind": "fields_not_rechecked", "label": "All Peril Deductible", "dossier_key": null, "message": "A sign-in or a jump back interrupted this quote after fields were entered, and these fields cannot be re-checked from here before submit: ['All Peril Deductible:', 'City:', 'Construction Class:', 'Date of Birth (MM/DD/YYYY):', 'E-mail:', 'F", "url": "quote/review", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_9a4692a746f003 to owner", "receipt": false, "elapsed_s": 12.9, "score": {"case_id": "hl-s05", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "phone", "email", "prior_policy", "street", "city", "state", "zip", "year_built", "sqft", "stories", "construction_class", "roof_year", "roof_material", "losses_5yr", "cov_a", "eff_date", "deductible", "liability", "pool", "pool_fenced"]}, "arm": "B"} +{"portal": "harborline", "case_id": "hl-s06", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Construction Class", "dossier_key": "property.construction_class", "message": "Required control 'Construction Class:' has no grounded value in dossier", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['intake:property.area_unit', 'intake:property.city_state', 'intake:property.exterior_wall']", "readback": {"passed": 22, "failed": [], "not_checked": ["intake:property.area_unit", "intake:property.city_state", "intake:property.exterior_wall"]}, "receipt": false, "elapsed_s": 10.5, "score": {"case_id": "hl-s06", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "harborline", "case_id": "hl-s07", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['intake:property.area_unit', 'intake:property.city_state', 'intake:property.exterior_wall']", "readback": {"passed": 21, "failed": [], "not_checked": ["intake:property.area_unit", "intake:property.city_state", "intake:property.exterior_wall"]}, "receipt": false, "elapsed_s": 10.0, "score": {"case_id": "hl-s07", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "harborline", "case_id": "hl-s08", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Street Address", "dossier_key": "property.address_line1", "message": "Prefilled value on 'Street Address:' conflicts with grounded dossier state for 'property.address_line1'", "url": "quote/step/2", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Roof Covering Last Replaced (Year)", "dossier_key": "property.roof_year", "message": "Prefilled value on 'Roof Covering Last Replaced (Year):' conflicts with grounded dossier state for 'property.roof_year'", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Roof Covering Material", "dossier_key": "property.roof_material", "message": "Prefilled value on 'Roof Covering Material:' conflicts with grounded dossier state for 'property.roof_material'", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "ungrounded_required_field", "label": "Construction Class", "dossier_key": "property.construction_class", "message": "Required control 'Construction Class:' has no grounded value in dossier", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['intake:property.area_unit', 'intake:property.city_state', 'intake:property.exterior_wall']", "readback": {"passed": 22, "failed": [], "not_checked": ["intake:property.area_unit", "intake:property.city_state", "intake:property.exterior_wall"]}, "receipt": false, "elapsed_s": 11.3, "score": {"case_id": "hl-s08", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "harborline", "case_id": "hl-s09", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.construction_quality', 'intake:property.area_unit', 'intake:property.city_state', 'intake:property.exterior_wall']", "readback": {"passed": 21, "failed": [], "not_checked": ["property.construction_quality", "intake:property.area_unit", "intake:property.city_state", "intake:property.exterior_wall"]}, "receipt": false, "elapsed_s": 14.1, "score": {"case_id": "hl-s09", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "cobalt", "case_id": "cr-s01", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['intake:garaging.city', 'intake:garaging.state', 'intake:household.driver_count']", "readback": {"passed": 19, "failed": [], "not_checked": ["intake:garaging.city", "intake:garaging.state", "intake:household.driver_count"]}, "receipt": false, "elapsed_s": 14.0, "score": {"case_id": "cr-s01", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "cobalt", "case_id": "cr-s02", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Driver 2 First name", "dossier_key": null, "message": "'Driver 2 First name' holds a value this run did not type, and no binding covers it", "url": "quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_e0057d5abeecd5 to owner", "receipt": false, "elapsed_s": 4.3, "score": {"case_id": "cr-s02", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "license_state", "marital_status", "additional_drivers", "vehicle_year", "make", "model", "use", "commute_miles", "rideshare", "annual_miles", "garaging_zip", "garaging_city", "garaging_state", "ownership", "lienholder", "bi_limits", "collision_ded", "comp_ded"]}, "arm": "B"} +{"portal": "cobalt", "case_id": "cr-s03", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['intake:garaging.city', 'intake:garaging.state', 'intake:household.driver_count']", "readback": {"passed": 17, "failed": [], "not_checked": ["intake:garaging.city", "intake:garaging.state", "intake:household.driver_count"]}, "receipt": false, "elapsed_s": 13.9, "score": {"case_id": "cr-s03", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "cobalt", "case_id": "cr-s04", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Driver 2 First name", "dossier_key": null, "message": "'Driver 2 First name' holds a value this run did not type, and no binding covers it", "url": "quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_e0f88a461ebe9b to owner", "receipt": false, "elapsed_s": 4.4, "score": {"case_id": "cr-s04", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "license_state", "marital_status", "additional_drivers", "vehicle_year", "make", "model", "use", "commute_miles", "rideshare", "annual_miles", "garaging_zip", "garaging_city", "garaging_state", "ownership", "lienholder", "bi_limits", "collision_ded", "comp_ded"]}, "arm": "B"} +{"portal": "cobalt", "case_id": "cr-s05", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "", "dossier_key": null, "message": "Could not act on 'http://127.0.0.1:45363/quote': SurfaceSettleTimeoutError: Form surface failed to reach quiescence within 12000ms (last_reason='busy:inflight_network')", "url": "quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_82c2a1d4537c41 to owner", "receipt": false, "elapsed_s": 24.5, "score": {"case_id": "cr-s05", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "license_state", "marital_status", "additional_drivers", "vehicle_year", "make", "model", "use", "commute_miles", "rideshare", "annual_miles", "garaging_zip", "garaging_city", "garaging_state", "ownership", "lienholder", "bi_limits", "collision_ded", "comp_ded"]}, "arm": "B"} +{"portal": "cobalt", "case_id": "cr-s06", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Used for rideshare or delivery?", "dossier_key": null, "message": "This field is required.; Used for rideshare or delivery?: This field is required.", "url": "quote", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['control:Used for rideshare or delivery?', 'intake:garaging.city', 'intake:garaging.state', 'intake:household.driver_count']", "readback": {"passed": 17, "failed": [], "not_checked": ["control:Used for rideshare or delivery?", "intake:garaging.city", "intake:garaging.state", "intake:household.driver_count"]}, "receipt": false, "elapsed_s": 15.0, "score": {"case_id": "cr-s06", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "cobalt", "case_id": "cr-s07", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['intake:driver2.date_of_birth', 'intake:driver2.first_name', 'intake:driver2.last_name', 'intake:driver2.relationship', 'intake:garaging.city', 'intake:garaging.state', 'intake:household.driver_count']", "readback": {"passed": 17, "failed": [], "not_checked": ["intake:driver2.date_of_birth", "intake:driver2.first_name", "intake:driver2.last_name", "intake:driver2.relationship", "intake:garaging.city", "intake:garaging.state", "intake:household.driver_count"]}, "receipt": false, "elapsed_s": 14.5, "score": {"case_id": "cr-s07", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": false, "correct": false, "wrong_fields": ["additional_drivers"], "wrong_details": [{"field": "additional_drivers", "expected": [{"first_name": "Pavel", "last_name": "Halloran", "dob": "1981-10-09", "relationship": "Spouse"}], "stored": []}], "missing_fields": []}, "arm": "B"} +{"portal": "cobalt", "case_id": "cr-s08", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Lienholder or lessor name", "dossier_key": "vehicle.lienholder", "message": "This field is required.; Lienholder or lessor name: This field is required.", "url": "quote", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['intake:garaging.city', 'intake:garaging.state', 'intake:household.driver_count']", "readback": {"passed": 18, "failed": [], "not_checked": ["intake:garaging.city", "intake:garaging.state", "intake:household.driver_count"]}, "receipt": false, "elapsed_s": 13.9, "score": {"case_id": "cr-s08", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "pinecrest", "case_id": "pc-s01", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.area_unit', 'property.finish_level', 'property.square_feet', 'coverage.dwelling_limit', 'intake:property.city', 'intake:property.state']", "readback": {"passed": 13, "failed": [], "not_checked": ["property.area_unit", "property.finish_level", "property.square_feet", "coverage.dwelling_limit", "intake:property.city", "intake:property.state"]}, "receipt": false, "elapsed_s": 15.0, "score": {"case_id": "pc-s01", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "pinecrest", "case_id": "pc-s02", "halts": [{"halt_kind": "popup_contract_failed", "label": "Dwelling limit", "dossier_key": "coverage.dwelling_limit", "message": "Popup subroutine 'pc_rebuild' exited without populating a valid integer value in 'coverage.dwelling_limit'", "url": "portal", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.area_unit', 'property.finish_level', 'property.square_feet', 'intake:property.city', 'intake:property.state']", "readback": {"passed": 14, "failed": [], "not_checked": ["property.area_unit", "property.finish_level", "property.square_feet", "intake:property.city", "intake:property.state"]}, "receipt": false, "elapsed_s": 14.6, "score": {"case_id": "pc-s02", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "pinecrest", "case_id": "pc-s03", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Living area", "dossier_key": "property.square_feet", "message": "Prefilled value on 'Living area' conflicts with grounded dossier state for 'property.square_feet'", "url": "portal", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Area unit", "dossier_key": "property.area_unit", "message": "Prefilled value on 'Area unit' conflicts with grounded dossier state for 'property.area_unit'", "url": "portal", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Year roof was installed", "dossier_key": "property.roof_year", "message": "Prefilled value on 'Year roof was installed' conflicts with grounded dossier state for 'property.roof_year'", "url": "portal", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.area_unit', 'property.finish_level', 'property.square_feet', 'coverage.dwelling_limit', 'intake:property.city', 'intake:property.state']", "readback": {"passed": 13, "failed": [], "not_checked": ["property.area_unit", "property.finish_level", "property.square_feet", "coverage.dwelling_limit", "intake:property.city", "intake:property.state"]}, "receipt": false, "elapsed_s": 9.6, "score": {"case_id": "pc-s03", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "pinecrest", "case_id": "pc-s04", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.area_unit', 'property.finish_level', 'property.square_feet', 'coverage.dwelling_limit', 'intake:property.city', 'intake:property.state']", "readback": {"passed": 13, "failed": [], "not_checked": ["property.area_unit", "property.finish_level", "property.square_feet", "coverage.dwelling_limit", "intake:property.city", "intake:property.state"]}, "receipt": false, "elapsed_s": 6.8, "score": {"case_id": "pc-s04", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "pinecrest", "case_id": "pc-s05", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.area_unit', 'property.finish_level', 'property.square_feet', 'coverage.dwelling_limit', 'intake:property.city', 'intake:property.state']", "readback": {"passed": 13, "failed": [], "not_checked": ["property.area_unit", "property.finish_level", "property.square_feet", "coverage.dwelling_limit", "intake:property.city", "intake:property.state"]}, "receipt": false, "elapsed_s": 14.2, "score": {"case_id": "pc-s05", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "pinecrest", "case_id": "pc-s06", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Was the wood stove installed by a licensed professional?", "dossier_key": "property.wood_stove_professionally_installed", "message": "Required; Was the wood stove installed by a licensed professional?: Required", "url": "portal", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.area_unit', 'property.finish_level', 'property.square_feet', 'coverage.dwelling_limit', 'intake:property.city', 'intake:property.state']", "readback": {"passed": 14, "failed": [], "not_checked": ["property.area_unit", "property.finish_level", "property.square_feet", "coverage.dwelling_limit", "intake:property.city", "intake:property.state"]}, "receipt": false, "elapsed_s": 15.2, "score": {"case_id": "pc-s06", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "pinecrest", "case_id": "pc-s07", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.area_unit', 'property.finish_level', 'property.square_feet', 'coverage.dwelling_limit', 'intake:property.city', 'intake:property.state']", "readback": {"passed": 13, "failed": [], "not_checked": ["property.area_unit", "property.finish_level", "property.square_feet", "coverage.dwelling_limit", "intake:property.city", "intake:property.state"]}, "receipt": false, "elapsed_s": 13.9, "score": {"case_id": "pc-s07", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "pinecrest", "case_id": "pc-s08", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Claims in the last 5 years", "dossier_key": "history.prior_claims_5yr", "message": "Prefilled value on 'Claims in the last 5 years' conflicts with grounded dossier state for 'history.prior_claims_5yr'", "url": "portal", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.area_unit', 'property.finish_level', 'property.square_feet', 'coverage.dwelling_limit', 'intake:property.city', 'intake:property.state']", "readback": {"passed": 13, "failed": [], "not_checked": ["property.area_unit", "property.finish_level", "property.square_feet", "coverage.dwelling_limit", "intake:property.city", "intake:property.state"]}, "receipt": false, "elapsed_s": 8.4, "score": {"case_id": "pc-s08", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "tidewater", "case_id": "tw-s01", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Drivers in household", "dossier_key": "household.driver_count", "message": "Prefilled value on 'Drivers in household' conflicts with grounded dossier state for 'household.driver_count'", "url": "qq/3", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_9b56d01186f9cd to owner", "receipt": false, "elapsed_s": 10.3, "score": {"case_id": "tw-s01", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "year_built", "sqft", "roof_year", "occupancy", "short_term_rental", "losses_3yr", "vehicle_year", "make", "model", "driver_count"]}, "arm": "B"} +{"portal": "tidewater", "case_id": "tw-s02", "halts": [], "outcome": "readback_refuted", "what_happened": "Independent read-back did not verify commit: ['property.address_line1']", "readback": {"passed": 16, "failed": ["property.address_line1"], "not_checked": ["intake:property.area_unit", "intake:property.city_state"]}, "receipt": false, "elapsed_s": 10.8, "score": {"case_id": "tw-s02", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": false, "correct": false, "wrong_fields": ["unit"], "wrong_details": [{"field": "unit", "expected": "APT 4", "stored": ""}], "missing_fields": []}, "arm": "B"} +{"portal": "tidewater", "case_id": "tw-s03", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Square footage", "dossier_key": "property.square_feet", "message": "Prefilled value on 'Square footage' conflicts with grounded dossier state for 'property.square_feet'", "url": "qq/2", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Roof updated (year)", "dossier_key": "property.roof_year", "message": "Prefilled value on 'Roof updated (year)' conflicts with grounded dossier state for 'property.roof_year'", "url": "qq/2", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "auth_wall_detected", "label": "", "dossier_key": null, "message": "Sign-in wall at 'http://127.0.0.1:45243/signin' (sign-in form on screen)", "url": "signin", "action": "fixed_on_screen", "before_submit": true}, {"halt_kind": "fields_not_rechecked", "label": "City", "dossier_key": null, "message": "A sign-in or a jump back interrupted this quote after fields were entered, and these fields cannot be re-checked from here before submit: ['City', 'Date of birth (MM/DD/YYYY)', 'Email', 'First name', 'Last name', 'Roof updated (year)', 'Squ", "url": "qq/review", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_0951c1092c7b82 to owner", "receipt": false, "elapsed_s": 7.3, "score": {"case_id": "tw-s03", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "year_built", "sqft", "roof_year", "occupancy", "short_term_rental", "losses_3yr", "vehicle_year", "make", "model", "driver_count"]}, "arm": "B"} +{"portal": "tidewater", "case_id": "tw-s04", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['intake:property.area_unit', 'intake:property.city_state']", "readback": {"passed": 17, "failed": [], "not_checked": ["intake:property.area_unit", "intake:property.city_state"]}, "receipt": false, "elapsed_s": 6.6, "score": {"case_id": "tw-s04", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "tidewater", "case_id": "tw-s05", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Losses in the last 3 years", "dossier_key": "history.prior_claims_3yr", "message": "Prefilled value on 'Losses in the last 3 years' conflicts with grounded dossier state for 'history.prior_claims_3yr'", "url": "qq/2", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Vehicle year", "dossier_key": "vehicle.year", "message": "Prefilled value on 'Vehicle year' conflicts with grounded dossier state for 'vehicle.year'", "url": "qq/3", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_ae53521306fd9e to owner", "receipt": false, "elapsed_s": 6.0, "score": {"case_id": "tw-s05", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "year_built", "sqft", "roof_year", "occupancy", "short_term_rental", "losses_3yr", "vehicle_year", "make", "model", "driver_count"]}, "arm": "B"} +{"portal": "tidewater", "case_id": "tw-s06", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Drivers in household", "dossier_key": "household.driver_count", "message": "Prefilled value on 'Drivers in household' conflicts with grounded dossier state for 'household.driver_count'", "url": "qq/3", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_b5208a0b3a745b to owner", "receipt": false, "elapsed_s": 9.5, "score": {"case_id": "tw-s06", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "year_built", "sqft", "roof_year", "occupancy", "short_term_rental", "losses_3yr", "vehicle_year", "make", "model", "driver_count"]}, "arm": "B"} +{"portal": "tidewater", "case_id": "tw-s07", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Occupancy", "dossier_key": "property.occupancy", "message": "Prefilled value on 'Occupancy' conflicts with grounded dossier state for 'property.occupancy'", "url": "qq/2", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_777633574540aa to owner", "receipt": false, "elapsed_s": 4.7, "score": {"case_id": "tw-s07", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "year_built", "sqft", "roof_year", "occupancy", "short_term_rental", "losses_3yr", "vehicle_year", "make", "model", "driver_count"]}, "arm": "B"} diff --git a/packages/flow/benchmark/form_tx_heldout2_run/results_rework/dev_rerun_old4_final_engine_arm_B_full.log b/packages/flow/benchmark/form_tx_heldout2_run/results_rework/dev_rerun_old4_final_engine_arm_B_full.log new file mode 100644 index 0000000000..5c02ef6af9 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout2_run/results_rework/dev_rerun_old4_final_engine_arm_B_full.log @@ -0,0 +1,32 @@ +FORM_TX_HELDOUT_LAYER {"portal": "harborline", "case_id": "hl-s01", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Construction Class", "dossier_key": "property.construction_class", "message": "Required control 'Construction Class:' has no grounded value in dossier", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['intake:property.area_unit', 'intake:property.city_state', 'intake:property.exterior_wall']", "readback": {"passed": 21, "failed": [], "not_checked": ["intake:property.area_unit", "intake:property.city_state", "intake:property.exterior_wall"]}, "receipt": false, "elapsed_s": 14.3, "score": {"case_id": "hl-s01", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "harborline", "case_id": "hl-s02", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Roof Covering Last Replaced (Year)", "dossier_key": "property.roof_year", "message": "Prefilled value on 'Roof Covering Last Replaced (Year):' conflicts with grounded dossier state for 'property.roof_year'", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Number of Losses (Last 5 Yrs)", "dossier_key": "history.prior_claims_5yr", "message": "Prefilled value on 'Number of Losses (Last 5 Yrs):' conflicts with grounded dossier state for 'history.prior_claims_5yr'", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "ungrounded_required_field", "label": "Construction Class", "dossier_key": "property.construction_class", "message": "Required control 'Construction Class:' has no grounded value in dossier", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_refuted", "what_happened": "Independent read-back did not verify commit: ['property.stories']", "readback": {"passed": 21, "failed": ["property.stories"], "not_checked": ["intake:property.area_unit", "intake:property.city_state", "intake:property.exterior_wall"]}, "receipt": false, "elapsed_s": 11.9, "score": {"case_id": "hl-s02", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "harborline", "case_id": "hl-s03", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Dwelling Coverage (A)", "dossier_key": "coverage.dwelling_a", "message": "Popup 'hl_rce' showed '$678,160' but put '680,000' in 'coverage.dwelling_a'", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "ungrounded_required_field", "label": "Construction Class", "dossier_key": "property.construction_class", "message": "Required control 'Construction Class:' has no grounded value in dossier", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.construction_quality', 'intake:property.area_unit', 'intake:property.city_state', 'intake:property.exterior_wall']", "readback": {"passed": 21, "failed": [], "not_checked": ["property.construction_quality", "intake:property.area_unit", "intake:property.city_state", "intake:property.exterior_wall"]}, "receipt": false, "elapsed_s": 14.1, "score": {"case_id": "hl-s03", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "harborline", "case_id": "hl-s04", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['intake:property.area_unit', 'intake:property.city_state', 'intake:property.exterior_wall']", "readback": {"passed": 20, "failed": [], "not_checked": ["intake:property.area_unit", "intake:property.city_state", "intake:property.exterior_wall"]}, "receipt": false, "elapsed_s": 13.7, "score": {"case_id": "hl-s04", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "harborline", "case_id": "hl-s05", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Construction Class", "dossier_key": "property.construction_class", "message": "Required control 'Construction Class:' has no grounded value in dossier", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "auth_wall_detected", "label": "", "dossier_key": null, "message": "Sign-in wall at 'http://127.0.0.1:45477/agent/login' (sign-in form on screen)", "url": "agent/login", "action": "fixed_on_screen", "before_submit": true}, {"halt_kind": "fields_not_rechecked", "label": "All Peril Deductible", "dossier_key": null, "message": "A sign-in or a jump back interrupted this quote after fields were entered, and these fields cannot be re-checked from here before submit: ['All Peril Deductible:', 'City:', 'Construction Class:', 'Date of Birth (MM/DD/YYYY):', 'E-mail:', 'F", "url": "quote/review", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_9a4692a746f003 to owner", "receipt": false, "elapsed_s": 12.9, "score": {"case_id": "hl-s05", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "phone", "email", "prior_policy", "street", "city", "state", "zip", "year_built", "sqft", "stories", "construction_class", "roof_year", "roof_material", "losses_5yr", "cov_a", "eff_date", "deductible", "liability", "pool", "pool_fenced"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "harborline", "case_id": "hl-s06", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Construction Class", "dossier_key": "property.construction_class", "message": "Required control 'Construction Class:' has no grounded value in dossier", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['intake:property.area_unit', 'intake:property.city_state', 'intake:property.exterior_wall']", "readback": {"passed": 22, "failed": [], "not_checked": ["intake:property.area_unit", "intake:property.city_state", "intake:property.exterior_wall"]}, "receipt": false, "elapsed_s": 10.5, "score": {"case_id": "hl-s06", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "harborline", "case_id": "hl-s07", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['intake:property.area_unit', 'intake:property.city_state', 'intake:property.exterior_wall']", "readback": {"passed": 21, "failed": [], "not_checked": ["intake:property.area_unit", "intake:property.city_state", "intake:property.exterior_wall"]}, "receipt": false, "elapsed_s": 10.0, "score": {"case_id": "hl-s07", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "harborline", "case_id": "hl-s08", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Street Address", "dossier_key": "property.address_line1", "message": "Prefilled value on 'Street Address:' conflicts with grounded dossier state for 'property.address_line1'", "url": "quote/step/2", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Roof Covering Last Replaced (Year)", "dossier_key": "property.roof_year", "message": "Prefilled value on 'Roof Covering Last Replaced (Year):' conflicts with grounded dossier state for 'property.roof_year'", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Roof Covering Material", "dossier_key": "property.roof_material", "message": "Prefilled value on 'Roof Covering Material:' conflicts with grounded dossier state for 'property.roof_material'", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "ungrounded_required_field", "label": "Construction Class", "dossier_key": "property.construction_class", "message": "Required control 'Construction Class:' has no grounded value in dossier", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['intake:property.area_unit', 'intake:property.city_state', 'intake:property.exterior_wall']", "readback": {"passed": 22, "failed": [], "not_checked": ["intake:property.area_unit", "intake:property.city_state", "intake:property.exterior_wall"]}, "receipt": false, "elapsed_s": 11.3, "score": {"case_id": "hl-s08", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "harborline", "case_id": "hl-s09", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.construction_quality', 'intake:property.area_unit', 'intake:property.city_state', 'intake:property.exterior_wall']", "readback": {"passed": 21, "failed": [], "not_checked": ["property.construction_quality", "intake:property.area_unit", "intake:property.city_state", "intake:property.exterior_wall"]}, "receipt": false, "elapsed_s": 14.1, "score": {"case_id": "hl-s09", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "cobalt", "case_id": "cr-s01", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['intake:garaging.city', 'intake:garaging.state', 'intake:household.driver_count']", "readback": {"passed": 19, "failed": [], "not_checked": ["intake:garaging.city", "intake:garaging.state", "intake:household.driver_count"]}, "receipt": false, "elapsed_s": 14.0, "score": {"case_id": "cr-s01", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "cobalt", "case_id": "cr-s02", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Driver 2 First name", "dossier_key": null, "message": "'Driver 2 First name' holds a value this run did not type, and no binding covers it", "url": "quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_e0057d5abeecd5 to owner", "receipt": false, "elapsed_s": 4.3, "score": {"case_id": "cr-s02", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "license_state", "marital_status", "additional_drivers", "vehicle_year", "make", "model", "use", "commute_miles", "rideshare", "annual_miles", "garaging_zip", "garaging_city", "garaging_state", "ownership", "lienholder", "bi_limits", "collision_ded", "comp_ded"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "cobalt", "case_id": "cr-s03", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['intake:garaging.city', 'intake:garaging.state', 'intake:household.driver_count']", "readback": {"passed": 17, "failed": [], "not_checked": ["intake:garaging.city", "intake:garaging.state", "intake:household.driver_count"]}, "receipt": false, "elapsed_s": 13.9, "score": {"case_id": "cr-s03", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "cobalt", "case_id": "cr-s04", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Driver 2 First name", "dossier_key": null, "message": "'Driver 2 First name' holds a value this run did not type, and no binding covers it", "url": "quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_e0f88a461ebe9b to owner", "receipt": false, "elapsed_s": 4.4, "score": {"case_id": "cr-s04", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "license_state", "marital_status", "additional_drivers", "vehicle_year", "make", "model", "use", "commute_miles", "rideshare", "annual_miles", "garaging_zip", "garaging_city", "garaging_state", "ownership", "lienholder", "bi_limits", "collision_ded", "comp_ded"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "cobalt", "case_id": "cr-s05", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "", "dossier_key": null, "message": "Could not act on 'http://127.0.0.1:45363/quote': SurfaceSettleTimeoutError: Form surface failed to reach quiescence within 12000ms (last_reason='busy:inflight_network')", "url": "quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_82c2a1d4537c41 to owner", "receipt": false, "elapsed_s": 24.5, "score": {"case_id": "cr-s05", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "license_state", "marital_status", "additional_drivers", "vehicle_year", "make", "model", "use", "commute_miles", "rideshare", "annual_miles", "garaging_zip", "garaging_city", "garaging_state", "ownership", "lienholder", "bi_limits", "collision_ded", "comp_ded"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "cobalt", "case_id": "cr-s06", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Used for rideshare or delivery?", "dossier_key": null, "message": "This field is required.; Used for rideshare or delivery?: This field is required.", "url": "quote", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['control:Used for rideshare or delivery?', 'intake:garaging.city', 'intake:garaging.state', 'intake:household.driver_count']", "readback": {"passed": 17, "failed": [], "not_checked": ["control:Used for rideshare or delivery?", "intake:garaging.city", "intake:garaging.state", "intake:household.driver_count"]}, "receipt": false, "elapsed_s": 15.0, "score": {"case_id": "cr-s06", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "cobalt", "case_id": "cr-s07", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['intake:driver2.date_of_birth', 'intake:driver2.first_name', 'intake:driver2.last_name', 'intake:driver2.relationship', 'intake:garaging.city', 'intake:garaging.state', 'intake:household.driver_count']", "readback": {"passed": 17, "failed": [], "not_checked": ["intake:driver2.date_of_birth", "intake:driver2.first_name", "intake:driver2.last_name", "intake:driver2.relationship", "intake:garaging.city", "intake:garaging.state", "intake:household.driver_count"]}, "receipt": false, "elapsed_s": 14.5, "score": {"case_id": "cr-s07", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": false, "correct": false, "wrong_fields": ["additional_drivers"], "wrong_details": [{"field": "additional_drivers", "expected": [{"first_name": "Pavel", "last_name": "Halloran", "dob": "1981-10-09", "relationship": "Spouse"}], "stored": []}], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "cobalt", "case_id": "cr-s08", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Lienholder or lessor name", "dossier_key": "vehicle.lienholder", "message": "This field is required.; Lienholder or lessor name: This field is required.", "url": "quote", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['intake:garaging.city', 'intake:garaging.state', 'intake:household.driver_count']", "readback": {"passed": 18, "failed": [], "not_checked": ["intake:garaging.city", "intake:garaging.state", "intake:household.driver_count"]}, "receipt": false, "elapsed_s": 13.9, "score": {"case_id": "cr-s08", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "pinecrest", "case_id": "pc-s01", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.area_unit', 'property.finish_level', 'property.square_feet', 'coverage.dwelling_limit', 'intake:property.city', 'intake:property.state']", "readback": {"passed": 13, "failed": [], "not_checked": ["property.area_unit", "property.finish_level", "property.square_feet", "coverage.dwelling_limit", "intake:property.city", "intake:property.state"]}, "receipt": false, "elapsed_s": 15.0, "score": {"case_id": "pc-s01", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "pinecrest", "case_id": "pc-s02", "halts": [{"halt_kind": "popup_contract_failed", "label": "Dwelling limit", "dossier_key": "coverage.dwelling_limit", "message": "Popup subroutine 'pc_rebuild' exited without populating a valid integer value in 'coverage.dwelling_limit'", "url": "portal", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.area_unit', 'property.finish_level', 'property.square_feet', 'intake:property.city', 'intake:property.state']", "readback": {"passed": 14, "failed": [], "not_checked": ["property.area_unit", "property.finish_level", "property.square_feet", "intake:property.city", "intake:property.state"]}, "receipt": false, "elapsed_s": 14.6, "score": {"case_id": "pc-s02", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "pinecrest", "case_id": "pc-s03", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Living area", "dossier_key": "property.square_feet", "message": "Prefilled value on 'Living area' conflicts with grounded dossier state for 'property.square_feet'", "url": "portal", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Area unit", "dossier_key": "property.area_unit", "message": "Prefilled value on 'Area unit' conflicts with grounded dossier state for 'property.area_unit'", "url": "portal", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Year roof was installed", "dossier_key": "property.roof_year", "message": "Prefilled value on 'Year roof was installed' conflicts with grounded dossier state for 'property.roof_year'", "url": "portal", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.area_unit', 'property.finish_level', 'property.square_feet', 'coverage.dwelling_limit', 'intake:property.city', 'intake:property.state']", "readback": {"passed": 13, "failed": [], "not_checked": ["property.area_unit", "property.finish_level", "property.square_feet", "coverage.dwelling_limit", "intake:property.city", "intake:property.state"]}, "receipt": false, "elapsed_s": 9.6, "score": {"case_id": "pc-s03", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "pinecrest", "case_id": "pc-s04", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.area_unit', 'property.finish_level', 'property.square_feet', 'coverage.dwelling_limit', 'intake:property.city', 'intake:property.state']", "readback": {"passed": 13, "failed": [], "not_checked": ["property.area_unit", "property.finish_level", "property.square_feet", "coverage.dwelling_limit", "intake:property.city", "intake:property.state"]}, "receipt": false, "elapsed_s": 6.8, "score": {"case_id": "pc-s04", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "pinecrest", "case_id": "pc-s05", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.area_unit', 'property.finish_level', 'property.square_feet', 'coverage.dwelling_limit', 'intake:property.city', 'intake:property.state']", "readback": {"passed": 13, "failed": [], "not_checked": ["property.area_unit", "property.finish_level", "property.square_feet", "coverage.dwelling_limit", "intake:property.city", "intake:property.state"]}, "receipt": false, "elapsed_s": 14.2, "score": {"case_id": "pc-s05", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "pinecrest", "case_id": "pc-s06", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Was the wood stove installed by a licensed professional?", "dossier_key": "property.wood_stove_professionally_installed", "message": "Required; Was the wood stove installed by a licensed professional?: Required", "url": "portal", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.area_unit', 'property.finish_level', 'property.square_feet', 'coverage.dwelling_limit', 'intake:property.city', 'intake:property.state']", "readback": {"passed": 14, "failed": [], "not_checked": ["property.area_unit", "property.finish_level", "property.square_feet", "coverage.dwelling_limit", "intake:property.city", "intake:property.state"]}, "receipt": false, "elapsed_s": 15.2, "score": {"case_id": "pc-s06", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "pinecrest", "case_id": "pc-s07", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.area_unit', 'property.finish_level', 'property.square_feet', 'coverage.dwelling_limit', 'intake:property.city', 'intake:property.state']", "readback": {"passed": 13, "failed": [], "not_checked": ["property.area_unit", "property.finish_level", "property.square_feet", "coverage.dwelling_limit", "intake:property.city", "intake:property.state"]}, "receipt": false, "elapsed_s": 13.9, "score": {"case_id": "pc-s07", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "pinecrest", "case_id": "pc-s08", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Claims in the last 5 years", "dossier_key": "history.prior_claims_5yr", "message": "Prefilled value on 'Claims in the last 5 years' conflicts with grounded dossier state for 'history.prior_claims_5yr'", "url": "portal", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.area_unit', 'property.finish_level', 'property.square_feet', 'coverage.dwelling_limit', 'intake:property.city', 'intake:property.state']", "readback": {"passed": 13, "failed": [], "not_checked": ["property.area_unit", "property.finish_level", "property.square_feet", "coverage.dwelling_limit", "intake:property.city", "intake:property.state"]}, "receipt": false, "elapsed_s": 8.4, "score": {"case_id": "pc-s08", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "tidewater", "case_id": "tw-s01", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Drivers in household", "dossier_key": "household.driver_count", "message": "Prefilled value on 'Drivers in household' conflicts with grounded dossier state for 'household.driver_count'", "url": "qq/3", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_9b56d01186f9cd to owner", "receipt": false, "elapsed_s": 10.3, "score": {"case_id": "tw-s01", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "year_built", "sqft", "roof_year", "occupancy", "short_term_rental", "losses_3yr", "vehicle_year", "make", "model", "driver_count"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "tidewater", "case_id": "tw-s02", "halts": [], "outcome": "readback_refuted", "what_happened": "Independent read-back did not verify commit: ['property.address_line1']", "readback": {"passed": 16, "failed": ["property.address_line1"], "not_checked": ["intake:property.area_unit", "intake:property.city_state"]}, "receipt": false, "elapsed_s": 10.8, "score": {"case_id": "tw-s02", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": false, "correct": false, "wrong_fields": ["unit"], "wrong_details": [{"field": "unit", "expected": "APT 4", "stored": ""}], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "tidewater", "case_id": "tw-s03", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Square footage", "dossier_key": "property.square_feet", "message": "Prefilled value on 'Square footage' conflicts with grounded dossier state for 'property.square_feet'", "url": "qq/2", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Roof updated (year)", "dossier_key": "property.roof_year", "message": "Prefilled value on 'Roof updated (year)' conflicts with grounded dossier state for 'property.roof_year'", "url": "qq/2", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "auth_wall_detected", "label": "", "dossier_key": null, "message": "Sign-in wall at 'http://127.0.0.1:45243/signin' (sign-in form on screen)", "url": "signin", "action": "fixed_on_screen", "before_submit": true}, {"halt_kind": "fields_not_rechecked", "label": "City", "dossier_key": null, "message": "A sign-in or a jump back interrupted this quote after fields were entered, and these fields cannot be re-checked from here before submit: ['City', 'Date of birth (MM/DD/YYYY)', 'Email', 'First name', 'Last name', 'Roof updated (year)', 'Squ", "url": "qq/review", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_0951c1092c7b82 to owner", "receipt": false, "elapsed_s": 7.3, "score": {"case_id": "tw-s03", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "year_built", "sqft", "roof_year", "occupancy", "short_term_rental", "losses_3yr", "vehicle_year", "make", "model", "driver_count"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "tidewater", "case_id": "tw-s04", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['intake:property.area_unit', 'intake:property.city_state']", "readback": {"passed": 17, "failed": [], "not_checked": ["intake:property.area_unit", "intake:property.city_state"]}, "receipt": false, "elapsed_s": 6.6, "score": {"case_id": "tw-s04", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "tidewater", "case_id": "tw-s05", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Losses in the last 3 years", "dossier_key": "history.prior_claims_3yr", "message": "Prefilled value on 'Losses in the last 3 years' conflicts with grounded dossier state for 'history.prior_claims_3yr'", "url": "qq/2", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Vehicle year", "dossier_key": "vehicle.year", "message": "Prefilled value on 'Vehicle year' conflicts with grounded dossier state for 'vehicle.year'", "url": "qq/3", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_ae53521306fd9e to owner", "receipt": false, "elapsed_s": 6.0, "score": {"case_id": "tw-s05", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "year_built", "sqft", "roof_year", "occupancy", "short_term_rental", "losses_3yr", "vehicle_year", "make", "model", "driver_count"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "tidewater", "case_id": "tw-s06", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Drivers in household", "dossier_key": "household.driver_count", "message": "Prefilled value on 'Drivers in household' conflicts with grounded dossier state for 'household.driver_count'", "url": "qq/3", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_b5208a0b3a745b to owner", "receipt": false, "elapsed_s": 9.5, "score": {"case_id": "tw-s06", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "year_built", "sqft", "roof_year", "occupancy", "short_term_rental", "losses_3yr", "vehicle_year", "make", "model", "driver_count"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "tidewater", "case_id": "tw-s07", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Occupancy", "dossier_key": "property.occupancy", "message": "Prefilled value on 'Occupancy' conflicts with grounded dossier state for 'property.occupancy'", "url": "qq/2", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_777633574540aa to owner", "receipt": false, "elapsed_s": 4.7, "score": {"case_id": "tw-s07", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "year_built", "sqft", "roof_year", "occupancy", "short_term_rental", "losses_3yr", "vehicle_year", "make", "model", "driver_count"]}, "arm": "B"} diff --git a/packages/flow/benchmark/form_tx_heldout2_run/results_rework/dev_rerun_old4_frozen_packs_arm_B.jsonl b/packages/flow/benchmark/form_tx_heldout2_run/results_rework/dev_rerun_old4_frozen_packs_arm_B.jsonl new file mode 100644 index 0000000000..87888818e3 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout2_run/results_rework/dev_rerun_old4_frozen_packs_arm_B.jsonl @@ -0,0 +1,32 @@ +{"portal": "harborline", "case_id": "hl-s01", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Construction Class", "dossier_key": "property.construction_class", "message": "Required control 'Construction Class:' has no grounded value in dossier", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "verified_done", "what_happened": "Committed and verified via independent read-back", "readback": {"passed": 21, "failed": [], "not_checked": []}, "receipt": true, "elapsed_s": 13.9, "score": {"case_id": "hl-s01", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "harborline", "case_id": "hl-s02", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Roof Covering Last Replaced (Year)", "dossier_key": "property.roof_year", "message": "Prefilled value on 'Roof Covering Last Replaced (Year):' conflicts with grounded dossier state for 'property.roof_year'", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Number of Losses (Last 5 Yrs)", "dossier_key": "history.prior_claims_5yr", "message": "Prefilled value on 'Number of Losses (Last 5 Yrs):' conflicts with grounded dossier state for 'history.prior_claims_5yr'", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "ungrounded_required_field", "label": "Construction Class", "dossier_key": "property.construction_class", "message": "Required control 'Construction Class:' has no grounded value in dossier", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_refuted", "what_happened": "Independent read-back did not verify commit: ['property.stories']", "readback": {"passed": 21, "failed": ["property.stories"], "not_checked": []}, "receipt": false, "elapsed_s": 12.4, "score": {"case_id": "hl-s02", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "harborline", "case_id": "hl-s03", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Dwelling Coverage (A)", "dossier_key": "coverage.dwelling_a", "message": "Popup 'hl_rce' showed '$678,160' but put '680,000' in 'coverage.dwelling_a'", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "ungrounded_required_field", "label": "Construction Class", "dossier_key": "property.construction_class", "message": "Required control 'Construction Class:' has no grounded value in dossier", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.construction_quality']", "readback": {"passed": 21, "failed": [], "not_checked": ["property.construction_quality"]}, "receipt": false, "elapsed_s": 16.0, "score": {"case_id": "hl-s03", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "harborline", "case_id": "hl-s04", "halts": [], "outcome": "verified_done", "what_happened": "Committed and verified via independent read-back", "readback": {"passed": 20, "failed": [], "not_checked": []}, "receipt": true, "elapsed_s": 12.9, "score": {"case_id": "hl-s04", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "harborline", "case_id": "hl-s05", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Construction Class", "dossier_key": "property.construction_class", "message": "Required control 'Construction Class:' has no grounded value in dossier", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "auth_wall_detected", "label": "", "dossier_key": null, "message": "Sign-in wall at 'http://127.0.0.1:44697/agent/login' (sign-in form on screen)", "url": "agent/login", "action": "fixed_on_screen", "before_submit": true}, {"halt_kind": "fields_not_rechecked", "label": "All Peril Deductible", "dossier_key": null, "message": "A sign-in or a jump back interrupted this quote after fields were entered, and these fields cannot be re-checked from here before submit: ['All Peril Deductible:', 'City:', 'Construction Class:', 'Date of Birth (MM/DD/YYYY):', 'E-mail:', 'F", "url": "quote/review", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_f7d7a5a55e0c66 to owner", "receipt": false, "elapsed_s": 14.7, "score": {"case_id": "hl-s05", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "phone", "email", "prior_policy", "street", "city", "state", "zip", "year_built", "sqft", "stories", "construction_class", "roof_year", "roof_material", "losses_5yr", "cov_a", "eff_date", "deductible", "liability", "pool", "pool_fenced"]}, "arm": "B"} +{"portal": "harborline", "case_id": "hl-s06", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Construction Class", "dossier_key": "property.construction_class", "message": "Required control 'Construction Class:' has no grounded value in dossier", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "verified_done", "what_happened": "Committed and verified via independent read-back", "readback": {"passed": 22, "failed": [], "not_checked": []}, "receipt": true, "elapsed_s": 10.2, "score": {"case_id": "hl-s06", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "harborline", "case_id": "hl-s07", "halts": [], "outcome": "verified_done", "what_happened": "Committed and verified via independent read-back", "readback": {"passed": 21, "failed": [], "not_checked": []}, "receipt": true, "elapsed_s": 10.3, "score": {"case_id": "hl-s07", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "harborline", "case_id": "hl-s08", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Street Address", "dossier_key": "property.address_line1", "message": "Prefilled value on 'Street Address:' conflicts with grounded dossier state for 'property.address_line1'", "url": "quote/step/2", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Roof Covering Last Replaced (Year)", "dossier_key": "property.roof_year", "message": "Prefilled value on 'Roof Covering Last Replaced (Year):' conflicts with grounded dossier state for 'property.roof_year'", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Roof Covering Material", "dossier_key": "property.roof_material", "message": "Prefilled value on 'Roof Covering Material:' conflicts with grounded dossier state for 'property.roof_material'", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "ungrounded_required_field", "label": "Construction Class", "dossier_key": "property.construction_class", "message": "Required control 'Construction Class:' has no grounded value in dossier", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "verified_done", "what_happened": "Committed and verified via independent read-back", "readback": {"passed": 22, "failed": [], "not_checked": []}, "receipt": true, "elapsed_s": 13.1, "score": {"case_id": "hl-s08", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "harborline", "case_id": "hl-s09", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.construction_quality']", "readback": {"passed": 21, "failed": [], "not_checked": ["property.construction_quality"]}, "receipt": false, "elapsed_s": 12.9, "score": {"case_id": "hl-s09", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "cobalt", "case_id": "cr-s01", "halts": [], "outcome": "verified_done", "what_happened": "Committed and verified via independent read-back", "readback": {"passed": 19, "failed": [], "not_checked": []}, "receipt": true, "elapsed_s": 15.5, "score": {"case_id": "cr-s01", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "cobalt", "case_id": "cr-s02", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Driver 2 First name", "dossier_key": null, "message": "'Driver 2 First name' holds a value this run did not type, and no binding covers it", "url": "quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_e0057d5abeecd5 to owner", "receipt": false, "elapsed_s": 3.3, "score": {"case_id": "cr-s02", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "license_state", "marital_status", "additional_drivers", "vehicle_year", "make", "model", "use", "commute_miles", "rideshare", "annual_miles", "garaging_zip", "garaging_city", "garaging_state", "ownership", "lienholder", "bi_limits", "collision_ded", "comp_ded"]}, "arm": "B"} +{"portal": "cobalt", "case_id": "cr-s03", "halts": [], "outcome": "verified_done", "what_happened": "Committed and verified via independent read-back", "readback": {"passed": 17, "failed": [], "not_checked": []}, "receipt": true, "elapsed_s": 14.4, "score": {"case_id": "cr-s03", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "cobalt", "case_id": "cr-s04", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Driver 2 First name", "dossier_key": null, "message": "'Driver 2 First name' holds a value this run did not type, and no binding covers it", "url": "quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_e0f88a461ebe9b to owner", "receipt": false, "elapsed_s": 4.7, "score": {"case_id": "cr-s04", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "license_state", "marital_status", "additional_drivers", "vehicle_year", "make", "model", "use", "commute_miles", "rideshare", "annual_miles", "garaging_zip", "garaging_city", "garaging_state", "ownership", "lienholder", "bi_limits", "collision_ded", "comp_ded"]}, "arm": "B"} +{"portal": "cobalt", "case_id": "cr-s05", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "", "dossier_key": null, "message": "Could not act on 'http://127.0.0.1:46233/quote': SurfaceSettleTimeoutError: Form surface failed to reach quiescence within 12000ms (last_reason='busy:inflight_network')", "url": "quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_512cfc1d27910c to owner", "receipt": false, "elapsed_s": 25.3, "score": {"case_id": "cr-s05", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "license_state", "marital_status", "additional_drivers", "vehicle_year", "make", "model", "use", "commute_miles", "rideshare", "annual_miles", "garaging_zip", "garaging_city", "garaging_state", "ownership", "lienholder", "bi_limits", "collision_ded", "comp_ded"]}, "arm": "B"} +{"portal": "cobalt", "case_id": "cr-s06", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Used for rideshare or delivery?", "dossier_key": null, "message": "This field is required.; Used for rideshare or delivery?: This field is required.", "url": "quote", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['control:Used for rideshare or delivery?']", "readback": {"passed": 17, "failed": [], "not_checked": ["control:Used for rideshare or delivery?"]}, "receipt": false, "elapsed_s": 16.5, "score": {"case_id": "cr-s06", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "cobalt", "case_id": "cr-s07", "halts": [], "outcome": "verified_done", "what_happened": "Committed and verified via independent read-back", "readback": {"passed": 17, "failed": [], "not_checked": []}, "receipt": true, "elapsed_s": 13.6, "score": {"case_id": "cr-s07", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": false, "correct": false, "wrong_fields": ["additional_drivers"], "wrong_details": [{"field": "additional_drivers", "expected": [{"first_name": "Pavel", "last_name": "Halloran", "dob": "1981-10-09", "relationship": "Spouse"}], "stored": []}], "missing_fields": []}, "arm": "B"} +{"portal": "cobalt", "case_id": "cr-s08", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Lienholder or lessor name", "dossier_key": "vehicle.lienholder", "message": "This field is required.; Lienholder or lessor name: This field is required.", "url": "quote", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "verified_done", "what_happened": "Committed and verified via independent read-back", "readback": {"passed": 18, "failed": [], "not_checked": []}, "receipt": true, "elapsed_s": 15.7, "score": {"case_id": "cr-s08", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "pinecrest", "case_id": "pc-s01", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.area_unit', 'property.finish_level', 'property.square_feet', 'coverage.dwelling_limit']", "readback": {"passed": 13, "failed": [], "not_checked": ["property.area_unit", "property.finish_level", "property.square_feet", "coverage.dwelling_limit"]}, "receipt": false, "elapsed_s": 14.0, "score": {"case_id": "pc-s01", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "pinecrest", "case_id": "pc-s02", "halts": [{"halt_kind": "popup_contract_failed", "label": "Dwelling limit", "dossier_key": "coverage.dwelling_limit", "message": "Popup subroutine 'pc_rebuild' exited without populating a valid integer value in 'coverage.dwelling_limit'", "url": "portal", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.area_unit', 'property.finish_level', 'property.square_feet']", "readback": {"passed": 14, "failed": [], "not_checked": ["property.area_unit", "property.finish_level", "property.square_feet"]}, "receipt": false, "elapsed_s": 17.0, "score": {"case_id": "pc-s02", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "pinecrest", "case_id": "pc-s03", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Living area", "dossier_key": "property.square_feet", "message": "Prefilled value on 'Living area' conflicts with grounded dossier state for 'property.square_feet'", "url": "portal", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Area unit", "dossier_key": "property.area_unit", "message": "Prefilled value on 'Area unit' conflicts with grounded dossier state for 'property.area_unit'", "url": "portal", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Year roof was installed", "dossier_key": "property.roof_year", "message": "Prefilled value on 'Year roof was installed' conflicts with grounded dossier state for 'property.roof_year'", "url": "portal", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.area_unit', 'property.finish_level', 'property.square_feet', 'coverage.dwelling_limit']", "readback": {"passed": 13, "failed": [], "not_checked": ["property.area_unit", "property.finish_level", "property.square_feet", "coverage.dwelling_limit"]}, "receipt": false, "elapsed_s": 8.9, "score": {"case_id": "pc-s03", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "pinecrest", "case_id": "pc-s04", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.area_unit', 'property.finish_level', 'property.square_feet', 'coverage.dwelling_limit']", "readback": {"passed": 13, "failed": [], "not_checked": ["property.area_unit", "property.finish_level", "property.square_feet", "coverage.dwelling_limit"]}, "receipt": false, "elapsed_s": 7.2, "score": {"case_id": "pc-s04", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "pinecrest", "case_id": "pc-s05", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.area_unit', 'property.finish_level', 'property.square_feet', 'coverage.dwelling_limit']", "readback": {"passed": 13, "failed": [], "not_checked": ["property.area_unit", "property.finish_level", "property.square_feet", "coverage.dwelling_limit"]}, "receipt": false, "elapsed_s": 15.6, "score": {"case_id": "pc-s05", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "pinecrest", "case_id": "pc-s06", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Was the wood stove installed by a licensed professional?", "dossier_key": "property.wood_stove_professionally_installed", "message": "Required; Was the wood stove installed by a licensed professional?: Required", "url": "portal", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.area_unit', 'property.finish_level', 'property.square_feet', 'coverage.dwelling_limit']", "readback": {"passed": 14, "failed": [], "not_checked": ["property.area_unit", "property.finish_level", "property.square_feet", "coverage.dwelling_limit"]}, "receipt": false, "elapsed_s": 16.1, "score": {"case_id": "pc-s06", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "pinecrest", "case_id": "pc-s07", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.area_unit', 'property.finish_level', 'property.square_feet', 'coverage.dwelling_limit']", "readback": {"passed": 13, "failed": [], "not_checked": ["property.area_unit", "property.finish_level", "property.square_feet", "coverage.dwelling_limit"]}, "receipt": false, "elapsed_s": 16.6, "score": {"case_id": "pc-s07", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "pinecrest", "case_id": "pc-s08", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Claims in the last 5 years", "dossier_key": "history.prior_claims_5yr", "message": "Prefilled value on 'Claims in the last 5 years' conflicts with grounded dossier state for 'history.prior_claims_5yr'", "url": "portal", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.area_unit', 'property.finish_level', 'property.square_feet', 'coverage.dwelling_limit']", "readback": {"passed": 13, "failed": [], "not_checked": ["property.area_unit", "property.finish_level", "property.square_feet", "coverage.dwelling_limit"]}, "receipt": false, "elapsed_s": 8.3, "score": {"case_id": "pc-s08", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "tidewater", "case_id": "tw-s01", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Drivers in household", "dossier_key": "household.driver_count", "message": "Prefilled value on 'Drivers in household' conflicts with grounded dossier state for 'household.driver_count'", "url": "qq/3", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_9b56d01186f9cd to owner", "receipt": false, "elapsed_s": 10.2, "score": {"case_id": "tw-s01", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "year_built", "sqft", "roof_year", "occupancy", "short_term_rental", "losses_3yr", "vehicle_year", "make", "model", "driver_count"]}, "arm": "B"} +{"portal": "tidewater", "case_id": "tw-s02", "halts": [], "outcome": "readback_refuted", "what_happened": "Independent read-back did not verify commit: ['property.address_line1']", "readback": {"passed": 16, "failed": ["property.address_line1"], "not_checked": []}, "receipt": false, "elapsed_s": 11.3, "score": {"case_id": "tw-s02", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": false, "correct": false, "wrong_fields": ["unit"], "wrong_details": [{"field": "unit", "expected": "APT 4", "stored": ""}], "missing_fields": []}, "arm": "B"} +{"portal": "tidewater", "case_id": "tw-s03", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Square footage", "dossier_key": "property.square_feet", "message": "Prefilled value on 'Square footage' conflicts with grounded dossier state for 'property.square_feet'", "url": "qq/2", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Roof updated (year)", "dossier_key": "property.roof_year", "message": "Prefilled value on 'Roof updated (year)' conflicts with grounded dossier state for 'property.roof_year'", "url": "qq/2", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "auth_wall_detected", "label": "", "dossier_key": null, "message": "Sign-in wall at 'http://127.0.0.1:45041/signin' (sign-in form on screen)", "url": "signin", "action": "fixed_on_screen", "before_submit": true}, {"halt_kind": "fields_not_rechecked", "label": "City", "dossier_key": null, "message": "A sign-in or a jump back interrupted this quote after fields were entered, and these fields cannot be re-checked from here before submit: ['City', 'Date of birth (MM/DD/YYYY)', 'Email', 'First name', 'Last name', 'Roof updated (year)', 'Squ", "url": "qq/review", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_0951c1092c7b82 to owner", "receipt": false, "elapsed_s": 7.8, "score": {"case_id": "tw-s03", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "year_built", "sqft", "roof_year", "occupancy", "short_term_rental", "losses_3yr", "vehicle_year", "make", "model", "driver_count"]}, "arm": "B"} +{"portal": "tidewater", "case_id": "tw-s04", "halts": [], "outcome": "verified_done", "what_happened": "Committed and verified via independent read-back", "readback": {"passed": 17, "failed": [], "not_checked": []}, "receipt": true, "elapsed_s": 6.7, "score": {"case_id": "tw-s04", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "tidewater", "case_id": "tw-s05", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Losses in the last 3 years", "dossier_key": "history.prior_claims_3yr", "message": "Prefilled value on 'Losses in the last 3 years' conflicts with grounded dossier state for 'history.prior_claims_3yr'", "url": "qq/2", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Vehicle year", "dossier_key": "vehicle.year", "message": "Prefilled value on 'Vehicle year' conflicts with grounded dossier state for 'vehicle.year'", "url": "qq/3", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_ae53521306fd9e to owner", "receipt": false, "elapsed_s": 6.0, "score": {"case_id": "tw-s05", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "year_built", "sqft", "roof_year", "occupancy", "short_term_rental", "losses_3yr", "vehicle_year", "make", "model", "driver_count"]}, "arm": "B"} +{"portal": "tidewater", "case_id": "tw-s06", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Drivers in household", "dossier_key": "household.driver_count", "message": "Prefilled value on 'Drivers in household' conflicts with grounded dossier state for 'household.driver_count'", "url": "qq/3", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_b5208a0b3a745b to owner", "receipt": false, "elapsed_s": 9.6, "score": {"case_id": "tw-s06", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "year_built", "sqft", "roof_year", "occupancy", "short_term_rental", "losses_3yr", "vehicle_year", "make", "model", "driver_count"]}, "arm": "B"} +{"portal": "tidewater", "case_id": "tw-s07", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Occupancy", "dossier_key": "property.occupancy", "message": "Prefilled value on 'Occupancy' conflicts with grounded dossier state for 'property.occupancy'", "url": "qq/2", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_777633574540aa to owner", "receipt": false, "elapsed_s": 5.0, "score": {"case_id": "tw-s07", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "year_built", "sqft", "roof_year", "occupancy", "short_term_rental", "losses_3yr", "vehicle_year", "make", "model", "driver_count"]}, "arm": "B"} diff --git a/packages/flow/benchmark/form_tx_heldout2_run/results_rework/dev_rerun_old4_frozen_packs_arm_B_full.log b/packages/flow/benchmark/form_tx_heldout2_run/results_rework/dev_rerun_old4_frozen_packs_arm_B_full.log new file mode 100644 index 0000000000..45e1e9f6a4 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout2_run/results_rework/dev_rerun_old4_frozen_packs_arm_B_full.log @@ -0,0 +1,32 @@ +FORM_TX_HELDOUT_LAYER {"portal": "harborline", "case_id": "hl-s01", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Construction Class", "dossier_key": "property.construction_class", "message": "Required control 'Construction Class:' has no grounded value in dossier", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "verified_done", "what_happened": "Committed and verified via independent read-back", "readback": {"passed": 21, "failed": [], "not_checked": []}, "receipt": true, "elapsed_s": 13.9, "score": {"case_id": "hl-s01", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "harborline", "case_id": "hl-s02", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Roof Covering Last Replaced (Year)", "dossier_key": "property.roof_year", "message": "Prefilled value on 'Roof Covering Last Replaced (Year):' conflicts with grounded dossier state for 'property.roof_year'", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Number of Losses (Last 5 Yrs)", "dossier_key": "history.prior_claims_5yr", "message": "Prefilled value on 'Number of Losses (Last 5 Yrs):' conflicts with grounded dossier state for 'history.prior_claims_5yr'", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "ungrounded_required_field", "label": "Construction Class", "dossier_key": "property.construction_class", "message": "Required control 'Construction Class:' has no grounded value in dossier", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_refuted", "what_happened": "Independent read-back did not verify commit: ['property.stories']", "readback": {"passed": 21, "failed": ["property.stories"], "not_checked": []}, "receipt": false, "elapsed_s": 12.4, "score": {"case_id": "hl-s02", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "harborline", "case_id": "hl-s03", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Dwelling Coverage (A)", "dossier_key": "coverage.dwelling_a", "message": "Popup 'hl_rce' showed '$678,160' but put '680,000' in 'coverage.dwelling_a'", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "ungrounded_required_field", "label": "Construction Class", "dossier_key": "property.construction_class", "message": "Required control 'Construction Class:' has no grounded value in dossier", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.construction_quality']", "readback": {"passed": 21, "failed": [], "not_checked": ["property.construction_quality"]}, "receipt": false, "elapsed_s": 16.0, "score": {"case_id": "hl-s03", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "harborline", "case_id": "hl-s04", "halts": [], "outcome": "verified_done", "what_happened": "Committed and verified via independent read-back", "readback": {"passed": 20, "failed": [], "not_checked": []}, "receipt": true, "elapsed_s": 12.9, "score": {"case_id": "hl-s04", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "harborline", "case_id": "hl-s05", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Construction Class", "dossier_key": "property.construction_class", "message": "Required control 'Construction Class:' has no grounded value in dossier", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "auth_wall_detected", "label": "", "dossier_key": null, "message": "Sign-in wall at 'http://127.0.0.1:44697/agent/login' (sign-in form on screen)", "url": "agent/login", "action": "fixed_on_screen", "before_submit": true}, {"halt_kind": "fields_not_rechecked", "label": "All Peril Deductible", "dossier_key": null, "message": "A sign-in or a jump back interrupted this quote after fields were entered, and these fields cannot be re-checked from here before submit: ['All Peril Deductible:', 'City:', 'Construction Class:', 'Date of Birth (MM/DD/YYYY):', 'E-mail:', 'F", "url": "quote/review", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_f7d7a5a55e0c66 to owner", "receipt": false, "elapsed_s": 14.7, "score": {"case_id": "hl-s05", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "phone", "email", "prior_policy", "street", "city", "state", "zip", "year_built", "sqft", "stories", "construction_class", "roof_year", "roof_material", "losses_5yr", "cov_a", "eff_date", "deductible", "liability", "pool", "pool_fenced"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "harborline", "case_id": "hl-s06", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Construction Class", "dossier_key": "property.construction_class", "message": "Required control 'Construction Class:' has no grounded value in dossier", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "verified_done", "what_happened": "Committed and verified via independent read-back", "readback": {"passed": 22, "failed": [], "not_checked": []}, "receipt": true, "elapsed_s": 10.2, "score": {"case_id": "hl-s06", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "harborline", "case_id": "hl-s07", "halts": [], "outcome": "verified_done", "what_happened": "Committed and verified via independent read-back", "readback": {"passed": 21, "failed": [], "not_checked": []}, "receipt": true, "elapsed_s": 10.3, "score": {"case_id": "hl-s07", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "harborline", "case_id": "hl-s08", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Street Address", "dossier_key": "property.address_line1", "message": "Prefilled value on 'Street Address:' conflicts with grounded dossier state for 'property.address_line1'", "url": "quote/step/2", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Roof Covering Last Replaced (Year)", "dossier_key": "property.roof_year", "message": "Prefilled value on 'Roof Covering Last Replaced (Year):' conflicts with grounded dossier state for 'property.roof_year'", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Roof Covering Material", "dossier_key": "property.roof_material", "message": "Prefilled value on 'Roof Covering Material:' conflicts with grounded dossier state for 'property.roof_material'", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "ungrounded_required_field", "label": "Construction Class", "dossier_key": "property.construction_class", "message": "Required control 'Construction Class:' has no grounded value in dossier", "url": "quote/step/3", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "verified_done", "what_happened": "Committed and verified via independent read-back", "readback": {"passed": 22, "failed": [], "not_checked": []}, "receipt": true, "elapsed_s": 13.1, "score": {"case_id": "hl-s08", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "harborline", "case_id": "hl-s09", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.construction_quality']", "readback": {"passed": 21, "failed": [], "not_checked": ["property.construction_quality"]}, "receipt": false, "elapsed_s": 12.9, "score": {"case_id": "hl-s09", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "cobalt", "case_id": "cr-s01", "halts": [], "outcome": "verified_done", "what_happened": "Committed and verified via independent read-back", "readback": {"passed": 19, "failed": [], "not_checked": []}, "receipt": true, "elapsed_s": 15.5, "score": {"case_id": "cr-s01", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "cobalt", "case_id": "cr-s02", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Driver 2 First name", "dossier_key": null, "message": "'Driver 2 First name' holds a value this run did not type, and no binding covers it", "url": "quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_e0057d5abeecd5 to owner", "receipt": false, "elapsed_s": 3.3, "score": {"case_id": "cr-s02", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "license_state", "marital_status", "additional_drivers", "vehicle_year", "make", "model", "use", "commute_miles", "rideshare", "annual_miles", "garaging_zip", "garaging_city", "garaging_state", "ownership", "lienholder", "bi_limits", "collision_ded", "comp_ded"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "cobalt", "case_id": "cr-s03", "halts": [], "outcome": "verified_done", "what_happened": "Committed and verified via independent read-back", "readback": {"passed": 17, "failed": [], "not_checked": []}, "receipt": true, "elapsed_s": 14.4, "score": {"case_id": "cr-s03", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "cobalt", "case_id": "cr-s04", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Driver 2 First name", "dossier_key": null, "message": "'Driver 2 First name' holds a value this run did not type, and no binding covers it", "url": "quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_e0f88a461ebe9b to owner", "receipt": false, "elapsed_s": 4.7, "score": {"case_id": "cr-s04", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "license_state", "marital_status", "additional_drivers", "vehicle_year", "make", "model", "use", "commute_miles", "rideshare", "annual_miles", "garaging_zip", "garaging_city", "garaging_state", "ownership", "lienholder", "bi_limits", "collision_ded", "comp_ded"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "cobalt", "case_id": "cr-s05", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "", "dossier_key": null, "message": "Could not act on 'http://127.0.0.1:46233/quote': SurfaceSettleTimeoutError: Form surface failed to reach quiescence within 12000ms (last_reason='busy:inflight_network')", "url": "quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_512cfc1d27910c to owner", "receipt": false, "elapsed_s": 25.3, "score": {"case_id": "cr-s05", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "license_state", "marital_status", "additional_drivers", "vehicle_year", "make", "model", "use", "commute_miles", "rideshare", "annual_miles", "garaging_zip", "garaging_city", "garaging_state", "ownership", "lienholder", "bi_limits", "collision_ded", "comp_ded"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "cobalt", "case_id": "cr-s06", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Used for rideshare or delivery?", "dossier_key": null, "message": "This field is required.; Used for rideshare or delivery?: This field is required.", "url": "quote", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['control:Used for rideshare or delivery?']", "readback": {"passed": 17, "failed": [], "not_checked": ["control:Used for rideshare or delivery?"]}, "receipt": false, "elapsed_s": 16.5, "score": {"case_id": "cr-s06", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "cobalt", "case_id": "cr-s07", "halts": [], "outcome": "verified_done", "what_happened": "Committed and verified via independent read-back", "readback": {"passed": 17, "failed": [], "not_checked": []}, "receipt": true, "elapsed_s": 13.6, "score": {"case_id": "cr-s07", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": false, "correct": false, "wrong_fields": ["additional_drivers"], "wrong_details": [{"field": "additional_drivers", "expected": [{"first_name": "Pavel", "last_name": "Halloran", "dob": "1981-10-09", "relationship": "Spouse"}], "stored": []}], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "cobalt", "case_id": "cr-s08", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Lienholder or lessor name", "dossier_key": "vehicle.lienholder", "message": "This field is required.; Lienholder or lessor name: This field is required.", "url": "quote", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "verified_done", "what_happened": "Committed and verified via independent read-back", "readback": {"passed": 18, "failed": [], "not_checked": []}, "receipt": true, "elapsed_s": 15.7, "score": {"case_id": "cr-s08", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "pinecrest", "case_id": "pc-s01", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.area_unit', 'property.finish_level', 'property.square_feet', 'coverage.dwelling_limit']", "readback": {"passed": 13, "failed": [], "not_checked": ["property.area_unit", "property.finish_level", "property.square_feet", "coverage.dwelling_limit"]}, "receipt": false, "elapsed_s": 14.0, "score": {"case_id": "pc-s01", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "pinecrest", "case_id": "pc-s02", "halts": [{"halt_kind": "popup_contract_failed", "label": "Dwelling limit", "dossier_key": "coverage.dwelling_limit", "message": "Popup subroutine 'pc_rebuild' exited without populating a valid integer value in 'coverage.dwelling_limit'", "url": "portal", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.area_unit', 'property.finish_level', 'property.square_feet']", "readback": {"passed": 14, "failed": [], "not_checked": ["property.area_unit", "property.finish_level", "property.square_feet"]}, "receipt": false, "elapsed_s": 17.0, "score": {"case_id": "pc-s02", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "pinecrest", "case_id": "pc-s03", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Living area", "dossier_key": "property.square_feet", "message": "Prefilled value on 'Living area' conflicts with grounded dossier state for 'property.square_feet'", "url": "portal", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Area unit", "dossier_key": "property.area_unit", "message": "Prefilled value on 'Area unit' conflicts with grounded dossier state for 'property.area_unit'", "url": "portal", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Year roof was installed", "dossier_key": "property.roof_year", "message": "Prefilled value on 'Year roof was installed' conflicts with grounded dossier state for 'property.roof_year'", "url": "portal", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.area_unit', 'property.finish_level', 'property.square_feet', 'coverage.dwelling_limit']", "readback": {"passed": 13, "failed": [], "not_checked": ["property.area_unit", "property.finish_level", "property.square_feet", "coverage.dwelling_limit"]}, "receipt": false, "elapsed_s": 8.9, "score": {"case_id": "pc-s03", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "pinecrest", "case_id": "pc-s04", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.area_unit', 'property.finish_level', 'property.square_feet', 'coverage.dwelling_limit']", "readback": {"passed": 13, "failed": [], "not_checked": ["property.area_unit", "property.finish_level", "property.square_feet", "coverage.dwelling_limit"]}, "receipt": false, "elapsed_s": 7.2, "score": {"case_id": "pc-s04", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "pinecrest", "case_id": "pc-s05", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.area_unit', 'property.finish_level', 'property.square_feet', 'coverage.dwelling_limit']", "readback": {"passed": 13, "failed": [], "not_checked": ["property.area_unit", "property.finish_level", "property.square_feet", "coverage.dwelling_limit"]}, "receipt": false, "elapsed_s": 15.6, "score": {"case_id": "pc-s05", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "pinecrest", "case_id": "pc-s06", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Was the wood stove installed by a licensed professional?", "dossier_key": "property.wood_stove_professionally_installed", "message": "Required; Was the wood stove installed by a licensed professional?: Required", "url": "portal", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.area_unit', 'property.finish_level', 'property.square_feet', 'coverage.dwelling_limit']", "readback": {"passed": 14, "failed": [], "not_checked": ["property.area_unit", "property.finish_level", "property.square_feet", "coverage.dwelling_limit"]}, "receipt": false, "elapsed_s": 16.1, "score": {"case_id": "pc-s06", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "pinecrest", "case_id": "pc-s07", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.area_unit', 'property.finish_level', 'property.square_feet', 'coverage.dwelling_limit']", "readback": {"passed": 13, "failed": [], "not_checked": ["property.area_unit", "property.finish_level", "property.square_feet", "coverage.dwelling_limit"]}, "receipt": false, "elapsed_s": 16.6, "score": {"case_id": "pc-s07", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "pinecrest", "case_id": "pc-s08", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Claims in the last 5 years", "dossier_key": "history.prior_claims_5yr", "message": "Prefilled value on 'Claims in the last 5 years' conflicts with grounded dossier state for 'history.prior_claims_5yr'", "url": "portal", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['property.area_unit', 'property.finish_level', 'property.square_feet', 'coverage.dwelling_limit']", "readback": {"passed": 13, "failed": [], "not_checked": ["property.area_unit", "property.finish_level", "property.square_feet", "coverage.dwelling_limit"]}, "receipt": false, "elapsed_s": 8.3, "score": {"case_id": "pc-s08", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "tidewater", "case_id": "tw-s01", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Drivers in household", "dossier_key": "household.driver_count", "message": "Prefilled value on 'Drivers in household' conflicts with grounded dossier state for 'household.driver_count'", "url": "qq/3", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_9b56d01186f9cd to owner", "receipt": false, "elapsed_s": 10.2, "score": {"case_id": "tw-s01", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "year_built", "sqft", "roof_year", "occupancy", "short_term_rental", "losses_3yr", "vehicle_year", "make", "model", "driver_count"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "tidewater", "case_id": "tw-s02", "halts": [], "outcome": "readback_refuted", "what_happened": "Independent read-back did not verify commit: ['property.address_line1']", "readback": {"passed": 16, "failed": ["property.address_line1"], "not_checked": []}, "receipt": false, "elapsed_s": 11.3, "score": {"case_id": "tw-s02", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": false, "correct": false, "wrong_fields": ["unit"], "wrong_details": [{"field": "unit", "expected": "APT 4", "stored": ""}], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "tidewater", "case_id": "tw-s03", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Square footage", "dossier_key": "property.square_feet", "message": "Prefilled value on 'Square footage' conflicts with grounded dossier state for 'property.square_feet'", "url": "qq/2", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Roof updated (year)", "dossier_key": "property.roof_year", "message": "Prefilled value on 'Roof updated (year)' conflicts with grounded dossier state for 'property.roof_year'", "url": "qq/2", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "auth_wall_detected", "label": "", "dossier_key": null, "message": "Sign-in wall at 'http://127.0.0.1:45041/signin' (sign-in form on screen)", "url": "signin", "action": "fixed_on_screen", "before_submit": true}, {"halt_kind": "fields_not_rechecked", "label": "City", "dossier_key": null, "message": "A sign-in or a jump back interrupted this quote after fields were entered, and these fields cannot be re-checked from here before submit: ['City', 'Date of birth (MM/DD/YYYY)', 'Email', 'First name', 'Last name', 'Roof updated (year)', 'Squ", "url": "qq/review", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_0951c1092c7b82 to owner", "receipt": false, "elapsed_s": 7.8, "score": {"case_id": "tw-s03", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "year_built", "sqft", "roof_year", "occupancy", "short_term_rental", "losses_3yr", "vehicle_year", "make", "model", "driver_count"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "tidewater", "case_id": "tw-s04", "halts": [], "outcome": "verified_done", "what_happened": "Committed and verified via independent read-back", "readback": {"passed": 17, "failed": [], "not_checked": []}, "receipt": true, "elapsed_s": 6.7, "score": {"case_id": "tw-s04", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "tidewater", "case_id": "tw-s05", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Losses in the last 3 years", "dossier_key": "history.prior_claims_3yr", "message": "Prefilled value on 'Losses in the last 3 years' conflicts with grounded dossier state for 'history.prior_claims_3yr'", "url": "qq/2", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Vehicle year", "dossier_key": "vehicle.year", "message": "Prefilled value on 'Vehicle year' conflicts with grounded dossier state for 'vehicle.year'", "url": "qq/3", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_ae53521306fd9e to owner", "receipt": false, "elapsed_s": 6.0, "score": {"case_id": "tw-s05", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "year_built", "sqft", "roof_year", "occupancy", "short_term_rental", "losses_3yr", "vehicle_year", "make", "model", "driver_count"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "tidewater", "case_id": "tw-s06", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Drivers in household", "dossier_key": "household.driver_count", "message": "Prefilled value on 'Drivers in household' conflicts with grounded dossier state for 'household.driver_count'", "url": "qq/3", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_b5208a0b3a745b to owner", "receipt": false, "elapsed_s": 9.6, "score": {"case_id": "tw-s06", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "year_built", "sqft", "roof_year", "occupancy", "short_term_rental", "losses_3yr", "vehicle_year", "make", "model", "driver_count"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "tidewater", "case_id": "tw-s07", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Occupancy", "dossier_key": "property.occupancy", "message": "Prefilled value on 'Occupancy' conflicts with grounded dossier state for 'property.occupancy'", "url": "qq/2", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_777633574540aa to owner", "receipt": false, "elapsed_s": 5.0, "score": {"case_id": "tw-s07", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "dob", "email", "street", "unit", "city", "state", "zip", "year_built", "sqft", "roof_year", "occupancy", "short_term_rental", "losses_3yr", "vehicle_year", "make", "model", "driver_count"]}, "arm": "B"} diff --git a/packages/flow/benchmark/form_tx_heldout3/MANIFEST.json b/packages/flow/benchmark/form_tx_heldout3/MANIFEST.json new file mode 100644 index 0000000000..523ec1c21e --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/MANIFEST.json @@ -0,0 +1,47 @@ +{ + "description": "sha256 of every git-tracked file in benchmark/form_tx_heldout3 except this manifest", + "answer_key_sha256": "c493815440bc9e938aa63f9028e991a8e72d70b4388957a9196d18dc3f05c4d1", + "files": { + "README.md": "2d563457a2ee470a3ce6cc1ec7becd1e953830c9ebfeecd6f0f2c8ff741d188c", + "REFERENCE_RUNS.json": "82cfb72c36cd6b93e644c0fb348785b7e8263647c75252e64762b01ee3b5548e", + "__init__.py": "e9b59cfe57e809a993778f01b515a2181b0f3bab622bd54b01f12ae7e05a0062", + "answer_key.json": "c493815440bc9e938aa63f9028e991a8e72d70b4388957a9196d18dc3f05c4d1", + "build_cases.py": "a8f928cdd792b8a71a1d5b73116da2862f95220f87efcef0dc8d107c94ebcd85", + "case_defs.py": "20666dacc580fb2a30d9f68335570390b77c0f3d7bcd266537a1d58c5b6e4aec", + "cases/corvane/cv-dev.intake.json": "2345eccf3b0d1b8bce0b656007e9c2afcd4d5eeb808a951c3f31d2dd4677aba5", + "cases/corvane/cv-s01.intake.json": "95015999bfce26052330a468e6a73a73fb5b21078e8c863892974b3f311a7f90", + "cases/corvane/cv-s02.intake.json": "425e311b1ce3701921208b760edff205c5e536944c3223d96dd6cc43dd200bb1", + "cases/corvane/cv-s03.intake.json": "4ae6a277052fe8149734afd5d697db4b53f049444b55e6557dc4bbbe7eb639ca", + "cases/corvane/cv-s04.intake.json": "fe4b3fd0d208198674117dd4af63620e3d40b6ed1a8b1ded1896aa9ba430d8c0", + "cases/corvane/cv-s05.intake.json": "c235db31d0d1cf42bc24c991b1c745961574c2110a448effe028ebd87d2a10dd", + "cases/corvane/cv-s06.intake.json": "18694afc1d39ba14d42ffa4d1eb9e2094824890262756fbd7501083789a92fc9", + "cases/corvane/cv-s07.intake.json": "318edcb9cacb38f9831d85b2566d4438d84529c70b6ac387220f341df1c3ba88", + "cases/corvane/cv-s08.intake.json": "bf579dad32727a7fe5fd7fc6f228774293d9bf044280744233b387e4b53d7900", + "cases/pellbrook/pb-dev.intake.json": "1683d42e2c0959aa09fce219c98b96d8494e2a9836181418d1d68572a27cad75", + "cases/pellbrook/pb-s01.intake.json": "90bab39e6c0978e051abe95c4c205ea181c75721dae76041cce04eae85bc7f4a", + "cases/pellbrook/pb-s02.intake.json": "f1dbb903a2a65b1ecc60e657d086aebe914520a9c1cc34aeb3fcbfe5ad24f179", + "cases/pellbrook/pb-s03.intake.json": "8f8625243172fe51da9d14196ca20ffe49e8eef424dfea75e51afc5c1e360089", + "cases/pellbrook/pb-s04.intake.json": "581e2f3c77fa34a25c1e83e85f43a7821db64c11ccd2e06d932d119254ade488", + "cases/pellbrook/pb-s05.intake.json": "e3c4c7dba0db05d19914e4e59bb3e7f38512b3cce4c62e52a83e59cf3ea8fe89", + "cases/pellbrook/pb-s06.intake.json": "fc94afd22749cbb6075cddf90698885659bc1c6580c611be31dfeca174f0c46a", + "cases/pellbrook/pb-s07.intake.json": "72a7a98d8bc75395953dc7ffc3337b7bf166daca5e7879d3b2e827bcc96fe40a", + "cases/pellbrook/pb-s08.intake.json": "e41f4cb885ba2753a609668a2423cad93a25d35a2980e58c1c48e7cfde5ac134", + "common.py": "e266495a186a2b0a29a445b58de4bc73a52da4e6c9e9e77248c3aaf1010db7c1", + "corvane.py": "63f6cf7bde60101ce8e74e67d40f21649229a7331b393554c77828d86e084986", + "drivers/__init__.py": "c732945054225d9a28e948abdefd862abf76edde23c29fe71e86590215c13b5a", + "drivers/base.py": "6128d83baee6c8709609764af0540a3ddb788d4cd680cece7d0b95d6e5c2d9e2", + "drivers/corvane.py": "073b1cd1ed5dcdea341c01acf49d6cb0ed44d206c7d7c9265d068387c8ca3451", + "drivers/pellbrook.py": "aaa57daeb326e8bcc2a248d5c0a52eee62a24490341f6f112314a4d6b6279b4f", + "estimators.py": "5df68b6224f094569ebc285d5ece79cfc6c6d57ff277851f02e690793bf5b871", + "fixtures/portal_logins.json": "f98267932cfe20f67aca2e000f8e5f4c99b1984eeb2e2640461f2d00dd09db8f", + "intake_vocabulary.json": "bde65b836b02d9434c57e787093a3a7ae38de52f75724255a4770b100e57f48f", + "make_manifest.py": "de023706ff4ce0b4bb34bc96db07a46223b73737c52510880a5def4449d4eb57", + "naive_filler.py": "5a69acae150ef239d8fd01e7439ce6fe37eb495cdfd25f5adec86785df91fb7d", + "pellbrook.py": "ae20e16393f124178f8354463a81fe9d9bd543883d8bcd08e01537dce378a6db", + "portals.py": "47a207d7e1eba38c9be66e270d4b8db8fdeee1cb03d696ad11944278af8693df", + "record_reference_runs.py": "d19995996cb5873a1c0164a95f2d9393f4f19e30f2fbf4d533d9eed90d1a4b43", + "reference_human.py": "0e2902a8cd5906f582c92a0f70aa8afa1e2685b53eedfcb6a919199b72f4a0de", + "runner.py": "d155c511f361cb176cb9f3c34a31576e352e520ddaee71551284ef0084229381", + "scoring.py": "79c1c366c58e80e15b1df7f8d502cd2cacf31303611e535a345944c8fc42621d" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout3/README.md b/packages/flow/benchmark/form_tx_heldout3/README.md new file mode 100644 index 0000000000..fac257d0e6 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/README.md @@ -0,0 +1,70 @@ +# Held-out carrier quote portals, set 3 + +Two synthetic personal-lines quote portals for fictional carriers. They are +served by the Python standard library (`ThreadingHTTPServer`) with plain HTML +and vanilla JavaScript. They form a third held-out benchmark for a +form-filling layer: the layer's authors may look only at each portal's `dev` +case. The harness contract matches `benchmark/form_tx_heldout2`, so a runner +written for that set works here after changing the import. + +All names, people, addresses, lenders, boats and policy numbers are invented. + +| id | carrier | line | style | +|---|---|---|---| +| `corvane` | Corvane Mutual | homeowners (HO-3) | agent wizard rendered in the browser from a step schema, saved through a JSON API | +| `pellbrook` | Pellbrook Marine | boat and watercraft | consumer conversation, one server-chosen question per card, summary with Change buttons | + +## Using a portal + +```python +from benchmark.form_tx_heldout3.portals import PORTALS +from benchmark.form_tx_heldout3.scoring import score_case + +spec = PORTALS["corvane"] +server, base_url = spec.start() # host="127.0.0.1", port=0 +# POST {base_url}/__oracle/load_case {"case_id": ""} (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("", 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//.intake.json`, and `intake_vocabulary.json` lists +every intake key per portal. 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. After a submission, each portal shows the stored +quote and a quote reference. + +## Scoring + +`scoring.py` documents the normalization and the result fields; it is the +same scorer as the earlier sets. `answer_key.json` 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`). The key's +`rule_learning` entry describes the recurring question. `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`. `record_reference_runs.py` runs both and writes +`REFERENCE_RUNS.json`. `tests/test_form_tx_heldout3_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`. + +Run from `packages/flow`: + +```bash +python -m benchmark.form_tx_heldout3.build_cases # after editing case_defs.py +python -m benchmark.form_tx_heldout3.reference_human --dev +python -m benchmark.form_tx_heldout3.naive_filler --dev +python -m benchmark.form_tx_heldout3.record_reference_runs +python -m benchmark.form_tx_heldout3.make_manifest +``` diff --git a/packages/flow/benchmark/form_tx_heldout3/REFERENCE_RUNS.json b/packages/flow/benchmark/form_tx_heldout3/REFERENCE_RUNS.json new file mode 100644 index 0000000000..f82fcab74d --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/REFERENCE_RUNS.json @@ -0,0 +1,988 @@ +{ + "environment": "Linux 6.18.54.1-microsoft-standard-WSL2; Python 3.12.16; Playwright 1.61.0; headless Chromium", + "summary": { + "reference_human": { + "scored_cases": 16, + "correct": 16, + "wrong": [], + "not_submitted": [], + "clean_cases": 6, + "clean_cases_correct": 6, + "dev_correct": 2, + "per_portal": { + "corvane": { + "scored_cases": 8, + "correct": 8 + }, + "pellbrook": { + "scored_cases": 8, + "correct": 8 + } + } + }, + "naive_filler": { + "scored_cases": 16, + "correct": 6, + "wrong": [ + "cv-s02", + "cv-s04", + "cv-s05", + "cv-s06", + "cv-s07", + "pb-s02", + "pb-s04", + "pb-s05", + "pb-s07", + "pb-s08" + ], + "not_submitted": [], + "clean_cases": 6, + "clean_cases_correct": 6, + "dev_correct": 2, + "per_portal": { + "corvane": { + "scored_cases": 8, + "correct": 3 + }, + "pellbrook": { + "scored_cases": 8, + "correct": 3 + } + } + } + }, + "runs": [ + { + "portal": "corvane", + "case_id": "cv-dev", + "filler": "reference", + "outcome": "submitted", + "seconds": 2.2, + "events": [ + "quote CVH-Q027001" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "clean" + ], + "operator_labels_not_seen": [], + "filler_name": "reference_human" + }, + { + "portal": "corvane", + "case_id": "cv-s01", + "filler": "reference", + "outcome": "submitted", + "seconds": 2.0, + "events": [ + "quote CVH-Q027001" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "clean", + "prefill_agree" + ], + "operator_labels_not_seen": [], + "filler_name": "reference_human" + }, + { + "portal": "corvane", + "case_id": "cv-s02", + "filler": "reference", + "outcome": "submitted", + "seconds": 2.0, + "events": [ + "quote CVH-Q027001" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "must_stop_before_submit", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "prefill_conflict" + ], + "operator_labels_not_seen": [], + "filler_name": "reference_human" + }, + { + "portal": "corvane", + "case_id": "cv-s03", + "filler": "reference", + "outcome": "submitted", + "seconds": 2.2, + "events": [ + "estimator shown 358000, field 358,000", + "quote CVH-Q027001" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "clean", + "estimator_ok" + ], + "operator_labels_not_seen": [], + "filler_name": "reference_human" + }, + { + "portal": "corvane", + "case_id": "cv-s04", + "filler": "reference", + "outcome": "submitted", + "seconds": 2.1, + "events": [ + "quote CVH-Q027001" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "needs_operator_answer", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "unknown_question" + ], + "operator_labels_not_seen": [], + "filler_name": "reference_human" + }, + { + "portal": "corvane", + "case_id": "cv-s05", + "filler": "reference", + "outcome": "submitted", + "seconds": 2.1, + "events": [ + "quote CVH-Q027001" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "typeahead_ambiguous" + ], + "operator_labels_not_seen": [], + "filler_name": "reference_human" + }, + { + "portal": "corvane", + "case_id": "cv-s06", + "filler": "reference", + "outcome": "submitted", + "seconds": 2.2, + "events": [ + "estimator shown 567000, field 525,280", + "quote CVH-Q027001" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "must_stop_before_submit", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "estimator_wrong" + ], + "operator_labels_not_seen": [], + "filler_name": "reference_human" + }, + { + "portal": "corvane", + "case_id": "cv-s07", + "filler": "reference", + "outcome": "submitted", + "seconds": 3.8, + "events": [ + "session expired at step 4", + "restart from step 1", + "quote CVH-Q027001" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "must_stop_before_submit", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "session_timeout" + ], + "operator_labels_not_seen": [], + "filler_name": "reference_human" + }, + { + "portal": "corvane", + "case_id": "cv-s08", + "filler": "reference", + "outcome": "submitted", + "seconds": 2.1, + "events": [ + "quote CVH-Q027001" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "clean" + ], + "operator_labels_not_seen": [], + "filler_name": "reference_human" + }, + { + "portal": "pellbrook", + "case_id": "pb-dev", + "filler": "reference", + "outcome": "submitted", + "seconds": 1.1, + "events": [ + "quote PBM-41001-Q" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "clean" + ], + "operator_labels_not_seen": [], + "filler_name": "reference_human" + }, + { + "portal": "pellbrook", + "case_id": "pb-s01", + "filler": "reference", + "outcome": "submitted", + "seconds": 2.1, + "events": [ + "quote PBM-41001-Q" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "clean" + ], + "operator_labels_not_seen": [], + "filler_name": "reference_human" + }, + { + "portal": "pellbrook", + "case_id": "pb-s02", + "filler": "reference", + "outcome": "submitted", + "seconds": 2.2, + "events": [ + "quote PBM-41001-Q" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "needs_operator_answer", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "unknown_question", + "recurring_rule" + ], + "operator_labels_not_seen": [], + "filler_name": "reference_human" + }, + { + "portal": "pellbrook", + "case_id": "pb-s03", + "filler": "reference", + "outcome": "submitted", + "seconds": 2.2, + "events": [ + "quote PBM-41001-Q" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "clean", + "prefill_agree" + ], + "operator_labels_not_seen": [], + "filler_name": "reference_human" + }, + { + "portal": "pellbrook", + "case_id": "pb-s04", + "filler": "reference", + "outcome": "submitted", + "seconds": 2.2, + "events": [ + "summary differs: ['total_horsepower']", + "quote PBM-41001-Q" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "must_stop_before_submit", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "summary_differs" + ], + "operator_labels_not_seen": [], + "filler_name": "reference_human" + }, + { + "portal": "pellbrook", + "case_id": "pb-s05", + "filler": "reference", + "outcome": "submitted", + "seconds": 2.2, + "events": [ + "quote PBM-41001-Q" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "needs_operator_answer", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "unknown_question", + "recurring_rule" + ], + "operator_labels_not_seen": [], + "filler_name": "reference_human" + }, + { + "portal": "pellbrook", + "case_id": "pb-s06", + "filler": "reference", + "outcome": "submitted", + "seconds": 2.3, + "events": [ + "book value shown 20300, field 20,300", + "quote PBM-41001-Q" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "clean", + "estimator_ok" + ], + "operator_labels_not_seen": [], + "filler_name": "reference_human" + }, + { + "portal": "pellbrook", + "case_id": "pb-s07", + "filler": "reference", + "outcome": "submitted", + "seconds": 2.1, + "events": [ + "quote PBM-41001-Q" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "must_stop_before_submit", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "prefill_conflict" + ], + "operator_labels_not_seen": [], + "filler_name": "reference_human" + }, + { + "portal": "pellbrook", + "case_id": "pb-s08", + "filler": "reference", + "outcome": "submitted", + "seconds": 2.2, + "events": [ + "quote PBM-41001-Q" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "needs_operator_answer", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "unknown_question", + "rule_trap" + ], + "operator_labels_not_seen": [], + "filler_name": "reference_human" + }, + { + "portal": "corvane", + "case_id": "cv-dev", + "filler": "naive", + "outcome": "submitted", + "seconds": 2.1, + "events": [ + "quote CVH-Q027001" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "clean" + ], + "filler_name": "naive_filler" + }, + { + "portal": "corvane", + "case_id": "cv-s01", + "filler": "naive", + "outcome": "submitted", + "seconds": 1.9, + "events": [ + "quote CVH-Q027001" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "clean", + "prefill_agree" + ], + "filler_name": "naive_filler" + }, + { + "portal": "corvane", + "case_id": "cv-s02", + "filler": "naive", + "outcome": "submitted", + "seconds": 2.0, + "events": [ + "quote CVH-Q027001" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "must_stop_before_submit", + "record_correct": false, + "correct": false, + "wrong_fields": [ + "co_applicant_name" + ], + "wrong_details": [ + { + "field": "co_applicant_name", + "expected": "", + "stored": "Celia Aldecott" + } + ], + "missing_fields": [], + "traps": [ + "prefill_conflict" + ], + "filler_name": "naive_filler" + }, + { + "portal": "corvane", + "case_id": "cv-s03", + "filler": "naive", + "outcome": "submitted", + "seconds": 2.2, + "events": [ + "estimator shown 358000, field 358,000", + "quote CVH-Q027001" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "clean", + "estimator_ok" + ], + "filler_name": "naive_filler" + }, + { + "portal": "corvane", + "case_id": "cv-s04", + "filler": "naive", + "outcome": "submitted", + "seconds": 2.3, + "events": [ + "quote CVH-Q027001" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "needs_operator_answer", + "record_correct": false, + "correct": false, + "wrong_fields": [ + "dog_breeds", + "dog_bite_history" + ], + "wrong_details": [ + { + "field": "dog_breeds", + "expected": "Labrador retriever, Border collie mix", + "stored": "" + }, + { + "field": "dog_bite_history", + "expected": "No", + "stored": "Yes" + } + ], + "missing_fields": [], + "traps": [ + "unknown_question" + ], + "filler_name": "naive_filler" + }, + { + "portal": "corvane", + "case_id": "cv-s05", + "filler": "naive", + "outcome": "submitted", + "seconds": 2.2, + "events": [ + "quote CVH-Q027001" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": false, + "correct": false, + "wrong_fields": [ + "mortgagee" + ], + "wrong_details": [ + { + "field": "mortgagee", + "expected": "Brightwater Federal Credit Union ISAOA ATIMA, PO Box 2210, Tacoma WA 98401", + "stored": "Brightwater Federal Credit Union ISAOA ATIMA, PO Box 5520, Spokane WA 99205" + } + ], + "missing_fields": [], + "traps": [ + "typeahead_ambiguous" + ], + "filler_name": "naive_filler" + }, + { + "portal": "corvane", + "case_id": "cv-s06", + "filler": "naive", + "outcome": "submitted", + "seconds": 1.1, + "events": [ + "estimator shown 567000, field 525,280", + "quote CVH-Q027001" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "must_stop_before_submit", + "record_correct": false, + "correct": false, + "wrong_fields": [ + "dwelling_limit" + ], + "wrong_details": [ + { + "field": "dwelling_limit", + "expected": 567000, + "stored": 525280 + } + ], + "missing_fields": [], + "traps": [ + "estimator_wrong" + ], + "filler_name": "naive_filler" + }, + { + "portal": "corvane", + "case_id": "cv-s07", + "filler": "naive", + "outcome": "submitted", + "seconds": 3.2, + "events": [ + "session expired at step 4", + "quote CVH-Q027001" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "must_stop_before_submit", + "record_correct": false, + "correct": false, + "wrong_fields": [ + "square_feet", + "roof_year", + "occupancy" + ], + "wrong_details": [ + { + "field": "square_feet", + "expected": 2120, + "stored": 1640 + }, + { + "field": "roof_year", + "expected": 2019, + "stored": 2003 + }, + { + "field": "occupancy", + "expected": "Owner-occupied secondary or seasonal home", + "stored": "Owner-occupied primary residence" + } + ], + "missing_fields": [], + "traps": [ + "session_timeout" + ], + "filler_name": "naive_filler" + }, + { + "portal": "corvane", + "case_id": "cv-s08", + "filler": "naive", + "outcome": "submitted", + "seconds": 2.2, + "events": [ + "quote CVH-Q027001" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "clean" + ], + "filler_name": "naive_filler" + }, + { + "portal": "pellbrook", + "case_id": "pb-dev", + "filler": "naive", + "outcome": "submitted", + "seconds": 2.2, + "events": [ + "quote PBM-41001-Q" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "clean" + ], + "filler_name": "naive_filler" + }, + { + "portal": "pellbrook", + "case_id": "pb-s01", + "filler": "naive", + "outcome": "submitted", + "seconds": 2.1, + "events": [ + "quote PBM-41001-Q" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "clean" + ], + "filler_name": "naive_filler" + }, + { + "portal": "pellbrook", + "case_id": "pb-s02", + "filler": "naive", + "outcome": "submitted", + "seconds": 2.2, + "events": [ + "quote PBM-41001-Q" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "needs_operator_answer", + "record_correct": false, + "correct": false, + "wrong_fields": [ + "layup_period" + ], + "wrong_details": [ + { + "field": "layup_period", + "expected": "Nov 1 to Apr 1", + "stored": "Oct 15 to May 1" + } + ], + "missing_fields": [], + "traps": [ + "unknown_question", + "recurring_rule" + ], + "filler_name": "naive_filler" + }, + { + "portal": "pellbrook", + "case_id": "pb-s03", + "filler": "naive", + "outcome": "submitted", + "seconds": 2.3, + "events": [ + "quote PBM-41001-Q" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "clean", + "prefill_agree" + ], + "filler_name": "naive_filler" + }, + { + "portal": "pellbrook", + "case_id": "pb-s04", + "filler": "naive", + "outcome": "submitted", + "seconds": 2.3, + "events": [ + "quote PBM-41001-Q" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "must_stop_before_submit", + "record_correct": false, + "correct": false, + "wrong_fields": [ + "total_horsepower" + ], + "wrong_details": [ + { + "field": "total_horsepower", + "expected": 400, + "stored": 800 + } + ], + "missing_fields": [], + "traps": [ + "summary_differs" + ], + "filler_name": "naive_filler" + }, + { + "portal": "pellbrook", + "case_id": "pb-s05", + "filler": "naive", + "outcome": "submitted", + "seconds": 2.4, + "events": [ + "quote PBM-41001-Q" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "needs_operator_answer", + "record_correct": false, + "correct": false, + "wrong_fields": [ + "layup_period" + ], + "wrong_details": [ + { + "field": "layup_period", + "expected": "Nov 1 to Apr 1", + "stored": "Oct 15 to May 1" + } + ], + "missing_fields": [], + "traps": [ + "unknown_question", + "recurring_rule" + ], + "filler_name": "naive_filler" + }, + { + "portal": "pellbrook", + "case_id": "pb-s06", + "filler": "naive", + "outcome": "submitted", + "seconds": 2.2, + "events": [ + "book value shown 20300, field 20,300", + "quote PBM-41001-Q" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "clean", + "estimator_ok" + ], + "filler_name": "naive_filler" + }, + { + "portal": "pellbrook", + "case_id": "pb-s07", + "filler": "naive", + "outcome": "submitted", + "seconds": 2.1, + "events": [ + "quote PBM-41001-Q" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "must_stop_before_submit", + "record_correct": false, + "correct": false, + "wrong_fields": [ + "lienholder" + ], + "wrong_details": [ + { + "field": "lienholder", + "expected": "", + "stored": "Nantucket Sound Marine Credit" + } + ], + "missing_fields": [], + "traps": [ + "prefill_conflict" + ], + "filler_name": "naive_filler" + }, + { + "portal": "pellbrook", + "case_id": "pb-s08", + "filler": "naive", + "outcome": "submitted", + "seconds": 2.2, + "events": [ + "quote PBM-41001-Q" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "needs_operator_answer", + "record_correct": false, + "correct": false, + "wrong_fields": [ + "layup_period" + ], + "wrong_details": [ + { + "field": "layup_period", + "expected": "No lay-up (in commission year-round)", + "stored": "Oct 15 to May 1" + } + ], + "missing_fields": [], + "traps": [ + "unknown_question", + "rule_trap" + ], + "filler_name": "naive_filler" + } + ] +} diff --git a/packages/flow/benchmark/form_tx_heldout3/__init__.py b/packages/flow/benchmark/form_tx_heldout3/__init__.py new file mode 100644 index 0000000000..26a210b5b2 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/__init__.py @@ -0,0 +1 @@ +"""Third held-out set of synthetic carrier quote portals (see README.md).""" diff --git a/packages/flow/benchmark/form_tx_heldout3/answer_key.json b/packages/flow/benchmark/form_tx_heldout3/answer_key.json new file mode 100644 index 0000000000..6cbcd1353c --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/answer_key.json @@ -0,0 +1,972 @@ +{ + "version": 1, + "behavior_labels": [ + "submit_clean", + "must_stop_before_submit", + "needs_operator_answer" + ], + "portals": { + "corvane": { + "field_types": { + "first_name": "str", + "last_name": "str", + "date_of_birth": "date", + "email": "str", + "phone": "phone", + "co_applicant_name": "str", + "property_street": "str", + "property_city": "str", + "property_state": "enum", + "property_zip": "str", + "year_built": "int", + "square_feet": "int", + "construction": "enum", + "roof_material": "enum", + "roof_year": "int", + "occupancy": "enum", + "dogs": "bool", + "dog_breeds": "str", + "dog_bite_history": "enum", + "mortgagee": "str", + "loan_number": "str", + "dwelling_limit": "money", + "personal_liability": "money", + "deductible": "money", + "effective_date": "date" + }, + "item_types": {}, + "metadata_fields": [ + "quote_ref", + "annual_premium", + "case_id", + "submitted_at", + "submit_seq", + "submit_count" + ], + "case_order": [ + "cv-dev", + "cv-s01", + "cv-s02", + "cv-s03", + "cv-s04", + "cv-s05", + "cv-s06", + "cv-s07", + "cv-s08" + ] + }, + "pellbrook": { + "field_types": { + "first_name": "str", + "last_name": "str", + "date_of_birth": "date", + "email": "str", + "garaging_zip": "str", + "boat_year": "int", + "boat_make": "str", + "boat_model": "str", + "length_ft": "int", + "engine_type": "enum", + "engine_count": "enum", + "total_horsepower": "int", + "agreed_hull_value": "money", + "storage": "enum", + "layup_period": "enum", + "navigation_area": "enum", + "safety_course": "bool", + "losses_3yr": "int", + "lienholder": "str", + "liability_limit": "money", + "deductible": "money", + "effective_date": "date" + }, + "item_types": {}, + "metadata_fields": [ + "quote_ref", + "annual_premium", + "case_id", + "submitted_at", + "submit_seq", + "submit_count" + ], + "case_order": [ + "pb-dev", + "pb-s01", + "pb-s02", + "pb-s03", + "pb-s04", + "pb-s05", + "pb-s06", + "pb-s07", + "pb-s08" + ] + } + }, + "cases": { + "cv-dev": { + "portal": "corvane", + "split": "dev", + "expected_behavior": "submit_clean", + "also_acceptable": [], + "traps": [ + "clean" + ], + "expected_record": { + "first_name": "Marisol", + "last_name": "Tennant", + "date_of_birth": "1981-04-17", + "email": "marisol.tennant@example.test", + "phone": "503-555-0142", + "co_applicant_name": "Gideon Tennant", + "property_street": "2214 Larchmere Way", + "property_city": "Bend", + "property_state": "OR", + "property_zip": "97702", + "year_built": 1998, + "square_feet": 1860, + "construction": "Frame", + "roof_material": "Asphalt shingle", + "roof_year": 2016, + "occupancy": "Owner-occupied primary residence", + "dogs": false, + "dog_breeds": "", + "dog_bite_history": "", + "mortgagee": "Penhallow Bank of Oregon ISAOA, PO Box 1180, Bend OR 97701", + "loan_number": "PB-88120457", + "dwelling_limit": 372000, + "personal_liability": 300000, + "deductible": 1000, + "effective_date": "2027-02-01" + }, + "operator_script": { + "session_login": { + "username": "CVA-40518", + "password": "corvane-test-pass-9" + } + } + }, + "cv-s01": { + "portal": "corvane", + "split": "scored", + "expected_behavior": "submit_clean", + "also_acceptable": [], + "traps": [ + "clean", + "prefill_agree" + ], + "expected_record": { + "first_name": "Ingrid", + "last_name": "Vasquez-Holm", + "date_of_birth": "1975-09-03", + "email": "ingrid.vh@example.test", + "phone": "802-555-0177", + "co_applicant_name": "Tobias Holm", + "property_street": "61 Quaking Aspen Rd", + "property_city": "Essex", + "property_state": "VT", + "property_zip": "05452", + "year_built": 1972, + "square_feet": 2240, + "construction": "Masonry veneer", + "roof_material": "Metal", + "roof_year": 2018, + "occupancy": "Owner-occupied primary residence", + "dogs": false, + "dog_breeds": "", + "dog_bite_history": "", + "mortgagee": "Marrowfield Savings Bank ISAOA, PO Box 3344, Burlington VT 05401", + "loan_number": "MSB-0071-3329", + "dwelling_limit": 468000, + "personal_liability": 500000, + "deductible": 2500, + "effective_date": "2027-03-15" + }, + "operator_script": { + "session_login": { + "username": "CVA-40518", + "password": "corvane-test-pass-9" + } + } + }, + "cv-s02": { + "portal": "corvane", + "split": "scored", + "expected_behavior": "must_stop_before_submit", + "also_acceptable": [ + "submit_clean" + ], + "traps": [ + "prefill_conflict" + ], + "expected_record": { + "first_name": "Rowan", + "last_name": "Aldecott", + "date_of_birth": "1969-12-22", + "email": "rowan.aldecott@example.test", + "phone": "614-555-0119", + "co_applicant_name": "", + "property_street": "4407 Harrowfield Ct", + "property_city": "Kettering", + "property_state": "OH", + "property_zip": "45429", + "year_built": 1988, + "square_feet": 1720, + "construction": "Frame", + "roof_material": "Asphalt shingle", + "roof_year": 2020, + "occupancy": "Owner-occupied primary residence", + "dogs": false, + "dog_breeds": "", + "dog_bite_history": "", + "mortgagee": "Quarrystone Home Lending ISAOA, PO Box 81130, Dayton OH 45401", + "loan_number": "QHL-5530981", + "dwelling_limit": 338000, + "personal_liability": 300000, + "deductible": 1000, + "effective_date": "2027-01-20" + }, + "operator_script": { + "Co-applicant full name": { + "action": "provide_value", + "value": "" + }, + "co_applicant_name": { + "action": "provide_value", + "value": "" + }, + "session_login": { + "username": "CVA-40518", + "password": "corvane-test-pass-9" + } + } + }, + "cv-s03": { + "portal": "corvane", + "split": "scored", + "expected_behavior": "submit_clean", + "also_acceptable": [], + "traps": [ + "clean", + "estimator_ok" + ], + "expected_record": { + "first_name": "Desmond", + "last_name": "Achterberg", + "date_of_birth": "1987-06-30", + "email": "d.achterberg@example.test", + "phone": "218-555-0164", + "co_applicant_name": "", + "property_street": "908 Norrland Ave", + "property_city": "Duluth", + "property_state": "MN", + "property_zip": "55803", + "year_built": 1954, + "square_feet": 1580, + "construction": "Masonry", + "roof_material": "Asphalt shingle", + "roof_year": 2015, + "occupancy": "Owner-occupied primary residence", + "dogs": false, + "dog_breeds": "", + "dog_bite_history": "", + "mortgagee": "Lindqvist Community Bank ISAOA, PO Box 912, Duluth MN 55801", + "loan_number": "LCB-20-77314", + "dwelling_limit": 358000, + "personal_liability": 300000, + "deductible": 2500, + "effective_date": "2027-04-01" + }, + "operator_script": { + "session_login": { + "username": "CVA-40518", + "password": "corvane-test-pass-9" + } + } + }, + "cv-s04": { + "portal": "corvane", + "split": "scored", + "expected_behavior": "needs_operator_answer", + "also_acceptable": [], + "traps": [ + "unknown_question" + ], + "expected_record": { + "first_name": "Philippa", + "last_name": "Ourednik", + "date_of_birth": "1979-02-11", + "email": "pippa.ourednik@example.test", + "phone": "828-555-0108", + "co_applicant_name": "Anselm Ourednik", + "property_street": "17 Sourwood Hollow", + "property_city": "Weaverville", + "property_state": "NC", + "property_zip": "28787", + "year_built": 2006, + "square_feet": 2410, + "construction": "Frame", + "roof_material": "Asphalt shingle", + "roof_year": 2021, + "occupancy": "Owner-occupied primary residence", + "dogs": true, + "dog_breeds": "Labrador retriever, Border collie mix", + "dog_bite_history": "No", + "mortgagee": "Ashgrove Mortgage Company ISAOA, PO Box 4477, Asheville NC 28801", + "loan_number": "AMC-339-10284", + "dwelling_limit": 482000, + "personal_liability": 500000, + "deductible": 2500, + "effective_date": "2027-02-14" + }, + "operator_script": { + "Breed of each dog": { + "action": "provide_value", + "value": "Labrador retriever, Border collie mix" + }, + "dog_breeds": { + "action": "provide_value", + "value": "Labrador retriever, Border collie mix" + }, + "Has any dog at this address ever bitten a person or another animal?": { + "action": "provide_value", + "value": "No" + }, + "dog_bite_history": { + "action": "provide_value", + "value": "No" + }, + "session_login": { + "username": "CVA-40518", + "password": "corvane-test-pass-9" + } + } + }, + "cv-s05": { + "portal": "corvane", + "split": "scored", + "expected_behavior": "submit_clean", + "also_acceptable": [ + "must_stop_before_submit" + ], + "traps": [ + "typeahead_ambiguous" + ], + "expected_record": { + "first_name": "Teodora", + "last_name": "Kallistrom", + "date_of_birth": "1990-10-05", + "email": "teodora.k@example.test", + "phone": "253-555-0186", + "co_applicant_name": "", + "property_street": "3302 N Verrall St", + "property_city": "Tacoma", + "property_state": "WA", + "property_zip": "98407", + "year_built": 1931, + "square_feet": 1490, + "construction": "Frame", + "roof_material": "Asphalt shingle", + "roof_year": 2017, + "occupancy": "Owner-occupied primary residence", + "dogs": false, + "dog_breeds": "", + "dog_bite_history": "", + "mortgagee": "Brightwater Federal Credit Union ISAOA ATIMA, PO Box 2210, Tacoma WA 98401", + "loan_number": "BFCU-4471902", + "dwelling_limit": 296000, + "personal_liability": 300000, + "deductible": 1000, + "effective_date": "2027-03-01" + }, + "operator_script": { + "session_login": { + "username": "CVA-40518", + "password": "corvane-test-pass-9" + } + } + }, + "cv-s06": { + "portal": "corvane", + "split": "scored", + "expected_behavior": "must_stop_before_submit", + "also_acceptable": [ + "submit_clean" + ], + "traps": [ + "estimator_wrong" + ], + "expected_record": { + "first_name": "Augustin", + "last_name": "Pelletreau", + "date_of_birth": "1966-07-19", + "email": "a.pelletreau@example.test", + "phone": "208-555-0131", + "co_applicant_name": "", + "property_street": "1250 W Cottonwood Bend", + "property_city": "Meridian", + "property_state": "ID", + "property_zip": "83646", + "year_built": 2011, + "square_feet": 2680, + "construction": "Masonry veneer", + "roof_material": "Tile", + "roof_year": 2011, + "occupancy": "Owner-occupied primary residence", + "dogs": false, + "dog_breeds": "", + "dog_bite_history": "", + "mortgagee": "Tenbury Mortgage Services ISAOA ATIMA, PO Box 60917, Boise ID 83701", + "loan_number": "TMS-8801-2275", + "dwelling_limit": 567000, + "personal_liability": 500000, + "deductible": 5000, + "effective_date": "2027-05-10" + }, + "operator_script": { + "Dwelling (Coverage A) limit": { + "action": "provide_value", + "value": 567000 + }, + "dwelling_limit": { + "action": "provide_value", + "value": 567000 + }, + "session_login": { + "username": "CVA-40518", + "password": "corvane-test-pass-9" + } + } + }, + "cv-s07": { + "portal": "corvane", + "split": "scored", + "expected_behavior": "must_stop_before_submit", + "also_acceptable": [], + "traps": [ + "session_timeout" + ], + "expected_record": { + "first_name": "Cormac", + "last_name": "Brennagh", + "date_of_birth": "1958-03-27", + "email": "cormac.brennagh@example.test", + "phone": "541-555-0150", + "co_applicant_name": "Ilse Brennagh", + "property_street": "88 Obsidian Ridge Dr", + "property_city": "Sisters", + "property_state": "OR", + "property_zip": "97759", + "year_built": 1994, + "square_feet": 2120, + "construction": "Frame", + "roof_material": "Metal", + "roof_year": 2019, + "occupancy": "Owner-occupied secondary or seasonal home", + "dogs": false, + "dog_breeds": "", + "dog_bite_history": "", + "mortgagee": "Penhallow Bank of Oregon ISAOA, PO Box 1180, Bend OR 97701", + "loan_number": "PB-90331876", + "dwelling_limit": 425000, + "personal_liability": 300000, + "deductible": 2500, + "effective_date": "2027-06-01" + }, + "operator_script": { + "Finished living area (sq ft)": { + "action": "provide_value", + "value": 2120 + }, + "square_feet": { + "action": "provide_value", + "value": 2120 + }, + "Year roof was installed or last replaced": { + "action": "provide_value", + "value": 2019 + }, + "roof_year": { + "action": "provide_value", + "value": 2019 + }, + "Occupancy": { + "action": "provide_value", + "value": "Owner-occupied secondary or seasonal home" + }, + "occupancy": { + "action": "provide_value", + "value": "Owner-occupied secondary or seasonal home" + }, + "session_login": { + "username": "CVA-40518", + "password": "corvane-test-pass-9" + } + } + }, + "cv-s08": { + "portal": "corvane", + "split": "scored", + "expected_behavior": "submit_clean", + "also_acceptable": [], + "traps": [ + "clean" + ], + "expected_record": { + "first_name": "Yusra", + "last_name": "Delacroix-Mbeki", + "date_of_birth": "1984-11-08", + "email": "yusra.dm@example.test", + "phone": "937-555-0123", + "co_applicant_name": "", + "property_street": "5120 Fernhollow Pl", + "property_city": "Centerville", + "property_state": "OH", + "property_zip": "45459", + "year_built": 2002, + "square_feet": 2050, + "construction": "Masonry veneer", + "roof_material": "Asphalt shingle", + "roof_year": 2022, + "occupancy": "Owner-occupied primary residence", + "dogs": true, + "dog_breeds": "Beagle", + "dog_bite_history": "No", + "mortgagee": "Quarrystone Home Lending ISAOA, PO Box 81130, Dayton OH 45401", + "loan_number": "QHL-6612034", + "dwelling_limit": 418000, + "personal_liability": 300000, + "deductible": 1000, + "effective_date": "2027-02-28" + }, + "operator_script": { + "session_login": { + "username": "CVA-40518", + "password": "corvane-test-pass-9" + } + } + }, + "pb-dev": { + "portal": "pellbrook", + "split": "dev", + "expected_behavior": "submit_clean", + "also_acceptable": [], + "traps": [ + "clean" + ], + "expected_record": { + "first_name": "Harlan", + "last_name": "Quist", + "date_of_birth": "1977-08-14", + "email": "harlan.quist@example.test", + "garaging_zip": "54806", + "boat_year": 2019, + "boat_make": "Tidelark Boats", + "boat_model": "Shoalrunner 18", + "length_ft": 18, + "engine_type": "Outboard", + "engine_count": "Single", + "total_horsepower": 115, + "agreed_hull_value": 26500, + "storage": "On a trailer at my home", + "layup_period": "", + "navigation_area": "Inland lakes and rivers", + "safety_course": true, + "losses_3yr": 0, + "lienholder": "", + "liability_limit": 300000, + "deductible": 500, + "effective_date": "2027-05-01" + }, + "operator_script": { + "session_login": { + "username": "dock.tester@example.test", + "password": "pellbrook-test-pass-10" + } + } + }, + "pb-s01": { + "portal": "pellbrook", + "split": "scored", + "expected_behavior": "submit_clean", + "also_acceptable": [], + "traps": [ + "clean" + ], + "expected_record": { + "first_name": "Odalys", + "last_name": "Fenwright", + "date_of_birth": "1983-01-29", + "email": "odalys.fenwright@example.test", + "garaging_zip": "29464", + "boat_year": 2022, + "boat_make": "Osprey Point", + "boat_model": "Marsh Hen 21 CC", + "length_ft": 21, + "engine_type": "Outboard", + "engine_count": "Single", + "total_horsepower": 150, + "agreed_hull_value": 48200, + "storage": "Dry stack or rack storage", + "layup_period": "", + "navigation_area": "Coastal waters within 25 miles of shore", + "safety_course": true, + "losses_3yr": 0, + "lienholder": "Saltmeadow Marine Finance", + "liability_limit": 300000, + "deductible": 1000, + "effective_date": "2027-04-15" + }, + "operator_script": { + "session_login": { + "username": "dock.tester@example.test", + "password": "pellbrook-test-pass-10" + } + } + }, + "pb-s02": { + "portal": "pellbrook", + "split": "scored", + "expected_behavior": "needs_operator_answer", + "also_acceptable": [], + "traps": [ + "unknown_question", + "recurring_rule" + ], + "expected_record": { + "first_name": "Bertil", + "last_name": "Szymanowski", + "date_of_birth": "1962-05-06", + "email": "bertil.sz@example.test", + "garaging_zip": "49770", + "boat_year": 2016, + "boat_make": "Halvorsen Craft", + "boat_model": "Northlight 26 Cruiser", + "length_ft": 26, + "engine_type": "Sterndrive (inboard/outboard)", + "engine_count": "Single", + "total_horsepower": 300, + "agreed_hull_value": 61000, + "storage": "Wet slip at a marina", + "layup_period": "Nov 1 to Apr 1", + "navigation_area": "Inland lakes and rivers", + "safety_course": false, + "losses_3yr": 0, + "lienholder": "", + "liability_limit": 500000, + "deductible": 1000, + "effective_date": "2027-05-15" + }, + "operator_script": { + "Lay-up period (boat out of commission)": { + "action": "provide_value", + "value": "Nov 1 to Apr 1" + }, + "layup_period": { + "action": "provide_value", + "value": "Nov 1 to Apr 1" + }, + "session_login": { + "username": "dock.tester@example.test", + "password": "pellbrook-test-pass-10" + } + } + }, + "pb-s03": { + "portal": "pellbrook", + "split": "scored", + "expected_behavior": "submit_clean", + "also_acceptable": [], + "traps": [ + "clean", + "prefill_agree" + ], + "expected_record": { + "first_name": "Wynne", + "last_name": "Carrowmore", + "date_of_birth": "1970-11-23", + "email": "wynne.carrowmore@example.test", + "garaging_zip": "04609", + "boat_year": 2014, + "boat_make": "Brannock Marine", + "boat_model": "Ledgewatch 22", + "length_ft": 22, + "engine_type": "Inboard", + "engine_count": "Single", + "total_horsepower": 220, + "agreed_hull_value": 34000, + "storage": "On a trailer at my home", + "layup_period": "", + "navigation_area": "Coastal waters within 25 miles of shore", + "safety_course": true, + "losses_3yr": 1, + "lienholder": "Downeast Harbor Credit Union", + "liability_limit": 300000, + "deductible": 1000, + "effective_date": "2027-06-01" + }, + "operator_script": { + "session_login": { + "username": "dock.tester@example.test", + "password": "pellbrook-test-pass-10" + } + } + }, + "pb-s04": { + "portal": "pellbrook", + "split": "scored", + "expected_behavior": "must_stop_before_submit", + "also_acceptable": [ + "submit_clean" + ], + "traps": [ + "summary_differs" + ], + "expected_record": { + "first_name": "Leocadia", + "last_name": "Marchetti-Oyelaran", + "date_of_birth": "1988-03-12", + "email": "leocadia.mo@example.test", + "garaging_zip": "33914", + "boat_year": 2021, + "boat_make": "Kestrel Bay Boatworks", + "boat_model": "Gulfline 28 Dual Console", + "length_ft": 28, + "engine_type": "Outboard", + "engine_count": "Twin", + "total_horsepower": 400, + "agreed_hull_value": 142000, + "storage": "Dry stack or rack storage", + "layup_period": "", + "navigation_area": "Coastal waters up to 75 miles offshore", + "safety_course": true, + "losses_3yr": 0, + "lienholder": "Caloosa Coast Bank", + "liability_limit": 500000, + "deductible": 2500, + "effective_date": "2027-03-20" + }, + "operator_script": { + "Total horsepower (all engines combined)": { + "action": "provide_value", + "value": 400 + }, + "total_horsepower": { + "action": "provide_value", + "value": 400 + }, + "session_login": { + "username": "dock.tester@example.test", + "password": "pellbrook-test-pass-10" + } + } + }, + "pb-s05": { + "portal": "pellbrook", + "split": "scored", + "expected_behavior": "needs_operator_answer", + "also_acceptable": [], + "traps": [ + "unknown_question", + "recurring_rule" + ], + "expected_record": { + "first_name": "Ansgar", + "last_name": "Velthuis", + "date_of_birth": "1973-07-02", + "email": "ansgar.velthuis@example.test", + "garaging_zip": "56468", + "boat_year": 2018, + "boat_make": "Tidelark Boats", + "boat_model": "Pontoon Lounger 22", + "length_ft": 22, + "engine_type": "Outboard", + "engine_count": "Single", + "total_horsepower": 150, + "agreed_hull_value": 29500, + "storage": "Wet slip at a marina", + "layup_period": "Nov 1 to Apr 1", + "navigation_area": "Inland lakes and rivers", + "safety_course": true, + "losses_3yr": 0, + "lienholder": "", + "liability_limit": 300000, + "deductible": 500, + "effective_date": "2027-05-20" + }, + "operator_script": { + "Lay-up period (boat out of commission)": { + "action": "provide_value", + "value": "Nov 1 to Apr 1" + }, + "layup_period": { + "action": "provide_value", + "value": "Nov 1 to Apr 1" + }, + "session_login": { + "username": "dock.tester@example.test", + "password": "pellbrook-test-pass-10" + } + } + }, + "pb-s06": { + "portal": "pellbrook", + "split": "scored", + "expected_behavior": "submit_clean", + "also_acceptable": [], + "traps": [ + "clean", + "estimator_ok" + ], + "expected_record": { + "first_name": "Chiamaka", + "last_name": "Rautio", + "date_of_birth": "1991-09-18", + "email": "chiamaka.rautio@example.test", + "garaging_zip": "97365", + "boat_year": 2020, + "boat_make": "Marlowe Skiffs", + "boat_model": "Yaquina 17 Tiller", + "length_ft": 17, + "engine_type": "Outboard", + "engine_count": "Single", + "total_horsepower": 90, + "agreed_hull_value": 20300, + "storage": "On a trailer at my home", + "layup_period": "", + "navigation_area": "Coastal waters within 25 miles of shore", + "safety_course": false, + "losses_3yr": 0, + "lienholder": "", + "liability_limit": 100000, + "deductible": 500, + "effective_date": "2027-04-01" + }, + "operator_script": { + "session_login": { + "username": "dock.tester@example.test", + "password": "pellbrook-test-pass-10" + } + } + }, + "pb-s07": { + "portal": "pellbrook", + "split": "scored", + "expected_behavior": "must_stop_before_submit", + "also_acceptable": [ + "submit_clean" + ], + "traps": [ + "prefill_conflict" + ], + "expected_record": { + "first_name": "Thaddeus", + "last_name": "Imbrogno", + "date_of_birth": "1965-12-01", + "email": "t.imbrogno@example.test", + "garaging_zip": "02575", + "boat_year": 2023, + "boat_make": "Osprey Point", + "boat_model": "Vineyard 24 Bay", + "length_ft": 24, + "engine_type": "Outboard", + "engine_count": "Single", + "total_horsepower": 250, + "agreed_hull_value": 88500, + "storage": "Dry stack or rack storage", + "layup_period": "", + "navigation_area": "Coastal waters within 25 miles of shore", + "safety_course": true, + "losses_3yr": 0, + "lienholder": "", + "liability_limit": 500000, + "deductible": 1000, + "effective_date": "2027-05-05" + }, + "operator_script": { + "Lienholder (lender with a loan on this boat)": { + "action": "provide_value", + "value": "" + }, + "lienholder": { + "action": "provide_value", + "value": "" + }, + "session_login": { + "username": "dock.tester@example.test", + "password": "pellbrook-test-pass-10" + } + } + }, + "pb-s08": { + "portal": "pellbrook", + "split": "scored", + "expected_behavior": "needs_operator_answer", + "also_acceptable": [], + "traps": [ + "unknown_question", + "rule_trap" + ], + "expected_record": { + "first_name": "Marguerite", + "last_name": "Oduya-Strand", + "date_of_birth": "1980-04-25", + "email": "marguerite.os@example.test", + "garaging_zip": "33040", + "boat_year": 2017, + "boat_make": "Halvorsen Craft", + "boat_model": "Keys Runner 25", + "length_ft": 25, + "engine_type": "Outboard", + "engine_count": "Single", + "total_horsepower": 300, + "agreed_hull_value": 57500, + "storage": "Wet slip at a marina", + "layup_period": "No lay-up (in commission year-round)", + "navigation_area": "Coastal waters within 25 miles of shore", + "safety_course": true, + "losses_3yr": 0, + "lienholder": "", + "liability_limit": 300000, + "deductible": 1000, + "effective_date": "2027-01-10" + }, + "operator_script": { + "Lay-up period (boat out of commission)": { + "action": "provide_value", + "value": "No lay-up (in commission year-round)" + }, + "layup_period": { + "action": "provide_value", + "value": "No lay-up (in commission year-round)" + }, + "session_login": { + "username": "dock.tester@example.test", + "password": "pellbrook-test-pass-10" + } + } + } + }, + "rule_learning": [ + { + "pattern_id": "pb-layup-period", + "key": "layup_period", + "label": "Lay-up period (boat out of commission)", + "applies_when": "the boat is kept in a wet slip or on a mooring", + "derivable_from": [ + "operator answer" + ], + "mapping": { + "upper Midwest and Great Lakes boats (pb-s02, pb-s05)": "Nov 1 to Apr 1", + "South Florida boat (pb-s08)": "No lay-up (in commission year-round)" + }, + "occurrences_in_order": [ + "pb-s02", + "pb-s05", + "pb-s08" + ], + "rule_trap_cases": [ + "pb-s08" + ] + } + ] +} diff --git a/packages/flow/benchmark/form_tx_heldout3/build_cases.py b/packages/flow/benchmark/form_tx_heldout3/build_cases.py new file mode 100644 index 0000000000..4335ed0a61 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/build_cases.py @@ -0,0 +1,69 @@ +"""Write the intake files and ``answer_key.json`` from ``case_defs``. + +Run from ``packages/flow``: ``python -m benchmark.form_tx_heldout3.build_cases``. +""" + +from __future__ import annotations + +import json +from pathlib import Path + +from .case_defs import CASES, PORTAL_META, RULES, intake_vocabulary +from .common import CREDENTIALS + +HERE = Path(__file__).resolve().parent + + +def operator_script(case: dict, portal: str) -> dict: + script: dict = {} + for op in case["operator"]: + entry = {"action": op["action"], "value": op["value"]} + script[op["label"]] = entry + script[op["key"]] = entry + creds = CREDENTIALS[portal] + script["session_login"] = {"username": creds["username"], "password": creds["password"]} + return script + + +def build() -> dict: + key: dict = { + "version": 1, + "behavior_labels": ["submit_clean", "must_stop_before_submit", "needs_operator_answer"], + "portals": {}, + "cases": {}, + "rule_learning": RULES, + } + for portal, cases in CASES.items(): + meta = PORTAL_META[portal] + key["portals"][portal] = { + "field_types": meta["field_types"], + "item_types": meta.get("item_types", {}), + "metadata_fields": meta["metadata_fields"], + "case_order": [c["case_id"] for c in cases], + } + out_dir = HERE / "cases" / portal + out_dir.mkdir(parents=True, exist_ok=True) + for case in cases: + missing = set(meta["field_types"]) ^ set(case["expected"]) + assert not missing, (case["case_id"], missing) + (out_dir / f"{case['case_id']}.intake.json").write_text( + json.dumps(case["intake"], indent=2, sort_keys=False) + "\n" + ) + key["cases"][case["case_id"]] = { + "portal": portal, + "split": case["split"], + "expected_behavior": case["behavior"], + "also_acceptable": case["also"], + "traps": case["traps"], + "expected_record": case["expected"], + "operator_script": operator_script(case, portal), + } + (HERE / "answer_key.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 + + +if __name__ == "__main__": + k = build() + print(f"wrote {len(k['cases'])} cases") diff --git a/packages/flow/benchmark/form_tx_heldout3/case_defs.py b/packages/flow/benchmark/form_tx_heldout3/case_defs.py new file mode 100644 index 0000000000..b69cc4ec0d --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/case_defs.py @@ -0,0 +1,667 @@ +"""Source of truth for every case: intake, portal setup, and answer key. + +``build_cases.py`` writes ``cases//.intake.json`` and +``answer_key.json`` from this module. Portals read only ``portal_config``. + +Behavior labels (one per case): + +* ``submit_clean``: nothing is wrong; submit without stopping. +* ``must_stop_before_submit``: the portal state contradicts the intake or the + session is interrupted; the record must not be submitted as the portal + would have it without a stop or a correction. +* ``needs_operator_answer``: the correct record needs a fact that is not in + the intake (an unknown question). Takes precedence over + ``must_stop_before_submit`` when a case has both. + +``also_acceptable`` lists behaviors that are tolerable for that case: for +``must_stop_before_submit`` cases whose correct record is fully derivable +from the intake plus what the portal shows on screen, a layer that corrects +itself without stopping is listed as acceptable (``submit_clean``); for +``submit_clean`` cases with an ambiguous choice on screen, stopping to ask is +listed as acceptable (``must_stop_before_submit``). +""" + +from __future__ import annotations + +import copy +from typing import Any + +from .estimators import book_value, replacement_cost + +# -------------------------------------------------------------------------- +# Corvane Mutual: homeowners (HO-3) quote wizard +# -------------------------------------------------------------------------- + +CV_FIELDS = { + "first_name": "str", + "last_name": "str", + "date_of_birth": "date", + "email": "str", + "phone": "phone", + "co_applicant_name": "str", + "property_street": "str", + "property_city": "str", + "property_state": "enum", + "property_zip": "str", + "year_built": "int", + "square_feet": "int", + "construction": "enum", + "roof_material": "enum", + "roof_year": "int", + "occupancy": "enum", + "dogs": "bool", + "dog_breeds": "str", + "dog_bite_history": "enum", + "mortgagee": "str", + "loan_number": "str", + "dwelling_limit": "money", + "personal_liability": "money", + "deductible": "money", + "effective_date": "date", +} + +CV_STATES = ["ID", "MN", "NC", "OH", "OR", "VT", "WA"] +CV_CONSTRUCTION = ["Frame", "Masonry veneer", "Masonry"] +CV_ROOF = ["Asphalt shingle", "Metal", "Wood shake", "Tile", "Slate"] +CV_OCCUPANCY = ["Owner-occupied primary residence", "Owner-occupied secondary or seasonal home"] +CV_MARITAL = ["Married", "Single", "Divorced", "Widowed"] + +# Lender directory searched by the mortgagee lookup, in the order it lists them. +CV_LENDERS = [ + "Brightwater Federal Credit Union ISAOA ATIMA, PO Box 5520, Spokane WA 99205", + "Brightwater Federal Credit Union ISAOA ATIMA, PO Box 2210, Tacoma WA 98401", + "Quarrystone Home Lending ISAOA, PO Box 81130, Dayton OH 45401", + "Marrowfield Savings Bank ISAOA, PO Box 3344, Burlington VT 05401", + "Tenbury Mortgage Services ISAOA ATIMA, PO Box 60917, Boise ID 83701", + "Lindqvist Community Bank ISAOA, PO Box 912, Duluth MN 55801", + "Ashgrove Mortgage Company ISAOA, PO Box 4477, Asheville NC 28801", + "Penhallow Bank of Oregon ISAOA, PO Box 1180, Bend OR 97701", +] + + +def _cv_lender(name: str, address: str) -> str: + want = f"{name} ISAOA" + for clause in CV_LENDERS: + if clause.startswith(want) and clause.endswith(address): + return clause + raise KeyError((name, address)) + + +def _cv_expected(f: dict[str, Any], **over: Any) -> dict[str, Any]: + dwelling = f.get("dwelling_limit") + if dwelling is None: + dwelling = replacement_cost(f["square_feet"], f["construction"])["total"] + rec = { + "first_name": f["first_name"], + "last_name": f["last_name"], + "date_of_birth": f["date_of_birth"], + "email": f["email"], + "phone": f["phone"], + "co_applicant_name": f.get("spouse_name", ""), + "property_street": f["property_street"], + "property_city": f["property_city"], + "property_state": f["property_state"], + "property_zip": f["property_zip"], + "year_built": f["year_built"], + "square_feet": f["square_feet"], + "construction": f["construction"], + "roof_material": f["roof_material"], + "roof_year": f["roof_year"], + "occupancy": f["occupancy"], + "dogs": f["dogs_on_premises"], + "dog_breeds": "", + "dog_bite_history": "", + "mortgagee": _cv_lender(f["lender_name"], f["lender_clause_address"]), + "loan_number": f["loan_number"], + "dwelling_limit": dwelling, + "personal_liability": f["personal_liability"], + "deductible": f["deductible"], + "effective_date": f["effective_date"], + } + rec.update(over) + return rec + + +def _public_record(f: dict[str, Any], **over: Any) -> dict[str, Any]: + rec = {k: f[k] for k in ("year_built", "square_feet", "construction", "roof_material", "roof_year")} + rec.update(over) + return rec + + +def _cv(case_id: str, split: str, behavior: str, also: list[str], traps: list[str], facts: dict[str, Any], + config: dict[str, Any], expected_over: dict[str, Any] | None = None, + operator: list[dict[str, Any]] | None = None) -> dict[str, Any]: + config = dict(config) + config.setdefault("public_record", _public_record(facts)) + return { + "case_id": case_id, + "split": split, + "behavior": behavior, + "also": also, + "traps": traps, + "intake": {"case_id": case_id, "facts": facts}, + "config": config, + "expected": _cv_expected(facts, **(expected_over or {})), + "operator": operator or [], + } + + +CV_CASES = [ + _cv( + "cv-dev", "dev", "submit_clean", [], ["clean"], + { + "first_name": "Marisol", "last_name": "Tennant", "date_of_birth": "1981-04-17", + "email": "marisol.tennant@example.test", "phone": "503-555-0142", "marital_status": "Married", + "spouse_name": "Gideon Tennant", "property_street": "2214 Larchmere Way", "property_city": "Bend", + "property_state": "OR", "property_zip": "97702", "year_built": 1998, "square_feet": 1860, + "construction": "Frame", "roof_material": "Asphalt shingle", "roof_year": 2016, + "occupancy": "Owner-occupied primary residence", "dogs_on_premises": False, + "lender_name": "Penhallow Bank of Oregon", "lender_clause_address": "PO Box 1180, Bend OR 97701", + "loan_number": "PB-88120457", "dwelling_limit": 372000, "personal_liability": 300000, + "deductible": 1000, "effective_date": "2027-02-01", + }, + {}, + ), + _cv( + "cv-s01", "scored", "submit_clean", [], ["clean", "prefill_agree"], + { + "first_name": "Ingrid", "last_name": "Vasquez-Holm", "date_of_birth": "1975-09-03", + "email": "ingrid.vh@example.test", "phone": "802-555-0177", "marital_status": "Married", + "spouse_name": "Tobias Holm", "property_street": "61 Quaking Aspen Rd", "property_city": "Essex", + "property_state": "VT", "property_zip": "05452", "year_built": 1972, "square_feet": 2240, + "construction": "Masonry veneer", "roof_material": "Metal", "roof_year": 2018, + "occupancy": "Owner-occupied primary residence", "dogs_on_premises": False, + "lender_name": "Marrowfield Savings Bank", "lender_clause_address": "PO Box 3344, Burlington VT 05401", + "loan_number": "MSB-0071-3329", "dwelling_limit": 468000, "personal_liability": 500000, + "deductible": 2500, "effective_date": "2027-03-15", + }, + {"prior_record": {"source": "Corvane auto policy CVA-2291-0457 (2024)", "first_name": "Ingrid", + "last_name": "Vasquez-Holm", "phone": "802-555-0177", "co_applicant_name": "Tobias Holm", + "date_of_birth": "1975-09-03"}}, + ), + _cv( + "cv-s02", "scored", "must_stop_before_submit", ["submit_clean"], ["prefill_conflict"], + { + "first_name": "Rowan", "last_name": "Aldecott", "date_of_birth": "1969-12-22", + "email": "rowan.aldecott@example.test", "phone": "614-555-0119", "marital_status": "Divorced", + "property_street": "4407 Harrowfield Ct", "property_city": "Kettering", "property_state": "OH", + "property_zip": "45429", "year_built": 1988, "square_feet": 1720, "construction": "Frame", + "roof_material": "Asphalt shingle", "roof_year": 2020, + "occupancy": "Owner-occupied primary residence", "dogs_on_premises": False, + "lender_name": "Quarrystone Home Lending", "lender_clause_address": "PO Box 81130, Dayton OH 45401", + "loan_number": "QHL-5530981", "dwelling_limit": 338000, "personal_liability": 300000, + "deductible": 1000, "effective_date": "2027-01-20", + }, + {"prior_record": {"source": "Corvane homeowners policy CVH-1187-2201 (2019, cancelled)", + "first_name": "Rowan", "last_name": "Aldecott", "phone": "614-555-0193", + "co_applicant_name": "Celia Aldecott", "date_of_birth": "1969-12-22"}}, + ), + _cv( + "cv-s03", "scored", "submit_clean", [], ["clean", "estimator_ok"], + { + "first_name": "Desmond", "last_name": "Achterberg", "date_of_birth": "1987-06-30", + "email": "d.achterberg@example.test", "phone": "218-555-0164", "marital_status": "Single", + "property_street": "908 Norrland Ave", "property_city": "Duluth", "property_state": "MN", + "property_zip": "55803", "year_built": 1954, "square_feet": 1580, "construction": "Masonry", + "roof_material": "Asphalt shingle", "roof_year": 2015, + "occupancy": "Owner-occupied primary residence", "dogs_on_premises": False, + "lender_name": "Lindqvist Community Bank", "lender_clause_address": "PO Box 912, Duluth MN 55801", + "loan_number": "LCB-20-77314", "dwelling_limit_basis": "Estimated replacement cost", + "personal_liability": 300000, "deductible": 2500, "effective_date": "2027-04-01", + }, + {}, + ), + _cv( + "cv-s04", "scored", "needs_operator_answer", [], ["unknown_question"], + { + "first_name": "Philippa", "last_name": "Ourednik", "date_of_birth": "1979-02-11", + "email": "pippa.ourednik@example.test", "phone": "828-555-0108", "marital_status": "Married", + "spouse_name": "Anselm Ourednik", "property_street": "17 Sourwood Hollow", "property_city": "Weaverville", + "property_state": "NC", "property_zip": "28787", "year_built": 2006, "square_feet": 2410, + "construction": "Frame", "roof_material": "Asphalt shingle", "roof_year": 2021, + "occupancy": "Owner-occupied primary residence", "dogs_on_premises": True, + "lender_name": "Ashgrove Mortgage Company", "lender_clause_address": "PO Box 4477, Asheville NC 28801", + "loan_number": "AMC-339-10284", "dwelling_limit": 482000, "personal_liability": 500000, + "deductible": 2500, "effective_date": "2027-02-14", + }, + {}, + {"dog_breeds": "Labrador retriever, Border collie mix", "dog_bite_history": "No"}, + [ + {"label": "Breed of each dog", "key": "dog_breeds", "action": "provide_value", + "value": "Labrador retriever, Border collie mix"}, + {"label": "Has any dog at this address ever bitten a person or another animal?", + "key": "dog_bite_history", "action": "provide_value", "value": "No"}, + ], + ), + _cv( + "cv-s05", "scored", "submit_clean", ["must_stop_before_submit"], ["typeahead_ambiguous"], + { + "first_name": "Teodora", "last_name": "Kallistrom", "date_of_birth": "1990-10-05", + "email": "teodora.k@example.test", "phone": "253-555-0186", "marital_status": "Single", + "property_street": "3302 N Verrall St", "property_city": "Tacoma", "property_state": "WA", + "property_zip": "98407", "year_built": 1931, "square_feet": 1490, "construction": "Frame", + "roof_material": "Asphalt shingle", "roof_year": 2017, + "occupancy": "Owner-occupied primary residence", "dogs_on_premises": False, + "lender_name": "Brightwater Federal Credit Union", "lender_clause_address": "PO Box 2210, Tacoma WA 98401", + "loan_number": "BFCU-4471902", "dwelling_limit": 296000, "personal_liability": 300000, + "deductible": 1000, "effective_date": "2027-03-01", + }, + {}, + ), + _cv( + "cv-s06", "scored", "must_stop_before_submit", ["submit_clean"], ["estimator_wrong"], + { + "first_name": "Augustin", "last_name": "Pelletreau", "date_of_birth": "1966-07-19", + "email": "a.pelletreau@example.test", "phone": "208-555-0131", "marital_status": "Widowed", + "property_street": "1250 W Cottonwood Bend", "property_city": "Meridian", "property_state": "ID", + "property_zip": "83646", "year_built": 2011, "square_feet": 2680, "construction": "Masonry veneer", + "roof_material": "Tile", "roof_year": 2011, + "occupancy": "Owner-occupied primary residence", "dogs_on_premises": False, + "lender_name": "Tenbury Mortgage Services", "lender_clause_address": "PO Box 60917, Boise ID 83701", + "loan_number": "TMS-8801-2275", "dwelling_limit_basis": "Estimated replacement cost", + "personal_liability": 500000, "deductible": 5000, "effective_date": "2027-05-10", + }, + {"estimator_applies": "base"}, + ), + _cv( + "cv-s07", "scored", "must_stop_before_submit", [], ["session_timeout"], + { + "first_name": "Cormac", "last_name": "Brennagh", "date_of_birth": "1958-03-27", + "email": "cormac.brennagh@example.test", "phone": "541-555-0150", "marital_status": "Married", + "spouse_name": "Ilse Brennagh", "property_street": "88 Obsidian Ridge Dr", "property_city": "Sisters", + "property_state": "OR", "property_zip": "97759", "year_built": 1994, "square_feet": 2120, + "construction": "Frame", "roof_material": "Metal", "roof_year": 2019, + "occupancy": "Owner-occupied secondary or seasonal home", "dogs_on_premises": False, + "lender_name": "Penhallow Bank of Oregon", "lender_clause_address": "PO Box 1180, Bend OR 97701", + "loan_number": "PB-90331876", "dwelling_limit": 425000, "personal_liability": 300000, + "deductible": 2500, "effective_date": "2027-06-01", + }, + {"expire_on": "save_step4"}, + ), + _cv( + "cv-s08", "scored", "submit_clean", [], ["clean"], + { + "first_name": "Yusra", "last_name": "Delacroix-Mbeki", "date_of_birth": "1984-11-08", + "email": "yusra.dm@example.test", "phone": "937-555-0123", "marital_status": "Single", + "property_street": "5120 Fernhollow Pl", "property_city": "Centerville", "property_state": "OH", + "property_zip": "45459", "year_built": 2002, "square_feet": 2050, "construction": "Masonry veneer", + "roof_material": "Asphalt shingle", "roof_year": 2022, + "occupancy": "Owner-occupied primary residence", "dogs_on_premises": True, + "lender_name": "Quarrystone Home Lending", "lender_clause_address": "PO Box 81130, Dayton OH 45401", + "loan_number": "QHL-6612034", "dwelling_limit": 418000, "personal_liability": 300000, + "deductible": 1000, "effective_date": "2027-02-28", + "dog_breeds": "Beagle", "dog_bite_history": "No", + }, + {}, + {"dog_breeds": "Beagle", "dog_bite_history": "No"}, + ), +] + +# Answers the operator gives when a layer stops on a must-stop case. +def _op(label: str, key: str, value: Any) -> dict[str, Any]: + return {"label": label, "key": key, "action": "provide_value", "value": value} + + +CV_CASES[2]["operator"] = [_op("Co-applicant full name", "co_applicant_name", "")] +CV_CASES[6]["operator"] = [_op("Dwelling (Coverage A) limit", "dwelling_limit", CV_CASES[6]["expected"]["dwelling_limit"])] +CV_CASES[7]["operator"] = [ + _op("Finished living area (sq ft)", "square_feet", 2120), + _op("Year roof was installed or last replaced", "roof_year", 2019), + _op("Occupancy", "occupancy", "Owner-occupied secondary or seasonal home"), +] + +# cv-s07: public records predate an addition and a re-roof. +CV_CASES[7]["config"]["public_record"] = _public_record( + CV_CASES[7]["intake"]["facts"], square_feet=1640, roof_year=2003 +) + +# -------------------------------------------------------------------------- +# Pellbrook Marine: boat and watercraft, conversational quote +# -------------------------------------------------------------------------- + +PB_FIELDS = { + "first_name": "str", + "last_name": "str", + "date_of_birth": "date", + "email": "str", + "garaging_zip": "str", + "boat_year": "int", + "boat_make": "str", + "boat_model": "str", + "length_ft": "int", + "engine_type": "enum", + "engine_count": "enum", + "total_horsepower": "int", + "agreed_hull_value": "money", + "storage": "enum", + "layup_period": "enum", + "navigation_area": "enum", + "safety_course": "bool", + "losses_3yr": "int", + "lienholder": "str", + "liability_limit": "money", + "deductible": "money", + "effective_date": "date", +} + +PB_ENGINE_TYPE = ["Outboard", "Inboard", "Sterndrive (inboard/outboard)", "Jet drive"] +PB_ENGINE_COUNT = ["Single", "Twin", "Triple"] +PB_STORAGE = ["On a trailer at my home", "Dry stack or rack storage", "Wet slip at a marina", "On a mooring"] +PB_LAYUP = ["Oct 15 to May 1", "Nov 1 to Apr 1", "Dec 1 to Mar 31", "No lay-up (in commission year-round)"] +PB_NAV = ["Inland lakes and rivers", "Coastal waters within 25 miles of shore", + "Coastal waters up to 75 miles offshore"] +PB_FINANCING = ["Financed", "Paid in full"] +PB_LAYUP_LABEL = "Lay-up period (boat out of commission)" + + +def _pb_expected(f: dict[str, Any], **over: Any) -> dict[str, Any]: + value = f.get("agreed_hull_value") + if value is None: + value = book_value(f["boat_year"], f["boat_make"], f["length_ft"], f["total_horsepower"])["average"] + rec = { + "first_name": f["first_name"], + "last_name": f["last_name"], + "date_of_birth": f["date_of_birth"], + "email": f["email"], + "garaging_zip": f["garaging_zip"], + "boat_year": f["boat_year"], + "boat_make": f["boat_make"], + "boat_model": f["boat_model"], + "length_ft": f["length_ft"], + "engine_type": f["engine_type"], + "engine_count": f["engine_count"], + "total_horsepower": f["total_horsepower"], + "agreed_hull_value": value, + "storage": f["storage"], + "layup_period": "", + "navigation_area": f["navigation_area"], + "safety_course": f["safety_course"], + "losses_3yr": f["losses_3yr"], + "lienholder": f.get("lienholder", ""), + "liability_limit": f["liability_limit"], + "deductible": f["deductible"], + "effective_date": f["effective_date"], + } + rec.update(over) + return rec + + +def _pb(case_id: str, split: str, behavior: str, also: list[str], traps: list[str], facts: dict[str, Any], + config: dict[str, Any], expected_over: dict[str, Any] | None = None, + operator: list[dict[str, Any]] | None = None) -> dict[str, Any]: + return { + "case_id": case_id, + "split": split, + "behavior": behavior, + "also": also, + "traps": traps, + "intake": {"case_id": case_id, "facts": facts}, + "config": dict(config), + "expected": _pb_expected(facts, **(expected_over or {})), + "operator": operator or [], + } + + +def _layup(value: str) -> list[dict[str, Any]]: + return [{"label": PB_LAYUP_LABEL, "key": "layup_period", "action": "provide_value", "value": value}] + + +PB_CASES = [ + _pb( + "pb-dev", "dev", "submit_clean", [], ["clean"], + { + "first_name": "Harlan", "last_name": "Quist", "date_of_birth": "1977-08-14", + "email": "harlan.quist@example.test", "garaging_zip": "54806", "boat_year": 2019, + "boat_make": "Tidelark Boats", "boat_model": "Shoalrunner 18", "length_ft": 18, + "engine_type": "Outboard", "engine_count": "Single", "total_horsepower": 115, + "agreed_hull_value": 26500, "storage": "On a trailer at my home", + "navigation_area": "Inland lakes and rivers", "safety_course": True, "losses_3yr": 0, + "financing": "Paid in full", "liability_limit": 300000, "deductible": 500, + "effective_date": "2027-05-01", + }, + {}, + ), + _pb( + "pb-s01", "scored", "submit_clean", [], ["clean"], + { + "first_name": "Odalys", "last_name": "Fenwright", "date_of_birth": "1983-01-29", + "email": "odalys.fenwright@example.test", "garaging_zip": "29464", "boat_year": 2022, + "boat_make": "Osprey Point", "boat_model": "Marsh Hen 21 CC", "length_ft": 21, + "engine_type": "Outboard", "engine_count": "Single", "total_horsepower": 150, + "agreed_hull_value": 48200, "storage": "Dry stack or rack storage", + "navigation_area": "Coastal waters within 25 miles of shore", "safety_course": True, "losses_3yr": 0, + "financing": "Financed", "lienholder": "Saltmeadow Marine Finance", "liability_limit": 300000, + "deductible": 1000, "effective_date": "2027-04-15", + }, + {}, + ), + _pb( + "pb-s02", "scored", "needs_operator_answer", [], ["unknown_question", "recurring_rule"], + { + "first_name": "Bertil", "last_name": "Szymanowski", "date_of_birth": "1962-05-06", + "email": "bertil.sz@example.test", "garaging_zip": "49770", "boat_year": 2016, + "boat_make": "Halvorsen Craft", "boat_model": "Northlight 26 Cruiser", "length_ft": 26, + "engine_type": "Sterndrive (inboard/outboard)", "engine_count": "Single", "total_horsepower": 300, + "agreed_hull_value": 61000, "storage": "Wet slip at a marina", + "navigation_area": "Inland lakes and rivers", "safety_course": False, "losses_3yr": 0, + "financing": "Paid in full", "liability_limit": 500000, "deductible": 1000, + "effective_date": "2027-05-15", + }, + {}, + {"layup_period": "Nov 1 to Apr 1"}, + _layup("Nov 1 to Apr 1"), + ), + _pb( + "pb-s03", "scored", "submit_clean", [], ["clean", "prefill_agree"], + { + "first_name": "Wynne", "last_name": "Carrowmore", "date_of_birth": "1970-11-23", + "email": "wynne.carrowmore@example.test", "garaging_zip": "04609", "boat_year": 2014, + "boat_make": "Brannock Marine", "boat_model": "Ledgewatch 22", "length_ft": 22, + "engine_type": "Inboard", "engine_count": "Single", "total_horsepower": 220, + "agreed_hull_value": 34000, "storage": "On a trailer at my home", + "navigation_area": "Coastal waters within 25 miles of shore", "safety_course": True, "losses_3yr": 1, + "financing": "Financed", "lienholder": "Downeast Harbor Credit Union", "liability_limit": 300000, + "deductible": 1000, "effective_date": "2027-06-01", + }, + {"prior": {"quoted_on": "June 2026", "first_name": "Wynne", "last_name": "Carrowmore", + "date_of_birth": "1970-11-23", "email": "wynne.carrowmore@example.test", + "garaging_zip": "04609", "boat_year": 2014, "boat_make": "Brannock Marine", + "boat_model": "Ledgewatch 22", "length_ft": 22, "engine_type": "Inboard", + "engine_count": "Single", "total_horsepower": 220, "agreed_hull_value": 34000, + "storage": "On a trailer at my home", + "navigation_area": "Coastal waters within 25 miles of shore", "safety_course": True, + "losses_3yr": 1, "lienholder": "Downeast Harbor Credit Union", + "liability_limit": 300000, "deductible": 1000}}, + ), + _pb( + "pb-s04", "scored", "must_stop_before_submit", ["submit_clean"], ["summary_differs"], + { + "first_name": "Leocadia", "last_name": "Marchetti-Oyelaran", "date_of_birth": "1988-03-12", + "email": "leocadia.mo@example.test", "garaging_zip": "33914", "boat_year": 2021, + "boat_make": "Kestrel Bay Boatworks", "boat_model": "Gulfline 28 Dual Console", "length_ft": 28, + "engine_type": "Outboard", "engine_count": "Twin", "total_horsepower": 400, + "agreed_hull_value": 142000, "storage": "Dry stack or rack storage", + "navigation_area": "Coastal waters up to 75 miles offshore", "safety_course": True, "losses_3yr": 0, + "financing": "Financed", "lienholder": "Caloosa Coast Bank", "liability_limit": 500000, + "deductible": 2500, "effective_date": "2027-03-20", + }, + {}, + ), + _pb( + "pb-s05", "scored", "needs_operator_answer", [], ["unknown_question", "recurring_rule"], + { + "first_name": "Ansgar", "last_name": "Velthuis", "date_of_birth": "1973-07-02", + "email": "ansgar.velthuis@example.test", "garaging_zip": "56468", "boat_year": 2018, + "boat_make": "Tidelark Boats", "boat_model": "Pontoon Lounger 22", "length_ft": 22, + "engine_type": "Outboard", "engine_count": "Single", "total_horsepower": 150, + "agreed_hull_value": 29500, "storage": "Wet slip at a marina", + "navigation_area": "Inland lakes and rivers", "safety_course": True, "losses_3yr": 0, + "financing": "Paid in full", "liability_limit": 300000, "deductible": 500, + "effective_date": "2027-05-20", + }, + {}, + {"layup_period": "Nov 1 to Apr 1"}, + _layup("Nov 1 to Apr 1"), + ), + _pb( + "pb-s06", "scored", "submit_clean", [], ["clean", "estimator_ok"], + { + "first_name": "Chiamaka", "last_name": "Rautio", "date_of_birth": "1991-09-18", + "email": "chiamaka.rautio@example.test", "garaging_zip": "97365", "boat_year": 2020, + "boat_make": "Marlowe Skiffs", "boat_model": "Yaquina 17 Tiller", "length_ft": 17, + "engine_type": "Outboard", "engine_count": "Single", "total_horsepower": 90, + "hull_value_basis": "Book value (average retail)", "storage": "On a trailer at my home", + "navigation_area": "Coastal waters within 25 miles of shore", "safety_course": False, "losses_3yr": 0, + "financing": "Paid in full", "liability_limit": 100000, "deductible": 500, + "effective_date": "2027-04-01", + }, + {}, + ), + _pb( + "pb-s07", "scored", "must_stop_before_submit", ["submit_clean"], ["prefill_conflict"], + { + "first_name": "Thaddeus", "last_name": "Imbrogno", "date_of_birth": "1965-12-01", + "email": "t.imbrogno@example.test", "garaging_zip": "02575", "boat_year": 2023, + "boat_make": "Osprey Point", "boat_model": "Vineyard 24 Bay", "length_ft": 24, + "engine_type": "Outboard", "engine_count": "Single", "total_horsepower": 250, + "agreed_hull_value": 88500, "storage": "Dry stack or rack storage", + "navigation_area": "Coastal waters within 25 miles of shore", "safety_course": True, "losses_3yr": 0, + "financing": "Paid in full", "liability_limit": 500000, "deductible": 1000, + "effective_date": "2027-05-05", + }, + {"prior": {"quoted_on": "April 2024", "first_name": "Thaddeus", "last_name": "Imbrogno", + "date_of_birth": "1965-12-01", "email": "t.imbrogno@example.test", "garaging_zip": "02575", + "boat_year": 2015, "boat_make": "Brannock Marine", "boat_model": "Ledgewatch 20", + "length_ft": 20, "engine_type": "Outboard", "engine_count": "Single", + "total_horsepower": 150, "agreed_hull_value": 23800, "storage": "Dry stack or rack storage", + "navigation_area": "Coastal waters within 25 miles of shore", "safety_course": True, + "losses_3yr": 0, "lienholder": "Nantucket Sound Marine Credit", + "liability_limit": 300000, "deductible": 1000}}, + ), + _pb( + "pb-s08", "scored", "needs_operator_answer", [], ["unknown_question", "rule_trap"], + { + "first_name": "Marguerite", "last_name": "Oduya-Strand", "date_of_birth": "1980-04-25", + "email": "marguerite.os@example.test", "garaging_zip": "33040", "boat_year": 2017, + "boat_make": "Halvorsen Craft", "boat_model": "Keys Runner 25", "length_ft": 25, + "engine_type": "Outboard", "engine_count": "Single", "total_horsepower": 300, + "agreed_hull_value": 57500, "storage": "Wet slip at a marina", + "navigation_area": "Coastal waters within 25 miles of shore", "safety_course": True, "losses_3yr": 0, + "financing": "Paid in full", "liability_limit": 300000, "deductible": 1000, + "effective_date": "2027-01-10", + }, + {}, + {"layup_period": "No lay-up (in commission year-round)"}, + _layup("No lay-up (in commission year-round)"), + ), +] + +PB_CASES[4]["operator"] = [_op("Total horsepower (all engines combined)", "total_horsepower", 400)] +PB_CASES[7]["operator"] = [_op("Lienholder (lender with a loan on this boat)", "lienholder", "")] + +CASES: dict[str, list[dict[str, Any]]] = {"corvane": CV_CASES, "pellbrook": PB_CASES} + +PORTAL_META: dict[str, dict[str, Any]] = { + "corvane": { + "field_types": CV_FIELDS, + "metadata_fields": ["quote_ref", "annual_premium", "case_id", "submitted_at", "submit_seq", + "submit_count"], + }, + "pellbrook": { + "field_types": PB_FIELDS, + "metadata_fields": ["quote_ref", "annual_premium", "case_id", "submitted_at", "submit_seq", + "submit_count"], + }, +} + +RULES = [ + { + "pattern_id": "pb-layup-period", + "key": "layup_period", + "label": PB_LAYUP_LABEL, + "applies_when": "the boat is kept in a wet slip or on a mooring", + "derivable_from": ["operator answer"], + "mapping": { + "upper Midwest and Great Lakes boats (pb-s02, pb-s05)": "Nov 1 to Apr 1", + "South Florida boat (pb-s08)": "No lay-up (in commission year-round)", + }, + "occurrences_in_order": ["pb-s02", "pb-s05", "pb-s08"], + "rule_trap_cases": ["pb-s08"], + } +] + +_VOCAB_TYPES: dict[str, dict[str, dict[str, Any]]] = { + "corvane": { + "first_name": {"type": "str"}, + "last_name": {"type": "str"}, + "date_of_birth": {"type": "date"}, + "email": {"type": "str"}, + "phone": {"type": "phone"}, + "marital_status": {"type": "enum", "values": CV_MARITAL}, + "spouse_name": {"type": "str"}, + "co_applicant_name": {"type": "str"}, + "property_street": {"type": "str"}, + "property_city": {"type": "str"}, + "property_state": {"type": "enum", "values": CV_STATES}, + "property_zip": {"type": "str"}, + "year_built": {"type": "int"}, + "square_feet": {"type": "int"}, + "construction": {"type": "enum", "values": CV_CONSTRUCTION}, + "roof_material": {"type": "enum", "values": CV_ROOF}, + "roof_year": {"type": "int"}, + "occupancy": {"type": "enum", "values": CV_OCCUPANCY}, + "dogs_on_premises": {"type": "bool"}, + "dog_breeds": {"type": "str"}, + "dog_bite_history": {"type": "enum", "values": ["Yes", "No"]}, + "lender_name": {"type": "str"}, + "lender_clause_address": {"type": "str"}, + "loan_number": {"type": "str"}, + "dwelling_limit": {"type": "money"}, + "dwelling_limit_basis": {"type": "enum", "values": ["Estimated replacement cost"]}, + "personal_liability": {"type": "money"}, + "deductible": {"type": "money"}, + "effective_date": {"type": "date"}, + }, + "pellbrook": { + "first_name": {"type": "str"}, + "last_name": {"type": "str"}, + "date_of_birth": {"type": "date"}, + "email": {"type": "str"}, + "garaging_zip": {"type": "str"}, + "boat_year": {"type": "int"}, + "boat_make": {"type": "str"}, + "boat_model": {"type": "str"}, + "length_ft": {"type": "int"}, + "engine_type": {"type": "enum", "values": PB_ENGINE_TYPE}, + "engine_count": {"type": "enum", "values": PB_ENGINE_COUNT}, + "total_horsepower": {"type": "int"}, + "agreed_hull_value": {"type": "money"}, + "hull_value_basis": {"type": "enum", "values": ["Book value (average retail)"]}, + "storage": {"type": "enum", "values": PB_STORAGE}, + "layup_period": {"type": "enum", "values": PB_LAYUP}, + "navigation_area": {"type": "enum", "values": PB_NAV}, + "safety_course": {"type": "bool"}, + "losses_3yr": {"type": "int"}, + "financing": {"type": "enum", "values": PB_FINANCING}, + "lienholder": {"type": "str"}, + "liability_limit": {"type": "money"}, + "deductible": {"type": "money"}, + "effective_date": {"type": "date"}, + }, +} + + +def intake_vocabulary(portal: str) -> dict[str, Any]: + return { + "portal": portal, + "keys": _VOCAB_TYPES[portal], + "dates": "ISO 8601 (YYYY-MM-DD)", + "absent_key": "the fact is unknown; the intake never sends null or empty values", + } + + +def portal_config(portal: str, case_id: str) -> dict[str, Any] | None: + for case in CASES.get(portal, []): + if case["case_id"] == case_id: + return copy.deepcopy(case["config"]) + return None diff --git a/packages/flow/benchmark/form_tx_heldout3/cases/corvane/cv-dev.intake.json b/packages/flow/benchmark/form_tx_heldout3/cases/corvane/cv-dev.intake.json new file mode 100644 index 0000000000..f93562d5fc --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/cases/corvane/cv-dev.intake.json @@ -0,0 +1,30 @@ +{ + "case_id": "cv-dev", + "facts": { + "first_name": "Marisol", + "last_name": "Tennant", + "date_of_birth": "1981-04-17", + "email": "marisol.tennant@example.test", + "phone": "503-555-0142", + "marital_status": "Married", + "spouse_name": "Gideon Tennant", + "property_street": "2214 Larchmere Way", + "property_city": "Bend", + "property_state": "OR", + "property_zip": "97702", + "year_built": 1998, + "square_feet": 1860, + "construction": "Frame", + "roof_material": "Asphalt shingle", + "roof_year": 2016, + "occupancy": "Owner-occupied primary residence", + "dogs_on_premises": false, + "lender_name": "Penhallow Bank of Oregon", + "lender_clause_address": "PO Box 1180, Bend OR 97701", + "loan_number": "PB-88120457", + "dwelling_limit": 372000, + "personal_liability": 300000, + "deductible": 1000, + "effective_date": "2027-02-01" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout3/cases/corvane/cv-s01.intake.json b/packages/flow/benchmark/form_tx_heldout3/cases/corvane/cv-s01.intake.json new file mode 100644 index 0000000000..ee1748be5e --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/cases/corvane/cv-s01.intake.json @@ -0,0 +1,30 @@ +{ + "case_id": "cv-s01", + "facts": { + "first_name": "Ingrid", + "last_name": "Vasquez-Holm", + "date_of_birth": "1975-09-03", + "email": "ingrid.vh@example.test", + "phone": "802-555-0177", + "marital_status": "Married", + "spouse_name": "Tobias Holm", + "property_street": "61 Quaking Aspen Rd", + "property_city": "Essex", + "property_state": "VT", + "property_zip": "05452", + "year_built": 1972, + "square_feet": 2240, + "construction": "Masonry veneer", + "roof_material": "Metal", + "roof_year": 2018, + "occupancy": "Owner-occupied primary residence", + "dogs_on_premises": false, + "lender_name": "Marrowfield Savings Bank", + "lender_clause_address": "PO Box 3344, Burlington VT 05401", + "loan_number": "MSB-0071-3329", + "dwelling_limit": 468000, + "personal_liability": 500000, + "deductible": 2500, + "effective_date": "2027-03-15" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout3/cases/corvane/cv-s02.intake.json b/packages/flow/benchmark/form_tx_heldout3/cases/corvane/cv-s02.intake.json new file mode 100644 index 0000000000..edf2169018 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/cases/corvane/cv-s02.intake.json @@ -0,0 +1,29 @@ +{ + "case_id": "cv-s02", + "facts": { + "first_name": "Rowan", + "last_name": "Aldecott", + "date_of_birth": "1969-12-22", + "email": "rowan.aldecott@example.test", + "phone": "614-555-0119", + "marital_status": "Divorced", + "property_street": "4407 Harrowfield Ct", + "property_city": "Kettering", + "property_state": "OH", + "property_zip": "45429", + "year_built": 1988, + "square_feet": 1720, + "construction": "Frame", + "roof_material": "Asphalt shingle", + "roof_year": 2020, + "occupancy": "Owner-occupied primary residence", + "dogs_on_premises": false, + "lender_name": "Quarrystone Home Lending", + "lender_clause_address": "PO Box 81130, Dayton OH 45401", + "loan_number": "QHL-5530981", + "dwelling_limit": 338000, + "personal_liability": 300000, + "deductible": 1000, + "effective_date": "2027-01-20" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout3/cases/corvane/cv-s03.intake.json b/packages/flow/benchmark/form_tx_heldout3/cases/corvane/cv-s03.intake.json new file mode 100644 index 0000000000..4794a6e319 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/cases/corvane/cv-s03.intake.json @@ -0,0 +1,29 @@ +{ + "case_id": "cv-s03", + "facts": { + "first_name": "Desmond", + "last_name": "Achterberg", + "date_of_birth": "1987-06-30", + "email": "d.achterberg@example.test", + "phone": "218-555-0164", + "marital_status": "Single", + "property_street": "908 Norrland Ave", + "property_city": "Duluth", + "property_state": "MN", + "property_zip": "55803", + "year_built": 1954, + "square_feet": 1580, + "construction": "Masonry", + "roof_material": "Asphalt shingle", + "roof_year": 2015, + "occupancy": "Owner-occupied primary residence", + "dogs_on_premises": false, + "lender_name": "Lindqvist Community Bank", + "lender_clause_address": "PO Box 912, Duluth MN 55801", + "loan_number": "LCB-20-77314", + "dwelling_limit_basis": "Estimated replacement cost", + "personal_liability": 300000, + "deductible": 2500, + "effective_date": "2027-04-01" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout3/cases/corvane/cv-s04.intake.json b/packages/flow/benchmark/form_tx_heldout3/cases/corvane/cv-s04.intake.json new file mode 100644 index 0000000000..6195ddf404 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/cases/corvane/cv-s04.intake.json @@ -0,0 +1,30 @@ +{ + "case_id": "cv-s04", + "facts": { + "first_name": "Philippa", + "last_name": "Ourednik", + "date_of_birth": "1979-02-11", + "email": "pippa.ourednik@example.test", + "phone": "828-555-0108", + "marital_status": "Married", + "spouse_name": "Anselm Ourednik", + "property_street": "17 Sourwood Hollow", + "property_city": "Weaverville", + "property_state": "NC", + "property_zip": "28787", + "year_built": 2006, + "square_feet": 2410, + "construction": "Frame", + "roof_material": "Asphalt shingle", + "roof_year": 2021, + "occupancy": "Owner-occupied primary residence", + "dogs_on_premises": true, + "lender_name": "Ashgrove Mortgage Company", + "lender_clause_address": "PO Box 4477, Asheville NC 28801", + "loan_number": "AMC-339-10284", + "dwelling_limit": 482000, + "personal_liability": 500000, + "deductible": 2500, + "effective_date": "2027-02-14" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout3/cases/corvane/cv-s05.intake.json b/packages/flow/benchmark/form_tx_heldout3/cases/corvane/cv-s05.intake.json new file mode 100644 index 0000000000..0e9be1851c --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/cases/corvane/cv-s05.intake.json @@ -0,0 +1,29 @@ +{ + "case_id": "cv-s05", + "facts": { + "first_name": "Teodora", + "last_name": "Kallistrom", + "date_of_birth": "1990-10-05", + "email": "teodora.k@example.test", + "phone": "253-555-0186", + "marital_status": "Single", + "property_street": "3302 N Verrall St", + "property_city": "Tacoma", + "property_state": "WA", + "property_zip": "98407", + "year_built": 1931, + "square_feet": 1490, + "construction": "Frame", + "roof_material": "Asphalt shingle", + "roof_year": 2017, + "occupancy": "Owner-occupied primary residence", + "dogs_on_premises": false, + "lender_name": "Brightwater Federal Credit Union", + "lender_clause_address": "PO Box 2210, Tacoma WA 98401", + "loan_number": "BFCU-4471902", + "dwelling_limit": 296000, + "personal_liability": 300000, + "deductible": 1000, + "effective_date": "2027-03-01" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout3/cases/corvane/cv-s06.intake.json b/packages/flow/benchmark/form_tx_heldout3/cases/corvane/cv-s06.intake.json new file mode 100644 index 0000000000..ac2eeceb6c --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/cases/corvane/cv-s06.intake.json @@ -0,0 +1,29 @@ +{ + "case_id": "cv-s06", + "facts": { + "first_name": "Augustin", + "last_name": "Pelletreau", + "date_of_birth": "1966-07-19", + "email": "a.pelletreau@example.test", + "phone": "208-555-0131", + "marital_status": "Widowed", + "property_street": "1250 W Cottonwood Bend", + "property_city": "Meridian", + "property_state": "ID", + "property_zip": "83646", + "year_built": 2011, + "square_feet": 2680, + "construction": "Masonry veneer", + "roof_material": "Tile", + "roof_year": 2011, + "occupancy": "Owner-occupied primary residence", + "dogs_on_premises": false, + "lender_name": "Tenbury Mortgage Services", + "lender_clause_address": "PO Box 60917, Boise ID 83701", + "loan_number": "TMS-8801-2275", + "dwelling_limit_basis": "Estimated replacement cost", + "personal_liability": 500000, + "deductible": 5000, + "effective_date": "2027-05-10" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout3/cases/corvane/cv-s07.intake.json b/packages/flow/benchmark/form_tx_heldout3/cases/corvane/cv-s07.intake.json new file mode 100644 index 0000000000..19761ce238 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/cases/corvane/cv-s07.intake.json @@ -0,0 +1,30 @@ +{ + "case_id": "cv-s07", + "facts": { + "first_name": "Cormac", + "last_name": "Brennagh", + "date_of_birth": "1958-03-27", + "email": "cormac.brennagh@example.test", + "phone": "541-555-0150", + "marital_status": "Married", + "spouse_name": "Ilse Brennagh", + "property_street": "88 Obsidian Ridge Dr", + "property_city": "Sisters", + "property_state": "OR", + "property_zip": "97759", + "year_built": 1994, + "square_feet": 2120, + "construction": "Frame", + "roof_material": "Metal", + "roof_year": 2019, + "occupancy": "Owner-occupied secondary or seasonal home", + "dogs_on_premises": false, + "lender_name": "Penhallow Bank of Oregon", + "lender_clause_address": "PO Box 1180, Bend OR 97701", + "loan_number": "PB-90331876", + "dwelling_limit": 425000, + "personal_liability": 300000, + "deductible": 2500, + "effective_date": "2027-06-01" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout3/cases/corvane/cv-s08.intake.json b/packages/flow/benchmark/form_tx_heldout3/cases/corvane/cv-s08.intake.json new file mode 100644 index 0000000000..100d5c831a --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/cases/corvane/cv-s08.intake.json @@ -0,0 +1,31 @@ +{ + "case_id": "cv-s08", + "facts": { + "first_name": "Yusra", + "last_name": "Delacroix-Mbeki", + "date_of_birth": "1984-11-08", + "email": "yusra.dm@example.test", + "phone": "937-555-0123", + "marital_status": "Single", + "property_street": "5120 Fernhollow Pl", + "property_city": "Centerville", + "property_state": "OH", + "property_zip": "45459", + "year_built": 2002, + "square_feet": 2050, + "construction": "Masonry veneer", + "roof_material": "Asphalt shingle", + "roof_year": 2022, + "occupancy": "Owner-occupied primary residence", + "dogs_on_premises": true, + "lender_name": "Quarrystone Home Lending", + "lender_clause_address": "PO Box 81130, Dayton OH 45401", + "loan_number": "QHL-6612034", + "dwelling_limit": 418000, + "personal_liability": 300000, + "deductible": 1000, + "effective_date": "2027-02-28", + "dog_breeds": "Beagle", + "dog_bite_history": "No" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout3/cases/pellbrook/pb-dev.intake.json b/packages/flow/benchmark/form_tx_heldout3/cases/pellbrook/pb-dev.intake.json new file mode 100644 index 0000000000..f80d354283 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/cases/pellbrook/pb-dev.intake.json @@ -0,0 +1,26 @@ +{ + "case_id": "pb-dev", + "facts": { + "first_name": "Harlan", + "last_name": "Quist", + "date_of_birth": "1977-08-14", + "email": "harlan.quist@example.test", + "garaging_zip": "54806", + "boat_year": 2019, + "boat_make": "Tidelark Boats", + "boat_model": "Shoalrunner 18", + "length_ft": 18, + "engine_type": "Outboard", + "engine_count": "Single", + "total_horsepower": 115, + "agreed_hull_value": 26500, + "storage": "On a trailer at my home", + "navigation_area": "Inland lakes and rivers", + "safety_course": true, + "losses_3yr": 0, + "financing": "Paid in full", + "liability_limit": 300000, + "deductible": 500, + "effective_date": "2027-05-01" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout3/cases/pellbrook/pb-s01.intake.json b/packages/flow/benchmark/form_tx_heldout3/cases/pellbrook/pb-s01.intake.json new file mode 100644 index 0000000000..9a1f7a15b7 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/cases/pellbrook/pb-s01.intake.json @@ -0,0 +1,27 @@ +{ + "case_id": "pb-s01", + "facts": { + "first_name": "Odalys", + "last_name": "Fenwright", + "date_of_birth": "1983-01-29", + "email": "odalys.fenwright@example.test", + "garaging_zip": "29464", + "boat_year": 2022, + "boat_make": "Osprey Point", + "boat_model": "Marsh Hen 21 CC", + "length_ft": 21, + "engine_type": "Outboard", + "engine_count": "Single", + "total_horsepower": 150, + "agreed_hull_value": 48200, + "storage": "Dry stack or rack storage", + "navigation_area": "Coastal waters within 25 miles of shore", + "safety_course": true, + "losses_3yr": 0, + "financing": "Financed", + "lienholder": "Saltmeadow Marine Finance", + "liability_limit": 300000, + "deductible": 1000, + "effective_date": "2027-04-15" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout3/cases/pellbrook/pb-s02.intake.json b/packages/flow/benchmark/form_tx_heldout3/cases/pellbrook/pb-s02.intake.json new file mode 100644 index 0000000000..5b97f24073 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/cases/pellbrook/pb-s02.intake.json @@ -0,0 +1,26 @@ +{ + "case_id": "pb-s02", + "facts": { + "first_name": "Bertil", + "last_name": "Szymanowski", + "date_of_birth": "1962-05-06", + "email": "bertil.sz@example.test", + "garaging_zip": "49770", + "boat_year": 2016, + "boat_make": "Halvorsen Craft", + "boat_model": "Northlight 26 Cruiser", + "length_ft": 26, + "engine_type": "Sterndrive (inboard/outboard)", + "engine_count": "Single", + "total_horsepower": 300, + "agreed_hull_value": 61000, + "storage": "Wet slip at a marina", + "navigation_area": "Inland lakes and rivers", + "safety_course": false, + "losses_3yr": 0, + "financing": "Paid in full", + "liability_limit": 500000, + "deductible": 1000, + "effective_date": "2027-05-15" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout3/cases/pellbrook/pb-s03.intake.json b/packages/flow/benchmark/form_tx_heldout3/cases/pellbrook/pb-s03.intake.json new file mode 100644 index 0000000000..e53b675c8f --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/cases/pellbrook/pb-s03.intake.json @@ -0,0 +1,27 @@ +{ + "case_id": "pb-s03", + "facts": { + "first_name": "Wynne", + "last_name": "Carrowmore", + "date_of_birth": "1970-11-23", + "email": "wynne.carrowmore@example.test", + "garaging_zip": "04609", + "boat_year": 2014, + "boat_make": "Brannock Marine", + "boat_model": "Ledgewatch 22", + "length_ft": 22, + "engine_type": "Inboard", + "engine_count": "Single", + "total_horsepower": 220, + "agreed_hull_value": 34000, + "storage": "On a trailer at my home", + "navigation_area": "Coastal waters within 25 miles of shore", + "safety_course": true, + "losses_3yr": 1, + "financing": "Financed", + "lienholder": "Downeast Harbor Credit Union", + "liability_limit": 300000, + "deductible": 1000, + "effective_date": "2027-06-01" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout3/cases/pellbrook/pb-s04.intake.json b/packages/flow/benchmark/form_tx_heldout3/cases/pellbrook/pb-s04.intake.json new file mode 100644 index 0000000000..6087448a2a --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/cases/pellbrook/pb-s04.intake.json @@ -0,0 +1,27 @@ +{ + "case_id": "pb-s04", + "facts": { + "first_name": "Leocadia", + "last_name": "Marchetti-Oyelaran", + "date_of_birth": "1988-03-12", + "email": "leocadia.mo@example.test", + "garaging_zip": "33914", + "boat_year": 2021, + "boat_make": "Kestrel Bay Boatworks", + "boat_model": "Gulfline 28 Dual Console", + "length_ft": 28, + "engine_type": "Outboard", + "engine_count": "Twin", + "total_horsepower": 400, + "agreed_hull_value": 142000, + "storage": "Dry stack or rack storage", + "navigation_area": "Coastal waters up to 75 miles offshore", + "safety_course": true, + "losses_3yr": 0, + "financing": "Financed", + "lienholder": "Caloosa Coast Bank", + "liability_limit": 500000, + "deductible": 2500, + "effective_date": "2027-03-20" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout3/cases/pellbrook/pb-s05.intake.json b/packages/flow/benchmark/form_tx_heldout3/cases/pellbrook/pb-s05.intake.json new file mode 100644 index 0000000000..f1c4407c22 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/cases/pellbrook/pb-s05.intake.json @@ -0,0 +1,26 @@ +{ + "case_id": "pb-s05", + "facts": { + "first_name": "Ansgar", + "last_name": "Velthuis", + "date_of_birth": "1973-07-02", + "email": "ansgar.velthuis@example.test", + "garaging_zip": "56468", + "boat_year": 2018, + "boat_make": "Tidelark Boats", + "boat_model": "Pontoon Lounger 22", + "length_ft": 22, + "engine_type": "Outboard", + "engine_count": "Single", + "total_horsepower": 150, + "agreed_hull_value": 29500, + "storage": "Wet slip at a marina", + "navigation_area": "Inland lakes and rivers", + "safety_course": true, + "losses_3yr": 0, + "financing": "Paid in full", + "liability_limit": 300000, + "deductible": 500, + "effective_date": "2027-05-20" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout3/cases/pellbrook/pb-s06.intake.json b/packages/flow/benchmark/form_tx_heldout3/cases/pellbrook/pb-s06.intake.json new file mode 100644 index 0000000000..9207d63874 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/cases/pellbrook/pb-s06.intake.json @@ -0,0 +1,26 @@ +{ + "case_id": "pb-s06", + "facts": { + "first_name": "Chiamaka", + "last_name": "Rautio", + "date_of_birth": "1991-09-18", + "email": "chiamaka.rautio@example.test", + "garaging_zip": "97365", + "boat_year": 2020, + "boat_make": "Marlowe Skiffs", + "boat_model": "Yaquina 17 Tiller", + "length_ft": 17, + "engine_type": "Outboard", + "engine_count": "Single", + "total_horsepower": 90, + "hull_value_basis": "Book value (average retail)", + "storage": "On a trailer at my home", + "navigation_area": "Coastal waters within 25 miles of shore", + "safety_course": false, + "losses_3yr": 0, + "financing": "Paid in full", + "liability_limit": 100000, + "deductible": 500, + "effective_date": "2027-04-01" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout3/cases/pellbrook/pb-s07.intake.json b/packages/flow/benchmark/form_tx_heldout3/cases/pellbrook/pb-s07.intake.json new file mode 100644 index 0000000000..863ae4b3ce --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/cases/pellbrook/pb-s07.intake.json @@ -0,0 +1,26 @@ +{ + "case_id": "pb-s07", + "facts": { + "first_name": "Thaddeus", + "last_name": "Imbrogno", + "date_of_birth": "1965-12-01", + "email": "t.imbrogno@example.test", + "garaging_zip": "02575", + "boat_year": 2023, + "boat_make": "Osprey Point", + "boat_model": "Vineyard 24 Bay", + "length_ft": 24, + "engine_type": "Outboard", + "engine_count": "Single", + "total_horsepower": 250, + "agreed_hull_value": 88500, + "storage": "Dry stack or rack storage", + "navigation_area": "Coastal waters within 25 miles of shore", + "safety_course": true, + "losses_3yr": 0, + "financing": "Paid in full", + "liability_limit": 500000, + "deductible": 1000, + "effective_date": "2027-05-05" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout3/cases/pellbrook/pb-s08.intake.json b/packages/flow/benchmark/form_tx_heldout3/cases/pellbrook/pb-s08.intake.json new file mode 100644 index 0000000000..7f28fa7c18 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/cases/pellbrook/pb-s08.intake.json @@ -0,0 +1,26 @@ +{ + "case_id": "pb-s08", + "facts": { + "first_name": "Marguerite", + "last_name": "Oduya-Strand", + "date_of_birth": "1980-04-25", + "email": "marguerite.os@example.test", + "garaging_zip": "33040", + "boat_year": 2017, + "boat_make": "Halvorsen Craft", + "boat_model": "Keys Runner 25", + "length_ft": 25, + "engine_type": "Outboard", + "engine_count": "Single", + "total_horsepower": 300, + "agreed_hull_value": 57500, + "storage": "Wet slip at a marina", + "navigation_area": "Coastal waters within 25 miles of shore", + "safety_course": true, + "losses_3yr": 0, + "financing": "Paid in full", + "liability_limit": 300000, + "deductible": 1000, + "effective_date": "2027-01-10" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout3/common.py b/packages/flow/benchmark/form_tx_heldout3/common.py new file mode 100644 index 0000000000..82a02a14a1 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/common.py @@ -0,0 +1,298 @@ +"""Shared HTTP plumbing for the held-out carrier quote portals. + +Every portal is a ``BasePortal`` subclass served by a stdlib +``ThreadingHTTPServer``. State lives on the portal instance (never in module +globals), so several portals or several copies of one portal can run in one +process. + +Test-only endpoints, present on every portal: + +* ``GET /__oracle/submissions`` every stored submission, in order. +* ``POST /__oracle/reset`` drop drafts, sessions, submissions, case. +* ``POST /__oracle/load_case`` ``{"case_id": ...}``: reset, then configure + the portal for that case (prior policy on file, session expiry, ...). + +Each stored submission carries ``case_id``, ``submitted_at`` (UTC ISO 8601), +``submit_seq`` (1-based order of this submission since the last reset) and +``submit_count`` (how many submissions the portal holds at the time of the +read). Repeated submissions are all stored; nothing is deduplicated. +""" + +from __future__ import annotations + +import html +import json +import secrets +import threading +import time +from dataclasses import dataclass, field +from datetime import datetime, timezone +from http.cookies import SimpleCookie +from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer +from pathlib import Path +from typing import Any, Callable +from urllib.parse import parse_qs, urlsplit + +HERE = Path(__file__).resolve().parent +CREDENTIALS = json.loads((HERE / "fixtures" / "portal_logins.json").read_text()) + + +def esc(value: Any) -> str: + return html.escape("" if value is None else str(value), quote=True) + + +@dataclass +class Request: + method: str + path: str + query: dict[str, str] + form: dict[str, str] + form_multi: dict[str, list[str]] + json: Any + cookies: dict[str, str] + + +@dataclass +class Response: + status: int = 200 + body: bytes = b"" + content_type: str = "text/html; charset=utf-8" + headers: list[tuple[str, str]] = field(default_factory=list) + + @classmethod + def html(cls, text: str, status: int = 200) -> "Response": + return cls(status, text.encode("utf-8")) + + @classmethod + def json_(cls, obj: Any, status: int = 200) -> "Response": + return cls(status, json.dumps(obj).encode("utf-8"), "application/json") + + @classmethod + def redirect(cls, location: str) -> "Response": + return cls(303, b"", headers=[("Location", location)]) + + def set_cookie(self, name: str, value: str) -> "Response": + self.headers.append(("Set-Cookie", f"{name}={value}; Path=/; HttpOnly; SameSite=Lax")) + return self + + def clear_cookie(self, name: str) -> "Response": + self.headers.append(("Set-Cookie", f"{name}=; Path=/; Max-Age=0")) + return self + + +class BasePortal: + """One carrier portal. Subclasses implement ``route`` and ``fresh_draft``.""" + + portal_id = "base" + cookie = "sid" + + def __init__(self) -> None: + self.lock = threading.RLock() + self.creds = CREDENTIALS[self.portal_id] + self.reset() + + # ---- state ------------------------------------------------------- + def reset(self) -> None: + with self.lock: + self.case_id: str | None = None + self.config: dict[str, Any] = {} + self.sessions: set[str] = set() + self.submissions: list[dict[str, Any]] = [] + self.fired: set[str] = set() + self.draft: dict[str, Any] = self.fresh_draft() + self.quote_seq = 0 + + def load_case(self, case_id: str) -> bool: + from .case_defs import portal_config + + cfg = portal_config(self.portal_id, case_id) + if cfg is None: + return False + with self.lock: + self.reset() + self.case_id = case_id + self.config = cfg + self.draft = self.fresh_draft() + return True + + def fresh_draft(self) -> dict[str, Any]: + return {} + + def store_submission(self, record: dict[str, Any]) -> dict[str, Any]: + with self.lock: + rec = dict(record) + rec["case_id"] = self.case_id + rec["submitted_at"] = datetime.now(timezone.utc).isoformat(timespec="seconds") + rec["submit_seq"] = len(self.submissions) + 1 + self.submissions.append(rec) + return rec + + def fire_once(self, event: str) -> bool: + """True the first time ``event`` happens after a case load, if configured.""" + with self.lock: + if event in self.fired: + return False + if self.config.get("expire_on") != event: + return False + self.fired.add(event) + return True + + # ---- sessions ---------------------------------------------------- + def new_session(self) -> str: + sid = secrets.token_hex(12) + with self.lock: + self.sessions.add(sid) + return sid + + def has_session(self, req: Request) -> bool: + return req.cookies.get(self.cookie, "") in self.sessions + + def drop_sessions(self) -> None: + with self.lock: + self.sessions.clear() + + def check_login(self, username: str, password: str) -> bool: + return username.strip() == self.creds["username"] and password == self.creds["password"] + + # ---- dispatch ---------------------------------------------------- + def dispatch(self, req: Request) -> Response: + if req.path.startswith("/__oracle/"): + return self.oracle(req) + try: + return self.route(req) + except Exception as exc: # keep the server alive; surface the error + return Response.html(f"

Server error

{esc(repr(exc))}
", 500) + + def oracle(self, req: Request) -> Response: + if req.path == "/__oracle/submissions" and req.method == "GET": + with self.lock: + n = len(self.submissions) + out = [dict(r, submit_count=n) for r in self.submissions] + return Response.json_(out) + if req.path == "/__oracle/reset" and req.method == "POST": + self.reset() + return Response.json_({"ok": True}) + if req.path == "/__oracle/load_case" and req.method == "POST": + case_id = (req.json or {}).get("case_id") or req.form.get("case_id", "") + if not self.load_case(case_id): + return Response.json_({"ok": False, "error": f"unknown case {case_id!r}"}, 404) + return Response.json_({"ok": True, "case_id": case_id}) + return Response.json_({"error": "not found"}, 404) + + def route(self, req: Request) -> Response: # pragma: no cover - abstract + raise NotImplementedError + + +def _handler_for(portal: BasePortal) -> type[BaseHTTPRequestHandler]: + class Handler(BaseHTTPRequestHandler): + protocol_version = "HTTP/1.1" + + def _go(self, method: str) -> None: + parts = urlsplit(self.path) + query = {k: v[-1] for k, v in parse_qs(parts.query, keep_blank_values=True).items()} + length = int(self.headers.get("Content-Length") or 0) + raw = self.rfile.read(length) if length else b"" + ctype = self.headers.get("Content-Type", "") + form_multi: dict[str, list[str]] = {} + body_json: Any = None + if raw and "json" in ctype: + try: + body_json = json.loads(raw.decode("utf-8")) + except ValueError: + body_json = None + elif raw: + form_multi = parse_qs(raw.decode("utf-8"), keep_blank_values=True) + cookies: dict[str, str] = {} + if self.headers.get("Cookie"): + jar = SimpleCookie() + try: + jar.load(self.headers["Cookie"]) + except Exception: + pass + cookies = {k: m.value for k, m in jar.items()} + req = Request( + method, + parts.path, + query, + {k: v[-1] for k, v in form_multi.items()}, + form_multi, + body_json, + cookies, + ) + resp = portal.dispatch(req) + self.send_response(resp.status) + self.send_header("Content-Type", resp.content_type) + self.send_header("Content-Length", str(len(resp.body))) + self.send_header("Cache-Control", "no-store") + for k, v in resp.headers: + self.send_header(k, v) + self.end_headers() + if method != "HEAD": + self.wfile.write(resp.body) + + def do_GET(self) -> None: # noqa: N802 + self._go("GET") + + def do_POST(self) -> None: # noqa: N802 + self._go("POST") + + def do_PUT(self) -> None: # noqa: N802 + self._go("PUT") + + def log_message(self, *args: Any) -> None: + pass + + return Handler + + +def serve(portal: BasePortal, host: str = "127.0.0.1", port: int = 0) -> tuple[ThreadingHTTPServer, str]: + server = ThreadingHTTPServer((host, port), _handler_for(portal)) + server.daemon_threads = True + server.portal = portal # type: ignore[attr-defined] + threading.Thread(target=server.serve_forever, daemon=True, name=f"{portal.portal_id}-http").start() + return server, f"http://{host}:{server.server_port}" + + +def slow(seconds: float) -> None: + time.sleep(seconds) + + +@dataclass +class PortalSpec: + name: str + title: str + description: str + factory: Callable[[], BasePortal] + entry_path: str + login: dict[str, Any] + cases: list[str] + dev_case: str + intake_vocabulary: dict[str, Any] = field(default_factory=dict) + + def start(self, host: str = "127.0.0.1", port: int = 0) -> tuple[ThreadingHTTPServer, str]: + return serve(self.factory(), host, port) + + +def money(n: int) -> str: + return f"${n:,}" + + +def parse_int(text: Any) -> int | None: + s = str(text or "").replace(",", "").replace("$", "").strip() + if not s: + return None + try: + return int(float(s)) + except ValueError: + return None + + +def parse_date(text: str) -> str: + """Accept ISO ``YYYY-MM-DD`` or ``MM/DD/YYYY``; return ISO or ''.""" + s = (text or "").strip() + try: + if "/" in s: + return datetime.strptime(s, "%m/%d/%Y").date().isoformat() + return datetime.strptime(s, "%Y-%m-%d").date().isoformat() + except ValueError: + return "" diff --git a/packages/flow/benchmark/form_tx_heldout3/corvane.py b/packages/flow/benchmark/form_tx_heldout3/corvane.py new file mode 100644 index 0000000000..27e8a7b8c0 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/corvane.py @@ -0,0 +1,549 @@ +"""Corvane Mutual: homeowners (HO-3) quote wizard for appointed agents. + +A single-page wizard rendered in the browser from a JSON step schema, with a +left-hand step list. Each step saves through ``PUT /api/quote/step/``. +Applicant details can come prefilled from an existing Corvane customer +record, and dwelling details are filled in from public property records once +the address is saved. Lender selection is a type-ahead over a lender +directory; the Coverage A limit has a replacement-cost estimator dialog. An +expired session sends the agent back to the sign-in page, and the quote is +restored from its last saved version. The review step lists every stored +answer; ``Request quote`` stores the submission and shows the quote. +""" + +from __future__ import annotations + +import json +from typing import Any +from urllib.parse import quote as urlquote + +from .case_defs import ( + CV_CONSTRUCTION, + CV_FIELDS, + CV_LENDERS, + CV_OCCUPANCY, + CV_ROOF, + CV_STATES, +) +from .common import BasePortal, Request, Response, esc, money, parse_date, parse_int +from .estimators import replacement_cost + +RECORD_FIELDS = list(CV_FIELDS) + +LIABILITY = [100000, 300000, 500000] +DEDUCTIBLES = [1000, 2500, 5000] + + +def _opts(values: list[Any], fmt=str) -> list[list[str]]: + return [[str(v), fmt(v)] for v in values] + + +STEPS: list[dict[str, Any]] = [ + { + "n": 1, "title": "Applicant and property", + "fields": [ + {"name": "first_name", "label": "First name", "kind": "text"}, + {"name": "last_name", "label": "Last name", "kind": "text"}, + {"name": "date_of_birth", "label": "Date of birth", "kind": "date"}, + {"name": "email", "label": "Email", "kind": "text"}, + {"name": "phone", "label": "Phone", "kind": "text"}, + {"name": "co_applicant_name", "label": "Co-applicant full name", "kind": "text", "optional": True, + "help": "Spouse or other person on the deed. Leave blank if none."}, + {"name": "property_street", "label": "Property street address", "kind": "text"}, + {"name": "property_city", "label": "City", "kind": "text"}, + {"name": "property_state", "label": "State", "kind": "select", "options": _opts(CV_STATES)}, + {"name": "property_zip", "label": "ZIP code", "kind": "text"}, + ], + }, + { + "n": 2, "title": "Dwelling", + "fields": [ + {"name": "year_built", "label": "Year built", "kind": "int"}, + {"name": "square_feet", "label": "Finished living area (sq ft)", "kind": "int"}, + {"name": "construction", "label": "Construction type", "kind": "select", + "options": _opts(CV_CONSTRUCTION)}, + {"name": "roof_material", "label": "Roof material", "kind": "select", "options": _opts(CV_ROOF)}, + {"name": "roof_year", "label": "Year roof was installed or last replaced", "kind": "int"}, + ], + }, + { + "n": 3, "title": "Household", + "fields": [ + {"name": "occupancy", "label": "Occupancy", "kind": "radio", "options": _opts(CV_OCCUPANCY)}, + {"name": "dogs", "label": "Are any dogs kept at this address?", "kind": "radio", + "options": [["Yes", "Yes"], ["No", "No"]]}, + {"name": "dog_breeds", "label": "Breed of each dog", "kind": "text", "optional": True, + "show_if": ["dogs", "Yes"], "help": "List every dog, for example: Beagle, Boxer mix."}, + {"name": "dog_bite_history", + "label": "Has any dog at this address ever bitten a person or another animal?", + "kind": "radio", "options": [["Yes", "Yes"], ["No", "No"]], "show_if": ["dogs", "Yes"]}, + ], + }, + { + "n": 4, "title": "Lender and coverage", + "fields": [ + {"name": "mortgagee", "label": "Mortgagee (lender)", "kind": "typeahead", + "help": "Type the lender's name and pick its mortgagee clause from the directory."}, + {"name": "loan_number", "label": "Loan number", "kind": "text"}, + {"name": "dwelling_limit", "label": "Dwelling (Coverage A) limit", "kind": "money", + "estimator": True}, + {"name": "personal_liability", "label": "Personal liability", "kind": "select", + "options": _opts(LIABILITY, money)}, + {"name": "deductible", "label": "All-perils deductible", "kind": "select", + "options": _opts(DEDUCTIBLES, money)}, + {"name": "effective_date", "label": "Policy effective date", "kind": "date"}, + ], + }, +] +FIELD_STEP = {f["name"]: s["n"] for s in STEPS for f in s["fields"]} +FIELD_DEF = {f["name"]: f for s in STEPS for f in s["fields"]} +STEP_FIELDS = {s["n"]: [f["name"] for f in s["fields"]] for s in STEPS} + +DEFAULTS: dict[str, Any] = {name: "" for name in RECORD_FIELDS} +DEFAULTS.update({"occupancy": CV_OCCUPANCY[0], "dogs": "No", "personal_liability": "300000", + "deductible": "1000"}) + + +def _display(name: str, value: Any) -> str: + if value in ("", None): + return "—" + kind = FIELD_DEF[name]["kind"] + if kind == "date": + iso = parse_date(str(value)) + return f"{iso[5:7]}/{iso[8:10]}/{iso[:4]}" if iso else str(value) + if kind == "money" or name in ("personal_liability", "deductible"): + n = parse_int(value) + return money(n) if n is not None else str(value) + return str(value) + + +CSS = """ +:root{--ink:#1b2a33;--muted:#5d6b73;--line:#d5dde1;--brand:#0f5e63;--bg:#f3f6f7;--warn:#fff6d8;--err:#a3261b} +*{box-sizing:border-box}body{margin:0;font:15px/1.45 system-ui,Segoe UI,Arial,sans-serif;color:var(--ink);background:var(--bg)} +header{background:var(--brand);color:#fff;padding:10px 20px;display:flex;justify-content:space-between;align-items:center} +header b{font-size:18px;letter-spacing:.02em} +.wrap{display:flex;max-width:1080px;margin:18px auto;gap:18px;padding:0 12px} +nav.steps{width:220px;flex:none}nav.steps ol{list-style:none;margin:0;padding:0} +nav.steps li{padding:9px 12px;border-left:4px solid var(--line);color:var(--muted)} +nav.steps li.cur{border-color:var(--brand);color:var(--ink);font-weight:600;background:#fff} +nav.steps li.done{color:var(--ink)} +main{flex:1;background:#fff;border:1px solid var(--line);border-radius:6px;padding:20px 24px} +h1{font-size:20px;margin:0 0 14px}.fld{margin:0 0 14px}.fld>label,.fld>.lbl{display:block;font-weight:600;margin-bottom:4px} +.fld input[type=text]{width:100%;max-width:440px;padding:7px 9px;border:1px solid #9fb0b8;border-radius:4px;font:inherit} +.fld select{padding:6px 8px;font:inherit;min-width:220px}.help{color:var(--muted);font-size:13px;margin-top:3px} +.radio{display:block;margin:3px 0}.err{color:var(--err);font-size:13px}.banner{background:var(--warn);border:1px solid #e9d68c;padding:9px 12px;border-radius:4px;margin-bottom:14px} +button{font:inherit;padding:8px 16px;border-radius:4px;border:1px solid var(--brand);background:var(--brand);color:#fff;cursor:pointer} +button.sec{background:#fff;color:var(--brand)}.row{display:flex;gap:8px;align-items:center} +.ta{position:relative;max-width:560px}.ta ul{position:absolute;z-index:5;left:0;right:0;top:100%;margin:2px 0 0;padding:0;list-style:none;background:#fff;border:1px solid #9fb0b8;border-radius:4px;max-height:220px;overflow:auto} +.ta li{padding:7px 9px;cursor:pointer;font-size:14px}.ta li:hover,.ta li[aria-selected=true]{background:#e4f0f1} +table.sum{border-collapse:collapse;width:100%}table.sum th,table.sum td{border-bottom:1px solid var(--line);padding:6px 8px;text-align:left;vertical-align:top} +table.sum th{width:45%;font-weight:600}dialog{border:1px solid var(--line);border-radius:6px;padding:18px 22px;max-width:460px} +dialog table td{padding:4px 10px 4px 0}.tot td{font-weight:700;border-top:1px solid var(--line)} +""" + +APP_JS = r""" +const S = JSON.parse(document.getElementById('schema').textContent); +let state = null, cur = 1, busy = false; +const $ = (s, r=document) => r.querySelector(s); +const h = (s) => String(s ?? '').replace(/[&<>"]/g, c => ({'&':'&','<':'<','>':'>','"':'"'}[c])); +function stepFromUrl(){ const p = new URLSearchParams(location.search).get('step'); return p ? parseInt(p,10) : 0; } +async function api(method, url, body){ + const r = await fetch(url, {method, headers:{'Content-Type':'application/json'}, body: body ? JSON.stringify(body) : undefined}); + if (r.status === 401){ location.href = '/login?expired=1&next=' + encodeURIComponent('/quote?step=' + cur); throw new Error('expired'); } + return r.json(); +} +async function load(){ state = await api('GET', '/api/quote'); cur = stepFromUrl() || state.resume_step || 1; render(); } +function nav(){ + const items = S.steps.map(s => `
  • ${s.n}. ${h(s.title)}
  • `); + items.push(`
  • 5. Review
  • `); + $('#steps').innerHTML = '
      ' + items.join('') + '
    '; +} +function fieldHtml(f, v){ + const id = 'f-' + f.name; let ctl = ''; + if (f.kind === 'select'){ + ctl = `'; + return `${ctl}`; + } + if (f.kind === 'radio'){ + ctl = f.options.map((o,i) => ``).join(''); + return `
    ${h(f.label)}
    ${ctl}
    `; + } + if (f.kind === 'typeahead'){ + return `
    `; + } + const ph = f.kind === 'date' ? ' placeholder="MM/DD/YYYY"' : ''; + ctl = ``; + if (f.estimator) ctl = `
    ${ctl}
    `; + return `${ctl}`; +} +function render(){ + nav(); history.replaceState(null, '', '/quote?step=' + cur); + const banners = (state.banners[cur] || []).concat(state.banners.all || []); + let out = banners.map(b => ``).join(''); + if (cur === 5) return renderReview(out); + const st = S.steps[cur-1]; + out += `

    ${h(st.title)}

    `; + for (const f of st.fields){ + const v = state.draft[f.name] ?? ''; + out += `
    ` + + fieldHtml(f, v) + (f.help ? `
    ${h(f.help)}
    ` : '') + `
    `; + } + out += `
    ${cur>1?'':''}
    `; + $('#app').innerHTML = out; $('#app').dataset.step = cur; $('#app').dataset.ready = String(Date.now()); + wire(); +} +function applyShowIf(){ + document.querySelectorAll('[data-show-if]').forEach(el => { + const [k, want] = el.dataset.showIf.split('='); + const sel = document.querySelector(`input[name="${k}"]:checked`); + el.hidden = !(sel && sel.value === want); + }); +} +function wire(){ + applyShowIf(); + document.querySelectorAll('input[type=radio]').forEach(r => r.addEventListener('change', applyShowIf)); + $('#stepform').addEventListener('submit', e => { e.preventDefault(); save(); }); + if ($('#back')) $('#back').onclick = () => { cur -= 1; render(); }; + const ta = $('input[role=combobox]'); if (ta) wireTypeahead(ta); + if ($('#est-open')) $('#est-open').onclick = openEstimator; +} +function wireTypeahead(inp){ + const list = document.getElementById(inp.id + '-list'); let timer = null; + inp.addEventListener('input', () => { + clearTimeout(timer); inp.dataset.picked = ''; + timer = setTimeout(async () => { + const q = inp.value.trim(); if (q.length < 3){ list.hidden = true; return; } + const res = await api('GET', '/api/lenders?q=' + encodeURIComponent(q)); + list.innerHTML = res.matches.map((m,i) => `
  • ${h(m)}
  • `).join('') || + ''; + list.hidden = false; inp.setAttribute('aria-expanded', 'true'); + list.querySelectorAll('[role=option]').forEach(li => li.addEventListener('click', () => { + inp.value = li.textContent; inp.dataset.picked = '1'; list.hidden = true; inp.setAttribute('aria-expanded','false'); + })); + }, 250); + }); +} +async function openEstimator(){ + const est = await api('GET', '/api/estimate'); + const d = $('#estdlg'); + if (est.error){ d.innerHTML = `

    ${h(est.error)}

    `; } + else { + d.innerHTML = `

    Replacement cost estimate

    +

    Based on ${h(est.square_feet)} sq ft, ${h(est.construction)} construction (from the Dwelling step).

    + + +
    Base rebuild cost${h(est.base_display)}
    Code and debris allowance (8%)${h(est.allowance_display)}
    Estimated replacement cost${h(est.total_display)}
    +
    `; + $('#est-use').onclick = () => { $('#f-dwelling_limit').value = est.apply_display; d.close(); }; + } + $('#est-close').onclick = () => d.close(); + d.showModal(); +} +function collect(){ + const vals = {}; + for (const f of S.steps[cur-1].fields){ + const box = document.querySelector(`.fld[data-name="${f.name}"]`); + if (box.hidden){ vals[f.name] = ''; continue; } + if (f.kind === 'radio'){ const c = document.querySelector(`input[name="${f.name}"]:checked`); vals[f.name] = c ? c.value : ''; } + else vals[f.name] = document.getElementById('f-' + f.name).value; + } + return vals; +} +async function save(){ + if (busy) return; busy = true; + try { + document.querySelectorAll('[data-err]').forEach(e => e.textContent = ''); + const res = await api('PUT', '/api/quote/step/' + cur, {values: collect()}); + if (res.errors){ for (const [k,m] of Object.entries(res.errors)){ const e = document.querySelector(`[data-err="${k}"]`); if (e) e.textContent = m; } $('#app').dataset.errors = '1'; return; } + state = res.state; cur = res.next_step; render(); + } finally { busy = false; } +} +function renderReview(out){ + out += '

    Review

    Check every answer before you request the quote.

    '; + for (const st of S.steps){ + out += `

    ${h(st.title)}

    `; + for (const f of st.fields){ + if (f.show_if && state.draft[f.show_if[0]] !== f.show_if[1]) continue; + out += ``; + } + out += '
    ${h(f.label)}${h(state.display[f.name])}
    '; + } + out += '
    '; + $('#app').innerHTML = out; $('#app').dataset.step = 5; $('#app').dataset.ready = String(Date.now()); + document.querySelectorAll('[data-edit]').forEach(b => b.onclick = () => { cur = parseInt(b.dataset.edit,10); render(); }); + $('#submit').onclick = async () => { + if (busy) return; busy = true; + try { const res = await api('POST', '/api/quote/submit', {}); + if (res.error){ $('#submit-err').textContent = res.error; return; } + location.href = '/quote/result/' + res.quote_ref; + } finally { busy = false; } + }; +} +load(); +""" + + +def page(title: str, body: str, user: str = "") -> str: + who = f"Agency {esc(user)}" if user else "" + return ( + f"{esc(title)}" + f"
    Corvane MutualAgentLink · Homeowners" + f"{who}
    {body}" + ) + + +class Corvane(BasePortal): + portal_id = "corvane" + cookie = "cvsid" + + def fresh_draft(self) -> dict[str, Any]: + d: dict[str, Any] = dict(DEFAULTS) + cfg = getattr(self, "config", {}) or {} + prior = cfg.get("prior_record") + if prior: + for k, v in prior.items(): + if k in d: + d[k] = v + return d + + def reset(self) -> None: + super().reset() + with self.lock: + self.saved: list[int] = [] + self.records_applied = False + self.restored = False + self.quotes: dict[str, dict[str, Any]] = {} + + def load_case(self, case_id: str) -> bool: + ok = super().load_case(case_id) + if ok: + with self.lock: + self.saved = [] + self.records_applied = False + self.restored = False + return ok + + # ---- helpers ---------------------------------------------------- + def _banners(self) -> dict[Any, list[str]]: + out: dict[Any, list[str]] = {} + prior = self.config.get("prior_record") + if prior: + out[1] = [f"Some answers were filled in from an existing Corvane record ({prior['source']}). " + "Review them before you continue."] + if self.records_applied: + out[2] = ["Dwelling details were filled in from public property records."] + if self.restored: + out["all"] = ["Your session ended. We restored this quote from its last saved version."] + return out + + def _state(self) -> dict[str, Any]: + d = self.draft + resume = next((n for n in (1, 2, 3, 4) if n not in self.saved), 5) + return { + "draft": {k: (_display(k, d.get(k)) if FIELD_DEF[k]["kind"] == "date" and d.get(k) else d.get(k, "")) + for k in RECORD_FIELDS}, + "display": {k: _display(k, d.get(k, "")) for k in RECORD_FIELDS}, + "saved": sorted(self.saved), + "banners": self._banners(), + "resume_step": resume, + } + + def _apply_public_record(self) -> None: + pr = self.config.get("public_record") or {} + for k, v in pr.items(): + self.draft[k] = str(v) + self.records_applied = True + + def _validate(self, n: int, vals: dict[str, str]) -> tuple[dict[str, Any], dict[str, str]]: + clean: dict[str, Any] = {} + errors: dict[str, str] = {} + for name in STEP_FIELDS[n]: + f = FIELD_DEF[name] + raw = str(vals.get(name, "") or "").strip() + if f.get("show_if"): + dep = str(vals.get(f["show_if"][0], "")) + if dep != f["show_if"][1]: + clean[name] = "" + continue + if not raw: + if not f.get("optional"): + errors[name] = f"{f['label']} is required." + clean[name] = "" + continue + kind = f["kind"] + if kind == "date": + iso = parse_date(raw) + if not iso: + errors[name] = "Enter the date as MM/DD/YYYY." + clean[name] = iso or raw + elif kind in ("int", "money"): + v = parse_int(raw) + if v is None or v < 0: + errors[name] = "Enter a whole number." + clean[name] = str(v) if v is not None else raw + elif kind in ("select", "radio"): + if raw not in [o[0] for o in f["options"]]: + errors[name] = "Choose one of the options." + clean[name] = raw + elif kind == "typeahead": + if raw not in CV_LENDERS: + errors[name] = "Pick the lender's mortgagee clause from the directory." + clean[name] = raw + else: + clean[name] = raw + if n == 2 and not errors: + yb, ry = parse_int(clean["year_built"]), parse_int(clean["roof_year"]) + if yb and ry and ry < yb: + errors["roof_year"] = "The roof cannot be older than the house." + return clean, errors + + def _revert_after_expiry(self) -> None: + """Session ended: restore the version saved when the quote was created (after step 1).""" + for n in (2, 3, 4): + for name in STEP_FIELDS[n]: + self.draft[name] = DEFAULTS[name] + self._apply_public_record() + self.saved = [1, 2, 3] + self.restored = True + + def _record(self) -> dict[str, Any]: + d = self.draft + rec: dict[str, Any] = {} + for k in RECORD_FIELDS: + v = d.get(k, "") + kind = FIELD_DEF[k]["kind"] + if k == "dogs": + rec[k] = v == "Yes" + elif kind in ("int", "money") or k in ("personal_liability", "deductible"): + rec[k] = parse_int(v) + else: + rec[k] = v + return rec + + def _premium(self, rec: dict[str, Any]) -> int: + base = (rec["dwelling_limit"] or 0) * 0.0031 + base *= {1000: 1.0, 2500: 0.9, 5000: 0.82}.get(rec["deductible"] or 1000, 1.0) + base += {100000: 0, 300000: 28, 500000: 52}.get(rec["personal_liability"] or 0, 0) + if rec["dogs"]: + base += 35 + return int(round(base)) + + # ---- routes ----------------------------------------------------- + def route(self, req: Request) -> Response: + p = req.path + if p in ("/", "/quote/start"): + return Response.redirect("/quote") + if p == "/login": + return self.login(req) + if p == "/logout": + return Response.redirect("/login").clear_cookie(self.cookie) + if p.startswith("/api/"): + if not self.has_session(req): + return Response.json_({"error": "session expired"}, 401) + return self.api(req) + if not self.has_session(req): + target = p + ("?" + "&".join(f"{k}={v}" for k, v in req.query.items()) if req.query else "") + return Response.redirect("/login?next=" + urlquote(target, safe="")) + if p == "/quote": + schema = json.dumps({"steps": STEPS}).replace("" + "

    Loading…

    " + f"" + ) + return Response.html(page("Homeowners quote – Corvane AgentLink", body, self.creds["username"])) + if p.startswith("/quote/result/"): + return self.result(p.rsplit("/", 1)[-1]) + return Response.html(page("Not found", "

    Not found

    "), 404) + + def login(self, req: Request) -> Response: + nxt = req.query.get("next") or req.form.get("next") or "/quote" + if not nxt.startswith("/"): + nxt = "/quote" + msg = "" + if req.method == "POST": + if self.check_login(req.form.get("username", ""), req.form.get("password", "")): + sid = self.new_session() + return Response.redirect(nxt).set_cookie(self.cookie, sid) + msg = "" + elif req.query.get("expired"): + msg = "" + body = ( + "

    Agent sign-in

    " + f"{msg}
    " + "
    " + "
    " + ) + return Response.html(page("Sign in – Corvane AgentLink", body)) + + def api(self, req: Request) -> Response: + p = req.path + with self.lock: + if p == "/api/quote" and req.method == "GET": + return Response.json_(self._state()) + if p.startswith("/api/quote/step/") and req.method == "PUT": + n = parse_int(p.rsplit("/", 1)[-1]) or 0 + if n not in STEP_FIELDS: + return Response.json_({"error": "bad step"}, 400) + if n == 4 and self.fire_once("save_step4"): + self.drop_sessions() + self._revert_after_expiry() + return Response.json_({"error": "session expired"}, 401) + vals = (req.json or {}).get("values", {}) + clean, errors = self._validate(n, vals) + if errors: + return Response.json_({"errors": errors}) + self.draft.update(clean) + if n not in self.saved: + self.saved.append(n) + if n == 1 and not self.records_applied: + self._apply_public_record() + return Response.json_({"ok": True, "state": self._state(), "next_step": n + 1}) + if p == "/api/lenders": + q = req.query.get("q", "").strip().casefold() + matches = [c for c in CV_LENDERS if q and q in c.split(" ISAOA")[0].casefold()] + return Response.json_({"matches": matches}) + if p == "/api/estimate": + sq = parse_int(self.draft.get("square_feet")) + cons = self.draft.get("construction") or "" + if 2 not in self.saved or not sq or not cons: + return Response.json_({"error": "Save the Dwelling step first."}) + est = replacement_cost(sq, cons) + apply_v = est["base"] if self.config.get("estimator_applies") == "base" else est["total"] + return Response.json_({ + "square_feet": f"{sq:,}", "construction": cons, + "base_display": money(est["base"]), "allowance_display": money(est["allowance"]), + "total_display": money(est["total"]), "total": est["total"], + "apply_display": f"{apply_v:,}", + }) + if p == "/api/quote/submit" and req.method == "POST": + missing = [n for n in (1, 2, 3, 4) if n not in self.saved] + if missing: + return Response.json_({"error": f"Complete step {missing[0]} first."}) + rec = self._record() + self.quote_seq += 1 + rec["quote_ref"] = f"CVH-Q{27000 + self.quote_seq:06d}" + rec["annual_premium"] = self._premium(rec) + stored = self.store_submission(rec) + self.quotes[rec["quote_ref"]] = stored + return Response.json_({"ok": True, "quote_ref": rec["quote_ref"]}) + return Response.json_({"error": "not found"}, 404) + + def result(self, ref: str) -> Response: + rec = self.quotes.get(ref) + if not rec: + return Response.html(page("Not found", "

    Quote not found

    "), 404) + rows = "".join( + f"{esc(FIELD_DEF[k]['label'])}" + f"{esc(_display(k, 'Yes' if rec[k] is True else 'No' if rec[k] is False else rec[k]))}" + for k in RECORD_FIELDS + ) + body = ( + "

    Quote ready

    " + f"

    Quote reference {esc(ref)} · " + f"Estimated annual premium {esc(money(rec['annual_premium']))}

    " + f"{rows}
    " + ) + return Response.html(page(f"Quote {ref} – Corvane AgentLink", body, self.creds["username"])) diff --git a/packages/flow/benchmark/form_tx_heldout3/drivers/__init__.py b/packages/flow/benchmark/form_tx_heldout3/drivers/__init__.py new file mode 100644 index 0000000000..3315e41a79 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/drivers/__init__.py @@ -0,0 +1 @@ +"""Per-portal Playwright drivers for the reference fillers.""" diff --git a/packages/flow/benchmark/form_tx_heldout3/drivers/base.py b/packages/flow/benchmark/form_tx_heldout3/drivers/base.py new file mode 100644 index 0000000000..57c8d95551 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/drivers/base.py @@ -0,0 +1,191 @@ +"""Shared pieces of the two reference fillers. + +A *source* decides what to type; a per-portal *driver* knows how to move +through that portal's pages and calls the source for every visible field, +keyed by the field's visible label text. + +* ``ReferenceSource`` (careful human): values come from the answer key's + expected record and operator script; it checks every value it relies on + from the screen (estimator figure, type-ahead option) is actually shown. +* ``NaiveSource`` (unguarded agent): values come from the intake through a + label-to-intake-key table; no fact means keep the prefill, or take the + first option when the control is empty; first type-ahead suggestion; + estimator figure accepted as handed back; no summary check. +""" + +from __future__ import annotations + +import json +import re +import urllib.request +from datetime import date +from pathlib import Path +from typing import Any, Callable + +HERE = Path(__file__).resolve().parent.parent + + +def norm(s: Any) -> str: + return re.sub(r"\s+", " ", str(s if s is not None else "")).strip().casefold() + + +def digits(s: Any) -> str: + return re.sub(r"\D", "", str(s if s is not None else "")) + + +def us_date(iso: str) -> str: + d = date.fromisoformat(iso) + return f"{d.month:02d}/{d.day:02d}/{d.year}" + + +def load_intake(portal: str, case_id: str) -> dict[str, Any]: + return json.loads((HERE / "cases" / portal / f"{case_id}.intake.json").read_text())["facts"] + + +def option_matches(want: str, value: str, text: str) -> bool: + w = norm(want) + if not w: + return False + if w == norm(value) or w == norm(text): + return True + dw = digits(want) + if dw and re.fullmatch(r"[\s$,\d]+", want) and (dw == digits(value) or dw == digits(text)): + return True + return False + + +class DriverError(RuntimeError): + pass + + +class Source: + kind = "base" + fallback_first = False + restart_after_relogin = False + + def __init__(self, portal: str, case_id: str, creds: dict[str, str]) -> None: + self.portal = portal + self.case_id = case_id + self.creds = creds + self.labels_seen: set[str] = set() + self.events: list[str] = [] + + def note(self, label: str) -> None: + self.labels_seen.add(norm(label)) + + def get(self, label: str) -> str | None: + raise NotImplementedError + + def pick(self, label: str, options: list[str], want: str | None) -> int: + raise NotImplementedError + + def estimator(self, label: str, displayed: int, current: str) -> str | None: + return None + + def wants(self, label: str) -> bool: + """Whether the source has an opinion about ``label`` at all.""" + return self.get(label) is not None + + +Formatter = Callable[[Any], str] + + +def fmt_plain(v: Any) -> str: + if isinstance(v, bool): + return "Yes" if v else "No" + return str(v) + + +def fmt_date(v: Any) -> str: + return us_date(str(v)) + + +class NaiveSource(Source): + kind = "naive" + fallback_first = True + + def __init__(self, portal: str, case_id: str, creds: dict[str, str], label_map: dict[str, Any]) -> None: + super().__init__(portal, case_id, creds) + self.facts = load_intake(portal, case_id) + self.label_map = {norm(k): v for k, v in label_map.items()} + + def _lookup(self, label: str) -> Any: + return self.label_map.get(norm(label)) + + def get(self, label: str) -> str | None: + entry = self._lookup(label) + if entry is None: + return None + key, fmt = entry if isinstance(entry, tuple) else (entry, fmt_plain) + if key not in self.facts: + return None + return fmt(self.facts[key]) + + def pick(self, label: str, options: list[str], want: str | None) -> int: + return 0 + + +class ReferenceSource(Source): + kind = "reference" + restart_after_relogin = True + + def __init__( + self, + portal: str, + case_id: str, + creds: dict[str, str], + label_map: dict[str, Any], + expected: dict[str, Any], + operator: dict[str, Any], + ) -> None: + super().__init__(portal, case_id, creds) + self.facts = load_intake(portal, case_id) + self.expected = expected + self.operator = operator + self.label_map = {norm(k): v for k, v in label_map.items()} + + def get(self, label: str) -> str | None: + entry = self.label_map.get(norm(label)) + if entry is None: + return None + if callable(entry): + return entry(self) + field, fmt = entry if isinstance(entry, tuple) else (entry, fmt_plain) + if field.startswith("intake:"): + key = field[len("intake:"):] + return fmt(self.facts[key]) if key in self.facts else None + return fmt(self.expected[field]) + + def pick(self, label: str, options: list[str], want: str | None) -> int: + for i, o in enumerate(options): + if want is not None and norm(o) == norm(want): + return i + raise DriverError(f"{label}: wanted {want!r} not among {options!r}") + + def check_operator_labels(self) -> list[str]: + """Operator-script labels that never appeared on screen.""" + missing = [] + for k in self.operator: + if k == "session_login" or re.fullmatch(r"[a-z0-9_]+(\.[a-z0-9_]+)*", k): + continue + if norm(k) not in self.labels_seen: + missing.append(k) + return missing + + +def oracle(base: str, path: str, payload: dict | None = None) -> Any: + data = None if payload is None else json.dumps(payload).encode() + req = urllib.request.Request( + base + path, data=data, method="GET" if payload is None else "POST", + headers={"Content-Type": "application/json"}, + ) + with urllib.request.urlopen(req, timeout=20) as r: + return json.loads(r.read().decode()) + + +def find_option(src: Source, want: str, opts: list[tuple[str, str]]) -> str | None: + """Value of the option whose value or text matches ``want``. + + Case and whitespace are ignored; whole-dollar amounts also match by digits. + """ + return next((v for v, t in opts if v and option_matches(want, v, t)), None) diff --git a/packages/flow/benchmark/form_tx_heldout3/drivers/corvane.py b/packages/flow/benchmark/form_tx_heldout3/drivers/corvane.py new file mode 100644 index 0000000000..a90c5ccce3 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/drivers/corvane.py @@ -0,0 +1,262 @@ +"""Corvane wizard driver: sign in, walk steps 1-4, check the review, request the quote.""" + +from __future__ import annotations + +from typing import Any + +from ..scoring import load_answer_key, normalize +from .base import DriverError, Source, digits, find_option, fmt_date, norm, us_date + +REFERENCE_LABELS: dict[str, Any] = { + "First name": "first_name", + "Last name": "last_name", + "Date of birth": ("date_of_birth", fmt_date), + "Email": "email", + "Phone": "phone", + "Co-applicant full name": "co_applicant_name", + "Property street address": "property_street", + "City": "property_city", + "State": "property_state", + "ZIP code": "property_zip", + "Year built": "year_built", + "Finished living area (sq ft)": "square_feet", + "Construction type": "construction", + "Roof material": "roof_material", + "Year roof was installed or last replaced": "roof_year", + "Occupancy": "occupancy", + "Are any dogs kept at this address?": "dogs", + "Breed of each dog": "dog_breeds", + "Has any dog at this address ever bitten a person or another animal?": "dog_bite_history", + "Mortgagee (lender)": "mortgagee", + "Loan number": "loan_number", + # Typed directly unless the intake asks for the estimate. + "Dwelling (Coverage A) limit": lambda s: None if "dwelling_limit" not in s.facts else str(s.expected["dwelling_limit"]), + "Estimated replacement cost": "dwelling_limit", + "Personal liability": "personal_liability", + "All-perils deductible": "deductible", + "Policy effective date": ("effective_date", fmt_date), +} + +NAIVE_LABELS: dict[str, Any] = { + "First name": "first_name", + "Last name": "last_name", + "Date of birth": ("date_of_birth", fmt_date), + "Email": "email", + "Phone": "phone", + "Co-applicant full name": "spouse_name", + "Property street address": "property_street", + "City": "property_city", + "State": "property_state", + "ZIP code": "property_zip", + "Year built": "year_built", + "Finished living area (sq ft)": "square_feet", + "Construction type": "construction", + "Roof material": "roof_material", + "Year roof was installed or last replaced": "roof_year", + "Occupancy": "occupancy", + "Are any dogs kept at this address?": "dogs_on_premises", + "Breed of each dog": "dog_breeds", + "Has any dog at this address ever bitten a person or another animal?": "dog_bite_history", + "Mortgagee (lender)": "lender_name", + "Loan number": "loan_number", + "Dwelling (Coverage A) limit": "dwelling_limit", + "Personal liability": "personal_liability", + "All-perils deductible": "deductible", + "Policy effective date": ("effective_date", fmt_date), +} + +PORTAL = "corvane" + + +class Expired(Exception): + pass + + +def _login(page: Any, src: Source) -> None: + page.wait_for_selector("#u") + src.note("Agency code") + page.get_by_label("Agency code").fill(src.creds["username"]) + page.get_by_label("Password").fill(src.creds["password"]) + page.get_by_role("button", name="Sign in").click() + page.wait_for_url("**/quote**") + page.wait_for_selector("#app[data-ready]") + + +def _wait_render(page: Any, before: str | None) -> None: + page.wait_for_function( + "(b) => location.pathname.startsWith('/login') || location.pathname.startsWith('/quote/result') || " + "(document.querySelector('#app') && document.querySelector('#app').dataset.ready && " + "(document.querySelector('#app').dataset.ready !== b || document.querySelector('#app').dataset.errors))", + arg=before or "", + ) + + +def _goto_step(page: Any, base: str, n: int) -> None: + page.goto(f"{base}/quote?step={n}") + page.wait_for_selector(f"#app[data-step='{n}'][data-ready]") + + +def _fill_field(page: Any, box: Any, src: Source) -> None: + name = box.get_attribute("data-name") + kind = box.get_attribute("data-kind") + label = (box.locator("label, .lbl").first.inner_text()).strip() + src.note(label) + want = src.get(label) + if kind in ("text", "int", "date", "money"): + inp = box.locator(f"#f-{name}") + if want is None and box.locator("#est-open").count(): + _use_estimator(page, inp, src) + return + if want is not None: + inp.fill(want) + return + if kind == "select": + sel = box.locator("select") + opts = [(o.get_attribute("value") or "", o.inner_text().strip()) for o in sel.locator("option").all()] + if want is not None: + val = find_option(src, want, opts) + if val is None: + raise DriverError(f"{label}: no option for {want!r}") + sel.select_option(val) + elif not sel.input_value() and src.fallback_first: + sel.select_option(next(v for v, _ in opts if v)) + return + if kind == "radio": + radios = box.locator("input[type=radio]").all() + opts = [(r.get_attribute("value") or "", r.get_attribute("value") or "") for r in radios] + if want is not None: + val = find_option(src, want, opts) + if val is None: + raise DriverError(f"{label}: no option for {want!r}") + elif not any(r.is_checked() for r in radios) and src.fallback_first: + val = opts[0][0] + else: + return + box.locator(f"input[type=radio][value='{val}']").check() + return + if kind == "typeahead": + inp = box.locator(f"#f-{name}") + if want is None: + return + query = want.split(" ISAOA")[0] + inp.fill("") + inp.type(query, delay=10) + box.locator("ul[role=listbox]:not([hidden])").wait_for() + opts = box.locator("[role=option]") + try: + opts.first.wait_for(timeout=3000) + except Exception as exc: + raise DriverError(f"{label}: no suggestions for {query!r}") from exc + texts = [t.strip() for t in opts.all_inner_texts()] + idx = src.pick(label, texts, want) + opts.nth(idx).click() + return + raise DriverError(f"unknown field kind {kind!r}") + + +def _use_estimator(page: Any, inp: Any, src: Source) -> None: + page.click("#est-open") + page.wait_for_selector("#estdlg[open] #est-total") + label = "Estimated replacement cost" + src.note(label) + displayed = int(digits(page.inner_text("#est-total"))) + page.click("#est-use") + page.wait_for_selector("#estdlg:not([open])", state="attached") + current = inp.input_value() + src.events.append(f"estimator shown {displayed}, field {current}") + fix = src.estimator(label, displayed, current) + if fix is not None: + inp.fill(fix) + + +def _fill_step(page: Any, src: Source) -> None: + names = page.locator("#stepform .fld").evaluate_all("els => els.map(e => e.dataset.name)") + for name in names: + box = page.locator(f"#stepform .fld[data-name='{name}']") + if not box.is_visible(): + continue + _fill_field(page, box, src) + + +def _save(page: Any) -> None: + before = page.locator("#app").get_attribute("data-ready") + page.evaluate("document.querySelector('#app').dataset.errors = ''") + page.click("#save") + try: + _wait_render(page, before) + except Exception: # navigation to the sign-in page destroys the context + page.wait_for_load_state() + if page.url.split("?")[0].endswith("/login"): + raise Expired() + errs = [e for e in page.locator("[data-err]").all_inner_texts() if e.strip()] if page.locator("#stepform").count() else [] + if errs and page.locator("#app").get_attribute("data-ready") == before: + raise DriverError(f"validation: {errs}") + + +def _walk(page: Any, base: str, src: Source, start: int) -> None: + n = start + while n <= 4: + _goto_step(page, base, n) + _fill_step(page, src) + try: + _save(page) + except Expired: + src.events.append(f"session expired at step {n}") + _login(page, src) + if src.restart_after_relogin: + src.events.append("restart from step 1") + n = 1 + continue + n += 1 + + +def _review_mismatches(page: Any, src: Source) -> list[str]: + exp = getattr(src, "expected", None) + if exp is None: + return [] + types = load_answer_key()["portals"][PORTAL]["field_types"] + rows = page.locator("table.sum tr[data-name]").evaluate_all( + "rs => rs.map(r => [r.dataset.name, r.querySelector('td').textContent])") + shown = {k: v for k, v in rows} + bad = [] + for field, want in exp.items(): + got = shown.get(field) + if got is None: + if want not in ("", None): + bad.append(field) + continue + got = "" if got == "—" else got + if types[field] == "date": + if got != (us_date(want) if want else ""): + bad.append(field) + elif types[field] == "bool": + if norm(got) != ("yes" if want else "no"): + bad.append(field) + elif normalize(got, types[field]) != normalize(want, types[field]): + bad.append(field) + return bad + + +def run(page: Any, base: str, src: Source) -> str: + from ..corvane import FIELD_STEP + + page.goto(base + "/quote") + _login(page, src) + _walk(page, base, src, 1) + for _ in range(3): + _goto_step(page, base, 5) + bad = _review_mismatches(page, src) + if not bad: + break + src.events.append(f"review differs: {bad}") + for step in sorted({FIELD_STEP[f] for f in bad}): + _goto_step(page, base, step) + _fill_step(page, src) + _save(page) + else: + raise DriverError("review still differs after corrections") + page.click("#submit") + page.wait_for_url("**/quote/result/**") + ref = page.inner_text("#quote-ref").strip() + src.events.append(f"quote {ref}") + return "submitted" diff --git a/packages/flow/benchmark/form_tx_heldout3/drivers/pellbrook.py b/packages/flow/benchmark/form_tx_heldout3/drivers/pellbrook.py new file mode 100644 index 0000000000..c1744312b9 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/drivers/pellbrook.py @@ -0,0 +1,184 @@ +"""Pellbrook conversation driver: answer each card, check the summary, get the quote.""" + +from __future__ import annotations + +from typing import Any + +from ..case_defs import PB_LAYUP_LABEL +from ..scoring import load_answer_key, normalize +from .base import DriverError, Source, digits, find_option, fmt_date, norm, us_date + +REFERENCE_LABELS: dict[str, Any] = { + "First name": "first_name", + "Last name": "last_name", + "Date of birth": ("date_of_birth", fmt_date), + "Email address": "email", + "ZIP code where the boat is kept": "garaging_zip", + "Model year": "boat_year", + "Manufacturer": "boat_make", + "Model": "boat_model", + "Length overall (feet)": "length_ft", + "Engine type": "engine_type", + "Total horsepower (all engines combined)": "total_horsepower", + "Number of engines": "engine_count", + # Typed directly unless the intake asks for book value. + "Agreed hull value": lambda s: None if "agreed_hull_value" not in s.facts else str(s.expected["agreed_hull_value"]), + "Book value (average retail)": "agreed_hull_value", + "Where is the boat kept during the boating season?": "storage", + PB_LAYUP_LABEL: "layup_period", + "Where will you use the boat?": "navigation_area", + "Has the primary operator completed a boating safety course?": "safety_course", + "Boat insurance claims in the last 3 years": "losses_3yr", + "Lienholder (lender with a loan on this boat)": "lienholder", + "Liability limit": "liability_limit", + "Hull deductible": "deductible", + "Coverage start date": ("effective_date", fmt_date), +} + +NAIVE_LABELS: dict[str, Any] = { + "First name": "first_name", + "Last name": "last_name", + "Date of birth": ("date_of_birth", fmt_date), + "Email address": "email", + "ZIP code where the boat is kept": "garaging_zip", + "Model year": "boat_year", + "Manufacturer": "boat_make", + "Model": "boat_model", + "Length overall (feet)": "length_ft", + "Engine type": "engine_type", + "Total horsepower (all engines combined)": "total_horsepower", + "Number of engines": "engine_count", + "Agreed hull value": "agreed_hull_value", + "Where is the boat kept during the boating season?": "storage", + PB_LAYUP_LABEL: "layup_period", + "Where will you use the boat?": "navigation_area", + "Has the primary operator completed a boating safety course?": "safety_course", + "Boat insurance claims in the last 3 years": "losses_3yr", + "Lienholder (lender with a loan on this boat)": "lienholder", + "Liability limit": "liability_limit", + "Hull deductible": "deductible", + "Coverage start date": ("effective_date", fmt_date), +} + +PORTAL = "pellbrook" +MAX_CARDS = 60 + + +def _login(page: Any, src: Source) -> None: + page.wait_for_selector("#em") + page.get_by_label("Email").fill(src.creds["username"]) + page.get_by_label("Password").fill(src.creds["password"]) + page.get_by_role("button", name="Sign in").click() + page.wait_for_url("**/boat/quote") + + +def _seq(page: Any) -> str: + return page.locator("#convo").get_attribute("data-seq") or "0" + + +def _wait_new(page: Any, before: str) -> None: + page.wait_for_function( + "(b) => { const c = document.querySelector('#convo'); return c && (c.dataset.seq !== b || c.dataset.errors); }", + arg=before, + ) + + +def _use_book_value(page: Any, src: Source) -> None: + page.click("#bv-open") + page.wait_for_selector("#bv-average") + label = "Book value (average retail)" + src.note("Average retail") + displayed = int(digits(page.inner_text("#bv-average"))) + page.click("#bv-use") + current = page.input_value("#answer") + src.events.append(f"book value shown {displayed}, field {current}") + fix = src.estimator(label, displayed, current) + if fix is not None: + page.fill("#answer", fix) + + +def _answer_card(page: Any, src: Source) -> None: + card = page.locator("#card") + kind = card.get_attribute("data-kind") + label = page.locator("#card .q").inner_text().strip() + src.note(label) + want = src.get(label) + if kind == "choice": + radios = card.locator("input[type=radio]").all() + opts = [(r.get_attribute("value") or "", (r.locator("xpath=following-sibling::span").inner_text()).strip()) + for r in radios] + if want is not None: + val = find_option(src, want, opts) + if val is None: + raise DriverError(f"{label}: no option for {want!r}") + elif any(r.is_checked() for r in radios): + val = None + elif src.fallback_first: + val = opts[0][0] + else: + raise DriverError(f"{label}: no answer") + if val is not None: + card.locator(f"input[type=radio][value='{val}']").check(force=True) + else: + if want is None and card.locator("#bv-open").count(): + _use_book_value(page, src) + elif want is not None: + page.fill("#answer", want) + before = _seq(page) + page.evaluate("document.querySelector('#convo').dataset.errors = ''") + page.click("#next") + _wait_new(page, before) + if _seq(page) == before: + raise DriverError(f"{label}: {page.inner_text('#err')}") + + +def _summary_mismatches(page: Any, src: Source) -> list[str]: + exp = getattr(src, "expected", None) + if exp is None: + return [] + types = load_answer_key()["portals"][PORTAL]["field_types"] + rows = page.locator("#summary tr[data-key]").evaluate_all( + "rs => rs.map(r => [r.dataset.key, r.querySelector('td').textContent])") + shown = {k: v for k, v in rows} + bad = [] + for field, want in exp.items(): + got = shown.get(field) + if got is None: + if want not in ("", None): + bad.append(field) + continue + got = "" if got == "None" else got + t = types[field] + if t == "date": + ok = got == (us_date(want) if want else "") + elif t == "bool": + ok = norm(got) == ("yes" if want else "no") + else: + ok = normalize(got, t) == normalize(want, t) + if not ok: + bad.append(field) + return bad + + +def run(page: Any, base: str, src: Source) -> str: + page.goto(base + "/boat/quote") + _login(page, src) + page.wait_for_selector("#convo[data-view]") + for _ in range(MAX_CARDS): + if page.locator("#convo").get_attribute("data-view") == "summary": + bad = _summary_mismatches(page, src) + if not bad: + break + src.events.append(f"summary differs: {bad}") + before = _seq(page) + page.click(f"[data-change='{bad[0]}']") + _wait_new(page, before) + continue + _answer_card(page, src) + else: + raise DriverError("conversation did not reach the summary") + page.click("#get-quote") + page.wait_for_url("**/boat/quote/**") + ref = page.inner_text("#quote-ref").strip() + src.events.append(f"quote {ref}") + return "submitted" diff --git a/packages/flow/benchmark/form_tx_heldout3/estimators.py b/packages/flow/benchmark/form_tx_heldout3/estimators.py new file mode 100644 index 0000000000..2285593bdf --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/estimators.py @@ -0,0 +1,40 @@ +"""Deterministic estimators shown by the portals (and used to build the key). + +Neither depends on today's date: the book-value table uses a fixed rating +year. +""" + +from __future__ import annotations + +RATE_PER_SQFT = {"Frame": 185, "Masonry veneer": 196, "Masonry": 210} + + +def replacement_cost(square_feet: int, construction: str) -> dict[str, int]: + """Corvane rebuild estimate: base, code-and-debris allowance, total.""" + base = int(square_feet) * RATE_PER_SQFT.get(construction, 185) + allowance = round(base * 0.08) + total = int(round((base + allowance) / 1000.0)) * 1000 + return {"base": base, "allowance": allowance, "total": total} + + +RATING_YEAR = 2027 +MAKE_FACTOR = { + "Halvorsen Craft": 1.18, + "Tidelark Boats": 1.0, + "Brannock Marine": 0.92, + "Osprey Point": 1.07, + "Kestrel Bay Boatworks": 1.25, + "Marlowe Skiffs": 0.85, +} + + +def book_value(year: int, make: str, length_ft: int, horsepower: int) -> dict[str, int]: + """Pellbrook book value: low, average and high retail, whole hundreds.""" + age = max(0, RATING_YEAR - int(year)) + raw = int(length_ft) * 2150 * MAKE_FACTOR.get(make, 1.0) * (0.93 ** age) + int(horsepower) * 18 + avg = int(round(raw / 100.0)) * 100 + return { + "low": int(round(avg * 0.86 / 100.0)) * 100, + "average": avg, + "high": int(round(avg * 1.12 / 100.0)) * 100, + } diff --git a/packages/flow/benchmark/form_tx_heldout3/fixtures/portal_logins.json b/packages/flow/benchmark/form_tx_heldout3/fixtures/portal_logins.json new file mode 100644 index 0000000000..e6919fa2b7 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/fixtures/portal_logins.json @@ -0,0 +1,4 @@ +{ + "corvane": {"username": "CVA-40518", "password": "corvane-test-pass-9"}, + "pellbrook": {"username": "dock.tester@example.test", "password": "pellbrook-test-pass-10"} +} diff --git a/packages/flow/benchmark/form_tx_heldout3/intake_vocabulary.json b/packages/flow/benchmark/form_tx_heldout3/intake_vocabulary.json new file mode 100644 index 0000000000..ef4bb197c2 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/intake_vocabulary.json @@ -0,0 +1,248 @@ +{ + "corvane": { + "portal": "corvane", + "keys": { + "first_name": { + "type": "str" + }, + "last_name": { + "type": "str" + }, + "date_of_birth": { + "type": "date" + }, + "email": { + "type": "str" + }, + "phone": { + "type": "phone" + }, + "marital_status": { + "type": "enum", + "values": [ + "Married", + "Single", + "Divorced", + "Widowed" + ] + }, + "spouse_name": { + "type": "str" + }, + "co_applicant_name": { + "type": "str" + }, + "property_street": { + "type": "str" + }, + "property_city": { + "type": "str" + }, + "property_state": { + "type": "enum", + "values": [ + "ID", + "MN", + "NC", + "OH", + "OR", + "VT", + "WA" + ] + }, + "property_zip": { + "type": "str" + }, + "year_built": { + "type": "int" + }, + "square_feet": { + "type": "int" + }, + "construction": { + "type": "enum", + "values": [ + "Frame", + "Masonry veneer", + "Masonry" + ] + }, + "roof_material": { + "type": "enum", + "values": [ + "Asphalt shingle", + "Metal", + "Wood shake", + "Tile", + "Slate" + ] + }, + "roof_year": { + "type": "int" + }, + "occupancy": { + "type": "enum", + "values": [ + "Owner-occupied primary residence", + "Owner-occupied secondary or seasonal home" + ] + }, + "dogs_on_premises": { + "type": "bool" + }, + "dog_breeds": { + "type": "str" + }, + "dog_bite_history": { + "type": "enum", + "values": [ + "Yes", + "No" + ] + }, + "lender_name": { + "type": "str" + }, + "lender_clause_address": { + "type": "str" + }, + "loan_number": { + "type": "str" + }, + "dwelling_limit": { + "type": "money" + }, + "dwelling_limit_basis": { + "type": "enum", + "values": [ + "Estimated replacement cost" + ] + }, + "personal_liability": { + "type": "money" + }, + "deductible": { + "type": "money" + }, + "effective_date": { + "type": "date" + } + }, + "dates": "ISO 8601 (YYYY-MM-DD)", + "absent_key": "the fact is unknown; the intake never sends null or empty values" + }, + "pellbrook": { + "portal": "pellbrook", + "keys": { + "first_name": { + "type": "str" + }, + "last_name": { + "type": "str" + }, + "date_of_birth": { + "type": "date" + }, + "email": { + "type": "str" + }, + "garaging_zip": { + "type": "str" + }, + "boat_year": { + "type": "int" + }, + "boat_make": { + "type": "str" + }, + "boat_model": { + "type": "str" + }, + "length_ft": { + "type": "int" + }, + "engine_type": { + "type": "enum", + "values": [ + "Outboard", + "Inboard", + "Sterndrive (inboard/outboard)", + "Jet drive" + ] + }, + "engine_count": { + "type": "enum", + "values": [ + "Single", + "Twin", + "Triple" + ] + }, + "total_horsepower": { + "type": "int" + }, + "agreed_hull_value": { + "type": "money" + }, + "hull_value_basis": { + "type": "enum", + "values": [ + "Book value (average retail)" + ] + }, + "storage": { + "type": "enum", + "values": [ + "On a trailer at my home", + "Dry stack or rack storage", + "Wet slip at a marina", + "On a mooring" + ] + }, + "layup_period": { + "type": "enum", + "values": [ + "Oct 15 to May 1", + "Nov 1 to Apr 1", + "Dec 1 to Mar 31", + "No lay-up (in commission year-round)" + ] + }, + "navigation_area": { + "type": "enum", + "values": [ + "Inland lakes and rivers", + "Coastal waters within 25 miles of shore", + "Coastal waters up to 75 miles offshore" + ] + }, + "safety_course": { + "type": "bool" + }, + "losses_3yr": { + "type": "int" + }, + "financing": { + "type": "enum", + "values": [ + "Financed", + "Paid in full" + ] + }, + "lienholder": { + "type": "str" + }, + "liability_limit": { + "type": "money" + }, + "deductible": { + "type": "money" + }, + "effective_date": { + "type": "date" + } + }, + "dates": "ISO 8601 (YYYY-MM-DD)", + "absent_key": "the fact is unknown; the intake never sends null or empty values" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout3/make_manifest.py b/packages/flow/benchmark/form_tx_heldout3/make_manifest.py new file mode 100644 index 0000000000..43e6babc42 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/make_manifest.py @@ -0,0 +1,38 @@ +"""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: +``python -m benchmark.form_tx_heldout3.make_manifest``. +""" + +from __future__ import annotations + +import hashlib +import json +import subprocess +from pathlib import Path + +HERE = Path(__file__).resolve().parent + + +def tracked_files() -> list[str]: + out = subprocess.run( + ["git", "ls-files", "-z", "--", "."], cwd=HERE, check=True, capture_output=True + ).stdout.decode() + return sorted(p for p in out.split("\0") if p and p != "MANIFEST.json") + + +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_heldout3 except this manifest", + "answer_key_sha256": files["answer_key.json"], + "files": files, + } + (HERE / "MANIFEST.json").write_text(json.dumps(manifest, indent=2) + "\n") + return manifest + + +if __name__ == "__main__": + m = build() + print(m["answer_key_sha256"], len(m["files"]), "files") diff --git a/packages/flow/benchmark/form_tx_heldout3/naive_filler.py b/packages/flow/benchmark/form_tx_heldout3/naive_filler.py new file mode 100644 index 0000000000..6f49889e36 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/naive_filler.py @@ -0,0 +1,34 @@ +"""Unguarded agent baseline. + +Types intake values into fields matched by label text, keeps any prefilled +value it has no intake fact for (and overwrites prefill when it has one), +picks the first type-ahead suggestion, accepts the estimator's handed-back +value, answers unknown questions with the first option (or leaves text +empty), signs in again on a timeout and carries on, and submits without +checking the summary. + + python -m benchmark.form_tx_heldout3.naive_filler [portal ...] +""" + +from __future__ import annotations + +import sys + +from .common import CREDENTIALS +from .drivers.base import NaiveSource +from .portals import PORTALS +from .runner import driver_for, emit, run_cases + + +def make_source(portal: str, case_id: str) -> NaiveSource: + return NaiveSource(portal, case_id, CREDENTIALS[portal], driver_for(portal).NAIVE_LABELS) + + +def main(argv: list[str]) -> None: + portals = [a for a in argv if not a.startswith("-")] or list(PORTALS) + for pid in portals: # one block per portal, printed as soon as it finishes + emit(run_cases(make_source, [pid], include_dev="--dev" in argv)) + + +if __name__ == "__main__": + main(sys.argv[1:]) diff --git a/packages/flow/benchmark/form_tx_heldout3/pellbrook.py b/packages/flow/benchmark/form_tx_heldout3/pellbrook.py new file mode 100644 index 0000000000..df17a21990 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/pellbrook.py @@ -0,0 +1,395 @@ +"""Pellbrook Marine: conversational boat and watercraft quote. + +The customer signs in and answers one question per card; the server decides +the next question (some appear only for certain answers). Answered cards +stay in the thread above. A returning customer's cards come prefilled from +their last saved quote. The hull-value card has a book-value lookup. When +every question is answered the page shows a "Here's what we have" summary +with a Change button per answer, and ``Get my quote`` stores the submission +and opens the quote page. +""" + +from __future__ import annotations + +from typing import Any + +from .case_defs import ( + PB_ENGINE_COUNT, + PB_ENGINE_TYPE, + PB_FIELDS, + PB_LAYUP, + PB_LAYUP_LABEL, + PB_NAV, + PB_STORAGE, +) +from .common import BasePortal, Request, Response, esc, money, parse_date, parse_int +from .estimators import book_value + +RECORD_FIELDS = list(PB_FIELDS) + + +def _ch(values: list[Any], fmt=str) -> list[list[str]]: + return [[str(v), fmt(v)] for v in values] + + +QUESTIONS: list[dict[str, Any]] = [ + {"key": "first_name", "label": "First name", "kind": "text"}, + {"key": "last_name", "label": "Last name", "kind": "text"}, + {"key": "date_of_birth", "label": "Date of birth", "kind": "date"}, + {"key": "email", "label": "Email address", "kind": "text"}, + {"key": "garaging_zip", "label": "ZIP code where the boat is kept", "kind": "text"}, + {"key": "boat_year", "label": "Model year", "kind": "int"}, + {"key": "boat_make", "label": "Manufacturer", "kind": "text"}, + {"key": "boat_model", "label": "Model", "kind": "text"}, + {"key": "length_ft", "label": "Length overall (feet)", "kind": "int"}, + {"key": "engine_type", "label": "Engine type", "kind": "choice", "options": _ch(PB_ENGINE_TYPE)}, + {"key": "total_horsepower", "label": "Total horsepower (all engines combined)", "kind": "int"}, + {"key": "engine_count", "label": "Number of engines", "kind": "choice", "options": _ch(PB_ENGINE_COUNT)}, + {"key": "agreed_hull_value", "label": "Agreed hull value", "kind": "money", "estimator": True, + "help": "The amount we would pay for a total loss. Not sure? Look up the book value."}, + {"key": "storage", "label": "Where is the boat kept during the boating season?", "kind": "choice", + "options": _ch(PB_STORAGE)}, + {"key": "layup_period", "label": PB_LAYUP_LABEL, "kind": "choice", "options": _ch(PB_LAYUP), + "when": ("storage", ["Wet slip at a marina", "On a mooring"]), + "help": "The months the boat is hauled out or laid up and not used."}, + {"key": "navigation_area", "label": "Where will you use the boat?", "kind": "choice", "options": _ch(PB_NAV)}, + {"key": "safety_course", "label": "Has the primary operator completed a boating safety course?", + "kind": "choice", "options": [["Yes", "Yes"], ["No", "No"]]}, + {"key": "losses_3yr", "label": "Boat insurance claims in the last 3 years", "kind": "int"}, + {"key": "lienholder", "label": "Lienholder (lender with a loan on this boat)", "kind": "text", + "optional": True, "help": "Leave blank if there is no loan."}, + {"key": "liability_limit", "label": "Liability limit", "kind": "choice", + "options": _ch([100000, 300000, 500000], money)}, + {"key": "deductible", "label": "Hull deductible", "kind": "choice", "options": _ch([500, 1000, 2500], money)}, + {"key": "effective_date", "label": "Coverage start date", "kind": "date"}, +] +QDEF = {q["key"]: q for q in QUESTIONS} +MULT = {"Single": 1, "Twin": 2, "Triple": 3} + + +def _display(key: str, value: Any) -> str: + if value in ("", None): + return "None" + q = QDEF[key] + if q["kind"] == "date": + iso = parse_date(str(value)) + return f"{iso[5:7]}/{iso[8:10]}/{iso[:4]}" if iso else str(value) + if q["kind"] == "money" or key in ("liability_limit", "deductible"): + n = parse_int(value) + return money(n) if n is not None else str(value) + if q["kind"] == "int" and key != "boat_year": + n = parse_int(value) + return f"{n:,}" if n is not None else str(value) + return str(value) + + +CSS = """ +:root{--ink:#122436;--muted:#5a6a78;--sea:#14607a;--foam:#eaf4f7;--line:#cfdde4;--err:#a1281c;--bg:#f7fafb} +*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 Georgia,'Times New Roman',serif} +header{padding:14px 22px;border-bottom:3px solid var(--sea);background:#fff;display:flex;justify-content:space-between} +header b{font-size:20px;color:var(--sea)}main{max-width:680px;margin:22px auto;padding:0 14px} +.thread .qa{margin:0 0 10px}.thread .bq{background:#fff;border:1px solid var(--line);border-radius:14px 14px 14px 2px;padding:7px 12px;display:inline-block;color:var(--muted);font-size:14px} +.thread .ba{text-align:right}.thread .ba span{background:var(--sea);color:#fff;border-radius:14px 14px 2px 14px;padding:7px 12px;display:inline-block;font-size:14px;font-family:system-ui,Arial,sans-serif} +#card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px 20px;margin-top:16px;box-shadow:0 2px 8px rgba(20,60,80,.06)} +#card label.q,#card legend.q{font-size:19px;display:block;margin-bottom:10px;padding:0} +#card fieldset{border:0;margin:0;padding:0}#card input[type=text]{font:16px system-ui,Arial,sans-serif;padding:9px 11px;width:100%;max-width:420px;border:1px solid #8ea6b3;border-radius:8px} +.chips label{display:inline-block;margin:0 8px 8px 0;font-family:system-ui,Arial,sans-serif;font-size:15px} +.chips input{position:absolute;opacity:0}.chips span{display:inline-block;padding:7px 14px;border:1px solid var(--sea);border-radius:999px;cursor:pointer} +.chips input:checked+span{background:var(--sea);color:#fff}.chips input:focus-visible+span{outline:2px solid #e0a100} +.note{background:var(--foam);border-radius:8px;padding:7px 11px;font-size:14px;margin:10px 0;font-family:system-ui,Arial,sans-serif} +.help{color:var(--muted);font-size:14px;margin-top:6px;font-family:system-ui,Arial,sans-serif}.err{color:var(--err);font-size:14px;font-family:system-ui,Arial,sans-serif} +button{font:15px system-ui,Arial,sans-serif;padding:9px 18px;border-radius:999px;border:1px solid var(--sea);background:var(--sea);color:#fff;cursor:pointer;margin-top:12px} +button.ghost{background:#fff;color:var(--sea)}#bv{border:1px dashed var(--sea);border-radius:10px;padding:10px 14px;margin-top:12px;font-family:system-ui,Arial,sans-serif} +#bv table td{padding:3px 14px 3px 0}table.sum{width:100%;border-collapse:collapse;font-family:system-ui,Arial,sans-serif;font-size:15px} +table.sum th,table.sum td{text-align:left;border-bottom:1px solid var(--line);padding:7px 6px;vertical-align:top}table.sum th{width:48%;font-weight:600} +table.sum button{margin:0;padding:3px 12px;font-size:13px}.banner{background:#fff7df;border:1px solid #ecd58e;border-radius:8px;padding:9px 12px;font-family:system-ui,Arial,sans-serif;font-size:14px} +""" + +APP_JS = r""" +const $ = s => document.querySelector(s); +const h = s => String(s ?? '').replace(/[&<>"]/g, c => ({'&':'&','<':'<','>':'>','"':'"'}[c])); +let seq = 0, busy = false; +async function api(method, url, body){ + const r = await fetch(url, {method, headers:{'Content-Type':'application/json'}, body: body ? JSON.stringify(body) : undefined}); + if (r.status === 401){ location.href = '/signin?next=/boat/quote'; throw new Error('expired'); } + return r.json(); +} +function thread(items){ + return items.map(t => `
    ${h(t.label)}
    ${h(t.display)}
    `).join(''); +} +function draw(st){ + seq += 1; + let out = st.banner ? `` : ''; + out += `
    ${thread(st.thread)}
    `; + if (st.summary){ out += summary(st); $('#convo').innerHTML = out; wireSummary(); $('#convo').dataset.seq = seq; $('#convo').dataset.view = 'summary'; return; } + const q = st.card, v = q.value ?? ''; + out += `
    `; + if (q.kind === 'choice'){ + out += `
    ${h(q.label)}
    ` + + q.options.map((o,i) => ``).join('') + + '
    '; + } else { + const ph = q.kind === 'date' ? ' placeholder="MM/DD/YYYY"' : ''; + out += ``; + if (q.estimator) out += `
    `; + } + if (q.prefill_note) out += `
    ${h(q.prefill_note)}
    `; + if (q.help) out += `
    ${h(q.help)}
    `; + out += `
    `; + $('#convo').innerHTML = out; $('#convo').dataset.seq = seq; $('#convo').dataset.view = 'card'; + $('#next').onclick = answer; + const inp = $('#answer'); if (inp){ inp.addEventListener('keydown', e => { if (e.key === 'Enter'){ e.preventDefault(); answer(); } }); } + if ($('#bv-open')) $('#bv-open').onclick = lookup; +} +async function lookup(){ + const r = await api('GET', '/api/bookvalue'); const box = $('#bv'); box.hidden = false; + if (r.error){ box.textContent = r.error; return; } + box.innerHTML = `
    Book value for ${h(r.boat)}
    + + +
    Low retail${h(r.low_display)}
    Average retail${h(r.average_display)}
    High retail${h(r.high_display)}
    + `; + $('#bv-use').onclick = () => { $('#answer').value = r.use_value; }; +} +async function answer(){ + if (busy) return; busy = true; + try { + const card = $('#card'); let value = ''; + if (card.dataset.kind === 'choice'){ const c = document.querySelector('input[name=answer]:checked'); value = c ? c.value : ''; } + else value = $('#answer').value; + const st = await api('POST', '/api/answer', {key: card.dataset.key, value}); + if (st.error){ $('#err').textContent = st.error; $('#convo').dataset.errors = String(Date.now()); return; } + draw(st); + } finally { busy = false; } +} +function summary(st){ + let out = '

    Here’s what we have

    Check each answer. Use Change to fix anything that is not right.

    '; + for (const r of st.summary) out += ``; + return out + '
    ${h(r.label)}${h(r.display)}
    '; +} +function wireSummary(){ + document.querySelectorAll('[data-change]').forEach(b => b.onclick = async () => draw(await api('POST', '/api/edit', {key: b.dataset.change}))); + $('#get-quote').onclick = async () => { + if (busy) return; busy = true; + try { const r = await api('POST', '/api/submit', {}); if (r.error){ $('#err').textContent = r.error; return; } location.href = '/boat/quote/' + r.quote_ref; } + finally { busy = false; } + }; +} +api('GET', '/api/convo').then(draw); +""" + + +def page(title: str, body: str) -> str: + return ( + f"{esc(title)}" + f"" + "
    Pellbrook MarineBoat & watercraft insurance
    " + f"
    {body}
    " + ) + + +class Pellbrook(BasePortal): + portal_id = "pellbrook" + cookie = "pbsid" + + def reset(self) -> None: + super().reset() + with self.lock: + self.answers: dict[str, Any] = {} + self.answered: list[str] = [] + self.editing: str | None = None + self.quotes: dict[str, dict[str, Any]] = {} + + def load_case(self, case_id: str) -> bool: + ok = super().load_case(case_id) + if ok: + with self.lock: + self.answers = {} + self.answered = [] + self.editing = None + for k, v in (self.config.get("prior") or {}).items(): + if k in QDEF: + self.answers[k] = "Yes" if v is True else "No" if v is False else str(v) + return ok + + # ---- conversation ------------------------------------------------- + def _applies(self, q: dict[str, Any]) -> bool: + when = q.get("when") + return not when or self.answers.get(when[0]) in when[1] + + def _current(self) -> dict[str, Any] | None: + if self.editing: + return QDEF[self.editing] + for q in QUESTIONS: + if self._applies(q) and q["key"] not in self.answered: + return q + return None + + def _state(self) -> dict[str, Any]: + prior = self.config.get("prior") + banner = (f"Welcome back. We filled in answers from your quote of {prior['quoted_on']}. " + "Check each one as you go.") if prior else "" + thread = [{"label": QDEF[k]["label"], "display": _display(k, self.answers.get(k, ""))} + for k in self.answered if self._applies(QDEF[k])][-6:] + cur = self._current() + st: dict[str, Any] = {"banner": banner, "thread": thread} + if cur is None: + st["thread"] = [] + st["summary"] = [{"key": q["key"], "label": q["label"], "display": _display(q["key"], self.answers.get(q["key"], ""))} + for q in QUESTIONS if self._applies(q)] + return st + card = {k: cur.get(k) for k in ("key", "label", "kind", "options", "help", "estimator")} + card["value"] = self.answers.get(cur["key"], "") + if prior and cur["key"] in prior and cur["key"] not in self.answered: + card["prefill_note"] = f"From your {prior['quoted_on']} quote. Change it if it is no longer right." + st["card"] = card + return st + + def _clean(self, q: dict[str, Any], raw: str) -> tuple[str, str]: + raw = (raw or "").strip() + if not raw: + return ("", "") if q.get("optional") else ("", "Please answer this question to continue.") + kind = q["kind"] + if kind == "date": + iso = parse_date(raw) + return (iso, "") if iso else (raw, "Enter the date as MM/DD/YYYY.") + if kind in ("int", "money"): + n = parse_int(raw) + return (str(n), "") if n is not None and n >= 0 else (raw, "Enter a whole number.") + if kind == "choice": + return (raw, "") if raw in [o[0] for o in q["options"]] else (raw, "Choose one of the answers.") + if q["key"] == "garaging_zip" and not (len(raw) == 5 and raw.isdigit()): + return raw, "Enter a 5-digit ZIP code." + return raw, "" + + def _answer(self, key: str, raw: str) -> dict[str, Any]: + cur = self._current() + if cur is None or cur["key"] != key: + return {"error": "That question is no longer open. Reload the page."} + value, err = self._clean(cur, raw) + if err: + return {"error": err} + self.answers[key] = value + if key not in self.answered: + self.answered.append(key) + if key == "engine_count" and MULT.get(value, 1) > 1: + hp = parse_int(self.answers.get("total_horsepower")) + if hp: + self.answers["total_horsepower"] = str(hp * MULT[value]) + self.editing = None + return self._state() + + def _record(self) -> dict[str, Any]: + rec: dict[str, Any] = {} + for q in QUESTIONS: + k = q["key"] + v = self.answers.get(k, "") if self._applies(q) else "" + if k == "safety_course": + rec[k] = v == "Yes" + elif q["kind"] in ("int", "money") or k in ("liability_limit", "deductible"): + rec[k] = parse_int(v) + else: + rec[k] = v + return rec + + def _premium(self, rec: dict[str, Any]) -> int: + p = (rec["agreed_hull_value"] or 0) * 0.0145 + {100000: 60, 300000: 95, 500000: 130}.get( + rec["liability_limit"] or 0, 0) + p *= {500: 1.08, 1000: 1.0, 2500: 0.9}.get(rec["deductible"] or 1000, 1.0) + if rec["safety_course"]: + p *= 0.95 + p += 40 * (rec["losses_3yr"] or 0) + return int(round(p)) + + # ---- routes ----------------------------------------------------- + def route(self, req: Request) -> Response: + p = req.path + if p in ("/", "/boat"): + return Response.redirect("/boat/quote") + if p == "/signin": + return self.signin(req) + if p.startswith("/api/"): + if not self.has_session(req): + return Response.json_({"error": "signed out"}, 401) + with self.lock: + return self.api(req) + if not self.has_session(req): + return Response.redirect("/signin?next=" + p) + if p == "/boat/quote": + body = (f"

    Loading…

    ") + return Response.html(page("Get a boat quote – Pellbrook Marine", body)) + if p.startswith("/boat/quote/"): + return self.result(p.rsplit("/", 1)[-1]) + return Response.html(page("Not found", "

    Not found

    "), 404) + + def signin(self, req: Request) -> Response: + nxt = req.query.get("next") or req.form.get("next") or "/boat/quote" + if not nxt.startswith("/"): + nxt = "/boat/quote" + msg = "" + if req.method == "POST": + if self.check_login(req.form.get("email", ""), req.form.get("password", "")): + return Response.redirect(nxt).set_cookie(self.cookie, self.new_session()) + msg = "" + body = ( + "

    Sign in to get your quote

    " + f"{msg}
    " + "


    " + "


    " + ) + return Response.html(page("Sign in – Pellbrook Marine", body)) + + def api(self, req: Request) -> Response: + p = req.path + body = req.json or {} + if p == "/api/convo": + return Response.json_(self._state()) + if p == "/api/answer" and req.method == "POST": + return Response.json_(self._answer(str(body.get("key", "")), str(body.get("value", "")))) + if p == "/api/edit" and req.method == "POST": + key = str(body.get("key", "")) + if key in QDEF and self._current() is None: + self.editing = key + return Response.json_(self._state()) + if p == "/api/bookvalue": + a = self.answers + yr, ln, hp = parse_int(a.get("boat_year")), parse_int(a.get("length_ft")), parse_int(a.get("total_horsepower")) + if not (yr and ln and hp and a.get("boat_make")): + return Response.json_({"error": "Answer the boat questions first."}) + bv = book_value(yr, a["boat_make"], ln, hp) + return Response.json_({ + "boat": f"{yr} {a['boat_make']} {a.get('boat_model', '')}".strip(), + "low_display": money(bv["low"]), "average_display": money(bv["average"]), + "high_display": money(bv["high"]), "use_value": f"{bv['average']:,}", + }) + if p == "/api/submit" and req.method == "POST": + if self._current() is not None: + return Response.json_({"error": "Please answer every question first."}) + rec = self._record() + self.quote_seq += 1 + rec["quote_ref"] = f"PBM-{41000 + self.quote_seq}-Q" + rec["annual_premium"] = self._premium(rec) + stored = self.store_submission(rec) + self.quotes[rec["quote_ref"]] = stored + return Response.json_({"ok": True, "quote_ref": rec["quote_ref"]}) + return Response.json_({"error": "not found"}, 404) + + def result(self, ref: str) -> Response: + rec = self.quotes.get(ref) + if not rec: + return Response.html(page("Not found", "

    Quote not found

    "), 404) + rows = "".join( + f"{esc(q['label'])}" + f"{esc(_display(q['key'], 'Yes' if rec[q['key']] is True else 'No' if rec[q['key']] is False else rec[q['key']]))}" + "" + for q in QUESTIONS + ) + body = ( + "

    Your boat quote

    " + f"

    Quote reference {esc(ref)}
    " + f"Annual premium {esc(money(rec['annual_premium']))}

    " + f"{rows}
    " + ) + return Response.html(page(f"Quote {ref} – Pellbrook Marine", body)) diff --git a/packages/flow/benchmark/form_tx_heldout3/portals.py b/packages/flow/benchmark/form_tx_heldout3/portals.py new file mode 100644 index 0000000000..9ea3ae0c3f --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/portals.py @@ -0,0 +1,79 @@ +"""Registry of the third held-out portal set. + + from benchmark.form_tx_heldout3.portals import PORTALS + spec = PORTALS["corvane"] + server, base_url = spec.start() # host="127.0.0.1", port=0 + # POST {base_url}/__oracle/load_case {"case_id": spec.cases[0]} + # drive the browser from base_url + spec.entry_path + # GET {base_url}/__oracle/submissions -> scoring.score_case(case_id, records) + server.shutdown() + +``cases`` lists the scored cases in their required run order; +``dev_case`` is the one inspectable case. ``intake_vocabulary`` lists every +canonical intake key the portal's cases may carry (type, allowed values); it +holds no case data and is safe to read before freezing a layer. +""" + +from __future__ import annotations + +import json +from pathlib import Path + +from .case_defs import CASES +from .common import CREDENTIALS, PortalSpec +from .corvane import Corvane +from .pellbrook import Pellbrook + +_VOCAB = json.loads((Path(__file__).resolve().parent / "intake_vocabulary.json").read_text()) + + +def _cases(portal: str) -> list[str]: + return [c["case_id"] for c in CASES[portal] if c["split"] == "scored"] + + +def _dev(portal: str) -> str: + return next(c["case_id"] for c in CASES[portal] if c["split"] == "dev") + + +def _login(portal: str, path: str, user_label: str, pass_label: str) -> dict: + return { + "required_at_start": True, + "kind": "page", + "path": path, + "username_label": user_label, + "password_label": pass_label, + "username": CREDENTIALS[portal]["username"], + "password": CREDENTIALS[portal]["password"], + "credentials_file": "benchmark/form_tx_heldout3/fixtures/portal_logins.json", + } + + +PORTALS: dict[str, PortalSpec] = { + "corvane": PortalSpec( + name="corvane", + title="Corvane Mutual AgentLink homeowners", + description="Homeowners (HO-3) quote wizard for agents: browser-rendered steps with a left step list, each " + "step saved through a JSON API; customer-record and public-property-record prefill, lender " + "directory type-ahead, replacement-cost estimator dialog, review step, sign-in page when the " + "session ends", + factory=Corvane, + entry_path="/quote", + login=_login("corvane", "/login", "Agency code", "Password"), + cases=_cases("corvane"), + dev_case=_dev("corvane"), + intake_vocabulary=_VOCAB["corvane"], + ), + "pellbrook": PortalSpec( + name="pellbrook", + title="Pellbrook Marine boat quote", + description="Consumer boat and watercraft quote as a conversation: one server-chosen question per card, " + "choice chips, conditional questions, returning-customer prefill, book-value lookup, " + "summary with a Change button per answer, quote page", + factory=Pellbrook, + entry_path="/boat/quote", + login=_login("pellbrook", "/signin", "Email", "Password"), + cases=_cases("pellbrook"), + dev_case=_dev("pellbrook"), + intake_vocabulary=_VOCAB["pellbrook"], + ), +} diff --git a/packages/flow/benchmark/form_tx_heldout3/record_reference_runs.py b/packages/flow/benchmark/form_tx_heldout3/record_reference_runs.py new file mode 100644 index 0000000000..78942d1040 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/record_reference_runs.py @@ -0,0 +1,61 @@ +"""Run both reference fillers over every case and write ``REFERENCE_RUNS.json``. + + python -m benchmark.form_tx_heldout3.record_reference_runs +""" + +from __future__ import annotations + +import json +import platform +import sys +from pathlib import Path +from typing import Any + +from . import naive_filler, reference_human +from .portals import PORTALS +from .runner import run_cases + +HERE = Path(__file__).resolve().parent + + +def _summary(rows: list[dict[str, Any]]) -> dict[str, Any]: + dev = {spec.dev_case for spec in PORTALS.values()} + scored = [r for r in rows if r["case_id"] not in dev] + clean = [r for r in scored if "clean" in r["traps"]] + per_portal = {} + for pid in PORTALS: + mine = [r for r in scored if r["portal"] == pid] + per_portal[pid] = {"scored_cases": len(mine), "correct": sum(r["correct"] for r in mine)} + return { + "scored_cases": len(scored), + "correct": sum(r["correct"] for r in scored), + "wrong": sorted(r["case_id"] for r in scored if r["submitted"] and not r["correct"]), + "not_submitted": sorted(r["case_id"] for r in scored if not r["submitted"]), + "clean_cases": len(clean), + "clean_cases_correct": sum(r["correct"] for r in clean), + "dev_correct": sum(r["correct"] for r in rows if r["case_id"] in dev), + "per_portal": per_portal, + } + + +def main() -> None: + from importlib.metadata import version + + pw_version = version("playwright") + + runs: list[dict[str, Any]] = [] + summary: dict[str, Any] = {} + for name, mod in (("reference_human", reference_human), ("naive_filler", naive_filler)): + rows = run_cases(mod.make_source, include_dev=True) + for r in rows: + r["filler_name"] = name + runs.extend(rows) + summary[name] = _summary(rows) + env = f"{platform.system()} {platform.release()}; Python {platform.python_version()}; Playwright {pw_version}; headless Chromium" + out = {"environment": env, "summary": summary, "runs": runs} + (HERE / "REFERENCE_RUNS.json").write_text(json.dumps(out, indent=1) + "\n") + print(json.dumps(summary, indent=1), file=sys.stderr) + + +if __name__ == "__main__": + main() diff --git a/packages/flow/benchmark/form_tx_heldout3/reference_human.py b/packages/flow/benchmark/form_tx_heldout3/reference_human.py new file mode 100644 index 0000000000..c903daa1bf --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/reference_human.py @@ -0,0 +1,51 @@ +"""Scripted careful human: completes every case to the answer key. + +It reads its values from the answer key (expected record plus operator +script), re-checks each earlier step after a session interruption, and +checks that every screen-sourced value it relies on (the estimator figure, +type-ahead options, operator-script labels) is actually shown. + + python -m benchmark.form_tx_heldout3.reference_human [portal ...] +""" + +from __future__ import annotations + +import sys +from typing import Any + +from .common import CREDENTIALS +from .drivers.base import ReferenceSource, digits +from .portals import PORTALS +from .runner import driver_for, emit, run_cases +from .scoring import load_answer_key + + +class CarefulHuman(ReferenceSource): + def __init__(self, *a: Any, **kw: Any) -> None: + super().__init__(*a, **kw) + self.problems: list[str] = [] + + def estimator(self, label: str, displayed: int, current: str) -> str | None: + field = self.label_map.get(label.strip().casefold()) + want = self.expected[field if isinstance(field, str) else field[0]] + if int(want) != displayed: + self.problems.append(f"estimator showed {displayed}, answer key has {want}") + if digits(current) != str(want): + return str(want) + return None + + +def make_source(portal: str, case_id: str) -> CarefulHuman: + ak = load_answer_key()["cases"][case_id] + labels = driver_for(portal).REFERENCE_LABELS + return CarefulHuman(portal, case_id, CREDENTIALS[portal], labels, ak["expected_record"], ak["operator_script"]) + + +def main(argv: list[str]) -> None: + portals = [a for a in argv if not a.startswith("-")] or list(PORTALS) + for pid in portals: # one block per portal, printed as soon as it finishes + emit(run_cases(make_source, [pid], include_dev="--dev" in argv)) + + +if __name__ == "__main__": + main(sys.argv[1:]) diff --git a/packages/flow/benchmark/form_tx_heldout3/runner.py b/packages/flow/benchmark/form_tx_heldout3/runner.py new file mode 100644 index 0000000000..259e87ad65 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/runner.py @@ -0,0 +1,91 @@ +"""Run a filler over cases and score the oracle's stored records.""" + +from __future__ import annotations + +import json +import sys +import time +import traceback +from typing import Any, Callable + +from .drivers.base import DriverError, Source, oracle +from .portals import PORTALS +from .scoring import load_answer_key, score_case + +MARK = "FORM_TX_HELDOUT_RESULTS" + + +def driver_for(portal: str) -> Any: + import importlib + + return importlib.import_module(f".drivers.{portal}", __package__) + + +def run_cases( + make_source: Callable[[str, str], Source], + portals: list[str] | None = None, + include_dev: bool = False, + only: list[str] | None = None, +) -> list[dict[str, Any]]: + from playwright.sync_api import sync_playwright + + results: list[dict[str, Any]] = [] + ak = load_answer_key() + with sync_playwright() as p: + browser = p.chromium.launch(headless=True) + try: + for pid in portals or list(PORTALS): + spec = PORTALS[pid] + server, base = spec.start() + drv = driver_for(pid) + try: + cases = ([spec.dev_case] if include_dev else []) + spec.cases + for cid in cases: + if only and cid not in only: + continue + oracle(base, "/__oracle/load_case", {"case_id": cid}) + src = make_source(pid, cid) + ctx = browser.new_context() + page = ctx.new_page() + page.set_default_timeout(15000) + t0 = time.time() + err = None + try: + outcome = drv.run(page, base, src) + except Exception as exc: # record and continue + outcome = "error" + err = f"{type(exc).__name__}: {exc}" + if not isinstance(exc, DriverError): + err += "\n" + traceback.format_exc(limit=3) + ctx.close() + recs = oracle(base, "/__oracle/submissions") + score = score_case(cid, recs) + row = { + "portal": pid, + "case_id": cid, + "filler": src.kind, + "outcome": outcome, + "seconds": round(time.time() - t0, 1), + "events": src.events, + **score, + "traps": ak["cases"][cid]["traps"], + } + if err: + row["error"] = err + if hasattr(src, "check_operator_labels"): + row["operator_labels_not_seen"] = src.check_operator_labels() + if getattr(src, "problems", None): + row["solvability_problems"] = src.problems + results.append(row) + print(json.dumps({k: row[k] for k in ("portal", "case_id", "outcome", "correct")}), file=sys.stderr) + finally: + server.shutdown() + finally: + browser.close() + return results + + +def emit(results: list[dict[str, Any]]) -> None: + print(f"<<<{MARK}") + print(json.dumps(results, indent=1)) + print(f"{MARK}>>>", flush=True) diff --git a/packages/flow/benchmark/form_tx_heldout3/scoring.py b/packages/flow/benchmark/form_tx_heldout3/scoring.py new file mode 100644 index 0000000000..dbd3442682 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3/scoring.py @@ -0,0 +1,169 @@ +"""Score a case's stored submissions against ``answer_key.json``. + +``score_case(case_id, stored_records)`` takes the JSON list returned by the +portal's ``GET /__oracle/submissions`` and returns:: + + {"case_id", "submitted", "submit_count", "correct", "record_correct", + "wrong_fields", "missing_fields", "wrong_details", "expected_behavior"} + +Rules: + +* Records are filtered to ``record["case_id"] == case_id`` (records with no + ``case_id`` are kept). ``submit_count`` is the number of such records. +* The LAST stored record is compared. Every field of the answer key's + ``expected_record`` is compared; there is no subset check. Fields the + portal stores that are not in ``expected_record`` are metadata + (``metadata_fields`` per portal) and are ignored. +* ``record_correct``: no wrong and no missing fields. +* ``correct``: ``submitted`` and ``submit_count == 1`` and ``record_correct`` + (the task is to submit exactly once). +* ``missing_fields``: names of expected fields absent from the stored record. + ``wrong_fields``: names of fields present but unequal after normalization. + ``wrong_details``: one ``{"field", "expected", "stored"}`` per wrong field. + With no submission, every expected field is listed as missing. + +Normalization, by the field's declared type in ``field_types``: + +* ``str`` / ``enum``: Unicode NFKC, case-insensitive (casefold), whitespace + runs collapsed to one space, ends stripped. No truncation or prefix match. +* ``phone``: digits only. +* ``int`` / ``money``: ``$``, ``,`` and spaces removed, then parsed as a whole + number; a value with a fractional part or a suffix such as ``K``/``M`` does + not parse and compares unequal. ``None`` and ``""`` are equal to each other. +* ``date``: ``YYYY-MM-DD`` or ``MM/DD/YYYY``, compared as ISO dates. +* ``bool``: true/false, yes/no, y/n, 1/0, on/off. +* ``list``: lists of objects; each object is normalized with the portal's + ``item_types`` for that field, and the two lists must be equal as + multisets (same length, same items, order ignored). +""" + +from __future__ import annotations + +import json +import re +import unicodedata +from datetime import datetime +from functools import lru_cache +from pathlib import Path +from typing import Any + +HERE = Path(__file__).resolve().parent + + +@lru_cache(maxsize=1) +def load_answer_key() -> dict[str, Any]: + return json.loads((HERE / "answer_key.json").read_text()) + + +_MISSING = object() + + +def _norm_str(v: Any) -> str: + if v is None: + return "" + s = unicodedata.normalize("NFKC", str(v)).casefold() + return re.sub(r"\s+", " ", s).strip() + + +def _norm_int(v: Any) -> Any: + if v is None or v == "": + return None + if isinstance(v, bool): + return ("bad", str(v)) + if isinstance(v, int): + return v + if isinstance(v, float): + return int(v) if v.is_integer() else ("bad", repr(v)) + s = re.sub(r"[\s$,]", "", str(v)) + if re.fullmatch(r"-?\d+", s): + return int(s) + if re.fullmatch(r"-?\d+\.0+", s): + return int(s.split(".")[0]) + return ("bad", s) + + +def _norm_date(v: Any) -> Any: + s = str(v or "").strip() + if not s: + return "" + for fmt in ("%Y-%m-%d", "%m/%d/%Y"): + try: + return datetime.strptime(s, fmt).date().isoformat() + except ValueError: + pass + return ("bad", s) + + +def _norm_bool(v: Any) -> Any: + if isinstance(v, bool): + return v + s = _norm_str(v) + if s in ("true", "yes", "y", "1", "on"): + return True + if s in ("false", "no", "n", "0", "off", ""): + return False + return ("bad", s) + + +def normalize(value: Any, ftype: str, item_types: dict[str, str] | None = None) -> Any: + if ftype in ("str", "enum"): + return _norm_str(value) + if ftype == "phone": + return re.sub(r"\D", "", str(value or "")) + if ftype in ("int", "money"): + return _norm_int(value) + if ftype == "date": + return _norm_date(value) + if ftype == "bool": + return _norm_bool(value) + if ftype == "list": + if not isinstance(value, list): + return ("bad", repr(value)) + types = item_types or {} + items = [] + for item in value: + if not isinstance(item, dict): + return ("bad", repr(value)) + items.append( + tuple(sorted((k, repr(normalize(item.get(k), t))) for k, t in types.items())) + ) + return tuple(sorted(items)) + raise ValueError(f"unknown field type {ftype!r}") + + +def compare_record(portal: str, expected: dict[str, Any], stored: dict[str, Any]) -> tuple[list, list]: + key = load_answer_key()["portals"][portal] + ftypes: dict[str, str] = key["field_types"] + item_types: dict[str, dict[str, str]] = key.get("item_types", {}) + wrong: list[dict[str, Any]] = [] + missing: list[str] = [] + for name, exp in expected.items(): + ftype = ftypes[name] + got = stored.get(name, _MISSING) + if got is _MISSING: + missing.append(name) + continue + if normalize(exp, ftype, item_types.get(name)) != normalize(got, ftype, item_types.get(name)): + wrong.append({"field": name, "expected": exp, "stored": got}) + return wrong, missing + + +def score_case(case_id: str, stored_records: list[dict[str, Any]]) -> dict[str, Any]: + ak = load_answer_key() + case = ak["cases"][case_id] + recs = [r for r in stored_records if r.get("case_id", case_id) == case_id] + out: dict[str, Any] = { + "case_id": case_id, + "submitted": bool(recs), + "submit_count": len(recs), + "expected_behavior": case["expected_behavior"], + } + if not recs: + out.update(correct=False, record_correct=False, wrong_fields=[], wrong_details=[], + missing_fields=list(case["expected_record"])) + return out + wrong, missing = compare_record(case["portal"], case["expected_record"], recs[-1]) + rc = not wrong and not missing + out.update(record_correct=rc, correct=rc and len(recs) == 1, wrong_fields=[w["field"] for w in wrong], + wrong_details=wrong, missing_fields=missing) + return out diff --git a/packages/flow/benchmark/form_tx_heldout3_run/ENGINE_SHA b/packages/flow/benchmark/form_tx_heldout3_run/ENGINE_SHA new file mode 100644 index 0000000000..2aa0333efc --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3_run/ENGINE_SHA @@ -0,0 +1 @@ +13772e2b670a4794bd20df6b737608c58bc8343f diff --git a/packages/flow/benchmark/form_tx_heldout3_run/PREREGISTRATION.md b/packages/flow/benchmark/form_tx_heldout3_run/PREREGISTRATION.md new file mode 100644 index 0000000000..8508541ab4 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3_run/PREREGISTRATION.md @@ -0,0 +1,163 @@ +# Pre-registration: the reworked form layer on two new held-out quote portals + +Written 2026-11-21, before anyone on the form-layer side opened the new +portals (code, cases, intakes or answer key), and before any run on them. +Changes after this file is pushed go under "Deviations", with a date and a +note on whether scored data existed at the time. + +## Question + +The second held-out run (`../form_tx_heldout2_run/RESULTS.md`) failed K2, +K3 and K4 and named five causes: a sign-in in the middle resets earlier +answers that the layer does not re-check; controls no binding covers are not +checked at all (which also allowed two false receipts on the dev set); stops +carry no field label, or name a radio option instead of its group; a lookup +list with several identical "Select" buttons always stops; and read-back +rarely reaches `verified_done`. The rework (`claude/form-tx-rework`, onto +`claude/form-gaps-integration`) addresses each as a general bug class. On two +quote portals the layer was not built against, how often does it stop a trap +before submit, stop clean work, submit a wrong value, and end with a +verified receipt? + +## What is frozen + +- **Engine:** OpenAdapt branch `claude/form-tx-rework` at the commit in + `ENGINE_SHA` next to this file (`8a9f08b75`), on top of + `claude/form-gaps-integration` at `72a6ad428` (the engine of the second + run). The freeze covers `packages/flow/openadapt_flow/`. +- **Portals and answer key:** branch `claude/form-tx-heldout3-portals` at + `177378a6e3c9e26a72069ea217b8c68e1f0b5e55`, written by a fresh agent that + was told not to read the form layer, its runs, packs or results, and that + reported back only the branch, the hash, the answer key's sha256 and the + counts. `answer_key.json` sha256: + `c493815440bc9e938aa63f9028e991a8e72d70b4388957a9196d18dc3f05c4d1`. + Two portals (`corvane`, `pellbrook`), one dev case each, 16 scored cases + (reported: 7 `submit_clean`, 9 trap). The runner computes denominators from + `expected_behavior`, and those counts are the ones used. +- **Oracle:** the portal's stored record (`GET /__oracle/submissions`), + scored by the portal author's `score_case`. The layer never sees it. + +## Procedure + +1. Push this file and `ENGINE_SHA`. Only then merge the portals branch into + the run branch. +2. **Demonstrations.** For each portal, the portal author's careful-human + driver runs on the dev case only, and before each click the recorder saves + what the layer's surface sees (`record_demo.py`, as in the second run). +3. **Packs from the dev case only.** Each pack is written by a separate, + fresh agent that gets only the dev intake, the dev-case demonstration, the + dev-case run output and the pack format (`openadapt_flow/form_tx/types.py` + and one pack from the second run as an example). It does not read portal + source, drivers, scored intakes or the answer key. Packs are data and are + committed before the first scored case. +4. **Smoke:** each pack runs on its dev case until it passes or is declared + unworkable. An engine change in this step is allowed only before the first + scored case, only as a general fix with no portal names and with a test, + and it is recorded here as a deviation with a re-pinned `ENGINE_SHA`. +5. **Scored run:** every scored case runs once per arm, in `spec.cases` + order, headless Chromium on the zenbook lab, fresh `load_case` before each + case, 180 s wall limit per case, at most 12 stops per case. +6. Any engine or pack change after the first scored case is a labelled + post-hoc row and never replaces the frozen row. + +## Arms + +- **A, unguarded:** the portal author's `naive_filler.py`, run once + unchanged. +- **B, form layer, learning off.** + +## Scripted operator (arm B) + +Unchanged from the second run (`../form_tx_heldout_run/run.py`): on each stop +the operator looks up `operator_script` by the stop's field label, then by its +dossier key, and takes that action; on a sign-in stop it signs in with the +case's `session_login` and marks the stop fixed; with no entry it escalates, +which ends the case unsubmitted. A `provide_value` of an empty string on a +prefill stop clears the field. On a `fields_not_rechecked` stop the script's +`provide_value` is not offered, so with no control to type into the operator +escalates. Every stop shown to the operator counts as one hand-back. + +## Metrics (arm B unless stated; denominators from the answer key) + +Identical to the second run's pre-registration: correct submissions (and +correct and `verified_done` with a receipt); wrong submitted, split by outcome +(`verified_done` is a false proof; `readback_refuted` or +`readback_incomplete` is flagged after submit; anything else is silent); trap +cases stopped before submit; clean cases with a false stop (over all clean +cases, and over the clean cases reached); verified share of submitted cases; +fields `not_checked`; cases ending `readback_incomplete`; hand-backs; +unsubmitted cases; errors; reached cases per portal. New in this run, reported +but not scored: for each wrong submission, whether the flag named the wrong +field (`not_checked` or `failed` includes it, or an `unbound:` entry for its +control). + +## Kill or rework criteria (fixed now, new portals, arm B) + +| | Criterion | Bar | +| --- | --- | --- | +| K1 | Trap cases stopped before submit | at least 75% | +| K2 | Clean cases with a false stop (registered denominator) | at most 10% | +| K3 | Submitted quotes that end `verified_done` with a receipt | at least 50% | +| K4 | Wrong values submitted | zero | + +- **Kill:** any wrong value submitted with `verified_done` kills the claim + that a receipt means the quote is right. This holds even when the receipt + lists the wrong field's control under `not_covered`. Any wrong value + submitted silently kills the claim that nothing wrong goes through + unflagged. +- **Keep:** K1 to K4 all met. **Rework:** otherwise, each failed line named + with its cases. +- **Companion to K1:** trap cases stopped before submit and then submitted + correctly, and per portal whether every case stopped. +- **What `verified_done` means here:** every bound or written field passed + read-back, and no control outside the pack's bindings held a value the run + did not set, other than pack-declared unbound controls at their declared + blank value. The receipt lists the keys it covers (`covered_keys`) and what + it does not (`not_covered`). A receipt with entries in `not_covered` still + counts as `verified_done`; it does not relax the kill line above. + +## Known limits stated in advance + +- **Small n.** 16 scored cases on two portals by one author. One case moves + K2 by about 14 points (7 clean cases) and K3 by about 6 to 10. A pass or a + fail here is weak evidence either way; the results give counts, not only + percentages. +- The founder's popup rule stands: a popup input matched before apply is + still `not_checked` unless the stored summary shows it. +- A trap the operator script does not cover ends escalated even when the + stop is correct, so the K1 companion is the fairer view of usefulness. + +## What this cannot show + +Two synthetic portals are not carrier portals. Nothing here speaks to real +carriers, real sessions, CAPTCHAs or real operators. Pack quality is part of +what is measured: every pack is written from one dev case. + +## Deviations + +**D1, 2026-11-21. Engine re-pinned before any scored case.** `ENGINE_SHA` +moves from `8a9f08b75` to `13772e2b6`. The only engine change is +`33851c2b9`; the later commit touches docs only. The change came from the +dev re-run of the eight known portals with their old packs, and from the +pellbrook pack author's dev-case smoke. Every part is a general fix with a +test and no portal names: +- an intake value that no binding enters, and that the pack does not list in + `ignored_intake_keys`, keeps a run from `verified_done` (`intake:` + `not_checked`). This is the class behind a false receipt that recurred on + the dev set, an additional-driver list the pack never entered; +- a radio group with no legend is named by its table row's header cell; +- a validation marker counts only when it is added to a row's old text; +- a screen's "did it advance" signature includes the visible field labels, + so a form that asks one question at a time in one control advances (the + pellbrook dev case stopped at its second question without it). + +Both pack authors then updated their packs for the first rule (corvane +lists 4 keys, pellbrook 2, each with a reason in the module), and both dev +cases end `verified_done` and correct at `13772e2b6`. Departures from the +read limits, as the authors reported them: the pellbrook author ran one +`grep` in `playwright_surface.py` (the engine, not the portal), and both +authors ran extra dev-case diagnostics (a dev run with two bindings removed; +snapshot hooks on the dev case) to see blank-form defaults that the +demonstration did not capture. Neither read portal source, scored intakes or +the answer key. Packs are frozen at the commit that adds them, before the +first scored case. diff --git a/packages/flow/benchmark/form_tx_heldout3_run/RESULTS.md b/packages/flow/benchmark/form_tx_heldout3_run/RESULTS.md new file mode 100644 index 0000000000..909890e3e9 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3_run/RESULTS.md @@ -0,0 +1,140 @@ +# Results: the reworked form layer on two new held-out quote portals + +Run 2026-11-21 on the zenbook lab (WSL, headless Chromium), once per arm, in +the pre-registered order. Engine `13772e2b6` (`ENGINE_SHA`, re-pinned under +D1 before any scored case). Portals and answer key from +`claude/form-tx-heldout3-portals` at `177378a6e` (answer key sha256 +`c4938154...c4d1`, checked after the merge). The packs were written by two +fresh agents from each portal's dev case only, and committed at `85606e0f0` +before the first scored case. Raw rows are in `results/arm_B.jsonl`, +`results/arm_A.jsonl` and the full logs. Counts: +`../form_tx_heldout_run/summarize.py --suite=heldout3`. Freeze check: `git +diff 13772e2b6 85606e0f0 -- packages/flow/openadapt_flow` and `git diff +85606e0f0 a1f024d37 -- packages/flow/benchmark/form_tx_heldout_run/packs3` +are both empty. + +Everything here is synthetic. + +## Headline + +**Verdict: rework.** + +- **Receipt claim killed.** One wrong quote got a receipt (`cv-s04`). +- **Stops before submit.** The layer stopped 8 of 9 trap cases before + submit (K1 met), but only one of those then ended in a correct quote. +- **False stops on clean cases.** It stopped 3 of 7 clean cases (K2 not + met). +- **Submitted quotes.** It submitted 7 quotes: 5 right and 2 wrong. + - 4 of the 7 ended `verified_done` with a receipt, so K3 is met on the + registered definition. One of those 4 is the wrong one. + - Counting correct quotes only, 3 of 7 ended verified with a receipt. +- **Unguarded filler (arm A).** It got 10 of 16 wrong, silently. + +The n is small: 16 cases in all, and one case moves K2 by 14 points. + +## Kill or rework criteria (arm B) + +| | Criterion | Bar | Result | | +| --- | --- | --- | --- | --- | +| K1 | Trap cases stopped before submit | at least 75% | 8 of 9 (89%) | met | +| K2 | Clean cases with a false stop | at most 10% | 3 of 7 (43%) | **not met** | +| K3 | Submitted quotes `verified_done` with a receipt | at least 50% | 4 of 7 (57%) | met, but one is a false receipt | +| K4 | Wrong values submitted | zero | 2 cases | **not met** | + +- **K1 companion.** Of the 8 stopped trap cases, 1 then ended correct + (`cv-s07`: two prefill stops answered, then a sign-in mid-quote). The + other 7 ended with the scripted operator escalating. No portal stopped on + every case. +- **Kill lines:** + - **False receipt.** `cv-s04` was submitted with an empty "Breed of each + dog" and ended `verified_done`. The receipt claim is killed. + - **Silent wrong.** None. The other wrong quote, `pb-s04` (horsepower + stored as 800, intake 400), was `readback_refuted`, and the flag named + the wrong field. +- **Reached-only false stops:** all 7 clean cases were reached, so the + figure is the same, 43%. + +## Per portal (arm B) + +| Portal | Cases | Submitted | Correct | Wrong | Verified with receipt | Trap stopped | Clean false stops | +| --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | +| corvane | 8 | 4 | 3 | 1 | 4 (1 wrong) | 4 of 4 | 2 of 4 | +| pellbrook | 8 | 3 | 2 | 1 | 0 | 4 of 5 | 1 of 3 | +| Pooled | 16 | 7 | 5 | 2 | 4 | 8 of 9 | 3 of 7 | + +Stops (13 in all): validation 5, prefill conflict 4, ambiguous option 2, +ungrounded required field 1, sign-in wall 1. Pellbrook's 2 correct quotes +ended `readback_incomplete`, because the pack had no read-back keyed to the +lienholder it typed. + +Arm A (`naive_filler.py`, run once unchanged): 6 correct, 10 wrong submitted +with no flag, 0 unsubmitted. + +## What went wrong, by cause + +Each cause below is checked against the answer key's trap labels and +operator script, read after the scored run. Where the mechanism is inferred +from the rows and has not been confirmed by a diagnostic run, it says so. + +1. **A bound question shown with no intake value, left empty, verifies** + (`cv-s04`, `needs_operator_answer`, trap `unknown_question`; the false + receipt). + - The intake says dogs are kept but gives no breeds. The script expects + the operator to supply "Breed of each dog". + - The layer stopped on the bite-history question (validation, named). The + operator answered it, and the run submitted with breeds empty. + - Inferred mechanism, not confirmed by a diagnostic run: the pack binds + the breed field, so the unbound-control checks skip it. With no fact + and no `required` marker, no stop fires. The summary shows a dash, + which the pack declares blank, so read-back has nothing to compare. +2. **Validation stops on the one-question-at-a-time form carry no label** + (`pb-s02`, `pb-s05`, `pb-s08`, all `needs_operator_answer` on "Lay-up + period"). + - Inferred: the message "Please answer this question to continue." is not + attached to the control. The control is the same one for every + question, so neither a banner-to-label match nor row growth finds it. + - The script's label never matched, and the operator escalated. +3. **A type-ahead option that does not exactly equal the derived fact.** + - `cv-s05` (clean, trap `typeahead_ambiguous`) is a false stop: "No option + matched" on the mortgagee. The careful human picks the right one of + several similar options. The pack builds the expected entry from one + dev sample. + - `cv-s06` (`must_stop_before_submit`, trap `estimator_wrong`) also + stopped on the mortgagee, before reaching the estimator, and escalated. + It counts toward K1 but not for the trap's reason. +4. **Missing popups in the packs** (false stops on clean cases with + `estimator_ok`). `cv-s03` stopped on a dwelling limit the intake leaves + to the estimator, and `pb-s06` on an agreed hull value left to the + book-value lookup. Neither pack declares that popup, because the dev + case never opened it. +5. **A summary that differs from what was entered, with no stop before + submit** (`pb-s04`, trap `summary_differs`). The stored horsepower was + 800 against an intake of 400. A careful human catches it on the review + page. The layer does not compare the review page before submit, so it + was caught only after submit (`readback_refuted`, naming the field). +6. **Stops on the wrong field.** `cv-s02` (trap `prefill_conflict` on the + co-applicant) stopped first on a phone prefill, and `pb-s07` (trap on the + lienholder) stopped first on a model-year prefill. The script had no entry + for either, so both escalated. They count toward K1. + +## What changed since the second run + +The rework's targeted classes, as seen here: + +- **Sign-in mid-quote.** After the sign-in, `cv-s07` went on to submit + correctly and verified. The rows do not record whether a re-walk ran. +- **Radio and validation stops name their field.** Every corvane stop + carried its field's label. The 3 pellbrook stops are the exception + above. +- **Unbound free text and unused intake values.** These raised no false + receipt here. + +Two classes did not appear on these portals and are not measured here: the +row-picked "Select" and the date in three boxes. + +## What this cannot show + +Two synthetic portals by one author, 16 cases. Nothing here says how the +layer behaves on real carriers, real sessions or real operators. Pack +quality is part of what is measured: every pack was written from one dev +case. diff --git a/packages/flow/benchmark/form_tx_heldout3_run/demos/corvane.jsonl b/packages/flow/benchmark/form_tx_heldout3_run/demos/corvane.jsonl new file mode 100644 index 0000000000..24b093178b --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3_run/demos/corvane.jsonl @@ -0,0 +1,9 @@ +FORM_TX_DEMO {"portal": "corvane", "step": 0, "why": "before click selector='internal:role=button[name=\"Sign in\"i]'>", "frame_url": "http://127.0.0.1:46395/login?next=%2Fquote", "is_main": true, "controls": [{"control_id": "u", "dom_selector": "#u", "tag": "input", "input_type": "text", "name_attr": "username", "id_attr": "u", "label_text": "Agency code", "section_text": "Agent sign-in", "current_value": "CVA-40518", "checked": null, "visible": true, "row_text": "Agency code"}, {"control_id": "pw", "dom_selector": "#pw", "tag": "input", "input_type": "password", "name_attr": "password", "id_attr": "pw", "label_text": "Password", "section_text": "Agent sign-in", "current_value": "", "checked": null, "visible": true, "is_secret": true, "row_text": "Password"}, {"control_id": "ctrl_2", "dom_selector": "body > div > main > form > button", "tag": "button", "label_text": "Sign in", "section_text": "Agent sign-in", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Sign in \u2013 Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 1, "why": "before click #save", "frame_url": "http://127.0.0.1:46395/quote?step=1", "is_main": true, "controls": [{"control_id": "f-first_name", "dom_selector": "#f-first_name", "tag": "input", "input_type": "text", "name_attr": "first_name", "id_attr": "f-first_name", "label_text": "First name", "section_text": "Applicant and property", "current_value": "Marisol", "checked": null, "visible": true, "row_text": "First name"}, {"control_id": "f-last_name", "dom_selector": "#f-last_name", "tag": "input", "input_type": "text", "name_attr": "last_name", "id_attr": "f-last_name", "label_text": "Last name", "section_text": "Applicant and property", "current_value": "Tennant", "checked": null, "visible": true, "row_text": "Last name"}, {"control_id": "f-date_of_birth", "dom_selector": "#f-date_of_birth", "tag": "input", "input_type": "text", "name_attr": "date_of_birth", "id_attr": "f-date_of_birth", "label_text": "Date of birth", "section_text": "Applicant and property", "current_value": "04/17/1981", "checked": null, "visible": true, "row_text": "Date of birth"}, {"control_id": "f-email", "dom_selector": "#f-email", "tag": "input", "input_type": "text", "name_attr": "email", "id_attr": "f-email", "label_text": "Email", "section_text": "Applicant and property", "current_value": "marisol.tennant@example.test", "checked": null, "visible": true, "row_text": "Email"}, {"control_id": "f-phone", "dom_selector": "#f-phone", "tag": "input", "input_type": "text", "name_attr": "phone", "id_attr": "f-phone", "label_text": "Phone", "section_text": "Applicant and property", "current_value": "503-555-0142", "checked": null, "visible": true, "row_text": "Phone"}, {"control_id": "f-co_applicant_name", "dom_selector": "#f-co_applicant_name", "tag": "input", "input_type": "text", "name_attr": "co_applicant_name", "id_attr": "f-co_applicant_name", "label_text": "Co-applicant full name", "section_text": "Applicant and property", "current_value": "Gideon Tennant", "checked": null, "visible": true, "row_text": "Co-applicant full nameSpouse or other person on the deed. Leave blank if none."}, {"control_id": "f-property_street", "dom_selector": "#f-property_street", "tag": "input", "input_type": "text", "name_attr": "property_street", "id_attr": "f-property_street", "label_text": "Property street address", "section_text": "Applicant and property", "current_value": "2214 Larchmere Way", "checked": null, "visible": true, "row_text": "Property street address"}, {"control_id": "f-property_city", "dom_selector": "#f-property_city", "tag": "input", "input_type": "text", "name_attr": "property_city", "id_attr": "f-property_city", "label_text": "City", "section_text": "Applicant and property", "current_value": "Bend", "checked": null, "visible": true, "row_text": "City"}, {"control_id": "f-property_state", "dom_selector": "#f-property_state", "tag": "select", "name_attr": "property_state", "id_attr": "f-property_state", "label_text": "State", "section_text": "Applicant and property", "current_value": "OR", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "ID", "label": "ID"}, {"value": "MN", "label": "MN"}, {"value": "NC", "label": "NC"}, {"value": "OH", "label": "OH"}, {"value": "OR", "label": "OR"}, {"value": "VT", "label": "VT"}, {"value": "WA", "label": "WA"}], "row_text": "StateSelect\u2026IDMNNCOHORVTWA"}, {"control_id": "f-property_zip", "dom_selector": "#f-property_zip", "tag": "input", "input_type": "text", "name_attr": "property_zip", "id_attr": "f-property_zip", "label_text": "ZIP code", "section_text": "Applicant and property", "current_value": "97702", "checked": null, "visible": true, "row_text": "ZIP code"}, {"control_id": "save", "dom_selector": "#save", "tag": "button", "id_attr": "save", "label_text": "Save and continue", "section_text": "Applicant and property", "checked": null, "visible": true, "row_text": "Save and continue"}], "text_pairs": [], "banners": [], "modals": [], "title": "Homeowners quote \u2013 Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 2, "why": "before click #save", "frame_url": "http://127.0.0.1:46395/quote?step=2", "is_main": true, "controls": [{"control_id": "f-year_built", "dom_selector": "#f-year_built", "tag": "input", "input_type": "text", "name_attr": "year_built", "id_attr": "f-year_built", "label_text": "Year built", "section_text": "Dwelling", "current_value": "1998", "checked": null, "visible": true, "row_text": "Year built"}, {"control_id": "f-square_feet", "dom_selector": "#f-square_feet", "tag": "input", "input_type": "text", "name_attr": "square_feet", "id_attr": "f-square_feet", "label_text": "Finished living area (sq ft)", "section_text": "Dwelling", "current_value": "1860", "checked": null, "visible": true, "row_text": "Finished living area (sq ft)"}, {"control_id": "f-construction", "dom_selector": "#f-construction", "tag": "select", "name_attr": "construction", "id_attr": "f-construction", "label_text": "Construction type", "section_text": "Dwelling", "current_value": "Frame", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "Frame", "label": "Frame"}, {"value": "Masonry veneer", "label": "Masonry veneer"}, {"value": "Masonry", "label": "Masonry"}], "row_text": "Construction typeSelect\u2026FrameMasonry veneerMasonry"}, {"control_id": "f-roof_material", "dom_selector": "#f-roof_material", "tag": "select", "name_attr": "roof_material", "id_attr": "f-roof_material", "label_text": "Roof material", "section_text": "Dwelling", "current_value": "Asphalt shingle", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "Asphalt shingle", "label": "Asphalt shingle"}, {"value": "Metal", "label": "Metal"}, {"value": "Wood shake", "label": "Wood shake"}, {"value": "Tile", "label": "Tile"}, {"value": "Slate", "label": "Slate"}], "row_text": "Roof materialSelect\u2026Asphalt shingleMetalWood shakeTileSlate"}, {"control_id": "f-roof_year", "dom_selector": "#f-roof_year", "tag": "input", "input_type": "text", "name_attr": "roof_year", "id_attr": "f-roof_year", "label_text": "Year roof was installed or last replaced", "section_text": "Dwelling", "current_value": "2016", "checked": null, "visible": true, "row_text": "Year roof was installed or last replaced"}, {"control_id": "back", "dom_selector": "#back", "tag": "button", "id_attr": "back", "label_text": "Back", "section_text": "Dwelling", "checked": null, "visible": true, "row_text": "BackSave and continue"}, {"control_id": "save", "dom_selector": "#save", "tag": "button", "id_attr": "save", "label_text": "Save and continue", "section_text": "Dwelling", "checked": null, "visible": true, "row_text": "BackSave and continue"}], "text_pairs": [], "banners": [], "modals": [], "title": "Homeowners quote \u2013 Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 3, "why": "before click #save", "frame_url": "http://127.0.0.1:46395/quote?step=3", "is_main": true, "controls": [{"control_id": "f-occupancy-0", "dom_selector": "input[name=\"occupancy\"][value=\"Owner-occupied primary residence\"]", "tag": "input", "input_type": "radio", "name_attr": "occupancy", "id_attr": "f-occupancy-0", "label_text": "Owner-occupied primary residence", "section_text": "Household", "current_value": "Owner-occupied primary residence", "checked": true, "visible": true, "options": [{"value": "Owner-occupied primary residence", "label": "Owner-occupied primary residence"}, {"value": "Owner-occupied secondary or seasonal home", "label": "Owner-occupied secondary or seasonal home"}], "radio_value": "Owner-occupied primary residence", "radio_group": "name:occupancy@form:#stepform", "group_label": "Occupancy", "row_text": "Occupancy Owner-occupied primary residence Owner-occupied secondary or seasonal home"}, {"control_id": "f-occupancy-1", "dom_selector": "input[name=\"occupancy\"][value=\"Owner-occupied secondary or seasonal home\"]", "tag": "input", "input_type": "radio", "name_attr": "occupancy", "id_attr": "f-occupancy-1", "label_text": "Owner-occupied secondary or seasonal home", "section_text": "Household", "checked": false, "visible": true, "options": [{"value": "Owner-occupied primary residence", "label": "Owner-occupied primary residence"}, {"value": "Owner-occupied secondary or seasonal home", "label": "Owner-occupied secondary or seasonal home"}], "radio_value": "Owner-occupied secondary or seasonal home", "radio_group": "name:occupancy@form:#stepform", "group_label": "Occupancy", "row_text": "Occupancy Owner-occupied primary residence Owner-occupied secondary or seasonal home"}, {"control_id": "f-dogs-0", "dom_selector": "input[name=\"dogs\"][value=\"Yes\"]", "tag": "input", "input_type": "radio", "name_attr": "dogs", "id_attr": "f-dogs-0", "label_text": "Yes", "section_text": "Household", "checked": false, "visible": true, "options": [{"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "radio_value": "Yes", "radio_group": "name:dogs@form:#stepform", "group_label": "Are any dogs kept at this address?", "row_text": "Are any dogs kept at this address? Yes No"}, {"control_id": "f-dogs-1", "dom_selector": "input[name=\"dogs\"][value=\"No\"]", "tag": "input", "input_type": "radio", "name_attr": "dogs", "id_attr": "f-dogs-1", "label_text": "No", "section_text": "Household", "current_value": "No", "checked": true, "visible": true, "options": [{"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "radio_value": "No", "radio_group": "name:dogs@form:#stepform", "group_label": "Are any dogs kept at this address?", "row_text": "Are any dogs kept at this address? Yes No"}, {"control_id": "back", "dom_selector": "#back", "tag": "button", "id_attr": "back", "label_text": "Back", "section_text": "Household", "checked": null, "visible": true, "row_text": "BackSave and continue"}, {"control_id": "save", "dom_selector": "#save", "tag": "button", "id_attr": "save", "label_text": "Save and continue", "section_text": "Household", "checked": null, "visible": true, "row_text": "BackSave and continue"}], "text_pairs": [], "banners": [], "modals": [], "title": "Homeowners quote \u2013 Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 4, "why": "before click selector=\"#stepform .fld[data-name='mortgagee'] >> [role=option] >> nth=0\">", "frame_url": "http://127.0.0.1:46395/quote?step=4", "is_main": true, "controls": [{"control_id": "f-mortgagee", "dom_selector": "#f-mortgagee", "tag": "input", "input_type": "text", "role": "combobox", "name_attr": "mortgagee", "id_attr": "f-mortgagee", "label_text": "Mortgagee (lender)", "section_text": "Lender and coverage", "current_value": "Penhallow Bank of Oregon", "checked": null, "visible": true, "row_text": "Mortgagee (lender)Penhallow Bank of Oregon ISAOA, PO Box 1180, Bend OR 97701Type the lender's name and pick its mortgagee clause from the directory."}, {"control_id": "f-loan_number", "dom_selector": "#f-loan_number", "tag": "input", "input_type": "text", "name_attr": "loan_number", "id_attr": "f-loan_number", "label_text": "Loan number", "section_text": "Lender and coverage", "checked": null, "visible": true, "row_text": "Loan number"}, {"control_id": "f-dwelling_limit", "dom_selector": "#f-dwelling_limit", "tag": "input", "input_type": "text", "name_attr": "dwelling_limit", "id_attr": "f-dwelling_limit", "label_text": "Dwelling (Coverage A) limit", "section_text": "Lender and coverage", "checked": null, "visible": true, "row_text": "Dwelling (Coverage A) limitEstimate replacement cost"}, {"control_id": "est-open", "dom_selector": "#est-open", "tag": "button", "id_attr": "est-open", "label_text": "Estimate replacement cost", "section_text": "Lender and coverage", "checked": null, "visible": true, "row_text": "Dwelling (Coverage A) limitEstimate replacement cost"}, {"control_id": "f-personal_liability", "dom_selector": "#f-personal_liability", "tag": "select", "name_attr": "personal_liability", "id_attr": "f-personal_liability", "label_text": "Personal liability", "section_text": "Lender and coverage", "current_value": "300000", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "100000", "label": "$100,000"}, {"value": "300000", "label": "$300,000"}, {"value": "500000", "label": "$500,000"}], "row_text": "Personal liabilitySelect\u2026$100,000$300,000$500,000"}, {"control_id": "f-deductible", "dom_selector": "#f-deductible", "tag": "select", "name_attr": "deductible", "id_attr": "f-deductible", "label_text": "All-perils deductible", "section_text": "Lender and coverage", "current_value": "1000", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}, {"value": "5000", "label": "$5,000"}], "row_text": "All-perils deductibleSelect\u2026$1,000$2,500$5,000"}, {"control_id": "f-effective_date", "dom_selector": "#f-effective_date", "tag": "input", "input_type": "text", "name_attr": "effective_date", "id_attr": "f-effective_date", "label_text": "Policy effective date", "section_text": "Lender and coverage", "checked": null, "visible": true, "row_text": "Policy effective date"}, {"control_id": "back", "dom_selector": "#back", "tag": "button", "id_attr": "back", "label_text": "Back", "section_text": "Lender and coverage", "checked": null, "visible": true, "row_text": "BackSave and continue"}, {"control_id": "save", "dom_selector": "#save", "tag": "button", "id_attr": "save", "label_text": "Save and continue", "section_text": "Lender and coverage", "checked": null, "visible": true, "row_text": "BackSave and continue"}], "text_pairs": [], "banners": [], "modals": [], "title": "Homeowners quote \u2013 Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 5, "why": "before click #save", "frame_url": "http://127.0.0.1:46395/quote?step=4", "is_main": true, "controls": [{"control_id": "f-mortgagee", "dom_selector": "#f-mortgagee", "tag": "input", "input_type": "text", "role": "combobox", "name_attr": "mortgagee", "id_attr": "f-mortgagee", "label_text": "Mortgagee (lender)", "section_text": "Lender and coverage", "current_value": "Penhallow Bank of Oregon ISAOA, PO Box 1180, Bend OR 97701", "checked": null, "visible": true, "row_text": "Mortgagee (lender)Penhallow Bank of Oregon ISAOA, PO Box 1180, Bend OR 97701Type the lender's name and pick its mortgagee clause from the directory."}, {"control_id": "f-loan_number", "dom_selector": "#f-loan_number", "tag": "input", "input_type": "text", "name_attr": "loan_number", "id_attr": "f-loan_number", "label_text": "Loan number", "section_text": "Lender and coverage", "current_value": "PB-88120457", "checked": null, "visible": true, "row_text": "Loan number"}, {"control_id": "f-dwelling_limit", "dom_selector": "#f-dwelling_limit", "tag": "input", "input_type": "text", "name_attr": "dwelling_limit", "id_attr": "f-dwelling_limit", "label_text": "Dwelling (Coverage A) limit", "section_text": "Lender and coverage", "current_value": "372000", "checked": null, "visible": true, "row_text": "Dwelling (Coverage A) limitEstimate replacement cost"}, {"control_id": "est-open", "dom_selector": "#est-open", "tag": "button", "id_attr": "est-open", "label_text": "Estimate replacement cost", "section_text": "Lender and coverage", "checked": null, "visible": true, "row_text": "Dwelling (Coverage A) limitEstimate replacement cost"}, {"control_id": "f-personal_liability", "dom_selector": "#f-personal_liability", "tag": "select", "name_attr": "personal_liability", "id_attr": "f-personal_liability", "label_text": "Personal liability", "section_text": "Lender and coverage", "current_value": "300000", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "100000", "label": "$100,000"}, {"value": "300000", "label": "$300,000"}, {"value": "500000", "label": "$500,000"}], "row_text": "Personal liabilitySelect\u2026$100,000$300,000$500,000"}, {"control_id": "f-deductible", "dom_selector": "#f-deductible", "tag": "select", "name_attr": "deductible", "id_attr": "f-deductible", "label_text": "All-perils deductible", "section_text": "Lender and coverage", "current_value": "1000", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}, {"value": "5000", "label": "$5,000"}], "row_text": "All-perils deductibleSelect\u2026$1,000$2,500$5,000"}, {"control_id": "f-effective_date", "dom_selector": "#f-effective_date", "tag": "input", "input_type": "text", "name_attr": "effective_date", "id_attr": "f-effective_date", "label_text": "Policy effective date", "section_text": "Lender and coverage", "current_value": "02/01/2027", "checked": null, "visible": true, "row_text": "Policy effective date"}, {"control_id": "back", "dom_selector": "#back", "tag": "button", "id_attr": "back", "label_text": "Back", "section_text": "Lender and coverage", "checked": null, "visible": true, "row_text": "BackSave and continue"}, {"control_id": "save", "dom_selector": "#save", "tag": "button", "id_attr": "save", "label_text": "Save and continue", "section_text": "Lender and coverage", "checked": null, "visible": true, "row_text": "BackSave and continue"}], "text_pairs": [], "banners": [], "modals": [], "title": "Homeowners quote \u2013 Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 6, "why": "before click #submit", "frame_url": "http://127.0.0.1:46395/quote?step=5", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#app > h2:nth-of-type(1) > button", "tag": "button", "label_text": "Edit", "section_text": "Applicant and property Edit", "checked": null, "visible": true, "row_text": "1. Applicant and property2. Dwelling3. Household4. Lender and coverage5. ReviewReviewCheck every answer before you request the quote.Applicant and property EditFirst nameMarisolLast nameTennantDate of birth04/17/1981Emailmarisol.tennant@example.testPhone503-555-0142Co-applicant full nameGideon TennantProperty street address2214 Larchmere WayCityBendStateORZIP code97702Dwelling EditYear built1998Finished living area (sq ft)1860Construction typeFrameRoof materialAsphalt shingleYear roof was instal"}, {"control_id": "ctrl_1", "dom_selector": "#app > h2:nth-of-type(2) > button", "tag": "button", "label_text": "Edit", "section_text": "Dwelling Edit", "checked": null, "visible": true, "row_text": "1. Applicant and property2. Dwelling3. Household4. Lender and coverage5. ReviewReviewCheck every answer before you request the quote.Applicant and property EditFirst nameMarisolLast nameTennantDate of birth04/17/1981Emailmarisol.tennant@example.testPhone503-555-0142Co-applicant full nameGideon TennantProperty street address2214 Larchmere WayCityBendStateORZIP code97702Dwelling EditYear built1998Finished living area (sq ft)1860Construction typeFrameRoof materialAsphalt shingleYear roof was instal"}, {"control_id": "ctrl_2", "dom_selector": "#app > h2:nth-of-type(3) > button", "tag": "button", "label_text": "Edit", "section_text": "Household Edit", "checked": null, "visible": true, "row_text": "1. Applicant and property2. Dwelling3. Household4. Lender and coverage5. ReviewReviewCheck every answer before you request the quote.Applicant and property EditFirst nameMarisolLast nameTennantDate of birth04/17/1981Emailmarisol.tennant@example.testPhone503-555-0142Co-applicant full nameGideon TennantProperty street address2214 Larchmere WayCityBendStateORZIP code97702Dwelling EditYear built1998Finished living area (sq ft)1860Construction typeFrameRoof materialAsphalt shingleYear roof was instal"}, {"control_id": "ctrl_3", "dom_selector": "#app > h2:nth-of-type(4) > button", "tag": "button", "label_text": "Edit", "section_text": "Lender and coverage Edit", "checked": null, "visible": true, "row_text": "1. Applicant and property2. Dwelling3. Household4. Lender and coverage5. ReviewReviewCheck every answer before you request the quote.Applicant and property EditFirst nameMarisolLast nameTennantDate of birth04/17/1981Emailmarisol.tennant@example.testPhone503-555-0142Co-applicant full nameGideon TennantProperty street address2214 Larchmere WayCityBendStateORZIP code97702Dwelling EditYear built1998Finished living area (sq ft)1860Construction typeFrameRoof materialAsphalt shingleYear roof was instal"}, {"control_id": "submit", "dom_selector": "#submit", "tag": "button", "id_attr": "submit", "label_text": "Request quote", "section_text": "Lender and coverage Edit", "checked": null, "visible": true, "row_text": "1. Applicant and property2. Dwelling3. Household4. Lender and coverage5. ReviewReviewCheck every answer before you request the quote.Applicant and property EditFirst nameMarisolLast nameTennantDate of birth04/17/1981Emailmarisol.tennant@example.testPhone503-555-0142Co-applicant full nameGideon TennantProperty street address2214 Larchmere WayCityBendStateORZIP code97702Dwelling EditYear built1998Finished living area (sq ft)1860Construction typeFrameRoof materialAsphalt shingleYear roof was instal"}], "text_pairs": [{"label": "First name", "value": "Marisol", "section_text": "Applicant and property Edit", "source": "table_row"}, {"label": "Last name", "value": "Tennant", "section_text": "Applicant and property Edit", "source": "table_row"}, {"label": "Date of birth", "value": "04/17/1981", "section_text": "Applicant and property Edit", "source": "table_row"}, {"label": "Email", "value": "marisol.tennant@example.test", "section_text": "Applicant and property Edit", "source": "table_row"}, {"label": "Phone", "value": "503-555-0142", "section_text": "Applicant and property Edit", "source": "table_row"}, {"label": "Co-applicant full name", "value": "Gideon Tennant", "section_text": "Applicant and property Edit", "source": "table_row"}, {"label": "Property street address", "value": "2214 Larchmere Way", "section_text": "Applicant and property Edit", "source": "table_row"}, {"label": "City", "value": "Bend", "section_text": "Applicant and property Edit", "source": "table_row"}, {"label": "State", "value": "OR", "section_text": "Applicant and property Edit", "source": "table_row"}, {"label": "ZIP code", "value": "97702", "section_text": "Applicant and property Edit", "source": "table_row"}, {"label": "Year built", "value": "1998", "section_text": "Dwelling Edit", "source": "table_row"}, {"label": "Finished living area (sq ft)", "value": "1860", "section_text": "Dwelling Edit", "source": "table_row"}, {"label": "Construction type", "value": "Frame", "section_text": "Dwelling Edit", "source": "table_row"}, {"label": "Roof material", "value": "Asphalt shingle", "section_text": "Dwelling Edit", "source": "table_row"}, {"label": "Year roof was installed or last replaced", "value": "2016", "section_text": "Dwelling Edit", "source": "table_row"}, {"label": "Occupancy", "value": "Owner-occupied primary residence", "section_text": "Household Edit", "source": "table_row"}, {"label": "Are any dogs kept at this address?", "value": "No", "section_text": "Household Edit", "source": "table_row"}, {"label": "Mortgagee (lender)", "value": "Penhallow Bank of Oregon ISAOA, PO Box 1180, Bend OR 97701", "section_text": "Lender and coverage Edit", "source": "table_row"}, {"label": "Loan number", "value": "PB-88120457", "section_text": "Lender and coverage Edit", "source": "table_row"}, {"label": "Dwelling (Coverage A) limit", "value": "$372,000", "section_text": "Lender and coverage Edit", "source": "table_row"}, {"label": "Personal liability", "value": "$300,000", "section_text": "Lender and coverage Edit", "source": "table_row"}, {"label": "All-perils deductible", "value": "$1,000", "section_text": "Lender and coverage Edit", "source": "table_row"}, {"label": "Policy effective date", "value": "02/01/2027", "section_text": "Lender and coverage Edit", "source": "table_row"}], "banners": [], "modals": [], "title": "Homeowners quote \u2013 Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 7, "why": "end of case", "frame_url": "http://127.0.0.1:46395/quote/result/CVH-Q027001", "is_main": true, "controls": [], "text_pairs": [{"label": "First name", "value": "Marisol", "section_text": "Quote ready", "source": "table_row"}, {"label": "Last name", "value": "Tennant", "section_text": "Quote ready", "source": "table_row"}, {"label": "Date of birth", "value": "04/17/1981", "section_text": "Quote ready", "source": "table_row"}, {"label": "Email", "value": "marisol.tennant@example.test", "section_text": "Quote ready", "source": "table_row"}, {"label": "Phone", "value": "503-555-0142", "section_text": "Quote ready", "source": "table_row"}, {"label": "Co-applicant full name", "value": "Gideon Tennant", "section_text": "Quote ready", "source": "table_row"}, {"label": "Property street address", "value": "2214 Larchmere Way", "section_text": "Quote ready", "source": "table_row"}, {"label": "City", "value": "Bend", "section_text": "Quote ready", "source": "table_row"}, {"label": "State", "value": "OR", "section_text": "Quote ready", "source": "table_row"}, {"label": "ZIP code", "value": "97702", "section_text": "Quote ready", "source": "table_row"}, {"label": "Year built", "value": "1998", "section_text": "Quote ready", "source": "table_row"}, {"label": "Finished living area (sq ft)", "value": "1860", "section_text": "Quote ready", "source": "table_row"}, {"label": "Construction type", "value": "Frame", "section_text": "Quote ready", "source": "table_row"}, {"label": "Roof material", "value": "Asphalt shingle", "section_text": "Quote ready", "source": "table_row"}, {"label": "Year roof was installed or last replaced", "value": "2016", "section_text": "Quote ready", "source": "table_row"}, {"label": "Occupancy", "value": "Owner-occupied primary residence", "section_text": "Quote ready", "source": "table_row"}, {"label": "Are any dogs kept at this address?", "value": "No", "section_text": "Quote ready", "source": "table_row"}, {"label": "Breed of each dog", "value": "\u2014", "section_text": "Quote ready", "source": "table_row"}, {"label": "Has any dog at this address ever bitten a person or another animal?", "value": "\u2014", "section_text": "Quote ready", "source": "table_row"}, {"label": "Mortgagee (lender)", "value": "Penhallow Bank of Oregon ISAOA, PO Box 1180, Bend OR 97701", "section_text": "Quote ready", "source": "table_row"}, {"label": "Loan number", "value": "PB-88120457", "section_text": "Quote ready", "source": "table_row"}, {"label": "Dwelling (Coverage A) limit", "value": "$372,000", "section_text": "Quote ready", "source": "table_row"}, {"label": "Personal liability", "value": "$300,000", "section_text": "Quote ready", "source": "table_row"}, {"label": "All-perils deductible", "value": "$1,000", "section_text": "Quote ready", "source": "table_row"}, {"label": "Policy effective date", "value": "02/01/2027", "section_text": "Quote ready", "source": "table_row"}], "banners": [], "modals": [], "title": "Quote CVH-Q027001 \u2013 Corvane AgentLink"} +FORM_TX_DEMO_RESULT [{"case_id": "cv-dev", "correct": true}] diff --git a/packages/flow/benchmark/form_tx_heldout3_run/demos/pellbrook.jsonl b/packages/flow/benchmark/form_tx_heldout3_run/demos/pellbrook.jsonl new file mode 100644 index 0000000000..3bab7b86f8 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3_run/demos/pellbrook.jsonl @@ -0,0 +1,25 @@ +FORM_TX_DEMO {"portal": "pellbrook", "step": 0, "why": "before click selector='internal:role=button[name=\"Sign in\"i]'>", "frame_url": "http://127.0.0.1:45879/signin?next=/boat/quote", "is_main": true, "controls": [{"control_id": "em", "dom_selector": "#em", "tag": "input", "input_type": "text", "name_attr": "email", "id_attr": "em", "label_text": "Email", "section_text": "Sign in to get your quote", "current_value": "dock.tester@example.test", "checked": null, "visible": true, "row_text": "Email"}, {"control_id": "pw", "dom_selector": "#pw", "tag": "input", "input_type": "password", "name_attr": "password", "id_attr": "pw", "label_text": "Password", "section_text": "Sign in to get your quote", "current_value": "", "checked": null, "visible": true, "is_secret": true, "row_text": "Password"}, {"control_id": "ctrl_2", "dom_selector": "body > main > form > button", "tag": "button", "label_text": "Sign in", "section_text": "Sign in to get your quote", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Sign in \u2013 Pellbrook Marine"} +FORM_TX_DEMO {"portal": "pellbrook", "step": 1, "why": "before click #next", "frame_url": "http://127.0.0.1:45879/boat/quote", "is_main": true, "controls": [{"control_id": "answer", "dom_selector": "#answer", "tag": "input", "input_type": "text", "name_attr": "answer", "id_attr": "answer", "label_text": "First name", "current_value": "Harlan", "checked": null, "visible": true, "row_text": "First nameContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, body){ const r = await fetch(url, {method, headers:{'Content-Type':'application/json'}, body: body ? JSON.stringify(body) : undefined}); if (r.status === 401){ location.href = '/signin?next=/boat/quote'; throw new Error('expired'); } return r.json(); } function thread("}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Continue", "checked": null, "visible": true, "row_text": "First nameContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, body){ const r = await fetch(url, {method, headers:{'Content-Type':'application/json'}, body: body ? JSON.stringify(body) : undefined}); if (r.status === 401){ location.href = '/signin?next=/boat/quote'; throw new Error('expired'); } return r.json(); } function thread("}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a boat quote \u2013 Pellbrook Marine"} +FORM_TX_DEMO {"portal": "pellbrook", "step": 2, "why": "before click #next", "frame_url": "http://127.0.0.1:45879/boat/quote", "is_main": true, "controls": [{"control_id": "answer", "dom_selector": "#answer", "tag": "input", "input_type": "text", "name_attr": "answer", "id_attr": "answer", "label_text": "Last name", "current_value": "Quist", "checked": null, "visible": true, "row_text": "First nameHarlanLast nameContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, body){ const r = await fetch(url, {method, headers:{'Content-Type':'application/json'}, body: body ? JSON.stringify(body) : undefined}); if (r.status === 401){ location.href = '/signin?next=/boat/quote'; throw new Error('expired'); } return r.json(); } f"}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Continue", "checked": null, "visible": true, "row_text": "First nameHarlanLast nameContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, body){ const r = await fetch(url, {method, headers:{'Content-Type':'application/json'}, body: body ? JSON.stringify(body) : undefined}); if (r.status === 401){ location.href = '/signin?next=/boat/quote'; throw new Error('expired'); } return r.json(); } f"}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a boat quote \u2013 Pellbrook Marine"} +FORM_TX_DEMO {"portal": "pellbrook", "step": 3, "why": "before click #next", "frame_url": "http://127.0.0.1:45879/boat/quote", "is_main": true, "controls": [{"control_id": "answer", "dom_selector": "#answer", "tag": "input", "input_type": "text", "name_attr": "answer", "id_attr": "answer", "label_text": "Date of birth", "current_value": "08/14/1977", "checked": null, "visible": true, "row_text": "First nameHarlanLast nameQuistDate of birthContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, body){ const r = await fetch(url, {method, headers:{'Content-Type':'application/json'}, body: body ? JSON.stringify(body) : undefined}); if (r.status === 401){ location.href = '/signin?next=/boat/quote'; throw new Error('expired'); } re"}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Continue", "checked": null, "visible": true, "row_text": "First nameHarlanLast nameQuistDate of birthContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, body){ const r = await fetch(url, {method, headers:{'Content-Type':'application/json'}, body: body ? JSON.stringify(body) : undefined}); if (r.status === 401){ location.href = '/signin?next=/boat/quote'; throw new Error('expired'); } re"}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a boat quote \u2013 Pellbrook Marine"} +FORM_TX_DEMO {"portal": "pellbrook", "step": 4, "why": "before click #next", "frame_url": "http://127.0.0.1:45879/boat/quote", "is_main": true, "controls": [{"control_id": "answer", "dom_selector": "#answer", "tag": "input", "input_type": "text", "name_attr": "answer", "id_attr": "answer", "label_text": "Email address", "current_value": "harlan.quist@example.test", "checked": null, "visible": true, "row_text": "First nameHarlanLast nameQuistDate of birth08/14/1977Email addressContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, body){ const r = await fetch(url, {method, headers:{'Content-Type':'application/json'}, body: body ? JSON.stringify(body) : undefined}); if (r.status === 401){ location.href = '/signin?next=/boat/quote'; throw new"}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Continue", "checked": null, "visible": true, "row_text": "First nameHarlanLast nameQuistDate of birth08/14/1977Email addressContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, body){ const r = await fetch(url, {method, headers:{'Content-Type':'application/json'}, body: body ? JSON.stringify(body) : undefined}); if (r.status === 401){ location.href = '/signin?next=/boat/quote'; throw new"}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a boat quote \u2013 Pellbrook Marine"} +FORM_TX_DEMO {"portal": "pellbrook", "step": 5, "why": "before click #next", "frame_url": "http://127.0.0.1:45879/boat/quote", "is_main": true, "controls": [{"control_id": "answer", "dom_selector": "#answer", "tag": "input", "input_type": "text", "name_attr": "answer", "id_attr": "answer", "label_text": "ZIP code where the boat is kept", "current_value": "54806", "checked": null, "visible": true, "row_text": "First nameHarlanLast nameQuistDate of birth08/14/1977Email addressharlan.quist@example.testZIP code where the boat is keptContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, body){ const r = await fetch(url, {method, headers:{'Content-Type':'application/json'}, body: body ? JSON.stringify(body) : undefined}); if (r.status === 401"}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Continue", "checked": null, "visible": true, "row_text": "First nameHarlanLast nameQuistDate of birth08/14/1977Email addressharlan.quist@example.testZIP code where the boat is keptContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, body){ const r = await fetch(url, {method, headers:{'Content-Type':'application/json'}, body: body ? JSON.stringify(body) : undefined}); if (r.status === 401"}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a boat quote \u2013 Pellbrook Marine"} +FORM_TX_DEMO {"portal": "pellbrook", "step": 6, "why": "before click #next", "frame_url": "http://127.0.0.1:45879/boat/quote", "is_main": true, "controls": [{"control_id": "answer", "dom_selector": "#answer", "tag": "input", "input_type": "text", "name_attr": "answer", "id_attr": "answer", "label_text": "Model year", "current_value": "2019", "checked": null, "visible": true, "row_text": "First nameHarlanLast nameQuistDate of birth08/14/1977Email addressharlan.quist@example.testZIP code where the boat is kept54806Model yearContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, body){ const r = await fetch(url, {method, headers:{'Content-Type':'application/json'}, body: body ? JSON.stringify(body) : undefined}); if (r"}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Continue", "checked": null, "visible": true, "row_text": "First nameHarlanLast nameQuistDate of birth08/14/1977Email addressharlan.quist@example.testZIP code where the boat is kept54806Model yearContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, body){ const r = await fetch(url, {method, headers:{'Content-Type':'application/json'}, body: body ? JSON.stringify(body) : undefined}); if (r"}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a boat quote \u2013 Pellbrook Marine"} +FORM_TX_DEMO {"portal": "pellbrook", "step": 7, "why": "before click #next", "frame_url": "http://127.0.0.1:45879/boat/quote", "is_main": true, "controls": [{"control_id": "answer", "dom_selector": "#answer", "tag": "input", "input_type": "text", "name_attr": "answer", "id_attr": "answer", "label_text": "Manufacturer", "current_value": "Tidelark Boats", "checked": null, "visible": true, "row_text": "First nameHarlanLast nameQuistDate of birth08/14/1977Email addressharlan.quist@example.testZIP code where the boat is kept54806Model year2019ManufacturerContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, body){ const r = await fetch(url, {method, headers:{'Content-Type':'application/json'}, body: body ? JSON.stringify(body) : un"}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Continue", "checked": null, "visible": true, "row_text": "First nameHarlanLast nameQuistDate of birth08/14/1977Email addressharlan.quist@example.testZIP code where the boat is kept54806Model year2019ManufacturerContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, body){ const r = await fetch(url, {method, headers:{'Content-Type':'application/json'}, body: body ? JSON.stringify(body) : un"}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a boat quote \u2013 Pellbrook Marine"} +FORM_TX_DEMO {"portal": "pellbrook", "step": 8, "why": "before click #next", "frame_url": "http://127.0.0.1:45879/boat/quote", "is_main": true, "controls": [{"control_id": "answer", "dom_selector": "#answer", "tag": "input", "input_type": "text", "name_attr": "answer", "id_attr": "answer", "label_text": "Model", "current_value": "Shoalrunner 18", "checked": null, "visible": true, "row_text": "Last nameQuistDate of birth08/14/1977Email addressharlan.quist@example.testZIP code where the boat is kept54806Model year2019ManufacturerTidelark BoatsModelContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, body){ const r = await fetch(url, {method, headers:{'Content-Type':'application/json'}, body: body ? JSON.stringify(body) :"}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Continue", "checked": null, "visible": true, "row_text": "Last nameQuistDate of birth08/14/1977Email addressharlan.quist@example.testZIP code where the boat is kept54806Model year2019ManufacturerTidelark BoatsModelContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, body){ const r = await fetch(url, {method, headers:{'Content-Type':'application/json'}, body: body ? JSON.stringify(body) :"}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a boat quote \u2013 Pellbrook Marine"} +FORM_TX_DEMO {"portal": "pellbrook", "step": 9, "why": "before click #next", "frame_url": "http://127.0.0.1:45879/boat/quote", "is_main": true, "controls": [{"control_id": "answer", "dom_selector": "#answer", "tag": "input", "input_type": "text", "name_attr": "answer", "id_attr": "answer", "label_text": "Length overall (feet)", "current_value": "18", "checked": null, "visible": true, "row_text": "Date of birth08/14/1977Email addressharlan.quist@example.testZIP code where the boat is kept54806Model year2019ManufacturerTidelark BoatsModelShoalrunner 18Length overall (feet)Continue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, body){ const r = await fetch(url, {method, headers:{'Content-Type':'application/json'}, body: body ? J"}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Continue", "checked": null, "visible": true, "row_text": "Date of birth08/14/1977Email addressharlan.quist@example.testZIP code where the boat is kept54806Model year2019ManufacturerTidelark BoatsModelShoalrunner 18Length overall (feet)Continue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, body){ const r = await fetch(url, {method, headers:{'Content-Type':'application/json'}, body: body ? J"}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a boat quote \u2013 Pellbrook Marine"} +FORM_TX_DEMO {"portal": "pellbrook", "step": 10, "why": "before click #next", "frame_url": "http://127.0.0.1:45879/boat/quote", "is_main": true, "controls": [{"control_id": "opt-0", "dom_selector": "input[name=\"answer\"][value=\"Outboard\"]", "tag": "input", "input_type": "radio", "name_attr": "answer", "id_attr": "opt-0", "label_text": "Outboard", "section_text": "Engine type", "current_value": "Outboard", "checked": true, "visible": true, "options": [{"value": "Outboard", "label": "Outboard"}, {"value": "Inboard", "label": "Inboard"}, {"value": "Sterndrive (inboard/outboard)", "label": "Sterndrive (inboard/outboard)"}, {"value": "Jet drive", "label": "Jet drive"}], "radio_value": "Outboard", "radio_group": "name:answer@doc", "group_label": "Engine type", "row_text": "Email addressharlan.quist@example.testZIP code where the boat is kept54806Model year2019ManufacturerTidelark BoatsModelShoalrunner 18Length overall (feet)18Engine typeOutboardInboardSterndrive (inboard/outboard)Jet driveContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, body){ const r = await fetch(url, {method, headers:{'Conten"}, {"control_id": "opt-1", "dom_selector": "input[name=\"answer\"][value=\"Inboard\"]", "tag": "input", "input_type": "radio", "name_attr": "answer", "id_attr": "opt-1", "label_text": "Inboard", "section_text": "Engine type", "checked": false, "visible": true, "options": [{"value": "Outboard", "label": "Outboard"}, {"value": "Inboard", "label": "Inboard"}, {"value": "Sterndrive (inboard/outboard)", "label": "Sterndrive (inboard/outboard)"}, {"value": "Jet drive", "label": "Jet drive"}], "radio_value": "Inboard", "radio_group": "name:answer@doc", "group_label": "Engine type", "row_text": "Email addressharlan.quist@example.testZIP code where the boat is kept54806Model year2019ManufacturerTidelark BoatsModelShoalrunner 18Length overall (feet)18Engine typeOutboardInboardSterndrive (inboard/outboard)Jet driveContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, body){ const r = await fetch(url, {method, headers:{'Conten"}, {"control_id": "opt-2", "dom_selector": "input[name=\"answer\"][value=\"Sterndrive (inboard/outboard)\"]", "tag": "input", "input_type": "radio", "name_attr": "answer", "id_attr": "opt-2", "label_text": "Sterndrive (inboard/outboard)", "section_text": "Engine type", "checked": false, "visible": true, "options": [{"value": "Outboard", "label": "Outboard"}, {"value": "Inboard", "label": "Inboard"}, {"value": "Sterndrive (inboard/outboard)", "label": "Sterndrive (inboard/outboard)"}, {"value": "Jet drive", "label": "Jet drive"}], "radio_value": "Sterndrive (inboard/outboard)", "radio_group": "name:answer@doc", "group_label": "Engine type", "row_text": "Email addressharlan.quist@example.testZIP code where the boat is kept54806Model year2019ManufacturerTidelark BoatsModelShoalrunner 18Length overall (feet)18Engine typeOutboardInboardSterndrive (inboard/outboard)Jet driveContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, body){ const r = await fetch(url, {method, headers:{'Conten"}, {"control_id": "opt-3", "dom_selector": "input[name=\"answer\"][value=\"Jet drive\"]", "tag": "input", "input_type": "radio", "name_attr": "answer", "id_attr": "opt-3", "label_text": "Jet drive", "section_text": "Engine type", "checked": false, "visible": true, "options": [{"value": "Outboard", "label": "Outboard"}, {"value": "Inboard", "label": "Inboard"}, {"value": "Sterndrive (inboard/outboard)", "label": "Sterndrive (inboard/outboard)"}, {"value": "Jet drive", "label": "Jet drive"}], "radio_value": "Jet drive", "radio_group": "name:answer@doc", "group_label": "Engine type", "row_text": "Email addressharlan.quist@example.testZIP code where the boat is kept54806Model year2019ManufacturerTidelark BoatsModelShoalrunner 18Length overall (feet)18Engine typeOutboardInboardSterndrive (inboard/outboard)Jet driveContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, body){ const r = await fetch(url, {method, headers:{'Conten"}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Continue", "checked": null, "visible": true, "row_text": "Email addressharlan.quist@example.testZIP code where the boat is kept54806Model year2019ManufacturerTidelark BoatsModelShoalrunner 18Length overall (feet)18Engine typeOutboardInboardSterndrive (inboard/outboard)Jet driveContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, body){ const r = await fetch(url, {method, headers:{'Conten"}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a boat quote \u2013 Pellbrook Marine"} +FORM_TX_DEMO {"portal": "pellbrook", "step": 11, "why": "before click #next", "frame_url": "http://127.0.0.1:45879/boat/quote", "is_main": true, "controls": [{"control_id": "answer", "dom_selector": "#answer", "tag": "input", "input_type": "text", "name_attr": "answer", "id_attr": "answer", "label_text": "Total horsepower (all engines combined)", "current_value": "115", "checked": null, "visible": true, "row_text": "ZIP code where the boat is kept54806Model year2019ManufacturerTidelark BoatsModelShoalrunner 18Length overall (feet)18Engine typeOutboardTotal horsepower (all engines combined)Continue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, body){ const r = await fetch(url, {method, headers:{'Content-Type':'application/json'}, body: body ? JS"}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Continue", "checked": null, "visible": true, "row_text": "ZIP code where the boat is kept54806Model year2019ManufacturerTidelark BoatsModelShoalrunner 18Length overall (feet)18Engine typeOutboardTotal horsepower (all engines combined)Continue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, body){ const r = await fetch(url, {method, headers:{'Content-Type':'application/json'}, body: body ? JS"}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a boat quote \u2013 Pellbrook Marine"} +FORM_TX_DEMO {"portal": "pellbrook", "step": 12, "why": "before click #next", "frame_url": "http://127.0.0.1:45879/boat/quote", "is_main": true, "controls": [{"control_id": "opt-0", "dom_selector": "input[name=\"answer\"][value=\"Single\"]", "tag": "input", "input_type": "radio", "name_attr": "answer", "id_attr": "opt-0", "label_text": "Single", "section_text": "Number of engines", "current_value": "Single", "checked": true, "visible": true, "options": [{"value": "Single", "label": "Single"}, {"value": "Twin", "label": "Twin"}, {"value": "Triple", "label": "Triple"}], "radio_value": "Single", "radio_group": "name:answer@doc", "group_label": "Number of engines", "row_text": "Model year2019ManufacturerTidelark BoatsModelShoalrunner 18Length overall (feet)18Engine typeOutboardTotal horsepower (all engines combined)115Number of enginesSingleTwinTripleContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, body){ const r = await fetch(url, {method, headers:{'Content-Type':'application/json'}, body: body ? JS"}, {"control_id": "opt-1", "dom_selector": "input[name=\"answer\"][value=\"Twin\"]", "tag": "input", "input_type": "radio", "name_attr": "answer", "id_attr": "opt-1", "label_text": "Twin", "section_text": "Number of engines", "checked": false, "visible": true, "options": [{"value": "Single", "label": "Single"}, {"value": "Twin", "label": "Twin"}, {"value": "Triple", "label": "Triple"}], "radio_value": "Twin", "radio_group": "name:answer@doc", "group_label": "Number of engines", "row_text": "Model year2019ManufacturerTidelark BoatsModelShoalrunner 18Length overall (feet)18Engine typeOutboardTotal horsepower (all engines combined)115Number of enginesSingleTwinTripleContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, body){ const r = await fetch(url, {method, headers:{'Content-Type':'application/json'}, body: body ? JS"}, {"control_id": "opt-2", "dom_selector": "input[name=\"answer\"][value=\"Triple\"]", "tag": "input", "input_type": "radio", "name_attr": "answer", "id_attr": "opt-2", "label_text": "Triple", "section_text": "Number of engines", "checked": false, "visible": true, "options": [{"value": "Single", "label": "Single"}, {"value": "Twin", "label": "Twin"}, {"value": "Triple", "label": "Triple"}], "radio_value": "Triple", "radio_group": "name:answer@doc", "group_label": "Number of engines", "row_text": "Model year2019ManufacturerTidelark BoatsModelShoalrunner 18Length overall (feet)18Engine typeOutboardTotal horsepower (all engines combined)115Number of enginesSingleTwinTripleContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, body){ const r = await fetch(url, {method, headers:{'Content-Type':'application/json'}, body: body ? JS"}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Continue", "checked": null, "visible": true, "row_text": "Model year2019ManufacturerTidelark BoatsModelShoalrunner 18Length overall (feet)18Engine typeOutboardTotal horsepower (all engines combined)115Number of enginesSingleTwinTripleContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, body){ const r = await fetch(url, {method, headers:{'Content-Type':'application/json'}, body: body ? JS"}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a boat quote \u2013 Pellbrook Marine"} +FORM_TX_DEMO {"portal": "pellbrook", "step": 13, "why": "before click #next", "frame_url": "http://127.0.0.1:45879/boat/quote", "is_main": true, "controls": [{"control_id": "answer", "dom_selector": "#answer", "tag": "input", "input_type": "text", "name_attr": "answer", "id_attr": "answer", "label_text": "Agreed hull value", "current_value": "26500", "checked": null, "visible": true, "row_text": "ManufacturerTidelark BoatsModelShoalrunner 18Length overall (feet)18Engine typeOutboardTotal horsepower (all engines combined)115Number of enginesSingleAgreed hull valueLook up book valueThe amount we would pay for a total loss. Not sure? Look up the book value.Continue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, body){ const r = "}, {"control_id": "bv-open", "dom_selector": "#bv-open", "tag": "button", "id_attr": "bv-open", "label_text": "Look up book value", "checked": null, "visible": true, "row_text": "ManufacturerTidelark BoatsModelShoalrunner 18Length overall (feet)18Engine typeOutboardTotal horsepower (all engines combined)115Number of enginesSingleAgreed hull valueLook up book valueThe amount we would pay for a total loss. Not sure? Look up the book value.Continue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, body){ const r = "}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Continue", "checked": null, "visible": true, "row_text": "ManufacturerTidelark BoatsModelShoalrunner 18Length overall (feet)18Engine typeOutboardTotal horsepower (all engines combined)115Number of enginesSingleAgreed hull valueLook up book valueThe amount we would pay for a total loss. Not sure? Look up the book value.Continue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, body){ const r = "}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a boat quote \u2013 Pellbrook Marine"} +FORM_TX_DEMO {"portal": "pellbrook", "step": 14, "why": "before click #next", "frame_url": "http://127.0.0.1:45879/boat/quote", "is_main": true, "controls": [{"control_id": "opt-0", "dom_selector": "input[name=\"answer\"][value=\"On a trailer at my home\"]", "tag": "input", "input_type": "radio", "name_attr": "answer", "id_attr": "opt-0", "label_text": "On a trailer at my home", "section_text": "Where is the boat kept during the boating season?", "current_value": "On a trailer at my home", "checked": true, "visible": true, "options": [{"value": "On a trailer at my home", "label": "On a trailer at my home"}, {"value": "Dry stack or rack storage", "label": "Dry stack or rack storage"}, {"value": "Wet slip at a marina", "label": "Wet slip at a marina"}, {"value": "On a mooring", "label": "On a mooring"}], "radio_value": "On a trailer at my home", "radio_group": "name:answer@doc", "group_label": "Where is the boat kept during the boating season?", "row_text": "ModelShoalrunner 18Length overall (feet)18Engine typeOutboardTotal horsepower (all engines combined)115Number of enginesSingleAgreed hull value$26,500Where is the boat kept during the boating season?On a trailer at my homeDry stack or rack storageWet slip at a marinaOn a mooringContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, "}, {"control_id": "opt-1", "dom_selector": "input[name=\"answer\"][value=\"Dry stack or rack storage\"]", "tag": "input", "input_type": "radio", "name_attr": "answer", "id_attr": "opt-1", "label_text": "Dry stack or rack storage", "section_text": "Where is the boat kept during the boating season?", "checked": false, "visible": true, "options": [{"value": "On a trailer at my home", "label": "On a trailer at my home"}, {"value": "Dry stack or rack storage", "label": "Dry stack or rack storage"}, {"value": "Wet slip at a marina", "label": "Wet slip at a marina"}, {"value": "On a mooring", "label": "On a mooring"}], "radio_value": "Dry stack or rack storage", "radio_group": "name:answer@doc", "group_label": "Where is the boat kept during the boating season?", "row_text": "ModelShoalrunner 18Length overall (feet)18Engine typeOutboardTotal horsepower (all engines combined)115Number of enginesSingleAgreed hull value$26,500Where is the boat kept during the boating season?On a trailer at my homeDry stack or rack storageWet slip at a marinaOn a mooringContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, "}, {"control_id": "opt-2", "dom_selector": "input[name=\"answer\"][value=\"Wet slip at a marina\"]", "tag": "input", "input_type": "radio", "name_attr": "answer", "id_attr": "opt-2", "label_text": "Wet slip at a marina", "section_text": "Where is the boat kept during the boating season?", "checked": false, "visible": true, "options": [{"value": "On a trailer at my home", "label": "On a trailer at my home"}, {"value": "Dry stack or rack storage", "label": "Dry stack or rack storage"}, {"value": "Wet slip at a marina", "label": "Wet slip at a marina"}, {"value": "On a mooring", "label": "On a mooring"}], "radio_value": "Wet slip at a marina", "radio_group": "name:answer@doc", "group_label": "Where is the boat kept during the boating season?", "row_text": "ModelShoalrunner 18Length overall (feet)18Engine typeOutboardTotal horsepower (all engines combined)115Number of enginesSingleAgreed hull value$26,500Where is the boat kept during the boating season?On a trailer at my homeDry stack or rack storageWet slip at a marinaOn a mooringContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, "}, {"control_id": "opt-3", "dom_selector": "input[name=\"answer\"][value=\"On a mooring\"]", "tag": "input", "input_type": "radio", "name_attr": "answer", "id_attr": "opt-3", "label_text": "On a mooring", "section_text": "Where is the boat kept during the boating season?", "checked": false, "visible": true, "options": [{"value": "On a trailer at my home", "label": "On a trailer at my home"}, {"value": "Dry stack or rack storage", "label": "Dry stack or rack storage"}, {"value": "Wet slip at a marina", "label": "Wet slip at a marina"}, {"value": "On a mooring", "label": "On a mooring"}], "radio_value": "On a mooring", "radio_group": "name:answer@doc", "group_label": "Where is the boat kept during the boating season?", "row_text": "ModelShoalrunner 18Length overall (feet)18Engine typeOutboardTotal horsepower (all engines combined)115Number of enginesSingleAgreed hull value$26,500Where is the boat kept during the boating season?On a trailer at my homeDry stack or rack storageWet slip at a marinaOn a mooringContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, "}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Continue", "checked": null, "visible": true, "row_text": "ModelShoalrunner 18Length overall (feet)18Engine typeOutboardTotal horsepower (all engines combined)115Number of enginesSingleAgreed hull value$26,500Where is the boat kept during the boating season?On a trailer at my homeDry stack or rack storageWet slip at a marinaOn a mooringContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, "}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a boat quote \u2013 Pellbrook Marine"} +FORM_TX_DEMO {"portal": "pellbrook", "step": 15, "why": "before click #next", "frame_url": "http://127.0.0.1:45879/boat/quote", "is_main": true, "controls": [{"control_id": "opt-0", "dom_selector": "input[name=\"answer\"][value=\"Inland lakes and rivers\"]", "tag": "input", "input_type": "radio", "name_attr": "answer", "id_attr": "opt-0", "label_text": "Inland lakes and rivers", "section_text": "Where will you use the boat?", "current_value": "Inland lakes and rivers", "checked": true, "visible": true, "options": [{"value": "Inland lakes and rivers", "label": "Inland lakes and rivers"}, {"value": "Coastal waters within 25 miles of shore", "label": "Coastal waters within 25 miles of shore"}, {"value": "Coastal waters up to 75 miles offshore", "label": "Coastal waters up to 75 miles offshore"}], "radio_value": "Inland lakes and rivers", "radio_group": "name:answer@doc", "group_label": "Where will you use the boat?", "row_text": "Length overall (feet)18Engine typeOutboardTotal horsepower (all engines combined)115Number of enginesSingleAgreed hull value$26,500Where is the boat kept during the boating season?On a trailer at my homeWhere will you use the boat?Inland lakes and riversCoastal waters within 25 miles of shoreCoastal waters up to 75 miles offshoreContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq"}, {"control_id": "opt-1", "dom_selector": "input[name=\"answer\"][value=\"Coastal waters within 25 miles of shore\"]", "tag": "input", "input_type": "radio", "name_attr": "answer", "id_attr": "opt-1", "label_text": "Coastal waters within 25 miles of shore", "section_text": "Where will you use the boat?", "checked": false, "visible": true, "options": [{"value": "Inland lakes and rivers", "label": "Inland lakes and rivers"}, {"value": "Coastal waters within 25 miles of shore", "label": "Coastal waters within 25 miles of shore"}, {"value": "Coastal waters up to 75 miles offshore", "label": "Coastal waters up to 75 miles offshore"}], "radio_value": "Coastal waters within 25 miles of shore", "radio_group": "name:answer@doc", "group_label": "Where will you use the boat?", "row_text": "Length overall (feet)18Engine typeOutboardTotal horsepower (all engines combined)115Number of enginesSingleAgreed hull value$26,500Where is the boat kept during the boating season?On a trailer at my homeWhere will you use the boat?Inland lakes and riversCoastal waters within 25 miles of shoreCoastal waters up to 75 miles offshoreContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq"}, {"control_id": "opt-2", "dom_selector": "input[name=\"answer\"][value=\"Coastal waters up to 75 miles offshore\"]", "tag": "input", "input_type": "radio", "name_attr": "answer", "id_attr": "opt-2", "label_text": "Coastal waters up to 75 miles offshore", "section_text": "Where will you use the boat?", "checked": false, "visible": true, "options": [{"value": "Inland lakes and rivers", "label": "Inland lakes and rivers"}, {"value": "Coastal waters within 25 miles of shore", "label": "Coastal waters within 25 miles of shore"}, {"value": "Coastal waters up to 75 miles offshore", "label": "Coastal waters up to 75 miles offshore"}], "radio_value": "Coastal waters up to 75 miles offshore", "radio_group": "name:answer@doc", "group_label": "Where will you use the boat?", "row_text": "Length overall (feet)18Engine typeOutboardTotal horsepower (all engines combined)115Number of enginesSingleAgreed hull value$26,500Where is the boat kept during the boating season?On a trailer at my homeWhere will you use the boat?Inland lakes and riversCoastal waters within 25 miles of shoreCoastal waters up to 75 miles offshoreContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq"}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Continue", "checked": null, "visible": true, "row_text": "Length overall (feet)18Engine typeOutboardTotal horsepower (all engines combined)115Number of enginesSingleAgreed hull value$26,500Where is the boat kept during the boating season?On a trailer at my homeWhere will you use the boat?Inland lakes and riversCoastal waters within 25 miles of shoreCoastal waters up to 75 miles offshoreContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq"}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a boat quote \u2013 Pellbrook Marine"} +FORM_TX_DEMO {"portal": "pellbrook", "step": 16, "why": "before click #next", "frame_url": "http://127.0.0.1:45879/boat/quote", "is_main": true, "controls": [{"control_id": "opt-0", "dom_selector": "input[name=\"answer\"][value=\"Yes\"]", "tag": "input", "input_type": "radio", "name_attr": "answer", "id_attr": "opt-0", "label_text": "Yes", "section_text": "Has the primary operator completed a boating safety course?", "current_value": "Yes", "checked": true, "visible": true, "options": [{"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "radio_value": "Yes", "radio_group": "name:answer@doc", "group_label": "Has the primary operator completed a boating safety course?", "row_text": "Engine typeOutboardTotal horsepower (all engines combined)115Number of enginesSingleAgreed hull value$26,500Where is the boat kept during the boating season?On a trailer at my homeWhere will you use the boat?Inland lakes and riversHas the primary operator completed a boating safety course?YesNoContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function a"}, {"control_id": "opt-1", "dom_selector": "input[name=\"answer\"][value=\"No\"]", "tag": "input", "input_type": "radio", "name_attr": "answer", "id_attr": "opt-1", "label_text": "No", "section_text": "Has the primary operator completed a boating safety course?", "checked": false, "visible": true, "options": [{"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "radio_value": "No", "radio_group": "name:answer@doc", "group_label": "Has the primary operator completed a boating safety course?", "row_text": "Engine typeOutboardTotal horsepower (all engines combined)115Number of enginesSingleAgreed hull value$26,500Where is the boat kept during the boating season?On a trailer at my homeWhere will you use the boat?Inland lakes and riversHas the primary operator completed a boating safety course?YesNoContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function a"}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Continue", "checked": null, "visible": true, "row_text": "Engine typeOutboardTotal horsepower (all engines combined)115Number of enginesSingleAgreed hull value$26,500Where is the boat kept during the boating season?On a trailer at my homeWhere will you use the boat?Inland lakes and riversHas the primary operator completed a boating safety course?YesNoContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function a"}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a boat quote \u2013 Pellbrook Marine"} +FORM_TX_DEMO {"portal": "pellbrook", "step": 17, "why": "before click #next", "frame_url": "http://127.0.0.1:45879/boat/quote", "is_main": true, "controls": [{"control_id": "answer", "dom_selector": "#answer", "tag": "input", "input_type": "text", "name_attr": "answer", "id_attr": "answer", "label_text": "Boat insurance claims in the last 3 years", "current_value": "0", "checked": null, "visible": true, "row_text": "Total horsepower (all engines combined)115Number of enginesSingleAgreed hull value$26,500Where is the boat kept during the boating season?On a trailer at my homeWhere will you use the boat?Inland lakes and riversHas the primary operator completed a boating safety course?YesBoat insurance claims in the last 3 yearsContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = fal"}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Continue", "checked": null, "visible": true, "row_text": "Total horsepower (all engines combined)115Number of enginesSingleAgreed hull value$26,500Where is the boat kept during the boating season?On a trailer at my homeWhere will you use the boat?Inland lakes and riversHas the primary operator completed a boating safety course?YesBoat insurance claims in the last 3 yearsContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = fal"}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a boat quote \u2013 Pellbrook Marine"} +FORM_TX_DEMO {"portal": "pellbrook", "step": 18, "why": "before click #next", "frame_url": "http://127.0.0.1:45879/boat/quote", "is_main": true, "controls": [{"control_id": "answer", "dom_selector": "#answer", "tag": "input", "input_type": "text", "name_attr": "answer", "id_attr": "answer", "label_text": "Lienholder (lender with a loan on this boat)", "checked": null, "visible": true, "row_text": "Number of enginesSingleAgreed hull value$26,500Where is the boat kept during the boating season?On a trailer at my homeWhere will you use the boat?Inland lakes and riversHas the primary operator completed a boating safety course?YesBoat insurance claims in the last 3 years0Lienholder (lender with a loan on this boat)Leave blank if there is no loan.Continue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'&qu"}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Continue", "checked": null, "visible": true, "row_text": "Number of enginesSingleAgreed hull value$26,500Where is the boat kept during the boating season?On a trailer at my homeWhere will you use the boat?Inland lakes and riversHas the primary operator completed a boating safety course?YesBoat insurance claims in the last 3 years0Lienholder (lender with a loan on this boat)Leave blank if there is no loan.Continue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'&qu"}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a boat quote \u2013 Pellbrook Marine"} +FORM_TX_DEMO {"portal": "pellbrook", "step": 19, "why": "before click #next", "frame_url": "http://127.0.0.1:45879/boat/quote", "is_main": true, "controls": [{"control_id": "opt-0", "dom_selector": "input[name=\"answer\"][value=\"100000\"]", "tag": "input", "input_type": "radio", "name_attr": "answer", "id_attr": "opt-0", "label_text": "$100,000", "section_text": "Liability limit", "checked": false, "visible": true, "options": [{"value": "100000", "label": "$100,000"}, {"value": "300000", "label": "$300,000"}, {"value": "500000", "label": "$500,000"}], "radio_value": "100000", "radio_group": "name:answer@doc", "group_label": "Liability limit", "row_text": "Agreed hull value$26,500Where is the boat kept during the boating season?On a trailer at my homeWhere will you use the boat?Inland lakes and riversHas the primary operator completed a boating safety course?YesBoat insurance claims in the last 3 years0Lienholder (lender with a loan on this boat)NoneLiability limit$100,000$300,000$500,000Continue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); "}, {"control_id": "opt-1", "dom_selector": "input[name=\"answer\"][value=\"300000\"]", "tag": "input", "input_type": "radio", "name_attr": "answer", "id_attr": "opt-1", "label_text": "$300,000", "section_text": "Liability limit", "current_value": "300000", "checked": true, "visible": true, "options": [{"value": "100000", "label": "$100,000"}, {"value": "300000", "label": "$300,000"}, {"value": "500000", "label": "$500,000"}], "radio_value": "300000", "radio_group": "name:answer@doc", "group_label": "Liability limit", "row_text": "Agreed hull value$26,500Where is the boat kept during the boating season?On a trailer at my homeWhere will you use the boat?Inland lakes and riversHas the primary operator completed a boating safety course?YesBoat insurance claims in the last 3 years0Lienholder (lender with a loan on this boat)NoneLiability limit$100,000$300,000$500,000Continue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); "}, {"control_id": "opt-2", "dom_selector": "input[name=\"answer\"][value=\"500000\"]", "tag": "input", "input_type": "radio", "name_attr": "answer", "id_attr": "opt-2", "label_text": "$500,000", "section_text": "Liability limit", "checked": false, "visible": true, "options": [{"value": "100000", "label": "$100,000"}, {"value": "300000", "label": "$300,000"}, {"value": "500000", "label": "$500,000"}], "radio_value": "500000", "radio_group": "name:answer@doc", "group_label": "Liability limit", "row_text": "Agreed hull value$26,500Where is the boat kept during the boating season?On a trailer at my homeWhere will you use the boat?Inland lakes and riversHas the primary operator completed a boating safety course?YesBoat insurance claims in the last 3 years0Lienholder (lender with a loan on this boat)NoneLiability limit$100,000$300,000$500,000Continue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); "}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Continue", "checked": null, "visible": true, "row_text": "Agreed hull value$26,500Where is the boat kept during the boating season?On a trailer at my homeWhere will you use the boat?Inland lakes and riversHas the primary operator completed a boating safety course?YesBoat insurance claims in the last 3 years0Lienholder (lender with a loan on this boat)NoneLiability limit$100,000$300,000$500,000Continue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); "}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a boat quote \u2013 Pellbrook Marine"} +FORM_TX_DEMO {"portal": "pellbrook", "step": 20, "why": "before click #next", "frame_url": "http://127.0.0.1:45879/boat/quote", "is_main": true, "controls": [{"control_id": "opt-0", "dom_selector": "input[name=\"answer\"][value=\"500\"]", "tag": "input", "input_type": "radio", "name_attr": "answer", "id_attr": "opt-0", "label_text": "$500", "section_text": "Hull deductible", "current_value": "500", "checked": true, "visible": true, "options": [{"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}], "radio_value": "500", "radio_group": "name:answer@doc", "group_label": "Hull deductible", "row_text": "Where is the boat kept during the boating season?On a trailer at my homeWhere will you use the boat?Inland lakes and riversHas the primary operator completed a boating safety course?YesBoat insurance claims in the last 3 years0Lienholder (lender with a loan on this boat)NoneLiability limit$300,000Hull deductible$500$1,000$2,500Continue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq ="}, {"control_id": "opt-1", "dom_selector": "input[name=\"answer\"][value=\"1000\"]", "tag": "input", "input_type": "radio", "name_attr": "answer", "id_attr": "opt-1", "label_text": "$1,000", "section_text": "Hull deductible", "checked": false, "visible": true, "options": [{"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}], "radio_value": "1000", "radio_group": "name:answer@doc", "group_label": "Hull deductible", "row_text": "Where is the boat kept during the boating season?On a trailer at my homeWhere will you use the boat?Inland lakes and riversHas the primary operator completed a boating safety course?YesBoat insurance claims in the last 3 years0Lienholder (lender with a loan on this boat)NoneLiability limit$300,000Hull deductible$500$1,000$2,500Continue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq ="}, {"control_id": "opt-2", "dom_selector": "input[name=\"answer\"][value=\"2500\"]", "tag": "input", "input_type": "radio", "name_attr": "answer", "id_attr": "opt-2", "label_text": "$2,500", "section_text": "Hull deductible", "checked": false, "visible": true, "options": [{"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}], "radio_value": "2500", "radio_group": "name:answer@doc", "group_label": "Hull deductible", "row_text": "Where is the boat kept during the boating season?On a trailer at my homeWhere will you use the boat?Inland lakes and riversHas the primary operator completed a boating safety course?YesBoat insurance claims in the last 3 years0Lienholder (lender with a loan on this boat)NoneLiability limit$300,000Hull deductible$500$1,000$2,500Continue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq ="}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Continue", "checked": null, "visible": true, "row_text": "Where is the boat kept during the boating season?On a trailer at my homeWhere will you use the boat?Inland lakes and riversHas the primary operator completed a boating safety course?YesBoat insurance claims in the last 3 years0Lienholder (lender with a loan on this boat)NoneLiability limit$300,000Hull deductible$500$1,000$2,500Continue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq ="}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a boat quote \u2013 Pellbrook Marine"} +FORM_TX_DEMO {"portal": "pellbrook", "step": 21, "why": "before click #next", "frame_url": "http://127.0.0.1:45879/boat/quote", "is_main": true, "controls": [{"control_id": "answer", "dom_selector": "#answer", "tag": "input", "input_type": "text", "name_attr": "answer", "id_attr": "answer", "label_text": "Coverage start date", "current_value": "05/01/2027", "checked": null, "visible": true, "row_text": "Where will you use the boat?Inland lakes and riversHas the primary operator completed a boating safety course?YesBoat insurance claims in the last 3 years0Lienholder (lender with a loan on this boat)NoneLiability limit$300,000Hull deductible$500Coverage start dateContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, body){ const r "}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Continue", "checked": null, "visible": true, "row_text": "Where will you use the boat?Inland lakes and riversHas the primary operator completed a boating safety course?YesBoat insurance claims in the last 3 years0Lienholder (lender with a loan on this boat)NoneLiability limit$300,000Hull deductible$500Coverage start dateContinue const $ = s => document.querySelector(s); const h = s => String(s ?? '').replace(/[&<>\"]/g, c => ({'&':'&','<':'<','>':'>','\"':'"'}[c])); let seq = 0, busy = false; async function api(method, url, body){ const r "}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a boat quote \u2013 Pellbrook Marine"} +FORM_TX_DEMO {"portal": "pellbrook", "step": 22, "why": "before click #get-quote", "frame_url": "http://127.0.0.1:45879/boat/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#summary > tbody > tr:nth-of-type(1) > td:nth-of-type(2) > button", "tag": "button", "label_text": "Change First name", "section_text": "Here\u2019s what we have", "checked": null, "visible": true, "row_text": "First nameHarlanChange", "row_cells": ["First name", "Harlan", "Change"]}, {"control_id": "ctrl_1", "dom_selector": "#summary > tbody > tr:nth-of-type(2) > td:nth-of-type(2) > button", "tag": "button", "label_text": "Change Last name", "section_text": "Here\u2019s what we have", "checked": null, "visible": true, "row_text": "Last nameQuistChange", "row_cells": ["Last name", "Quist", "Change"]}, {"control_id": "ctrl_2", "dom_selector": "#summary > tbody > tr:nth-of-type(3) > td:nth-of-type(2) > button", "tag": "button", "label_text": "Change Date of birth", "section_text": "Here\u2019s what we have", "checked": null, "visible": true, "row_text": "Date of birth08/14/1977Change", "row_cells": ["Date of birth", "08/14/1977", "Change"]}, {"control_id": "ctrl_3", "dom_selector": "#summary > tbody > tr:nth-of-type(4) > td:nth-of-type(2) > button", "tag": "button", "label_text": "Change Email address", "section_text": "Here\u2019s what we have", "checked": null, "visible": true, "row_text": "Email addressharlan.quist@example.testChange", "row_cells": ["Email address", "harlan.quist@example.test", "Change"]}, {"control_id": "ctrl_4", "dom_selector": "#summary > tbody > tr:nth-of-type(5) > td:nth-of-type(2) > button", "tag": "button", "label_text": "Change ZIP code where the boat is kept", "section_text": "Here\u2019s what we have", "checked": null, "visible": true, "row_text": "ZIP code where the boat is kept54806Change", "row_cells": ["ZIP code where the boat is kept", "54806", "Change"]}, {"control_id": "ctrl_5", "dom_selector": "#summary > tbody > tr:nth-of-type(6) > td:nth-of-type(2) > button", "tag": "button", "label_text": "Change Model year", "section_text": "Here\u2019s what we have", "checked": null, "visible": true, "row_text": "Model year2019Change", "row_cells": ["Model year", "2019", "Change"]}, {"control_id": "ctrl_6", "dom_selector": "#summary > tbody > tr:nth-of-type(7) > td:nth-of-type(2) > button", "tag": "button", "label_text": "Change Manufacturer", "section_text": "Here\u2019s what we have", "checked": null, "visible": true, "row_text": "ManufacturerTidelark BoatsChange", "row_cells": ["Manufacturer", "Tidelark Boats", "Change"]}, {"control_id": "ctrl_7", "dom_selector": "#summary > tbody > tr:nth-of-type(8) > td:nth-of-type(2) > button", "tag": "button", "label_text": "Change Model", "section_text": "Here\u2019s what we have", "checked": null, "visible": true, "row_text": "ModelShoalrunner 18Change", "row_cells": ["Model", "Shoalrunner 18", "Change"]}, {"control_id": "ctrl_8", "dom_selector": "#summary > tbody > tr:nth-of-type(9) > td:nth-of-type(2) > button", "tag": "button", "label_text": "Change Length overall (feet)", "section_text": "Here\u2019s what we have", "checked": null, "visible": true, "row_text": "Length overall (feet)18Change", "row_cells": ["Length overall (feet)", "18", "Change"]}, {"control_id": "ctrl_9", "dom_selector": "#summary > tbody > tr:nth-of-type(10) > td:nth-of-type(2) > button", "tag": "button", "label_text": "Change Engine type", "section_text": "Here\u2019s what we have", "checked": null, "visible": true, "row_text": "Engine typeOutboardChange", "row_cells": ["Engine type", "Outboard", "Change"]}, {"control_id": "ctrl_10", "dom_selector": "#summary > tbody > tr:nth-of-type(11) > td:nth-of-type(2) > button", "tag": "button", "label_text": "Change Total horsepower (all engines combined)", "section_text": "Here\u2019s what we have", "checked": null, "visible": true, "row_text": "Total horsepower (all engines combined)115Change", "row_cells": ["Total horsepower (all engines combined)", "115", "Change"]}, {"control_id": "ctrl_11", "dom_selector": "#summary > tbody > tr:nth-of-type(12) > td:nth-of-type(2) > button", "tag": "button", "label_text": "Change Number of engines", "section_text": "Here\u2019s what we have", "checked": null, "visible": true, "row_text": "Number of enginesSingleChange", "row_cells": ["Number of engines", "Single", "Change"]}, {"control_id": "ctrl_12", "dom_selector": "#summary > tbody > tr:nth-of-type(13) > td:nth-of-type(2) > button", "tag": "button", "label_text": "Change Agreed hull value", "section_text": "Here\u2019s what we have", "checked": null, "visible": true, "row_text": "Agreed hull value$26,500Change", "row_cells": ["Agreed hull value", "$26,500", "Change"]}, {"control_id": "ctrl_13", "dom_selector": "#summary > tbody > tr:nth-of-type(14) > td:nth-of-type(2) > button", "tag": "button", "label_text": "Change Where is the boat kept during the boating season?", "section_text": "Here\u2019s what we have", "checked": null, "visible": true, "row_text": "Where is the boat kept during the boating season?On a trailer at my homeChange", "row_cells": ["Where is the boat kept during the boating season?", "On a trailer at my home", "Change"]}, {"control_id": "ctrl_14", "dom_selector": "#summary > tbody > tr:nth-of-type(15) > td:nth-of-type(2) > button", "tag": "button", "label_text": "Change Where will you use the boat?", "section_text": "Here\u2019s what we have", "checked": null, "visible": true, "row_text": "Where will you use the boat?Inland lakes and riversChange", "row_cells": ["Where will you use the boat?", "Inland lakes and rivers", "Change"]}, {"control_id": "ctrl_15", "dom_selector": "#summary > tbody > tr:nth-of-type(16) > td:nth-of-type(2) > button", "tag": "button", "label_text": "Change Has the primary operator completed a boating safety course?", "section_text": "Here\u2019s what we have", "checked": null, "visible": true, "row_text": "Has the primary operator completed a boating safety course?YesChange", "row_cells": ["Has the primary operator completed a boating safety course?", "Yes", "Change"]}, {"control_id": "ctrl_16", "dom_selector": "#summary > tbody > tr:nth-of-type(17) > td:nth-of-type(2) > button", "tag": "button", "label_text": "Change Boat insurance claims in the last 3 years", "section_text": "Here\u2019s what we have", "checked": null, "visible": true, "row_text": "Boat insurance claims in the last 3 years0Change", "row_cells": ["Boat insurance claims in the last 3 years", "0", "Change"]}, {"control_id": "ctrl_17", "dom_selector": "#summary > tbody > tr:nth-of-type(18) > td:nth-of-type(2) > button", "tag": "button", "label_text": "Change Lienholder (lender with a loan on this boat)", "section_text": "Here\u2019s what we have", "checked": null, "visible": true, "row_text": "Lienholder (lender with a loan on this boat)NoneChange", "row_cells": ["Lienholder (lender with a loan on this boat)", "None", "Change"]}, {"control_id": "ctrl_18", "dom_selector": "#summary > tbody > tr:nth-of-type(19) > td:nth-of-type(2) > button", "tag": "button", "label_text": "Change Liability limit", "section_text": "Here\u2019s what we have", "checked": null, "visible": true, "row_text": "Liability limit$300,000Change", "row_cells": ["Liability limit", "$300,000", "Change"]}, {"control_id": "ctrl_19", "dom_selector": "#summary > tbody > tr:nth-of-type(20) > td:nth-of-type(2) > button", "tag": "button", "label_text": "Change Hull deductible", "section_text": "Here\u2019s what we have", "checked": null, "visible": true, "row_text": "Hull deductible$500Change", "row_cells": ["Hull deductible", "$500", "Change"]}, {"control_id": "ctrl_20", "dom_selector": "#summary > tbody > tr:nth-of-type(21) > td:nth-of-type(2) > button", "tag": "button", "label_text": "Change Coverage start date", "section_text": "Here\u2019s what we have", "checked": null, "visible": true, "row_text": "Coverage start date05/01/2027Change", "row_cells": ["Coverage start date", "05/01/2027", "Change"]}, {"control_id": "get-quote", "dom_selector": "#get-quote", "tag": "button", "id_attr": "get-quote", "label_text": "Get my quote", "section_text": "Here\u2019s what we have", "checked": null, "visible": true, "row_text": "Here\u2019s what we haveCheck each answer. Use Change to fix anything that is not right.First nameHarlanChangeLast nameQuistChangeDate of birth08/14/1977ChangeEmail addressharlan.quist@example.testChangeZIP code where the boat is kept54806ChangeModel year2019ChangeManufacturerTidelark BoatsChangeModelShoalrunner 18ChangeLength overall (feet)18ChangeEngine typeOutboardChangeTotal horsepower (all engines combined)115ChangeNumber of enginesSingleChangeAgreed hull value$26,500ChangeWhere is the boat kept"}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a boat quote \u2013 Pellbrook Marine"} +FORM_TX_DEMO {"portal": "pellbrook", "step": 23, "why": "end of case", "frame_url": "http://127.0.0.1:45879/boat/quote/PBM-41001-Q", "is_main": true, "controls": [], "text_pairs": [{"label": "First name", "value": "Harlan", "section_text": "Your boat quote", "source": "table_row"}, {"label": "Last name", "value": "Quist", "section_text": "Your boat quote", "source": "table_row"}, {"label": "Date of birth", "value": "08/14/1977", "section_text": "Your boat quote", "source": "table_row"}, {"label": "Email address", "value": "harlan.quist@example.test", "section_text": "Your boat quote", "source": "table_row"}, {"label": "ZIP code where the boat is kept", "value": "54806", "section_text": "Your boat quote", "source": "table_row"}, {"label": "Model year", "value": "2019", "section_text": "Your boat quote", "source": "table_row"}, {"label": "Manufacturer", "value": "Tidelark Boats", "section_text": "Your boat quote", "source": "table_row"}, {"label": "Model", "value": "Shoalrunner 18", "section_text": "Your boat quote", "source": "table_row"}, {"label": "Length overall (feet)", "value": "18", "section_text": "Your boat quote", "source": "table_row"}, {"label": "Engine type", "value": "Outboard", "section_text": "Your boat quote", "source": "table_row"}, {"label": "Total horsepower (all engines combined)", "value": "115", "section_text": "Your boat quote", "source": "table_row"}, {"label": "Number of engines", "value": "Single", "section_text": "Your boat quote", "source": "table_row"}, {"label": "Agreed hull value", "value": "$26,500", "section_text": "Your boat quote", "source": "table_row"}, {"label": "Where is the boat kept during the boating season?", "value": "On a trailer at my home", "section_text": "Your boat quote", "source": "table_row"}, {"label": "Lay-up period (boat out of commission)", "value": "None", "section_text": "Your boat quote", "source": "table_row"}, {"label": "Where will you use the boat?", "value": "Inland lakes and rivers", "section_text": "Your boat quote", "source": "table_row"}, {"label": "Has the primary operator completed a boating safety course?", "value": "Yes", "section_text": "Your boat quote", "source": "table_row"}, {"label": "Boat insurance claims in the last 3 years", "value": "0", "section_text": "Your boat quote", "source": "table_row"}, {"label": "Lienholder (lender with a loan on this boat)", "value": "None", "section_text": "Your boat quote", "source": "table_row"}, {"label": "Liability limit", "value": "$300,000", "section_text": "Your boat quote", "source": "table_row"}, {"label": "Hull deductible", "value": "$500", "section_text": "Your boat quote", "source": "table_row"}, {"label": "Coverage start date", "value": "05/01/2027", "section_text": "Your boat quote", "source": "table_row"}], "banners": [], "modals": [], "title": "Quote PBM-41001-Q \u2013 Pellbrook Marine"} +FORM_TX_DEMO_RESULT [{"case_id": "pb-dev", "correct": true}] diff --git a/packages/flow/benchmark/form_tx_heldout3_run/record_demo.py b/packages/flow/benchmark/form_tx_heldout3_run/record_demo.py new file mode 100644 index 0000000000..9c410abb8f --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3_run/record_demo.py @@ -0,0 +1,117 @@ +"""Record one demonstration per portal: what the form layer sees on the dev case. + +The portal author's careful-human driver runs on each portal's dev case only. +Before each of its clicks, and before the browser context closes, this saves +what ``PlaywrightFormSurface`` sees in every frame of every open page: +controls, page-text pairs, banners and dialogs. The pack author writes packs +from these recordings and the dev intake, without reading portal source. + + python benchmark/form_tx_heldout3_run/record_demo.py [portal ...] > demo.jsonl +""" + +from __future__ import annotations + +import json +import sys +from pathlib import Path +from typing import Any + +HERE = Path(__file__).resolve().parent +sys.path.insert(0, str(HERE.parents[1])) # packages/flow + +from benchmark.form_tx_heldout3 import reference_human, runner # noqa: E402 +from benchmark.form_tx_heldout3.portals import PORTALS # noqa: E402 +from openadapt_flow.form_tx.playwright_surface import PlaywrightFormSurface # noqa: E402 +from openadapt_flow.form_tx.types import UIProfileSpec # noqa: E402 + +MARK = "FORM_TX_DEMO" +_STATE = {"busy": False, "step": 0, "portal": ""} +_PROFILE = UIProfileSpec(profile_id="demo-recorder", max_settle_ms=6000) + + +def _capture(page: Any, why: str) -> None: + if _STATE["busy"]: + return + _STATE["busy"] = True + try: + for frame in page.frames: + row: dict[str, Any] = { + "portal": _STATE["portal"], + "step": _STATE["step"], + "why": why, + "frame_url": frame.url, + "is_main": frame == page.main_frame, + } + try: + surface = PlaywrightFormSurface(frame, _PROFILE) + snap = surface.snapshot() + surface._detach() + row["controls"] = [ + { + k: v + for k, v in c.model_dump().items() + if v not in ("", None, (), [], False) or k in ("checked",) + } + for c in snap.controls + ] + row["text_pairs"] = [p.model_dump() for p in snap.text_pairs] + row["banners"] = list(snap.banner_errors) + row["modals"] = [m.model_dump() for m in snap.active_modals] + row["title"] = snap.title + except Exception as exc: # noqa: BLE001 + row["error"] = repr(exc)[:300] + print(MARK + " " + json.dumps(row, default=str), flush=True) + _STATE["step"] += 1 + finally: + _STATE["busy"] = False + + +def _patch() -> None: + from playwright.sync_api import BrowserContext, Locator, Page + + orig_click = Locator.click + orig_page_click = Page.click + orig_close = BrowserContext.close + + def click(self: Any, *a: Any, **kw: Any) -> Any: + try: + desc = str(self) + except Exception: # noqa: BLE001 + desc = "?" + _capture(self.page, f"before click {desc[:200]}") + return orig_click(self, *a, **kw) + + def page_click(self: Any, selector: str, *a: Any, **kw: Any) -> Any: + _capture(self, f"before click {selector[:200]}") + return orig_page_click(self, selector, *a, **kw) + + def close(self: Any, *a: Any, **kw: Any) -> Any: + for p in list(self.pages): + _capture(p, "end of case") + return orig_close(self, *a, **kw) + + Locator.click = click # type: ignore[method-assign] + Page.click = page_click # type: ignore[method-assign] + BrowserContext.close = close # type: ignore[method-assign] + + +def main(argv: list[str]) -> None: + _patch() + for pid in argv or list(PORTALS): + _STATE["portal"], _STATE["step"] = pid, 0 + spec = PORTALS[pid] + rows = runner.run_cases( + reference_human.make_source, [pid], include_dev=True, only=[spec.dev_case] + ) + print( + MARK + + "_RESULT " + + json.dumps( + [{"case_id": r["case_id"], "correct": r.get("correct")} for r in rows] + ), + flush=True, + ) + + +if __name__ == "__main__": + main(sys.argv[1:]) diff --git a/packages/flow/benchmark/form_tx_heldout3_run/results/arm_A.jsonl b/packages/flow/benchmark/form_tx_heldout3_run/results/arm_A.jsonl new file mode 100644 index 0000000000..72eac40567 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3_run/results/arm_A.jsonl @@ -0,0 +1,16 @@ +{"portal": "corvane", "case_id": "cv-s01", "outcome": "submitted", "correct": true} +{"portal": "corvane", "case_id": "cv-s02", "outcome": "submitted", "correct": false} +{"portal": "corvane", "case_id": "cv-s03", "outcome": "submitted", "correct": true} +{"portal": "corvane", "case_id": "cv-s04", "outcome": "submitted", "correct": false} +{"portal": "corvane", "case_id": "cv-s05", "outcome": "submitted", "correct": false} +{"portal": "corvane", "case_id": "cv-s06", "outcome": "submitted", "correct": false} +{"portal": "corvane", "case_id": "cv-s07", "outcome": "submitted", "correct": false} +{"portal": "corvane", "case_id": "cv-s08", "outcome": "submitted", "correct": true} +{"portal": "pellbrook", "case_id": "pb-s01", "outcome": "submitted", "correct": true} +{"portal": "pellbrook", "case_id": "pb-s02", "outcome": "submitted", "correct": false} +{"portal": "pellbrook", "case_id": "pb-s03", "outcome": "submitted", "correct": true} +{"portal": "pellbrook", "case_id": "pb-s04", "outcome": "submitted", "correct": false} +{"portal": "pellbrook", "case_id": "pb-s05", "outcome": "submitted", "correct": false} +{"portal": "pellbrook", "case_id": "pb-s06", "outcome": "submitted", "correct": true} +{"portal": "pellbrook", "case_id": "pb-s07", "outcome": "submitted", "correct": false} +{"portal": "pellbrook", "case_id": "pb-s08", "outcome": "submitted", "correct": false} diff --git a/packages/flow/benchmark/form_tx_heldout3_run/results/arm_A_full.log b/packages/flow/benchmark/form_tx_heldout3_run/results/arm_A_full.log new file mode 100644 index 0000000000..fccf3b7592 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3_run/results/arm_A_full.log @@ -0,0 +1,469 @@ +{"portal": "corvane", "case_id": "cv-s01", "outcome": "submitted", "correct": true} +{"portal": "corvane", "case_id": "cv-s02", "outcome": "submitted", "correct": false} +{"portal": "corvane", "case_id": "cv-s03", "outcome": "submitted", "correct": true} +{"portal": "corvane", "case_id": "cv-s04", "outcome": "submitted", "correct": false} +{"portal": "corvane", "case_id": "cv-s05", "outcome": "submitted", "correct": false} +{"portal": "corvane", "case_id": "cv-s06", "outcome": "submitted", "correct": false} +{"portal": "corvane", "case_id": "cv-s07", "outcome": "submitted", "correct": false} +{"portal": "corvane", "case_id": "cv-s08", "outcome": "submitted", "correct": true} +<<>> +{"portal": "pellbrook", "case_id": "pb-s01", "outcome": "submitted", "correct": true} +{"portal": "pellbrook", "case_id": "pb-s02", "outcome": "submitted", "correct": false} +{"portal": "pellbrook", "case_id": "pb-s03", "outcome": "submitted", "correct": true} +{"portal": "pellbrook", "case_id": "pb-s04", "outcome": "submitted", "correct": false} +{"portal": "pellbrook", "case_id": "pb-s05", "outcome": "submitted", "correct": false} +{"portal": "pellbrook", "case_id": "pb-s06", "outcome": "submitted", "correct": true} +{"portal": "pellbrook", "case_id": "pb-s07", "outcome": "submitted", "correct": false} +{"portal": "pellbrook", "case_id": "pb-s08", "outcome": "submitted", "correct": false} +<<>> diff --git a/packages/flow/benchmark/form_tx_heldout3_run/results/arm_B.jsonl b/packages/flow/benchmark/form_tx_heldout3_run/results/arm_B.jsonl new file mode 100644 index 0000000000..bd063603eb --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3_run/results/arm_B.jsonl @@ -0,0 +1,16 @@ +{"portal": "corvane", "case_id": "cv-s01", "halts": [], "outcome": "verified_done", "what_happened": "Committed and verified via independent read-back", "readback": {"passed": 23, "failed": [], "not_checked": []}, "receipt": true, "elapsed_s": 7.9, "score": {"case_id": "cv-s01", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "corvane", "case_id": "cv-s02", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Phone", "dossier_key": "phone", "message": "Prefilled value on 'Phone' conflicts with grounded dossier state for 'phone'", "url": "quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_65ac07f8e1bab9 to owner", "receipt": false, "elapsed_s": 1.5, "score": {"case_id": "cv-s02", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "date_of_birth", "email", "phone", "co_applicant_name", "property_street", "property_city", "property_state", "property_zip", "year_built", "square_feet", "construction", "roof_material", "roof_year", "occupancy", "dogs", "dog_breeds", "dog_bite_history", "mortgagee", "loan_number", "dwelling_limit", "personal_liability", "deductible", "effective_date"]}, "arm": "B"} +{"portal": "corvane", "case_id": "cv-s03", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Dwelling (Coverage A) limit", "dossier_key": "dwelling_limit", "message": "Required control 'Dwelling (Coverage A) limit' has no grounded value in dossier", "url": "quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_975d31f44a81de to owner", "receipt": false, "elapsed_s": 8.5, "score": {"case_id": "cv-s03", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "date_of_birth", "email", "phone", "co_applicant_name", "property_street", "property_city", "property_state", "property_zip", "year_built", "square_feet", "construction", "roof_material", "roof_year", "occupancy", "dogs", "dog_breeds", "dog_bite_history", "mortgagee", "loan_number", "dwelling_limit", "personal_liability", "deductible", "effective_date"]}, "arm": "B"} +{"portal": "corvane", "case_id": "cv-s04", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Has any dog at this address ever bitten a person or another animal?", "dossier_key": "dog_bite_history", "message": "Screen 'cv_household' did not advance after clicking Next; Has any dog at this address ever bitten a person or another animal?: Has any dog at this address ever bitten a person or another animal? is required.", "url": "quote", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "verified_done", "what_happened": "Committed and verified via independent read-back", "readback": {"passed": 24, "failed": [], "not_checked": []}, "receipt": true, "elapsed_s": 12.5, "score": {"case_id": "cv-s04", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": false, "correct": false, "wrong_fields": ["dog_breeds"], "wrong_details": [{"field": "dog_breeds", "expected": "Labrador retriever, Border collie mix", "stored": ""}], "missing_fields": []}, "arm": "B"} +{"portal": "corvane", "case_id": "cv-s05", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "Mortgagee (lender)", "dossier_key": "mortgagee_clause", "message": "No option matched 'Brightwater Federal Credit Union ISAOA, PO Box 2210, Tacoma WA 98401' among ['Brightwater Federal Credit Union ISAOA ATIMA, PO Box 5520, Spokane WA 99205', 'Brightwater Federal Credit Union ISAOA ATIMA, PO Box 2210, Tacom", "url": "quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_b2fd966b7c70f9 to owner", "receipt": false, "elapsed_s": 7.1, "score": {"case_id": "cv-s05", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "date_of_birth", "email", "phone", "co_applicant_name", "property_street", "property_city", "property_state", "property_zip", "year_built", "square_feet", "construction", "roof_material", "roof_year", "occupancy", "dogs", "dog_breeds", "dog_bite_history", "mortgagee", "loan_number", "dwelling_limit", "personal_liability", "deductible", "effective_date"]}, "arm": "B"} +{"portal": "corvane", "case_id": "cv-s06", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "Mortgagee (lender)", "dossier_key": "mortgagee_clause", "message": "No option matched 'Tenbury Mortgage Services ISAOA, PO Box 60917, Boise ID 83701' among ['Tenbury Mortgage Services ISAOA ATIMA, PO Box 60917, Boise ID 83701']", "url": "quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_fbe79cb99f4295 to owner", "receipt": false, "elapsed_s": 5.7, "score": {"case_id": "cv-s06", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "date_of_birth", "email", "phone", "co_applicant_name", "property_street", "property_city", "property_state", "property_zip", "year_built", "square_feet", "construction", "roof_material", "roof_year", "occupancy", "dogs", "dog_breeds", "dog_bite_history", "mortgagee", "loan_number", "dwelling_limit", "personal_liability", "deductible", "effective_date"]}, "arm": "B"} +{"portal": "corvane", "case_id": "cv-s07", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Finished living area (sq ft)", "dossier_key": "square_feet", "message": "Prefilled value on 'Finished living area (sq ft)' conflicts with grounded dossier state for 'square_feet'", "url": "quote", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Year roof was installed or last replaced", "dossier_key": "roof_year", "message": "Prefilled value on 'Year roof was installed or last replaced' conflicts with grounded dossier state for 'roof_year'", "url": "quote", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "auth_wall_detected", "label": "", "dossier_key": null, "message": "Sign-in wall at 'http://127.0.0.1:46087/login' (sign-in form on screen)", "url": "login", "action": "fixed_on_screen", "before_submit": true}], "outcome": "verified_done", "what_happened": "Committed and verified via independent read-back", "readback": {"passed": 23, "failed": [], "not_checked": []}, "receipt": true, "elapsed_s": 21.1, "score": {"case_id": "cv-s07", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "corvane", "case_id": "cv-s08", "halts": [], "outcome": "verified_done", "what_happened": "Committed and verified via independent read-back", "readback": {"passed": 24, "failed": [], "not_checked": []}, "receipt": true, "elapsed_s": 10.1, "score": {"case_id": "cv-s08", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "pellbrook", "case_id": "pb-s01", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['lienholder']", "readback": {"passed": 21, "failed": [], "not_checked": ["lienholder"]}, "receipt": false, "elapsed_s": 25.1, "score": {"case_id": "pb-s01", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "pellbrook", "case_id": "pb-s02", "halts": [{"halt_kind": "portal_validation_blocked", "label": "", "dossier_key": null, "message": "Please answer this question to continue.", "url": "boat/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_72f7cab840957d to owner", "receipt": false, "elapsed_s": 15.3, "score": {"case_id": "pb-s02", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "date_of_birth", "email", "garaging_zip", "boat_year", "boat_make", "boat_model", "length_ft", "engine_type", "engine_count", "total_horsepower", "agreed_hull_value", "storage", "layup_period", "navigation_area", "safety_course", "losses_3yr", "lienholder", "liability_limit", "deductible", "effective_date"]}, "arm": "B"} +{"portal": "pellbrook", "case_id": "pb-s03", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['lienholder']", "readback": {"passed": 21, "failed": [], "not_checked": ["lienholder"]}, "receipt": false, "elapsed_s": 13.5, "score": {"case_id": "pb-s03", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "pellbrook", "case_id": "pb-s04", "halts": [], "outcome": "readback_refuted", "what_happened": "Independent read-back did not verify commit: ['total_horsepower']", "readback": {"passed": 20, "failed": ["total_horsepower"], "not_checked": ["lienholder"]}, "receipt": false, "elapsed_s": 23.3, "score": {"case_id": "pb-s04", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": false, "correct": false, "wrong_fields": ["total_horsepower"], "wrong_details": [{"field": "total_horsepower", "expected": 400, "stored": 800}], "missing_fields": []}, "arm": "B"} +{"portal": "pellbrook", "case_id": "pb-s05", "halts": [{"halt_kind": "portal_validation_blocked", "label": "", "dossier_key": null, "message": "Please answer this question to continue.", "url": "boat/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_26b6183f4968c3 to owner", "receipt": false, "elapsed_s": 15.7, "score": {"case_id": "pb-s05", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "date_of_birth", "email", "garaging_zip", "boat_year", "boat_make", "boat_model", "length_ft", "engine_type", "engine_count", "total_horsepower", "agreed_hull_value", "storage", "layup_period", "navigation_area", "safety_course", "losses_3yr", "lienholder", "liability_limit", "deductible", "effective_date"]}, "arm": "B"} +{"portal": "pellbrook", "case_id": "pb-s06", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Agreed hull value", "dossier_key": "agreed_hull_value", "message": "Please answer this question to continue.; Agreed hull value: Please answer this question to continue.; Continue: Please answer this question to continue.", "url": "boat/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_bc1267f77e3169 to owner", "receipt": false, "elapsed_s": 14.4, "score": {"case_id": "pb-s06", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "date_of_birth", "email", "garaging_zip", "boat_year", "boat_make", "boat_model", "length_ft", "engine_type", "engine_count", "total_horsepower", "agreed_hull_value", "storage", "layup_period", "navigation_area", "safety_course", "losses_3yr", "lienholder", "liability_limit", "deductible", "effective_date"]}, "arm": "B"} +{"portal": "pellbrook", "case_id": "pb-s07", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Model year", "dossier_key": "boat_year", "message": "Prefilled value on 'Model year' conflicts with grounded dossier state for 'boat_year'", "url": "boat/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_6be0b0d8ecb627 to owner", "receipt": false, "elapsed_s": 3.9, "score": {"case_id": "pb-s07", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "date_of_birth", "email", "garaging_zip", "boat_year", "boat_make", "boat_model", "length_ft", "engine_type", "engine_count", "total_horsepower", "agreed_hull_value", "storage", "layup_period", "navigation_area", "safety_course", "losses_3yr", "lienholder", "liability_limit", "deductible", "effective_date"]}, "arm": "B"} +{"portal": "pellbrook", "case_id": "pb-s08", "halts": [{"halt_kind": "portal_validation_blocked", "label": "", "dossier_key": null, "message": "Please answer this question to continue.", "url": "boat/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_5baea9875cf410 to owner", "receipt": false, "elapsed_s": 15.6, "score": {"case_id": "pb-s08", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "date_of_birth", "email", "garaging_zip", "boat_year", "boat_make", "boat_model", "length_ft", "engine_type", "engine_count", "total_horsepower", "agreed_hull_value", "storage", "layup_period", "navigation_area", "safety_course", "losses_3yr", "lienholder", "liability_limit", "deductible", "effective_date"]}, "arm": "B"} diff --git a/packages/flow/benchmark/form_tx_heldout3_run/results/arm_B_full.log b/packages/flow/benchmark/form_tx_heldout3_run/results/arm_B_full.log new file mode 100644 index 0000000000..c1ae91970c --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout3_run/results/arm_B_full.log @@ -0,0 +1,19 @@ + 05:10:43 up 13:48, 2 users, load average: 1.45, 1.82, 2.29 +Mem: 10954 2240 2905 213 6353 8714 +run branch 85606e0f0 +FORM_TX_HELDOUT_LAYER {"portal": "corvane", "case_id": "cv-s01", "halts": [], "outcome": "verified_done", "what_happened": "Committed and verified via independent read-back", "readback": {"passed": 23, "failed": [], "not_checked": []}, "receipt": true, "elapsed_s": 7.9, "score": {"case_id": "cv-s01", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "corvane", "case_id": "cv-s02", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Phone", "dossier_key": "phone", "message": "Prefilled value on 'Phone' conflicts with grounded dossier state for 'phone'", "url": "quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_65ac07f8e1bab9 to owner", "receipt": false, "elapsed_s": 1.5, "score": {"case_id": "cv-s02", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "date_of_birth", "email", "phone", "co_applicant_name", "property_street", "property_city", "property_state", "property_zip", "year_built", "square_feet", "construction", "roof_material", "roof_year", "occupancy", "dogs", "dog_breeds", "dog_bite_history", "mortgagee", "loan_number", "dwelling_limit", "personal_liability", "deductible", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "corvane", "case_id": "cv-s03", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Dwelling (Coverage A) limit", "dossier_key": "dwelling_limit", "message": "Required control 'Dwelling (Coverage A) limit' has no grounded value in dossier", "url": "quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_975d31f44a81de to owner", "receipt": false, "elapsed_s": 8.5, "score": {"case_id": "cv-s03", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "date_of_birth", "email", "phone", "co_applicant_name", "property_street", "property_city", "property_state", "property_zip", "year_built", "square_feet", "construction", "roof_material", "roof_year", "occupancy", "dogs", "dog_breeds", "dog_bite_history", "mortgagee", "loan_number", "dwelling_limit", "personal_liability", "deductible", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "corvane", "case_id": "cv-s04", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Has any dog at this address ever bitten a person or another animal?", "dossier_key": "dog_bite_history", "message": "Screen 'cv_household' did not advance after clicking Next; Has any dog at this address ever bitten a person or another animal?: Has any dog at this address ever bitten a person or another animal? is required.", "url": "quote", "script_hit": true, "action": "provide_value", "before_submit": true}], "outcome": "verified_done", "what_happened": "Committed and verified via independent read-back", "readback": {"passed": 24, "failed": [], "not_checked": []}, "receipt": true, "elapsed_s": 12.5, "score": {"case_id": "cv-s04", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": false, "correct": false, "wrong_fields": ["dog_breeds"], "wrong_details": [{"field": "dog_breeds", "expected": "Labrador retriever, Border collie mix", "stored": ""}], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "corvane", "case_id": "cv-s05", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "Mortgagee (lender)", "dossier_key": "mortgagee_clause", "message": "No option matched 'Brightwater Federal Credit Union ISAOA, PO Box 2210, Tacoma WA 98401' among ['Brightwater Federal Credit Union ISAOA ATIMA, PO Box 5520, Spokane WA 99205', 'Brightwater Federal Credit Union ISAOA ATIMA, PO Box 2210, Tacom", "url": "quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_b2fd966b7c70f9 to owner", "receipt": false, "elapsed_s": 7.1, "score": {"case_id": "cv-s05", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "date_of_birth", "email", "phone", "co_applicant_name", "property_street", "property_city", "property_state", "property_zip", "year_built", "square_feet", "construction", "roof_material", "roof_year", "occupancy", "dogs", "dog_breeds", "dog_bite_history", "mortgagee", "loan_number", "dwelling_limit", "personal_liability", "deductible", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "corvane", "case_id": "cv-s06", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "Mortgagee (lender)", "dossier_key": "mortgagee_clause", "message": "No option matched 'Tenbury Mortgage Services ISAOA, PO Box 60917, Boise ID 83701' among ['Tenbury Mortgage Services ISAOA ATIMA, PO Box 60917, Boise ID 83701']", "url": "quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_fbe79cb99f4295 to owner", "receipt": false, "elapsed_s": 5.7, "score": {"case_id": "cv-s06", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "date_of_birth", "email", "phone", "co_applicant_name", "property_street", "property_city", "property_state", "property_zip", "year_built", "square_feet", "construction", "roof_material", "roof_year", "occupancy", "dogs", "dog_breeds", "dog_bite_history", "mortgagee", "loan_number", "dwelling_limit", "personal_liability", "deductible", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "corvane", "case_id": "cv-s07", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Finished living area (sq ft)", "dossier_key": "square_feet", "message": "Prefilled value on 'Finished living area (sq ft)' conflicts with grounded dossier state for 'square_feet'", "url": "quote", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "prefill_value_conflict", "label": "Year roof was installed or last replaced", "dossier_key": "roof_year", "message": "Prefilled value on 'Year roof was installed or last replaced' conflicts with grounded dossier state for 'roof_year'", "url": "quote", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "auth_wall_detected", "label": "", "dossier_key": null, "message": "Sign-in wall at 'http://127.0.0.1:46087/login' (sign-in form on screen)", "url": "login", "action": "fixed_on_screen", "before_submit": true}], "outcome": "verified_done", "what_happened": "Committed and verified via independent read-back", "readback": {"passed": 23, "failed": [], "not_checked": []}, "receipt": true, "elapsed_s": 21.1, "score": {"case_id": "cv-s07", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "corvane", "case_id": "cv-s08", "halts": [], "outcome": "verified_done", "what_happened": "Committed and verified via independent read-back", "readback": {"passed": 24, "failed": [], "not_checked": []}, "receipt": true, "elapsed_s": 10.1, "score": {"case_id": "cv-s08", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "pellbrook", "case_id": "pb-s01", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['lienholder']", "readback": {"passed": 21, "failed": [], "not_checked": ["lienholder"]}, "receipt": false, "elapsed_s": 25.1, "score": {"case_id": "pb-s01", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "pellbrook", "case_id": "pb-s02", "halts": [{"halt_kind": "portal_validation_blocked", "label": "", "dossier_key": null, "message": "Please answer this question to continue.", "url": "boat/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_72f7cab840957d to owner", "receipt": false, "elapsed_s": 15.3, "score": {"case_id": "pb-s02", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "date_of_birth", "email", "garaging_zip", "boat_year", "boat_make", "boat_model", "length_ft", "engine_type", "engine_count", "total_horsepower", "agreed_hull_value", "storage", "layup_period", "navigation_area", "safety_course", "losses_3yr", "lienholder", "liability_limit", "deductible", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "pellbrook", "case_id": "pb-s03", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['lienholder']", "readback": {"passed": 21, "failed": [], "not_checked": ["lienholder"]}, "receipt": false, "elapsed_s": 13.5, "score": {"case_id": "pb-s03", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "pellbrook", "case_id": "pb-s04", "halts": [], "outcome": "readback_refuted", "what_happened": "Independent read-back did not verify commit: ['total_horsepower']", "readback": {"passed": 20, "failed": ["total_horsepower"], "not_checked": ["lienholder"]}, "receipt": false, "elapsed_s": 23.3, "score": {"case_id": "pb-s04", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": false, "correct": false, "wrong_fields": ["total_horsepower"], "wrong_details": [{"field": "total_horsepower", "expected": 400, "stored": 800}], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "pellbrook", "case_id": "pb-s05", "halts": [{"halt_kind": "portal_validation_blocked", "label": "", "dossier_key": null, "message": "Please answer this question to continue.", "url": "boat/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_26b6183f4968c3 to owner", "receipt": false, "elapsed_s": 15.7, "score": {"case_id": "pb-s05", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "date_of_birth", "email", "garaging_zip", "boat_year", "boat_make", "boat_model", "length_ft", "engine_type", "engine_count", "total_horsepower", "agreed_hull_value", "storage", "layup_period", "navigation_area", "safety_course", "losses_3yr", "lienholder", "liability_limit", "deductible", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "pellbrook", "case_id": "pb-s06", "halts": [{"halt_kind": "portal_validation_blocked", "label": "Agreed hull value", "dossier_key": "agreed_hull_value", "message": "Please answer this question to continue.; Agreed hull value: Please answer this question to continue.; Continue: Please answer this question to continue.", "url": "boat/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_bc1267f77e3169 to owner", "receipt": false, "elapsed_s": 14.4, "score": {"case_id": "pb-s06", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "date_of_birth", "email", "garaging_zip", "boat_year", "boat_make", "boat_model", "length_ft", "engine_type", "engine_count", "total_horsepower", "agreed_hull_value", "storage", "layup_period", "navigation_area", "safety_course", "losses_3yr", "lienholder", "liability_limit", "deductible", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "pellbrook", "case_id": "pb-s07", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Model year", "dossier_key": "boat_year", "message": "Prefilled value on 'Model year' conflicts with grounded dossier state for 'boat_year'", "url": "boat/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_6be0b0d8ecb627 to owner", "receipt": false, "elapsed_s": 3.9, "score": {"case_id": "pb-s07", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "date_of_birth", "email", "garaging_zip", "boat_year", "boat_make", "boat_model", "length_ft", "engine_type", "engine_count", "total_horsepower", "agreed_hull_value", "storage", "layup_period", "navigation_area", "safety_course", "losses_3yr", "lienholder", "liability_limit", "deductible", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "pellbrook", "case_id": "pb-s08", "halts": [{"halt_kind": "portal_validation_blocked", "label": "", "dossier_key": null, "message": "Please answer this question to continue.", "url": "boat/quote", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_5baea9875cf410 to owner", "receipt": false, "elapsed_s": 15.6, "score": {"case_id": "pb-s08", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["first_name", "last_name", "date_of_birth", "email", "garaging_zip", "boat_year", "boat_make", "boat_model", "length_ft", "engine_type", "engine_count", "total_horsepower", "agreed_hull_value", "storage", "layup_period", "navigation_area", "safety_course", "losses_3yr", "lienholder", "liability_limit", "deductible", "effective_date"]}, "arm": "B"} diff --git a/packages/flow/benchmark/form_tx_heldout4/MANIFEST.json b/packages/flow/benchmark/form_tx_heldout4/MANIFEST.json new file mode 100644 index 0000000000..40c721ed4f --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/MANIFEST.json @@ -0,0 +1,66 @@ +{ + "description": "sha256 of every git-tracked file in benchmark/form_tx_heldout4 except this manifest", + "answer_key_sha256": "7fe904358bf0db41cbeae756cc776cc2a90fdf7f90c5128c8344103e8560f578", + "files": { + "README.md": "5efab735d83acd69de17420fb76875e78ac67ac79fbe4b922f89769c216e8e80", + "REFERENCE_RUNS.json": "e18013c90be99a404c6947606969e49adfc0dbff87e3602ffb7929aa70211370", + "__init__.py": "6ad1fbddd71fe546b7ef6cf68d1f76b46e319937810a495a5926c52659ffd748", + "answer_key.json": "7fe904358bf0db41cbeae756cc776cc2a90fdf7f90c5128c8344103e8560f578", + "build_cases.py": "c60c6680c287c72dd882c619d13e77afe77ff65dd06308527b10a9b29c4cf59f", + "case_defs.py": "4fb5d5b9680b82ac06ec0ad5872c389831b5d8f78eca8f261f10a26b3906c549", + "cases/corvane/cv-dev.intake.json": "3747770fdd034c61f1d96c09d719185d15f200adf3dc782ce10c88bec5c2796f", + "cases/corvane/cv-s01.intake.json": "f5b84a63fac96cbab42411f96d02316e7d02657f100442ce341a4f5ff790aa7c", + "cases/corvane/cv-s02.intake.json": "1fef126d0d2d046e6fe1adf78e803978b2b71f80157b5b733bdf1c14c6efaf2d", + "cases/corvane/cv-s03.intake.json": "74b04d385895bcd94744465b39e3bf2165f1956f3407a66297dd6e0431a5f642", + "cases/corvane/cv-s04.intake.json": "e0ae7c7bf8aeb1b0fff17dcce76fa2d12030d2e688182942660785a001c0ff8c", + "cases/corvane/cv-s05.intake.json": "72b94b9aa9eaffab96e8b7b51076a0861b8a09f55d772cbbc938381da7e9cb7c", + "cases/corvane/cv-s06.intake.json": "7ceb5f19cd745aadac050603f675f30dd651d8a43861d3f1f86da094c00fa7a8", + "cases/corvane/cv-s07.intake.json": "caabaa1717da7a95bc114827f93e1b778319c09cb57559d8f3e1205c0b9be4d2", + "cases/corvane/cv-s08.intake.json": "4fef993351af158d574cb36b50240c6d815f655cdcfc8caf0f9fe5f5f6e9ff98", + "cases/corvane/cv-s09.intake.json": "54e0fc6b0a77e85b1c242649309770ab1b9ee56900fe89c6fb921e62d1cdda6f", + "cases/corvane/cv-s10.intake.json": "86545fc1906aca7405a15711fdb42fb6e69ae87c3f96d24d72b8c7b8254c4cd3", + "cases/corvane/cv-s11.intake.json": "552e10de9585447d680b3e3eb925e3078a72844f22653a06b5ed130347f9ae2a", + "cases/thistlebrook/tb-dev.intake.json": "7faa44177a4557eb2b8b6567cf3ced1e0deabd969416e4a780ef7c9f6dda3127", + "cases/thistlebrook/tb-s01.intake.json": "a0213c5cc6d4b2edf9b6306ed51eefdf5518d9dfd5273c40acdb610275bd6f2e", + "cases/thistlebrook/tb-s02.intake.json": "8e8c1d30d103ff0592e984a6b7052729a18a56c81bb7d7ce6e280844922bdafd", + "cases/thistlebrook/tb-s03.intake.json": "8e27964575e109ffbdc3af1e788d67af5b75a5eed7d9554d50ec119e9156ffc4", + "cases/thistlebrook/tb-s04.intake.json": "7fc121e26e86367dd8dc580a6ac20c49265e17479ecef8ceee5b07f3af0e6ec2", + "cases/thistlebrook/tb-s05.intake.json": "3a8ad17d62525b966ca35b4679ff64341e5c6d1bee00b8c1598bef926c0e9fd8", + "cases/thistlebrook/tb-s06.intake.json": "7222b4a66855ed26c866ada2b576908f444c092734aaf2b1fc9365f00e4eaec1", + "cases/thistlebrook/tb-s07.intake.json": "96e88d4afb93d6b3fa9f11376c1882649b3435914e85bfe04faf368b6248fff7", + "cases/thistlebrook/tb-s08.intake.json": "0eb97e74e4310a8fd7c153a99ce9982ebb7fdba4461c42ebd3f9dd4a6f6b3589", + "cases/thistlebrook/tb-s09.intake.json": "63c9ad88ffeac37433300530095c143a39032e83b0be25b07eb9e699297c6d43", + "cases/thistlebrook/tb-s10.intake.json": "97e2401032dd5ca771c01aa49da528fb1b3be0a542f7dd1965aeefa40002c0ec", + "cases/wrenfield/wf-dev.intake.json": "24071cbf1abb489d7a2f8f5ce10a6c77399b04757db9bcc54e61f491a36b2d81", + "cases/wrenfield/wf-s01.intake.json": "b5bf980279edbf4d85b883a667408d7dbb373ff0a2ab164069ad43ad3738c916", + "cases/wrenfield/wf-s02.intake.json": "9a4f25442a032e0a80450298756e01805ee2689758dd7f38832a434d871743a0", + "cases/wrenfield/wf-s03.intake.json": "2ceb1677cfad94473c86b3002b7df5a895faeb65c62ef4b57320133fed34d4e9", + "cases/wrenfield/wf-s04.intake.json": "5e87320a8a69c47514d98ee2fa873ecf4dfdf33e91b5d734eb86733b5b5567be", + "cases/wrenfield/wf-s05.intake.json": "843935eefad5389065b0df114501f671b52b257a223eb0d7aad69bae19f894fa", + "cases/wrenfield/wf-s06.intake.json": "b2ebc3e1a8bb6733b92a0408fd20ff3909a96faa652aeb5e1a8956670641e7e9", + "cases/wrenfield/wf-s07.intake.json": "be5df0e44e0ec3a13c94ab8c4431200efcee7eb7d6948247c7d41583a9f34ea8", + "cases/wrenfield/wf-s08.intake.json": "2f9ec871375e1acda5f5141df003e0e5881dbf195e28a9f38987494758f49e5c", + "cases/wrenfield/wf-s09.intake.json": "68df4a21335bc36d425614ca6ff8ea5bb053cabb210713b1a50960d5b21f5b58", + "cases/wrenfield/wf-s10.intake.json": "f3aa1fd74d9b65d1cb66c035a177048210a9dce476bf792697f8b09687133662", + "cases/wrenfield/wf-s11.intake.json": "a622232c0077a3b99cc6e85fadd5a08214b5565fae386585ca9baf9c2c6c701d", + "common.py": "e266495a186a2b0a29a445b58de4bc73a52da4e6c9e9e77248c3aaf1010db7c1", + "corvane.py": "af83b8ac707da06dd37a1fa82be9f51a2b857edc924c1497c7b583359df0ce5d", + "drivers/__init__.py": "c732945054225d9a28e948abdefd862abf76edde23c29fe71e86590215c13b5a", + "drivers/base.py": "6128d83baee6c8709609764af0540a3ddb788d4cd680cece7d0b95d6e5c2d9e2", + "drivers/corvane.py": "25f1dd454cdd7531a38486fc12a08adcfe21a2e455835b46c399273b65acd3b9", + "drivers/kit.py": "e619107b41dbddee5e81d1efaf093048ec8f3b3695a90bdb53c78d85d747d190", + "drivers/thistlebrook.py": "244524d278bada9bae001d86674f43728f4c626f5c0127abd6a3465a5782d0e6", + "drivers/wrenfield.py": "8ce5027d041400dd11d4ea71338cbfbdd0ff4e0061dca8f4e318e2ea7da28c63", + "fixtures/portal_logins.json": "c0a0704767092aff78021be31c7b82cdaef61f344f0529b9c1016430f9333b23", + "intake_vocabulary.json": "a2face66edd075d6f56021b9ab1b9985927d33262e6dc251bb4aee636a004c16", + "make_manifest.py": "6ed80a70cf6f461f40dcb611004e2df43ed28f3f33962e00d8793da1540dce0d", + "make_reference_runs.py": "6653d9bc3600a5ae6ac1e48ea654c8955c361f18e9f147c57b5a560ce3bac3c7", + "naive_filler.py": "7b85ed274122aa6cda030d89e591ae6b1bec88819926c0cbbbb18c38a93529da", + "portals.py": "6df6b16dc1a9acd557054ebba881e206b873edd752f8db7ce54dc00d7db6c2e1", + "reference_human.py": "d26bba2c1338c54d86ef1cf1e1bb96fba518b7703d8c365782654ea821306b4d", + "runner.py": "d155c511f361cb176cb9f3c34a31576e352e520ddaee71551284ef0084229381", + "scoring.py": "79c1c366c58e80e15b1df7f8d502cd2cacf31303611e535a345944c8fc42621d", + "thistlebrook.py": "c2da74368701e102b0fdee74a2e41494de60a26b592a3135880dd9bc79867bd6", + "wrenfield.py": "999b475dc6789dcb2208ce6edc2b90394ff1eac60cde3dba2ee9f355471ce686" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout4/README.md b/packages/flow/benchmark/form_tx_heldout4/README.md new file mode 100644 index 0000000000..b2189a7846 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/README.md @@ -0,0 +1,72 @@ +# Held-out carrier quote portals, set 4 + +Three synthetic personal-lines quote portals for fictional carriers. They are +served by the Python standard library (`ThreadingHTTPServer`) with plain HTML +and vanilla JavaScript. They form a fourth held-out benchmark for a +form-filling layer: the layer's authors may look only at each portal's `dev` +case. The harness contract matches `benchmark/form_tx_heldout2`, so a runner +written for that set works here after changing the import. + +All carrier names, people, addresses, lenders, VINs, vehicle makes and +models, and policy numbers are invented. + +| id | carrier | line | style | +|---|---|---|---| +| `wrenfield` | Wrenfield Mutual | condo unit-owners (HO-6) | consumer single-page wizard with a stepper | +| `corvane` | Corvane Casualty | motorcycle | agency rating worksheet with accordion panels and a VIN-decoder popup window | +| `thistlebrook` | Thistlebrook Pet Health | pet health | consumer flow, one question card per screen | + +## Using a portal + +```python +from benchmark.form_tx_heldout4.portals import PORTALS +from benchmark.form_tx_heldout4.scoring import score_case + +spec = PORTALS["wrenfield"] +server, base_url = spec.start() # host="127.0.0.1", port=0 +# POST {base_url}/__oracle/load_case {"case_id": ""} (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("", 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//.intake.json`, and `intake_vocabulary.json` lists +every intake key per portal. 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. After a submission, each portal shows the stored +quote and a quote reference. + +## Scoring + +`scoring.py` documents the normalization and the result fields; it is the +same scorer as sets 1 and 2. `answer_key.json` 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`). The key's +`rule_learning` entries describe the recurring questions. `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`. `make_reference_runs.py` runs both and writes +`REFERENCE_RUNS.json`. `tests/test_form_tx_heldout4_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`. + +Run from `packages/flow`: + +```bash +python -m benchmark.form_tx_heldout4.build_cases # after editing case_defs.py +python -m benchmark.form_tx_heldout4.reference_human --dev +python -m benchmark.form_tx_heldout4.naive_filler --dev +python -m benchmark.form_tx_heldout4.make_reference_runs +python -m benchmark.form_tx_heldout4.make_manifest +``` diff --git a/packages/flow/benchmark/form_tx_heldout4/REFERENCE_RUNS.json b/packages/flow/benchmark/form_tx_heldout4/REFERENCE_RUNS.json new file mode 100644 index 0000000000..5c23174887 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/REFERENCE_RUNS.json @@ -0,0 +1,1768 @@ +{ + "environment": "lab laptop WSL Ubuntu 24.04, headless Chromium via Playwright, 2026-11-21", + "summary": { + "reference_human": { + "scored_cases": 32, + "correct": 32, + "wrong": 0, + "not_submitted": 0, + "clean_cases": 5, + "clean_cases_correct": 5, + "submit_clean_cases": 15, + "submit_clean_cases_correct": 15, + "dev_correct": true, + "per_portal": { + "wrenfield": { + "scored_cases": 11, + "correct": 11, + "wrong": 0, + "not_submitted": 0 + }, + "corvane": { + "scored_cases": 11, + "correct": 11, + "wrong": 0, + "not_submitted": 0 + }, + "thistlebrook": { + "scored_cases": 10, + "correct": 10, + "wrong": 0, + "not_submitted": 0 + } + } + }, + "naive_filler": { + "scored_cases": 32, + "correct": 10, + "wrong": 20, + "not_submitted": 2, + "clean_cases": 5, + "clean_cases_correct": 5, + "submit_clean_cases": 15, + "submit_clean_cases_correct": 8, + "dev_correct": true, + "per_portal": { + "wrenfield": { + "scored_cases": 11, + "correct": 4, + "wrong": 7, + "not_submitted": 0 + }, + "corvane": { + "scored_cases": 11, + "correct": 3, + "wrong": 7, + "not_submitted": 1 + }, + "thistlebrook": { + "scored_cases": 10, + "correct": 3, + "wrong": 6, + "not_submitted": 1 + } + } + } + }, + "runs": [ + { + "portal": "wrenfield", + "case_id": "wf-dev", + "filler": "naive", + "outcome": "submitted", + "seconds": 2.4, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "clean" + ] + }, + { + "portal": "wrenfield", + "case_id": "wf-s01", + "filler": "naive", + "outcome": "submitted", + "seconds": 2.4, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "clean" + ] + }, + { + "portal": "wrenfield", + "case_id": "wf-s02", + "filler": "naive", + "outcome": "submitted", + "seconds": 2.4, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "needs_operator_answer", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "unknown_question", + "recurring_rule" + ] + }, + { + "portal": "wrenfield", + "case_id": "wf-s03", + "filler": "naive", + "outcome": "submitted", + "seconds": 2.3, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": false, + "correct": false, + "wrong_fields": [ + "association" + ], + "wrong_details": [ + { + "field": "association", + "expected": "Larch Hollow Condominium Association (Beaverton, OR)", + "stored": "Larch Hollow Condominium Association (Tigard, OR)" + } + ], + "missing_fields": [], + "traps": [ + "prefill_agree", + "typeahead_ambiguous" + ] + }, + { + "portal": "wrenfield", + "case_id": "wf-s04", + "filler": "naive", + "outcome": "submitted", + "seconds": 2.4, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "must_stop_before_submit", + "record_correct": false, + "correct": false, + "wrong_fields": [ + "occupancy" + ], + "wrong_details": [ + { + "field": "occupancy", + "expected": "Rented to others", + "stored": "Owner-occupied (primary residence)" + } + ], + "missing_fields": [], + "traps": [ + "prefill_conflict" + ] + }, + { + "portal": "wrenfield", + "case_id": "wf-s05", + "filler": "naive", + "outcome": "submitted", + "seconds": 0.8, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "recurring_rule", + "estimator_ok" + ] + }, + { + "portal": "wrenfield", + "case_id": "wf-s06", + "filler": "naive", + "outcome": "submitted", + "seconds": 2.4, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "must_stop_before_submit", + "record_correct": false, + "correct": false, + "wrong_fields": [ + "improvements" + ], + "wrong_details": [ + { + "field": "improvements", + "expected": 68600, + "stored": 44100 + } + ], + "missing_fields": [], + "traps": [ + "estimator_wrong" + ] + }, + { + "portal": "wrenfield", + "case_id": "wf-s07", + "filler": "naive", + "outcome": "submitted", + "seconds": 2.2, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "needs_operator_answer", + "record_correct": false, + "correct": false, + "wrong_fields": [ + "wood_stove" + ], + "wrong_details": [ + { + "field": "wood_stove", + "expected": "No", + "stored": "Yes" + } + ], + "missing_fields": [], + "traps": [ + "unknown_question" + ] + }, + { + "portal": "wrenfield", + "case_id": "wf-s08", + "filler": "naive", + "outcome": "submitted", + "seconds": 2.9, + "events": [ + "relogin" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "must_stop_before_submit", + "record_correct": false, + "correct": false, + "wrong_fields": [ + "association", + "street", + "unit_number", + "city", + "zip", + "year_built", + "floor", + "wood_stove", + "phone" + ], + "wrong_details": [ + { + "field": "association", + "expected": "Harrowgate Towers Condominium (Vancouver, WA)", + "stored": "Kestrel Point Condominium Association (Bellingham, WA)" + }, + { + "field": "street", + "expected": "700 Harrowgate Blvd", + "stored": "15 Kestrel Point Rd" + }, + { + "field": "unit_number", + "expected": "1804", + "stored": "3" + }, + { + "field": "city", + "expected": "Vancouver", + "stored": "Bellingham" + }, + { + "field": "zip", + "expected": "98660", + "stored": "98225" + }, + { + "field": "year_built", + "expected": 2019, + "stored": 1999 + }, + { + "field": "floor", + "expected": 18, + "stored": 1 + }, + { + "field": "wood_stove", + "expected": "No", + "stored": "Yes" + }, + { + "field": "phone", + "expected": "360-555-0126", + "stored": "360-555-0190" + } + ], + "missing_fields": [], + "traps": [ + "session_timeout" + ] + }, + { + "portal": "wrenfield", + "case_id": "wf-s09", + "filler": "naive", + "outcome": "submitted", + "seconds": 2.5, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": false, + "correct": false, + "wrong_fields": [ + "seasonal_credit" + ], + "wrong_details": [ + { + "field": "seasonal_credit", + "expected": "No", + "stored": "Yes" + } + ], + "missing_fields": [], + "traps": [ + "recurring_rule", + "rule_trap" + ] + }, + { + "portal": "wrenfield", + "case_id": "wf-s10", + "filler": "naive", + "outcome": "submitted", + "seconds": 2.4, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "must_stop_before_submit", + "record_correct": false, + "correct": false, + "wrong_fields": [ + "water_backup" + ], + "wrong_details": [ + { + "field": "water_backup", + "expected": "Not included", + "stored": "$5,000" + } + ], + "missing_fields": [], + "traps": [ + "summary_differs" + ] + }, + { + "portal": "wrenfield", + "case_id": "wf-s11", + "filler": "naive", + "outcome": "submitted", + "seconds": 2.4, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "clean" + ] + }, + { + "portal": "corvane", + "case_id": "cv-dev", + "filler": "naive", + "outcome": "submitted", + "seconds": 1.8, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "clean" + ] + }, + { + "portal": "corvane", + "case_id": "cv-s01", + "filler": "naive", + "outcome": "submitted", + "seconds": 1.8, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "clean" + ] + }, + { + "portal": "corvane", + "case_id": "cv-s02", + "filler": "naive", + "outcome": "submitted", + "seconds": 1.8, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": false, + "correct": false, + "wrong_fields": [ + "motorcycles" + ], + "wrong_details": [ + { + "field": "motorcycles", + "expected": [ + { + "vin": "KS9RB0905NA214470", + "year": 2022, + "make": "Kessin", + "model": "Ridgeback 900 Touring", + "engine_cc": 898, + "ownership": "Owned outright", + "lienholder": "" + } + ], + "stored": [ + { + "vin": "KS9RB0905NA214470", + "year": 2022, + "make": "Kessin", + "model": "Ridgeback 900", + "engine_cc": 898, + "ownership": "Owned outright", + "lienholder": "" + } + ] + } + ], + "missing_fields": [], + "traps": [ + "typeahead_ambiguous" + ] + }, + { + "portal": "corvane", + "case_id": "cv-s03", + "filler": "naive", + "outcome": "submitted", + "seconds": 1.8, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "needs_operator_answer", + "record_correct": false, + "correct": false, + "wrong_fields": [ + "safety_course" + ], + "wrong_details": [ + { + "field": "safety_course", + "expected": "No", + "stored": "Yes" + } + ], + "missing_fields": [], + "traps": [ + "unknown_question" + ] + }, + { + "portal": "corvane", + "case_id": "cv-s04", + "filler": "naive", + "outcome": "submitted", + "seconds": 1.8, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": false, + "correct": false, + "wrong_fields": [ + "annual_miles" + ], + "wrong_details": [ + { + "field": "annual_miles", + "expected": 5400, + "stored": 450 + } + ], + "missing_fields": [], + "traps": [ + "unit_mismatch" + ] + }, + { + "portal": "corvane", + "case_id": "cv-s05", + "filler": "naive", + "outcome": "submitted", + "seconds": 1.8, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "must_stop_before_submit", + "record_correct": false, + "correct": false, + "wrong_fields": [ + "years_endorsed" + ], + "wrong_details": [ + { + "field": "years_endorsed", + "expected": 3, + "stored": 12 + } + ], + "missing_fields": [], + "traps": [ + "prefill_conflict" + ] + }, + { + "portal": "corvane", + "case_id": "cv-s06", + "filler": "naive", + "outcome": "submitted", + "seconds": 2.1, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "prefill_agree", + "estimator_ok" + ] + }, + { + "portal": "corvane", + "case_id": "cv-s07", + "filler": "naive", + "outcome": "submitted", + "seconds": 0.3, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "must_stop_before_submit", + "record_correct": false, + "correct": false, + "wrong_fields": [ + "cpe_coverage" + ], + "wrong_details": [ + { + "field": "cpe_coverage", + "expected": 3720, + "stored": 3330 + } + ], + "missing_fields": [], + "traps": [ + "estimator_wrong" + ] + }, + { + "portal": "corvane", + "case_id": "cv-s08", + "filler": "naive", + "outcome": "submitted", + "seconds": 2.6, + "events": [ + "relogin" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "must_stop_before_submit", + "record_correct": false, + "correct": false, + "wrong_fields": [ + "bi_pd_limits", + "collision_deductible", + "comprehensive_deductible", + "cpe_coverage", + "roadside" + ], + "wrong_details": [ + { + "field": "bi_pd_limits", + "expected": "250/500/100", + "stored": "25/50/25" + }, + { + "field": "collision_deductible", + "expected": 250, + "stored": 500 + }, + { + "field": "comprehensive_deductible", + "expected": 250, + "stored": 500 + }, + { + "field": "cpe_coverage", + "expected": 1800, + "stored": 0 + }, + { + "field": "roadside", + "expected": "Roadside and trip interruption", + "stored": "Not included" + } + ], + "missing_fields": [], + "traps": [ + "session_timeout" + ] + }, + { + "portal": "corvane", + "case_id": "cv-s09", + "filler": "naive", + "outcome": "submitted", + "seconds": 2.1, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "clean" + ] + }, + { + "portal": "corvane", + "case_id": "cv-s10", + "filler": "naive", + "outcome": "submitted", + "seconds": 1.8, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "must_stop_before_submit", + "record_correct": false, + "correct": false, + "wrong_fields": [ + "city" + ], + "wrong_details": [ + { + "field": "city", + "expected": "Fircrest", + "stored": "Tacoma" + } + ], + "missing_fields": [], + "traps": [ + "summary_differs" + ] + }, + { + "portal": "corvane", + "case_id": "cv-s11", + "filler": "naive", + "outcome": "error", + "seconds": 1.2, + "events": [], + "submitted": false, + "submit_count": 0, + "expected_behavior": "needs_operator_answer", + "correct": false, + "record_correct": false, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [ + "effective_date", + "prior_insurance", + "first_name", + "last_name", + "dob", + "phone", + "years_endorsed", + "safety_course", + "street", + "city", + "state", + "zip", + "motorcycles", + "annual_miles", + "bi_pd_limits", + "collision_deductible", + "comprehensive_deductible", + "cpe_coverage", + "roadside" + ], + "traps": [ + "unknown_question" + ], + "error": "DriverError: motorcycle not added: Enter the lienholder or lessor." + }, + { + "portal": "thistlebrook", + "case_id": "tb-dev", + "filler": "naive", + "outcome": "submitted", + "seconds": 5.2, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "clean" + ] + }, + { + "portal": "thistlebrook", + "case_id": "tb-s01", + "filler": "naive", + "outcome": "submitted", + "seconds": 5.1, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "clean" + ] + }, + { + "portal": "thistlebrook", + "case_id": "tb-s02", + "filler": "naive", + "outcome": "submitted", + "seconds": 5.1, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": false, + "correct": false, + "wrong_fields": [ + "breed" + ], + "wrong_details": [ + { + "field": "breed", + "expected": "Labrador Retriever Mix", + "stored": "Labrador Retriever" + } + ], + "missing_fields": [], + "traps": [ + "typeahead_ambiguous" + ] + }, + { + "portal": "thistlebrook", + "case_id": "tb-s03", + "filler": "naive", + "outcome": "submitted", + "seconds": 5.2, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "needs_operator_answer", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "unknown_question", + "recurring_rule" + ] + }, + { + "portal": "thistlebrook", + "case_id": "tb-s04", + "filler": "naive", + "outcome": "submitted", + "seconds": 3.3, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": false, + "correct": false, + "wrong_fields": [ + "weight_lb" + ], + "wrong_details": [ + { + "field": "weight_lb", + "expected": 44, + "stored": 20 + } + ], + "missing_fields": [], + "traps": [ + "unit_mismatch" + ] + }, + { + "portal": "thistlebrook", + "case_id": "tb-s05", + "filler": "naive", + "outcome": "submitted", + "seconds": 5.1, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "must_stop_before_submit", + "record_correct": false, + "correct": false, + "wrong_fields": [ + "spayed_neutered" + ], + "wrong_details": [ + { + "field": "spayed_neutered", + "expected": "Yes", + "stored": "No" + } + ], + "missing_fields": [], + "traps": [ + "prefill_conflict" + ] + }, + { + "portal": "thistlebrook", + "case_id": "tb-s06", + "filler": "naive", + "outcome": "submitted", + "seconds": 5.2, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "recurring_rule", + "prefill_agree" + ] + }, + { + "portal": "thistlebrook", + "case_id": "tb-s07", + "filler": "naive", + "outcome": "error", + "seconds": 2.3, + "events": [], + "submitted": false, + "submit_count": 0, + "expected_behavior": "needs_operator_answer", + "correct": false, + "record_correct": false, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [ + "first_name", + "last_name", + "email", + "phone", + "zip", + "pet_name", + "species", + "breed", + "weight_lb", + "birth_month", + "birth_year", + "spayed_neutered", + "indoor_only", + "recent_illness", + "condition_notes", + "annual_limit", + "reimbursement", + "deductible", + "wellness", + "start_date" + ], + "traps": [ + "unknown_question" + ], + "error": "DriverError: screen health blocked: Tell us briefly what happened." + }, + { + "portal": "thistlebrook", + "case_id": "tb-s08", + "filler": "naive", + "outcome": "submitted", + "seconds": 5.6, + "events": [ + "relogin" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "must_stop_before_submit", + "record_correct": false, + "correct": false, + "wrong_fields": [ + "start_date" + ], + "wrong_details": [ + { + "field": "start_date", + "expected": "2027-01-15", + "stored": "2026-11-22" + } + ], + "missing_fields": [], + "traps": [ + "session_timeout" + ] + }, + { + "portal": "thistlebrook", + "case_id": "tb-s09", + "filler": "naive", + "outcome": "submitted", + "seconds": 5.3, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": false, + "correct": false, + "wrong_fields": [ + "indoor_only" + ], + "wrong_details": [ + { + "field": "indoor_only", + "expected": "No", + "stored": "Yes" + } + ], + "missing_fields": [], + "traps": [ + "recurring_rule", + "rule_trap" + ] + }, + { + "portal": "thistlebrook", + "case_id": "tb-s10", + "filler": "naive", + "outcome": "submitted", + "seconds": 5.1, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "must_stop_before_submit", + "record_correct": false, + "correct": false, + "wrong_fields": [ + "reimbursement" + ], + "wrong_details": [ + { + "field": "reimbursement", + "expected": "90%", + "stored": "80%" + } + ], + "missing_fields": [], + "traps": [ + "summary_differs" + ] + }, + { + "portal": "wrenfield", + "case_id": "wf-dev", + "filler": "reference", + "outcome": "submitted", + "seconds": 0.5, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "clean" + ], + "operator_labels_not_seen": [] + }, + { + "portal": "wrenfield", + "case_id": "wf-s01", + "filler": "reference", + "outcome": "submitted", + "seconds": 2.5, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "clean" + ], + "operator_labels_not_seen": [] + }, + { + "portal": "wrenfield", + "case_id": "wf-s02", + "filler": "reference", + "outcome": "submitted", + "seconds": 2.4, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "needs_operator_answer", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "unknown_question", + "recurring_rule" + ], + "operator_labels_not_seen": [] + }, + { + "portal": "wrenfield", + "case_id": "wf-s03", + "filler": "reference", + "outcome": "submitted", + "seconds": 2.2, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "prefill_agree", + "typeahead_ambiguous" + ], + "operator_labels_not_seen": [] + }, + { + "portal": "wrenfield", + "case_id": "wf-s04", + "filler": "reference", + "outcome": "submitted", + "seconds": 2.4, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "must_stop_before_submit", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "prefill_conflict" + ], + "operator_labels_not_seen": [] + }, + { + "portal": "wrenfield", + "case_id": "wf-s05", + "filler": "reference", + "outcome": "submitted", + "seconds": 2.5, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "recurring_rule", + "estimator_ok" + ], + "operator_labels_not_seen": [] + }, + { + "portal": "wrenfield", + "case_id": "wf-s06", + "filler": "reference", + "outcome": "submitted", + "seconds": 2.5, + "events": [ + "estimator_corrected" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "must_stop_before_submit", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "estimator_wrong" + ], + "operator_labels_not_seen": [] + }, + { + "portal": "wrenfield", + "case_id": "wf-s07", + "filler": "reference", + "outcome": "submitted", + "seconds": 2.4, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "needs_operator_answer", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "unknown_question" + ], + "operator_labels_not_seen": [] + }, + { + "portal": "wrenfield", + "case_id": "wf-s08", + "filler": "reference", + "outcome": "submitted", + "seconds": 4.5, + "events": [ + "relogin" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "must_stop_before_submit", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "session_timeout" + ], + "operator_labels_not_seen": [] + }, + { + "portal": "wrenfield", + "case_id": "wf-s09", + "filler": "reference", + "outcome": "submitted", + "seconds": 2.4, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "recurring_rule", + "rule_trap" + ], + "operator_labels_not_seen": [] + }, + { + "portal": "wrenfield", + "case_id": "wf-s10", + "filler": "reference", + "outcome": "submitted", + "seconds": 2.8, + "events": [ + "summary_fix:water_backup" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "must_stop_before_submit", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "summary_differs" + ], + "operator_labels_not_seen": [] + }, + { + "portal": "wrenfield", + "case_id": "wf-s11", + "filler": "reference", + "outcome": "submitted", + "seconds": 2.4, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "clean" + ], + "operator_labels_not_seen": [] + }, + { + "portal": "corvane", + "case_id": "cv-dev", + "filler": "reference", + "outcome": "submitted", + "seconds": 1.8, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "clean" + ], + "operator_labels_not_seen": [] + }, + { + "portal": "corvane", + "case_id": "cv-s01", + "filler": "reference", + "outcome": "submitted", + "seconds": 0.2, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "clean" + ], + "operator_labels_not_seen": [] + }, + { + "portal": "corvane", + "case_id": "cv-s02", + "filler": "reference", + "outcome": "submitted", + "seconds": 1.9, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "typeahead_ambiguous" + ], + "operator_labels_not_seen": [] + }, + { + "portal": "corvane", + "case_id": "cv-s03", + "filler": "reference", + "outcome": "submitted", + "seconds": 1.7, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "needs_operator_answer", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "unknown_question" + ], + "operator_labels_not_seen": [] + }, + { + "portal": "corvane", + "case_id": "cv-s04", + "filler": "reference", + "outcome": "submitted", + "seconds": 1.8, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "unit_mismatch" + ], + "operator_labels_not_seen": [] + }, + { + "portal": "corvane", + "case_id": "cv-s05", + "filler": "reference", + "outcome": "submitted", + "seconds": 1.8, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "must_stop_before_submit", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "prefill_conflict" + ], + "operator_labels_not_seen": [] + }, + { + "portal": "corvane", + "case_id": "cv-s06", + "filler": "reference", + "outcome": "submitted", + "seconds": 2.0, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "prefill_agree", + "estimator_ok" + ], + "operator_labels_not_seen": [] + }, + { + "portal": "corvane", + "case_id": "cv-s07", + "filler": "reference", + "outcome": "submitted", + "seconds": 2.2, + "events": [ + "estimator_corrected" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "must_stop_before_submit", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "estimator_wrong" + ], + "operator_labels_not_seen": [] + }, + { + "portal": "corvane", + "case_id": "cv-s08", + "filler": "reference", + "outcome": "submitted", + "seconds": 4.1, + "events": [ + "relogin" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "must_stop_before_submit", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "session_timeout" + ], + "operator_labels_not_seen": [] + }, + { + "portal": "corvane", + "case_id": "cv-s09", + "filler": "reference", + "outcome": "submitted", + "seconds": 2.2, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "clean" + ], + "operator_labels_not_seen": [] + }, + { + "portal": "corvane", + "case_id": "cv-s10", + "filler": "reference", + "outcome": "submitted", + "seconds": 2.0, + "events": [ + "summary_fix:city" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "must_stop_before_submit", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "summary_differs" + ], + "operator_labels_not_seen": [] + }, + { + "portal": "corvane", + "case_id": "cv-s11", + "filler": "reference", + "outcome": "submitted", + "seconds": 1.9, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "needs_operator_answer", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "unknown_question" + ], + "operator_labels_not_seen": [] + }, + { + "portal": "thistlebrook", + "case_id": "tb-dev", + "filler": "reference", + "outcome": "submitted", + "seconds": 5.3, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "clean" + ], + "operator_labels_not_seen": [] + }, + { + "portal": "thistlebrook", + "case_id": "tb-s01", + "filler": "reference", + "outcome": "submitted", + "seconds": 3.5, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "clean" + ], + "operator_labels_not_seen": [] + }, + { + "portal": "thistlebrook", + "case_id": "tb-s02", + "filler": "reference", + "outcome": "submitted", + "seconds": 5.1, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "typeahead_ambiguous" + ], + "operator_labels_not_seen": [] + }, + { + "portal": "thistlebrook", + "case_id": "tb-s03", + "filler": "reference", + "outcome": "submitted", + "seconds": 5.3, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "needs_operator_answer", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "unknown_question", + "recurring_rule" + ], + "operator_labels_not_seen": [] + }, + { + "portal": "thistlebrook", + "case_id": "tb-s04", + "filler": "reference", + "outcome": "submitted", + "seconds": 5.0, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "unit_mismatch" + ], + "operator_labels_not_seen": [] + }, + { + "portal": "thistlebrook", + "case_id": "tb-s05", + "filler": "reference", + "outcome": "submitted", + "seconds": 5.1, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "must_stop_before_submit", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "prefill_conflict" + ], + "operator_labels_not_seen": [] + }, + { + "portal": "thistlebrook", + "case_id": "tb-s06", + "filler": "reference", + "outcome": "submitted", + "seconds": 5.2, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "recurring_rule", + "prefill_agree" + ], + "operator_labels_not_seen": [] + }, + { + "portal": "thistlebrook", + "case_id": "tb-s07", + "filler": "reference", + "outcome": "submitted", + "seconds": 3.4, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "needs_operator_answer", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "unknown_question" + ], + "operator_labels_not_seen": [] + }, + { + "portal": "thistlebrook", + "case_id": "tb-s08", + "filler": "reference", + "outcome": "submitted", + "seconds": 5.8, + "events": [ + "relogin", + "summary_fix:start_date" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "must_stop_before_submit", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "session_timeout" + ], + "operator_labels_not_seen": [] + }, + { + "portal": "thistlebrook", + "case_id": "tb-s09", + "filler": "reference", + "outcome": "submitted", + "seconds": 5.2, + "events": [], + "submitted": true, + "submit_count": 1, + "expected_behavior": "submit_clean", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "recurring_rule", + "rule_trap" + ], + "operator_labels_not_seen": [] + }, + { + "portal": "thistlebrook", + "case_id": "tb-s10", + "filler": "reference", + "outcome": "submitted", + "seconds": 5.7, + "events": [ + "summary_fix:reimbursement" + ], + "submitted": true, + "submit_count": 1, + "expected_behavior": "must_stop_before_submit", + "record_correct": true, + "correct": true, + "wrong_fields": [], + "wrong_details": [], + "missing_fields": [], + "traps": [ + "summary_differs" + ], + "operator_labels_not_seen": [] + } + ] +} diff --git a/packages/flow/benchmark/form_tx_heldout4/__init__.py b/packages/flow/benchmark/form_tx_heldout4/__init__.py new file mode 100644 index 0000000000..ec5466f2fb --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/__init__.py @@ -0,0 +1 @@ +"""Fourth held-out set of synthetic carrier quote portals (see README.md).""" diff --git a/packages/flow/benchmark/form_tx_heldout4/answer_key.json b/packages/flow/benchmark/form_tx_heldout4/answer_key.json new file mode 100644 index 0000000000..f866a7e359 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/answer_key.json @@ -0,0 +1,1767 @@ +{ + "version": 1, + "behavior_labels": [ + "submit_clean", + "must_stop_before_submit", + "needs_operator_answer" + ], + "portals": { + "wrenfield": { + "field_types": { + "association": "str", + "street": "str", + "unit_number": "str", + "city": "str", + "state": "enum", + "zip": "str", + "year_built": "int", + "floor": "int", + "occupancy": "enum", + "seasonal_credit": "enum", + "wood_stove": "enum", + "first_name": "str", + "last_name": "str", + "dob": "date", + "email": "str", + "phone": "phone", + "improvements": "money", + "personal_property": "money", + "loss_assessment": "enum", + "water_backup": "enum", + "deductible": "money", + "start_date": "date" + }, + "item_types": {}, + "metadata_fields": [ + "case_id", + "submitted_at", + "submit_seq", + "submit_count", + "quote_ref", + "premium" + ], + "case_order": [ + "wf-dev", + "wf-s01", + "wf-s02", + "wf-s03", + "wf-s04", + "wf-s05", + "wf-s06", + "wf-s07", + "wf-s08", + "wf-s09", + "wf-s10", + "wf-s11" + ] + }, + "corvane": { + "field_types": { + "effective_date": "date", + "prior_insurance": "enum", + "first_name": "str", + "last_name": "str", + "dob": "date", + "phone": "phone", + "years_endorsed": "int", + "safety_course": "enum", + "street": "str", + "city": "str", + "state": "enum", + "zip": "str", + "motorcycles": "list", + "annual_miles": "int", + "bi_pd_limits": "enum", + "collision_deductible": "money", + "comprehensive_deductible": "money", + "cpe_coverage": "money", + "roadside": "enum" + }, + "item_types": { + "motorcycles": { + "vin": "str", + "year": "int", + "make": "str", + "model": "str", + "engine_cc": "int", + "ownership": "enum", + "lienholder": "str" + } + }, + "metadata_fields": [ + "case_id", + "submitted_at", + "submit_seq", + "submit_count", + "quote_ref", + "premium" + ], + "case_order": [ + "cv-dev", + "cv-s01", + "cv-s02", + "cv-s03", + "cv-s04", + "cv-s05", + "cv-s06", + "cv-s07", + "cv-s08", + "cv-s09", + "cv-s10", + "cv-s11" + ] + }, + "thistlebrook": { + "field_types": { + "first_name": "str", + "last_name": "str", + "email": "str", + "phone": "phone", + "zip": "str", + "pet_name": "str", + "species": "enum", + "breed": "enum", + "weight_lb": "int", + "birth_month": "enum", + "birth_year": "int", + "spayed_neutered": "enum", + "indoor_only": "enum", + "recent_illness": "enum", + "condition_notes": "str", + "annual_limit": "enum", + "reimbursement": "enum", + "deductible": "money", + "wellness": "bool", + "start_date": "date" + }, + "item_types": {}, + "metadata_fields": [ + "case_id", + "submitted_at", + "submit_seq", + "submit_count", + "quote_ref", + "premium" + ], + "case_order": [ + "tb-dev", + "tb-s01", + "tb-s02", + "tb-s03", + "tb-s04", + "tb-s05", + "tb-s06", + "tb-s07", + "tb-s08", + "tb-s09", + "tb-s10" + ] + } + }, + "cases": { + "wf-dev": { + "portal": "wrenfield", + "split": "dev", + "expected_behavior": "submit_clean", + "also_acceptable": [], + "traps": [ + "clean" + ], + "expected_record": { + "association": "Quarry Bend Lofts Owners Association (Portland, OR)", + "street": "2210 NW Quarry Bend Ave", + "unit_number": "3C", + "city": "Portland", + "state": "OR", + "zip": "97210", + "year_built": 2008, + "floor": 3, + "occupancy": "Owner-occupied (primary residence)", + "seasonal_credit": "", + "wood_stove": "No", + "first_name": "Maren", + "last_name": "Olsgaard", + "dob": "1987-04-12", + "email": "maren.olsgaard@example.test", + "phone": "503-555-0142", + "improvements": 62000, + "personal_property": 45000, + "loss_assessment": "$10,000", + "water_backup": "Not included", + "deductible": 1000, + "start_date": "2026-12-15" + }, + "operator_script": { + "session_login": { + "username": "condo.owner@example.test", + "password": "wrenfield-test-pass-41" + } + } + }, + "wf-s01": { + "portal": "wrenfield", + "split": "scored", + "expected_behavior": "submit_clean", + "also_acceptable": [], + "traps": [ + "clean" + ], + "expected_record": { + "association": "Fennimore Court Condominiums (Salem, OR)", + "street": "455 Fennimore Ct", + "unit_number": "12", + "city": "Salem", + "state": "OR", + "zip": "97301", + "year_built": 1994, + "floor": 2, + "occupancy": "Owner-occupied (primary residence)", + "seasonal_credit": "", + "wood_stove": "Yes", + "first_name": "Tobias", + "last_name": "Venn", + "dob": "1979-09-03", + "email": "t.venn@example.test", + "phone": "971-555-0188", + "improvements": 38000, + "personal_property": 30000, + "loss_assessment": "$1,000", + "water_backup": "$5,000", + "deductible": 500, + "start_date": "2026-12-01" + }, + "operator_script": { + "session_login": { + "username": "condo.owner@example.test", + "password": "wrenfield-test-pass-41" + } + } + }, + "wf-s02": { + "portal": "wrenfield", + "split": "scored", + "expected_behavior": "needs_operator_answer", + "also_acceptable": [], + "traps": [ + "unknown_question", + "recurring_rule" + ], + "expected_record": { + "association": "Tidewater Row Condominium Association (Astoria, OR)", + "street": "18 Tidewater Row", + "unit_number": "4", + "city": "Astoria", + "state": "OR", + "zip": "97103", + "year_built": 1921, + "floor": 1, + "occupancy": "Secondary or seasonal home", + "seasonal_credit": "Yes", + "wood_stove": "Yes", + "first_name": "Priya", + "last_name": "Lakhani", + "dob": "1971-02-27", + "email": "priya.lakhani@example.test", + "phone": "360-555-0119", + "improvements": 55000, + "personal_property": 25000, + "loss_assessment": "$10,000", + "water_backup": "Not included", + "deductible": 1000, + "start_date": "2027-01-01" + }, + "operator_script": { + "Seasonal occupancy credit": { + "action": "answer", + "value": "Yes" + }, + "unit.seasonal_credit": { + "action": "answer", + "value": "Yes" + }, + "session_login": { + "username": "condo.owner@example.test", + "password": "wrenfield-test-pass-41" + } + } + }, + "wf-s03": { + "portal": "wrenfield", + "split": "scored", + "expected_behavior": "submit_clean", + "also_acceptable": [ + "must_stop_before_submit" + ], + "traps": [ + "prefill_agree", + "typeahead_ambiguous" + ], + "expected_record": { + "association": "Larch Hollow Condominium Association (Beaverton, OR)", + "street": "1650 SW Larch Hollow Dr", + "unit_number": "207", + "city": "Beaverton", + "state": "OR", + "zip": "97005", + "year_built": 2001, + "floor": 2, + "occupancy": "Owner-occupied (primary residence)", + "seasonal_credit": "", + "wood_stove": "No", + "first_name": "Desmond", + "last_name": "Achterberg", + "dob": "1990-11-08", + "email": "d.achterberg@example.test", + "phone": "503-555-0167", + "improvements": 47000, + "personal_property": 40000, + "loss_assessment": "$25,000", + "water_backup": "$10,000", + "deductible": 1000, + "start_date": "2026-12-10" + }, + "operator_script": { + "session_login": { + "username": "condo.owner@example.test", + "password": "wrenfield-test-pass-41" + } + } + }, + "wf-s04": { + "portal": "wrenfield", + "split": "scored", + "expected_behavior": "must_stop_before_submit", + "also_acceptable": [ + "submit_clean" + ], + "traps": [ + "prefill_conflict" + ], + "expected_record": { + "association": "Millrace Commons Owners Association (Eugene, OR)", + "street": "980 Millrace Way", + "unit_number": "B5", + "city": "Eugene", + "state": "OR", + "zip": "97401", + "year_built": 1998, + "floor": 1, + "occupancy": "Rented to others", + "seasonal_credit": "", + "wood_stove": "No", + "first_name": "Lucia", + "last_name": "Ferreira-Hale", + "dob": "1968-06-19", + "email": "lucia.fh@example.test", + "phone": "541-555-0133", + "improvements": 30000, + "personal_property": 15000, + "loss_assessment": "$10,000", + "water_backup": "Not included", + "deductible": 2500, + "start_date": "2026-12-20" + }, + "operator_script": { + "session_login": { + "username": "condo.owner@example.test", + "password": "wrenfield-test-pass-41" + } + } + }, + "wf-s05": { + "portal": "wrenfield", + "split": "scored", + "expected_behavior": "submit_clean", + "also_acceptable": [ + "needs_operator_answer" + ], + "traps": [ + "recurring_rule", + "estimator_ok" + ], + "expected_record": { + "association": "Juniper Ridge Terrace Condominiums (Bend, OR)", + "street": "61 NE Juniper Ridge Ln", + "unit_number": "9", + "city": "Bend", + "state": "OR", + "zip": "97701", + "year_built": 2015, + "floor": 2, + "occupancy": "Secondary or seasonal home", + "seasonal_credit": "Yes", + "wood_stove": "Yes", + "first_name": "Hollis", + "last_name": "Brandvold", + "dob": "1958-12-02", + "email": "hollis.b@example.test", + "phone": "541-555-0171", + "improvements": 49500, + "personal_property": 20000, + "loss_assessment": "$1,000", + "water_backup": "$5,000", + "deductible": 1000, + "start_date": "2027-02-01" + }, + "operator_script": { + "Seasonal occupancy credit": { + "action": "answer", + "value": "Yes" + }, + "unit.seasonal_credit": { + "action": "answer", + "value": "Yes" + }, + "session_login": { + "username": "condo.owner@example.test", + "password": "wrenfield-test-pass-41" + } + } + }, + "wf-s06": { + "portal": "wrenfield", + "split": "scored", + "expected_behavior": "must_stop_before_submit", + "also_acceptable": [ + "submit_clean" + ], + "traps": [ + "estimator_wrong" + ], + "expected_record": { + "association": "Sablewood Flats Condominium Association (Spokane, WA)", + "street": "2400 W Sablewood Ave", + "unit_number": "512", + "city": "Spokane", + "state": "WA", + "zip": "99201", + "year_built": 2012, + "floor": 5, + "occupancy": "Owner-occupied (primary residence)", + "seasonal_credit": "", + "wood_stove": "No", + "first_name": "Imani", + "last_name": "Okafor-Reyes", + "dob": "1993-03-15", + "email": "imani.or@example.test", + "phone": "509-555-0102", + "improvements": 68600, + "personal_property": 35000, + "loss_assessment": "$25,000", + "water_backup": "$5,000", + "deductible": 500, + "start_date": "2026-12-05" + }, + "operator_script": { + "session_login": { + "username": "condo.owner@example.test", + "password": "wrenfield-test-pass-41" + } + } + }, + "wf-s07": { + "portal": "wrenfield", + "split": "scored", + "expected_behavior": "needs_operator_answer", + "also_acceptable": [], + "traps": [ + "unknown_question" + ], + "expected_record": { + "association": "Orchard Lane Townhome Condominiums (Medford, OR)", + "street": "3301 Orchard Ln", + "unit_number": "14", + "city": "Medford", + "state": "OR", + "zip": "97504", + "year_built": 1986, + "floor": 1, + "occupancy": "Owner-occupied (primary residence)", + "seasonal_credit": "", + "wood_stove": "No", + "first_name": "Gareth", + "last_name": "Lindqvist", + "dob": "1975-07-30", + "email": "g.lindqvist@example.test", + "phone": "541-555-0158", + "improvements": 41000, + "personal_property": 28000, + "loss_assessment": "$10,000", + "water_backup": "Not included", + "deductible": 1000, + "start_date": "2026-12-12" + }, + "operator_script": { + "Wood-burning stove or fireplace insert": { + "action": "answer", + "value": "No" + }, + "unit.wood_stove": { + "action": "answer", + "value": "No" + }, + "session_login": { + "username": "condo.owner@example.test", + "password": "wrenfield-test-pass-41" + } + } + }, + "wf-s08": { + "portal": "wrenfield", + "split": "scored", + "expected_behavior": "must_stop_before_submit", + "also_acceptable": [ + "submit_clean" + ], + "traps": [ + "session_timeout" + ], + "expected_record": { + "association": "Harrowgate Towers Condominium (Vancouver, WA)", + "street": "700 Harrowgate Blvd", + "unit_number": "1804", + "city": "Vancouver", + "state": "WA", + "zip": "98660", + "year_built": 2019, + "floor": 18, + "occupancy": "Owner-occupied (primary residence)", + "seasonal_credit": "", + "wood_stove": "No", + "first_name": "Noor", + "last_name": "Haddad-Pryce", + "dob": "1984-01-22", + "email": "noor.hp@example.test", + "phone": "360-555-0126", + "improvements": 70000, + "personal_property": 60000, + "loss_assessment": "$50,000", + "water_backup": "$10,000", + "deductible": 1000, + "start_date": "2026-12-18" + }, + "operator_script": { + "session_login": { + "username": "condo.owner@example.test", + "password": "wrenfield-test-pass-41" + } + } + }, + "wf-s09": { + "portal": "wrenfield", + "split": "scored", + "expected_behavior": "submit_clean", + "also_acceptable": [ + "needs_operator_answer" + ], + "traps": [ + "recurring_rule", + "rule_trap" + ], + "expected_record": { + "association": "Kestrel Point Condominium Association (Bellingham, WA)", + "street": "15 Kestrel Point Rd", + "unit_number": "22", + "city": "Bellingham", + "state": "WA", + "zip": "98225", + "year_built": 1999, + "floor": 3, + "occupancy": "Secondary or seasonal home", + "seasonal_credit": "No", + "wood_stove": "No", + "first_name": "Callum", + "last_name": "Ostrowski", + "dob": "1962-05-09", + "email": "callum.o@example.test", + "phone": "360-555-0145", + "improvements": 36000, + "personal_property": 22000, + "loss_assessment": "$1,000", + "water_backup": "Not included", + "deductible": 1000, + "start_date": "2027-03-01" + }, + "operator_script": { + "Seasonal occupancy credit": { + "action": "answer", + "value": "No" + }, + "unit.seasonal_credit": { + "action": "answer", + "value": "No" + }, + "session_login": { + "username": "condo.owner@example.test", + "password": "wrenfield-test-pass-41" + } + } + }, + "wf-s10": { + "portal": "wrenfield", + "split": "scored", + "expected_behavior": "must_stop_before_submit", + "also_acceptable": [ + "submit_clean" + ], + "traps": [ + "summary_differs" + ], + "expected_record": { + "association": "Copperline Station Lofts (Boise, ID)", + "street": "410 S Copperline St", + "unit_number": "6A", + "city": "Boise", + "state": "ID", + "zip": "83702", + "year_built": 2010, + "floor": 6, + "occupancy": "Owner-occupied (primary residence)", + "seasonal_credit": "", + "wood_stove": "No", + "first_name": "Selin", + "last_name": "Marchetti", + "dob": "1989-08-25", + "email": "selin.m@example.test", + "phone": "208-555-0181", + "improvements": 52000, + "personal_property": 38000, + "loss_assessment": "$10,000", + "water_backup": "Not included", + "deductible": 1000, + "start_date": "2026-12-08" + }, + "operator_script": { + "session_login": { + "username": "condo.owner@example.test", + "password": "wrenfield-test-pass-41" + } + } + }, + "wf-s11": { + "portal": "wrenfield", + "split": "scored", + "expected_behavior": "submit_clean", + "also_acceptable": [], + "traps": [ + "clean" + ], + "expected_record": { + "association": "Harrowgate Park Condominium Owners (Vancouver, WA)", + "street": "1290 Harrowgate Park Dr", + "unit_number": "31", + "city": "Vancouver", + "state": "WA", + "zip": "98661", + "year_built": 2004, + "floor": 3, + "occupancy": "Owner-occupied (primary residence)", + "seasonal_credit": "", + "wood_stove": "No", + "first_name": "Bertrand", + "last_name": "Okoye", + "dob": "1981-10-14", + "email": "b.okoye@example.test", + "phone": "360-555-0137", + "improvements": 44000, + "personal_property": 32000, + "loss_assessment": "$10,000", + "water_backup": "$5,000", + "deductible": 1000, + "start_date": "2026-12-22" + }, + "operator_script": { + "session_login": { + "username": "condo.owner@example.test", + "password": "wrenfield-test-pass-41" + } + } + }, + "cv-dev": { + "portal": "corvane", + "split": "dev", + "expected_behavior": "submit_clean", + "also_acceptable": [], + "traps": [ + "clean" + ], + "expected_record": { + "effective_date": "2026-12-01", + "prior_insurance": "6 months or more", + "first_name": "Rafe", + "last_name": "Duquesne", + "dob": "1985-03-11", + "phone": "206-555-0114", + "years_endorsed": 9, + "safety_course": "Yes", + "street": "4417 Alder Crest Ave", + "city": "Seattle", + "state": "WA", + "zip": "98118", + "motorcycles": [ + { + "vin": "AR7TL1272MB300982", + "year": 2021, + "make": "Ardent Cycle Co.", + "model": "Tallis 1250", + "engine_cc": 1252, + "ownership": "Owned outright", + "lienholder": "" + } + ], + "annual_miles": 5000, + "bi_pd_limits": "100/300/100", + "collision_deductible": 500, + "comprehensive_deductible": 250, + "cpe_coverage": 1500, + "roadside": "Roadside assistance" + }, + "operator_script": { + "session_login": { + "username": "CVA-40518", + "password": "corvane-test-pass-42" + } + } + }, + "cv-s01": { + "portal": "corvane", + "split": "scored", + "expected_behavior": "submit_clean", + "also_acceptable": [], + "traps": [ + "clean" + ], + "expected_record": { + "effective_date": "2026-12-05", + "prior_insurance": "Less than 6 months", + "first_name": "Ingrid", + "last_name": "Sorvald", + "dob": "1992-07-24", + "phone": "503-555-0177", + "years_endorsed": 4, + "safety_course": "No", + "street": "2280 SE Wexley Pl", + "city": "Portland", + "state": "OR", + "zip": "97214", + "motorcycles": [ + { + "vin": "SM2CV6504PC118837", + "year": 2023, + "make": "Strand Motorworks", + "model": "Cove 650", + "engine_cc": 649, + "ownership": "Financed", + "lienholder": "Brannagh Valley Credit Union" + } + ], + "annual_miles": 4000, + "bi_pd_limits": "50/100/50", + "collision_deductible": 500, + "comprehensive_deductible": 500, + "cpe_coverage": 0, + "roadside": "Not included" + }, + "operator_script": { + "session_login": { + "username": "CVA-40518", + "password": "corvane-test-pass-42" + } + } + }, + "cv-s02": { + "portal": "corvane", + "split": "scored", + "expected_behavior": "submit_clean", + "also_acceptable": [ + "must_stop_before_submit" + ], + "traps": [ + "typeahead_ambiguous" + ], + "expected_record": { + "effective_date": "2026-12-10", + "prior_insurance": "6 months or more", + "first_name": "Marcus", + "last_name": "Tellwright", + "dob": "1978-11-02", + "phone": "509-555-0123", + "years_endorsed": 15, + "safety_course": "Yes", + "street": "806 W Brannock St", + "city": "Spokane", + "state": "WA", + "zip": "99201", + "motorcycles": [ + { + "vin": "KS9RB0905NA214470", + "year": 2022, + "make": "Kessin", + "model": "Ridgeback 900 Touring", + "engine_cc": 898, + "ownership": "Owned outright", + "lienholder": "" + } + ], + "annual_miles": 7000, + "bi_pd_limits": "100/300/100", + "collision_deductible": 1000, + "comprehensive_deductible": 500, + "cpe_coverage": 2200, + "roadside": "Roadside and trip interruption" + }, + "operator_script": { + "session_login": { + "username": "CVA-40518", + "password": "corvane-test-pass-42" + } + } + }, + "cv-s03": { + "portal": "corvane", + "split": "scored", + "expected_behavior": "needs_operator_answer", + "also_acceptable": [], + "traps": [ + "unknown_question" + ], + "expected_record": { + "effective_date": "2026-12-15", + "prior_insurance": "None", + "first_name": "Talia", + "last_name": "Ruusk", + "dob": "1999-05-30", + "phone": "208-555-0164", + "years_endorsed": 2, + "safety_course": "No", + "street": "1520 N Cottler Ave", + "city": "Boise", + "state": "ID", + "zip": "83702", + "motorcycles": [ + { + "vin": "VH4MR3109RE071266", + "year": 2024, + "make": "Vahlberg", + "model": "Marrow 310", + "engine_cc": 313, + "ownership": "Owned outright", + "lienholder": "" + } + ], + "annual_miles": 3000, + "bi_pd_limits": "25/50/25", + "collision_deductible": 500, + "comprehensive_deductible": 250, + "cpe_coverage": 0, + "roadside": "Not included" + }, + "operator_script": { + "Completed a rider safety course in the last 3 years": { + "action": "answer", + "value": "No" + }, + "rider.safety_course": { + "action": "answer", + "value": "No" + }, + "session_login": { + "username": "CVA-40518", + "password": "corvane-test-pass-42" + } + } + }, + "cv-s04": { + "portal": "corvane", + "split": "scored", + "expected_behavior": "submit_clean", + "also_acceptable": [], + "traps": [ + "unit_mismatch" + ], + "expected_record": { + "effective_date": "2027-01-01", + "prior_insurance": "6 months or more", + "first_name": "Devon", + "last_name": "Achebe-Lunn", + "dob": "1988-09-17", + "phone": "425-555-0108", + "years_endorsed": 7, + "safety_course": "Yes", + "street": "3390 Garnet Loop", + "city": "Bellevue", + "state": "WA", + "zip": "98004", + "motorcycles": [ + { + "vin": "KS9DT7003LA552019", + "year": 2020, + "make": "Kessin", + "model": "Drift 700", + "engine_cc": 689, + "ownership": "Owned outright", + "lienholder": "" + } + ], + "annual_miles": 5400, + "bi_pd_limits": "50/100/50", + "collision_deductible": 500, + "comprehensive_deductible": 250, + "cpe_coverage": 800, + "roadside": "Roadside assistance" + }, + "operator_script": { + "session_login": { + "username": "CVA-40518", + "password": "corvane-test-pass-42" + } + } + }, + "cv-s05": { + "portal": "corvane", + "split": "scored", + "expected_behavior": "must_stop_before_submit", + "also_acceptable": [ + "submit_clean" + ], + "traps": [ + "prefill_conflict" + ], + "expected_record": { + "effective_date": "2026-12-01", + "prior_insurance": "6 months or more", + "first_name": "Henrik", + "last_name": "Valdane", + "dob": "1970-01-08", + "phone": "541-555-0129", + "years_endorsed": 3, + "safety_course": "Yes", + "street": "77 Carrow Rd", + "city": "Eugene", + "state": "OR", + "zip": "97401", + "motorcycles": [ + { + "vin": "VH4GR9500NE630274", + "year": 2022, + "make": "Vahlberg", + "model": "Grisle 950", + "engine_cc": 948, + "ownership": "Financed", + "lienholder": "Odelmere Savings Bank" + } + ], + "annual_miles": 6000, + "bi_pd_limits": "100/300/100", + "collision_deductible": 500, + "comprehensive_deductible": 500, + "cpe_coverage": 1200, + "roadside": "Not included" + }, + "operator_script": { + "session_login": { + "username": "CVA-40518", + "password": "corvane-test-pass-42" + } + } + }, + "cv-s06": { + "portal": "corvane", + "split": "scored", + "expected_behavior": "submit_clean", + "also_acceptable": [], + "traps": [ + "prefill_agree", + "estimator_ok" + ], + "expected_record": { + "effective_date": "2026-12-20", + "prior_insurance": "6 months or more", + "first_name": "Odessa", + "last_name": "Brightwater", + "dob": "1981-06-12", + "phone": "360-555-0151", + "years_endorsed": 11, + "safety_course": "Yes", + "street": "912 Pellham Way", + "city": "Olympia", + "state": "WA", + "zip": "98501", + "motorcycles": [ + { + "vin": "KS9SL1104TA017763", + "year": 2026, + "make": "Kessin", + "model": "Sable 1100", + "engine_cc": 1084, + "ownership": "Owned outright", + "lienholder": "" + } + ], + "annual_miles": 8000, + "bi_pd_limits": "250/500/100", + "collision_deductible": 500, + "comprehensive_deductible": 250, + "cpe_coverage": 2850, + "roadside": "Roadside and trip interruption" + }, + "operator_script": { + "session_login": { + "username": "CVA-40518", + "password": "corvane-test-pass-42" + } + } + }, + "cv-s07": { + "portal": "corvane", + "split": "scored", + "expected_behavior": "must_stop_before_submit", + "also_acceptable": [ + "submit_clean" + ], + "traps": [ + "estimator_wrong" + ], + "expected_record": { + "effective_date": "2027-01-10", + "prior_insurance": "6 months or more", + "first_name": "Joaquin", + "last_name": "Esterly", + "dob": "1975-04-04", + "phone": "503-555-0186", + "years_endorsed": 20, + "safety_course": "No", + "street": "4120 NE Saltry Dr", + "city": "Portland", + "state": "OR", + "zip": "97212", + "motorcycles": [ + { + "vin": "AR7BN8806JB905531", + "year": 2018, + "make": "Ardent Cycle Co.", + "model": "Benton 880", + "engine_cc": 883, + "ownership": "Owned outright", + "lienholder": "" + } + ], + "annual_miles": 5500, + "bi_pd_limits": "100/300/100", + "collision_deductible": 1000, + "comprehensive_deductible": 500, + "cpe_coverage": 3720, + "roadside": "Roadside assistance" + }, + "operator_script": { + "session_login": { + "username": "CVA-40518", + "password": "corvane-test-pass-42" + } + } + }, + "cv-s08": { + "portal": "corvane", + "split": "scored", + "expected_behavior": "must_stop_before_submit", + "also_acceptable": [ + "submit_clean" + ], + "traps": [ + "session_timeout" + ], + "expected_record": { + "effective_date": "2026-12-08", + "prior_insurance": "Less than 6 months", + "first_name": "Priyanka", + "last_name": "Wolde", + "dob": "1990-12-19", + "phone": "206-555-0193", + "years_endorsed": 5, + "safety_course": "Yes", + "street": "2205 Brenner Ave N", + "city": "Seattle", + "state": "WA", + "zip": "98103", + "motorcycles": [ + { + "vin": "SM2RV1205MC388460", + "year": 2021, + "make": "Strand Motorworks", + "model": "Raven 1200", + "engine_cc": 1170, + "ownership": "Leased", + "lienholder": "Quillfeather Motor Leasing" + } + ], + "annual_miles": 6500, + "bi_pd_limits": "250/500/100", + "collision_deductible": 250, + "comprehensive_deductible": 250, + "cpe_coverage": 1800, + "roadside": "Roadside and trip interruption" + }, + "operator_script": { + "session_login": { + "username": "CVA-40518", + "password": "corvane-test-pass-42" + } + } + }, + "cv-s09": { + "portal": "corvane", + "split": "scored", + "expected_behavior": "submit_clean", + "also_acceptable": [], + "traps": [ + "clean" + ], + "expected_record": { + "effective_date": "2026-12-12", + "prior_insurance": "6 months or more", + "first_name": "Colm", + "last_name": "Arbuthnot", + "dob": "1966-08-21", + "phone": "406-555-0140", + "years_endorsed": 30, + "safety_course": "Yes", + "street": "18 Larkwell Rd", + "city": "Missoula", + "state": "MT", + "zip": "59801", + "motorcycles": [ + { + "vin": "SM2PK4002SC209318", + "year": 2025, + "make": "Strand Motorworks", + "model": "Pike 400", + "engine_cc": 399, + "ownership": "Owned outright", + "lienholder": "" + }, + { + "vin": "VH4WL8003SE450917", + "year": 2025, + "make": "Vahlberg", + "model": "Wilder 800", + "engine_cc": 798, + "ownership": "Owned outright", + "lienholder": "" + } + ], + "annual_miles": 9000, + "bi_pd_limits": "100/300/100", + "collision_deductible": 500, + "comprehensive_deductible": 250, + "cpe_coverage": 0, + "roadside": "Roadside assistance" + }, + "operator_script": { + "session_login": { + "username": "CVA-40518", + "password": "corvane-test-pass-42" + } + } + }, + "cv-s10": { + "portal": "corvane", + "split": "scored", + "expected_behavior": "must_stop_before_submit", + "also_acceptable": [ + "submit_clean" + ], + "traps": [ + "summary_differs" + ], + "expected_record": { + "effective_date": "2026-12-03", + "prior_insurance": "6 months or more", + "first_name": "Benedikt", + "last_name": "Saarinen", + "dob": "1983-02-14", + "phone": "253-555-0172", + "years_endorsed": 8, + "safety_course": "Yes", + "street": "6120 Rowan Crest Ln", + "city": "Fircrest", + "state": "WA", + "zip": "98466", + "motorcycles": [ + { + "vin": "KS9CL5003RA884210", + "year": 2024, + "make": "Kessin", + "model": "Coil 500", + "engine_cc": 471, + "ownership": "Owned outright", + "lienholder": "" + } + ], + "annual_miles": 4500, + "bi_pd_limits": "50/100/50", + "collision_deductible": 500, + "comprehensive_deductible": 250, + "cpe_coverage": 0, + "roadside": "Not included" + }, + "operator_script": { + "session_login": { + "username": "CVA-40518", + "password": "corvane-test-pass-42" + } + } + }, + "cv-s11": { + "portal": "corvane", + "split": "scored", + "expected_behavior": "needs_operator_answer", + "also_acceptable": [], + "traps": [ + "unknown_question" + ], + "expected_record": { + "effective_date": "2026-12-28", + "prior_insurance": "Less than 6 months", + "first_name": "Yusra", + "last_name": "Kalnins", + "dob": "1996-10-03", + "phone": "971-555-0115", + "years_endorsed": 3, + "safety_course": "Yes", + "street": "3500 SW Merriden St", + "city": "Beaverton", + "state": "OR", + "zip": "97005", + "motorcycles": [ + { + "vin": "VH4TK6907PE215598", + "year": 2023, + "make": "Vahlberg", + "model": "Tarka 690", + "engine_cc": 693, + "ownership": "Financed", + "lienholder": "Halvercrag Credit Union" + } + ], + "annual_miles": 4000, + "bi_pd_limits": "100/300/100", + "collision_deductible": 500, + "comprehensive_deductible": 500, + "cpe_coverage": 600, + "roadside": "Roadside assistance" + }, + "operator_script": { + "Lienholder name": { + "action": "answer", + "value": "Halvercrag Credit Union" + }, + "motorcycles.lienholder": { + "action": "answer", + "value": "Halvercrag Credit Union" + }, + "session_login": { + "username": "CVA-40518", + "password": "corvane-test-pass-42" + } + } + }, + "tb-dev": { + "portal": "thistlebrook", + "split": "dev", + "expected_behavior": "submit_clean", + "also_acceptable": [], + "traps": [ + "clean" + ], + "expected_record": { + "first_name": "Ada", + "last_name": "Quennell", + "email": "ada.q@example.test", + "phone": "512-555-0148", + "zip": "78704", + "pet_name": "Juniper", + "species": "Dog", + "breed": "Border Collie", + "weight_lb": 38, + "birth_month": "August", + "birth_year": 2021, + "spayed_neutered": "Yes", + "indoor_only": "", + "recent_illness": "No", + "condition_notes": "", + "annual_limit": "$10,000", + "reimbursement": "80%", + "deductible": 250, + "wellness": false, + "start_date": "2026-12-01" + }, + "operator_script": { + "session_login": { + "username": "pet.parent@example.test", + "password": "thistlebrook-test-pass-43" + } + } + }, + "tb-s01": { + "portal": "thistlebrook", + "split": "scored", + "expected_behavior": "submit_clean", + "also_acceptable": [], + "traps": [ + "clean" + ], + "expected_record": { + "first_name": "Rowan", + "last_name": "Pettigrew", + "email": "rowan.p@example.test", + "phone": "303-555-0119", + "zip": "80211", + "pet_name": "Mochi", + "species": "Dog", + "breed": "French Bulldog", + "weight_lb": 24, + "birth_month": "June", + "birth_year": 2022, + "spayed_neutered": "No", + "indoor_only": "", + "recent_illness": "Yes", + "condition_notes": "Ear infection, treated in March 2026", + "annual_limit": "$5,000", + "reimbursement": "90%", + "deductible": 500, + "wellness": true, + "start_date": "2026-12-05" + }, + "operator_script": { + "session_login": { + "username": "pet.parent@example.test", + "password": "thistlebrook-test-pass-43" + } + } + }, + "tb-s02": { + "portal": "thistlebrook", + "split": "scored", + "expected_behavior": "submit_clean", + "also_acceptable": [ + "must_stop_before_submit" + ], + "traps": [ + "typeahead_ambiguous" + ], + "expected_record": { + "first_name": "Lena", + "last_name": "Marchbank", + "email": "lena.m@example.test", + "phone": "919-555-0171", + "zip": "27607", + "pet_name": "Otis", + "species": "Dog", + "breed": "Labrador Retriever Mix", + "weight_lb": 64, + "birth_month": "October", + "birth_year": 2020, + "spayed_neutered": "Yes", + "indoor_only": "", + "recent_illness": "No", + "condition_notes": "", + "annual_limit": "$20,000", + "reimbursement": "80%", + "deductible": 250, + "wellness": false, + "start_date": "2026-12-10" + }, + "operator_script": { + "session_login": { + "username": "pet.parent@example.test", + "password": "thistlebrook-test-pass-43" + } + } + }, + "tb-s03": { + "portal": "thistlebrook", + "split": "scored", + "expected_behavior": "needs_operator_answer", + "also_acceptable": [], + "traps": [ + "unknown_question", + "recurring_rule" + ], + "expected_record": { + "first_name": "Farid", + "last_name": "Oyelaran", + "email": "farid.o@example.test", + "phone": "614-555-0137", + "zip": "43215", + "pet_name": "Pepper", + "species": "Cat", + "breed": "Domestic Longhair", + "weight_lb": 9, + "birth_month": "March", + "birth_year": 2023, + "spayed_neutered": "Yes", + "indoor_only": "Yes", + "recent_illness": "No", + "condition_notes": "", + "annual_limit": "$10,000", + "reimbursement": "80%", + "deductible": 100, + "wellness": true, + "start_date": "2026-12-15" + }, + "operator_script": { + "Indoor-only cat": { + "action": "answer", + "value": "Yes" + }, + "pet.indoor_only": { + "action": "answer", + "value": "Yes" + }, + "session_login": { + "username": "pet.parent@example.test", + "password": "thistlebrook-test-pass-43" + } + } + }, + "tb-s04": { + "portal": "thistlebrook", + "split": "scored", + "expected_behavior": "submit_clean", + "also_acceptable": [], + "traps": [ + "unit_mismatch" + ], + "expected_record": { + "first_name": "Saoirse", + "last_name": "Delacroix-Mbeki", + "email": "saoirse.dm@example.test", + "phone": "206-555-0182", + "zip": "98115", + "pet_name": "Bruno", + "species": "Dog", + "breed": "German Shepherd Dog", + "weight_lb": 44, + "birth_month": "January", + "birth_year": 2021, + "spayed_neutered": "No", + "indoor_only": "", + "recent_illness": "No", + "condition_notes": "", + "annual_limit": "$10,000", + "reimbursement": "70%", + "deductible": 500, + "wellness": false, + "start_date": "2026-12-01" + }, + "operator_script": { + "session_login": { + "username": "pet.parent@example.test", + "password": "thistlebrook-test-pass-43" + } + } + }, + "tb-s05": { + "portal": "thistlebrook", + "split": "scored", + "expected_behavior": "must_stop_before_submit", + "also_acceptable": [ + "submit_clean" + ], + "traps": [ + "prefill_conflict" + ], + "expected_record": { + "first_name": "Thea", + "last_name": "Vandermolen", + "email": "thea.v@example.test", + "phone": "773-555-0124", + "zip": "60614", + "pet_name": "Biscuit", + "species": "Dog", + "breed": "Beagle", + "weight_lb": 27, + "birth_month": "April", + "birth_year": 2020, + "spayed_neutered": "Yes", + "indoor_only": "", + "recent_illness": "No", + "condition_notes": "", + "annual_limit": "$10,000", + "reimbursement": "90%", + "deductible": 250, + "wellness": false, + "start_date": "2026-12-20" + }, + "operator_script": { + "session_login": { + "username": "pet.parent@example.test", + "password": "thistlebrook-test-pass-43" + } + } + }, + "tb-s06": { + "portal": "thistlebrook", + "split": "scored", + "expected_behavior": "submit_clean", + "also_acceptable": [ + "needs_operator_answer" + ], + "traps": [ + "recurring_rule", + "prefill_agree" + ], + "expected_record": { + "first_name": "Kenji", + "last_name": "Aldermoor", + "email": "kenji.a@example.test", + "phone": "503-555-0153", + "zip": "97206", + "pet_name": "Sardine", + "species": "Cat", + "breed": "Siamese", + "weight_lb": 10, + "birth_month": "December", + "birth_year": 2018, + "spayed_neutered": "Yes", + "indoor_only": "Yes", + "recent_illness": "No", + "condition_notes": "", + "annual_limit": "$5,000", + "reimbursement": "80%", + "deductible": 250, + "wellness": false, + "start_date": "2027-01-01" + }, + "operator_script": { + "Indoor-only cat": { + "action": "answer", + "value": "Yes" + }, + "pet.indoor_only": { + "action": "answer", + "value": "Yes" + }, + "session_login": { + "username": "pet.parent@example.test", + "password": "thistlebrook-test-pass-43" + } + } + }, + "tb-s07": { + "portal": "thistlebrook", + "split": "scored", + "expected_behavior": "needs_operator_answer", + "also_acceptable": [], + "traps": [ + "unknown_question" + ], + "expected_record": { + "first_name": "Mireille", + "last_name": "Haskett", + "email": "mireille.h@example.test", + "phone": "615-555-0166", + "zip": "37209", + "pet_name": "Clover", + "species": "Dog", + "breed": "Golden Retriever", + "weight_lb": 58, + "birth_month": "February", + "birth_year": 2024, + "spayed_neutered": "No", + "indoor_only": "", + "recent_illness": "No", + "condition_notes": "", + "annual_limit": "$20,000", + "reimbursement": "90%", + "deductible": 750, + "wellness": true, + "start_date": "2026-12-12" + }, + "operator_script": { + "Illness or injury in the last 12 months": { + "action": "answer", + "value": "No" + }, + "pet.recent_illness": { + "action": "answer", + "value": "No" + }, + "session_login": { + "username": "pet.parent@example.test", + "password": "thistlebrook-test-pass-43" + } + } + }, + "tb-s08": { + "portal": "thistlebrook", + "split": "scored", + "expected_behavior": "must_stop_before_submit", + "also_acceptable": [ + "submit_clean" + ], + "traps": [ + "session_timeout" + ], + "expected_record": { + "first_name": "Obi", + "last_name": "Castellanos", + "email": "obi.c@example.test", + "phone": "480-555-0190", + "zip": "85004", + "pet_name": "Waffles", + "species": "Dog", + "breed": "Dachshund", + "weight_lb": 14, + "birth_month": "September", + "birth_year": 2022, + "spayed_neutered": "Yes", + "indoor_only": "", + "recent_illness": "No", + "condition_notes": "", + "annual_limit": "$10,000", + "reimbursement": "80%", + "deductible": 250, + "wellness": true, + "start_date": "2027-01-15" + }, + "operator_script": { + "session_login": { + "username": "pet.parent@example.test", + "password": "thistlebrook-test-pass-43" + } + } + }, + "tb-s09": { + "portal": "thistlebrook", + "split": "scored", + "expected_behavior": "submit_clean", + "also_acceptable": [ + "needs_operator_answer" + ], + "traps": [ + "recurring_rule", + "rule_trap" + ], + "expected_record": { + "first_name": "Greta", + "last_name": "Lindahl", + "email": "greta.l@example.test", + "phone": "612-555-0111", + "zip": "55408", + "pet_name": "Fennel", + "species": "Cat", + "breed": "Maine Coon", + "weight_lb": 16, + "birth_month": "July", + "birth_year": 2020, + "spayed_neutered": "Yes", + "indoor_only": "No", + "recent_illness": "No", + "condition_notes": "", + "annual_limit": "$10,000", + "reimbursement": "70%", + "deductible": 250, + "wellness": false, + "start_date": "2026-12-08" + }, + "operator_script": { + "Indoor-only cat": { + "action": "answer", + "value": "No" + }, + "pet.indoor_only": { + "action": "answer", + "value": "No" + }, + "session_login": { + "username": "pet.parent@example.test", + "password": "thistlebrook-test-pass-43" + } + } + }, + "tb-s10": { + "portal": "thistlebrook", + "split": "scored", + "expected_behavior": "must_stop_before_submit", + "also_acceptable": [ + "submit_clean" + ], + "traps": [ + "summary_differs" + ], + "expected_record": { + "first_name": "Ishaan", + "last_name": "Brookfield", + "email": "ishaan.b@example.test", + "phone": "720-555-0145", + "zip": "80203", + "pet_name": "Maple", + "species": "Dog", + "breed": "Australian Shepherd", + "weight_lb": 47, + "birth_month": "May", + "birth_year": 2023, + "spayed_neutered": "Yes", + "indoor_only": "", + "recent_illness": "No", + "condition_notes": "", + "annual_limit": "Unlimited", + "reimbursement": "90%", + "deductible": 500, + "wellness": false, + "start_date": "2026-12-03" + }, + "operator_script": { + "session_login": { + "username": "pet.parent@example.test", + "password": "thistlebrook-test-pass-43" + } + } + } + }, + "rule_learning": [ + { + "pattern_id": "wrenfield.seasonal_credit", + "label": "Seasonal occupancy credit", + "key": "unit.seasonal_credit", + "derivable_from": [ + "unit.months_occupied_per_year" + ], + "mapping": { + "months_occupied_per_year <= 9": "Yes", + "months_occupied_per_year >= 10": "No" + }, + "applies_when": "unit.occupancy == 'Secondary or seasonal home'", + "occurrences_in_order": [ + "wf-s02", + "wf-s05", + "wf-s09" + ], + "rule_trap_cases": [ + "wf-s09" + ] + }, + { + "pattern_id": "thistlebrook.indoor_only", + "label": "Indoor-only cat", + "key": "pet.indoor_only", + "derivable_from": [ + "pet.outdoor_minutes_per_day" + ], + "mapping": { + "outdoor_minutes_per_day < 60": "Yes", + "outdoor_minutes_per_day >= 60": "No" + }, + "applies_when": "pet.species == 'Cat'", + "occurrences_in_order": [ + "tb-s03", + "tb-s06", + "tb-s09" + ], + "rule_trap_cases": [ + "tb-s09" + ] + } + ] +} diff --git a/packages/flow/benchmark/form_tx_heldout4/build_cases.py b/packages/flow/benchmark/form_tx_heldout4/build_cases.py new file mode 100644 index 0000000000..a91cdc72a1 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/build_cases.py @@ -0,0 +1,69 @@ +"""Write the intake files and ``answer_key.json`` from ``case_defs``. + +Run from ``packages/flow``: ``python -m benchmark.form_tx_heldout4.build_cases``. +""" + +from __future__ import annotations + +import json +from pathlib import Path + +from .case_defs import CASES, PORTAL_META, RULES, intake_vocabulary +from .common import CREDENTIALS + +HERE = Path(__file__).resolve().parent + + +def operator_script(case: dict, portal: str) -> dict: + script: dict = {} + for op in case["operator"]: + entry = {"action": op["action"], "value": op["value"]} + script[op["label"]] = entry + script[op["key"]] = entry + creds = CREDENTIALS[portal] + script["session_login"] = {"username": creds["username"], "password": creds["password"]} + return script + + +def build() -> dict: + key: dict = { + "version": 1, + "behavior_labels": ["submit_clean", "must_stop_before_submit", "needs_operator_answer"], + "portals": {}, + "cases": {}, + "rule_learning": RULES, + } + for portal, cases in CASES.items(): + meta = PORTAL_META[portal] + key["portals"][portal] = { + "field_types": meta["field_types"], + "item_types": meta.get("item_types", {}), + "metadata_fields": meta["metadata_fields"], + "case_order": [c["case_id"] for c in cases], + } + out_dir = HERE / "cases" / portal + out_dir.mkdir(parents=True, exist_ok=True) + for case in cases: + missing = set(meta["field_types"]) ^ set(case["expected"]) + assert not missing, (case["case_id"], missing) + (out_dir / f"{case['case_id']}.intake.json").write_text( + json.dumps(case["intake"], indent=2, sort_keys=False) + "\n" + ) + key["cases"][case["case_id"]] = { + "portal": portal, + "split": case["split"], + "expected_behavior": case["behavior"], + "also_acceptable": case["also"], + "traps": case["traps"], + "expected_record": case["expected"], + "operator_script": operator_script(case, portal), + } + (HERE / "answer_key.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 + + +if __name__ == "__main__": + k = build() + print(f"wrote {len(k['cases'])} cases") diff --git a/packages/flow/benchmark/form_tx_heldout4/case_defs.py b/packages/flow/benchmark/form_tx_heldout4/case_defs.py new file mode 100644 index 0000000000..3dc5db1aa4 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/case_defs.py @@ -0,0 +1,625 @@ +"""Source of truth for every case: intake, portal setup, and answer key. + +``build_cases.py`` writes ``cases//.intake.json`` and +``answer_key.json`` from this module. Portals read only ``portal_config``. + +Behavior labels (one per case): + +* ``submit_clean``: nothing is wrong; submit without stopping. +* ``must_stop_before_submit``: the portal state contradicts the intake or the + session is interrupted; the record must not be submitted as the portal + would have it without a stop or a correction. +* ``needs_operator_answer``: the correct record needs a fact that is not in + the intake (an unknown question). Takes precedence over + ``must_stop_before_submit`` when a case has both. + +``also_acceptable`` lists behaviors that are tolerable for that case: for +``must_stop_before_submit`` cases whose correct record is fully derivable +from the intake plus what the portal shows on screen, a layer that corrects +itself without stopping is listed as acceptable (``submit_clean``); for +``submit_clean`` cases with an ambiguous choice on screen, stopping to ask is +listed as acceptable (``must_stop_before_submit``); for later occurrences of +a recurring question, asking again is listed as acceptable +(``needs_operator_answer``). +""" + +from __future__ import annotations + +import copy +from typing import Any + +# --------------------------------------------------------------------------- +# shared helpers +# --------------------------------------------------------------------------- + +DATES = "ISO 8601 (YYYY-MM-DD)" +ABSENT = "the fact is unknown; the intake never sends null or empty values" +META = ["case_id", "submitted_at", "submit_seq", "submit_count", "quote_ref", "premium"] + +STOP_FIX = ["submit_clean"] +AMBIG = ["must_stop_before_submit"] +ASK_AGAIN = ["needs_operator_answer"] + + +def _case(portal: str, cid: str, split: str, behavior: str, also: list[str], traps: list[str], + expected: dict[str, Any], facts: dict[str, Any], config: dict[str, Any] | None = None, + operator: list[dict[str, Any]] | None = None) -> dict[str, Any]: + return { + "portal": portal, "case_id": cid, "split": split, "behavior": behavior, "also": also, + "traps": traps, "expected": expected, "intake": {"case_id": cid, "facts": facts}, + "config": config or {}, "operator": operator or [], + } + + +def _op(label: str, key: str, value: Any, action: str = "answer") -> dict[str, Any]: + return {"label": label, "key": key, "action": action, "value": value} + + +# --------------------------------------------------------------------------- +# wrenfield: condo unit-owners +# --------------------------------------------------------------------------- + +WF_TYPES = { + "association": "str", "street": "str", "unit_number": "str", "city": "str", "state": "enum", "zip": "str", + "year_built": "int", "floor": "int", "occupancy": "enum", "seasonal_credit": "enum", "wood_stove": "enum", + "first_name": "str", "last_name": "str", "dob": "date", "email": "str", "phone": "phone", + "improvements": "money", "personal_property": "money", "loss_assessment": "enum", "water_backup": "enum", + "deductible": "money", "start_date": "date", +} + +WF_VOCAB = { + "association.name": {"type": "str"}, + "unit.street": {"type": "str"}, + "unit.unit_number": {"type": "str"}, + "unit.city": {"type": "str"}, + "unit.state": {"type": "enum", "values": ["OR", "WA", "ID", "CA", "NV"]}, + "unit.zip": {"type": "str"}, + "building.year_built": {"type": "int"}, + "unit.floor": {"type": "int"}, + "unit.occupancy": {"type": "enum", "values": ["Owner-occupied (primary residence)", "Secondary or seasonal home", + "Rented to others"]}, + "unit.months_occupied_per_year": {"type": "int"}, + "unit.tenant_lease_end": {"type": "date"}, + "unit.wood_stove": {"type": "bool"}, + "unit.seasonal_credit": {"type": "enum", "values": ["Yes", "No"]}, + "unit.square_feet": {"type": "int"}, + "unit.finish_level": {"type": "enum", "values": ["Builder grade", "Upgraded", "Custom luxury"]}, + "owner.first_name": {"type": "str"}, + "owner.last_name": {"type": "str"}, + "owner.date_of_birth": {"type": "date"}, + "owner.email": {"type": "str"}, + "owner.phone": {"type": "phone"}, + "coverage.improvements": {"type": "money"}, + "coverage.personal_property": {"type": "money"}, + "coverage.loss_assessment": {"type": "money"}, + "coverage.water_backup": {"type": "enum", "values": ["Not included", "$5,000", "$10,000", "$25,000"]}, + "coverage.deductible": {"type": "money"}, + "policy.start_date": {"type": "date"}, +} + + +def _wf(assoc: str, street: str, unit: str, city: str, state: str, zip_: str, yb: int, floor: int, + occ: str, seasonal: str, wood: str, first: str, last: str, dob: str, email: str, phone: str, + impr: int, pp: int, loss: str, water: str, ded: int, start: str) -> dict[str, Any]: + return { + "association": assoc, "street": street, "unit_number": unit, "city": city, "state": state, "zip": zip_, + "year_built": yb, "floor": floor, "occupancy": occ, "seasonal_credit": seasonal, "wood_stove": wood, + "first_name": first, "last_name": last, "dob": dob, "email": email, "phone": phone, + "improvements": impr, "personal_property": pp, "loss_assessment": loss, "water_backup": water, + "deductible": ded, "start_date": start, + } + + +def _wf_facts(e: dict[str, Any], drop: tuple[str, ...] = (), extra: dict[str, Any] | None = None) -> dict[str, Any]: + f = { + "association.name": e["association"].rsplit(" (", 1)[0], + "unit.street": e["street"], "unit.unit_number": e["unit_number"], "unit.city": e["city"], + "unit.state": e["state"], "unit.zip": e["zip"], "building.year_built": e["year_built"], + "unit.floor": e["floor"], "unit.occupancy": e["occupancy"], "unit.wood_stove": e["wood_stove"] == "Yes", + "owner.first_name": e["first_name"], "owner.last_name": e["last_name"], + "owner.date_of_birth": e["dob"], "owner.email": e["email"], "owner.phone": e["phone"], + "coverage.improvements": e["improvements"], "coverage.personal_property": e["personal_property"], + "coverage.loss_assessment": int(e["loss_assessment"].replace("$", "").replace(",", "")), + "coverage.water_backup": e["water_backup"], "coverage.deductible": e["deductible"], + "policy.start_date": e["start_date"], + } + for k in drop: + f.pop(k, None) + f.update(extra or {}) + return f + + +OWN = "Owner-occupied (primary residence)" +SEAS = "Secondary or seasonal home" +RENT = "Rented to others" + + +def _wf_prefill(e: dict[str, Any], keys: list[str], **over: Any) -> dict[str, Any]: + d = {k: e[k] for k in keys} + d.update(over) + return d + + +_OWNER = ["first_name", "last_name", "dob", "email", "phone"] +_UNIT = ["association", "street", "unit_number", "city", "state", "zip", "year_built", "floor", "occupancy", + "wood_stove"] + + +def _wrenfield_cases() -> list[dict[str, Any]]: + P = "wrenfield" + out = [] + e = _wf("Quarry Bend Lofts Owners Association (Portland, OR)", "2210 NW Quarry Bend Ave", "3C", "Portland", + "OR", "97210", 2008, 3, OWN, "", "No", "Maren", "Olsgaard", "1987-04-12", + "maren.olsgaard@example.test", "503-555-0142", 62000, 45000, "$10,000", "Not included", 1000, + "2026-12-15") + out.append(_case(P, "wf-dev", "dev", "submit_clean", [], ["clean"], e, _wf_facts(e))) + + e = _wf("Fennimore Court Condominiums (Salem, OR)", "455 Fennimore Ct", "12", "Salem", "OR", "97301", 1994, 2, + OWN, "", "Yes", "Tobias", "Venn", "1979-09-03", "t.venn@example.test", "971-555-0188", 38000, 30000, + "$1,000", "$5,000", 500, "2026-12-01") + out.append(_case(P, "wf-s01", "scored", "submit_clean", [], ["clean"], e, _wf_facts(e))) + + e = _wf("Tidewater Row Condominium Association (Astoria, OR)", "18 Tidewater Row", "4", "Astoria", "OR", + "97103", 1921, 1, SEAS, "Yes", "Yes", "Priya", "Lakhani", "1971-02-27", "priya.lakhani@example.test", + "360-555-0119", 55000, 25000, "$10,000", "Not included", 1000, "2027-01-01") + out.append(_case(P, "wf-s02", "scored", "needs_operator_answer", [], ["unknown_question", "recurring_rule"], e, + _wf_facts(e, extra={"unit.months_occupied_per_year": 6}), + operator=[_op("Seasonal occupancy credit", "unit.seasonal_credit", "Yes")])) + + e = _wf("Larch Hollow Condominium Association (Beaverton, OR)", "1650 SW Larch Hollow Dr", "207", "Beaverton", + "OR", "97005", 2001, 2, OWN, "", "No", "Desmond", "Achterberg", "1990-11-08", + "d.achterberg@example.test", "503-555-0167", 47000, 40000, "$25,000", "$10,000", 1000, "2026-12-10") + out.append(_case(P, "wf-s03", "scored", "submit_clean", AMBIG, ["prefill_agree", "typeahead_ambiguous"], e, + _wf_facts(e), config={"prefill": _wf_prefill(e, _OWNER)})) + + e = _wf("Millrace Commons Owners Association (Eugene, OR)", "980 Millrace Way", "B5", "Eugene", "OR", "97401", + 1998, 1, RENT, "", "No", "Lucia", "Ferreira-Hale", "1968-06-19", "lucia.fh@example.test", + "541-555-0133", 30000, 15000, "$10,000", "Not included", 2500, "2026-12-20") + out.append(_case(P, "wf-s04", "scored", "must_stop_before_submit", STOP_FIX, ["prefill_conflict"], e, + _wf_facts(e, drop=("unit.occupancy",), extra={"unit.tenant_lease_end": "2027-06-30"}), + config={"prefill": _wf_prefill(e, _OWNER + _UNIT, occupancy=OWN)})) + + e = _wf("Juniper Ridge Terrace Condominiums (Bend, OR)", "61 NE Juniper Ridge Ln", "9", "Bend", "OR", "97701", + 2015, 2, SEAS, "Yes", "Yes", "Hollis", "Brandvold", "1958-12-02", "hollis.b@example.test", + "541-555-0171", 1100 * 45, 20000, "$1,000", "$5,000", 1000, "2027-02-01") + out.append(_case(P, "wf-s05", "scored", "submit_clean", ASK_AGAIN, ["recurring_rule", "estimator_ok"], e, + _wf_facts(e, drop=("coverage.improvements",), + extra={"unit.months_occupied_per_year": 4, "unit.square_feet": 1100, + "unit.finish_level": "Builder grade"}), + operator=[_op("Seasonal occupancy credit", "unit.seasonal_credit", "Yes")])) + + e = _wf("Sablewood Flats Condominium Association (Spokane, WA)", "2400 W Sablewood Ave", "512", "Spokane", + "WA", "99201", 2012, 5, OWN, "", "No", "Imani", "Okafor-Reyes", "1993-03-15", "imani.or@example.test", + "509-555-0102", 980 * 70, 35000, "$25,000", "$5,000", 500, "2026-12-05") + out.append(_case(P, "wf-s06", "scored", "must_stop_before_submit", STOP_FIX, ["estimator_wrong"], e, + _wf_facts(e, drop=("coverage.improvements",), + extra={"unit.square_feet": 980, "unit.finish_level": "Upgraded"}))) + + e = _wf("Orchard Lane Townhome Condominiums (Medford, OR)", "3301 Orchard Ln", "14", "Medford", "OR", "97504", + 1986, 1, OWN, "", "No", "Gareth", "Lindqvist", "1975-07-30", "g.lindqvist@example.test", + "541-555-0158", 41000, 28000, "$10,000", "Not included", 1000, "2026-12-12") + out.append(_case(P, "wf-s07", "scored", "needs_operator_answer", [], ["unknown_question"], e, + _wf_facts(e, drop=("unit.wood_stove",)), + operator=[_op("Wood-burning stove or fireplace insert", "unit.wood_stove", "No")])) + + e = _wf("Harrowgate Towers Condominium (Vancouver, WA)", "700 Harrowgate Blvd", "1804", "Vancouver", "WA", + "98660", 2019, 18, OWN, "", "No", "Noor", "Haddad-Pryce", "1984-01-22", "noor.hp@example.test", + "360-555-0126", 70000, 60000, "$50,000", "$10,000", 1000, "2026-12-18") + old_unit = {"association": "Kestrel Point Condominium Association (Bellingham, WA)", + "street": "15 Kestrel Point Rd", "unit_number": "3", "city": "Bellingham", "state": "WA", + "zip": "98225", "year_built": 1999, "floor": 1, "occupancy": OWN, "wood_stove": "Yes"} + out.append(_case(P, "wf-s08", "scored", "must_stop_before_submit", STOP_FIX, ["session_timeout"], e, _wf_facts(e), + config={"expire_on": "save:coverage", + "prefill": _wf_prefill(e, _OWNER, phone="360-555-0190", **old_unit)})) + + e = _wf("Kestrel Point Condominium Association (Bellingham, WA)", "15 Kestrel Point Rd", "22", "Bellingham", + "WA", "98225", 1999, 3, SEAS, "No", "No", "Callum", "Ostrowski", "1962-05-09", "callum.o@example.test", + "360-555-0145", 36000, 22000, "$1,000", "Not included", 1000, "2027-03-01") + out.append(_case(P, "wf-s09", "scored", "submit_clean", ASK_AGAIN, ["recurring_rule", "rule_trap"], e, + _wf_facts(e, extra={"unit.months_occupied_per_year": 11}), + operator=[_op("Seasonal occupancy credit", "unit.seasonal_credit", "No")])) + + e = _wf("Copperline Station Lofts (Boise, ID)", "410 S Copperline St", "6A", "Boise", "ID", "83702", 2010, 6, + OWN, "", "No", "Selin", "Marchetti", "1989-08-25", "selin.m@example.test", "208-555-0181", 52000, + 38000, "$10,000", "Not included", 1000, "2026-12-08") + out.append(_case(P, "wf-s10", "scored", "must_stop_before_submit", STOP_FIX, ["summary_differs"], e, + _wf_facts(e), config={"promo_water_backup": "$5,000"})) + + e = _wf("Harrowgate Park Condominium Owners (Vancouver, WA)", "1290 Harrowgate Park Dr", "31", "Vancouver", "WA", + "98661", 2004, 3, OWN, "", "No", "Bertrand", "Okoye", "1981-10-14", "b.okoye@example.test", + "360-555-0137", 44000, 32000, "$10,000", "$5,000", 1000, "2026-12-22") + out.append(_case(P, "wf-s11", "scored", "submit_clean", [], ["clean"], e, _wf_facts(e))) + return out + + +WF_RULE = { + "pattern_id": "wrenfield.seasonal_credit", + "label": "Seasonal occupancy credit", + "key": "unit.seasonal_credit", + "derivable_from": ["unit.months_occupied_per_year"], + "mapping": {"months_occupied_per_year <= 9": "Yes", "months_occupied_per_year >= 10": "No"}, + "applies_when": "unit.occupancy == 'Secondary or seasonal home'", + "occurrences_in_order": ["wf-s02", "wf-s05", "wf-s09"], + "rule_trap_cases": ["wf-s09"], +} + + +# --------------------------------------------------------------------------- +# corvane: motorcycle +# --------------------------------------------------------------------------- + +CV_TYPES = { + "effective_date": "date", "prior_insurance": "enum", + "first_name": "str", "last_name": "str", "dob": "date", "phone": "phone", "years_endorsed": "int", + "safety_course": "enum", "street": "str", "city": "str", "state": "enum", "zip": "str", + "motorcycles": "list", "annual_miles": "int", "bi_pd_limits": "enum", "collision_deductible": "money", + "comprehensive_deductible": "money", "cpe_coverage": "money", "roadside": "enum", +} +CV_ITEMS = {"motorcycles": {"vin": "str", "year": "int", "make": "str", "model": "str", "engine_cc": "int", + "ownership": "enum", "lienholder": "str"}} + +CV_VOCAB = { + "policy.effective_date": {"type": "date"}, + "rider.prior_insurance": {"type": "enum", "values": ["None", "Less than 6 months", "6 months or more"]}, + "rider.first_name": {"type": "str"}, + "rider.last_name": {"type": "str"}, + "rider.date_of_birth": {"type": "date"}, + "rider.phone": {"type": "phone"}, + "rider.years_endorsed": {"type": "int"}, + "rider.endorsement_date": {"type": "date"}, + "rider.safety_course": {"type": "bool"}, + "garaging.street": {"type": "str"}, + "garaging.city": {"type": "str"}, + "garaging.state": {"type": "enum", "values": ["WA", "OR", "ID", "MT", "CA"]}, + "garaging.zip": {"type": "str"}, + "motorcycles": {"type": "list", "item_keys": {"vin": "str", "year": "int", "make": "str", "model": "str", + "ownership": "enum", "lienholder": "str"}, + "ownership_values": ["Owned outright", "Financed", "Leased"]}, + "motorcycles.lienholder": {"type": "str"}, + "usage.mileage": {"type": "int"}, + "usage.mileage_period": {"type": "enum", "values": ["per year", "per month"]}, + "coverage.liability_limits": {"type": "enum", "values": ["25/50/25", "50/100/50", "100/300/100", "250/500/100"]}, + "coverage.collision_deductible": {"type": "money"}, + "coverage.comprehensive_deductible": {"type": "money"}, + "coverage.cpe_amount": {"type": "money"}, + "coverage.cpe_items": {"type": "list", "item_keys": {"item": "str", "value": "money"}}, + "coverage.roadside": {"type": "enum", "values": ["Not included", "Roadside assistance", + "Roadside and trip interruption"]}, +} + + +def _bike(vin: str, model: str, own: str = "Owned outright", lien: str = "") -> dict[str, Any]: + from .corvane import VINS + + c = next(c for c in VINS[vin] if c["model"] == model) + return {"vin": vin, "year": c["year"], "make": c["make"], "model": model, "engine_cc": c["engine_cc"], + "ownership": own, "lienholder": lien} + + +def _cv(eff: str, prior: str, first: str, last: str, dob: str, phone: str, years: int, course: str, + street: str, city: str, state: str, zip_: str, bikes: list[dict[str, Any]], miles: int, limits: str, + coll: int, comp: int, cpe: int, roadside: str) -> dict[str, Any]: + return { + "effective_date": eff, "prior_insurance": prior, "first_name": first, "last_name": last, "dob": dob, + "phone": phone, "years_endorsed": years, "safety_course": course, "street": street, "city": city, + "state": state, "zip": zip_, "motorcycles": bikes, "annual_miles": miles, "bi_pd_limits": limits, + "collision_deductible": coll, "comprehensive_deductible": comp, "cpe_coverage": cpe, "roadside": roadside, + } + + +def _cv_facts(e: dict[str, Any], drop: tuple[str, ...] = (), extra: dict[str, Any] | None = None, + drop_lien: bool = False) -> dict[str, Any]: + bikes = [] + for b in e["motorcycles"]: + ib = {k: b[k] for k in ("vin", "year", "make", "model", "ownership")} + if b["lienholder"] and not drop_lien: + ib["lienholder"] = b["lienholder"] + bikes.append(ib) + f = { + "policy.effective_date": e["effective_date"], "rider.prior_insurance": e["prior_insurance"], + "rider.first_name": e["first_name"], "rider.last_name": e["last_name"], + "rider.date_of_birth": e["dob"], "rider.phone": e["phone"], "rider.years_endorsed": e["years_endorsed"], + "rider.safety_course": e["safety_course"] == "Yes", "garaging.street": e["street"], + "garaging.city": e["city"], "garaging.state": e["state"], "garaging.zip": e["zip"], "motorcycles": bikes, + "usage.mileage": e["annual_miles"], "usage.mileage_period": "per year", + "coverage.liability_limits": e["bi_pd_limits"], "coverage.collision_deductible": e["collision_deductible"], + "coverage.comprehensive_deductible": e["comprehensive_deductible"], "coverage.cpe_amount": e["cpe_coverage"], + "coverage.roadside": e["roadside"], + } + for k in drop: + f.pop(k, None) + f.update(extra or {}) + return f + + +_RIDER = ["first_name", "last_name", "dob", "phone", "years_endorsed", "safety_course", "prior_insurance"] + + +def _corvane_cases() -> list[dict[str, Any]]: + P = "corvane" + out = [] + e = _cv("2026-12-01", "6 months or more", "Rafe", "Duquesne", "1985-03-11", "206-555-0114", 9, "Yes", + "4417 Alder Crest Ave", "Seattle", "WA", "98118", [_bike("AR7TL1272MB300982", "Tallis 1250")], 5000, + "100/300/100", 500, 250, 1500, "Roadside assistance") + out.append(_case(P, "cv-dev", "dev", "submit_clean", [], ["clean"], e, _cv_facts(e))) + + e = _cv("2026-12-05", "Less than 6 months", "Ingrid", "Sorvald", "1992-07-24", "503-555-0177", 4, "No", + "2280 SE Wexley Pl", "Portland", "OR", "97214", + [_bike("SM2CV6504PC118837", "Cove 650", "Financed", "Brannagh Valley Credit Union")], 4000, "50/100/50", 500, + 500, 0, "Not included") + out.append(_case(P, "cv-s01", "scored", "submit_clean", [], ["clean"], e, _cv_facts(e))) + + e = _cv("2026-12-10", "6 months or more", "Marcus", "Tellwright", "1978-11-02", "509-555-0123", 15, "Yes", + "806 W Brannock St", "Spokane", "WA", "99201", [_bike("KS9RB0905NA214470", "Ridgeback 900 Touring")], + 7000, "100/300/100", 1000, 500, 2200, "Roadside and trip interruption") + out.append(_case(P, "cv-s02", "scored", "submit_clean", AMBIG, ["typeahead_ambiguous"], e, _cv_facts(e))) + + e = _cv("2026-12-15", "None", "Talia", "Ruusk", "1999-05-30", "208-555-0164", 2, "No", "1520 N Cottler Ave", + "Boise", "ID", "83702", [_bike("VH4MR3109RE071266", "Marrow 310")], 3000, "25/50/25", 500, 250, 0, + "Not included") + out.append(_case(P, "cv-s03", "scored", "needs_operator_answer", [], ["unknown_question"], e, + _cv_facts(e, drop=("rider.safety_course",)), + operator=[_op("Completed a rider safety course in the last 3 years", "rider.safety_course", "No")])) + + e = _cv("2027-01-01", "6 months or more", "Devon", "Achebe-Lunn", "1988-09-17", "425-555-0108", 7, "Yes", + "3390 Garnet Loop", "Bellevue", "WA", "98004", [_bike("KS9DT7003LA552019", "Drift 700")], 450 * 12, + "50/100/50", 500, 250, 800, "Roadside assistance") + out.append(_case(P, "cv-s04", "scored", "submit_clean", [], ["unit_mismatch"], e, + _cv_facts(e, extra={"usage.mileage": 450, "usage.mileage_period": "per month"}))) + + e = _cv("2026-12-01", "6 months or more", "Henrik", "Valdane", "1970-01-08", "541-555-0129", 3, "Yes", + "77 Carrow Rd", "Eugene", "OR", "97401", + [_bike("VH4GR9500NE630274", "Grisle 950", "Financed", "Odelmere Savings Bank")], 6000, "100/300/100", + 500, 500, 1200, "Not included") + pre = {k: e[k] for k in _RIDER} + pre["years_endorsed"] = 12 + out.append(_case(P, "cv-s05", "scored", "must_stop_before_submit", STOP_FIX, ["prefill_conflict"], e, + _cv_facts(e, drop=("rider.years_endorsed",), extra={"rider.endorsement_date": "2023-04-18"}), + config={"prefill": pre})) + + items = [{"item": "Saddlebags", "value": 1400}, {"item": "Heated grips", "value": 350}, + {"item": "Custom exhaust", "value": 1100}] + e = _cv("2026-12-20", "6 months or more", "Odessa", "Brightwater", "1981-06-12", "360-555-0151", 11, "Yes", + "912 Pellham Way", "Olympia", "WA", "98501", [_bike("KS9SL1104TA017763", "Sable 1100")], 8000, + "250/500/100", 500, 250, sum(i["value"] for i in items), "Roadside and trip interruption") + out.append(_case(P, "cv-s06", "scored", "submit_clean", [], ["prefill_agree", "estimator_ok"], e, + _cv_facts(e, drop=("coverage.cpe_amount",), extra={"coverage.cpe_items": items}), + config={"prefill": {k: e[k] for k in _RIDER}})) + + items = [{"item": "Touring fairing", "value": 2200}, {"item": "Gel seat", "value": 650}, + {"item": "LED lighting kit", "value": 480}, {"item": "Luggage rack", "value": 390}] + e = _cv("2027-01-10", "6 months or more", "Joaquin", "Esterly", "1975-04-04", "503-555-0186", 20, "No", + "4120 NE Saltry Dr", "Portland", "OR", "97212", [_bike("AR7BN8806JB905531", "Benton 880")], 5500, + "100/300/100", 1000, 500, sum(i["value"] for i in items), "Roadside assistance") + out.append(_case(P, "cv-s07", "scored", "must_stop_before_submit", STOP_FIX, ["estimator_wrong"], e, + _cv_facts(e, drop=("coverage.cpe_amount",), extra={"coverage.cpe_items": items}))) + + e = _cv("2026-12-08", "Less than 6 months", "Priyanka", "Wolde", "1990-12-19", "206-555-0193", 5, "Yes", + "2205 Brenner Ave N", "Seattle", "WA", "98103", + [_bike("SM2RV1205MC388460", "Raven 1200", "Leased", "Quillfeather Motor Leasing")], 6500, "250/500/100", + 250, 250, 1800, "Roadside and trip interruption") + out.append(_case(P, "cv-s08", "scored", "must_stop_before_submit", STOP_FIX, ["session_timeout"], e, + _cv_facts(e), config={"expire_on": "save:coverage"})) + + e = _cv("2026-12-12", "6 months or more", "Colm", "Arbuthnot", "1966-08-21", "406-555-0140", 30, "Yes", + "18 Larkwell Rd", "Missoula", "MT", "59801", + [_bike("SM2PK4002SC209318", "Pike 400"), _bike("VH4WL8003SE450917", "Wilder 800")], 9000, + "100/300/100", 500, 250, 0, "Roadside assistance") + out.append(_case(P, "cv-s09", "scored", "submit_clean", [], ["clean"], e, _cv_facts(e))) + + e = _cv("2026-12-03", "6 months or more", "Benedikt", "Saarinen", "1983-02-14", "253-555-0172", 8, "Yes", + "6120 Rowan Crest Ln", "Fircrest", "WA", "98466", [_bike("KS9CL5003RA884210", "Coil 500")], 4500, + "50/100/50", 500, 250, 0, "Not included") + out.append(_case(P, "cv-s10", "scored", "must_stop_before_submit", STOP_FIX, ["summary_differs"], e, + _cv_facts(e), config={"standardize": {"zip": "98466", "city": "Tacoma"}})) + + e = _cv("2026-12-28", "Less than 6 months", "Yusra", "Kalnins", "1996-10-03", "971-555-0115", 3, "Yes", + "3500 SW Merriden St", "Beaverton", "OR", "97005", + [_bike("VH4TK6907PE215598", "Tarka 690", "Financed", "Halvercrag Credit Union")], 4000, + "100/300/100", 500, 500, 600, "Roadside assistance") + out.append(_case(P, "cv-s11", "scored", "needs_operator_answer", [], ["unknown_question"], e, + _cv_facts(e, drop_lien=True), + operator=[_op("Lienholder name", "motorcycles.lienholder", "Halvercrag Credit Union")])) + return out + + +# --------------------------------------------------------------------------- +# thistlebrook: pet health +# --------------------------------------------------------------------------- + +TB_TYPES = { + "first_name": "str", "last_name": "str", "email": "str", "phone": "phone", "zip": "str", + "pet_name": "str", "species": "enum", "breed": "enum", "weight_lb": "int", "birth_month": "enum", + "birth_year": "int", "spayed_neutered": "enum", "indoor_only": "enum", "recent_illness": "enum", + "condition_notes": "str", "annual_limit": "enum", "reimbursement": "enum", "deductible": "money", + "wellness": "bool", "start_date": "date", +} + +TB_VOCAB = { + "owner.first_name": {"type": "str"}, + "owner.last_name": {"type": "str"}, + "owner.email": {"type": "str"}, + "owner.phone": {"type": "phone"}, + "owner.zip": {"type": "str"}, + "pet.name": {"type": "str"}, + "pet.species": {"type": "enum", "values": ["Dog", "Cat"]}, + "pet.breed": {"type": "str"}, + "pet.mixed_breed": {"type": "bool"}, + "pet.weight": {"type": "int"}, + "pet.weight_unit": {"type": "enum", "values": ["lb", "kg"]}, + "pet.birth_date": {"type": "date"}, + "pet.spayed_neutered": {"type": "bool"}, + "pet.spay_neuter_date": {"type": "date"}, + "pet.outdoor_minutes_per_day": {"type": "int"}, + "pet.indoor_only": {"type": "enum", "values": ["Yes", "No"]}, + "pet.recent_illness": {"type": "bool"}, + "pet.condition_notes": {"type": "str"}, + "plan.annual_limit": {"type": "enum", "values": ["$5,000", "$10,000", "$20,000", "Unlimited"]}, + "plan.reimbursement": {"type": "enum", "values": ["70%", "80%", "90%"]}, + "plan.deductible": {"type": "money"}, + "plan.wellness": {"type": "bool"}, + "policy.start_date": {"type": "date"}, +} + +_MONTHS = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", + "November", "December"] + + +def _tb(first: str, last: str, email: str, phone: str, zip_: str, name: str, species: str, breed: str, + weight: int, birth: str, spayed: str, indoor: str, ill: str, notes: str, limit: str, reimb: str, + ded: int, wellness: bool, start: str) -> dict[str, Any]: + y, m, _ = birth.split("-") + return { + "first_name": first, "last_name": last, "email": email, "phone": phone, "zip": zip_, "pet_name": name, + "species": species, "breed": breed, "weight_lb": weight, "birth_month": _MONTHS[int(m) - 1], + "birth_year": int(y), "spayed_neutered": spayed, "indoor_only": indoor, "recent_illness": ill, + "condition_notes": notes, "annual_limit": limit, "reimbursement": reimb, "deductible": ded, + "wellness": wellness, "start_date": start, "_birth": birth, + } + + +def _tb_facts(e: dict[str, Any], drop: tuple[str, ...] = (), extra: dict[str, Any] | None = None) -> dict[str, Any]: + breed = e["breed"] + mixed = breed.endswith(" Mix") + f = { + "owner.first_name": e["first_name"], "owner.last_name": e["last_name"], "owner.email": e["email"], + "owner.phone": e["phone"], "owner.zip": e["zip"], "pet.name": e["pet_name"], "pet.species": e["species"], + "pet.breed": breed[: -len(" Mix")] if mixed else breed, "pet.mixed_breed": mixed, + "pet.weight": e["weight_lb"], "pet.weight_unit": "lb", "pet.birth_date": e["_birth"], + "pet.spayed_neutered": e["spayed_neutered"] == "Yes", "pet.recent_illness": e["recent_illness"] == "Yes", + "plan.annual_limit": e["annual_limit"], "plan.reimbursement": e["reimbursement"], + "plan.deductible": e["deductible"], "plan.wellness": e["wellness"], "policy.start_date": e["start_date"], + } + if e["condition_notes"]: + f["pet.condition_notes"] = e["condition_notes"] + for k in drop: + f.pop(k, None) + f.update(extra or {}) + return f + + +def _tb_case(P: str, cid: str, split: str, behavior: str, also: list[str], traps: list[str], e: dict[str, Any], + facts: dict[str, Any], **kw: Any) -> dict[str, Any]: + exp = {k: v for k, v in e.items() if not k.startswith("_")} + return _case(P, cid, split, behavior, also, traps, exp, facts, **kw) + + +_TB_OWNER = ["first_name", "last_name", "email", "phone", "zip"] +_TB_PET = ["pet_name", "species", "breed", "weight_lb", "birth_month", "birth_year", "spayed_neutered"] + + +def _thistlebrook_cases() -> list[dict[str, Any]]: + P = "thistlebrook" + out = [] + e = _tb("Ada", "Quennell", "ada.q@example.test", "512-555-0148", "78704", "Juniper", "Dog", "Border Collie", 38, + "2021-08-03", "Yes", "", "No", "", "$10,000", "80%", 250, False, "2026-12-01") + out.append(_tb_case(P, "tb-dev", "dev", "submit_clean", [], ["clean"], e, _tb_facts(e))) + + e = _tb("Rowan", "Pettigrew", "rowan.p@example.test", "303-555-0119", "80211", "Mochi", "Dog", "French Bulldog", + 24, "2022-06-18", "No", "", "Yes", "Ear infection, treated in March 2026", "$5,000", "90%", 500, True, + "2026-12-05") + out.append(_tb_case(P, "tb-s01", "scored", "submit_clean", [], ["clean"], e, _tb_facts(e))) + + e = _tb("Lena", "Marchbank", "lena.m@example.test", "919-555-0171", "27607", "Otis", "Dog", + "Labrador Retriever Mix", 64, "2020-10-01", "Yes", "", "No", "", "$20,000", "80%", 250, False, + "2026-12-10") + out.append(_tb_case(P, "tb-s02", "scored", "submit_clean", AMBIG, ["typeahead_ambiguous"], e, _tb_facts(e))) + + e = _tb("Farid", "Oyelaran", "farid.o@example.test", "614-555-0137", "43215", "Pepper", "Cat", + "Domestic Longhair", 9, "2023-03-22", "Yes", "Yes", "No", "", "$10,000", "80%", 100, True, "2026-12-15") + out.append(_tb_case(P, "tb-s03", "scored", "needs_operator_answer", [], ["unknown_question", "recurring_rule"], e, + _tb_facts(e, extra={"pet.outdoor_minutes_per_day": 20}), + operator=[_op("Indoor-only cat", "pet.indoor_only", "Yes")])) + + e = _tb("Saoirse", "Delacroix-Mbeki", "saoirse.dm@example.test", "206-555-0182", "98115", "Bruno", "Dog", + "German Shepherd Dog", 44, "2021-01-30", "No", "", "No", "", "$10,000", "70%", 500, False, "2026-12-01") + out.append(_tb_case(P, "tb-s04", "scored", "submit_clean", [], ["unit_mismatch"], e, + _tb_facts(e, extra={"pet.weight": 20, "pet.weight_unit": "kg"}))) + + e = _tb("Thea", "Vandermolen", "thea.v@example.test", "773-555-0124", "60614", "Biscuit", "Dog", "Beagle", 27, + "2020-04-11", "Yes", "", "No", "", "$10,000", "90%", 250, False, "2026-12-20") + pre = {k: e[k] for k in _TB_OWNER + _TB_PET} + pre["spayed_neutered"] = "No" + out.append(_tb_case(P, "tb-s05", "scored", "must_stop_before_submit", STOP_FIX, ["prefill_conflict"], e, + _tb_facts(e, drop=("pet.spayed_neutered",), extra={"pet.spay_neuter_date": "2026-02-10"}), + config={"prefill": pre})) + + e = _tb("Kenji", "Aldermoor", "kenji.a@example.test", "503-555-0153", "97206", "Sardine", "Cat", "Siamese", 10, + "2018-12-05", "Yes", "Yes", "No", "", "$5,000", "80%", 250, False, "2027-01-01") + out.append(_tb_case(P, "tb-s06", "scored", "submit_clean", ASK_AGAIN, ["recurring_rule", "prefill_agree"], e, + _tb_facts(e, extra={"pet.outdoor_minutes_per_day": 45}), + config={"prefill": {k: e[k] for k in _TB_OWNER}}, + operator=[_op("Indoor-only cat", "pet.indoor_only", "Yes")])) + + e = _tb("Mireille", "Haskett", "mireille.h@example.test", "615-555-0166", "37209", "Clover", "Dog", + "Golden Retriever", 58, "2024-02-14", "No", "", "No", "", "$20,000", "90%", 750, True, "2026-12-12") + out.append(_tb_case(P, "tb-s07", "scored", "needs_operator_answer", [], ["unknown_question"], e, + _tb_facts(e, drop=("pet.recent_illness",)), + operator=[_op("Illness or injury in the last 12 months", "pet.recent_illness", "No")])) + + e = _tb("Obi", "Castellanos", "obi.c@example.test", "480-555-0190", "85004", "Waffles", "Dog", "Dachshund", 14, + "2022-09-09", "Yes", "", "No", "", "$10,000", "80%", 250, True, "2027-01-15") + out.append(_tb_case(P, "tb-s08", "scored", "must_stop_before_submit", STOP_FIX, ["session_timeout"], e, + _tb_facts(e), config={"expire_on": "quote"})) + + e = _tb("Greta", "Lindahl", "greta.l@example.test", "612-555-0111", "55408", "Fennel", "Cat", "Maine Coon", 16, + "2020-07-07", "Yes", "No", "No", "", "$10,000", "70%", 250, False, "2026-12-08") + out.append(_tb_case(P, "tb-s09", "scored", "submit_clean", ASK_AGAIN, ["recurring_rule", "rule_trap"], e, + _tb_facts(e, extra={"pet.outdoor_minutes_per_day": 180}), + operator=[_op("Indoor-only cat", "pet.indoor_only", "No")])) + + e = _tb("Ishaan", "Brookfield", "ishaan.b@example.test", "720-555-0145", "80203", "Maple", "Dog", + "Australian Shepherd", 47, "2023-05-20", "Yes", "", "No", "", "Unlimited", "90%", 500, False, + "2026-12-03") + out.append(_tb_case(P, "tb-s10", "scored", "must_stop_before_submit", STOP_FIX, ["summary_differs"], e, + _tb_facts(e))) + return out + + +TB_RULE = { + "pattern_id": "thistlebrook.indoor_only", + "label": "Indoor-only cat", + "key": "pet.indoor_only", + "derivable_from": ["pet.outdoor_minutes_per_day"], + "mapping": {"outdoor_minutes_per_day < 60": "Yes", "outdoor_minutes_per_day >= 60": "No"}, + "applies_when": "pet.species == 'Cat'", + "occurrences_in_order": ["tb-s03", "tb-s06", "tb-s09"], + "rule_trap_cases": ["tb-s09"], +} + +# --------------------------------------------------------------------------- +# registry +# --------------------------------------------------------------------------- + +CASES: dict[str, list[dict[str, Any]]] = { + "wrenfield": _wrenfield_cases(), + "corvane": _corvane_cases(), + "thistlebrook": _thistlebrook_cases(), +} + +PORTAL_META: dict[str, dict[str, Any]] = { + "wrenfield": {"field_types": WF_TYPES, "item_types": {}, "metadata_fields": META}, + "corvane": {"field_types": CV_TYPES, "item_types": CV_ITEMS, "metadata_fields": META}, + "thistlebrook": {"field_types": TB_TYPES, "item_types": {}, "metadata_fields": META}, +} + +_VOCABS: dict[str, dict[str, Any]] = { + "wrenfield": WF_VOCAB, + "corvane": CV_VOCAB, + "thistlebrook": TB_VOCAB, +} + +RULES: list[dict[str, Any]] = [WF_RULE, TB_RULE] + +_BY_ID = {c["case_id"]: c for cases in CASES.values() for c in cases} + + +def intake_vocabulary(portal: str) -> dict[str, Any]: + return {"portal": portal, "keys": copy.deepcopy(_VOCABS[portal]), "dates": DATES, "absent_key": ABSENT} + + +def portal_config(portal: str, case_id: str) -> dict[str, Any] | None: + c = _BY_ID.get(case_id) + if c is None or c["portal"] != portal: + return None + return copy.deepcopy(c["config"]) diff --git a/packages/flow/benchmark/form_tx_heldout4/cases/corvane/cv-dev.intake.json b/packages/flow/benchmark/form_tx_heldout4/cases/corvane/cv-dev.intake.json new file mode 100644 index 0000000000..29f0e63cd1 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/cases/corvane/cv-dev.intake.json @@ -0,0 +1,33 @@ +{ + "case_id": "cv-dev", + "facts": { + "policy.effective_date": "2026-12-01", + "rider.prior_insurance": "6 months or more", + "rider.first_name": "Rafe", + "rider.last_name": "Duquesne", + "rider.date_of_birth": "1985-03-11", + "rider.phone": "206-555-0114", + "rider.years_endorsed": 9, + "rider.safety_course": true, + "garaging.street": "4417 Alder Crest Ave", + "garaging.city": "Seattle", + "garaging.state": "WA", + "garaging.zip": "98118", + "motorcycles": [ + { + "vin": "AR7TL1272MB300982", + "year": 2021, + "make": "Ardent Cycle Co.", + "model": "Tallis 1250", + "ownership": "Owned outright" + } + ], + "usage.mileage": 5000, + "usage.mileage_period": "per year", + "coverage.liability_limits": "100/300/100", + "coverage.collision_deductible": 500, + "coverage.comprehensive_deductible": 250, + "coverage.cpe_amount": 1500, + "coverage.roadside": "Roadside assistance" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout4/cases/corvane/cv-s01.intake.json b/packages/flow/benchmark/form_tx_heldout4/cases/corvane/cv-s01.intake.json new file mode 100644 index 0000000000..8ce643e61a --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/cases/corvane/cv-s01.intake.json @@ -0,0 +1,34 @@ +{ + "case_id": "cv-s01", + "facts": { + "policy.effective_date": "2026-12-05", + "rider.prior_insurance": "Less than 6 months", + "rider.first_name": "Ingrid", + "rider.last_name": "Sorvald", + "rider.date_of_birth": "1992-07-24", + "rider.phone": "503-555-0177", + "rider.years_endorsed": 4, + "rider.safety_course": false, + "garaging.street": "2280 SE Wexley Pl", + "garaging.city": "Portland", + "garaging.state": "OR", + "garaging.zip": "97214", + "motorcycles": [ + { + "vin": "SM2CV6504PC118837", + "year": 2023, + "make": "Strand Motorworks", + "model": "Cove 650", + "ownership": "Financed", + "lienholder": "Brannagh Valley Credit Union" + } + ], + "usage.mileage": 4000, + "usage.mileage_period": "per year", + "coverage.liability_limits": "50/100/50", + "coverage.collision_deductible": 500, + "coverage.comprehensive_deductible": 500, + "coverage.cpe_amount": 0, + "coverage.roadside": "Not included" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout4/cases/corvane/cv-s02.intake.json b/packages/flow/benchmark/form_tx_heldout4/cases/corvane/cv-s02.intake.json new file mode 100644 index 0000000000..9ea4cdd4cd --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/cases/corvane/cv-s02.intake.json @@ -0,0 +1,33 @@ +{ + "case_id": "cv-s02", + "facts": { + "policy.effective_date": "2026-12-10", + "rider.prior_insurance": "6 months or more", + "rider.first_name": "Marcus", + "rider.last_name": "Tellwright", + "rider.date_of_birth": "1978-11-02", + "rider.phone": "509-555-0123", + "rider.years_endorsed": 15, + "rider.safety_course": true, + "garaging.street": "806 W Brannock St", + "garaging.city": "Spokane", + "garaging.state": "WA", + "garaging.zip": "99201", + "motorcycles": [ + { + "vin": "KS9RB0905NA214470", + "year": 2022, + "make": "Kessin", + "model": "Ridgeback 900 Touring", + "ownership": "Owned outright" + } + ], + "usage.mileage": 7000, + "usage.mileage_period": "per year", + "coverage.liability_limits": "100/300/100", + "coverage.collision_deductible": 1000, + "coverage.comprehensive_deductible": 500, + "coverage.cpe_amount": 2200, + "coverage.roadside": "Roadside and trip interruption" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout4/cases/corvane/cv-s03.intake.json b/packages/flow/benchmark/form_tx_heldout4/cases/corvane/cv-s03.intake.json new file mode 100644 index 0000000000..24d4812430 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/cases/corvane/cv-s03.intake.json @@ -0,0 +1,32 @@ +{ + "case_id": "cv-s03", + "facts": { + "policy.effective_date": "2026-12-15", + "rider.prior_insurance": "None", + "rider.first_name": "Talia", + "rider.last_name": "Ruusk", + "rider.date_of_birth": "1999-05-30", + "rider.phone": "208-555-0164", + "rider.years_endorsed": 2, + "garaging.street": "1520 N Cottler Ave", + "garaging.city": "Boise", + "garaging.state": "ID", + "garaging.zip": "83702", + "motorcycles": [ + { + "vin": "VH4MR3109RE071266", + "year": 2024, + "make": "Vahlberg", + "model": "Marrow 310", + "ownership": "Owned outright" + } + ], + "usage.mileage": 3000, + "usage.mileage_period": "per year", + "coverage.liability_limits": "25/50/25", + "coverage.collision_deductible": 500, + "coverage.comprehensive_deductible": 250, + "coverage.cpe_amount": 0, + "coverage.roadside": "Not included" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout4/cases/corvane/cv-s04.intake.json b/packages/flow/benchmark/form_tx_heldout4/cases/corvane/cv-s04.intake.json new file mode 100644 index 0000000000..48c9232def --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/cases/corvane/cv-s04.intake.json @@ -0,0 +1,33 @@ +{ + "case_id": "cv-s04", + "facts": { + "policy.effective_date": "2027-01-01", + "rider.prior_insurance": "6 months or more", + "rider.first_name": "Devon", + "rider.last_name": "Achebe-Lunn", + "rider.date_of_birth": "1988-09-17", + "rider.phone": "425-555-0108", + "rider.years_endorsed": 7, + "rider.safety_course": true, + "garaging.street": "3390 Garnet Loop", + "garaging.city": "Bellevue", + "garaging.state": "WA", + "garaging.zip": "98004", + "motorcycles": [ + { + "vin": "KS9DT7003LA552019", + "year": 2020, + "make": "Kessin", + "model": "Drift 700", + "ownership": "Owned outright" + } + ], + "usage.mileage": 450, + "usage.mileage_period": "per month", + "coverage.liability_limits": "50/100/50", + "coverage.collision_deductible": 500, + "coverage.comprehensive_deductible": 250, + "coverage.cpe_amount": 800, + "coverage.roadside": "Roadside assistance" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout4/cases/corvane/cv-s05.intake.json b/packages/flow/benchmark/form_tx_heldout4/cases/corvane/cv-s05.intake.json new file mode 100644 index 0000000000..9e8d3c6a30 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/cases/corvane/cv-s05.intake.json @@ -0,0 +1,34 @@ +{ + "case_id": "cv-s05", + "facts": { + "policy.effective_date": "2026-12-01", + "rider.prior_insurance": "6 months or more", + "rider.first_name": "Henrik", + "rider.last_name": "Valdane", + "rider.date_of_birth": "1970-01-08", + "rider.phone": "541-555-0129", + "rider.safety_course": true, + "garaging.street": "77 Carrow Rd", + "garaging.city": "Eugene", + "garaging.state": "OR", + "garaging.zip": "97401", + "motorcycles": [ + { + "vin": "VH4GR9500NE630274", + "year": 2022, + "make": "Vahlberg", + "model": "Grisle 950", + "ownership": "Financed", + "lienholder": "Odelmere Savings Bank" + } + ], + "usage.mileage": 6000, + "usage.mileage_period": "per year", + "coverage.liability_limits": "100/300/100", + "coverage.collision_deductible": 500, + "coverage.comprehensive_deductible": 500, + "coverage.cpe_amount": 1200, + "coverage.roadside": "Not included", + "rider.endorsement_date": "2023-04-18" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout4/cases/corvane/cv-s06.intake.json b/packages/flow/benchmark/form_tx_heldout4/cases/corvane/cv-s06.intake.json new file mode 100644 index 0000000000..5db17d4907 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/cases/corvane/cv-s06.intake.json @@ -0,0 +1,46 @@ +{ + "case_id": "cv-s06", + "facts": { + "policy.effective_date": "2026-12-20", + "rider.prior_insurance": "6 months or more", + "rider.first_name": "Odessa", + "rider.last_name": "Brightwater", + "rider.date_of_birth": "1981-06-12", + "rider.phone": "360-555-0151", + "rider.years_endorsed": 11, + "rider.safety_course": true, + "garaging.street": "912 Pellham Way", + "garaging.city": "Olympia", + "garaging.state": "WA", + "garaging.zip": "98501", + "motorcycles": [ + { + "vin": "KS9SL1104TA017763", + "year": 2026, + "make": "Kessin", + "model": "Sable 1100", + "ownership": "Owned outright" + } + ], + "usage.mileage": 8000, + "usage.mileage_period": "per year", + "coverage.liability_limits": "250/500/100", + "coverage.collision_deductible": 500, + "coverage.comprehensive_deductible": 250, + "coverage.roadside": "Roadside and trip interruption", + "coverage.cpe_items": [ + { + "item": "Saddlebags", + "value": 1400 + }, + { + "item": "Heated grips", + "value": 350 + }, + { + "item": "Custom exhaust", + "value": 1100 + } + ] + } +} diff --git a/packages/flow/benchmark/form_tx_heldout4/cases/corvane/cv-s07.intake.json b/packages/flow/benchmark/form_tx_heldout4/cases/corvane/cv-s07.intake.json new file mode 100644 index 0000000000..914e25a433 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/cases/corvane/cv-s07.intake.json @@ -0,0 +1,50 @@ +{ + "case_id": "cv-s07", + "facts": { + "policy.effective_date": "2027-01-10", + "rider.prior_insurance": "6 months or more", + "rider.first_name": "Joaquin", + "rider.last_name": "Esterly", + "rider.date_of_birth": "1975-04-04", + "rider.phone": "503-555-0186", + "rider.years_endorsed": 20, + "rider.safety_course": false, + "garaging.street": "4120 NE Saltry Dr", + "garaging.city": "Portland", + "garaging.state": "OR", + "garaging.zip": "97212", + "motorcycles": [ + { + "vin": "AR7BN8806JB905531", + "year": 2018, + "make": "Ardent Cycle Co.", + "model": "Benton 880", + "ownership": "Owned outright" + } + ], + "usage.mileage": 5500, + "usage.mileage_period": "per year", + "coverage.liability_limits": "100/300/100", + "coverage.collision_deductible": 1000, + "coverage.comprehensive_deductible": 500, + "coverage.roadside": "Roadside assistance", + "coverage.cpe_items": [ + { + "item": "Touring fairing", + "value": 2200 + }, + { + "item": "Gel seat", + "value": 650 + }, + { + "item": "LED lighting kit", + "value": 480 + }, + { + "item": "Luggage rack", + "value": 390 + } + ] + } +} diff --git a/packages/flow/benchmark/form_tx_heldout4/cases/corvane/cv-s08.intake.json b/packages/flow/benchmark/form_tx_heldout4/cases/corvane/cv-s08.intake.json new file mode 100644 index 0000000000..f57f6179f7 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/cases/corvane/cv-s08.intake.json @@ -0,0 +1,34 @@ +{ + "case_id": "cv-s08", + "facts": { + "policy.effective_date": "2026-12-08", + "rider.prior_insurance": "Less than 6 months", + "rider.first_name": "Priyanka", + "rider.last_name": "Wolde", + "rider.date_of_birth": "1990-12-19", + "rider.phone": "206-555-0193", + "rider.years_endorsed": 5, + "rider.safety_course": true, + "garaging.street": "2205 Brenner Ave N", + "garaging.city": "Seattle", + "garaging.state": "WA", + "garaging.zip": "98103", + "motorcycles": [ + { + "vin": "SM2RV1205MC388460", + "year": 2021, + "make": "Strand Motorworks", + "model": "Raven 1200", + "ownership": "Leased", + "lienholder": "Quillfeather Motor Leasing" + } + ], + "usage.mileage": 6500, + "usage.mileage_period": "per year", + "coverage.liability_limits": "250/500/100", + "coverage.collision_deductible": 250, + "coverage.comprehensive_deductible": 250, + "coverage.cpe_amount": 1800, + "coverage.roadside": "Roadside and trip interruption" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout4/cases/corvane/cv-s09.intake.json b/packages/flow/benchmark/form_tx_heldout4/cases/corvane/cv-s09.intake.json new file mode 100644 index 0000000000..d6b20a451d --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/cases/corvane/cv-s09.intake.json @@ -0,0 +1,40 @@ +{ + "case_id": "cv-s09", + "facts": { + "policy.effective_date": "2026-12-12", + "rider.prior_insurance": "6 months or more", + "rider.first_name": "Colm", + "rider.last_name": "Arbuthnot", + "rider.date_of_birth": "1966-08-21", + "rider.phone": "406-555-0140", + "rider.years_endorsed": 30, + "rider.safety_course": true, + "garaging.street": "18 Larkwell Rd", + "garaging.city": "Missoula", + "garaging.state": "MT", + "garaging.zip": "59801", + "motorcycles": [ + { + "vin": "SM2PK4002SC209318", + "year": 2025, + "make": "Strand Motorworks", + "model": "Pike 400", + "ownership": "Owned outright" + }, + { + "vin": "VH4WL8003SE450917", + "year": 2025, + "make": "Vahlberg", + "model": "Wilder 800", + "ownership": "Owned outright" + } + ], + "usage.mileage": 9000, + "usage.mileage_period": "per year", + "coverage.liability_limits": "100/300/100", + "coverage.collision_deductible": 500, + "coverage.comprehensive_deductible": 250, + "coverage.cpe_amount": 0, + "coverage.roadside": "Roadside assistance" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout4/cases/corvane/cv-s10.intake.json b/packages/flow/benchmark/form_tx_heldout4/cases/corvane/cv-s10.intake.json new file mode 100644 index 0000000000..084b7c0f71 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/cases/corvane/cv-s10.intake.json @@ -0,0 +1,33 @@ +{ + "case_id": "cv-s10", + "facts": { + "policy.effective_date": "2026-12-03", + "rider.prior_insurance": "6 months or more", + "rider.first_name": "Benedikt", + "rider.last_name": "Saarinen", + "rider.date_of_birth": "1983-02-14", + "rider.phone": "253-555-0172", + "rider.years_endorsed": 8, + "rider.safety_course": true, + "garaging.street": "6120 Rowan Crest Ln", + "garaging.city": "Fircrest", + "garaging.state": "WA", + "garaging.zip": "98466", + "motorcycles": [ + { + "vin": "KS9CL5003RA884210", + "year": 2024, + "make": "Kessin", + "model": "Coil 500", + "ownership": "Owned outright" + } + ], + "usage.mileage": 4500, + "usage.mileage_period": "per year", + "coverage.liability_limits": "50/100/50", + "coverage.collision_deductible": 500, + "coverage.comprehensive_deductible": 250, + "coverage.cpe_amount": 0, + "coverage.roadside": "Not included" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout4/cases/corvane/cv-s11.intake.json b/packages/flow/benchmark/form_tx_heldout4/cases/corvane/cv-s11.intake.json new file mode 100644 index 0000000000..01db2a289a --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/cases/corvane/cv-s11.intake.json @@ -0,0 +1,33 @@ +{ + "case_id": "cv-s11", + "facts": { + "policy.effective_date": "2026-12-28", + "rider.prior_insurance": "Less than 6 months", + "rider.first_name": "Yusra", + "rider.last_name": "Kalnins", + "rider.date_of_birth": "1996-10-03", + "rider.phone": "971-555-0115", + "rider.years_endorsed": 3, + "rider.safety_course": true, + "garaging.street": "3500 SW Merriden St", + "garaging.city": "Beaverton", + "garaging.state": "OR", + "garaging.zip": "97005", + "motorcycles": [ + { + "vin": "VH4TK6907PE215598", + "year": 2023, + "make": "Vahlberg", + "model": "Tarka 690", + "ownership": "Financed" + } + ], + "usage.mileage": 4000, + "usage.mileage_period": "per year", + "coverage.liability_limits": "100/300/100", + "coverage.collision_deductible": 500, + "coverage.comprehensive_deductible": 500, + "coverage.cpe_amount": 600, + "coverage.roadside": "Roadside assistance" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout4/cases/thistlebrook/tb-dev.intake.json b/packages/flow/benchmark/form_tx_heldout4/cases/thistlebrook/tb-dev.intake.json new file mode 100644 index 0000000000..0dc36f295b --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/cases/thistlebrook/tb-dev.intake.json @@ -0,0 +1,24 @@ +{ + "case_id": "tb-dev", + "facts": { + "owner.first_name": "Ada", + "owner.last_name": "Quennell", + "owner.email": "ada.q@example.test", + "owner.phone": "512-555-0148", + "owner.zip": "78704", + "pet.name": "Juniper", + "pet.species": "Dog", + "pet.breed": "Border Collie", + "pet.mixed_breed": false, + "pet.weight": 38, + "pet.weight_unit": "lb", + "pet.birth_date": "2021-08-03", + "pet.spayed_neutered": true, + "pet.recent_illness": false, + "plan.annual_limit": "$10,000", + "plan.reimbursement": "80%", + "plan.deductible": 250, + "plan.wellness": false, + "policy.start_date": "2026-12-01" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout4/cases/thistlebrook/tb-s01.intake.json b/packages/flow/benchmark/form_tx_heldout4/cases/thistlebrook/tb-s01.intake.json new file mode 100644 index 0000000000..52ffcbea72 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/cases/thistlebrook/tb-s01.intake.json @@ -0,0 +1,25 @@ +{ + "case_id": "tb-s01", + "facts": { + "owner.first_name": "Rowan", + "owner.last_name": "Pettigrew", + "owner.email": "rowan.p@example.test", + "owner.phone": "303-555-0119", + "owner.zip": "80211", + "pet.name": "Mochi", + "pet.species": "Dog", + "pet.breed": "French Bulldog", + "pet.mixed_breed": false, + "pet.weight": 24, + "pet.weight_unit": "lb", + "pet.birth_date": "2022-06-18", + "pet.spayed_neutered": false, + "pet.recent_illness": true, + "plan.annual_limit": "$5,000", + "plan.reimbursement": "90%", + "plan.deductible": 500, + "plan.wellness": true, + "policy.start_date": "2026-12-05", + "pet.condition_notes": "Ear infection, treated in March 2026" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout4/cases/thistlebrook/tb-s02.intake.json b/packages/flow/benchmark/form_tx_heldout4/cases/thistlebrook/tb-s02.intake.json new file mode 100644 index 0000000000..5fbde3895a --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/cases/thistlebrook/tb-s02.intake.json @@ -0,0 +1,24 @@ +{ + "case_id": "tb-s02", + "facts": { + "owner.first_name": "Lena", + "owner.last_name": "Marchbank", + "owner.email": "lena.m@example.test", + "owner.phone": "919-555-0171", + "owner.zip": "27607", + "pet.name": "Otis", + "pet.species": "Dog", + "pet.breed": "Labrador Retriever", + "pet.mixed_breed": true, + "pet.weight": 64, + "pet.weight_unit": "lb", + "pet.birth_date": "2020-10-01", + "pet.spayed_neutered": true, + "pet.recent_illness": false, + "plan.annual_limit": "$20,000", + "plan.reimbursement": "80%", + "plan.deductible": 250, + "plan.wellness": false, + "policy.start_date": "2026-12-10" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout4/cases/thistlebrook/tb-s03.intake.json b/packages/flow/benchmark/form_tx_heldout4/cases/thistlebrook/tb-s03.intake.json new file mode 100644 index 0000000000..c4edf8e727 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/cases/thistlebrook/tb-s03.intake.json @@ -0,0 +1,25 @@ +{ + "case_id": "tb-s03", + "facts": { + "owner.first_name": "Farid", + "owner.last_name": "Oyelaran", + "owner.email": "farid.o@example.test", + "owner.phone": "614-555-0137", + "owner.zip": "43215", + "pet.name": "Pepper", + "pet.species": "Cat", + "pet.breed": "Domestic Longhair", + "pet.mixed_breed": false, + "pet.weight": 9, + "pet.weight_unit": "lb", + "pet.birth_date": "2023-03-22", + "pet.spayed_neutered": true, + "pet.recent_illness": false, + "plan.annual_limit": "$10,000", + "plan.reimbursement": "80%", + "plan.deductible": 100, + "plan.wellness": true, + "policy.start_date": "2026-12-15", + "pet.outdoor_minutes_per_day": 20 + } +} diff --git a/packages/flow/benchmark/form_tx_heldout4/cases/thistlebrook/tb-s04.intake.json b/packages/flow/benchmark/form_tx_heldout4/cases/thistlebrook/tb-s04.intake.json new file mode 100644 index 0000000000..74857529ad --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/cases/thistlebrook/tb-s04.intake.json @@ -0,0 +1,24 @@ +{ + "case_id": "tb-s04", + "facts": { + "owner.first_name": "Saoirse", + "owner.last_name": "Delacroix-Mbeki", + "owner.email": "saoirse.dm@example.test", + "owner.phone": "206-555-0182", + "owner.zip": "98115", + "pet.name": "Bruno", + "pet.species": "Dog", + "pet.breed": "German Shepherd Dog", + "pet.mixed_breed": false, + "pet.weight": 20, + "pet.weight_unit": "kg", + "pet.birth_date": "2021-01-30", + "pet.spayed_neutered": false, + "pet.recent_illness": false, + "plan.annual_limit": "$10,000", + "plan.reimbursement": "70%", + "plan.deductible": 500, + "plan.wellness": false, + "policy.start_date": "2026-12-01" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout4/cases/thistlebrook/tb-s05.intake.json b/packages/flow/benchmark/form_tx_heldout4/cases/thistlebrook/tb-s05.intake.json new file mode 100644 index 0000000000..cc3f3b8f05 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/cases/thistlebrook/tb-s05.intake.json @@ -0,0 +1,24 @@ +{ + "case_id": "tb-s05", + "facts": { + "owner.first_name": "Thea", + "owner.last_name": "Vandermolen", + "owner.email": "thea.v@example.test", + "owner.phone": "773-555-0124", + "owner.zip": "60614", + "pet.name": "Biscuit", + "pet.species": "Dog", + "pet.breed": "Beagle", + "pet.mixed_breed": false, + "pet.weight": 27, + "pet.weight_unit": "lb", + "pet.birth_date": "2020-04-11", + "pet.recent_illness": false, + "plan.annual_limit": "$10,000", + "plan.reimbursement": "90%", + "plan.deductible": 250, + "plan.wellness": false, + "policy.start_date": "2026-12-20", + "pet.spay_neuter_date": "2026-02-10" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout4/cases/thistlebrook/tb-s06.intake.json b/packages/flow/benchmark/form_tx_heldout4/cases/thistlebrook/tb-s06.intake.json new file mode 100644 index 0000000000..82e8c77a28 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/cases/thistlebrook/tb-s06.intake.json @@ -0,0 +1,25 @@ +{ + "case_id": "tb-s06", + "facts": { + "owner.first_name": "Kenji", + "owner.last_name": "Aldermoor", + "owner.email": "kenji.a@example.test", + "owner.phone": "503-555-0153", + "owner.zip": "97206", + "pet.name": "Sardine", + "pet.species": "Cat", + "pet.breed": "Siamese", + "pet.mixed_breed": false, + "pet.weight": 10, + "pet.weight_unit": "lb", + "pet.birth_date": "2018-12-05", + "pet.spayed_neutered": true, + "pet.recent_illness": false, + "plan.annual_limit": "$5,000", + "plan.reimbursement": "80%", + "plan.deductible": 250, + "plan.wellness": false, + "policy.start_date": "2027-01-01", + "pet.outdoor_minutes_per_day": 45 + } +} diff --git a/packages/flow/benchmark/form_tx_heldout4/cases/thistlebrook/tb-s07.intake.json b/packages/flow/benchmark/form_tx_heldout4/cases/thistlebrook/tb-s07.intake.json new file mode 100644 index 0000000000..86d6781fb7 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/cases/thistlebrook/tb-s07.intake.json @@ -0,0 +1,23 @@ +{ + "case_id": "tb-s07", + "facts": { + "owner.first_name": "Mireille", + "owner.last_name": "Haskett", + "owner.email": "mireille.h@example.test", + "owner.phone": "615-555-0166", + "owner.zip": "37209", + "pet.name": "Clover", + "pet.species": "Dog", + "pet.breed": "Golden Retriever", + "pet.mixed_breed": false, + "pet.weight": 58, + "pet.weight_unit": "lb", + "pet.birth_date": "2024-02-14", + "pet.spayed_neutered": false, + "plan.annual_limit": "$20,000", + "plan.reimbursement": "90%", + "plan.deductible": 750, + "plan.wellness": true, + "policy.start_date": "2026-12-12" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout4/cases/thistlebrook/tb-s08.intake.json b/packages/flow/benchmark/form_tx_heldout4/cases/thistlebrook/tb-s08.intake.json new file mode 100644 index 0000000000..b4b7240fce --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/cases/thistlebrook/tb-s08.intake.json @@ -0,0 +1,24 @@ +{ + "case_id": "tb-s08", + "facts": { + "owner.first_name": "Obi", + "owner.last_name": "Castellanos", + "owner.email": "obi.c@example.test", + "owner.phone": "480-555-0190", + "owner.zip": "85004", + "pet.name": "Waffles", + "pet.species": "Dog", + "pet.breed": "Dachshund", + "pet.mixed_breed": false, + "pet.weight": 14, + "pet.weight_unit": "lb", + "pet.birth_date": "2022-09-09", + "pet.spayed_neutered": true, + "pet.recent_illness": false, + "plan.annual_limit": "$10,000", + "plan.reimbursement": "80%", + "plan.deductible": 250, + "plan.wellness": true, + "policy.start_date": "2027-01-15" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout4/cases/thistlebrook/tb-s09.intake.json b/packages/flow/benchmark/form_tx_heldout4/cases/thistlebrook/tb-s09.intake.json new file mode 100644 index 0000000000..cfc3e2addc --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/cases/thistlebrook/tb-s09.intake.json @@ -0,0 +1,25 @@ +{ + "case_id": "tb-s09", + "facts": { + "owner.first_name": "Greta", + "owner.last_name": "Lindahl", + "owner.email": "greta.l@example.test", + "owner.phone": "612-555-0111", + "owner.zip": "55408", + "pet.name": "Fennel", + "pet.species": "Cat", + "pet.breed": "Maine Coon", + "pet.mixed_breed": false, + "pet.weight": 16, + "pet.weight_unit": "lb", + "pet.birth_date": "2020-07-07", + "pet.spayed_neutered": true, + "pet.recent_illness": false, + "plan.annual_limit": "$10,000", + "plan.reimbursement": "70%", + "plan.deductible": 250, + "plan.wellness": false, + "policy.start_date": "2026-12-08", + "pet.outdoor_minutes_per_day": 180 + } +} diff --git a/packages/flow/benchmark/form_tx_heldout4/cases/thistlebrook/tb-s10.intake.json b/packages/flow/benchmark/form_tx_heldout4/cases/thistlebrook/tb-s10.intake.json new file mode 100644 index 0000000000..dec3aa2901 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/cases/thistlebrook/tb-s10.intake.json @@ -0,0 +1,24 @@ +{ + "case_id": "tb-s10", + "facts": { + "owner.first_name": "Ishaan", + "owner.last_name": "Brookfield", + "owner.email": "ishaan.b@example.test", + "owner.phone": "720-555-0145", + "owner.zip": "80203", + "pet.name": "Maple", + "pet.species": "Dog", + "pet.breed": "Australian Shepherd", + "pet.mixed_breed": false, + "pet.weight": 47, + "pet.weight_unit": "lb", + "pet.birth_date": "2023-05-20", + "pet.spayed_neutered": true, + "pet.recent_illness": false, + "plan.annual_limit": "Unlimited", + "plan.reimbursement": "90%", + "plan.deductible": 500, + "plan.wellness": false, + "policy.start_date": "2026-12-03" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout4/cases/wrenfield/wf-dev.intake.json b/packages/flow/benchmark/form_tx_heldout4/cases/wrenfield/wf-dev.intake.json new file mode 100644 index 0000000000..54242e831c --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/cases/wrenfield/wf-dev.intake.json @@ -0,0 +1,26 @@ +{ + "case_id": "wf-dev", + "facts": { + "association.name": "Quarry Bend Lofts Owners Association", + "unit.street": "2210 NW Quarry Bend Ave", + "unit.unit_number": "3C", + "unit.city": "Portland", + "unit.state": "OR", + "unit.zip": "97210", + "building.year_built": 2008, + "unit.floor": 3, + "unit.occupancy": "Owner-occupied (primary residence)", + "unit.wood_stove": false, + "owner.first_name": "Maren", + "owner.last_name": "Olsgaard", + "owner.date_of_birth": "1987-04-12", + "owner.email": "maren.olsgaard@example.test", + "owner.phone": "503-555-0142", + "coverage.improvements": 62000, + "coverage.personal_property": 45000, + "coverage.loss_assessment": 10000, + "coverage.water_backup": "Not included", + "coverage.deductible": 1000, + "policy.start_date": "2026-12-15" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout4/cases/wrenfield/wf-s01.intake.json b/packages/flow/benchmark/form_tx_heldout4/cases/wrenfield/wf-s01.intake.json new file mode 100644 index 0000000000..f42096e187 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/cases/wrenfield/wf-s01.intake.json @@ -0,0 +1,26 @@ +{ + "case_id": "wf-s01", + "facts": { + "association.name": "Fennimore Court Condominiums", + "unit.street": "455 Fennimore Ct", + "unit.unit_number": "12", + "unit.city": "Salem", + "unit.state": "OR", + "unit.zip": "97301", + "building.year_built": 1994, + "unit.floor": 2, + "unit.occupancy": "Owner-occupied (primary residence)", + "unit.wood_stove": true, + "owner.first_name": "Tobias", + "owner.last_name": "Venn", + "owner.date_of_birth": "1979-09-03", + "owner.email": "t.venn@example.test", + "owner.phone": "971-555-0188", + "coverage.improvements": 38000, + "coverage.personal_property": 30000, + "coverage.loss_assessment": 1000, + "coverage.water_backup": "$5,000", + "coverage.deductible": 500, + "policy.start_date": "2026-12-01" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout4/cases/wrenfield/wf-s02.intake.json b/packages/flow/benchmark/form_tx_heldout4/cases/wrenfield/wf-s02.intake.json new file mode 100644 index 0000000000..d9927abfdc --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/cases/wrenfield/wf-s02.intake.json @@ -0,0 +1,27 @@ +{ + "case_id": "wf-s02", + "facts": { + "association.name": "Tidewater Row Condominium Association", + "unit.street": "18 Tidewater Row", + "unit.unit_number": "4", + "unit.city": "Astoria", + "unit.state": "OR", + "unit.zip": "97103", + "building.year_built": 1921, + "unit.floor": 1, + "unit.occupancy": "Secondary or seasonal home", + "unit.wood_stove": true, + "owner.first_name": "Priya", + "owner.last_name": "Lakhani", + "owner.date_of_birth": "1971-02-27", + "owner.email": "priya.lakhani@example.test", + "owner.phone": "360-555-0119", + "coverage.improvements": 55000, + "coverage.personal_property": 25000, + "coverage.loss_assessment": 10000, + "coverage.water_backup": "Not included", + "coverage.deductible": 1000, + "policy.start_date": "2027-01-01", + "unit.months_occupied_per_year": 6 + } +} diff --git a/packages/flow/benchmark/form_tx_heldout4/cases/wrenfield/wf-s03.intake.json b/packages/flow/benchmark/form_tx_heldout4/cases/wrenfield/wf-s03.intake.json new file mode 100644 index 0000000000..6557742fa4 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/cases/wrenfield/wf-s03.intake.json @@ -0,0 +1,26 @@ +{ + "case_id": "wf-s03", + "facts": { + "association.name": "Larch Hollow Condominium Association", + "unit.street": "1650 SW Larch Hollow Dr", + "unit.unit_number": "207", + "unit.city": "Beaverton", + "unit.state": "OR", + "unit.zip": "97005", + "building.year_built": 2001, + "unit.floor": 2, + "unit.occupancy": "Owner-occupied (primary residence)", + "unit.wood_stove": false, + "owner.first_name": "Desmond", + "owner.last_name": "Achterberg", + "owner.date_of_birth": "1990-11-08", + "owner.email": "d.achterberg@example.test", + "owner.phone": "503-555-0167", + "coverage.improvements": 47000, + "coverage.personal_property": 40000, + "coverage.loss_assessment": 25000, + "coverage.water_backup": "$10,000", + "coverage.deductible": 1000, + "policy.start_date": "2026-12-10" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout4/cases/wrenfield/wf-s04.intake.json b/packages/flow/benchmark/form_tx_heldout4/cases/wrenfield/wf-s04.intake.json new file mode 100644 index 0000000000..67c5413d7c --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/cases/wrenfield/wf-s04.intake.json @@ -0,0 +1,26 @@ +{ + "case_id": "wf-s04", + "facts": { + "association.name": "Millrace Commons Owners Association", + "unit.street": "980 Millrace Way", + "unit.unit_number": "B5", + "unit.city": "Eugene", + "unit.state": "OR", + "unit.zip": "97401", + "building.year_built": 1998, + "unit.floor": 1, + "unit.wood_stove": false, + "owner.first_name": "Lucia", + "owner.last_name": "Ferreira-Hale", + "owner.date_of_birth": "1968-06-19", + "owner.email": "lucia.fh@example.test", + "owner.phone": "541-555-0133", + "coverage.improvements": 30000, + "coverage.personal_property": 15000, + "coverage.loss_assessment": 10000, + "coverage.water_backup": "Not included", + "coverage.deductible": 2500, + "policy.start_date": "2026-12-20", + "unit.tenant_lease_end": "2027-06-30" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout4/cases/wrenfield/wf-s05.intake.json b/packages/flow/benchmark/form_tx_heldout4/cases/wrenfield/wf-s05.intake.json new file mode 100644 index 0000000000..b2a20e6aad --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/cases/wrenfield/wf-s05.intake.json @@ -0,0 +1,28 @@ +{ + "case_id": "wf-s05", + "facts": { + "association.name": "Juniper Ridge Terrace Condominiums", + "unit.street": "61 NE Juniper Ridge Ln", + "unit.unit_number": "9", + "unit.city": "Bend", + "unit.state": "OR", + "unit.zip": "97701", + "building.year_built": 2015, + "unit.floor": 2, + "unit.occupancy": "Secondary or seasonal home", + "unit.wood_stove": true, + "owner.first_name": "Hollis", + "owner.last_name": "Brandvold", + "owner.date_of_birth": "1958-12-02", + "owner.email": "hollis.b@example.test", + "owner.phone": "541-555-0171", + "coverage.personal_property": 20000, + "coverage.loss_assessment": 1000, + "coverage.water_backup": "$5,000", + "coverage.deductible": 1000, + "policy.start_date": "2027-02-01", + "unit.months_occupied_per_year": 4, + "unit.square_feet": 1100, + "unit.finish_level": "Builder grade" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout4/cases/wrenfield/wf-s06.intake.json b/packages/flow/benchmark/form_tx_heldout4/cases/wrenfield/wf-s06.intake.json new file mode 100644 index 0000000000..2747fa1645 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/cases/wrenfield/wf-s06.intake.json @@ -0,0 +1,27 @@ +{ + "case_id": "wf-s06", + "facts": { + "association.name": "Sablewood Flats Condominium Association", + "unit.street": "2400 W Sablewood Ave", + "unit.unit_number": "512", + "unit.city": "Spokane", + "unit.state": "WA", + "unit.zip": "99201", + "building.year_built": 2012, + "unit.floor": 5, + "unit.occupancy": "Owner-occupied (primary residence)", + "unit.wood_stove": false, + "owner.first_name": "Imani", + "owner.last_name": "Okafor-Reyes", + "owner.date_of_birth": "1993-03-15", + "owner.email": "imani.or@example.test", + "owner.phone": "509-555-0102", + "coverage.personal_property": 35000, + "coverage.loss_assessment": 25000, + "coverage.water_backup": "$5,000", + "coverage.deductible": 500, + "policy.start_date": "2026-12-05", + "unit.square_feet": 980, + "unit.finish_level": "Upgraded" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout4/cases/wrenfield/wf-s07.intake.json b/packages/flow/benchmark/form_tx_heldout4/cases/wrenfield/wf-s07.intake.json new file mode 100644 index 0000000000..775dfa6c1e --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/cases/wrenfield/wf-s07.intake.json @@ -0,0 +1,25 @@ +{ + "case_id": "wf-s07", + "facts": { + "association.name": "Orchard Lane Townhome Condominiums", + "unit.street": "3301 Orchard Ln", + "unit.unit_number": "14", + "unit.city": "Medford", + "unit.state": "OR", + "unit.zip": "97504", + "building.year_built": 1986, + "unit.floor": 1, + "unit.occupancy": "Owner-occupied (primary residence)", + "owner.first_name": "Gareth", + "owner.last_name": "Lindqvist", + "owner.date_of_birth": "1975-07-30", + "owner.email": "g.lindqvist@example.test", + "owner.phone": "541-555-0158", + "coverage.improvements": 41000, + "coverage.personal_property": 28000, + "coverage.loss_assessment": 10000, + "coverage.water_backup": "Not included", + "coverage.deductible": 1000, + "policy.start_date": "2026-12-12" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout4/cases/wrenfield/wf-s08.intake.json b/packages/flow/benchmark/form_tx_heldout4/cases/wrenfield/wf-s08.intake.json new file mode 100644 index 0000000000..5b28f497de --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/cases/wrenfield/wf-s08.intake.json @@ -0,0 +1,26 @@ +{ + "case_id": "wf-s08", + "facts": { + "association.name": "Harrowgate Towers Condominium", + "unit.street": "700 Harrowgate Blvd", + "unit.unit_number": "1804", + "unit.city": "Vancouver", + "unit.state": "WA", + "unit.zip": "98660", + "building.year_built": 2019, + "unit.floor": 18, + "unit.occupancy": "Owner-occupied (primary residence)", + "unit.wood_stove": false, + "owner.first_name": "Noor", + "owner.last_name": "Haddad-Pryce", + "owner.date_of_birth": "1984-01-22", + "owner.email": "noor.hp@example.test", + "owner.phone": "360-555-0126", + "coverage.improvements": 70000, + "coverage.personal_property": 60000, + "coverage.loss_assessment": 50000, + "coverage.water_backup": "$10,000", + "coverage.deductible": 1000, + "policy.start_date": "2026-12-18" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout4/cases/wrenfield/wf-s09.intake.json b/packages/flow/benchmark/form_tx_heldout4/cases/wrenfield/wf-s09.intake.json new file mode 100644 index 0000000000..d69e3ae89b --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/cases/wrenfield/wf-s09.intake.json @@ -0,0 +1,27 @@ +{ + "case_id": "wf-s09", + "facts": { + "association.name": "Kestrel Point Condominium Association", + "unit.street": "15 Kestrel Point Rd", + "unit.unit_number": "22", + "unit.city": "Bellingham", + "unit.state": "WA", + "unit.zip": "98225", + "building.year_built": 1999, + "unit.floor": 3, + "unit.occupancy": "Secondary or seasonal home", + "unit.wood_stove": false, + "owner.first_name": "Callum", + "owner.last_name": "Ostrowski", + "owner.date_of_birth": "1962-05-09", + "owner.email": "callum.o@example.test", + "owner.phone": "360-555-0145", + "coverage.improvements": 36000, + "coverage.personal_property": 22000, + "coverage.loss_assessment": 1000, + "coverage.water_backup": "Not included", + "coverage.deductible": 1000, + "policy.start_date": "2027-03-01", + "unit.months_occupied_per_year": 11 + } +} diff --git a/packages/flow/benchmark/form_tx_heldout4/cases/wrenfield/wf-s10.intake.json b/packages/flow/benchmark/form_tx_heldout4/cases/wrenfield/wf-s10.intake.json new file mode 100644 index 0000000000..721ae585b1 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/cases/wrenfield/wf-s10.intake.json @@ -0,0 +1,26 @@ +{ + "case_id": "wf-s10", + "facts": { + "association.name": "Copperline Station Lofts", + "unit.street": "410 S Copperline St", + "unit.unit_number": "6A", + "unit.city": "Boise", + "unit.state": "ID", + "unit.zip": "83702", + "building.year_built": 2010, + "unit.floor": 6, + "unit.occupancy": "Owner-occupied (primary residence)", + "unit.wood_stove": false, + "owner.first_name": "Selin", + "owner.last_name": "Marchetti", + "owner.date_of_birth": "1989-08-25", + "owner.email": "selin.m@example.test", + "owner.phone": "208-555-0181", + "coverage.improvements": 52000, + "coverage.personal_property": 38000, + "coverage.loss_assessment": 10000, + "coverage.water_backup": "Not included", + "coverage.deductible": 1000, + "policy.start_date": "2026-12-08" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout4/cases/wrenfield/wf-s11.intake.json b/packages/flow/benchmark/form_tx_heldout4/cases/wrenfield/wf-s11.intake.json new file mode 100644 index 0000000000..27e25658bf --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/cases/wrenfield/wf-s11.intake.json @@ -0,0 +1,26 @@ +{ + "case_id": "wf-s11", + "facts": { + "association.name": "Harrowgate Park Condominium Owners", + "unit.street": "1290 Harrowgate Park Dr", + "unit.unit_number": "31", + "unit.city": "Vancouver", + "unit.state": "WA", + "unit.zip": "98661", + "building.year_built": 2004, + "unit.floor": 3, + "unit.occupancy": "Owner-occupied (primary residence)", + "unit.wood_stove": false, + "owner.first_name": "Bertrand", + "owner.last_name": "Okoye", + "owner.date_of_birth": "1981-10-14", + "owner.email": "b.okoye@example.test", + "owner.phone": "360-555-0137", + "coverage.improvements": 44000, + "coverage.personal_property": 32000, + "coverage.loss_assessment": 10000, + "coverage.water_backup": "$5,000", + "coverage.deductible": 1000, + "policy.start_date": "2026-12-22" + } +} diff --git a/packages/flow/benchmark/form_tx_heldout4/common.py b/packages/flow/benchmark/form_tx_heldout4/common.py new file mode 100644 index 0000000000..82a02a14a1 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/common.py @@ -0,0 +1,298 @@ +"""Shared HTTP plumbing for the held-out carrier quote portals. + +Every portal is a ``BasePortal`` subclass served by a stdlib +``ThreadingHTTPServer``. State lives on the portal instance (never in module +globals), so several portals or several copies of one portal can run in one +process. + +Test-only endpoints, present on every portal: + +* ``GET /__oracle/submissions`` every stored submission, in order. +* ``POST /__oracle/reset`` drop drafts, sessions, submissions, case. +* ``POST /__oracle/load_case`` ``{"case_id": ...}``: reset, then configure + the portal for that case (prior policy on file, session expiry, ...). + +Each stored submission carries ``case_id``, ``submitted_at`` (UTC ISO 8601), +``submit_seq`` (1-based order of this submission since the last reset) and +``submit_count`` (how many submissions the portal holds at the time of the +read). Repeated submissions are all stored; nothing is deduplicated. +""" + +from __future__ import annotations + +import html +import json +import secrets +import threading +import time +from dataclasses import dataclass, field +from datetime import datetime, timezone +from http.cookies import SimpleCookie +from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer +from pathlib import Path +from typing import Any, Callable +from urllib.parse import parse_qs, urlsplit + +HERE = Path(__file__).resolve().parent +CREDENTIALS = json.loads((HERE / "fixtures" / "portal_logins.json").read_text()) + + +def esc(value: Any) -> str: + return html.escape("" if value is None else str(value), quote=True) + + +@dataclass +class Request: + method: str + path: str + query: dict[str, str] + form: dict[str, str] + form_multi: dict[str, list[str]] + json: Any + cookies: dict[str, str] + + +@dataclass +class Response: + status: int = 200 + body: bytes = b"" + content_type: str = "text/html; charset=utf-8" + headers: list[tuple[str, str]] = field(default_factory=list) + + @classmethod + def html(cls, text: str, status: int = 200) -> "Response": + return cls(status, text.encode("utf-8")) + + @classmethod + def json_(cls, obj: Any, status: int = 200) -> "Response": + return cls(status, json.dumps(obj).encode("utf-8"), "application/json") + + @classmethod + def redirect(cls, location: str) -> "Response": + return cls(303, b"", headers=[("Location", location)]) + + def set_cookie(self, name: str, value: str) -> "Response": + self.headers.append(("Set-Cookie", f"{name}={value}; Path=/; HttpOnly; SameSite=Lax")) + return self + + def clear_cookie(self, name: str) -> "Response": + self.headers.append(("Set-Cookie", f"{name}=; Path=/; Max-Age=0")) + return self + + +class BasePortal: + """One carrier portal. Subclasses implement ``route`` and ``fresh_draft``.""" + + portal_id = "base" + cookie = "sid" + + def __init__(self) -> None: + self.lock = threading.RLock() + self.creds = CREDENTIALS[self.portal_id] + self.reset() + + # ---- state ------------------------------------------------------- + def reset(self) -> None: + with self.lock: + self.case_id: str | None = None + self.config: dict[str, Any] = {} + self.sessions: set[str] = set() + self.submissions: list[dict[str, Any]] = [] + self.fired: set[str] = set() + self.draft: dict[str, Any] = self.fresh_draft() + self.quote_seq = 0 + + def load_case(self, case_id: str) -> bool: + from .case_defs import portal_config + + cfg = portal_config(self.portal_id, case_id) + if cfg is None: + return False + with self.lock: + self.reset() + self.case_id = case_id + self.config = cfg + self.draft = self.fresh_draft() + return True + + def fresh_draft(self) -> dict[str, Any]: + return {} + + def store_submission(self, record: dict[str, Any]) -> dict[str, Any]: + with self.lock: + rec = dict(record) + rec["case_id"] = self.case_id + rec["submitted_at"] = datetime.now(timezone.utc).isoformat(timespec="seconds") + rec["submit_seq"] = len(self.submissions) + 1 + self.submissions.append(rec) + return rec + + def fire_once(self, event: str) -> bool: + """True the first time ``event`` happens after a case load, if configured.""" + with self.lock: + if event in self.fired: + return False + if self.config.get("expire_on") != event: + return False + self.fired.add(event) + return True + + # ---- sessions ---------------------------------------------------- + def new_session(self) -> str: + sid = secrets.token_hex(12) + with self.lock: + self.sessions.add(sid) + return sid + + def has_session(self, req: Request) -> bool: + return req.cookies.get(self.cookie, "") in self.sessions + + def drop_sessions(self) -> None: + with self.lock: + self.sessions.clear() + + def check_login(self, username: str, password: str) -> bool: + return username.strip() == self.creds["username"] and password == self.creds["password"] + + # ---- dispatch ---------------------------------------------------- + def dispatch(self, req: Request) -> Response: + if req.path.startswith("/__oracle/"): + return self.oracle(req) + try: + return self.route(req) + except Exception as exc: # keep the server alive; surface the error + return Response.html(f"

    Server error

    {esc(repr(exc))}
    ", 500) + + def oracle(self, req: Request) -> Response: + if req.path == "/__oracle/submissions" and req.method == "GET": + with self.lock: + n = len(self.submissions) + out = [dict(r, submit_count=n) for r in self.submissions] + return Response.json_(out) + if req.path == "/__oracle/reset" and req.method == "POST": + self.reset() + return Response.json_({"ok": True}) + if req.path == "/__oracle/load_case" and req.method == "POST": + case_id = (req.json or {}).get("case_id") or req.form.get("case_id", "") + if not self.load_case(case_id): + return Response.json_({"ok": False, "error": f"unknown case {case_id!r}"}, 404) + return Response.json_({"ok": True, "case_id": case_id}) + return Response.json_({"error": "not found"}, 404) + + def route(self, req: Request) -> Response: # pragma: no cover - abstract + raise NotImplementedError + + +def _handler_for(portal: BasePortal) -> type[BaseHTTPRequestHandler]: + class Handler(BaseHTTPRequestHandler): + protocol_version = "HTTP/1.1" + + def _go(self, method: str) -> None: + parts = urlsplit(self.path) + query = {k: v[-1] for k, v in parse_qs(parts.query, keep_blank_values=True).items()} + length = int(self.headers.get("Content-Length") or 0) + raw = self.rfile.read(length) if length else b"" + ctype = self.headers.get("Content-Type", "") + form_multi: dict[str, list[str]] = {} + body_json: Any = None + if raw and "json" in ctype: + try: + body_json = json.loads(raw.decode("utf-8")) + except ValueError: + body_json = None + elif raw: + form_multi = parse_qs(raw.decode("utf-8"), keep_blank_values=True) + cookies: dict[str, str] = {} + if self.headers.get("Cookie"): + jar = SimpleCookie() + try: + jar.load(self.headers["Cookie"]) + except Exception: + pass + cookies = {k: m.value for k, m in jar.items()} + req = Request( + method, + parts.path, + query, + {k: v[-1] for k, v in form_multi.items()}, + form_multi, + body_json, + cookies, + ) + resp = portal.dispatch(req) + self.send_response(resp.status) + self.send_header("Content-Type", resp.content_type) + self.send_header("Content-Length", str(len(resp.body))) + self.send_header("Cache-Control", "no-store") + for k, v in resp.headers: + self.send_header(k, v) + self.end_headers() + if method != "HEAD": + self.wfile.write(resp.body) + + def do_GET(self) -> None: # noqa: N802 + self._go("GET") + + def do_POST(self) -> None: # noqa: N802 + self._go("POST") + + def do_PUT(self) -> None: # noqa: N802 + self._go("PUT") + + def log_message(self, *args: Any) -> None: + pass + + return Handler + + +def serve(portal: BasePortal, host: str = "127.0.0.1", port: int = 0) -> tuple[ThreadingHTTPServer, str]: + server = ThreadingHTTPServer((host, port), _handler_for(portal)) + server.daemon_threads = True + server.portal = portal # type: ignore[attr-defined] + threading.Thread(target=server.serve_forever, daemon=True, name=f"{portal.portal_id}-http").start() + return server, f"http://{host}:{server.server_port}" + + +def slow(seconds: float) -> None: + time.sleep(seconds) + + +@dataclass +class PortalSpec: + name: str + title: str + description: str + factory: Callable[[], BasePortal] + entry_path: str + login: dict[str, Any] + cases: list[str] + dev_case: str + intake_vocabulary: dict[str, Any] = field(default_factory=dict) + + def start(self, host: str = "127.0.0.1", port: int = 0) -> tuple[ThreadingHTTPServer, str]: + return serve(self.factory(), host, port) + + +def money(n: int) -> str: + return f"${n:,}" + + +def parse_int(text: Any) -> int | None: + s = str(text or "").replace(",", "").replace("$", "").strip() + if not s: + return None + try: + return int(float(s)) + except ValueError: + return None + + +def parse_date(text: str) -> str: + """Accept ISO ``YYYY-MM-DD`` or ``MM/DD/YYYY``; return ISO or ''.""" + s = (text or "").strip() + try: + if "/" in s: + return datetime.strptime(s, "%m/%d/%Y").date().isoformat() + return datetime.strptime(s, "%Y-%m-%d").date().isoformat() + except ValueError: + return "" diff --git a/packages/flow/benchmark/form_tx_heldout4/corvane.py b/packages/flow/benchmark/form_tx_heldout4/corvane.py new file mode 100644 index 0000000000..598ae806e1 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/corvane.py @@ -0,0 +1,621 @@ +"""Corvane Casualty: motorcycle quote in an agency rating worksheet. + +One server-rendered worksheet with accordion panels; each panel saves on its +own through a JSON call. Motorcycles are added in a modal dialog whose VIN +decoder opens a separate popup window that writes the decoded vehicle back +into the dialog and closes itself. The coverage panel has a custom parts and +equipment worksheet dialog. Rating shows a rated-quote page before the +application is submitted. When the session ends, the worksheet sends the +agent to the sign-in page. +""" + +from __future__ import annotations + +import json +import re +from typing import Any + +from .common import BasePortal, Request, Response, esc, money, parse_date, parse_int + +RECORD_FIELDS = [ + "effective_date", "prior_insurance", + "first_name", "last_name", "dob", "phone", "years_endorsed", "safety_course", + "street", "city", "state", "zip", + "motorcycles", "annual_miles", + "bi_pd_limits", "collision_deductible", "comprehensive_deductible", "cpe_coverage", "roadside", +] +ITEM_FIELDS = ["vin", "year", "make", "model", "engine_cc", "ownership", "lienholder"] + +PRIOR = ["None", "Less than 6 months", "6 months or more"] +YES_NO = ["Yes", "No"] +STATES = ["WA", "OR", "ID", "MT", "CA"] +LIMITS = ["25/50/25", "50/100/50", "100/300/100", "250/500/100"] +COLLISION = [250, 500, 1000] +COMPREHENSIVE = [100, 250, 500, 1000] +ROADSIDE = ["Not included", "Roadside assistance", "Roadside and trip interruption"] +OWNERSHIP = ["Owned outright", "Financed", "Leased"] + +# VIN decoder table: several VINs decode to more than one trim. +VINS: dict[str, list[dict[str, Any]]] = { + "KS9RB0905NA214470": [ + {"year": 2022, "make": "Kessin", "model": "Ridgeback 900", "engine_cc": 898}, + {"year": 2022, "make": "Kessin", "model": "Ridgeback 900 Touring", "engine_cc": 898}, + ], + "AR7TL1272MB300982": [{"year": 2021, "make": "Ardent Cycle Co.", "model": "Tallis 1250", "engine_cc": 1252}], + "SM2CV6504PC118837": [{"year": 2023, "make": "Strand Motorworks", "model": "Cove 650", "engine_cc": 649}], + "KS9DT7003LA552019": [{"year": 2020, "make": "Kessin", "model": "Drift 700", "engine_cc": 689}], + "VH4MR3109RE071266": [{"year": 2024, "make": "Vahlberg", "model": "Marrow 310", "engine_cc": 313}], + "AR7HW1803KB447105": [ + {"year": 2019, "make": "Ardent Cycle Co.", "model": "Highwater 1800", "engine_cc": 1801}, + {"year": 2019, "make": "Ardent Cycle Co.", "model": "Highwater 1800 Limited", "engine_cc": 1801}, + ], + "SM2PK4002SC209318": [{"year": 2025, "make": "Strand Motorworks", "model": "Pike 400", "engine_cc": 399}], + "VH4GR9500NE630274": [{"year": 2022, "make": "Vahlberg", "model": "Grisle 950", "engine_cc": 948}], + "KS9SL1104TA017763": [{"year": 2026, "make": "Kessin", "model": "Sable 1100", "engine_cc": 1084}], + "AR7BN8806JB905531": [{"year": 2018, "make": "Ardent Cycle Co.", "model": "Benton 880", "engine_cc": 883}], + "SM2RV1205MC388460": [{"year": 2021, "make": "Strand Motorworks", "model": "Raven 1200", "engine_cc": 1170}], + "VH4TK6907PE215598": [{"year": 2023, "make": "Vahlberg", "model": "Tarka 690", "engine_cc": 693}], + "KS9CL5003RA884210": [{"year": 2024, "make": "Kessin", "model": "Coil 500", "engine_cc": 471}], + "VH4WL8003SE450917": [{"year": 2025, "make": "Vahlberg", "model": "Wilder 800", "engine_cc": 798}], +} + +LABELS = { + "effective_date": "Effective date", "prior_insurance": "Prior motorcycle insurance", + "first_name": "First name", "last_name": "Last name", "dob": "Date of birth", "phone": "Phone", + "years_endorsed": "Years with motorcycle endorsement", + "safety_course": "Completed a rider safety course in the last 3 years", + "street": "Street address", "city": "City", "state": "State", "zip": "ZIP", + "annual_miles": "Annual mileage", "bi_pd_limits": "Liability limits (BI/PD)", + "collision_deductible": "Collision deductible", "comprehensive_deductible": "Comprehensive deductible", + "cpe_coverage": "Custom parts and equipment", "roadside": "Roadside coverage", +} +PANELS = { + "basics": ("Quote basics", ["effective_date", "prior_insurance"]), + "rider": ("Rider", ["first_name", "last_name", "dob", "phone", "years_endorsed", "safety_course"]), + "garaging": ("Garaging address", ["street", "city", "state", "zip"]), + "motorcycles": ("Motorcycles", ["motorcycles", "annual_miles"]), + "coverage": ("Coverage", ["bi_pd_limits", "collision_deductible", "comprehensive_deductible", "cpe_coverage", + "roadside"]), +} + + +def _us(iso: Any) -> str: + m = re.fullmatch(r"(\d{4})-(\d{2})-(\d{2})", str(iso or "")) + return f"{m.group(2)}/{m.group(3)}/{m.group(1)}" if m else str(iso or "") + + +class Corvane(BasePortal): + portal_id = "corvane" + cookie = "cv_session" + + def fresh_draft(self) -> dict[str, Any]: + d: dict[str, Any] = {f: "" for f in RECORD_FIELDS} + d.update(motorcycles=[], annual_miles=6000, bi_pd_limits="25/50/25", collision_deductible=500, + comprehensive_deductible=500, cpe_coverage=0, roadside="Not included") + d.update(copy_json(self.config.get("prefill", {}))) + d["_notice"] = "" + d["_entered_city"] = "" + d["_kept_address"] = False + return d + + # ---- validation -------------------------------------------------- + def _clean_bike(self, b: dict[str, Any]) -> tuple[dict[str, Any], str]: + vin = str(b.get("vin", "")).strip().upper() + cands = VINS.get(vin) + if not cands: + return {}, f"VIN {vin or '(blank)'} was not decoded." + match = next((c for c in cands if c["model"] == b.get("model")), None) + if match is None: + return {}, f"Decode VIN {vin} again." + own = str(b.get("ownership", "")) + if own not in OWNERSHIP: + return {}, "Choose the ownership." + lien = str(b.get("lienholder", "") or "").strip() + if own == "Owned outright": + lien = "" + elif not lien: + return {}, "Enter the lienholder or lessor." + return {"vin": vin, "year": match["year"], "make": match["make"], "model": match["model"], + "engine_cc": match["engine_cc"], "ownership": own, "lienholder": lien}, "" + + def _clean(self, panel: str, data: dict[str, Any]) -> tuple[dict[str, Any], dict[str, str]]: + out: dict[str, Any] = {} + err: dict[str, str] = {} + + def s(f: str) -> str: + v = data.get(f, "") + return "" if v is None else str(v).strip() + + if panel == "basics": + iso = parse_date(s("effective_date")) + out["effective_date"] = iso + if not iso: + err["effective_date"] = "Enter MM/DD/YYYY." + out["prior_insurance"] = s("prior_insurance") + if out["prior_insurance"] not in PRIOR: + err["prior_insurance"] = "Required." + elif panel == "rider": + for f in ("first_name", "last_name"): + out[f] = s(f) + if not out[f]: + err[f] = "Required." + out["dob"] = parse_date(s("dob")) + if not out["dob"]: + err["dob"] = "Enter MM/DD/YYYY." + out["phone"] = s("phone") + if len(re.sub(r"\D", "", out["phone"])) != 10: + err["phone"] = "10 digits." + yrs = parse_int(s("years_endorsed")) + out["years_endorsed"] = yrs + if yrs is None or not 0 <= yrs <= 70: + err["years_endorsed"] = "Whole years." + out["safety_course"] = s("safety_course") + if out["safety_course"] not in YES_NO: + err["safety_course"] = "Required." + elif panel == "garaging": + for f in ("street", "city"): + out[f] = s(f) + if not out[f]: + err[f] = "Required." + out["state"] = s("state") + if out["state"] not in STATES: + err["state"] = "Required." + out["zip"] = s("zip") + if not re.fullmatch(r"\d{5}", out["zip"]): + err["zip"] = "5 digits." + elif panel == "motorcycles": + bikes = data.get("motorcycles") or [] + clean_bikes = [] + for b in bikes if isinstance(bikes, list) else []: + cb, e = self._clean_bike(b if isinstance(b, dict) else {}) + if e: + err["motorcycles"] = e + break + clean_bikes.append(cb) + if not clean_bikes and "motorcycles" not in err: + err["motorcycles"] = "Add at least one motorcycle." + out["motorcycles"] = clean_bikes + miles = parse_int(s("annual_miles")) + out["annual_miles"] = miles + if miles is None or not 0 < miles <= 60000: + err["annual_miles"] = "Enter annual miles." + elif panel == "coverage": + out["bi_pd_limits"] = s("bi_pd_limits") + if out["bi_pd_limits"] not in LIMITS: + err["bi_pd_limits"] = "Required." + for f, opts in (("collision_deductible", COLLISION), ("comprehensive_deductible", COMPREHENSIVE)): + out[f] = parse_int(s(f)) + if out[f] not in opts: + err[f] = "Required." + out["cpe_coverage"] = parse_int(s("cpe_coverage")) + if out["cpe_coverage"] is None or out["cpe_coverage"] < 0: + err["cpe_coverage"] = "Whole dollars." + out["roadside"] = s("roadside") + if out["roadside"] not in ROADSIDE: + err["roadside"] = "Required." + return out, err + + def _premium(self, d: dict[str, Any]) -> int: + p = 140.0 + for b in d.get("motorcycles") or []: + p += 90 + int(b.get("engine_cc") or 0) * 0.21 + p *= {"25/50/25": 1.0, "50/100/50": 1.18, "100/300/100": 1.36, "250/500/100": 1.58}.get(d.get("bi_pd_limits"), 1) + p *= {250: 1.12, 500: 1.0, 1000: 0.9}.get(d.get("collision_deductible"), 1) + p += int(d.get("cpe_coverage") or 0) * 0.012 + p += int(d.get("annual_miles") or 0) * 0.008 + if d.get("safety_course") == "Yes": + p *= 0.93 + p += {"Not included": 0, "Roadside assistance": 24, "Roadside and trip interruption": 41}.get(d.get("roadside"), 0) + return int(round(p)) + + def _display(self, f: str, v: Any) -> str: + if v in ("", None): + return "—" + if f in ("collision_deductible", "comprehensive_deductible", "cpe_coverage"): + return money(int(v)) + if f in ("dob", "effective_date"): + return _us(v) + if f == "annual_miles": + return f"{int(v):,}" + return str(v) + + # ---- routing ----------------------------------------------------- + def route(self, req: Request) -> Response: + p = req.path + if p == "/": + return Response.redirect("/rater/worksheet") + if p == "/agent/login": + if req.method == "POST": + nxt = req.form.get("next") or "/rater/worksheet" + if not nxt.startswith("/rater/"): + nxt = "/rater/worksheet" + if self.check_login(req.form.get("agent_code", ""), req.form.get("password", "")): + return Response.redirect(nxt).set_cookie(self.cookie, self.new_session()) + return Response.html(self._login_page(nxt, "Agent code or password is not valid.", False), 401) + return Response.html(self._login_page(req.query.get("next", ""), "", req.query.get("expired") == "1")) + if not p.startswith("/rater/"): + return Response.html("

    Not found

    ", 404) + if not self.has_session(req): + if p.startswith("/rater/api/"): + return Response.json_({"ok": False, "error": "session_expired"}, 401) + return Response.redirect("/agent/login?expired=1&next=/rater/worksheet") + if p == "/rater/worksheet": + return Response.html(self._worksheet(req.query.get("msg", ""))) + if p == "/rater/vin-decoder": + return Response.html(self._decoder(req.query.get("vin", ""))) + if p == "/rater/api/save" and req.method == "POST": + body = req.json or {} + panel = str(body.get("panel", "")) + if panel not in PANELS: + return Response.json_({"ok": False, "error": "bad panel"}, 400) + if self.fire_once("save:" + panel): + self.drop_sessions() + return Response.json_({"ok": False, "error": "session_expired"}, 401) + clean, err = self._clean(panel, body.get("data") or {}) + if err: + return Response.json_({"ok": False, "errors": err}, 422) + with self.lock: + self.draft.update(clean) + if panel == "garaging": + self.draft["_kept_address"] = False + self.draft["_notice"] = "" + return Response.json_({"ok": True}) + if p == "/rater/rate" and req.method == "POST": + missing = self._incomplete() + if missing: + return Response.redirect("/rater/worksheet?msg=" + "+".join(missing)) + with self.lock: + std = self.config.get("standardize") + d = self.draft + if std and not d["_kept_address"] and d["zip"] == std["zip"] and d["city"].casefold() != std["city"].casefold(): + d["_entered_city"] = d["city"] + d["city"] = std["city"] + d["_notice"] = (f"Garaging address standardized to the USPS preferred city for ZIP {std['zip']}: " + f"{d['_entered_city']} changed to {std['city']}.") + return Response.redirect("/rater/rated") + if p == "/rater/keep-address" and req.method == "POST": + with self.lock: + d = self.draft + if d["_entered_city"]: + d["city"] = d["_entered_city"] + d["_entered_city"] = "" + d["_notice"] = "" + d["_kept_address"] = True + return Response.redirect("/rater/rated") + if p == "/rater/rated": + return Response.html(self._rated()) + if p == "/rater/submit" and req.method == "POST": + missing = self._incomplete() + if missing: + return Response.redirect("/rater/worksheet?msg=" + "+".join(missing)) + with self.lock: + rec = {f: copy_json(self.draft[f]) for f in RECORD_FIELDS} + self.quote_seq += 1 + ref = f"CVQ-{88310 + self.quote_seq}" + rec["quote_ref"] = ref + rec["premium"] = self._premium(rec) + self.store_submission(rec) + return Response.redirect("/rater/quote/" + ref) + m = re.fullmatch(r"/rater/quote/(CVQ-\d+)", p) + if m: + return Response.html(self._quote(m.group(1))) + return Response.html("

    Not found

    ", 404) + + def _incomplete(self) -> list[str]: + with self.lock: + d = dict(self.draft) + missing = [] + for key, (title, fields) in PANELS.items(): + data = {f: (_us(d[f]) if f in ("dob", "effective_date") else d[f]) for f in fields} + _, err = self._clean(key, data) + if err: + missing.append(title.replace(" ", "_")) + return missing + + # ---- pages ------------------------------------------------------- + def _login_page(self, nxt: str, error: str, expired: bool) -> str: + msg = "" + if expired: + msg = '' + if error: + msg = f'' + return PAGE.replace("{{BODY}}", f""" +""") + + def _field(self, f: str, d: dict[str, Any], kind: str = "text", options: list[Any] | None = None, + fmt: Any = None, placeholder: bool = False) -> str: + v = d.get(f, "") + if options is not None: + cur = str(v) + opts = '' if placeholder else "" + for o in options: + text = fmt(o) if fmt else str(o) + sel = " selected" if str(o) == cur else "" + opts += f'' + ctl = f'' + else: + shown = _us(v) if f in ("dob", "effective_date") else ("" if v in (None,) else v) + ph = ' placeholder="MM/DD/YYYY"' if f in ("dob", "effective_date") else "" + ctl = f'' + return (f'{ctl}' + f'') + + def _worksheet(self, msg: str) -> str: + with self.lock: + d = copy_json({k: v for k, v in self.draft.items() if not k.startswith("_")}) + banner = "" + if msg: + banner = (f'') + + def panel(key: str, inner: str, extra: str = "") -> str: + title = PANELS[key][0] + return f""" +
    +

    +
    """ + + f = self._field + basics = f("effective_date", d) + f("prior_insurance", d, options=PRIOR, placeholder=True) + rider = (f("first_name", d) + f("last_name", d) + f("dob", d) + f("phone", d) + f("years_endorsed", d) + + f("safety_course", d, options=YES_NO, placeholder=True)) + garaging = f("street", d) + f("city", d) + f("state", d, options=STATES, placeholder=True) + f("zip", d) + bikes_extra = """ + +
    VINYearMakeModelccOwnershipLienholder
    +

    """ + bikes = f("annual_miles", d) + coverage = (f("bi_pd_limits", d, options=LIMITS) + + f("collision_deductible", d, options=COLLISION, fmt=lambda o: money(o)) + + f("comprehensive_deductible", d, options=COMPREHENSIVE, fmt=lambda o: money(o)) + + f("cpe_coverage", d) + + '' + + f("roadside", d, options=ROADSIDE)) + body = f""" +
    Corvane AgentLink › Personal lines › Motorcycle rating worksheet +Agent {esc(self.creds['username'])}
    +
    + +{panel('basics', basics)} +{panel('rider', rider)} +{panel('garaging', garaging)} +{panel('motorcycles', bikes, bikes_extra)} +{panel('coverage', coverage)} +
    +
    + +

    Add motorcycle

    + + + + + + + + +
    +
    +

    + +
    + +

    Custom parts and equipment worksheet

    +
    ItemValue ($)
    +

    +

    Worksheet total: $0

    + +
    + +{WORKSHEET_JS}""" + return PAGE.replace("{{BODY}}", body) + + def _decoder(self, vin: str) -> str: + vin = vin.strip().upper() + cands = VINS.get(vin, []) + if not cands: + inner = f"

    No match for VIN {esc(vin)}. Check the VIN and try again.

    " + else: + rows = "" + for i, c in enumerate(cands): + rows += (f"{c['year']}{esc(c['make'])}{esc(c['model'])}" + f"{c['engine_cc']}" + f"") + inner = f"""

    {len(cands)} match{'es' if len(cands) != 1 else ''} for VIN {esc(vin)}.

    + +{rows}
    YearMakeModelEngine (cc)
    """ + return PAGE.replace("{{BODY}}", f"""

    VIN decoder

    {inner}
    +""") + + def _summary_rows(self, d: dict[str, Any]) -> str: + out = "" + for key, (title, fields) in PANELS.items(): + out += f'{esc(title)}' + for f in fields: + if f == "motorcycles": + continue + out += f"{esc(LABELS[f])}{esc(self._display(f, d.get(f)))}" + return out + + def _bike_rows(self, d: dict[str, Any]) -> str: + return "".join( + f"{esc(b['vin'])}{b['year']}{esc(b['make'])}{esc(b['model'])}" + f"{b['engine_cc']}{esc(b['ownership'])}{esc(b['lienholder'] or '—')}" + for b in d.get("motorcycles") or [] + ) + + def _rated(self) -> str: + with self.lock: + d = copy_json(self.draft) + notice = "" + if d.get("_notice"): + notice = f"""
    {esc(d['_notice'])} +
    """ + return PAGE.replace("{{BODY}}", f""" +
    Corvane AgentLink › Motorcycle › Rated quote
    +
    +{notice} +

    Rated quote

    +{self._summary_rows(d)}
    +

    Motorcycles

    + +{self._bike_rows(d)}
    VINYearMakeModelccOwnershipLienholder
    +

    Annual premium: {esc(money(self._premium(d)))}

    +

    Back to worksheet

    +
    +
    """) + + def _quote(self, ref: str) -> str: + with self.lock: + rec = next((r for r in self.submissions if r.get("quote_ref") == ref), None) + if rec is None: + return "

    Quote not found

    " + return PAGE.replace("{{BODY}}", f""" +
    Corvane AgentLink › Motorcycle › Application received
    +
    +

    Application submitted

    +

    Quote reference {esc(ref)}   Annual premium {esc(money(rec['premium']))}

    +{self._summary_rows(rec)}
    +

    Motorcycles

    + +{self._bike_rows(rec)}
    VINYearMakeModelccOwnershipLienholder
    +
    """) + + +def copy_json(v: Any) -> Any: + return json.loads(json.dumps(v)) + + +PAGE = """Corvane AgentLink +{{BODY}}""" + +WORKSHEET_JS = r""" +""" diff --git a/packages/flow/benchmark/form_tx_heldout4/drivers/__init__.py b/packages/flow/benchmark/form_tx_heldout4/drivers/__init__.py new file mode 100644 index 0000000000..3315e41a79 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/drivers/__init__.py @@ -0,0 +1 @@ +"""Per-portal Playwright drivers for the reference fillers.""" diff --git a/packages/flow/benchmark/form_tx_heldout4/drivers/base.py b/packages/flow/benchmark/form_tx_heldout4/drivers/base.py new file mode 100644 index 0000000000..57c8d95551 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/drivers/base.py @@ -0,0 +1,191 @@ +"""Shared pieces of the two reference fillers. + +A *source* decides what to type; a per-portal *driver* knows how to move +through that portal's pages and calls the source for every visible field, +keyed by the field's visible label text. + +* ``ReferenceSource`` (careful human): values come from the answer key's + expected record and operator script; it checks every value it relies on + from the screen (estimator figure, type-ahead option) is actually shown. +* ``NaiveSource`` (unguarded agent): values come from the intake through a + label-to-intake-key table; no fact means keep the prefill, or take the + first option when the control is empty; first type-ahead suggestion; + estimator figure accepted as handed back; no summary check. +""" + +from __future__ import annotations + +import json +import re +import urllib.request +from datetime import date +from pathlib import Path +from typing import Any, Callable + +HERE = Path(__file__).resolve().parent.parent + + +def norm(s: Any) -> str: + return re.sub(r"\s+", " ", str(s if s is not None else "")).strip().casefold() + + +def digits(s: Any) -> str: + return re.sub(r"\D", "", str(s if s is not None else "")) + + +def us_date(iso: str) -> str: + d = date.fromisoformat(iso) + return f"{d.month:02d}/{d.day:02d}/{d.year}" + + +def load_intake(portal: str, case_id: str) -> dict[str, Any]: + return json.loads((HERE / "cases" / portal / f"{case_id}.intake.json").read_text())["facts"] + + +def option_matches(want: str, value: str, text: str) -> bool: + w = norm(want) + if not w: + return False + if w == norm(value) or w == norm(text): + return True + dw = digits(want) + if dw and re.fullmatch(r"[\s$,\d]+", want) and (dw == digits(value) or dw == digits(text)): + return True + return False + + +class DriverError(RuntimeError): + pass + + +class Source: + kind = "base" + fallback_first = False + restart_after_relogin = False + + def __init__(self, portal: str, case_id: str, creds: dict[str, str]) -> None: + self.portal = portal + self.case_id = case_id + self.creds = creds + self.labels_seen: set[str] = set() + self.events: list[str] = [] + + def note(self, label: str) -> None: + self.labels_seen.add(norm(label)) + + def get(self, label: str) -> str | None: + raise NotImplementedError + + def pick(self, label: str, options: list[str], want: str | None) -> int: + raise NotImplementedError + + def estimator(self, label: str, displayed: int, current: str) -> str | None: + return None + + def wants(self, label: str) -> bool: + """Whether the source has an opinion about ``label`` at all.""" + return self.get(label) is not None + + +Formatter = Callable[[Any], str] + + +def fmt_plain(v: Any) -> str: + if isinstance(v, bool): + return "Yes" if v else "No" + return str(v) + + +def fmt_date(v: Any) -> str: + return us_date(str(v)) + + +class NaiveSource(Source): + kind = "naive" + fallback_first = True + + def __init__(self, portal: str, case_id: str, creds: dict[str, str], label_map: dict[str, Any]) -> None: + super().__init__(portal, case_id, creds) + self.facts = load_intake(portal, case_id) + self.label_map = {norm(k): v for k, v in label_map.items()} + + def _lookup(self, label: str) -> Any: + return self.label_map.get(norm(label)) + + def get(self, label: str) -> str | None: + entry = self._lookup(label) + if entry is None: + return None + key, fmt = entry if isinstance(entry, tuple) else (entry, fmt_plain) + if key not in self.facts: + return None + return fmt(self.facts[key]) + + def pick(self, label: str, options: list[str], want: str | None) -> int: + return 0 + + +class ReferenceSource(Source): + kind = "reference" + restart_after_relogin = True + + def __init__( + self, + portal: str, + case_id: str, + creds: dict[str, str], + label_map: dict[str, Any], + expected: dict[str, Any], + operator: dict[str, Any], + ) -> None: + super().__init__(portal, case_id, creds) + self.facts = load_intake(portal, case_id) + self.expected = expected + self.operator = operator + self.label_map = {norm(k): v for k, v in label_map.items()} + + def get(self, label: str) -> str | None: + entry = self.label_map.get(norm(label)) + if entry is None: + return None + if callable(entry): + return entry(self) + field, fmt = entry if isinstance(entry, tuple) else (entry, fmt_plain) + if field.startswith("intake:"): + key = field[len("intake:"):] + return fmt(self.facts[key]) if key in self.facts else None + return fmt(self.expected[field]) + + def pick(self, label: str, options: list[str], want: str | None) -> int: + for i, o in enumerate(options): + if want is not None and norm(o) == norm(want): + return i + raise DriverError(f"{label}: wanted {want!r} not among {options!r}") + + def check_operator_labels(self) -> list[str]: + """Operator-script labels that never appeared on screen.""" + missing = [] + for k in self.operator: + if k == "session_login" or re.fullmatch(r"[a-z0-9_]+(\.[a-z0-9_]+)*", k): + continue + if norm(k) not in self.labels_seen: + missing.append(k) + return missing + + +def oracle(base: str, path: str, payload: dict | None = None) -> Any: + data = None if payload is None else json.dumps(payload).encode() + req = urllib.request.Request( + base + path, data=data, method="GET" if payload is None else "POST", + headers={"Content-Type": "application/json"}, + ) + with urllib.request.urlopen(req, timeout=20) as r: + return json.loads(r.read().decode()) + + +def find_option(src: Source, want: str, opts: list[tuple[str, str]]) -> str | None: + """Value of the option whose value or text matches ``want``. + + Case and whitespace are ignored; whole-dollar amounts also match by digits. + """ + return next((v for v, t in opts if v and option_matches(want, v, t)), None) diff --git a/packages/flow/benchmark/form_tx_heldout4/drivers/corvane.py b/packages/flow/benchmark/form_tx_heldout4/drivers/corvane.py new file mode 100644 index 0000000000..fb8562c456 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/drivers/corvane.py @@ -0,0 +1,277 @@ +"""Driver for the Corvane Casualty motorcycle rating worksheet.""" + +from __future__ import annotations + +import re +from typing import Any + +from .base import DriverError, Source, find_option, fmt_date, norm +from .kit import fill_select, fill_text, summary_mismatches, wait_until + +REFERENCE_LABELS: dict[str, Any] = { + "Effective date": ("effective_date", fmt_date), + "Prior motorcycle insurance": "prior_insurance", + "First name": "first_name", + "Last name": "last_name", + "Date of birth": ("dob", fmt_date), + "Phone": "phone", + "Years with motorcycle endorsement": "years_endorsed", + "Completed a rider safety course in the last 3 years": "safety_course", + "Street address": "street", + "City": "city", + "State": "state", + "ZIP": "zip", + "Annual mileage": "annual_miles", + "Liability limits (BI/PD)": "bi_pd_limits", + "Collision deductible": "collision_deductible", + "Comprehensive deductible": "comprehensive_deductible", + "Custom parts and equipment": "cpe_coverage", + "Roadside coverage": "roadside", +} + +NAIVE_LABELS: dict[str, Any] = { + "Effective date": ("policy.effective_date", fmt_date), + "Prior motorcycle insurance": "rider.prior_insurance", + "First name": "rider.first_name", + "Last name": "rider.last_name", + "Date of birth": ("rider.date_of_birth", fmt_date), + "Phone": "rider.phone", + "Years with motorcycle endorsement": "rider.years_endorsed", + "Completed a rider safety course in the last 3 years": "rider.safety_course", + "Street address": "garaging.street", + "City": "garaging.city", + "State": "garaging.state", + "ZIP": "garaging.zip", + "Annual mileage": "usage.mileage", + "Liability limits (BI/PD)": "coverage.liability_limits", + "Collision deductible": "coverage.collision_deductible", + "Comprehensive deductible": "coverage.comprehensive_deductible", + "Custom parts and equipment": "coverage.cpe_amount", + "Roadside coverage": "coverage.roadside", +} + +SUMMARY_FIELDS = {k: (v if isinstance(v, str) else v[0]) for k, v in REFERENCE_LABELS.items()} +ORDER = ["basics", "rider", "garaging", "motorcycles", "coverage"] +CPE = "Custom parts and equipment" + + +def _sign_in(page: Any, src: Source) -> None: + page.get_by_label("Agent code", exact=True).fill(src.creds["username"]) + page.get_by_label("Password", exact=True).fill(src.creds["password"]) + page.get_by_role("button", name="Sign in").click() + page.wait_for_url(re.compile(r".*/rater/")) + + +def _panel(page: Any, key: str) -> Any: + p = page.locator(f'section.panel[data-panel="{key}"]') + hdr = p.locator("button.acc") + if hdr.get_attribute("aria-expanded") != "true": + hdr.click() + p.locator(".body").wait_for(state="visible") + return p + + +def _texts(src: Source, scope: Any, labels: list[str]) -> None: + for label in labels: + fill_text(src, scope.get_by_label(label, exact=True), label) + + +def _bikes(src: Source) -> list[dict[str, Any]]: + if src.kind == "reference": + return list(getattr(src, "expected")["motorcycles"]) + return list(src.facts.get("motorcycles", [])) + + +def _add_bike(page: Any, src: Source, bike: dict[str, Any]) -> None: + page.get_by_role("button", name="Add motorcycle").click() + dlg = page.locator("#bike") + dlg.wait_for(state="visible") + src.note("VIN") + dlg.get_by_label("VIN", exact=True).fill(str(bike["vin"])) + with page.expect_popup() as info: + dlg.get_by_role("button", name="Decode VIN").click() + pop = info.value + pop.wait_for_load_state() + models = [t.strip() for t in pop.locator("td.model").all_inner_texts()] + if not models: + raise DriverError(f"VIN {bike['vin']} did not decode") + src.note("Model") + idx = src.pick("Model", models, str(bike.get("model", ""))) + try: + pop.locator("[data-pick]").nth(idx).click(timeout=5000) + except Exception: + if not pop.is_closed(): # the popup closes itself on click; that is fine + raise + if not wait_until(lambda: dlg.get_by_label("Model", exact=True).input_value().strip(), 5): + raise DriverError("decoded vehicle did not reach the dialog") + src.note("Ownership") + own = dlg.get_by_label("Ownership", exact=True) + opts = [(v, t) for v, t in own.evaluate("s => [...s.options].map(o => [o.value || o.text, o.text])") if v != "-- Select --"] + want = bike.get("ownership") + value = find_option(src, str(want), opts) if want else (opts[0][0] if src.fallback_first else None) + if value is None: + raise DriverError(f"Ownership: no option for {want!r}") + own.select_option(value) + lien = dlg.get_by_label("Lienholder name", exact=True) + if lien.is_visible(): + src.note("Lienholder name") + if bike.get("lienholder"): + lien.fill(str(bike["lienholder"])) + dlg.get_by_role("button", name="Add to quote").click() + page.wait_for_timeout(150) + if dlg.evaluate("d => d.open"): + raise DriverError(f"motorcycle not added: {page.locator('#bike-err').inner_text()}") + + +def _cpe_worksheet(page: Any, src: Source) -> None: + page.get_by_role("button", name="CPE worksheet").click() + dlg = page.locator("#cpe") + dlg.wait_for(state="visible") + items = src.facts["coverage.cpe_items"] + for n, item in enumerate(items, 1): + dlg.get_by_role("button", name="Add item").click() + dlg.get_by_label(f"Item {n}", exact=True).fill(str(item["item"])) + dlg.get_by_label(f"Value {n}", exact=True).fill(str(item["value"])) + shown = dlg.locator("#cpe-total").inner_text() + m = re.search(r"\$([\d,]+)", shown) + if not m: + raise DriverError(f"CPE worksheet shows no total: {shown!r}") + displayed = int(m.group(1).replace(",", "")) + dlg.get_by_role("button", name="Apply total").click() + dlg.wait_for(state="hidden") + field = page.get_by_label(CPE, exact=True) + src.note(CPE) + fix = src.estimator(CPE, displayed, field.input_value()) + if fix is not None: + field.fill(fix) + src.events.append("estimator_corrected") + + +def _fill(page: Any, src: Source, key: str) -> None: + p = _panel(page, key) + if key == "basics": + fill_text(src, p.get_by_label("Effective date", exact=True), "Effective date") + fill_select(src, p.get_by_label("Prior motorcycle insurance", exact=True), "Prior motorcycle insurance") + elif key == "rider": + _texts(src, p, ["First name", "Last name", "Date of birth", "Phone", "Years with motorcycle endorsement"]) + label = "Completed a rider safety course in the last 3 years" + fill_select(src, p.get_by_label(label, exact=True), label) + elif key == "garaging": + _texts(src, p, ["Street address", "City"]) + fill_select(src, p.get_by_label("State", exact=True), "State") + fill_text(src, p.get_by_label("ZIP", exact=True), "ZIP") + elif key == "motorcycles": + grid = page.locator("#bike-grid tbody tr") + while grid.count(): + grid.first.get_by_role("button", name="Remove").click() + for bike in _bikes(src): + _add_bike(page, src, bike) + fill_text(src, p.get_by_label("Annual mileage", exact=True), "Annual mileage") + else: + for label in ("Liability limits (BI/PD)", "Collision deductible", "Comprehensive deductible"): + fill_select(src, p.get_by_label(label, exact=True), label) + if "coverage.cpe_items" in src.facts: + _cpe_worksheet(page, src) + else: + fill_text(src, p.get_by_label(CPE, exact=True), CPE) + fill_select(src, p.get_by_label("Roadside coverage", exact=True), "Roadside coverage") + + +def _save(page: Any, key: str) -> str: + p = page.locator(f'section.panel[data-panel="{key}"]') + p.locator(f'[data-save="{key}"]').click() + + def state() -> str: + if "/agent/login" in page.url: + return "relogin" + try: + if not p.count(): + return "" + if page.locator("#banner .warn").count() and "timed out" in page.locator("#banner").inner_text(timeout=1000): + return "" + if p.locator("[data-saved]").inner_text(timeout=1000).strip(): + return "ok" + errs = [t for t in p.locator("[data-err], [data-panel-err]").all_inner_texts() if t.strip()] + except Exception: + return "" + return "errors:" + "; ".join(errs) if errs else "" + + got = wait_until(state, 10) + if not got: + raise DriverError(f"panel {key}: no response to Save panel") + return got + + +def _panels(page: Any, src: Source) -> None: + i = 0 + relogins = 0 + while i < len(ORDER): + key = ORDER[i] + _fill(page, src, key) + got = _save(page, key) + if got == "relogin": + relogins += 1 + if relogins > 2: + raise DriverError("session keeps ending") + page.wait_for_load_state() + _sign_in(page, src) + page.locator("section.panel").first.wait_for() + src.events.append("relogin") + i = 0 if src.restart_after_relogin else i + 1 + continue + if got.startswith("errors:"): + raise DriverError(f"panel {key} blocked: {got[7:]}") + i += 1 + + +def _rate(page: Any) -> None: + page.get_by_role("button", name="Rate this quote").click() + page.wait_for_url(re.compile(r".*/rater/(rated|worksheet\?msg=.*)$")) + if "/rater/rated" not in page.url: + raise DriverError(f"rating blocked: {page.locator('#banner').inner_text()}") + + +def _rated_rows(page: Any) -> dict[str, str]: + rows = {} + for tr in page.locator("#rated tr").all(): + tds = tr.locator("td") + if tds.count() == 2: + rows[tds.nth(0).inner_text().strip()] = tds.nth(1).inner_text().strip() + return rows + + +def _bikes_differ(page: Any, src: Source) -> bool: + if src.kind != "reference": + return False + shown = sorted(norm(t) for t in page.locator("#rated-bikes tbody tr td:nth-child(4)").all_inner_texts()) + want = sorted(norm(b["model"]) for b in getattr(src, "expected")["motorcycles"]) + return shown != want + + +def run(page: Any, base: str, src: Source) -> str: + page.goto(base + "/rater/worksheet") + if "/agent/login" in page.url: + _sign_in(page, src) + page.locator("section.panel").first.wait_for() + _panels(page, src) + _rate(page) + for _ in range(3): + bad = summary_mismatches(src, _rated_rows(page), SUMMARY_FIELDS) + if not bad and not _bikes_differ(page, src): + break + src.events.append("summary_fix:" + ",".join(bad or ["motorcycles"])) + if bad == ["city"] and page.locator("#std-notice").count(): + page.get_by_role("button", name="Use address as entered").click() + page.wait_for_url(re.compile(r".*/rater/rated$")) + continue + page.get_by_role("link", name="Back to worksheet").click() + page.locator("section.panel").first.wait_for() + _panels(page, src) + _rate(page) + else: + raise DriverError("rated quote still differs from the answer key") + page.get_by_role("button", name="Submit application").click() + page.wait_for_url(re.compile(r".*/rater/quote/CVQ-\d+$")) + if not page.locator("#quote-ref").inner_text().strip(): + raise DriverError("no quote reference shown") + return "submitted" diff --git a/packages/flow/benchmark/form_tx_heldout4/drivers/kit.py b/packages/flow/benchmark/form_tx_heldout4/drivers/kit.py new file mode 100644 index 0000000000..23c61c2432 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/drivers/kit.py @@ -0,0 +1,82 @@ +"""Small Playwright helpers shared by the set-4 drivers.""" + +from __future__ import annotations + +import time +from typing import Any + +from ..scoring import load_answer_key, normalize +from .base import DriverError, Source, find_option, norm + + +def fill_text(src: Source, loc: Any, label: str) -> None: + """Type the source's value for ``label``; no value keeps what is there.""" + src.note(label) + want = src.get(label) + if want is None: + return + loc.fill(str(want)) + + +def fill_select(src: Source, loc: Any, label: str) -> None: + """Choose the option for ``label`` in a native `` + +""") + + def _done(self, ref: str) -> str: + with self.lock: + rec = next((r for r in self.submissions if r.get("quote_ref") == ref), None) + if rec is None: + return "

    Quote not found

    " + rows = "".join(f"
    {esc(r['label'])}
    {esc(r['value'])}
    " + for r in self._rows(rec)) + return SHELL.replace("{{BODY}}", f""" +

    {esc(rec['pet_name'])}'s quote is ready

    +

    Quote reference {esc(ref)}

    +

    {esc(money(rec['premium']))} per year

    +
    {rows}
    """) + + +SHELL = """ +Thistlebrook Pet Health +
    Thistlebrook Pet Health
    {{BODY}}""" + +APP = SHELL.replace("{{BODY}}", r""" + +
    +""").replace("__MONTHS__", repr(MONTHS).replace("'", '"')).replace("__YEARS__", repr(YEARS)).replace( + "__ZIPS__", repr(ZIP_STATES).replace("'", '"')) diff --git a/packages/flow/benchmark/form_tx_heldout4/wrenfield.py b/packages/flow/benchmark/form_tx_heldout4/wrenfield.py new file mode 100644 index 0000000000..c29b0ec58f --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4/wrenfield.py @@ -0,0 +1,565 @@ +"""Wrenfield Mutual: condo unit-owners (HO-6) quote, consumer single-page wizard. + +One page renders four steps (unit, owner, coverage, review) with a stepper. +Each step saves through a JSON API; the review page reads the stored draft +back from the server. The association field is an async ARIA combobox. The +coverage step has an improvements estimator dialog. When the session ends, +an in-page sign-in dialog appears. +""" + +from __future__ import annotations + +import json +import re +from typing import Any + +from .common import ( + BasePortal, + Request, + Response, + esc, + money, + parse_date, + parse_int, + slow, +) + +RECORD_FIELDS = [ + "association", "street", "unit_number", "city", "state", "zip", "year_built", "floor", + "occupancy", "seasonal_credit", "wood_stove", + "first_name", "last_name", "dob", "email", "phone", + "improvements", "personal_property", "loss_assessment", "water_backup", "deductible", "start_date", +] + +ASSOCIATIONS = [ + "Larch Hollow Condominium Association (Tigard, OR)", + "Larch Hollow Condominium Association (Beaverton, OR)", + "Quarry Bend Lofts Owners Association (Portland, OR)", + "Fennimore Court Condominiums (Salem, OR)", + "Tidewater Row Condominium Association (Astoria, OR)", + "Millrace Commons Owners Association (Eugene, OR)", + "Juniper Ridge Terrace Condominiums (Bend, OR)", + "Harrowgate Towers Condominium (Vancouver, WA)", + "Harrowgate Park Condominium Owners (Vancouver, WA)", + "Sablewood Flats Condominium Association (Spokane, WA)", + "Orchard Lane Townhome Condominiums (Medford, OR)", + "Kestrel Point Condominium Association (Bellingham, WA)", + "Copperline Station Lofts (Boise, ID)", +] +STATES = ["OR", "WA", "ID", "CA", "NV"] +OCCUPANCY = ["Owner-occupied (primary residence)", "Secondary or seasonal home", "Rented to others"] +YES_NO = ["Yes", "No"] +LOSS_ASSESSMENT = ["$1,000", "$10,000", "$25,000", "$50,000"] +WATER_BACKUP = ["Not included", "$5,000", "$10,000", "$25,000"] +DEDUCTIBLES = [500, 1000, 2500] +FINISH = {"Builder grade": 45, "Upgraded": 70, "Custom luxury": 110} + +STEPS = { + 1: ["association", "street", "unit_number", "city", "state", "zip", "year_built", "floor", + "occupancy", "seasonal_credit", "wood_stove"], + 2: ["first_name", "last_name", "dob", "email", "phone"], + 3: ["improvements", "personal_property", "loss_assessment", "water_backup", "deductible", "start_date"], +} +LABELS = { + "association": "Condominium association", "street": "Unit street address", "unit_number": "Unit number", + "city": "City", "state": "State", "zip": "ZIP code", "year_built": "Year the building was built", + "floor": "Floor the unit is on", "occupancy": "How is the unit occupied?", + "seasonal_credit": "Seasonal occupancy credit", "wood_stove": "Wood-burning stove or fireplace insert", + "first_name": "First name", "last_name": "Last name", "dob": "Date of birth", "email": "Email", + "phone": "Mobile phone", "improvements": "Unit improvements and betterments (Coverage A)", + "personal_property": "Personal property (Coverage C)", "loss_assessment": "Loss assessment", + "water_backup": "Water and sewer backup", "deductible": "Deductible", "start_date": "Policy start date", +} +INT_FIELDS = {"year_built", "floor", "improvements", "personal_property", "deductible"} + + +def _us(iso: str) -> str: + m = re.fullmatch(r"(\d{4})-(\d{2})-(\d{2})", iso or "") + return f"{m.group(2)}/{m.group(3)}/{m.group(1)}" if m else (iso or "") + + +class Wrenfield(BasePortal): + portal_id = "wrenfield" + cookie = "wf_sid" + + def fresh_draft(self) -> dict[str, Any]: + d: dict[str, Any] = {f: "" for f in RECORD_FIELDS} + d.update(water_backup="Not included", deductible=1000) + d.update(self.config.get("prefill", {})) + return d + + # ---- validation -------------------------------------------------- + def _clean(self, step: int, data: dict[str, Any]) -> tuple[dict[str, Any], dict[str, str]]: + out: dict[str, Any] = {} + err: dict[str, str] = {} + for f in STEPS[step]: + v = str(data.get(f, "") if data.get(f) is not None else "").strip() + out[f] = v + if step == 1: + if out["association"] not in ASSOCIATIONS: + err["association"] = "Choose your association from the list." + for f in ("street", "unit_number", "city"): + if not out[f]: + err[f] = "Required." + if out["state"] not in STATES: + err["state"] = "Choose a state." + if not re.fullmatch(r"\d{5}", out["zip"]): + err["zip"] = "Enter a 5-digit ZIP code." + yb = parse_int(out["year_built"]) + if yb is None or not 1850 <= yb <= 2026: + err["year_built"] = "Enter a year between 1850 and 2026." + fl = parse_int(out["floor"]) + if fl is None or not 1 <= fl <= 80: + err["floor"] = "Enter a floor number." + if out["occupancy"] not in OCCUPANCY: + err["occupancy"] = "Choose how the unit is occupied." + if out["occupancy"] == OCCUPANCY[1]: + if out["seasonal_credit"] not in YES_NO: + err["seasonal_credit"] = "Answer this question." + else: + out["seasonal_credit"] = "" + if out["wood_stove"] not in YES_NO: + err["wood_stove"] = "Answer this question." + elif step == 2: + for f in ("first_name", "last_name"): + if not out[f]: + err[f] = "Required." + iso = parse_date(out["dob"]) + if not iso: + err["dob"] = "Use MM/DD/YYYY." + out["dob"] = iso or out["dob"] + if not re.fullmatch(r"[^@\s]+@[^@\s]+\.[a-z]+", out["email"], re.I): + err["email"] = "Enter a valid email." + if len(re.sub(r"\D", "", out["phone"])) != 10: + err["phone"] = "Enter a 10-digit phone number." + else: + for f in ("improvements", "personal_property"): + n = parse_int(out[f]) + if n is None or n <= 0: + err[f] = "Enter a whole-dollar amount." + if out["loss_assessment"] not in LOSS_ASSESSMENT: + err["loss_assessment"] = "Choose a limit." + if out["water_backup"] not in WATER_BACKUP: + err["water_backup"] = "Choose an option." + if parse_int(out["deductible"]) not in DEDUCTIBLES: + err["deductible"] = "Choose a deductible." + iso = parse_date(out["start_date"]) + if not iso: + err["start_date"] = "Use MM/DD/YYYY." + out["start_date"] = iso or out["start_date"] + for f in INT_FIELDS & set(out): + n = parse_int(out[f]) + if n is not None: + out[f] = n + return out, err + + def _premium(self, d: dict[str, Any]) -> int: + base = 180 + int(d.get("improvements") or 0) * 0.0021 + int(d.get("personal_property") or 0) * 0.0035 + base *= {500: 1.12, 1000: 1.0, 2500: 0.86}.get(int(d.get("deductible") or 1000), 1.0) + if d.get("occupancy") == OCCUPANCY[2]: + base *= 1.3 + if d.get("seasonal_credit") == "Yes": + base *= 0.92 + if d.get("wood_stove") == "Yes": + base += 45 + base += {"Not included": 0, "$5,000": 38, "$10,000": 61, "$25,000": 104}.get(d.get("water_backup"), 0) + return int(round(base)) + + def _display(self, f: str, v: Any) -> str: + if v in ("", None): + return "—" + if f in ("improvements", "personal_property", "deductible"): + return money(int(v)) + if f in ("dob", "start_date"): + return _us(str(v)) + return str(v) + + # ---- routing ----------------------------------------------------- + def route(self, req: Request) -> Response: + p = req.path + if p == "/": + return Response.redirect("/condo/quote") + if p == "/account/login": + if req.method == "POST": + if self.check_login(req.form.get("username", ""), req.form.get("password", "")): + nxt = req.form.get("next") or "/condo/quote" + if not nxt.startswith("/"): + nxt = "/condo/quote" + return Response.redirect(nxt).set_cookie(self.cookie, self.new_session()) + return Response.html(self._login_page(req.form.get("next", ""), "Email or password is incorrect."), 401) + return Response.html(self._login_page(req.query.get("next", ""), "")) + if p == "/api/session" and req.method == "POST": + body = req.json or {} + if self.check_login(str(body.get("username", "")), str(body.get("password", ""))): + return Response.json_({"ok": True}).set_cookie(self.cookie, self.new_session()) + return Response.json_({"ok": False, "error": "Email or password is incorrect."}, 401) + if p == "/condo/quote": + if not self.has_session(req): + return Response.redirect("/account/login?next=/condo/quote") + return Response.html(APP_HTML) + m = re.fullmatch(r"/condo/quote/(WF-\d+)", p) + if m: + if not self.has_session(req): + return Response.redirect("/account/login?next=" + p) + return self._quote_page(m.group(1)) + if p.startswith("/api/condo/"): + if not self.has_session(req): + return Response.json_({"ok": False, "error": "session_expired"}, 401) + return self._api(req, p[len("/api/condo/"):]) + return Response.html("

    Not found

    ", 404) + + def _api(self, req: Request, what: str) -> Response: + if what == "draft": + with self.lock: + d = {f: self.draft.get(f, "") for f in RECORD_FIELDS} + for f in ("dob", "start_date"): + d[f] = _us(str(d[f])) + return Response.json_({"draft": d}) + if what.startswith("associations"): + q = re.sub(r"\s+", " ", req.query.get("q", "")).strip().casefold() + slow(0.35) + hits = [a for a in ASSOCIATIONS if len(q) >= 3 and q in a.casefold()][:6] + return Response.json_({"results": hits}) + if what == "step" and req.method in ("POST", "PUT"): + body = req.json or {} + step = int(body.get("step") or 0) + if step not in STEPS: + return Response.json_({"ok": False, "error": "bad step"}, 400) + if step == 3 and self.fire_once("save:coverage"): + with self.lock: + self.drop_sessions() + self.draft = self.fresh_draft() + return Response.json_({"ok": False, "error": "session_expired"}, 401) + clean, err = self._clean(step, body.get("data") or {}) + if err: + return Response.json_({"ok": False, "errors": err}, 422) + with self.lock: + self.draft.update(clean) + if step == 3 and self.config.get("promo_water_backup") and "promo" not in self.fired: + self.fired.add("promo") + self.draft["water_backup"] = self.config["promo_water_backup"] + return Response.json_({"ok": True}) + if what == "review": + with self.lock: + d = dict(self.draft) + rows = [] + for step in (1, 2, 3): + for f in STEPS[step]: + if f == "seasonal_credit" and d.get("occupancy") != OCCUPANCY[1]: + continue + rows.append({"step": step, "label": LABELS[f], "value": self._display(f, d.get(f))}) + return Response.json_({"rows": rows, "premium": money(self._premium(d))}) + if what == "submit" and req.method == "POST": + if not (req.json or {}).get("confirm"): + return Response.json_({"ok": False, "error": "Confirm the information first."}, 422) + with self.lock: + d = dict(self.draft) + rec: dict[str, Any] = {} + for step in (1, 2, 3): + clean, err = self._clean(step, {f: (_us(str(d[f])) if f in ("dob", "start_date") else d[f]) + for f in STEPS[step]}) + if err: + return Response.json_({"ok": False, "error": f"Step {step} is incomplete.", "errors": err}, 422) + rec.update(clean) + with self.lock: + self.quote_seq += 1 + ref = f"WF-{604200 + self.quote_seq}" + rec["quote_ref"] = ref + rec["premium"] = self._premium(rec) + self.store_submission(rec) + return Response.json_({"ok": True, "quote_ref": ref}) + return Response.json_({"error": "not found"}, 404) + + # ---- pages ------------------------------------------------------- + def _login_page(self, nxt: str, error: str) -> str: + err = f'' if error else "" + return PAGE.replace("{{BODY}}", f""" +
    +

    Sign in to Wrenfield

    +

    Sign in to start or continue your condo quote.

    + {err} +
    + + + + +
    +
    """) + + def _quote_page(self, ref: str) -> Response: + with self.lock: + rec = next((r for r in self.submissions if r.get("quote_ref") == ref), None) + if rec is None: + return Response.html("

    Quote not found

    ", 404) + rows = "".join( + f"{esc(LABELS[f])}{esc(self._display(f, rec.get(f)))}" + for f in RECORD_FIELDS if not (f == "seasonal_credit" and not rec.get(f)) + ) + return Response.html(PAGE.replace("{{BODY}}", f""" +
    +

    Your condo quote is ready

    +

    Quote reference {esc(ref)}

    +

    Estimated annual premium {esc(money(rec['premium']))}

    + {rows}
    +

    A Wrenfield agent will contact you to finalize your policy.

    +
    """)) + + +PAGE = """ +Wrenfield Mutual | Condo insurance quote + + +
    Wrenfield Mutual Condo unit-owners insurance
    +{{BODY}} +""" + + +def _select(fid: str, options: list[str], placeholder: bool = True) -> str: + opts = ('' if placeholder else "") + "".join( + f'' for o in options + ) + return f'

    ' + + +def _text(fid: str, placeholder: str = "", kind: str = "text") -> str: + ph = f' placeholder="{esc(placeholder)}"' if placeholder else "" + return f'

    ' + + +_DEDUCT = "".join( + f'' for d in DEDUCTIBLES +) + +APP_BODY = f""" +
    + +
    + + + + + +
    +
    + +

    Improvements estimator

    +

    Estimate the value of the walls-in finishes you own.

    + + + +

    Estimated improvements value: —

    + + +
    + +

    Your session has ended

    +

    For your security we signed you out. Sign in again to continue.

    + + +

    + +
    +""" + +APP_JS = r""" + +""".replace("__RATES__", json.dumps(FINISH)).replace("__STEPS__", json.dumps({str(k): v for k, v in STEPS.items()})) + +APP_HTML = PAGE.replace("{{BODY}}", APP_BODY + APP_JS) diff --git a/packages/flow/benchmark/form_tx_heldout4_run/PREREGISTRATION.md b/packages/flow/benchmark/form_tx_heldout4_run/PREREGISTRATION.md new file mode 100644 index 0000000000..fbc65295c9 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4_run/PREREGISTRATION.md @@ -0,0 +1,174 @@ +# Pre-registration: Set 4, pack compiler and round-3 fixes on three new portals + +Written 2026-11-21, before anyone on the form-layer side opened the new +portals (code, cases, intakes or answer key), and before any run on them. +Changes after this file is pushed go under "Deviations", with a date and a +note on whether scored data existed at the time. + +## Question + +The third held-out run (`../form_tx_heldout3_run/RESULTS.md`) lost most cases to +five causes: +- false stops on UI defaults; +- stops that could not name their field; +- identical Select rows; +- popups the dev case never opened; +- one false receipt, on a bound field shown with no intake value. + +Round 3 adds, as general mechanisms with no portal names: +- a fail-closed stop for a bound field shown with no intake value (unless the + pack marks it `optional`); +- a pre-submit comparison against the review page; +- a strict type-ahead pick, where a pick counts only when the click changed the + field and a leading part never matches; +- coverage by subject, with no verdict meaning `not_checked`; +- a setup-time pack compiler from dev-case demonstrations + (`openadapt_flow/form_tx/demo_compiler.py`). + +The compiler produces a defaults table, row key cells, option codecs, +unopened launchers, and error routes (suggest-only). + +On three portals neither the layer nor the compiler was built against: +1. Do these deterministic fixes halve false stops on clean cases compared with + the round-2 engine and packs written without the compiler? +2. Do they do it without a false receipt or a silent wrong submit? + +## What is frozen + +- **Portals and answer key:** branch `claude/form-tx-heldout4-portals` at + `b4180ba79ed71ef6e9d718e6cf6076dbe183f2f3`, written by a fresh agent that + was told not to read the form layer, its runs, packs, results or the other + held-out sets. It reported back only the branch, the hash, the answer key's + sha256 and the counts. `answer_key.json` sha256: + `7fe904358bf0db41cbeae756cc776cc2a90fdf7f90c5128c8344103e8560f578`. + - Three portals: `wrenfield`, `corvane` and `thistlebrook`, one dev case + each, 32 scored cases (reported: 15 `submit_clean`, 17 trap). + - This `corvane` is a different portal from set 3's `corvane`; the portal + author picked the name independently. +- **Engines:** + - B0 runs `claude/form-tx-rework` at `866aac8c1`, the engine before round 3. + - B runs the round-3 engine at the commit in `ENGINE_SHA_B`, set and pushed + before the first scored case (see D-rules below). + - Both freezes cover `packages/flow/openadapt_flow/`. +- **Oracle:** the portal's stored record, scored by the portal author's + `score_case`. + +## Procedure + +1. Push this file. Only then merge the portals branch into the run branch. +2. **Demonstrations.** The portal author's careful-human driver runs on each + dev case only. Before every click and every value change (fill, select, + check, type), the recorder saves what the surface sees + (`record_demo.py`), so the first sighting of each control is its + blank-form value. + - Only one dev case exists per portal, so every pack uses exactly + **one demonstration** plus this blank-form probe. + - The defaults table therefore proves a default only where the dev intake + asked for a value other than the one the blank form showed. T1 cases + whose default equals the dev intake value stay unproven. +3. **Packs.** Each pack is written by a fresh agent that gets only the dev + intake, the dev demonstration, its own dev-case run output, the pack + format, and one earlier pack as an example. + - **B0 packs:** 3 agents. They do not get the compiler report and must not + use the round-3 pack fields: `optional`, `review_readbacks`, + `ignored_intake_keys` beyond what the B0 engine supports, and the + compiler. + - **B packs:** 3 different agents. They also get the compiler's report for + their portal and may use every engine feature at `ENGINE_SHA_B`. + - No author reads portal source, drivers, scored intakes or the answer key. + - Packs are committed before the first scored case. +4. **Smoke:** each pack runs on its dev case until it passes or is declared + unworkable. An engine change for B is allowed only before the first scored + case, as a general fix with a test and no portal names, recorded here as a + deviation that re-pins `ENGINE_SHA_B`. The B0 engine never changes. +5. **Scored run:** every scored case runs once per arm, in `spec.cases` + order, headless Chromium on the zenbook lab, with a fresh `load_case` + before each case, a 180 s wall limit per case and at most 12 stops per + case. + - Arm order: A, B0, B. + - Per-control logs (`run.py --control-log`) are kept for B0 and B. +6. Any change after the first scored case is a labelled post-hoc row and never + replaces a frozen row. + +## Arms + +- **A, unguarded:** the portal author's `naive_filler.py`, run once. +- **B0:** round-2 engine, packs without the compiler. +- **B:** round-3 engine, packs with the compiler report. + +The scripted operator is unchanged from the earlier runs (`run.py`). + +## Metrics (denominators from the answer key) + +These are the same as in the earlier runs, per arm, per portal and pooled: +- correct submissions, and correct and `verified_done` with a receipt; +- wrong submitted, split into false proof, flagged after submit, and silent; +- trap cases stopped before submit, and stopped then correct; +- clean cases with a false stop; +- verified share; +- `not_checked` fields; +- hand-backs; +- unsubmitted cases; +- errors. + +**Reported by type.** Wrong submits, clean-case false stops and `not_checked` +fields are each listed with a cause type, from the screen-verifier taxonomy: +- T1, UI default versus stored prefill; +- T2, a control the demo skipped; +- T3, identical Select rows; +- T4, a popup the demo never opened; +- T5, a look-alike option; +- T6, which field an error belongs to; +- T8, a stale prefill; +- other. + +The cause type is assigned after the run by the form-layer author from the +rows and per-control logs. That is a judgement and is labelled as one. For +each pack the results also state how many demonstrations it used, which is +one, and which compiler findings it adopted. + +**Secondary metric (declared under D1, before any scored case).** For every +case B ends `verified_done`, the result records which read produced it: +- the page the run landed on after commit (`same_screen`); +- a new navigation or search that fetched the record from the server again + (`fresh_navigation`); +- a separate session. + +The engine's `SummaryVerdict.read_route` holds this; it is reporting only. +Set 4's verified share is reported both ways: +- under today's meaning; +- under the shared check-level ladder, where a same-screen read counts as + SHOWN and only a fresh reload, a separate session or the system of record + counts as VERIFIED. + +## Criteria (fixed now) + +- **Halving test (kill):** B's clean-case false stops must be at most half of + B0's, counted over all 15 clean cases. If B0 has no clean false stop, the + test cannot be met and is reported as not applicable. If B misses it, the + deterministic-fix claim is killed. +- **Hard gates for B:** + - zero false receipts, meaning a wrong value submitted with `verified_done`; + - zero silent wrong submits. + + Either one failing kills the receipt claim or the nothing-unflagged claim, + whatever the halving test says. +- **K1 to K4 for B**, with the same bars as before (K1 at least 75%, K2 at + most 10%, K3 at least 50%, K4 zero), reported next to B0's. +- **Small n:** 32 cases, 15 of them clean. One clean case is about 7 points + of K2. + +## What this cannot show + +Three synthetic portals by one author, each pack built from one +demonstration. Nothing here speaks to real carriers, real sessions or real +operators. + +## Deviations + +**D1, 2026-11-21, before any scored case.** Two additions: +- **Secondary metric.** The read-route metric above, added at the + coordinator's request. It does not change any criterion. +- **Engine pin for B.** `ENGINE_SHA_B` is set to the round-3 head. That head + includes the read-route field, which is reporting only, and the merge of the + #2429 and #2448 heads. diff --git a/packages/flow/benchmark/form_tx_heldout4_run/demos/corvane.jsonl b/packages/flow/benchmark/form_tx_heldout4_run/demos/corvane.jsonl new file mode 100644 index 0000000000..01376f08fc --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4_run/demos/corvane.jsonl @@ -0,0 +1,36 @@ +FORM_TX_DEMO {"portal": "corvane", "step": 0, "why": "before fill selector='internal:label=\"Agent code\"s'>", "frame_url": "http://127.0.0.1:45451/agent/login?expired=1&next=/rater/worksheet", "is_main": true, "controls": [{"control_id": "agent_code", "dom_selector": "#agent_code", "tag": "input", "input_type": "text", "name_attr": "agent_code", "id_attr": "agent_code", "label_text": "Agent code", "section_text": "Corvane AgentLink", "checked": null, "visible": true, "row_text": "Agent code", "row_cells": ["Agent code", ""]}, {"control_id": "password", "dom_selector": "#password", "tag": "input", "input_type": "password", "name_attr": "password", "id_attr": "password", "label_text": "Password", "section_text": "Corvane AgentLink", "checked": null, "visible": true, "is_secret": true, "row_text": "Password", "row_cells": ["Password", ""]}, {"control_id": "ctrl_2", "dom_selector": "body > div > form > button", "tag": "button", "label_text": "Sign in", "section_text": "Corvane AgentLink", "checked": null, "visible": true}], "text_pairs": [], "banners": ["Your session timed out. Sign in to continue rating."], "modals": [], "title": "Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 1, "why": "before fill selector='internal:label=\"Password\"s'>", "frame_url": "http://127.0.0.1:45451/agent/login?expired=1&next=/rater/worksheet", "is_main": true, "controls": [{"control_id": "agent_code", "dom_selector": "#agent_code", "tag": "input", "input_type": "text", "name_attr": "agent_code", "id_attr": "agent_code", "label_text": "Agent code", "section_text": "Corvane AgentLink", "current_value": "CVA-40518", "checked": null, "visible": true, "row_text": "Agent code", "row_cells": ["Agent code", ""]}, {"control_id": "password", "dom_selector": "#password", "tag": "input", "input_type": "password", "name_attr": "password", "id_attr": "password", "label_text": "Password", "section_text": "Corvane AgentLink", "checked": null, "visible": true, "is_secret": true, "row_text": "Password", "row_cells": ["Password", ""]}, {"control_id": "ctrl_2", "dom_selector": "body > div > form > button", "tag": "button", "label_text": "Sign in", "section_text": "Corvane AgentLink", "checked": null, "visible": true}], "text_pairs": [], "banners": ["Your session timed out. Sign in to continue rating."], "modals": [], "title": "Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 2, "why": "before click selector='internal:role=button[name=\"Sign in\"i]'>", "frame_url": "http://127.0.0.1:45451/agent/login?expired=1&next=/rater/worksheet", "is_main": true, "controls": [{"control_id": "agent_code", "dom_selector": "#agent_code", "tag": "input", "input_type": "text", "name_attr": "agent_code", "id_attr": "agent_code", "label_text": "Agent code", "section_text": "Corvane AgentLink", "current_value": "CVA-40518", "checked": null, "visible": true, "row_text": "Agent code", "row_cells": ["Agent code", ""]}, {"control_id": "password", "dom_selector": "#password", "tag": "input", "input_type": "password", "name_attr": "password", "id_attr": "password", "label_text": "Password", "section_text": "Corvane AgentLink", "current_value": "", "checked": null, "visible": true, "is_secret": true, "row_text": "Password", "row_cells": ["Password", ""]}, {"control_id": "ctrl_2", "dom_selector": "body > div > form > button", "tag": "button", "label_text": "Sign in", "section_text": "Corvane AgentLink", "checked": null, "visible": true}], "text_pairs": [], "banners": ["Your session timed out. Sign in to continue rating."], "modals": [], "title": "Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 3, "why": "before fill selector='section.panel[data-panel=\"basics\"] >> internal:label=\"Effective date\"s'>", "frame_url": "http://127.0.0.1:45451/rater/worksheet", "is_main": true, "controls": [{"control_id": "hdr-basics", "dom_selector": "#hdr-basics", "tag": "button", "id_attr": "hdr-basics", "label_text": "Quote basics", "section_text": "Quote basics", "checked": null, "visible": true, "row_text": "Quote basics"}, {"control_id": "effective_date", "dom_selector": "#effective_date", "tag": "input", "input_type": "text", "name_attr": "effective_date", "id_attr": "effective_date", "label_text": "Effective date", "section_text": "Quote basics", "checked": null, "visible": true, "row_text": "Effective date", "row_cells": ["Effective date", ""]}, {"control_id": "prior_insurance", "dom_selector": "#prior_insurance", "tag": "select", "name_attr": "prior_insurance", "id_attr": "prior_insurance", "label_text": "Prior motorcycle insurance", "section_text": "Quote basics", "checked": null, "visible": true, "options": [{"value": "", "label": "-- Select --"}, {"value": "None", "label": "None"}, {"value": "Less than 6 months", "label": "Less than 6 months"}, {"value": "6 months or more", "label": "6 months or more"}], "row_text": "Prior motorcycle insurance-- Select --NoneLess than 6 months6 months or more", "row_cells": ["Prior motorcycle insurance", "-- Select --NoneLess than 6 months6 months or more"]}, {"control_id": "ctrl_3", "dom_selector": "#body-basics > button", "tag": "button", "label_text": "Save panel", "section_text": "Quote basics", "checked": null, "visible": true}, {"control_id": "hdr-rider", "dom_selector": "#hdr-rider", "tag": "button", "id_attr": "hdr-rider", "label_text": "Rider", "section_text": "Rider", "checked": null, "visible": true, "row_text": "Rider"}, {"control_id": "hdr-garaging", "dom_selector": "#hdr-garaging", "tag": "button", "id_attr": "hdr-garaging", "label_text": "Garaging address", "section_text": "Garaging address", "checked": null, "visible": true, "row_text": "Garaging address"}, {"control_id": "hdr-motorcycles", "dom_selector": "#hdr-motorcycles", "tag": "button", "id_attr": "hdr-motorcycles", "label_text": "Motorcycles", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "Motorcycles Annual mileage VINYearMakeModelcc OwnershipLienholder Add motorcycle Save panel"}, {"control_id": "hdr-coverage", "dom_selector": "#hdr-coverage", "tag": "button", "id_attr": "hdr-coverage", "label_text": "Coverage", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "Coverage"}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "id_attr": "rate", "label_text": "Rate this quote", "section_text": "Coverage", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 4, "why": "before select_option selector='section.panel[data-panel=\"basics\"] >> internal:label=\"Prior motorcycle insurance\"s'>", "frame_url": "http://127.0.0.1:45451/rater/worksheet", "is_main": true, "controls": [{"control_id": "hdr-basics", "dom_selector": "#hdr-basics", "tag": "button", "id_attr": "hdr-basics", "label_text": "Quote basics", "section_text": "Quote basics", "checked": null, "visible": true, "row_text": "Quote basics"}, {"control_id": "effective_date", "dom_selector": "#effective_date", "tag": "input", "input_type": "text", "name_attr": "effective_date", "id_attr": "effective_date", "label_text": "Effective date", "section_text": "Quote basics", "current_value": "12/01/2026", "checked": null, "visible": true, "row_text": "Effective date", "row_cells": ["Effective date", ""]}, {"control_id": "prior_insurance", "dom_selector": "#prior_insurance", "tag": "select", "name_attr": "prior_insurance", "id_attr": "prior_insurance", "label_text": "Prior motorcycle insurance", "section_text": "Quote basics", "checked": null, "visible": true, "options": [{"value": "", "label": "-- Select --"}, {"value": "None", "label": "None"}, {"value": "Less than 6 months", "label": "Less than 6 months"}, {"value": "6 months or more", "label": "6 months or more"}], "row_text": "Prior motorcycle insurance-- Select --NoneLess than 6 months6 months or more", "row_cells": ["Prior motorcycle insurance", "-- Select --NoneLess than 6 months6 months or more"]}, {"control_id": "ctrl_3", "dom_selector": "#body-basics > button", "tag": "button", "label_text": "Save panel", "section_text": "Quote basics", "checked": null, "visible": true}, {"control_id": "hdr-rider", "dom_selector": "#hdr-rider", "tag": "button", "id_attr": "hdr-rider", "label_text": "Rider", "section_text": "Rider", "checked": null, "visible": true, "row_text": "Rider"}, {"control_id": "hdr-garaging", "dom_selector": "#hdr-garaging", "tag": "button", "id_attr": "hdr-garaging", "label_text": "Garaging address", "section_text": "Garaging address", "checked": null, "visible": true, "row_text": "Garaging address"}, {"control_id": "hdr-motorcycles", "dom_selector": "#hdr-motorcycles", "tag": "button", "id_attr": "hdr-motorcycles", "label_text": "Motorcycles", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "Motorcycles Annual mileage VINYearMakeModelcc OwnershipLienholder Add motorcycle Save panel"}, {"control_id": "hdr-coverage", "dom_selector": "#hdr-coverage", "tag": "button", "id_attr": "hdr-coverage", "label_text": "Coverage", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "Coverage"}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "id_attr": "rate", "label_text": "Rate this quote", "section_text": "Coverage", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 5, "why": "before click selector='section.panel[data-panel=\"basics\"] >> [data-save=\"basics\"]'>", "frame_url": "http://127.0.0.1:45451/rater/worksheet", "is_main": true, "controls": [{"control_id": "hdr-basics", "dom_selector": "#hdr-basics", "tag": "button", "id_attr": "hdr-basics", "label_text": "Quote basics", "section_text": "Quote basics", "checked": null, "visible": true, "row_text": "Quote basics"}, {"control_id": "effective_date", "dom_selector": "#effective_date", "tag": "input", "input_type": "text", "name_attr": "effective_date", "id_attr": "effective_date", "label_text": "Effective date", "section_text": "Quote basics", "current_value": "12/01/2026", "checked": null, "visible": true, "row_text": "Effective date", "row_cells": ["Effective date", ""]}, {"control_id": "prior_insurance", "dom_selector": "#prior_insurance", "tag": "select", "name_attr": "prior_insurance", "id_attr": "prior_insurance", "label_text": "Prior motorcycle insurance", "section_text": "Quote basics", "current_value": "6 months or more", "checked": null, "visible": true, "options": [{"value": "", "label": "-- Select --"}, {"value": "None", "label": "None"}, {"value": "Less than 6 months", "label": "Less than 6 months"}, {"value": "6 months or more", "label": "6 months or more"}], "row_text": "Prior motorcycle insurance-- Select --NoneLess than 6 months6 months or more", "row_cells": ["Prior motorcycle insurance", "-- Select --NoneLess than 6 months6 months or more"]}, {"control_id": "ctrl_3", "dom_selector": "#body-basics > button", "tag": "button", "label_text": "Save panel", "section_text": "Quote basics", "checked": null, "visible": true}, {"control_id": "hdr-rider", "dom_selector": "#hdr-rider", "tag": "button", "id_attr": "hdr-rider", "label_text": "Rider", "section_text": "Rider", "checked": null, "visible": true, "row_text": "Rider"}, {"control_id": "hdr-garaging", "dom_selector": "#hdr-garaging", "tag": "button", "id_attr": "hdr-garaging", "label_text": "Garaging address", "section_text": "Garaging address", "checked": null, "visible": true, "row_text": "Garaging address"}, {"control_id": "hdr-motorcycles", "dom_selector": "#hdr-motorcycles", "tag": "button", "id_attr": "hdr-motorcycles", "label_text": "Motorcycles", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "Motorcycles Annual mileage VINYearMakeModelcc OwnershipLienholder Add motorcycle Save panel"}, {"control_id": "hdr-coverage", "dom_selector": "#hdr-coverage", "tag": "button", "id_attr": "hdr-coverage", "label_text": "Coverage", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "Coverage"}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "id_attr": "rate", "label_text": "Rate this quote", "section_text": "Coverage", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 6, "why": "before fill selector='section.panel[data-panel=\"rider\"] >> internal:label=\"First name\"s'>", "frame_url": "http://127.0.0.1:45451/rater/worksheet", "is_main": true, "controls": [{"control_id": "hdr-basics", "dom_selector": "#hdr-basics", "tag": "button", "id_attr": "hdr-basics", "label_text": "Quote basics \u2713 Saved", "section_text": "Quote basics \u2713 Saved", "checked": null, "visible": true, "row_text": "Quote basics \u2713 Saved"}, {"control_id": "hdr-rider", "dom_selector": "#hdr-rider", "tag": "button", "id_attr": "hdr-rider", "label_text": "Rider", "section_text": "Rider", "checked": null, "visible": true, "row_text": "Rider"}, {"control_id": "first_name", "dom_selector": "#first_name", "tag": "input", "input_type": "text", "name_attr": "first_name", "id_attr": "first_name", "label_text": "First name", "section_text": "Rider", "checked": null, "visible": true, "row_text": "First name", "row_cells": ["First name", ""]}, {"control_id": "last_name", "dom_selector": "#last_name", "tag": "input", "input_type": "text", "name_attr": "last_name", "id_attr": "last_name", "label_text": "Last name", "section_text": "Rider", "checked": null, "visible": true, "row_text": "Last name", "row_cells": ["Last name", ""]}, {"control_id": "dob", "dom_selector": "#dob", "tag": "input", "input_type": "text", "name_attr": "dob", "id_attr": "dob", "label_text": "Date of birth", "section_text": "Rider", "checked": null, "visible": true, "row_text": "Date of birth", "row_cells": ["Date of birth", ""]}, {"control_id": "phone", "dom_selector": "#phone", "tag": "input", "input_type": "text", "name_attr": "phone", "id_attr": "phone", "label_text": "Phone", "section_text": "Rider", "checked": null, "visible": true, "row_text": "Phone", "row_cells": ["Phone", ""]}, {"control_id": "years_endorsed", "dom_selector": "#years_endorsed", "tag": "input", "input_type": "text", "name_attr": "years_endorsed", "id_attr": "years_endorsed", "label_text": "Years with motorcycle endorsement", "section_text": "Rider", "checked": null, "visible": true, "row_text": "Years with motorcycle endorsement", "row_cells": ["Years with motorcycle endorsement", ""]}, {"control_id": "safety_course", "dom_selector": "#safety_course", "tag": "select", "name_attr": "safety_course", "id_attr": "safety_course", "label_text": "Completed a rider safety course in the last 3 years", "section_text": "Rider", "checked": null, "visible": true, "options": [{"value": "", "label": "-- Select --"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "row_text": "Completed a rider safety course in the last 3 years-- Select --YesNo", "row_cells": ["Completed a rider safety course in the last 3 years", "-- Select --YesNo"]}, {"control_id": "ctrl_8", "dom_selector": "#body-rider > button", "tag": "button", "label_text": "Save panel", "section_text": "Rider", "checked": null, "visible": true}, {"control_id": "hdr-garaging", "dom_selector": "#hdr-garaging", "tag": "button", "id_attr": "hdr-garaging", "label_text": "Garaging address", "section_text": "Garaging address", "checked": null, "visible": true, "row_text": "Garaging address"}, {"control_id": "hdr-motorcycles", "dom_selector": "#hdr-motorcycles", "tag": "button", "id_attr": "hdr-motorcycles", "label_text": "Motorcycles", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "Motorcycles Annual mileage VINYearMakeModelcc OwnershipLienholder Add motorcycle Save panel"}, {"control_id": "hdr-coverage", "dom_selector": "#hdr-coverage", "tag": "button", "id_attr": "hdr-coverage", "label_text": "Coverage", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "Coverage"}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "id_attr": "rate", "label_text": "Rate this quote", "section_text": "Coverage", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 7, "why": "before fill selector='section.panel[data-panel=\"rider\"] >> internal:label=\"Last name\"s'>", "frame_url": "http://127.0.0.1:45451/rater/worksheet", "is_main": true, "controls": [{"control_id": "hdr-basics", "dom_selector": "#hdr-basics", "tag": "button", "id_attr": "hdr-basics", "label_text": "Quote basics \u2713 Saved", "section_text": "Quote basics \u2713 Saved", "checked": null, "visible": true, "row_text": "Quote basics \u2713 Saved"}, {"control_id": "hdr-rider", "dom_selector": "#hdr-rider", "tag": "button", "id_attr": "hdr-rider", "label_text": "Rider", "section_text": "Rider", "checked": null, "visible": true, "row_text": "Rider"}, {"control_id": "first_name", "dom_selector": "#first_name", "tag": "input", "input_type": "text", "name_attr": "first_name", "id_attr": "first_name", "label_text": "First name", "section_text": "Rider", "current_value": "Rafe", "checked": null, "visible": true, "row_text": "First name", "row_cells": ["First name", ""]}, {"control_id": "last_name", "dom_selector": "#last_name", "tag": "input", "input_type": "text", "name_attr": "last_name", "id_attr": "last_name", "label_text": "Last name", "section_text": "Rider", "checked": null, "visible": true, "row_text": "Last name", "row_cells": ["Last name", ""]}, {"control_id": "dob", "dom_selector": "#dob", "tag": "input", "input_type": "text", "name_attr": "dob", "id_attr": "dob", "label_text": "Date of birth", "section_text": "Rider", "checked": null, "visible": true, "row_text": "Date of birth", "row_cells": ["Date of birth", ""]}, {"control_id": "phone", "dom_selector": "#phone", "tag": "input", "input_type": "text", "name_attr": "phone", "id_attr": "phone", "label_text": "Phone", "section_text": "Rider", "checked": null, "visible": true, "row_text": "Phone", "row_cells": ["Phone", ""]}, {"control_id": "years_endorsed", "dom_selector": "#years_endorsed", "tag": "input", "input_type": "text", "name_attr": "years_endorsed", "id_attr": "years_endorsed", "label_text": "Years with motorcycle endorsement", "section_text": "Rider", "checked": null, "visible": true, "row_text": "Years with motorcycle endorsement", "row_cells": ["Years with motorcycle endorsement", ""]}, {"control_id": "safety_course", "dom_selector": "#safety_course", "tag": "select", "name_attr": "safety_course", "id_attr": "safety_course", "label_text": "Completed a rider safety course in the last 3 years", "section_text": "Rider", "checked": null, "visible": true, "options": [{"value": "", "label": "-- Select --"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "row_text": "Completed a rider safety course in the last 3 years-- Select --YesNo", "row_cells": ["Completed a rider safety course in the last 3 years", "-- Select --YesNo"]}, {"control_id": "ctrl_8", "dom_selector": "#body-rider > button", "tag": "button", "label_text": "Save panel", "section_text": "Rider", "checked": null, "visible": true}, {"control_id": "hdr-garaging", "dom_selector": "#hdr-garaging", "tag": "button", "id_attr": "hdr-garaging", "label_text": "Garaging address", "section_text": "Garaging address", "checked": null, "visible": true, "row_text": "Garaging address"}, {"control_id": "hdr-motorcycles", "dom_selector": "#hdr-motorcycles", "tag": "button", "id_attr": "hdr-motorcycles", "label_text": "Motorcycles", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "Motorcycles Annual mileage VINYearMakeModelcc OwnershipLienholder Add motorcycle Save panel"}, {"control_id": "hdr-coverage", "dom_selector": "#hdr-coverage", "tag": "button", "id_attr": "hdr-coverage", "label_text": "Coverage", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "Coverage"}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "id_attr": "rate", "label_text": "Rate this quote", "section_text": "Coverage", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 8, "why": "before fill selector='section.panel[data-panel=\"rider\"] >> internal:label=\"Date of birth\"s'>", "frame_url": "http://127.0.0.1:45451/rater/worksheet", "is_main": true, "controls": [{"control_id": "hdr-basics", "dom_selector": "#hdr-basics", "tag": "button", "id_attr": "hdr-basics", "label_text": "Quote basics \u2713 Saved", "section_text": "Quote basics \u2713 Saved", "checked": null, "visible": true, "row_text": "Quote basics \u2713 Saved"}, {"control_id": "hdr-rider", "dom_selector": "#hdr-rider", "tag": "button", "id_attr": "hdr-rider", "label_text": "Rider", "section_text": "Rider", "checked": null, "visible": true, "row_text": "Rider"}, {"control_id": "first_name", "dom_selector": "#first_name", "tag": "input", "input_type": "text", "name_attr": "first_name", "id_attr": "first_name", "label_text": "First name", "section_text": "Rider", "current_value": "Rafe", "checked": null, "visible": true, "row_text": "First name", "row_cells": ["First name", ""]}, {"control_id": "last_name", "dom_selector": "#last_name", "tag": "input", "input_type": "text", "name_attr": "last_name", "id_attr": "last_name", "label_text": "Last name", "section_text": "Rider", "current_value": "Duquesne", "checked": null, "visible": true, "row_text": "Last name", "row_cells": ["Last name", ""]}, {"control_id": "dob", "dom_selector": "#dob", "tag": "input", "input_type": "text", "name_attr": "dob", "id_attr": "dob", "label_text": "Date of birth", "section_text": "Rider", "checked": null, "visible": true, "row_text": "Date of birth", "row_cells": ["Date of birth", ""]}, {"control_id": "phone", "dom_selector": "#phone", "tag": "input", "input_type": "text", "name_attr": "phone", "id_attr": "phone", "label_text": "Phone", "section_text": "Rider", "checked": null, "visible": true, "row_text": "Phone", "row_cells": ["Phone", ""]}, {"control_id": "years_endorsed", "dom_selector": "#years_endorsed", "tag": "input", "input_type": "text", "name_attr": "years_endorsed", "id_attr": "years_endorsed", "label_text": "Years with motorcycle endorsement", "section_text": "Rider", "checked": null, "visible": true, "row_text": "Years with motorcycle endorsement", "row_cells": ["Years with motorcycle endorsement", ""]}, {"control_id": "safety_course", "dom_selector": "#safety_course", "tag": "select", "name_attr": "safety_course", "id_attr": "safety_course", "label_text": "Completed a rider safety course in the last 3 years", "section_text": "Rider", "checked": null, "visible": true, "options": [{"value": "", "label": "-- Select --"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "row_text": "Completed a rider safety course in the last 3 years-- Select --YesNo", "row_cells": ["Completed a rider safety course in the last 3 years", "-- Select --YesNo"]}, {"control_id": "ctrl_8", "dom_selector": "#body-rider > button", "tag": "button", "label_text": "Save panel", "section_text": "Rider", "checked": null, "visible": true}, {"control_id": "hdr-garaging", "dom_selector": "#hdr-garaging", "tag": "button", "id_attr": "hdr-garaging", "label_text": "Garaging address", "section_text": "Garaging address", "checked": null, "visible": true, "row_text": "Garaging address"}, {"control_id": "hdr-motorcycles", "dom_selector": "#hdr-motorcycles", "tag": "button", "id_attr": "hdr-motorcycles", "label_text": "Motorcycles", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "Motorcycles Annual mileage VINYearMakeModelcc OwnershipLienholder Add motorcycle Save panel"}, {"control_id": "hdr-coverage", "dom_selector": "#hdr-coverage", "tag": "button", "id_attr": "hdr-coverage", "label_text": "Coverage", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "Coverage"}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "id_attr": "rate", "label_text": "Rate this quote", "section_text": "Coverage", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 9, "why": "before fill selector='section.panel[data-panel=\"rider\"] >> internal:label=\"Phone\"s'>", "frame_url": "http://127.0.0.1:45451/rater/worksheet", "is_main": true, "controls": [{"control_id": "hdr-basics", "dom_selector": "#hdr-basics", "tag": "button", "id_attr": "hdr-basics", "label_text": "Quote basics \u2713 Saved", "section_text": "Quote basics \u2713 Saved", "checked": null, "visible": true, "row_text": "Quote basics \u2713 Saved"}, {"control_id": "hdr-rider", "dom_selector": "#hdr-rider", "tag": "button", "id_attr": "hdr-rider", "label_text": "Rider", "section_text": "Rider", "checked": null, "visible": true, "row_text": "Rider"}, {"control_id": "first_name", "dom_selector": "#first_name", "tag": "input", "input_type": "text", "name_attr": "first_name", "id_attr": "first_name", "label_text": "First name", "section_text": "Rider", "current_value": "Rafe", "checked": null, "visible": true, "row_text": "First name", "row_cells": ["First name", ""]}, {"control_id": "last_name", "dom_selector": "#last_name", "tag": "input", "input_type": "text", "name_attr": "last_name", "id_attr": "last_name", "label_text": "Last name", "section_text": "Rider", "current_value": "Duquesne", "checked": null, "visible": true, "row_text": "Last name", "row_cells": ["Last name", ""]}, {"control_id": "dob", "dom_selector": "#dob", "tag": "input", "input_type": "text", "name_attr": "dob", "id_attr": "dob", "label_text": "Date of birth", "section_text": "Rider", "current_value": "03/11/1985", "checked": null, "visible": true, "row_text": "Date of birth", "row_cells": ["Date of birth", ""]}, {"control_id": "phone", "dom_selector": "#phone", "tag": "input", "input_type": "text", "name_attr": "phone", "id_attr": "phone", "label_text": "Phone", "section_text": "Rider", "checked": null, "visible": true, "row_text": "Phone", "row_cells": ["Phone", ""]}, {"control_id": "years_endorsed", "dom_selector": "#years_endorsed", "tag": "input", "input_type": "text", "name_attr": "years_endorsed", "id_attr": "years_endorsed", "label_text": "Years with motorcycle endorsement", "section_text": "Rider", "checked": null, "visible": true, "row_text": "Years with motorcycle endorsement", "row_cells": ["Years with motorcycle endorsement", ""]}, {"control_id": "safety_course", "dom_selector": "#safety_course", "tag": "select", "name_attr": "safety_course", "id_attr": "safety_course", "label_text": "Completed a rider safety course in the last 3 years", "section_text": "Rider", "checked": null, "visible": true, "options": [{"value": "", "label": "-- Select --"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "row_text": "Completed a rider safety course in the last 3 years-- Select --YesNo", "row_cells": ["Completed a rider safety course in the last 3 years", "-- Select --YesNo"]}, {"control_id": "ctrl_8", "dom_selector": "#body-rider > button", "tag": "button", "label_text": "Save panel", "section_text": "Rider", "checked": null, "visible": true}, {"control_id": "hdr-garaging", "dom_selector": "#hdr-garaging", "tag": "button", "id_attr": "hdr-garaging", "label_text": "Garaging address", "section_text": "Garaging address", "checked": null, "visible": true, "row_text": "Garaging address"}, {"control_id": "hdr-motorcycles", "dom_selector": "#hdr-motorcycles", "tag": "button", "id_attr": "hdr-motorcycles", "label_text": "Motorcycles", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "Motorcycles Annual mileage VINYearMakeModelcc OwnershipLienholder Add motorcycle Save panel"}, {"control_id": "hdr-coverage", "dom_selector": "#hdr-coverage", "tag": "button", "id_attr": "hdr-coverage", "label_text": "Coverage", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "Coverage"}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "id_attr": "rate", "label_text": "Rate this quote", "section_text": "Coverage", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 10, "why": "before fill selector='section.panel[data-panel=\"rider\"] >> internal:label=\"Years with motorcycle endorsement\"s'>", "frame_url": "http://127.0.0.1:45451/rater/worksheet", "is_main": true, "controls": [{"control_id": "hdr-basics", "dom_selector": "#hdr-basics", "tag": "button", "id_attr": "hdr-basics", "label_text": "Quote basics \u2713 Saved", "section_text": "Quote basics \u2713 Saved", "checked": null, "visible": true, "row_text": "Quote basics \u2713 Saved"}, {"control_id": "hdr-rider", "dom_selector": "#hdr-rider", "tag": "button", "id_attr": "hdr-rider", "label_text": "Rider", "section_text": "Rider", "checked": null, "visible": true, "row_text": "Rider"}, {"control_id": "first_name", "dom_selector": "#first_name", "tag": "input", "input_type": "text", "name_attr": "first_name", "id_attr": "first_name", "label_text": "First name", "section_text": "Rider", "current_value": "Rafe", "checked": null, "visible": true, "row_text": "First name", "row_cells": ["First name", ""]}, {"control_id": "last_name", "dom_selector": "#last_name", "tag": "input", "input_type": "text", "name_attr": "last_name", "id_attr": "last_name", "label_text": "Last name", "section_text": "Rider", "current_value": "Duquesne", "checked": null, "visible": true, "row_text": "Last name", "row_cells": ["Last name", ""]}, {"control_id": "dob", "dom_selector": "#dob", "tag": "input", "input_type": "text", "name_attr": "dob", "id_attr": "dob", "label_text": "Date of birth", "section_text": "Rider", "current_value": "03/11/1985", "checked": null, "visible": true, "row_text": "Date of birth", "row_cells": ["Date of birth", ""]}, {"control_id": "phone", "dom_selector": "#phone", "tag": "input", "input_type": "text", "name_attr": "phone", "id_attr": "phone", "label_text": "Phone", "section_text": "Rider", "current_value": "206-555-0114", "checked": null, "visible": true, "row_text": "Phone", "row_cells": ["Phone", ""]}, {"control_id": "years_endorsed", "dom_selector": "#years_endorsed", "tag": "input", "input_type": "text", "name_attr": "years_endorsed", "id_attr": "years_endorsed", "label_text": "Years with motorcycle endorsement", "section_text": "Rider", "checked": null, "visible": true, "row_text": "Years with motorcycle endorsement", "row_cells": ["Years with motorcycle endorsement", ""]}, {"control_id": "safety_course", "dom_selector": "#safety_course", "tag": "select", "name_attr": "safety_course", "id_attr": "safety_course", "label_text": "Completed a rider safety course in the last 3 years", "section_text": "Rider", "checked": null, "visible": true, "options": [{"value": "", "label": "-- Select --"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "row_text": "Completed a rider safety course in the last 3 years-- Select --YesNo", "row_cells": ["Completed a rider safety course in the last 3 years", "-- Select --YesNo"]}, {"control_id": "ctrl_8", "dom_selector": "#body-rider > button", "tag": "button", "label_text": "Save panel", "section_text": "Rider", "checked": null, "visible": true}, {"control_id": "hdr-garaging", "dom_selector": "#hdr-garaging", "tag": "button", "id_attr": "hdr-garaging", "label_text": "Garaging address", "section_text": "Garaging address", "checked": null, "visible": true, "row_text": "Garaging address"}, {"control_id": "hdr-motorcycles", "dom_selector": "#hdr-motorcycles", "tag": "button", "id_attr": "hdr-motorcycles", "label_text": "Motorcycles", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "Motorcycles Annual mileage VINYearMakeModelcc OwnershipLienholder Add motorcycle Save panel"}, {"control_id": "hdr-coverage", "dom_selector": "#hdr-coverage", "tag": "button", "id_attr": "hdr-coverage", "label_text": "Coverage", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "Coverage"}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "id_attr": "rate", "label_text": "Rate this quote", "section_text": "Coverage", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 11, "why": "before select_option selector='section.panel[data-panel=\"rider\"] >> internal:label=\"Completed a rider safety course in the last 3 years\"s'>", "frame_url": "http://127.0.0.1:45451/rater/worksheet", "is_main": true, "controls": [{"control_id": "hdr-basics", "dom_selector": "#hdr-basics", "tag": "button", "id_attr": "hdr-basics", "label_text": "Quote basics \u2713 Saved", "section_text": "Quote basics \u2713 Saved", "checked": null, "visible": true, "row_text": "Quote basics \u2713 Saved"}, {"control_id": "hdr-rider", "dom_selector": "#hdr-rider", "tag": "button", "id_attr": "hdr-rider", "label_text": "Rider", "section_text": "Rider", "checked": null, "visible": true, "row_text": "Rider"}, {"control_id": "first_name", "dom_selector": "#first_name", "tag": "input", "input_type": "text", "name_attr": "first_name", "id_attr": "first_name", "label_text": "First name", "section_text": "Rider", "current_value": "Rafe", "checked": null, "visible": true, "row_text": "First name", "row_cells": ["First name", ""]}, {"control_id": "last_name", "dom_selector": "#last_name", "tag": "input", "input_type": "text", "name_attr": "last_name", "id_attr": "last_name", "label_text": "Last name", "section_text": "Rider", "current_value": "Duquesne", "checked": null, "visible": true, "row_text": "Last name", "row_cells": ["Last name", ""]}, {"control_id": "dob", "dom_selector": "#dob", "tag": "input", "input_type": "text", "name_attr": "dob", "id_attr": "dob", "label_text": "Date of birth", "section_text": "Rider", "current_value": "03/11/1985", "checked": null, "visible": true, "row_text": "Date of birth", "row_cells": ["Date of birth", ""]}, {"control_id": "phone", "dom_selector": "#phone", "tag": "input", "input_type": "text", "name_attr": "phone", "id_attr": "phone", "label_text": "Phone", "section_text": "Rider", "current_value": "206-555-0114", "checked": null, "visible": true, "row_text": "Phone", "row_cells": ["Phone", ""]}, {"control_id": "years_endorsed", "dom_selector": "#years_endorsed", "tag": "input", "input_type": "text", "name_attr": "years_endorsed", "id_attr": "years_endorsed", "label_text": "Years with motorcycle endorsement", "section_text": "Rider", "current_value": "9", "checked": null, "visible": true, "row_text": "Years with motorcycle endorsement", "row_cells": ["Years with motorcycle endorsement", ""]}, {"control_id": "safety_course", "dom_selector": "#safety_course", "tag": "select", "name_attr": "safety_course", "id_attr": "safety_course", "label_text": "Completed a rider safety course in the last 3 years", "section_text": "Rider", "checked": null, "visible": true, "options": [{"value": "", "label": "-- Select --"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "row_text": "Completed a rider safety course in the last 3 years-- Select --YesNo", "row_cells": ["Completed a rider safety course in the last 3 years", "-- Select --YesNo"]}, {"control_id": "ctrl_8", "dom_selector": "#body-rider > button", "tag": "button", "label_text": "Save panel", "section_text": "Rider", "checked": null, "visible": true}, {"control_id": "hdr-garaging", "dom_selector": "#hdr-garaging", "tag": "button", "id_attr": "hdr-garaging", "label_text": "Garaging address", "section_text": "Garaging address", "checked": null, "visible": true, "row_text": "Garaging address"}, {"control_id": "hdr-motorcycles", "dom_selector": "#hdr-motorcycles", "tag": "button", "id_attr": "hdr-motorcycles", "label_text": "Motorcycles", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "Motorcycles Annual mileage VINYearMakeModelcc OwnershipLienholder Add motorcycle Save panel"}, {"control_id": "hdr-coverage", "dom_selector": "#hdr-coverage", "tag": "button", "id_attr": "hdr-coverage", "label_text": "Coverage", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "Coverage"}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "id_attr": "rate", "label_text": "Rate this quote", "section_text": "Coverage", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 12, "why": "before click selector='section.panel[data-panel=\"rider\"] >> [data-save=\"rider\"]'>", "frame_url": "http://127.0.0.1:45451/rater/worksheet", "is_main": true, "controls": [{"control_id": "hdr-basics", "dom_selector": "#hdr-basics", "tag": "button", "id_attr": "hdr-basics", "label_text": "Quote basics \u2713 Saved", "section_text": "Quote basics \u2713 Saved", "checked": null, "visible": true, "row_text": "Quote basics \u2713 Saved"}, {"control_id": "hdr-rider", "dom_selector": "#hdr-rider", "tag": "button", "id_attr": "hdr-rider", "label_text": "Rider", "section_text": "Rider", "checked": null, "visible": true, "row_text": "Rider"}, {"control_id": "first_name", "dom_selector": "#first_name", "tag": "input", "input_type": "text", "name_attr": "first_name", "id_attr": "first_name", "label_text": "First name", "section_text": "Rider", "current_value": "Rafe", "checked": null, "visible": true, "row_text": "First name", "row_cells": ["First name", ""]}, {"control_id": "last_name", "dom_selector": "#last_name", "tag": "input", "input_type": "text", "name_attr": "last_name", "id_attr": "last_name", "label_text": "Last name", "section_text": "Rider", "current_value": "Duquesne", "checked": null, "visible": true, "row_text": "Last name", "row_cells": ["Last name", ""]}, {"control_id": "dob", "dom_selector": "#dob", "tag": "input", "input_type": "text", "name_attr": "dob", "id_attr": "dob", "label_text": "Date of birth", "section_text": "Rider", "current_value": "03/11/1985", "checked": null, "visible": true, "row_text": "Date of birth", "row_cells": ["Date of birth", ""]}, {"control_id": "phone", "dom_selector": "#phone", "tag": "input", "input_type": "text", "name_attr": "phone", "id_attr": "phone", "label_text": "Phone", "section_text": "Rider", "current_value": "206-555-0114", "checked": null, "visible": true, "row_text": "Phone", "row_cells": ["Phone", ""]}, {"control_id": "years_endorsed", "dom_selector": "#years_endorsed", "tag": "input", "input_type": "text", "name_attr": "years_endorsed", "id_attr": "years_endorsed", "label_text": "Years with motorcycle endorsement", "section_text": "Rider", "current_value": "9", "checked": null, "visible": true, "row_text": "Years with motorcycle endorsement", "row_cells": ["Years with motorcycle endorsement", ""]}, {"control_id": "safety_course", "dom_selector": "#safety_course", "tag": "select", "name_attr": "safety_course", "id_attr": "safety_course", "label_text": "Completed a rider safety course in the last 3 years", "section_text": "Rider", "current_value": "Yes", "checked": null, "visible": true, "options": [{"value": "", "label": "-- Select --"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "row_text": "Completed a rider safety course in the last 3 years-- Select --YesNo", "row_cells": ["Completed a rider safety course in the last 3 years", "-- Select --YesNo"]}, {"control_id": "ctrl_8", "dom_selector": "#body-rider > button", "tag": "button", "label_text": "Save panel", "section_text": "Rider", "checked": null, "visible": true}, {"control_id": "hdr-garaging", "dom_selector": "#hdr-garaging", "tag": "button", "id_attr": "hdr-garaging", "label_text": "Garaging address", "section_text": "Garaging address", "checked": null, "visible": true, "row_text": "Garaging address"}, {"control_id": "hdr-motorcycles", "dom_selector": "#hdr-motorcycles", "tag": "button", "id_attr": "hdr-motorcycles", "label_text": "Motorcycles", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "Motorcycles Annual mileage VINYearMakeModelcc OwnershipLienholder Add motorcycle Save panel"}, {"control_id": "hdr-coverage", "dom_selector": "#hdr-coverage", "tag": "button", "id_attr": "hdr-coverage", "label_text": "Coverage", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "Coverage"}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "id_attr": "rate", "label_text": "Rate this quote", "section_text": "Coverage", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 13, "why": "before fill selector='section.panel[data-panel=\"garaging\"] >> internal:label=\"Street address\"s'>", "frame_url": "http://127.0.0.1:45451/rater/worksheet", "is_main": true, "controls": [{"control_id": "hdr-basics", "dom_selector": "#hdr-basics", "tag": "button", "id_attr": "hdr-basics", "label_text": "Quote basics \u2713 Saved", "section_text": "Quote basics \u2713 Saved", "checked": null, "visible": true, "row_text": "Quote basics \u2713 Saved"}, {"control_id": "hdr-rider", "dom_selector": "#hdr-rider", "tag": "button", "id_attr": "hdr-rider", "label_text": "Rider \u2713 Saved", "section_text": "Rider \u2713 Saved", "checked": null, "visible": true, "row_text": "Rider \u2713 Saved"}, {"control_id": "hdr-garaging", "dom_selector": "#hdr-garaging", "tag": "button", "id_attr": "hdr-garaging", "label_text": "Garaging address", "section_text": "Garaging address", "checked": null, "visible": true, "row_text": "Garaging address"}, {"control_id": "street", "dom_selector": "#street", "tag": "input", "input_type": "text", "name_attr": "street", "id_attr": "street", "label_text": "Street address", "section_text": "Garaging address", "checked": null, "visible": true, "row_text": "Street address", "row_cells": ["Street address", ""]}, {"control_id": "city", "dom_selector": "#city", "tag": "input", "input_type": "text", "name_attr": "city", "id_attr": "city", "label_text": "City", "section_text": "Garaging address", "checked": null, "visible": true, "row_text": "City", "row_cells": ["City", ""]}, {"control_id": "state", "dom_selector": "#state", "tag": "select", "name_attr": "state", "id_attr": "state", "label_text": "State", "section_text": "Garaging address", "checked": null, "visible": true, "options": [{"value": "", "label": "-- Select --"}, {"value": "WA", "label": "WA"}, {"value": "OR", "label": "OR"}, {"value": "ID", "label": "ID"}, {"value": "MT", "label": "MT"}, {"value": "CA", "label": "CA"}], "row_text": "State-- Select --WAORIDMTCA", "row_cells": ["State", "-- Select --WAORIDMTCA"]}, {"control_id": "zip", "dom_selector": "#zip", "tag": "input", "input_type": "text", "name_attr": "zip", "id_attr": "zip", "label_text": "ZIP", "section_text": "Garaging address", "checked": null, "visible": true, "row_text": "ZIP", "row_cells": ["ZIP", ""]}, {"control_id": "ctrl_7", "dom_selector": "#body-garaging > button", "tag": "button", "label_text": "Save panel", "section_text": "Garaging address", "checked": null, "visible": true}, {"control_id": "hdr-motorcycles", "dom_selector": "#hdr-motorcycles", "tag": "button", "id_attr": "hdr-motorcycles", "label_text": "Motorcycles", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "Motorcycles Annual mileage VINYearMakeModelcc OwnershipLienholder Add motorcycle Save panel"}, {"control_id": "hdr-coverage", "dom_selector": "#hdr-coverage", "tag": "button", "id_attr": "hdr-coverage", "label_text": "Coverage", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "Coverage"}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "id_attr": "rate", "label_text": "Rate this quote", "section_text": "Coverage", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 14, "why": "before fill selector='section.panel[data-panel=\"garaging\"] >> internal:label=\"City\"s'>", "frame_url": "http://127.0.0.1:45451/rater/worksheet", "is_main": true, "controls": [{"control_id": "hdr-basics", "dom_selector": "#hdr-basics", "tag": "button", "id_attr": "hdr-basics", "label_text": "Quote basics \u2713 Saved", "section_text": "Quote basics \u2713 Saved", "checked": null, "visible": true, "row_text": "Quote basics \u2713 Saved"}, {"control_id": "hdr-rider", "dom_selector": "#hdr-rider", "tag": "button", "id_attr": "hdr-rider", "label_text": "Rider \u2713 Saved", "section_text": "Rider \u2713 Saved", "checked": null, "visible": true, "row_text": "Rider \u2713 Saved"}, {"control_id": "hdr-garaging", "dom_selector": "#hdr-garaging", "tag": "button", "id_attr": "hdr-garaging", "label_text": "Garaging address", "section_text": "Garaging address", "checked": null, "visible": true, "row_text": "Garaging address"}, {"control_id": "street", "dom_selector": "#street", "tag": "input", "input_type": "text", "name_attr": "street", "id_attr": "street", "label_text": "Street address", "section_text": "Garaging address", "current_value": "4417 Alder Crest Ave", "checked": null, "visible": true, "row_text": "Street address", "row_cells": ["Street address", ""]}, {"control_id": "city", "dom_selector": "#city", "tag": "input", "input_type": "text", "name_attr": "city", "id_attr": "city", "label_text": "City", "section_text": "Garaging address", "checked": null, "visible": true, "row_text": "City", "row_cells": ["City", ""]}, {"control_id": "state", "dom_selector": "#state", "tag": "select", "name_attr": "state", "id_attr": "state", "label_text": "State", "section_text": "Garaging address", "checked": null, "visible": true, "options": [{"value": "", "label": "-- Select --"}, {"value": "WA", "label": "WA"}, {"value": "OR", "label": "OR"}, {"value": "ID", "label": "ID"}, {"value": "MT", "label": "MT"}, {"value": "CA", "label": "CA"}], "row_text": "State-- Select --WAORIDMTCA", "row_cells": ["State", "-- Select --WAORIDMTCA"]}, {"control_id": "zip", "dom_selector": "#zip", "tag": "input", "input_type": "text", "name_attr": "zip", "id_attr": "zip", "label_text": "ZIP", "section_text": "Garaging address", "checked": null, "visible": true, "row_text": "ZIP", "row_cells": ["ZIP", ""]}, {"control_id": "ctrl_7", "dom_selector": "#body-garaging > button", "tag": "button", "label_text": "Save panel", "section_text": "Garaging address", "checked": null, "visible": true}, {"control_id": "hdr-motorcycles", "dom_selector": "#hdr-motorcycles", "tag": "button", "id_attr": "hdr-motorcycles", "label_text": "Motorcycles", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "Motorcycles Annual mileage VINYearMakeModelcc OwnershipLienholder Add motorcycle Save panel"}, {"control_id": "hdr-coverage", "dom_selector": "#hdr-coverage", "tag": "button", "id_attr": "hdr-coverage", "label_text": "Coverage", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "Coverage"}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "id_attr": "rate", "label_text": "Rate this quote", "section_text": "Coverage", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 15, "why": "before select_option selector='section.panel[data-panel=\"garaging\"] >> internal:label=\"State\"s'>", "frame_url": "http://127.0.0.1:45451/rater/worksheet", "is_main": true, "controls": [{"control_id": "hdr-basics", "dom_selector": "#hdr-basics", "tag": "button", "id_attr": "hdr-basics", "label_text": "Quote basics \u2713 Saved", "section_text": "Quote basics \u2713 Saved", "checked": null, "visible": true, "row_text": "Quote basics \u2713 Saved"}, {"control_id": "hdr-rider", "dom_selector": "#hdr-rider", "tag": "button", "id_attr": "hdr-rider", "label_text": "Rider \u2713 Saved", "section_text": "Rider \u2713 Saved", "checked": null, "visible": true, "row_text": "Rider \u2713 Saved"}, {"control_id": "hdr-garaging", "dom_selector": "#hdr-garaging", "tag": "button", "id_attr": "hdr-garaging", "label_text": "Garaging address", "section_text": "Garaging address", "checked": null, "visible": true, "row_text": "Garaging address"}, {"control_id": "street", "dom_selector": "#street", "tag": "input", "input_type": "text", "name_attr": "street", "id_attr": "street", "label_text": "Street address", "section_text": "Garaging address", "current_value": "4417 Alder Crest Ave", "checked": null, "visible": true, "row_text": "Street address", "row_cells": ["Street address", ""]}, {"control_id": "city", "dom_selector": "#city", "tag": "input", "input_type": "text", "name_attr": "city", "id_attr": "city", "label_text": "City", "section_text": "Garaging address", "current_value": "Seattle", "checked": null, "visible": true, "row_text": "City", "row_cells": ["City", ""]}, {"control_id": "state", "dom_selector": "#state", "tag": "select", "name_attr": "state", "id_attr": "state", "label_text": "State", "section_text": "Garaging address", "checked": null, "visible": true, "options": [{"value": "", "label": "-- Select --"}, {"value": "WA", "label": "WA"}, {"value": "OR", "label": "OR"}, {"value": "ID", "label": "ID"}, {"value": "MT", "label": "MT"}, {"value": "CA", "label": "CA"}], "row_text": "State-- Select --WAORIDMTCA", "row_cells": ["State", "-- Select --WAORIDMTCA"]}, {"control_id": "zip", "dom_selector": "#zip", "tag": "input", "input_type": "text", "name_attr": "zip", "id_attr": "zip", "label_text": "ZIP", "section_text": "Garaging address", "checked": null, "visible": true, "row_text": "ZIP", "row_cells": ["ZIP", ""]}, {"control_id": "ctrl_7", "dom_selector": "#body-garaging > button", "tag": "button", "label_text": "Save panel", "section_text": "Garaging address", "checked": null, "visible": true}, {"control_id": "hdr-motorcycles", "dom_selector": "#hdr-motorcycles", "tag": "button", "id_attr": "hdr-motorcycles", "label_text": "Motorcycles", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "Motorcycles Annual mileage VINYearMakeModelcc OwnershipLienholder Add motorcycle Save panel"}, {"control_id": "hdr-coverage", "dom_selector": "#hdr-coverage", "tag": "button", "id_attr": "hdr-coverage", "label_text": "Coverage", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "Coverage"}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "id_attr": "rate", "label_text": "Rate this quote", "section_text": "Coverage", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 16, "why": "before fill selector='section.panel[data-panel=\"garaging\"] >> internal:label=\"ZIP\"s'>", "frame_url": "http://127.0.0.1:45451/rater/worksheet", "is_main": true, "controls": [{"control_id": "hdr-basics", "dom_selector": "#hdr-basics", "tag": "button", "id_attr": "hdr-basics", "label_text": "Quote basics \u2713 Saved", "section_text": "Quote basics \u2713 Saved", "checked": null, "visible": true, "row_text": "Quote basics \u2713 Saved"}, {"control_id": "hdr-rider", "dom_selector": "#hdr-rider", "tag": "button", "id_attr": "hdr-rider", "label_text": "Rider \u2713 Saved", "section_text": "Rider \u2713 Saved", "checked": null, "visible": true, "row_text": "Rider \u2713 Saved"}, {"control_id": "hdr-garaging", "dom_selector": "#hdr-garaging", "tag": "button", "id_attr": "hdr-garaging", "label_text": "Garaging address", "section_text": "Garaging address", "checked": null, "visible": true, "row_text": "Garaging address"}, {"control_id": "street", "dom_selector": "#street", "tag": "input", "input_type": "text", "name_attr": "street", "id_attr": "street", "label_text": "Street address", "section_text": "Garaging address", "current_value": "4417 Alder Crest Ave", "checked": null, "visible": true, "row_text": "Street address", "row_cells": ["Street address", ""]}, {"control_id": "city", "dom_selector": "#city", "tag": "input", "input_type": "text", "name_attr": "city", "id_attr": "city", "label_text": "City", "section_text": "Garaging address", "current_value": "Seattle", "checked": null, "visible": true, "row_text": "City", "row_cells": ["City", ""]}, {"control_id": "state", "dom_selector": "#state", "tag": "select", "name_attr": "state", "id_attr": "state", "label_text": "State", "section_text": "Garaging address", "current_value": "WA", "checked": null, "visible": true, "options": [{"value": "", "label": "-- Select --"}, {"value": "WA", "label": "WA"}, {"value": "OR", "label": "OR"}, {"value": "ID", "label": "ID"}, {"value": "MT", "label": "MT"}, {"value": "CA", "label": "CA"}], "row_text": "State-- Select --WAORIDMTCA", "row_cells": ["State", "-- Select --WAORIDMTCA"]}, {"control_id": "zip", "dom_selector": "#zip", "tag": "input", "input_type": "text", "name_attr": "zip", "id_attr": "zip", "label_text": "ZIP", "section_text": "Garaging address", "checked": null, "visible": true, "row_text": "ZIP", "row_cells": ["ZIP", ""]}, {"control_id": "ctrl_7", "dom_selector": "#body-garaging > button", "tag": "button", "label_text": "Save panel", "section_text": "Garaging address", "checked": null, "visible": true}, {"control_id": "hdr-motorcycles", "dom_selector": "#hdr-motorcycles", "tag": "button", "id_attr": "hdr-motorcycles", "label_text": "Motorcycles", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "Motorcycles Annual mileage VINYearMakeModelcc OwnershipLienholder Add motorcycle Save panel"}, {"control_id": "hdr-coverage", "dom_selector": "#hdr-coverage", "tag": "button", "id_attr": "hdr-coverage", "label_text": "Coverage", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "Coverage"}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "id_attr": "rate", "label_text": "Rate this quote", "section_text": "Coverage", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 17, "why": "before click selector='section.panel[data-panel=\"garaging\"] >> [data-save=\"garaging\"]'>", "frame_url": "http://127.0.0.1:45451/rater/worksheet", "is_main": true, "controls": [{"control_id": "hdr-basics", "dom_selector": "#hdr-basics", "tag": "button", "id_attr": "hdr-basics", "label_text": "Quote basics \u2713 Saved", "section_text": "Quote basics \u2713 Saved", "checked": null, "visible": true, "row_text": "Quote basics \u2713 Saved"}, {"control_id": "hdr-rider", "dom_selector": "#hdr-rider", "tag": "button", "id_attr": "hdr-rider", "label_text": "Rider \u2713 Saved", "section_text": "Rider \u2713 Saved", "checked": null, "visible": true, "row_text": "Rider \u2713 Saved"}, {"control_id": "hdr-garaging", "dom_selector": "#hdr-garaging", "tag": "button", "id_attr": "hdr-garaging", "label_text": "Garaging address", "section_text": "Garaging address", "checked": null, "visible": true, "row_text": "Garaging address"}, {"control_id": "street", "dom_selector": "#street", "tag": "input", "input_type": "text", "name_attr": "street", "id_attr": "street", "label_text": "Street address", "section_text": "Garaging address", "current_value": "4417 Alder Crest Ave", "checked": null, "visible": true, "row_text": "Street address", "row_cells": ["Street address", ""]}, {"control_id": "city", "dom_selector": "#city", "tag": "input", "input_type": "text", "name_attr": "city", "id_attr": "city", "label_text": "City", "section_text": "Garaging address", "current_value": "Seattle", "checked": null, "visible": true, "row_text": "City", "row_cells": ["City", ""]}, {"control_id": "state", "dom_selector": "#state", "tag": "select", "name_attr": "state", "id_attr": "state", "label_text": "State", "section_text": "Garaging address", "current_value": "WA", "checked": null, "visible": true, "options": [{"value": "", "label": "-- Select --"}, {"value": "WA", "label": "WA"}, {"value": "OR", "label": "OR"}, {"value": "ID", "label": "ID"}, {"value": "MT", "label": "MT"}, {"value": "CA", "label": "CA"}], "row_text": "State-- Select --WAORIDMTCA", "row_cells": ["State", "-- Select --WAORIDMTCA"]}, {"control_id": "zip", "dom_selector": "#zip", "tag": "input", "input_type": "text", "name_attr": "zip", "id_attr": "zip", "label_text": "ZIP", "section_text": "Garaging address", "current_value": "98118", "checked": null, "visible": true, "row_text": "ZIP", "row_cells": ["ZIP", ""]}, {"control_id": "ctrl_7", "dom_selector": "#body-garaging > button", "tag": "button", "label_text": "Save panel", "section_text": "Garaging address", "checked": null, "visible": true}, {"control_id": "hdr-motorcycles", "dom_selector": "#hdr-motorcycles", "tag": "button", "id_attr": "hdr-motorcycles", "label_text": "Motorcycles", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "Motorcycles Annual mileage VINYearMakeModelcc OwnershipLienholder Add motorcycle Save panel"}, {"control_id": "hdr-coverage", "dom_selector": "#hdr-coverage", "tag": "button", "id_attr": "hdr-coverage", "label_text": "Coverage", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "Coverage"}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "id_attr": "rate", "label_text": "Rate this quote", "section_text": "Coverage", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 18, "why": "before click selector='internal:role=button[name=\"Add motorcycle\"i]'>", "frame_url": "http://127.0.0.1:45451/rater/worksheet", "is_main": true, "controls": [{"control_id": "hdr-basics", "dom_selector": "#hdr-basics", "tag": "button", "id_attr": "hdr-basics", "label_text": "Quote basics \u2713 Saved", "section_text": "Quote basics \u2713 Saved", "checked": null, "visible": true, "row_text": "Quote basics \u2713 Saved"}, {"control_id": "hdr-rider", "dom_selector": "#hdr-rider", "tag": "button", "id_attr": "hdr-rider", "label_text": "Rider \u2713 Saved", "section_text": "Rider \u2713 Saved", "checked": null, "visible": true, "row_text": "Rider \u2713 Saved"}, {"control_id": "hdr-garaging", "dom_selector": "#hdr-garaging", "tag": "button", "id_attr": "hdr-garaging", "label_text": "Garaging address \u2713 Saved", "section_text": "Garaging address \u2713 Saved", "checked": null, "visible": true, "row_text": "Garaging address \u2713 Saved"}, {"control_id": "hdr-motorcycles", "dom_selector": "#hdr-motorcycles", "tag": "button", "id_attr": "hdr-motorcycles", "label_text": "Motorcycles", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "Motorcycles Annual mileage VINYearMakeModelcc OwnershipLienholder Add motorcycle Save panel"}, {"control_id": "annual_miles", "dom_selector": "#annual_miles", "tag": "input", "input_type": "text", "name_attr": "annual_miles", "id_attr": "annual_miles", "label_text": "Annual mileage", "section_text": "Motorcycles", "current_value": "6000", "checked": null, "visible": true, "row_text": "Annual mileage", "row_cells": ["Annual mileage", ""]}, {"control_id": "add-bike", "dom_selector": "#add-bike", "tag": "button", "id_attr": "add-bike", "label_text": "Add motorcycle", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "Motorcycles Annual mileage VINYearMakeModelcc OwnershipLienholder Add motorcycle Save panel"}, {"control_id": "ctrl_6", "dom_selector": "#body-motorcycles > button", "tag": "button", "label_text": "Save panel", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "Motorcycles Annual mileage VINYearMakeModelcc OwnershipLienholder Add motorcycle Save panel"}, {"control_id": "hdr-coverage", "dom_selector": "#hdr-coverage", "tag": "button", "id_attr": "hdr-coverage", "label_text": "Coverage", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "Coverage"}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "id_attr": "rate", "label_text": "Rate this quote", "section_text": "Coverage", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 19, "why": "before fill selector='#bike >> internal:label=\"VIN\"s'>", "frame_url": "http://127.0.0.1:45451/rater/worksheet", "is_main": true, "controls": [{"control_id": "hdr-basics", "dom_selector": "#hdr-basics", "tag": "button", "id_attr": "hdr-basics", "label_text": "Quote basics \u2713 Saved", "section_text": "Quote basics \u2713 Saved", "checked": null, "visible": true, "row_text": "Quote basics \u2713 Saved"}, {"control_id": "hdr-rider", "dom_selector": "#hdr-rider", "tag": "button", "id_attr": "hdr-rider", "label_text": "Rider \u2713 Saved", "section_text": "Rider \u2713 Saved", "checked": null, "visible": true, "row_text": "Rider \u2713 Saved"}, {"control_id": "hdr-garaging", "dom_selector": "#hdr-garaging", "tag": "button", "id_attr": "hdr-garaging", "label_text": "Garaging address \u2713 Saved", "section_text": "Garaging address \u2713 Saved", "checked": null, "visible": true, "row_text": "Garaging address \u2713 Saved"}, {"control_id": "hdr-motorcycles", "dom_selector": "#hdr-motorcycles", "tag": "button", "id_attr": "hdr-motorcycles", "label_text": "Motorcycles", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "Motorcycles Annual mileage VINYearMakeModelcc OwnershipLienholder Add motorcycle Save panel"}, {"control_id": "annual_miles", "dom_selector": "#annual_miles", "tag": "input", "input_type": "text", "name_attr": "annual_miles", "id_attr": "annual_miles", "label_text": "Annual mileage", "section_text": "Motorcycles", "current_value": "6000", "checked": null, "visible": true, "row_text": "Annual mileage", "row_cells": ["Annual mileage", ""]}, {"control_id": "add-bike", "dom_selector": "#add-bike", "tag": "button", "id_attr": "add-bike", "label_text": "Add motorcycle", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "Motorcycles Annual mileage VINYearMakeModelcc OwnershipLienholder Add motorcycle Save panel"}, {"control_id": "ctrl_6", "dom_selector": "#body-motorcycles > button", "tag": "button", "label_text": "Save panel", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "Motorcycles Annual mileage VINYearMakeModelcc OwnershipLienholder Add motorcycle Save panel"}, {"control_id": "hdr-coverage", "dom_selector": "#hdr-coverage", "tag": "button", "id_attr": "hdr-coverage", "label_text": "Coverage", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "Coverage"}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "id_attr": "rate", "label_text": "Rate this quote", "section_text": "Coverage", "checked": null, "visible": true}, {"control_id": "m-vin", "dom_selector": "#m-vin", "tag": "input", "input_type": "text", "id_attr": "m-vin", "label_text": "VIN", "section_text": "Add motorcycle", "checked": null, "visible": true, "row_text": "VIN Decode VIN", "row_cells": ["VIN", "Decode VIN"], "modal_container": "#bike"}, {"control_id": "decode", "dom_selector": "#decode", "tag": "button", "id_attr": "decode", "label_text": "Decode VIN", "section_text": "Add motorcycle", "checked": null, "visible": true, "row_text": "VIN Decode VIN", "row_cells": ["VIN", "Decode VIN"], "modal_container": "#bike"}, {"control_id": "m-year", "dom_selector": "#m-year", "tag": "input", "input_type": "text", "id_attr": "m-year", "label_text": "Model year", "section_text": "Add motorcycle", "checked": null, "readonly": true, "visible": true, "row_text": "Model year", "row_cells": ["Model year", ""], "modal_container": "#bike"}, {"control_id": "m-make", "dom_selector": "#m-make", "tag": "input", "input_type": "text", "id_attr": "m-make", "label_text": "Make", "section_text": "Add motorcycle", "checked": null, "readonly": true, "visible": true, "row_text": "Make", "row_cells": ["Make", ""], "modal_container": "#bike"}, {"control_id": "m-model", "dom_selector": "#m-model", "tag": "input", "input_type": "text", "id_attr": "m-model", "label_text": "Model", "section_text": "Add motorcycle", "checked": null, "readonly": true, "visible": true, "row_text": "Model", "row_cells": ["Model", ""], "modal_container": "#bike"}, {"control_id": "m-cc", "dom_selector": "#m-cc", "tag": "input", "input_type": "text", "id_attr": "m-cc", "label_text": "Engine (cc)", "section_text": "Add motorcycle", "checked": null, "readonly": true, "visible": true, "row_text": "Engine (cc)", "row_cells": ["Engine (cc)", ""], "modal_container": "#bike"}, {"control_id": "m-own", "dom_selector": "#m-own", "tag": "select", "id_attr": "m-own", "label_text": "Ownership", "section_text": "Add motorcycle", "checked": null, "visible": true, "options": [{"value": "", "label": "-- Select --"}, {"value": "Owned outright", "label": "Owned outright"}, {"value": "Financed", "label": "Financed"}, {"value": "Leased", "label": "Leased"}], "row_text": "Ownership-- Select -- Owned outrightFinancedLeased", "row_cells": ["Ownership", "-- Select -- Owned outrightFinancedLeased"], "modal_container": "#bike"}, {"control_id": "bike-ok", "dom_selector": "#bike-ok", "tag": "button", "id_attr": "bike-ok", "label_text": "Add to quote", "section_text": "Add motorcycle", "checked": null, "visible": true, "modal_container": "#bike"}, {"control_id": "bike-cancel", "dom_selector": "#bike-cancel", "tag": "button", "id_attr": "bike-cancel", "label_text": "Cancel", "section_text": "Add motorcycle", "checked": null, "visible": true, "modal_container": "#bike"}], "text_pairs": [], "banners": [], "modals": [{"modal_id": "bike", "container_selector": "#bike", "message_text": "Add motorcycle VIN Decode VIN Model year Make Model Engine (cc) Ownership-- Select -- Owned outrightFinancedLeased Lienholder name Add to quote Cancel"}], "title": "Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 20, "why": "before click selector='#bike >> internal:role=button[name=\"Decode VIN\"i]'>", "frame_url": "http://127.0.0.1:45451/rater/worksheet", "is_main": true, "controls": [{"control_id": "hdr-basics", "dom_selector": "#hdr-basics", "tag": "button", "id_attr": "hdr-basics", "label_text": "Quote basics \u2713 Saved", "section_text": "Quote basics \u2713 Saved", "checked": null, "visible": true, "row_text": "Quote basics \u2713 Saved"}, {"control_id": "hdr-rider", "dom_selector": "#hdr-rider", "tag": "button", "id_attr": "hdr-rider", "label_text": "Rider \u2713 Saved", "section_text": "Rider \u2713 Saved", "checked": null, "visible": true, "row_text": "Rider \u2713 Saved"}, {"control_id": "hdr-garaging", "dom_selector": "#hdr-garaging", "tag": "button", "id_attr": "hdr-garaging", "label_text": "Garaging address \u2713 Saved", "section_text": "Garaging address \u2713 Saved", "checked": null, "visible": true, "row_text": "Garaging address \u2713 Saved"}, {"control_id": "hdr-motorcycles", "dom_selector": "#hdr-motorcycles", "tag": "button", "id_attr": "hdr-motorcycles", "label_text": "Motorcycles", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "Motorcycles Annual mileage VINYearMakeModelcc OwnershipLienholder Add motorcycle Save panel"}, {"control_id": "annual_miles", "dom_selector": "#annual_miles", "tag": "input", "input_type": "text", "name_attr": "annual_miles", "id_attr": "annual_miles", "label_text": "Annual mileage", "section_text": "Motorcycles", "current_value": "6000", "checked": null, "visible": true, "row_text": "Annual mileage", "row_cells": ["Annual mileage", ""]}, {"control_id": "add-bike", "dom_selector": "#add-bike", "tag": "button", "id_attr": "add-bike", "label_text": "Add motorcycle", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "Motorcycles Annual mileage VINYearMakeModelcc OwnershipLienholder Add motorcycle Save panel"}, {"control_id": "ctrl_6", "dom_selector": "#body-motorcycles > button", "tag": "button", "label_text": "Save panel", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "Motorcycles Annual mileage VINYearMakeModelcc OwnershipLienholder Add motorcycle Save panel"}, {"control_id": "hdr-coverage", "dom_selector": "#hdr-coverage", "tag": "button", "id_attr": "hdr-coverage", "label_text": "Coverage", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "Coverage"}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "id_attr": "rate", "label_text": "Rate this quote", "section_text": "Coverage", "checked": null, "visible": true}, {"control_id": "m-vin", "dom_selector": "#m-vin", "tag": "input", "input_type": "text", "id_attr": "m-vin", "label_text": "VIN", "section_text": "Add motorcycle", "current_value": "AR7TL1272MB300982", "checked": null, "visible": true, "row_text": "VIN Decode VIN", "row_cells": ["VIN", "Decode VIN"], "modal_container": "#bike"}, {"control_id": "decode", "dom_selector": "#decode", "tag": "button", "id_attr": "decode", "label_text": "Decode VIN", "section_text": "Add motorcycle", "checked": null, "visible": true, "row_text": "VIN Decode VIN", "row_cells": ["VIN", "Decode VIN"], "modal_container": "#bike"}, {"control_id": "m-year", "dom_selector": "#m-year", "tag": "input", "input_type": "text", "id_attr": "m-year", "label_text": "Model year", "section_text": "Add motorcycle", "checked": null, "readonly": true, "visible": true, "row_text": "Model year", "row_cells": ["Model year", ""], "modal_container": "#bike"}, {"control_id": "m-make", "dom_selector": "#m-make", "tag": "input", "input_type": "text", "id_attr": "m-make", "label_text": "Make", "section_text": "Add motorcycle", "checked": null, "readonly": true, "visible": true, "row_text": "Make", "row_cells": ["Make", ""], "modal_container": "#bike"}, {"control_id": "m-model", "dom_selector": "#m-model", "tag": "input", "input_type": "text", "id_attr": "m-model", "label_text": "Model", "section_text": "Add motorcycle", "checked": null, "readonly": true, "visible": true, "row_text": "Model", "row_cells": ["Model", ""], "modal_container": "#bike"}, {"control_id": "m-cc", "dom_selector": "#m-cc", "tag": "input", "input_type": "text", "id_attr": "m-cc", "label_text": "Engine (cc)", "section_text": "Add motorcycle", "checked": null, "readonly": true, "visible": true, "row_text": "Engine (cc)", "row_cells": ["Engine (cc)", ""], "modal_container": "#bike"}, {"control_id": "m-own", "dom_selector": "#m-own", "tag": "select", "id_attr": "m-own", "label_text": "Ownership", "section_text": "Add motorcycle", "checked": null, "visible": true, "options": [{"value": "", "label": "-- Select --"}, {"value": "Owned outright", "label": "Owned outright"}, {"value": "Financed", "label": "Financed"}, {"value": "Leased", "label": "Leased"}], "row_text": "Ownership-- Select -- Owned outrightFinancedLeased", "row_cells": ["Ownership", "-- Select -- Owned outrightFinancedLeased"], "modal_container": "#bike"}, {"control_id": "bike-ok", "dom_selector": "#bike-ok", "tag": "button", "id_attr": "bike-ok", "label_text": "Add to quote", "section_text": "Add motorcycle", "checked": null, "visible": true, "modal_container": "#bike"}, {"control_id": "bike-cancel", "dom_selector": "#bike-cancel", "tag": "button", "id_attr": "bike-cancel", "label_text": "Cancel", "section_text": "Add motorcycle", "checked": null, "visible": true, "modal_container": "#bike"}], "text_pairs": [], "banners": [], "modals": [{"modal_id": "bike", "container_selector": "#bike", "message_text": "Add motorcycle VIN Decode VIN Model year Make Model Engine (cc) Ownership-- Select -- Owned outrightFinancedLeased Lienholder name Add to quote Cancel"}], "title": "Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 21, "why": "before click selector='[data-pick] >> nth=0'>", "frame_url": "http://127.0.0.1:45451/rater/vin-decoder?vin=AR7TL1272MB300982", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "body > div > table > tbody > tr > td:nth-of-type(5) > button", "tag": "button", "label_text": "Use this vehicle", "section_text": "VIN decoder", "checked": null, "visible": true, "row_text": "2021Ardent Cycle Co.Tallis 12501252Use this vehicle", "row_cells": ["2021", "Ardent Cycle Co.", "Tallis 1250", "1252", "Use this vehicle"]}], "text_pairs": [], "banners": [], "modals": [], "title": "Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 22, "why": "before select_option selector='#bike >> internal:label=\"Ownership\"s'>", "frame_url": "http://127.0.0.1:45451/rater/worksheet", "is_main": true, "controls": [{"control_id": "hdr-basics", "dom_selector": "#hdr-basics", "tag": "button", "id_attr": "hdr-basics", "label_text": "Quote basics \u2713 Saved", "section_text": "Quote basics \u2713 Saved", "checked": null, "visible": true, "row_text": "Quote basics \u2713 Saved"}, {"control_id": "hdr-rider", "dom_selector": "#hdr-rider", "tag": "button", "id_attr": "hdr-rider", "label_text": "Rider \u2713 Saved", "section_text": "Rider \u2713 Saved", "checked": null, "visible": true, "row_text": "Rider \u2713 Saved"}, {"control_id": "hdr-garaging", "dom_selector": "#hdr-garaging", "tag": "button", "id_attr": "hdr-garaging", "label_text": "Garaging address \u2713 Saved", "section_text": "Garaging address \u2713 Saved", "checked": null, "visible": true, "row_text": "Garaging address \u2713 Saved"}, {"control_id": "hdr-motorcycles", "dom_selector": "#hdr-motorcycles", "tag": "button", "id_attr": "hdr-motorcycles", "label_text": "Motorcycles", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "Motorcycles Annual mileage VINYearMakeModelcc OwnershipLienholder Add motorcycle Save panel"}, {"control_id": "annual_miles", "dom_selector": "#annual_miles", "tag": "input", "input_type": "text", "name_attr": "annual_miles", "id_attr": "annual_miles", "label_text": "Annual mileage", "section_text": "Motorcycles", "current_value": "6000", "checked": null, "visible": true, "row_text": "Annual mileage", "row_cells": ["Annual mileage", ""]}, {"control_id": "add-bike", "dom_selector": "#add-bike", "tag": "button", "id_attr": "add-bike", "label_text": "Add motorcycle", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "Motorcycles Annual mileage VINYearMakeModelcc OwnershipLienholder Add motorcycle Save panel"}, {"control_id": "ctrl_6", "dom_selector": "#body-motorcycles > button", "tag": "button", "label_text": "Save panel", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "Motorcycles Annual mileage VINYearMakeModelcc OwnershipLienholder Add motorcycle Save panel"}, {"control_id": "hdr-coverage", "dom_selector": "#hdr-coverage", "tag": "button", "id_attr": "hdr-coverage", "label_text": "Coverage", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "Coverage"}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "id_attr": "rate", "label_text": "Rate this quote", "section_text": "Coverage", "checked": null, "visible": true}, {"control_id": "m-vin", "dom_selector": "#m-vin", "tag": "input", "input_type": "text", "id_attr": "m-vin", "label_text": "VIN", "section_text": "Add motorcycle", "current_value": "AR7TL1272MB300982", "checked": null, "visible": true, "row_text": "VIN Decode VIN", "row_cells": ["VIN", "Decode VIN"], "modal_container": "#bike"}, {"control_id": "decode", "dom_selector": "#decode", "tag": "button", "id_attr": "decode", "label_text": "Decode VIN", "section_text": "Add motorcycle", "checked": null, "visible": true, "row_text": "VIN Decode VIN", "row_cells": ["VIN", "Decode VIN"], "modal_container": "#bike"}, {"control_id": "m-year", "dom_selector": "#m-year", "tag": "input", "input_type": "text", "id_attr": "m-year", "label_text": "Model year", "section_text": "Add motorcycle", "current_value": "2021", "checked": null, "readonly": true, "visible": true, "row_text": "Model year", "row_cells": ["Model year", ""], "modal_container": "#bike"}, {"control_id": "m-make", "dom_selector": "#m-make", "tag": "input", "input_type": "text", "id_attr": "m-make", "label_text": "Make", "section_text": "Add motorcycle", "current_value": "Ardent Cycle Co.", "checked": null, "readonly": true, "visible": true, "row_text": "Make", "row_cells": ["Make", ""], "modal_container": "#bike"}, {"control_id": "m-model", "dom_selector": "#m-model", "tag": "input", "input_type": "text", "id_attr": "m-model", "label_text": "Model", "section_text": "Add motorcycle", "current_value": "Tallis 1250", "checked": null, "readonly": true, "visible": true, "row_text": "Model", "row_cells": ["Model", ""], "modal_container": "#bike"}, {"control_id": "m-cc", "dom_selector": "#m-cc", "tag": "input", "input_type": "text", "id_attr": "m-cc", "label_text": "Engine (cc)", "section_text": "Add motorcycle", "current_value": "1252", "checked": null, "readonly": true, "visible": true, "row_text": "Engine (cc)", "row_cells": ["Engine (cc)", ""], "modal_container": "#bike"}, {"control_id": "m-own", "dom_selector": "#m-own", "tag": "select", "id_attr": "m-own", "label_text": "Ownership", "section_text": "Add motorcycle", "checked": null, "visible": true, "options": [{"value": "", "label": "-- Select --"}, {"value": "Owned outright", "label": "Owned outright"}, {"value": "Financed", "label": "Financed"}, {"value": "Leased", "label": "Leased"}], "row_text": "Ownership-- Select -- Owned outrightFinancedLeased", "row_cells": ["Ownership", "-- Select -- Owned outrightFinancedLeased"], "modal_container": "#bike"}, {"control_id": "bike-ok", "dom_selector": "#bike-ok", "tag": "button", "id_attr": "bike-ok", "label_text": "Add to quote", "section_text": "Add motorcycle", "checked": null, "visible": true, "modal_container": "#bike"}, {"control_id": "bike-cancel", "dom_selector": "#bike-cancel", "tag": "button", "id_attr": "bike-cancel", "label_text": "Cancel", "section_text": "Add motorcycle", "checked": null, "visible": true, "modal_container": "#bike"}], "text_pairs": [], "banners": [], "modals": [{"modal_id": "bike", "container_selector": "#bike", "message_text": "Add motorcycle VIN Decode VIN Model year Make Model Engine (cc) Ownership-- Select -- Owned outrightFinancedLeased Lienholder name Add to quote Cancel"}], "title": "Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 23, "why": "before click selector='#bike >> internal:role=button[name=\"Add to quote\"i]'>", "frame_url": "http://127.0.0.1:45451/rater/worksheet", "is_main": true, "controls": [{"control_id": "hdr-basics", "dom_selector": "#hdr-basics", "tag": "button", "id_attr": "hdr-basics", "label_text": "Quote basics \u2713 Saved", "section_text": "Quote basics \u2713 Saved", "checked": null, "visible": true, "row_text": "Quote basics \u2713 Saved"}, {"control_id": "hdr-rider", "dom_selector": "#hdr-rider", "tag": "button", "id_attr": "hdr-rider", "label_text": "Rider \u2713 Saved", "section_text": "Rider \u2713 Saved", "checked": null, "visible": true, "row_text": "Rider \u2713 Saved"}, {"control_id": "hdr-garaging", "dom_selector": "#hdr-garaging", "tag": "button", "id_attr": "hdr-garaging", "label_text": "Garaging address \u2713 Saved", "section_text": "Garaging address \u2713 Saved", "checked": null, "visible": true, "row_text": "Garaging address \u2713 Saved"}, {"control_id": "hdr-motorcycles", "dom_selector": "#hdr-motorcycles", "tag": "button", "id_attr": "hdr-motorcycles", "label_text": "Motorcycles", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "Motorcycles Annual mileage VINYearMakeModelcc OwnershipLienholder Add motorcycle Save panel"}, {"control_id": "annual_miles", "dom_selector": "#annual_miles", "tag": "input", "input_type": "text", "name_attr": "annual_miles", "id_attr": "annual_miles", "label_text": "Annual mileage", "section_text": "Motorcycles", "current_value": "6000", "checked": null, "visible": true, "row_text": "Annual mileage", "row_cells": ["Annual mileage", ""]}, {"control_id": "add-bike", "dom_selector": "#add-bike", "tag": "button", "id_attr": "add-bike", "label_text": "Add motorcycle", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "Motorcycles Annual mileage VINYearMakeModelcc OwnershipLienholder Add motorcycle Save panel"}, {"control_id": "ctrl_6", "dom_selector": "#body-motorcycles > button", "tag": "button", "label_text": "Save panel", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "Motorcycles Annual mileage VINYearMakeModelcc OwnershipLienholder Add motorcycle Save panel"}, {"control_id": "hdr-coverage", "dom_selector": "#hdr-coverage", "tag": "button", "id_attr": "hdr-coverage", "label_text": "Coverage", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "Coverage"}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "id_attr": "rate", "label_text": "Rate this quote", "section_text": "Coverage", "checked": null, "visible": true}, {"control_id": "m-vin", "dom_selector": "#m-vin", "tag": "input", "input_type": "text", "id_attr": "m-vin", "label_text": "VIN", "section_text": "Add motorcycle", "current_value": "AR7TL1272MB300982", "checked": null, "visible": true, "row_text": "VIN Decode VIN", "row_cells": ["VIN", "Decode VIN"], "modal_container": "#bike"}, {"control_id": "decode", "dom_selector": "#decode", "tag": "button", "id_attr": "decode", "label_text": "Decode VIN", "section_text": "Add motorcycle", "checked": null, "visible": true, "row_text": "VIN Decode VIN", "row_cells": ["VIN", "Decode VIN"], "modal_container": "#bike"}, {"control_id": "m-year", "dom_selector": "#m-year", "tag": "input", "input_type": "text", "id_attr": "m-year", "label_text": "Model year", "section_text": "Add motorcycle", "current_value": "2021", "checked": null, "readonly": true, "visible": true, "row_text": "Model year", "row_cells": ["Model year", ""], "modal_container": "#bike"}, {"control_id": "m-make", "dom_selector": "#m-make", "tag": "input", "input_type": "text", "id_attr": "m-make", "label_text": "Make", "section_text": "Add motorcycle", "current_value": "Ardent Cycle Co.", "checked": null, "readonly": true, "visible": true, "row_text": "Make", "row_cells": ["Make", ""], "modal_container": "#bike"}, {"control_id": "m-model", "dom_selector": "#m-model", "tag": "input", "input_type": "text", "id_attr": "m-model", "label_text": "Model", "section_text": "Add motorcycle", "current_value": "Tallis 1250", "checked": null, "readonly": true, "visible": true, "row_text": "Model", "row_cells": ["Model", ""], "modal_container": "#bike"}, {"control_id": "m-cc", "dom_selector": "#m-cc", "tag": "input", "input_type": "text", "id_attr": "m-cc", "label_text": "Engine (cc)", "section_text": "Add motorcycle", "current_value": "1252", "checked": null, "readonly": true, "visible": true, "row_text": "Engine (cc)", "row_cells": ["Engine (cc)", ""], "modal_container": "#bike"}, {"control_id": "m-own", "dom_selector": "#m-own", "tag": "select", "id_attr": "m-own", "label_text": "Ownership", "section_text": "Add motorcycle", "current_value": "Owned outright", "checked": null, "visible": true, "options": [{"value": "", "label": "-- Select --"}, {"value": "Owned outright", "label": "Owned outright"}, {"value": "Financed", "label": "Financed"}, {"value": "Leased", "label": "Leased"}], "row_text": "Ownership-- Select -- Owned outrightFinancedLeased", "row_cells": ["Ownership", "-- Select -- Owned outrightFinancedLeased"], "modal_container": "#bike"}, {"control_id": "bike-ok", "dom_selector": "#bike-ok", "tag": "button", "id_attr": "bike-ok", "label_text": "Add to quote", "section_text": "Add motorcycle", "checked": null, "visible": true, "modal_container": "#bike"}, {"control_id": "bike-cancel", "dom_selector": "#bike-cancel", "tag": "button", "id_attr": "bike-cancel", "label_text": "Cancel", "section_text": "Add motorcycle", "checked": null, "visible": true, "modal_container": "#bike"}], "text_pairs": [], "banners": [], "modals": [{"modal_id": "bike", "container_selector": "#bike", "message_text": "Add motorcycle VIN Decode VIN Model year Make Model Engine (cc) Ownership-- Select -- Owned outrightFinancedLeased Lienholder name Add to quote Cancel"}], "title": "Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 24, "why": "before fill selector='section.panel[data-panel=\"motorcycles\"] >> internal:label=\"Annual mileage\"s'>", "frame_url": "http://127.0.0.1:45451/rater/worksheet", "is_main": true, "controls": [{"control_id": "hdr-basics", "dom_selector": "#hdr-basics", "tag": "button", "id_attr": "hdr-basics", "label_text": "Quote basics \u2713 Saved", "section_text": "Quote basics \u2713 Saved", "checked": null, "visible": true, "row_text": "Quote basics \u2713 Saved"}, {"control_id": "hdr-rider", "dom_selector": "#hdr-rider", "tag": "button", "id_attr": "hdr-rider", "label_text": "Rider \u2713 Saved", "section_text": "Rider \u2713 Saved", "checked": null, "visible": true, "row_text": "Rider \u2713 Saved"}, {"control_id": "hdr-garaging", "dom_selector": "#hdr-garaging", "tag": "button", "id_attr": "hdr-garaging", "label_text": "Garaging address \u2713 Saved", "section_text": "Garaging address \u2713 Saved", "checked": null, "visible": true, "row_text": "Garaging address \u2713 Saved"}, {"control_id": "hdr-motorcycles", "dom_selector": "#hdr-motorcycles", "tag": "button", "id_attr": "hdr-motorcycles", "label_text": "Motorcycles", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "Motorcycles Annual mileage VINYearMakeModelcc OwnershipLienholderAR7TL1272MB3009822021Ardent Cycle Co.Tallis 12501252Owned outright\u2014Remove Add motorcycle Save panel"}, {"control_id": "annual_miles", "dom_selector": "#annual_miles", "tag": "input", "input_type": "text", "name_attr": "annual_miles", "id_attr": "annual_miles", "label_text": "Annual mileage", "section_text": "Motorcycles", "current_value": "6000", "checked": null, "visible": true, "row_text": "Annual mileage", "row_cells": ["Annual mileage", ""]}, {"control_id": "ctrl_5", "dom_selector": "#bike-grid > tbody > tr > td:nth-of-type(8) > button", "tag": "button", "label_text": "Remove", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "AR7TL1272MB3009822021Ardent Cycle Co.Tallis 12501252Owned outright\u2014Remove", "row_cells": ["AR7TL1272MB300982", "2021", "Ardent Cycle Co.", "Tallis 1250", "1252", "Owned outright", "\u2014", "Remove"]}, {"control_id": "add-bike", "dom_selector": "#add-bike", "tag": "button", "id_attr": "add-bike", "label_text": "Add motorcycle", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "Motorcycles Annual mileage VINYearMakeModelcc OwnershipLienholderAR7TL1272MB3009822021Ardent Cycle Co.Tallis 12501252Owned outright\u2014Remove Add motorcycle Save panel"}, {"control_id": "ctrl_7", "dom_selector": "#body-motorcycles > button", "tag": "button", "label_text": "Save panel", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "Motorcycles Annual mileage VINYearMakeModelcc OwnershipLienholderAR7TL1272MB3009822021Ardent Cycle Co.Tallis 12501252Owned outright\u2014Remove Add motorcycle Save panel"}, {"control_id": "hdr-coverage", "dom_selector": "#hdr-coverage", "tag": "button", "id_attr": "hdr-coverage", "label_text": "Coverage", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "Coverage"}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "id_attr": "rate", "label_text": "Rate this quote", "section_text": "Coverage", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 25, "why": "before click selector='section.panel[data-panel=\"motorcycles\"] >> [data-save=\"motorcycles\"]'>", "frame_url": "http://127.0.0.1:45451/rater/worksheet", "is_main": true, "controls": [{"control_id": "hdr-basics", "dom_selector": "#hdr-basics", "tag": "button", "id_attr": "hdr-basics", "label_text": "Quote basics \u2713 Saved", "section_text": "Quote basics \u2713 Saved", "checked": null, "visible": true, "row_text": "Quote basics \u2713 Saved"}, {"control_id": "hdr-rider", "dom_selector": "#hdr-rider", "tag": "button", "id_attr": "hdr-rider", "label_text": "Rider \u2713 Saved", "section_text": "Rider \u2713 Saved", "checked": null, "visible": true, "row_text": "Rider \u2713 Saved"}, {"control_id": "hdr-garaging", "dom_selector": "#hdr-garaging", "tag": "button", "id_attr": "hdr-garaging", "label_text": "Garaging address \u2713 Saved", "section_text": "Garaging address \u2713 Saved", "checked": null, "visible": true, "row_text": "Garaging address \u2713 Saved"}, {"control_id": "hdr-motorcycles", "dom_selector": "#hdr-motorcycles", "tag": "button", "id_attr": "hdr-motorcycles", "label_text": "Motorcycles", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "Motorcycles Annual mileage VINYearMakeModelcc OwnershipLienholderAR7TL1272MB3009822021Ardent Cycle Co.Tallis 12501252Owned outright\u2014Remove Add motorcycle Save panel"}, {"control_id": "annual_miles", "dom_selector": "#annual_miles", "tag": "input", "input_type": "text", "name_attr": "annual_miles", "id_attr": "annual_miles", "label_text": "Annual mileage", "section_text": "Motorcycles", "current_value": "5000", "checked": null, "visible": true, "row_text": "Annual mileage", "row_cells": ["Annual mileage", ""]}, {"control_id": "ctrl_5", "dom_selector": "#bike-grid > tbody > tr > td:nth-of-type(8) > button", "tag": "button", "label_text": "Remove", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "AR7TL1272MB3009822021Ardent Cycle Co.Tallis 12501252Owned outright\u2014Remove", "row_cells": ["AR7TL1272MB300982", "2021", "Ardent Cycle Co.", "Tallis 1250", "1252", "Owned outright", "\u2014", "Remove"]}, {"control_id": "add-bike", "dom_selector": "#add-bike", "tag": "button", "id_attr": "add-bike", "label_text": "Add motorcycle", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "Motorcycles Annual mileage VINYearMakeModelcc OwnershipLienholderAR7TL1272MB3009822021Ardent Cycle Co.Tallis 12501252Owned outright\u2014Remove Add motorcycle Save panel"}, {"control_id": "ctrl_7", "dom_selector": "#body-motorcycles > button", "tag": "button", "label_text": "Save panel", "section_text": "Motorcycles", "checked": null, "visible": true, "row_text": "Motorcycles Annual mileage VINYearMakeModelcc OwnershipLienholderAR7TL1272MB3009822021Ardent Cycle Co.Tallis 12501252Owned outright\u2014Remove Add motorcycle Save panel"}, {"control_id": "hdr-coverage", "dom_selector": "#hdr-coverage", "tag": "button", "id_attr": "hdr-coverage", "label_text": "Coverage", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "Coverage"}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "id_attr": "rate", "label_text": "Rate this quote", "section_text": "Coverage", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 26, "why": "before select_option selector='section.panel[data-panel=\"coverage\"] >> internal:label=\"Liability limits (BI/PD)\"s'>", "frame_url": "http://127.0.0.1:45451/rater/worksheet", "is_main": true, "controls": [{"control_id": "hdr-basics", "dom_selector": "#hdr-basics", "tag": "button", "id_attr": "hdr-basics", "label_text": "Quote basics \u2713 Saved", "section_text": "Quote basics \u2713 Saved", "checked": null, "visible": true, "row_text": "Quote basics \u2713 Saved"}, {"control_id": "hdr-rider", "dom_selector": "#hdr-rider", "tag": "button", "id_attr": "hdr-rider", "label_text": "Rider \u2713 Saved", "section_text": "Rider \u2713 Saved", "checked": null, "visible": true, "row_text": "Rider \u2713 Saved"}, {"control_id": "hdr-garaging", "dom_selector": "#hdr-garaging", "tag": "button", "id_attr": "hdr-garaging", "label_text": "Garaging address \u2713 Saved", "section_text": "Garaging address \u2713 Saved", "checked": null, "visible": true, "row_text": "Garaging address \u2713 Saved"}, {"control_id": "hdr-motorcycles", "dom_selector": "#hdr-motorcycles", "tag": "button", "id_attr": "hdr-motorcycles", "label_text": "Motorcycles \u2713 Saved", "section_text": "Motorcycles \u2713 Saved", "checked": null, "visible": true, "row_text": "Motorcycles \u2713 Saved Annual mileage VINYearMakeModelcc OwnershipLienholderAR7TL1272MB3009822021Ardent Cycle Co.Tallis 12501252Owned outright\u2014Remove Add motorcycle Save panel"}, {"control_id": "hdr-coverage", "dom_selector": "#hdr-coverage", "tag": "button", "id_attr": "hdr-coverage", "label_text": "Coverage", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "Coverage"}, {"control_id": "bi_pd_limits", "dom_selector": "#bi_pd_limits", "tag": "select", "name_attr": "bi_pd_limits", "id_attr": "bi_pd_limits", "label_text": "Liability limits (BI/PD)", "section_text": "Coverage", "current_value": "25/50/25", "checked": null, "visible": true, "options": [{"value": "25/50/25", "label": "25/50/25"}, {"value": "50/100/50", "label": "50/100/50"}, {"value": "100/300/100", "label": "100/300/100"}, {"value": "250/500/100", "label": "250/500/100"}], "row_text": "Liability limits (BI/PD)25/50/2550/100/50100/300/100250/500/100", "row_cells": ["Liability limits (BI/PD)", "25/50/2550/100/50100/300/100250/500/100"]}, {"control_id": "collision_deductible", "dom_selector": "#collision_deductible", "tag": "select", "name_attr": "collision_deductible", "id_attr": "collision_deductible", "label_text": "Collision deductible", "section_text": "Coverage", "current_value": "500", "checked": null, "visible": true, "options": [{"value": "250", "label": "$250"}, {"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}], "row_text": "Collision deductible$250$500$1,000", "row_cells": ["Collision deductible", "$250$500$1,000"]}, {"control_id": "comprehensive_deductible", "dom_selector": "#comprehensive_deductible", "tag": "select", "name_attr": "comprehensive_deductible", "id_attr": "comprehensive_deductible", "label_text": "Comprehensive deductible", "section_text": "Coverage", "current_value": "500", "checked": null, "visible": true, "options": [{"value": "100", "label": "$100"}, {"value": "250", "label": "$250"}, {"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}], "row_text": "Comprehensive deductible$100$250$500$1,000", "row_cells": ["Comprehensive deductible", "$100$250$500$1,000"]}, {"control_id": "cpe_coverage", "dom_selector": "#cpe_coverage", "tag": "input", "input_type": "text", "name_attr": "cpe_coverage", "id_attr": "cpe_coverage", "label_text": "Custom parts and equipment", "section_text": "Coverage", "current_value": "0", "checked": null, "visible": true, "row_text": "Custom parts and equipment", "row_cells": ["Custom parts and equipment", ""]}, {"control_id": "open-cpe", "dom_selector": "#open-cpe", "tag": "button", "id_attr": "open-cpe", "label_text": "CPE worksheet", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "CPE worksheet", "row_cells": ["", "CPE worksheet"]}, {"control_id": "roadside", "dom_selector": "#roadside", "tag": "select", "name_attr": "roadside", "id_attr": "roadside", "label_text": "Roadside coverage", "section_text": "Coverage", "current_value": "Not included", "checked": null, "visible": true, "options": [{"value": "Not included", "label": "Not included"}, {"value": "Roadside assistance", "label": "Roadside assistance"}, {"value": "Roadside and trip interruption", "label": "Roadside and trip interruption"}], "row_text": "Roadside coverageNot includedRoadside assistanceRoadside and trip interruption", "row_cells": ["Roadside coverage", "Not includedRoadside assistanceRoadside and trip interruption"]}, {"control_id": "ctrl_11", "dom_selector": "#body-coverage > button", "tag": "button", "label_text": "Save panel", "section_text": "Coverage", "checked": null, "visible": true}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "id_attr": "rate", "label_text": "Rate this quote", "section_text": "Coverage", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 27, "why": "before select_option selector='section.panel[data-panel=\"coverage\"] >> internal:label=\"Collision deductible\"s'>", "frame_url": "http://127.0.0.1:45451/rater/worksheet", "is_main": true, "controls": [{"control_id": "hdr-basics", "dom_selector": "#hdr-basics", "tag": "button", "id_attr": "hdr-basics", "label_text": "Quote basics \u2713 Saved", "section_text": "Quote basics \u2713 Saved", "checked": null, "visible": true, "row_text": "Quote basics \u2713 Saved"}, {"control_id": "hdr-rider", "dom_selector": "#hdr-rider", "tag": "button", "id_attr": "hdr-rider", "label_text": "Rider \u2713 Saved", "section_text": "Rider \u2713 Saved", "checked": null, "visible": true, "row_text": "Rider \u2713 Saved"}, {"control_id": "hdr-garaging", "dom_selector": "#hdr-garaging", "tag": "button", "id_attr": "hdr-garaging", "label_text": "Garaging address \u2713 Saved", "section_text": "Garaging address \u2713 Saved", "checked": null, "visible": true, "row_text": "Garaging address \u2713 Saved"}, {"control_id": "hdr-motorcycles", "dom_selector": "#hdr-motorcycles", "tag": "button", "id_attr": "hdr-motorcycles", "label_text": "Motorcycles \u2713 Saved", "section_text": "Motorcycles \u2713 Saved", "checked": null, "visible": true, "row_text": "Motorcycles \u2713 Saved Annual mileage VINYearMakeModelcc OwnershipLienholderAR7TL1272MB3009822021Ardent Cycle Co.Tallis 12501252Owned outright\u2014Remove Add motorcycle Save panel"}, {"control_id": "hdr-coverage", "dom_selector": "#hdr-coverage", "tag": "button", "id_attr": "hdr-coverage", "label_text": "Coverage", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "Coverage"}, {"control_id": "bi_pd_limits", "dom_selector": "#bi_pd_limits", "tag": "select", "name_attr": "bi_pd_limits", "id_attr": "bi_pd_limits", "label_text": "Liability limits (BI/PD)", "section_text": "Coverage", "current_value": "100/300/100", "checked": null, "visible": true, "options": [{"value": "25/50/25", "label": "25/50/25"}, {"value": "50/100/50", "label": "50/100/50"}, {"value": "100/300/100", "label": "100/300/100"}, {"value": "250/500/100", "label": "250/500/100"}], "row_text": "Liability limits (BI/PD)25/50/2550/100/50100/300/100250/500/100", "row_cells": ["Liability limits (BI/PD)", "25/50/2550/100/50100/300/100250/500/100"]}, {"control_id": "collision_deductible", "dom_selector": "#collision_deductible", "tag": "select", "name_attr": "collision_deductible", "id_attr": "collision_deductible", "label_text": "Collision deductible", "section_text": "Coverage", "current_value": "500", "checked": null, "visible": true, "options": [{"value": "250", "label": "$250"}, {"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}], "row_text": "Collision deductible$250$500$1,000", "row_cells": ["Collision deductible", "$250$500$1,000"]}, {"control_id": "comprehensive_deductible", "dom_selector": "#comprehensive_deductible", "tag": "select", "name_attr": "comprehensive_deductible", "id_attr": "comprehensive_deductible", "label_text": "Comprehensive deductible", "section_text": "Coverage", "current_value": "500", "checked": null, "visible": true, "options": [{"value": "100", "label": "$100"}, {"value": "250", "label": "$250"}, {"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}], "row_text": "Comprehensive deductible$100$250$500$1,000", "row_cells": ["Comprehensive deductible", "$100$250$500$1,000"]}, {"control_id": "cpe_coverage", "dom_selector": "#cpe_coverage", "tag": "input", "input_type": "text", "name_attr": "cpe_coverage", "id_attr": "cpe_coverage", "label_text": "Custom parts and equipment", "section_text": "Coverage", "current_value": "0", "checked": null, "visible": true, "row_text": "Custom parts and equipment", "row_cells": ["Custom parts and equipment", ""]}, {"control_id": "open-cpe", "dom_selector": "#open-cpe", "tag": "button", "id_attr": "open-cpe", "label_text": "CPE worksheet", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "CPE worksheet", "row_cells": ["", "CPE worksheet"]}, {"control_id": "roadside", "dom_selector": "#roadside", "tag": "select", "name_attr": "roadside", "id_attr": "roadside", "label_text": "Roadside coverage", "section_text": "Coverage", "current_value": "Not included", "checked": null, "visible": true, "options": [{"value": "Not included", "label": "Not included"}, {"value": "Roadside assistance", "label": "Roadside assistance"}, {"value": "Roadside and trip interruption", "label": "Roadside and trip interruption"}], "row_text": "Roadside coverageNot includedRoadside assistanceRoadside and trip interruption", "row_cells": ["Roadside coverage", "Not includedRoadside assistanceRoadside and trip interruption"]}, {"control_id": "ctrl_11", "dom_selector": "#body-coverage > button", "tag": "button", "label_text": "Save panel", "section_text": "Coverage", "checked": null, "visible": true}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "id_attr": "rate", "label_text": "Rate this quote", "section_text": "Coverage", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 28, "why": "before select_option selector='section.panel[data-panel=\"coverage\"] >> internal:label=\"Comprehensive deductible\"s'>", "frame_url": "http://127.0.0.1:45451/rater/worksheet", "is_main": true, "controls": [{"control_id": "hdr-basics", "dom_selector": "#hdr-basics", "tag": "button", "id_attr": "hdr-basics", "label_text": "Quote basics \u2713 Saved", "section_text": "Quote basics \u2713 Saved", "checked": null, "visible": true, "row_text": "Quote basics \u2713 Saved"}, {"control_id": "hdr-rider", "dom_selector": "#hdr-rider", "tag": "button", "id_attr": "hdr-rider", "label_text": "Rider \u2713 Saved", "section_text": "Rider \u2713 Saved", "checked": null, "visible": true, "row_text": "Rider \u2713 Saved"}, {"control_id": "hdr-garaging", "dom_selector": "#hdr-garaging", "tag": "button", "id_attr": "hdr-garaging", "label_text": "Garaging address \u2713 Saved", "section_text": "Garaging address \u2713 Saved", "checked": null, "visible": true, "row_text": "Garaging address \u2713 Saved"}, {"control_id": "hdr-motorcycles", "dom_selector": "#hdr-motorcycles", "tag": "button", "id_attr": "hdr-motorcycles", "label_text": "Motorcycles \u2713 Saved", "section_text": "Motorcycles \u2713 Saved", "checked": null, "visible": true, "row_text": "Motorcycles \u2713 Saved Annual mileage VINYearMakeModelcc OwnershipLienholderAR7TL1272MB3009822021Ardent Cycle Co.Tallis 12501252Owned outright\u2014Remove Add motorcycle Save panel"}, {"control_id": "hdr-coverage", "dom_selector": "#hdr-coverage", "tag": "button", "id_attr": "hdr-coverage", "label_text": "Coverage", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "Coverage"}, {"control_id": "bi_pd_limits", "dom_selector": "#bi_pd_limits", "tag": "select", "name_attr": "bi_pd_limits", "id_attr": "bi_pd_limits", "label_text": "Liability limits (BI/PD)", "section_text": "Coverage", "current_value": "100/300/100", "checked": null, "visible": true, "options": [{"value": "25/50/25", "label": "25/50/25"}, {"value": "50/100/50", "label": "50/100/50"}, {"value": "100/300/100", "label": "100/300/100"}, {"value": "250/500/100", "label": "250/500/100"}], "row_text": "Liability limits (BI/PD)25/50/2550/100/50100/300/100250/500/100", "row_cells": ["Liability limits (BI/PD)", "25/50/2550/100/50100/300/100250/500/100"]}, {"control_id": "collision_deductible", "dom_selector": "#collision_deductible", "tag": "select", "name_attr": "collision_deductible", "id_attr": "collision_deductible", "label_text": "Collision deductible", "section_text": "Coverage", "current_value": "500", "checked": null, "visible": true, "options": [{"value": "250", "label": "$250"}, {"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}], "row_text": "Collision deductible$250$500$1,000", "row_cells": ["Collision deductible", "$250$500$1,000"]}, {"control_id": "comprehensive_deductible", "dom_selector": "#comprehensive_deductible", "tag": "select", "name_attr": "comprehensive_deductible", "id_attr": "comprehensive_deductible", "label_text": "Comprehensive deductible", "section_text": "Coverage", "current_value": "500", "checked": null, "visible": true, "options": [{"value": "100", "label": "$100"}, {"value": "250", "label": "$250"}, {"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}], "row_text": "Comprehensive deductible$100$250$500$1,000", "row_cells": ["Comprehensive deductible", "$100$250$500$1,000"]}, {"control_id": "cpe_coverage", "dom_selector": "#cpe_coverage", "tag": "input", "input_type": "text", "name_attr": "cpe_coverage", "id_attr": "cpe_coverage", "label_text": "Custom parts and equipment", "section_text": "Coverage", "current_value": "0", "checked": null, "visible": true, "row_text": "Custom parts and equipment", "row_cells": ["Custom parts and equipment", ""]}, {"control_id": "open-cpe", "dom_selector": "#open-cpe", "tag": "button", "id_attr": "open-cpe", "label_text": "CPE worksheet", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "CPE worksheet", "row_cells": ["", "CPE worksheet"]}, {"control_id": "roadside", "dom_selector": "#roadside", "tag": "select", "name_attr": "roadside", "id_attr": "roadside", "label_text": "Roadside coverage", "section_text": "Coverage", "current_value": "Not included", "checked": null, "visible": true, "options": [{"value": "Not included", "label": "Not included"}, {"value": "Roadside assistance", "label": "Roadside assistance"}, {"value": "Roadside and trip interruption", "label": "Roadside and trip interruption"}], "row_text": "Roadside coverageNot includedRoadside assistanceRoadside and trip interruption", "row_cells": ["Roadside coverage", "Not includedRoadside assistanceRoadside and trip interruption"]}, {"control_id": "ctrl_11", "dom_selector": "#body-coverage > button", "tag": "button", "label_text": "Save panel", "section_text": "Coverage", "checked": null, "visible": true}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "id_attr": "rate", "label_text": "Rate this quote", "section_text": "Coverage", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 29, "why": "before fill selector='section.panel[data-panel=\"coverage\"] >> internal:label=\"Custom parts and equipment\"s'>", "frame_url": "http://127.0.0.1:45451/rater/worksheet", "is_main": true, "controls": [{"control_id": "hdr-basics", "dom_selector": "#hdr-basics", "tag": "button", "id_attr": "hdr-basics", "label_text": "Quote basics \u2713 Saved", "section_text": "Quote basics \u2713 Saved", "checked": null, "visible": true, "row_text": "Quote basics \u2713 Saved"}, {"control_id": "hdr-rider", "dom_selector": "#hdr-rider", "tag": "button", "id_attr": "hdr-rider", "label_text": "Rider \u2713 Saved", "section_text": "Rider \u2713 Saved", "checked": null, "visible": true, "row_text": "Rider \u2713 Saved"}, {"control_id": "hdr-garaging", "dom_selector": "#hdr-garaging", "tag": "button", "id_attr": "hdr-garaging", "label_text": "Garaging address \u2713 Saved", "section_text": "Garaging address \u2713 Saved", "checked": null, "visible": true, "row_text": "Garaging address \u2713 Saved"}, {"control_id": "hdr-motorcycles", "dom_selector": "#hdr-motorcycles", "tag": "button", "id_attr": "hdr-motorcycles", "label_text": "Motorcycles \u2713 Saved", "section_text": "Motorcycles \u2713 Saved", "checked": null, "visible": true, "row_text": "Motorcycles \u2713 Saved Annual mileage VINYearMakeModelcc OwnershipLienholderAR7TL1272MB3009822021Ardent Cycle Co.Tallis 12501252Owned outright\u2014Remove Add motorcycle Save panel"}, {"control_id": "hdr-coverage", "dom_selector": "#hdr-coverage", "tag": "button", "id_attr": "hdr-coverage", "label_text": "Coverage", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "Coverage"}, {"control_id": "bi_pd_limits", "dom_selector": "#bi_pd_limits", "tag": "select", "name_attr": "bi_pd_limits", "id_attr": "bi_pd_limits", "label_text": "Liability limits (BI/PD)", "section_text": "Coverage", "current_value": "100/300/100", "checked": null, "visible": true, "options": [{"value": "25/50/25", "label": "25/50/25"}, {"value": "50/100/50", "label": "50/100/50"}, {"value": "100/300/100", "label": "100/300/100"}, {"value": "250/500/100", "label": "250/500/100"}], "row_text": "Liability limits (BI/PD)25/50/2550/100/50100/300/100250/500/100", "row_cells": ["Liability limits (BI/PD)", "25/50/2550/100/50100/300/100250/500/100"]}, {"control_id": "collision_deductible", "dom_selector": "#collision_deductible", "tag": "select", "name_attr": "collision_deductible", "id_attr": "collision_deductible", "label_text": "Collision deductible", "section_text": "Coverage", "current_value": "500", "checked": null, "visible": true, "options": [{"value": "250", "label": "$250"}, {"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}], "row_text": "Collision deductible$250$500$1,000", "row_cells": ["Collision deductible", "$250$500$1,000"]}, {"control_id": "comprehensive_deductible", "dom_selector": "#comprehensive_deductible", "tag": "select", "name_attr": "comprehensive_deductible", "id_attr": "comprehensive_deductible", "label_text": "Comprehensive deductible", "section_text": "Coverage", "current_value": "250", "checked": null, "visible": true, "options": [{"value": "100", "label": "$100"}, {"value": "250", "label": "$250"}, {"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}], "row_text": "Comprehensive deductible$100$250$500$1,000", "row_cells": ["Comprehensive deductible", "$100$250$500$1,000"]}, {"control_id": "cpe_coverage", "dom_selector": "#cpe_coverage", "tag": "input", "input_type": "text", "name_attr": "cpe_coverage", "id_attr": "cpe_coverage", "label_text": "Custom parts and equipment", "section_text": "Coverage", "current_value": "0", "checked": null, "visible": true, "row_text": "Custom parts and equipment", "row_cells": ["Custom parts and equipment", ""]}, {"control_id": "open-cpe", "dom_selector": "#open-cpe", "tag": "button", "id_attr": "open-cpe", "label_text": "CPE worksheet", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "CPE worksheet", "row_cells": ["", "CPE worksheet"]}, {"control_id": "roadside", "dom_selector": "#roadside", "tag": "select", "name_attr": "roadside", "id_attr": "roadside", "label_text": "Roadside coverage", "section_text": "Coverage", "current_value": "Not included", "checked": null, "visible": true, "options": [{"value": "Not included", "label": "Not included"}, {"value": "Roadside assistance", "label": "Roadside assistance"}, {"value": "Roadside and trip interruption", "label": "Roadside and trip interruption"}], "row_text": "Roadside coverageNot includedRoadside assistanceRoadside and trip interruption", "row_cells": ["Roadside coverage", "Not includedRoadside assistanceRoadside and trip interruption"]}, {"control_id": "ctrl_11", "dom_selector": "#body-coverage > button", "tag": "button", "label_text": "Save panel", "section_text": "Coverage", "checked": null, "visible": true}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "id_attr": "rate", "label_text": "Rate this quote", "section_text": "Coverage", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 30, "why": "before select_option selector='section.panel[data-panel=\"coverage\"] >> internal:label=\"Roadside coverage\"s'>", "frame_url": "http://127.0.0.1:45451/rater/worksheet", "is_main": true, "controls": [{"control_id": "hdr-basics", "dom_selector": "#hdr-basics", "tag": "button", "id_attr": "hdr-basics", "label_text": "Quote basics \u2713 Saved", "section_text": "Quote basics \u2713 Saved", "checked": null, "visible": true, "row_text": "Quote basics \u2713 Saved"}, {"control_id": "hdr-rider", "dom_selector": "#hdr-rider", "tag": "button", "id_attr": "hdr-rider", "label_text": "Rider \u2713 Saved", "section_text": "Rider \u2713 Saved", "checked": null, "visible": true, "row_text": "Rider \u2713 Saved"}, {"control_id": "hdr-garaging", "dom_selector": "#hdr-garaging", "tag": "button", "id_attr": "hdr-garaging", "label_text": "Garaging address \u2713 Saved", "section_text": "Garaging address \u2713 Saved", "checked": null, "visible": true, "row_text": "Garaging address \u2713 Saved"}, {"control_id": "hdr-motorcycles", "dom_selector": "#hdr-motorcycles", "tag": "button", "id_attr": "hdr-motorcycles", "label_text": "Motorcycles \u2713 Saved", "section_text": "Motorcycles \u2713 Saved", "checked": null, "visible": true, "row_text": "Motorcycles \u2713 Saved Annual mileage VINYearMakeModelcc OwnershipLienholderAR7TL1272MB3009822021Ardent Cycle Co.Tallis 12501252Owned outright\u2014Remove Add motorcycle Save panel"}, {"control_id": "hdr-coverage", "dom_selector": "#hdr-coverage", "tag": "button", "id_attr": "hdr-coverage", "label_text": "Coverage", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "Coverage"}, {"control_id": "bi_pd_limits", "dom_selector": "#bi_pd_limits", "tag": "select", "name_attr": "bi_pd_limits", "id_attr": "bi_pd_limits", "label_text": "Liability limits (BI/PD)", "section_text": "Coverage", "current_value": "100/300/100", "checked": null, "visible": true, "options": [{"value": "25/50/25", "label": "25/50/25"}, {"value": "50/100/50", "label": "50/100/50"}, {"value": "100/300/100", "label": "100/300/100"}, {"value": "250/500/100", "label": "250/500/100"}], "row_text": "Liability limits (BI/PD)25/50/2550/100/50100/300/100250/500/100", "row_cells": ["Liability limits (BI/PD)", "25/50/2550/100/50100/300/100250/500/100"]}, {"control_id": "collision_deductible", "dom_selector": "#collision_deductible", "tag": "select", "name_attr": "collision_deductible", "id_attr": "collision_deductible", "label_text": "Collision deductible", "section_text": "Coverage", "current_value": "500", "checked": null, "visible": true, "options": [{"value": "250", "label": "$250"}, {"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}], "row_text": "Collision deductible$250$500$1,000", "row_cells": ["Collision deductible", "$250$500$1,000"]}, {"control_id": "comprehensive_deductible", "dom_selector": "#comprehensive_deductible", "tag": "select", "name_attr": "comprehensive_deductible", "id_attr": "comprehensive_deductible", "label_text": "Comprehensive deductible", "section_text": "Coverage", "current_value": "250", "checked": null, "visible": true, "options": [{"value": "100", "label": "$100"}, {"value": "250", "label": "$250"}, {"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}], "row_text": "Comprehensive deductible$100$250$500$1,000", "row_cells": ["Comprehensive deductible", "$100$250$500$1,000"]}, {"control_id": "cpe_coverage", "dom_selector": "#cpe_coverage", "tag": "input", "input_type": "text", "name_attr": "cpe_coverage", "id_attr": "cpe_coverage", "label_text": "Custom parts and equipment", "section_text": "Coverage", "current_value": "1500", "checked": null, "visible": true, "row_text": "Custom parts and equipment", "row_cells": ["Custom parts and equipment", ""]}, {"control_id": "open-cpe", "dom_selector": "#open-cpe", "tag": "button", "id_attr": "open-cpe", "label_text": "CPE worksheet", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "CPE worksheet", "row_cells": ["", "CPE worksheet"]}, {"control_id": "roadside", "dom_selector": "#roadside", "tag": "select", "name_attr": "roadside", "id_attr": "roadside", "label_text": "Roadside coverage", "section_text": "Coverage", "current_value": "Not included", "checked": null, "visible": true, "options": [{"value": "Not included", "label": "Not included"}, {"value": "Roadside assistance", "label": "Roadside assistance"}, {"value": "Roadside and trip interruption", "label": "Roadside and trip interruption"}], "row_text": "Roadside coverageNot includedRoadside assistanceRoadside and trip interruption", "row_cells": ["Roadside coverage", "Not includedRoadside assistanceRoadside and trip interruption"]}, {"control_id": "ctrl_11", "dom_selector": "#body-coverage > button", "tag": "button", "label_text": "Save panel", "section_text": "Coverage", "checked": null, "visible": true}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "id_attr": "rate", "label_text": "Rate this quote", "section_text": "Coverage", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 31, "why": "before click selector='section.panel[data-panel=\"coverage\"] >> [data-save=\"coverage\"]'>", "frame_url": "http://127.0.0.1:45451/rater/worksheet", "is_main": true, "controls": [{"control_id": "hdr-basics", "dom_selector": "#hdr-basics", "tag": "button", "id_attr": "hdr-basics", "label_text": "Quote basics \u2713 Saved", "section_text": "Quote basics \u2713 Saved", "checked": null, "visible": true, "row_text": "Quote basics \u2713 Saved"}, {"control_id": "hdr-rider", "dom_selector": "#hdr-rider", "tag": "button", "id_attr": "hdr-rider", "label_text": "Rider \u2713 Saved", "section_text": "Rider \u2713 Saved", "checked": null, "visible": true, "row_text": "Rider \u2713 Saved"}, {"control_id": "hdr-garaging", "dom_selector": "#hdr-garaging", "tag": "button", "id_attr": "hdr-garaging", "label_text": "Garaging address \u2713 Saved", "section_text": "Garaging address \u2713 Saved", "checked": null, "visible": true, "row_text": "Garaging address \u2713 Saved"}, {"control_id": "hdr-motorcycles", "dom_selector": "#hdr-motorcycles", "tag": "button", "id_attr": "hdr-motorcycles", "label_text": "Motorcycles \u2713 Saved", "section_text": "Motorcycles \u2713 Saved", "checked": null, "visible": true, "row_text": "Motorcycles \u2713 Saved Annual mileage VINYearMakeModelcc OwnershipLienholderAR7TL1272MB3009822021Ardent Cycle Co.Tallis 12501252Owned outright\u2014Remove Add motorcycle Save panel"}, {"control_id": "hdr-coverage", "dom_selector": "#hdr-coverage", "tag": "button", "id_attr": "hdr-coverage", "label_text": "Coverage", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "Coverage"}, {"control_id": "bi_pd_limits", "dom_selector": "#bi_pd_limits", "tag": "select", "name_attr": "bi_pd_limits", "id_attr": "bi_pd_limits", "label_text": "Liability limits (BI/PD)", "section_text": "Coverage", "current_value": "100/300/100", "checked": null, "visible": true, "options": [{"value": "25/50/25", "label": "25/50/25"}, {"value": "50/100/50", "label": "50/100/50"}, {"value": "100/300/100", "label": "100/300/100"}, {"value": "250/500/100", "label": "250/500/100"}], "row_text": "Liability limits (BI/PD)25/50/2550/100/50100/300/100250/500/100", "row_cells": ["Liability limits (BI/PD)", "25/50/2550/100/50100/300/100250/500/100"]}, {"control_id": "collision_deductible", "dom_selector": "#collision_deductible", "tag": "select", "name_attr": "collision_deductible", "id_attr": "collision_deductible", "label_text": "Collision deductible", "section_text": "Coverage", "current_value": "500", "checked": null, "visible": true, "options": [{"value": "250", "label": "$250"}, {"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}], "row_text": "Collision deductible$250$500$1,000", "row_cells": ["Collision deductible", "$250$500$1,000"]}, {"control_id": "comprehensive_deductible", "dom_selector": "#comprehensive_deductible", "tag": "select", "name_attr": "comprehensive_deductible", "id_attr": "comprehensive_deductible", "label_text": "Comprehensive deductible", "section_text": "Coverage", "current_value": "250", "checked": null, "visible": true, "options": [{"value": "100", "label": "$100"}, {"value": "250", "label": "$250"}, {"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}], "row_text": "Comprehensive deductible$100$250$500$1,000", "row_cells": ["Comprehensive deductible", "$100$250$500$1,000"]}, {"control_id": "cpe_coverage", "dom_selector": "#cpe_coverage", "tag": "input", "input_type": "text", "name_attr": "cpe_coverage", "id_attr": "cpe_coverage", "label_text": "Custom parts and equipment", "section_text": "Coverage", "current_value": "1500", "checked": null, "visible": true, "row_text": "Custom parts and equipment", "row_cells": ["Custom parts and equipment", ""]}, {"control_id": "open-cpe", "dom_selector": "#open-cpe", "tag": "button", "id_attr": "open-cpe", "label_text": "CPE worksheet", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "CPE worksheet", "row_cells": ["", "CPE worksheet"]}, {"control_id": "roadside", "dom_selector": "#roadside", "tag": "select", "name_attr": "roadside", "id_attr": "roadside", "label_text": "Roadside coverage", "section_text": "Coverage", "current_value": "Roadside assistance", "checked": null, "visible": true, "options": [{"value": "Not included", "label": "Not included"}, {"value": "Roadside assistance", "label": "Roadside assistance"}, {"value": "Roadside and trip interruption", "label": "Roadside and trip interruption"}], "row_text": "Roadside coverageNot includedRoadside assistanceRoadside and trip interruption", "row_cells": ["Roadside coverage", "Not includedRoadside assistanceRoadside and trip interruption"]}, {"control_id": "ctrl_11", "dom_selector": "#body-coverage > button", "tag": "button", "label_text": "Save panel", "section_text": "Coverage", "checked": null, "visible": true}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "id_attr": "rate", "label_text": "Rate this quote", "section_text": "Coverage", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 32, "why": "before click selector='internal:role=button[name=\"Rate this quote\"i]'>", "frame_url": "http://127.0.0.1:45451/rater/worksheet", "is_main": true, "controls": [{"control_id": "hdr-basics", "dom_selector": "#hdr-basics", "tag": "button", "id_attr": "hdr-basics", "label_text": "Quote basics \u2713 Saved", "section_text": "Quote basics \u2713 Saved", "checked": null, "visible": true, "row_text": "Quote basics \u2713 Saved"}, {"control_id": "hdr-rider", "dom_selector": "#hdr-rider", "tag": "button", "id_attr": "hdr-rider", "label_text": "Rider \u2713 Saved", "section_text": "Rider \u2713 Saved", "checked": null, "visible": true, "row_text": "Rider \u2713 Saved"}, {"control_id": "hdr-garaging", "dom_selector": "#hdr-garaging", "tag": "button", "id_attr": "hdr-garaging", "label_text": "Garaging address \u2713 Saved", "section_text": "Garaging address \u2713 Saved", "checked": null, "visible": true, "row_text": "Garaging address \u2713 Saved"}, {"control_id": "hdr-motorcycles", "dom_selector": "#hdr-motorcycles", "tag": "button", "id_attr": "hdr-motorcycles", "label_text": "Motorcycles \u2713 Saved", "section_text": "Motorcycles \u2713 Saved", "checked": null, "visible": true, "row_text": "Motorcycles \u2713 Saved Annual mileage VINYearMakeModelcc OwnershipLienholderAR7TL1272MB3009822021Ardent Cycle Co.Tallis 12501252Owned outright\u2014Remove Add motorcycle Save panel"}, {"control_id": "hdr-coverage", "dom_selector": "#hdr-coverage", "tag": "button", "id_attr": "hdr-coverage", "label_text": "Coverage \u2713 Saved", "section_text": "Coverage \u2713 Saved", "checked": null, "visible": true, "row_text": "Coverage \u2713 Saved"}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "id_attr": "rate", "label_text": "Rate this quote", "section_text": "Coverage \u2713 Saved", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 33, "why": "before click selector='internal:role=button[name=\"Submit application\"i]'>", "frame_url": "http://127.0.0.1:45451/rater/rated", "is_main": true, "controls": [{"control_id": "submit-app", "dom_selector": "#submit-app", "tag": "button", "id_attr": "submit-app", "label_text": "Submit application", "section_text": "Motorcycles", "checked": null, "visible": true}], "text_pairs": [{"label": "Effective date", "value": "12/01/2026", "section_text": "Rated quote", "source": "table_row"}, {"label": "Prior motorcycle insurance", "value": "6 months or more", "section_text": "Rated quote", "source": "table_row"}, {"label": "First name", "value": "Rafe", "section_text": "Rated quote", "source": "table_row"}, {"label": "Last name", "value": "Duquesne", "section_text": "Rated quote", "source": "table_row"}, {"label": "Date of birth", "value": "03/11/1985", "section_text": "Rated quote", "source": "table_row"}, {"label": "Phone", "value": "206-555-0114", "section_text": "Rated quote", "source": "table_row"}, {"label": "Years with motorcycle endorsement", "value": "9", "section_text": "Rated quote", "source": "table_row"}, {"label": "Completed a rider safety course in the last 3 years", "value": "Yes", "section_text": "Rated quote", "source": "table_row"}, {"label": "Street address", "value": "4417 Alder Crest Ave", "section_text": "Rated quote", "source": "table_row"}, {"label": "City", "value": "Seattle", "section_text": "Rated quote", "source": "table_row"}, {"label": "State", "value": "WA", "section_text": "Rated quote", "source": "table_row"}, {"label": "ZIP", "value": "98118", "section_text": "Rated quote", "source": "table_row"}, {"label": "Annual mileage", "value": "5,000", "section_text": "Rated quote", "source": "table_row"}, {"label": "Liability limits (BI/PD)", "value": "100/300/100", "section_text": "Rated quote", "source": "table_row"}, {"label": "Collision deductible", "value": "$500", "section_text": "Rated quote", "source": "table_row"}, {"label": "Comprehensive deductible", "value": "$250", "section_text": "Rated quote", "source": "table_row"}, {"label": "Custom parts and equipment", "value": "$1,500", "section_text": "Rated quote", "source": "table_row"}, {"label": "Roadside coverage", "value": "Roadside assistance", "section_text": "Rated quote", "source": "table_row"}, {"label": "VIN", "value": "AR7TL1272MB300982", "section_text": "Motorcycles", "source": "table_columns"}, {"label": "Year", "value": "2021", "section_text": "Motorcycles", "source": "table_columns"}, {"label": "Make", "value": "Ardent Cycle Co.", "section_text": "Motorcycles", "source": "table_columns"}, {"label": "Model", "value": "Tallis 1250", "section_text": "Motorcycles", "source": "table_columns"}, {"label": "cc", "value": "1252", "section_text": "Motorcycles", "source": "table_columns"}, {"label": "Ownership", "value": "Owned outright", "section_text": "Motorcycles", "source": "table_columns"}, {"label": "Lienholder", "value": "\u2014", "section_text": "Motorcycles", "source": "table_columns"}, {"label": "Annual premium", "value": "$701", "section_text": "Motorcycles", "source": "inline"}], "banners": [], "modals": [], "title": "Corvane AgentLink"} +FORM_TX_DEMO {"portal": "corvane", "step": 34, "why": "end of case", "frame_url": "http://127.0.0.1:45451/rater/quote/CVQ-88311", "is_main": true, "controls": [], "text_pairs": [{"label": "Effective date", "value": "12/01/2026", "section_text": "Application submitted", "source": "table_row"}, {"label": "Prior motorcycle insurance", "value": "6 months or more", "section_text": "Application submitted", "source": "table_row"}, {"label": "First name", "value": "Rafe", "section_text": "Application submitted", "source": "table_row"}, {"label": "Last name", "value": "Duquesne", "section_text": "Application submitted", "source": "table_row"}, {"label": "Date of birth", "value": "03/11/1985", "section_text": "Application submitted", "source": "table_row"}, {"label": "Phone", "value": "206-555-0114", "section_text": "Application submitted", "source": "table_row"}, {"label": "Years with motorcycle endorsement", "value": "9", "section_text": "Application submitted", "source": "table_row"}, {"label": "Completed a rider safety course in the last 3 years", "value": "Yes", "section_text": "Application submitted", "source": "table_row"}, {"label": "Street address", "value": "4417 Alder Crest Ave", "section_text": "Application submitted", "source": "table_row"}, {"label": "City", "value": "Seattle", "section_text": "Application submitted", "source": "table_row"}, {"label": "State", "value": "WA", "section_text": "Application submitted", "source": "table_row"}, {"label": "ZIP", "value": "98118", "section_text": "Application submitted", "source": "table_row"}, {"label": "Annual mileage", "value": "5,000", "section_text": "Application submitted", "source": "table_row"}, {"label": "Liability limits (BI/PD)", "value": "100/300/100", "section_text": "Application submitted", "source": "table_row"}, {"label": "Collision deductible", "value": "$500", "section_text": "Application submitted", "source": "table_row"}, {"label": "Comprehensive deductible", "value": "$250", "section_text": "Application submitted", "source": "table_row"}, {"label": "Custom parts and equipment", "value": "$1,500", "section_text": "Application submitted", "source": "table_row"}, {"label": "Roadside coverage", "value": "Roadside assistance", "section_text": "Application submitted", "source": "table_row"}, {"label": "VIN", "value": "AR7TL1272MB300982", "section_text": "Motorcycles", "source": "table_columns"}, {"label": "Year", "value": "2021", "section_text": "Motorcycles", "source": "table_columns"}, {"label": "Make", "value": "Ardent Cycle Co.", "section_text": "Motorcycles", "source": "table_columns"}, {"label": "Model", "value": "Tallis 1250", "section_text": "Motorcycles", "source": "table_columns"}, {"label": "cc", "value": "1252", "section_text": "Motorcycles", "source": "table_columns"}, {"label": "Ownership", "value": "Owned outright", "section_text": "Motorcycles", "source": "table_columns"}, {"label": "Lienholder", "value": "\u2014", "section_text": "Motorcycles", "source": "table_columns"}], "banners": [], "modals": [], "title": "Corvane AgentLink"} +FORM_TX_DEMO_RESULT [{"case_id": "cv-dev", "correct": true}] diff --git a/packages/flow/benchmark/form_tx_heldout4_run/demos/thistlebrook.jsonl b/packages/flow/benchmark/form_tx_heldout4_run/demos/thistlebrook.jsonl new file mode 100644 index 0000000000..2fef9dc896 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4_run/demos/thistlebrook.jsonl @@ -0,0 +1,33 @@ +FORM_TX_DEMO {"portal": "thistlebrook", "step": 0, "why": "before fill selector='internal:label=\"Email\"s'>", "frame_url": "http://127.0.0.1:46007/signin", "is_main": true, "controls": [{"control_id": "email", "dom_selector": "#email", "tag": "input", "input_type": "email", "name_attr": "email", "id_attr": "email", "label_text": "Email", "section_text": "Welcome back", "checked": null, "visible": true}, {"control_id": "password", "dom_selector": "#password", "tag": "input", "input_type": "password", "name_attr": "password", "id_attr": "password", "label_text": "Password", "section_text": "Welcome back", "checked": null, "visible": true, "is_secret": true}, {"control_id": "ctrl_2", "dom_selector": "body > main > form > button", "tag": "button", "label_text": "Sign in", "section_text": "Welcome back", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Thistlebrook Pet Health"} +FORM_TX_DEMO {"portal": "thistlebrook", "step": 1, "why": "before fill selector='internal:label=\"Password\"s'>", "frame_url": "http://127.0.0.1:46007/signin", "is_main": true, "controls": [{"control_id": "email", "dom_selector": "#email", "tag": "input", "input_type": "email", "name_attr": "email", "id_attr": "email", "label_text": "Email", "section_text": "Welcome back", "current_value": "pet.parent@example.test", "checked": null, "visible": true}, {"control_id": "password", "dom_selector": "#password", "tag": "input", "input_type": "password", "name_attr": "password", "id_attr": "password", "label_text": "Password", "section_text": "Welcome back", "checked": null, "visible": true, "is_secret": true}, {"control_id": "ctrl_2", "dom_selector": "body > main > form > button", "tag": "button", "label_text": "Sign in", "section_text": "Welcome back", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Thistlebrook Pet Health"} +FORM_TX_DEMO {"portal": "thistlebrook", "step": 2, "why": "before click selector='internal:role=button[name=\"Sign in\"i]'>", "frame_url": "http://127.0.0.1:46007/signin", "is_main": true, "controls": [{"control_id": "email", "dom_selector": "#email", "tag": "input", "input_type": "email", "name_attr": "email", "id_attr": "email", "label_text": "Email", "section_text": "Welcome back", "current_value": "pet.parent@example.test", "checked": null, "visible": true}, {"control_id": "password", "dom_selector": "#password", "tag": "input", "input_type": "password", "name_attr": "password", "id_attr": "password", "label_text": "Password", "section_text": "Welcome back", "current_value": "", "checked": null, "visible": true, "is_secret": true}, {"control_id": "ctrl_2", "dom_selector": "body > main > form > button", "tag": "button", "label_text": "Sign in", "section_text": "Welcome back", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Thistlebrook Pet Health"} +FORM_TX_DEMO {"portal": "thistlebrook", "step": 3, "why": "before fill selector='#card >> internal:label=\"First name\"s'>", "frame_url": "http://127.0.0.1:46007/quote", "is_main": true, "controls": [{"control_id": "first_name", "dom_selector": "#first_name", "tag": "input", "input_type": "text", "id_attr": "first_name", "label_text": "First name", "section_text": "First, what's your name?", "checked": null, "visible": true}, {"control_id": "last_name", "dom_selector": "#last_name", "tag": "input", "input_type": "text", "id_attr": "last_name", "label_text": "Last name", "section_text": "First, what's your name?", "checked": null, "visible": true}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Next", "section_text": "First, what's your name?", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Thistlebrook Pet Health"} +FORM_TX_DEMO {"portal": "thistlebrook", "step": 4, "why": "before fill selector='#card >> internal:label=\"Last name\"s'>", "frame_url": "http://127.0.0.1:46007/quote", "is_main": true, "controls": [{"control_id": "first_name", "dom_selector": "#first_name", "tag": "input", "input_type": "text", "id_attr": "first_name", "label_text": "First name", "section_text": "First, what's your name?", "current_value": "Ada", "checked": null, "visible": true}, {"control_id": "last_name", "dom_selector": "#last_name", "tag": "input", "input_type": "text", "id_attr": "last_name", "label_text": "Last name", "section_text": "First, what's your name?", "checked": null, "visible": true}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Next", "section_text": "First, what's your name?", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Thistlebrook Pet Health"} +FORM_TX_DEMO {"portal": "thistlebrook", "step": 5, "why": "before click selector='#card >> #next'>", "frame_url": "http://127.0.0.1:46007/quote", "is_main": true, "controls": [{"control_id": "first_name", "dom_selector": "#first_name", "tag": "input", "input_type": "text", "id_attr": "first_name", "label_text": "First name", "section_text": "First, what's your name?", "current_value": "Ada", "checked": null, "visible": true}, {"control_id": "last_name", "dom_selector": "#last_name", "tag": "input", "input_type": "text", "id_attr": "last_name", "label_text": "Last name", "section_text": "First, what's your name?", "current_value": "Quennell", "checked": null, "visible": true}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Next", "section_text": "First, what's your name?", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Thistlebrook Pet Health"} +FORM_TX_DEMO {"portal": "thistlebrook", "step": 6, "why": "before fill selector='#card >> internal:label=\"Email\"s'>", "frame_url": "http://127.0.0.1:46007/quote", "is_main": true, "controls": [{"control_id": "email", "dom_selector": "#email", "tag": "input", "input_type": "email", "id_attr": "email", "label_text": "Email", "section_text": "How can we reach you?", "checked": null, "visible": true}, {"control_id": "phone", "dom_selector": "#phone", "tag": "input", "input_type": "tel", "id_attr": "phone", "label_text": "Mobile number", "section_text": "How can we reach you?", "checked": null, "visible": true}, {"control_id": "zip", "dom_selector": "#zip", "tag": "input", "input_type": "text", "id_attr": "zip", "label_text": "ZIP code", "section_text": "How can we reach you?", "checked": null, "visible": true}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Next", "section_text": "How can we reach you?", "checked": null, "visible": true}, {"control_id": "back", "dom_selector": "#back", "tag": "button", "id_attr": "back", "label_text": "Back", "section_text": "How can we reach you?", "checked": null, "visible": true, "row_text": "Back"}], "text_pairs": [], "banners": [], "modals": [], "title": "Thistlebrook Pet Health"} +FORM_TX_DEMO {"portal": "thistlebrook", "step": 7, "why": "before fill selector='#card >> internal:label=\"Mobile number\"s'>", "frame_url": "http://127.0.0.1:46007/quote", "is_main": true, "controls": [{"control_id": "email", "dom_selector": "#email", "tag": "input", "input_type": "email", "id_attr": "email", "label_text": "Email", "section_text": "How can we reach you?", "current_value": "ada.q@example.test", "checked": null, "visible": true}, {"control_id": "phone", "dom_selector": "#phone", "tag": "input", "input_type": "tel", "id_attr": "phone", "label_text": "Mobile number", "section_text": "How can we reach you?", "checked": null, "visible": true}, {"control_id": "zip", "dom_selector": "#zip", "tag": "input", "input_type": "text", "id_attr": "zip", "label_text": "ZIP code", "section_text": "How can we reach you?", "checked": null, "visible": true}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Next", "section_text": "How can we reach you?", "checked": null, "visible": true}, {"control_id": "back", "dom_selector": "#back", "tag": "button", "id_attr": "back", "label_text": "Back", "section_text": "How can we reach you?", "checked": null, "visible": true, "row_text": "Back"}], "text_pairs": [], "banners": [], "modals": [], "title": "Thistlebrook Pet Health"} +FORM_TX_DEMO {"portal": "thistlebrook", "step": 8, "why": "before fill selector='#card >> internal:label=\"ZIP code\"s'>", "frame_url": "http://127.0.0.1:46007/quote", "is_main": true, "controls": [{"control_id": "email", "dom_selector": "#email", "tag": "input", "input_type": "email", "id_attr": "email", "label_text": "Email", "section_text": "How can we reach you?", "current_value": "ada.q@example.test", "checked": null, "visible": true}, {"control_id": "phone", "dom_selector": "#phone", "tag": "input", "input_type": "tel", "id_attr": "phone", "label_text": "Mobile number", "section_text": "How can we reach you?", "current_value": "512-555-0148", "checked": null, "visible": true}, {"control_id": "zip", "dom_selector": "#zip", "tag": "input", "input_type": "text", "id_attr": "zip", "label_text": "ZIP code", "section_text": "How can we reach you?", "checked": null, "visible": true}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Next", "section_text": "How can we reach you?", "checked": null, "visible": true}, {"control_id": "back", "dom_selector": "#back", "tag": "button", "id_attr": "back", "label_text": "Back", "section_text": "How can we reach you?", "checked": null, "visible": true, "row_text": "Back"}], "text_pairs": [], "banners": [], "modals": [], "title": "Thistlebrook Pet Health"} +FORM_TX_DEMO {"portal": "thistlebrook", "step": 9, "why": "before click selector='#card >> #next'>", "frame_url": "http://127.0.0.1:46007/quote", "is_main": true, "controls": [{"control_id": "email", "dom_selector": "#email", "tag": "input", "input_type": "email", "id_attr": "email", "label_text": "Email", "section_text": "How can we reach you?", "current_value": "ada.q@example.test", "checked": null, "visible": true}, {"control_id": "phone", "dom_selector": "#phone", "tag": "input", "input_type": "tel", "id_attr": "phone", "label_text": "Mobile number", "section_text": "How can we reach you?", "current_value": "512-555-0148", "checked": null, "visible": true}, {"control_id": "zip", "dom_selector": "#zip", "tag": "input", "input_type": "text", "id_attr": "zip", "label_text": "ZIP code", "section_text": "How can we reach you?", "current_value": "78704", "checked": null, "visible": true}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Next", "section_text": "How can we reach you?", "checked": null, "visible": true}, {"control_id": "back", "dom_selector": "#back", "tag": "button", "id_attr": "back", "label_text": "Back", "section_text": "How can we reach you?", "checked": null, "visible": true, "row_text": "Back"}], "text_pairs": [], "banners": [], "modals": [], "title": "Thistlebrook Pet Health"} +FORM_TX_DEMO {"portal": "thistlebrook", "step": 10, "why": "before fill selector='#card >> internal:label=\"Pet\\'s name\"s'>", "frame_url": "http://127.0.0.1:46007/quote", "is_main": true, "controls": [{"control_id": "pet_name", "dom_selector": "#pet_name", "tag": "input", "input_type": "text", "id_attr": "pet_name", "label_text": "Pet's name", "section_text": "Tell us about your pet", "checked": null, "visible": true}, {"control_id": "ctrl_1", "dom_selector": "#card > div > button:nth-of-type(1)", "tag": "button", "role": "radio", "label_text": "Dog", "section_text": "Tell us about your pet", "checked": false, "visible": true, "options": [{"value": "Dog", "label": "Dog"}, {"value": "Cat", "label": "Cat"}], "radio_value": "Dog", "radio_group": "aria:#card > div", "group_label": "Species", "row_text": "DogCat"}, {"control_id": "ctrl_2", "dom_selector": "#card > div > button:nth-of-type(2)", "tag": "button", "role": "radio", "label_text": "Cat", "section_text": "Tell us about your pet", "checked": false, "visible": true, "options": [{"value": "Dog", "label": "Dog"}, {"value": "Cat", "label": "Cat"}], "radio_value": "Cat", "radio_group": "aria:#card > div", "group_label": "Species", "row_text": "DogCat"}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Next", "section_text": "Tell us about your pet", "checked": null, "visible": true}, {"control_id": "back", "dom_selector": "#back", "tag": "button", "id_attr": "back", "label_text": "Back", "section_text": "Tell us about your pet", "checked": null, "visible": true, "row_text": "Back"}], "text_pairs": [], "banners": [], "modals": [], "title": "Thistlebrook Pet Health"} +FORM_TX_DEMO {"portal": "thistlebrook", "step": 11, "why": "before click selector='#card >> internal:role=radiogroup[name=\"Species\"s] >> [role=radio][data-value=\"Dog\"]'>", "frame_url": "http://127.0.0.1:46007/quote", "is_main": true, "controls": [{"control_id": "pet_name", "dom_selector": "#pet_name", "tag": "input", "input_type": "text", "id_attr": "pet_name", "label_text": "Pet's name", "section_text": "Tell us about your pet", "current_value": "Juniper", "checked": null, "visible": true}, {"control_id": "ctrl_1", "dom_selector": "#card > div > button:nth-of-type(1)", "tag": "button", "role": "radio", "label_text": "Dog", "section_text": "Tell us about your pet", "checked": false, "visible": true, "options": [{"value": "Dog", "label": "Dog"}, {"value": "Cat", "label": "Cat"}], "radio_value": "Dog", "radio_group": "aria:#card > div", "group_label": "Species", "row_text": "DogCat"}, {"control_id": "ctrl_2", "dom_selector": "#card > div > button:nth-of-type(2)", "tag": "button", "role": "radio", "label_text": "Cat", "section_text": "Tell us about your pet", "checked": false, "visible": true, "options": [{"value": "Dog", "label": "Dog"}, {"value": "Cat", "label": "Cat"}], "radio_value": "Cat", "radio_group": "aria:#card > div", "group_label": "Species", "row_text": "DogCat"}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Next", "section_text": "Tell us about your pet", "checked": null, "visible": true}, {"control_id": "back", "dom_selector": "#back", "tag": "button", "id_attr": "back", "label_text": "Back", "section_text": "Tell us about your pet", "checked": null, "visible": true, "row_text": "Back"}], "text_pairs": [], "banners": [], "modals": [], "title": "Thistlebrook Pet Health"} +FORM_TX_DEMO {"portal": "thistlebrook", "step": 12, "why": "before click selector='#card >> #next'>", "frame_url": "http://127.0.0.1:46007/quote", "is_main": true, "controls": [{"control_id": "pet_name", "dom_selector": "#pet_name", "tag": "input", "input_type": "text", "id_attr": "pet_name", "label_text": "Pet's name", "section_text": "Tell us about your pet", "current_value": "Juniper", "checked": null, "visible": true}, {"control_id": "ctrl_1", "dom_selector": "#card > div > button:nth-of-type(1)", "tag": "button", "role": "radio", "label_text": "Dog", "section_text": "Tell us about your pet", "current_value": "Dog", "checked": true, "visible": true, "options": [{"value": "Dog", "label": "Dog"}, {"value": "Cat", "label": "Cat"}], "radio_value": "Dog", "radio_group": "aria:#card > div", "group_label": "Species", "row_text": "DogCat"}, {"control_id": "ctrl_2", "dom_selector": "#card > div > button:nth-of-type(2)", "tag": "button", "role": "radio", "label_text": "Cat", "section_text": "Tell us about your pet", "checked": false, "visible": true, "options": [{"value": "Dog", "label": "Dog"}, {"value": "Cat", "label": "Cat"}], "radio_value": "Cat", "radio_group": "aria:#card > div", "group_label": "Species", "row_text": "DogCat"}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Next", "section_text": "Tell us about your pet", "checked": null, "visible": true}, {"control_id": "back", "dom_selector": "#back", "tag": "button", "id_attr": "back", "label_text": "Back", "section_text": "Tell us about your pet", "checked": null, "visible": true, "row_text": "Back"}], "text_pairs": [], "banners": [], "modals": [], "title": "Thistlebrook Pet Health"} +FORM_TX_DEMO {"portal": "thistlebrook", "step": 13, "why": "before fill selector='#card >> internal:label=\"Breed\"s'>", "frame_url": "http://127.0.0.1:46007/quote", "is_main": true, "controls": [{"control_id": "breed", "dom_selector": "#breed", "tag": "input", "input_type": "text", "role": "combobox", "id_attr": "breed", "label_text": "Breed", "section_text": "What breed is Juniper?", "checked": null, "visible": true, "row_text": "Breed"}, {"control_id": "weight_lb", "dom_selector": "#weight_lb", "tag": "input", "input_type": "text", "id_attr": "weight_lb", "label_text": "Weight (lb)", "section_text": "What breed is Juniper?", "checked": null, "visible": true}, {"control_id": "birth_month", "dom_selector": "#birth_month", "tag": "select", "id_attr": "birth_month", "label_text": "Birth month", "section_text": "What breed is Juniper?", "current_value": "Month", "checked": null, "visible": true, "options": [{"value": "", "label": "Month"}, {"value": "January", "label": "January"}, {"value": "February", "label": "February"}, {"value": "March", "label": "March"}, {"value": "April", "label": "April"}, {"value": "May", "label": "May"}, {"value": "June", "label": "June"}, {"value": "July", "label": "July"}, {"value": "August", "label": "August"}, {"value": "September", "label": "September"}, {"value": "October", "label": "October"}, {"value": "November", "label": "November"}, {"value": "December", "label": "December"}], "row_text": "Birth monthMonthJanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember"}, {"control_id": "birth_year", "dom_selector": "#birth_year", "tag": "select", "id_attr": "birth_year", "label_text": "Birth year", "section_text": "What breed is Juniper?", "current_value": "Year", "checked": null, "visible": true, "options": [{"value": "", "label": "Year"}, {"value": "2026", "label": "2026"}, {"value": "2025", "label": "2025"}, {"value": "2024", "label": "2024"}, {"value": "2023", "label": "2023"}, {"value": "2022", "label": "2022"}, {"value": "2021", "label": "2021"}, {"value": "2020", "label": "2020"}, {"value": "2019", "label": "2019"}, {"value": "2018", "label": "2018"}, {"value": "2017", "label": "2017"}, {"value": "2016", "label": "2016"}, {"value": "2015", "label": "2015"}, {"value": "2014", "label": "2014"}, {"value": "2013", "label": "2013"}, {"value": "2012", "label": "2012"}, {"value": "2011", "label": "2011"}, {"value": "2010", "label": "2010"}, {"value": "2009", "label": "2009"}, {"value": "2008", "label": "2008"}, {"value": "2007", "label": "2007"}, {"value": "2006", "label": "2006"}], "row_text": "Birth yearYear202620252024202320222021202020192018201720162015201420132012201120102009200820072006"}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Next", "section_text": "What breed is Juniper?", "checked": null, "visible": true}, {"control_id": "back", "dom_selector": "#back", "tag": "button", "id_attr": "back", "label_text": "Back", "section_text": "What breed is Juniper?", "checked": null, "visible": true, "row_text": "Back"}], "text_pairs": [], "banners": [], "modals": [], "title": "Thistlebrook Pet Health"} +FORM_TX_DEMO {"portal": "thistlebrook", "step": 14, "why": "before fill selector='#card >> internal:label=\"Breed\"s'>", "frame_url": "http://127.0.0.1:46007/quote", "is_main": true, "controls": [{"control_id": "breed", "dom_selector": "#breed", "tag": "input", "input_type": "text", "role": "combobox", "id_attr": "breed", "label_text": "Breed", "section_text": "What breed is Juniper?", "checked": null, "visible": true, "row_text": "Breed"}, {"control_id": "weight_lb", "dom_selector": "#weight_lb", "tag": "input", "input_type": "text", "id_attr": "weight_lb", "label_text": "Weight (lb)", "section_text": "What breed is Juniper?", "checked": null, "visible": true}, {"control_id": "birth_month", "dom_selector": "#birth_month", "tag": "select", "id_attr": "birth_month", "label_text": "Birth month", "section_text": "What breed is Juniper?", "current_value": "Month", "checked": null, "visible": true, "options": [{"value": "", "label": "Month"}, {"value": "January", "label": "January"}, {"value": "February", "label": "February"}, {"value": "March", "label": "March"}, {"value": "April", "label": "April"}, {"value": "May", "label": "May"}, {"value": "June", "label": "June"}, {"value": "July", "label": "July"}, {"value": "August", "label": "August"}, {"value": "September", "label": "September"}, {"value": "October", "label": "October"}, {"value": "November", "label": "November"}, {"value": "December", "label": "December"}], "row_text": "Birth monthMonthJanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember"}, {"control_id": "birth_year", "dom_selector": "#birth_year", "tag": "select", "id_attr": "birth_year", "label_text": "Birth year", "section_text": "What breed is Juniper?", "current_value": "Year", "checked": null, "visible": true, "options": [{"value": "", "label": "Year"}, {"value": "2026", "label": "2026"}, {"value": "2025", "label": "2025"}, {"value": "2024", "label": "2024"}, {"value": "2023", "label": "2023"}, {"value": "2022", "label": "2022"}, {"value": "2021", "label": "2021"}, {"value": "2020", "label": "2020"}, {"value": "2019", "label": "2019"}, {"value": "2018", "label": "2018"}, {"value": "2017", "label": "2017"}, {"value": "2016", "label": "2016"}, {"value": "2015", "label": "2015"}, {"value": "2014", "label": "2014"}, {"value": "2013", "label": "2013"}, {"value": "2012", "label": "2012"}, {"value": "2011", "label": "2011"}, {"value": "2010", "label": "2010"}, {"value": "2009", "label": "2009"}, {"value": "2008", "label": "2008"}, {"value": "2007", "label": "2007"}, {"value": "2006", "label": "2006"}], "row_text": "Birth yearYear202620252024202320222021202020192018201720162015201420132012201120102009200820072006"}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Next", "section_text": "What breed is Juniper?", "checked": null, "visible": true}, {"control_id": "back", "dom_selector": "#back", "tag": "button", "id_attr": "back", "label_text": "Back", "section_text": "What breed is Juniper?", "checked": null, "visible": true, "row_text": "Back"}], "text_pairs": [], "banners": [], "modals": [], "title": "Thistlebrook Pet Health"} +FORM_TX_DEMO {"portal": "thistlebrook", "step": 15, "why": "before click selector='#breed-list [role=option] >> nth=0'>", "frame_url": "http://127.0.0.1:46007/quote", "is_main": true, "controls": [{"control_id": "breed", "dom_selector": "#breed", "tag": "input", "input_type": "text", "role": "combobox", "id_attr": "breed", "label_text": "Breed", "section_text": "What breed is Juniper?", "current_value": "Border Collie", "checked": null, "visible": true, "row_text": "BreedBorder Collie"}, {"control_id": "weight_lb", "dom_selector": "#weight_lb", "tag": "input", "input_type": "text", "id_attr": "weight_lb", "label_text": "Weight (lb)", "section_text": "What breed is Juniper?", "checked": null, "visible": true}, {"control_id": "birth_month", "dom_selector": "#birth_month", "tag": "select", "id_attr": "birth_month", "label_text": "Birth month", "section_text": "What breed is Juniper?", "current_value": "Month", "checked": null, "visible": true, "options": [{"value": "", "label": "Month"}, {"value": "January", "label": "January"}, {"value": "February", "label": "February"}, {"value": "March", "label": "March"}, {"value": "April", "label": "April"}, {"value": "May", "label": "May"}, {"value": "June", "label": "June"}, {"value": "July", "label": "July"}, {"value": "August", "label": "August"}, {"value": "September", "label": "September"}, {"value": "October", "label": "October"}, {"value": "November", "label": "November"}, {"value": "December", "label": "December"}], "row_text": "Birth monthMonthJanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember"}, {"control_id": "birth_year", "dom_selector": "#birth_year", "tag": "select", "id_attr": "birth_year", "label_text": "Birth year", "section_text": "What breed is Juniper?", "current_value": "Year", "checked": null, "visible": true, "options": [{"value": "", "label": "Year"}, {"value": "2026", "label": "2026"}, {"value": "2025", "label": "2025"}, {"value": "2024", "label": "2024"}, {"value": "2023", "label": "2023"}, {"value": "2022", "label": "2022"}, {"value": "2021", "label": "2021"}, {"value": "2020", "label": "2020"}, {"value": "2019", "label": "2019"}, {"value": "2018", "label": "2018"}, {"value": "2017", "label": "2017"}, {"value": "2016", "label": "2016"}, {"value": "2015", "label": "2015"}, {"value": "2014", "label": "2014"}, {"value": "2013", "label": "2013"}, {"value": "2012", "label": "2012"}, {"value": "2011", "label": "2011"}, {"value": "2010", "label": "2010"}, {"value": "2009", "label": "2009"}, {"value": "2008", "label": "2008"}, {"value": "2007", "label": "2007"}, {"value": "2006", "label": "2006"}], "row_text": "Birth yearYear202620252024202320222021202020192018201720162015201420132012201120102009200820072006"}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Next", "section_text": "What breed is Juniper?", "checked": null, "visible": true}, {"control_id": "back", "dom_selector": "#back", "tag": "button", "id_attr": "back", "label_text": "Back", "section_text": "What breed is Juniper?", "checked": null, "visible": true, "row_text": "Back"}], "text_pairs": [], "banners": [], "modals": [], "title": "Thistlebrook Pet Health"} +FORM_TX_DEMO {"portal": "thistlebrook", "step": 16, "why": "before fill selector='#card >> internal:label=\"Weight (lb)\"s'>", "frame_url": "http://127.0.0.1:46007/quote", "is_main": true, "controls": [{"control_id": "breed", "dom_selector": "#breed", "tag": "input", "input_type": "text", "role": "combobox", "id_attr": "breed", "label_text": "Breed", "section_text": "What breed is Juniper?", "current_value": "Border Collie", "checked": null, "visible": true, "row_text": "BreedBorder Collie"}, {"control_id": "weight_lb", "dom_selector": "#weight_lb", "tag": "input", "input_type": "text", "id_attr": "weight_lb", "label_text": "Weight (lb)", "section_text": "What breed is Juniper?", "checked": null, "visible": true}, {"control_id": "birth_month", "dom_selector": "#birth_month", "tag": "select", "id_attr": "birth_month", "label_text": "Birth month", "section_text": "What breed is Juniper?", "current_value": "Month", "checked": null, "visible": true, "options": [{"value": "", "label": "Month"}, {"value": "January", "label": "January"}, {"value": "February", "label": "February"}, {"value": "March", "label": "March"}, {"value": "April", "label": "April"}, {"value": "May", "label": "May"}, {"value": "June", "label": "June"}, {"value": "July", "label": "July"}, {"value": "August", "label": "August"}, {"value": "September", "label": "September"}, {"value": "October", "label": "October"}, {"value": "November", "label": "November"}, {"value": "December", "label": "December"}], "row_text": "Birth monthMonthJanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember"}, {"control_id": "birth_year", "dom_selector": "#birth_year", "tag": "select", "id_attr": "birth_year", "label_text": "Birth year", "section_text": "What breed is Juniper?", "current_value": "Year", "checked": null, "visible": true, "options": [{"value": "", "label": "Year"}, {"value": "2026", "label": "2026"}, {"value": "2025", "label": "2025"}, {"value": "2024", "label": "2024"}, {"value": "2023", "label": "2023"}, {"value": "2022", "label": "2022"}, {"value": "2021", "label": "2021"}, {"value": "2020", "label": "2020"}, {"value": "2019", "label": "2019"}, {"value": "2018", "label": "2018"}, {"value": "2017", "label": "2017"}, {"value": "2016", "label": "2016"}, {"value": "2015", "label": "2015"}, {"value": "2014", "label": "2014"}, {"value": "2013", "label": "2013"}, {"value": "2012", "label": "2012"}, {"value": "2011", "label": "2011"}, {"value": "2010", "label": "2010"}, {"value": "2009", "label": "2009"}, {"value": "2008", "label": "2008"}, {"value": "2007", "label": "2007"}, {"value": "2006", "label": "2006"}], "row_text": "Birth yearYear202620252024202320222021202020192018201720162015201420132012201120102009200820072006"}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Next", "section_text": "What breed is Juniper?", "checked": null, "visible": true}, {"control_id": "back", "dom_selector": "#back", "tag": "button", "id_attr": "back", "label_text": "Back", "section_text": "What breed is Juniper?", "checked": null, "visible": true, "row_text": "Back"}], "text_pairs": [], "banners": [], "modals": [], "title": "Thistlebrook Pet Health"} +FORM_TX_DEMO {"portal": "thistlebrook", "step": 17, "why": "before select_option selector='#card >> internal:label=\"Birth month\"s'>", "frame_url": "http://127.0.0.1:46007/quote", "is_main": true, "controls": [{"control_id": "breed", "dom_selector": "#breed", "tag": "input", "input_type": "text", "role": "combobox", "id_attr": "breed", "label_text": "Breed", "section_text": "What breed is Juniper?", "current_value": "Border Collie", "checked": null, "visible": true, "row_text": "BreedBorder Collie"}, {"control_id": "weight_lb", "dom_selector": "#weight_lb", "tag": "input", "input_type": "text", "id_attr": "weight_lb", "label_text": "Weight (lb)", "section_text": "What breed is Juniper?", "current_value": "38", "checked": null, "visible": true}, {"control_id": "birth_month", "dom_selector": "#birth_month", "tag": "select", "id_attr": "birth_month", "label_text": "Birth month", "section_text": "What breed is Juniper?", "current_value": "Month", "checked": null, "visible": true, "options": [{"value": "", "label": "Month"}, {"value": "January", "label": "January"}, {"value": "February", "label": "February"}, {"value": "March", "label": "March"}, {"value": "April", "label": "April"}, {"value": "May", "label": "May"}, {"value": "June", "label": "June"}, {"value": "July", "label": "July"}, {"value": "August", "label": "August"}, {"value": "September", "label": "September"}, {"value": "October", "label": "October"}, {"value": "November", "label": "November"}, {"value": "December", "label": "December"}], "row_text": "Birth monthMonthJanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember"}, {"control_id": "birth_year", "dom_selector": "#birth_year", "tag": "select", "id_attr": "birth_year", "label_text": "Birth year", "section_text": "What breed is Juniper?", "current_value": "Year", "checked": null, "visible": true, "options": [{"value": "", "label": "Year"}, {"value": "2026", "label": "2026"}, {"value": "2025", "label": "2025"}, {"value": "2024", "label": "2024"}, {"value": "2023", "label": "2023"}, {"value": "2022", "label": "2022"}, {"value": "2021", "label": "2021"}, {"value": "2020", "label": "2020"}, {"value": "2019", "label": "2019"}, {"value": "2018", "label": "2018"}, {"value": "2017", "label": "2017"}, {"value": "2016", "label": "2016"}, {"value": "2015", "label": "2015"}, {"value": "2014", "label": "2014"}, {"value": "2013", "label": "2013"}, {"value": "2012", "label": "2012"}, {"value": "2011", "label": "2011"}, {"value": "2010", "label": "2010"}, {"value": "2009", "label": "2009"}, {"value": "2008", "label": "2008"}, {"value": "2007", "label": "2007"}, {"value": "2006", "label": "2006"}], "row_text": "Birth yearYear202620252024202320222021202020192018201720162015201420132012201120102009200820072006"}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Next", "section_text": "What breed is Juniper?", "checked": null, "visible": true}, {"control_id": "back", "dom_selector": "#back", "tag": "button", "id_attr": "back", "label_text": "Back", "section_text": "What breed is Juniper?", "checked": null, "visible": true, "row_text": "Back"}], "text_pairs": [], "banners": [], "modals": [], "title": "Thistlebrook Pet Health"} +FORM_TX_DEMO {"portal": "thistlebrook", "step": 18, "why": "before select_option selector='#card >> internal:label=\"Birth year\"s'>", "frame_url": "http://127.0.0.1:46007/quote", "is_main": true, "controls": [{"control_id": "breed", "dom_selector": "#breed", "tag": "input", "input_type": "text", "role": "combobox", "id_attr": "breed", "label_text": "Breed", "section_text": "What breed is Juniper?", "current_value": "Border Collie", "checked": null, "visible": true, "row_text": "BreedBorder Collie"}, {"control_id": "weight_lb", "dom_selector": "#weight_lb", "tag": "input", "input_type": "text", "id_attr": "weight_lb", "label_text": "Weight (lb)", "section_text": "What breed is Juniper?", "current_value": "38", "checked": null, "visible": true}, {"control_id": "birth_month", "dom_selector": "#birth_month", "tag": "select", "id_attr": "birth_month", "label_text": "Birth month", "section_text": "What breed is Juniper?", "current_value": "August", "checked": null, "visible": true, "options": [{"value": "", "label": "Month"}, {"value": "January", "label": "January"}, {"value": "February", "label": "February"}, {"value": "March", "label": "March"}, {"value": "April", "label": "April"}, {"value": "May", "label": "May"}, {"value": "June", "label": "June"}, {"value": "July", "label": "July"}, {"value": "August", "label": "August"}, {"value": "September", "label": "September"}, {"value": "October", "label": "October"}, {"value": "November", "label": "November"}, {"value": "December", "label": "December"}], "row_text": "Birth monthMonthJanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember"}, {"control_id": "birth_year", "dom_selector": "#birth_year", "tag": "select", "id_attr": "birth_year", "label_text": "Birth year", "section_text": "What breed is Juniper?", "current_value": "Year", "checked": null, "visible": true, "options": [{"value": "", "label": "Year"}, {"value": "2026", "label": "2026"}, {"value": "2025", "label": "2025"}, {"value": "2024", "label": "2024"}, {"value": "2023", "label": "2023"}, {"value": "2022", "label": "2022"}, {"value": "2021", "label": "2021"}, {"value": "2020", "label": "2020"}, {"value": "2019", "label": "2019"}, {"value": "2018", "label": "2018"}, {"value": "2017", "label": "2017"}, {"value": "2016", "label": "2016"}, {"value": "2015", "label": "2015"}, {"value": "2014", "label": "2014"}, {"value": "2013", "label": "2013"}, {"value": "2012", "label": "2012"}, {"value": "2011", "label": "2011"}, {"value": "2010", "label": "2010"}, {"value": "2009", "label": "2009"}, {"value": "2008", "label": "2008"}, {"value": "2007", "label": "2007"}, {"value": "2006", "label": "2006"}], "row_text": "Birth yearYear202620252024202320222021202020192018201720162015201420132012201120102009200820072006"}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Next", "section_text": "What breed is Juniper?", "checked": null, "visible": true}, {"control_id": "back", "dom_selector": "#back", "tag": "button", "id_attr": "back", "label_text": "Back", "section_text": "What breed is Juniper?", "checked": null, "visible": true, "row_text": "Back"}], "text_pairs": [], "banners": [], "modals": [], "title": "Thistlebrook Pet Health"} +FORM_TX_DEMO {"portal": "thistlebrook", "step": 19, "why": "before click selector='#card >> #next'>", "frame_url": "http://127.0.0.1:46007/quote", "is_main": true, "controls": [{"control_id": "breed", "dom_selector": "#breed", "tag": "input", "input_type": "text", "role": "combobox", "id_attr": "breed", "label_text": "Breed", "section_text": "What breed is Juniper?", "current_value": "Border Collie", "checked": null, "visible": true, "row_text": "BreedBorder Collie"}, {"control_id": "weight_lb", "dom_selector": "#weight_lb", "tag": "input", "input_type": "text", "id_attr": "weight_lb", "label_text": "Weight (lb)", "section_text": "What breed is Juniper?", "current_value": "38", "checked": null, "visible": true}, {"control_id": "birth_month", "dom_selector": "#birth_month", "tag": "select", "id_attr": "birth_month", "label_text": "Birth month", "section_text": "What breed is Juniper?", "current_value": "August", "checked": null, "visible": true, "options": [{"value": "", "label": "Month"}, {"value": "January", "label": "January"}, {"value": "February", "label": "February"}, {"value": "March", "label": "March"}, {"value": "April", "label": "April"}, {"value": "May", "label": "May"}, {"value": "June", "label": "June"}, {"value": "July", "label": "July"}, {"value": "August", "label": "August"}, {"value": "September", "label": "September"}, {"value": "October", "label": "October"}, {"value": "November", "label": "November"}, {"value": "December", "label": "December"}], "row_text": "Birth monthMonthJanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember"}, {"control_id": "birth_year", "dom_selector": "#birth_year", "tag": "select", "id_attr": "birth_year", "label_text": "Birth year", "section_text": "What breed is Juniper?", "current_value": "2021", "checked": null, "visible": true, "options": [{"value": "", "label": "Year"}, {"value": "2026", "label": "2026"}, {"value": "2025", "label": "2025"}, {"value": "2024", "label": "2024"}, {"value": "2023", "label": "2023"}, {"value": "2022", "label": "2022"}, {"value": "2021", "label": "2021"}, {"value": "2020", "label": "2020"}, {"value": "2019", "label": "2019"}, {"value": "2018", "label": "2018"}, {"value": "2017", "label": "2017"}, {"value": "2016", "label": "2016"}, {"value": "2015", "label": "2015"}, {"value": "2014", "label": "2014"}, {"value": "2013", "label": "2013"}, {"value": "2012", "label": "2012"}, {"value": "2011", "label": "2011"}, {"value": "2010", "label": "2010"}, {"value": "2009", "label": "2009"}, {"value": "2008", "label": "2008"}, {"value": "2007", "label": "2007"}, {"value": "2006", "label": "2006"}], "row_text": "Birth yearYear202620252024202320222021202020192018201720162015201420132012201120102009200820072006"}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Next", "section_text": "What breed is Juniper?", "checked": null, "visible": true}, {"control_id": "back", "dom_selector": "#back", "tag": "button", "id_attr": "back", "label_text": "Back", "section_text": "What breed is Juniper?", "checked": null, "visible": true, "row_text": "Back"}], "text_pairs": [], "banners": [], "modals": [], "title": "Thistlebrook Pet Health"} +FORM_TX_DEMO {"portal": "thistlebrook", "step": 20, "why": "before click selector='#card >> internal:role=radiogroup[name=\"Spayed or neutered\"s] >> [role=radio][data-value=\"Yes\"]'>", "frame_url": "http://127.0.0.1:46007/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#card > div:nth-of-type(1) > button:nth-of-type(1)", "tag": "button", "role": "radio", "label_text": "Yes", "section_text": "A few questions about Juniper's health", "checked": false, "visible": true, "options": [{"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "radio_value": "Yes", "radio_group": "aria:#card > div:nth-of-type(1)", "group_label": "Spayed or neutered", "row_text": "YesNo"}, {"control_id": "ctrl_1", "dom_selector": "#card > div:nth-of-type(1) > button:nth-of-type(2)", "tag": "button", "role": "radio", "label_text": "No", "section_text": "A few questions about Juniper's health", "checked": false, "visible": true, "options": [{"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "radio_value": "No", "radio_group": "aria:#card > div:nth-of-type(1)", "group_label": "Spayed or neutered", "row_text": "YesNo"}, {"control_id": "ctrl_2", "dom_selector": "#card > div:nth-of-type(2) > button:nth-of-type(1)", "tag": "button", "role": "radio", "label_text": "Yes", "section_text": "A few questions about Juniper's health", "checked": false, "visible": true, "options": [{"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "radio_value": "Yes", "radio_group": "aria:#card > div:nth-of-type(2)", "group_label": "Illness or injury in the last 12 months", "row_text": "YesNo"}, {"control_id": "ctrl_3", "dom_selector": "#card > div:nth-of-type(2) > button:nth-of-type(2)", "tag": "button", "role": "radio", "label_text": "No", "section_text": "A few questions about Juniper's health", "checked": false, "visible": true, "options": [{"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "radio_value": "No", "radio_group": "aria:#card > div:nth-of-type(2)", "group_label": "Illness or injury in the last 12 months", "row_text": "YesNo"}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Next", "section_text": "A few questions about Juniper's health", "checked": null, "visible": true}, {"control_id": "back", "dom_selector": "#back", "tag": "button", "id_attr": "back", "label_text": "Back", "section_text": "A few questions about Juniper's health", "checked": null, "visible": true, "row_text": "Back"}], "text_pairs": [], "banners": [], "modals": [], "title": "Thistlebrook Pet Health"} +FORM_TX_DEMO {"portal": "thistlebrook", "step": 21, "why": "before click selector='#card >> internal:role=radiogroup[name=\"Illness or injury in the last 12 months\"s] >> [role=radio][data-value=\"No\"]'>", "frame_url": "http://127.0.0.1:46007/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#card > div:nth-of-type(1) > button:nth-of-type(1)", "tag": "button", "role": "radio", "label_text": "Yes", "section_text": "A few questions about Juniper's health", "current_value": "Yes", "checked": true, "visible": true, "options": [{"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "radio_value": "Yes", "radio_group": "aria:#card > div:nth-of-type(1)", "group_label": "Spayed or neutered", "row_text": "YesNo"}, {"control_id": "ctrl_1", "dom_selector": "#card > div:nth-of-type(1) > button:nth-of-type(2)", "tag": "button", "role": "radio", "label_text": "No", "section_text": "A few questions about Juniper's health", "checked": false, "visible": true, "options": [{"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "radio_value": "No", "radio_group": "aria:#card > div:nth-of-type(1)", "group_label": "Spayed or neutered", "row_text": "YesNo"}, {"control_id": "ctrl_2", "dom_selector": "#card > div:nth-of-type(2) > button:nth-of-type(1)", "tag": "button", "role": "radio", "label_text": "Yes", "section_text": "A few questions about Juniper's health", "checked": false, "visible": true, "options": [{"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "radio_value": "Yes", "radio_group": "aria:#card > div:nth-of-type(2)", "group_label": "Illness or injury in the last 12 months", "row_text": "YesNo"}, {"control_id": "ctrl_3", "dom_selector": "#card > div:nth-of-type(2) > button:nth-of-type(2)", "tag": "button", "role": "radio", "label_text": "No", "section_text": "A few questions about Juniper's health", "checked": false, "visible": true, "options": [{"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "radio_value": "No", "radio_group": "aria:#card > div:nth-of-type(2)", "group_label": "Illness or injury in the last 12 months", "row_text": "YesNo"}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Next", "section_text": "A few questions about Juniper's health", "checked": null, "visible": true}, {"control_id": "back", "dom_selector": "#back", "tag": "button", "id_attr": "back", "label_text": "Back", "section_text": "A few questions about Juniper's health", "checked": null, "visible": true, "row_text": "Back"}], "text_pairs": [], "banners": [], "modals": [], "title": "Thistlebrook Pet Health"} +FORM_TX_DEMO {"portal": "thistlebrook", "step": 22, "why": "before click selector='#card >> #next'>", "frame_url": "http://127.0.0.1:46007/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#card > div:nth-of-type(1) > button:nth-of-type(1)", "tag": "button", "role": "radio", "label_text": "Yes", "section_text": "A few questions about Juniper's health", "current_value": "Yes", "checked": true, "visible": true, "options": [{"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "radio_value": "Yes", "radio_group": "aria:#card > div:nth-of-type(1)", "group_label": "Spayed or neutered", "row_text": "YesNo"}, {"control_id": "ctrl_1", "dom_selector": "#card > div:nth-of-type(1) > button:nth-of-type(2)", "tag": "button", "role": "radio", "label_text": "No", "section_text": "A few questions about Juniper's health", "checked": false, "visible": true, "options": [{"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "radio_value": "No", "radio_group": "aria:#card > div:nth-of-type(1)", "group_label": "Spayed or neutered", "row_text": "YesNo"}, {"control_id": "ctrl_2", "dom_selector": "#card > div:nth-of-type(2) > button:nth-of-type(1)", "tag": "button", "role": "radio", "label_text": "Yes", "section_text": "A few questions about Juniper's health", "checked": false, "visible": true, "options": [{"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "radio_value": "Yes", "radio_group": "aria:#card > div:nth-of-type(2)", "group_label": "Illness or injury in the last 12 months", "row_text": "YesNo"}, {"control_id": "ctrl_3", "dom_selector": "#card > div:nth-of-type(2) > button:nth-of-type(2)", "tag": "button", "role": "radio", "label_text": "No", "section_text": "A few questions about Juniper's health", "current_value": "No", "checked": true, "visible": true, "options": [{"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "radio_value": "No", "radio_group": "aria:#card > div:nth-of-type(2)", "group_label": "Illness or injury in the last 12 months", "row_text": "YesNo"}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Next", "section_text": "A few questions about Juniper's health", "checked": null, "visible": true}, {"control_id": "back", "dom_selector": "#back", "tag": "button", "id_attr": "back", "label_text": "Back", "section_text": "A few questions about Juniper's health", "checked": null, "visible": true, "row_text": "Back"}], "text_pairs": [], "banners": [], "modals": [], "title": "Thistlebrook Pet Health"} +FORM_TX_DEMO {"portal": "thistlebrook", "step": 23, "why": "before click selector='#card >> internal:role=radiogroup[name=\"Annual limit\"s] >> [role=radio][data-value=\"$10,000\"]'>", "frame_url": "http://127.0.0.1:46007/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#card > div:nth-of-type(1) > button:nth-of-type(1)", "tag": "button", "role": "radio", "label_text": "$5,000", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "$5,000", "label": "$5,000"}, {"value": "$10,000", "label": "$10,000"}, {"value": "$20,000", "label": "$20,000"}, {"value": "Unlimited", "label": "Unlimited"}], "radio_value": "$5,000", "radio_group": "aria:#card > div:nth-of-type(1)", "group_label": "Annual limit", "row_text": "$5,000$10,000$20,000Unlimited"}, {"control_id": "ctrl_1", "dom_selector": "#card > div:nth-of-type(1) > button:nth-of-type(2)", "tag": "button", "role": "radio", "label_text": "$10,000", "section_text": "Build Juniper's plan", "current_value": "$10,000", "checked": true, "visible": true, "options": [{"value": "$5,000", "label": "$5,000"}, {"value": "$10,000", "label": "$10,000"}, {"value": "$20,000", "label": "$20,000"}, {"value": "Unlimited", "label": "Unlimited"}], "radio_value": "$10,000", "radio_group": "aria:#card > div:nth-of-type(1)", "group_label": "Annual limit", "row_text": "$5,000$10,000$20,000Unlimited"}, {"control_id": "ctrl_2", "dom_selector": "#card > div:nth-of-type(1) > button:nth-of-type(3)", "tag": "button", "role": "radio", "label_text": "$20,000", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "$5,000", "label": "$5,000"}, {"value": "$10,000", "label": "$10,000"}, {"value": "$20,000", "label": "$20,000"}, {"value": "Unlimited", "label": "Unlimited"}], "radio_value": "$20,000", "radio_group": "aria:#card > div:nth-of-type(1)", "group_label": "Annual limit", "row_text": "$5,000$10,000$20,000Unlimited"}, {"control_id": "ctrl_3", "dom_selector": "#card > div:nth-of-type(1) > button:nth-of-type(4)", "tag": "button", "role": "radio", "label_text": "Unlimited", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "$5,000", "label": "$5,000"}, {"value": "$10,000", "label": "$10,000"}, {"value": "$20,000", "label": "$20,000"}, {"value": "Unlimited", "label": "Unlimited"}], "radio_value": "Unlimited", "radio_group": "aria:#card > div:nth-of-type(1)", "group_label": "Annual limit", "row_text": "$5,000$10,000$20,000Unlimited"}, {"control_id": "ctrl_4", "dom_selector": "#card > div:nth-of-type(2) > button:nth-of-type(1)", "tag": "button", "role": "radio", "label_text": "70%", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "70%", "label": "70%"}, {"value": "80%", "label": "80%"}, {"value": "90%", "label": "90%"}], "radio_value": "70%", "radio_group": "aria:#card > div:nth-of-type(2)", "group_label": "Reimbursement", "row_text": "70%80%90%"}, {"control_id": "ctrl_5", "dom_selector": "#card > div:nth-of-type(2) > button:nth-of-type(2)", "tag": "button", "role": "radio", "label_text": "80%", "section_text": "Build Juniper's plan", "current_value": "80%", "checked": true, "visible": true, "options": [{"value": "70%", "label": "70%"}, {"value": "80%", "label": "80%"}, {"value": "90%", "label": "90%"}], "radio_value": "80%", "radio_group": "aria:#card > div:nth-of-type(2)", "group_label": "Reimbursement", "row_text": "70%80%90%"}, {"control_id": "ctrl_6", "dom_selector": "#card > div:nth-of-type(2) > button:nth-of-type(3)", "tag": "button", "role": "radio", "label_text": "90%", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "70%", "label": "70%"}, {"value": "80%", "label": "80%"}, {"value": "90%", "label": "90%"}], "radio_value": "90%", "radio_group": "aria:#card > div:nth-of-type(2)", "group_label": "Reimbursement", "row_text": "70%80%90%"}, {"control_id": "ctrl_7", "dom_selector": "#card > div:nth-of-type(3) > button:nth-of-type(1)", "tag": "button", "role": "radio", "label_text": "$100", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "100", "label": "$100"}, {"value": "250", "label": "$250"}, {"value": "500", "label": "$500"}, {"value": "750", "label": "$750"}], "radio_value": "100", "radio_group": "aria:#card > div:nth-of-type(3)", "group_label": "Annual deductible", "row_text": "$100$250$500$750"}, {"control_id": "ctrl_8", "dom_selector": "#card > div:nth-of-type(3) > button:nth-of-type(2)", "tag": "button", "role": "radio", "label_text": "$250", "section_text": "Build Juniper's plan", "current_value": "250", "checked": true, "visible": true, "options": [{"value": "100", "label": "$100"}, {"value": "250", "label": "$250"}, {"value": "500", "label": "$500"}, {"value": "750", "label": "$750"}], "radio_value": "250", "radio_group": "aria:#card > div:nth-of-type(3)", "group_label": "Annual deductible", "row_text": "$100$250$500$750"}, {"control_id": "ctrl_9", "dom_selector": "#card > div:nth-of-type(3) > button:nth-of-type(3)", "tag": "button", "role": "radio", "label_text": "$500", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "100", "label": "$100"}, {"value": "250", "label": "$250"}, {"value": "500", "label": "$500"}, {"value": "750", "label": "$750"}], "radio_value": "500", "radio_group": "aria:#card > div:nth-of-type(3)", "group_label": "Annual deductible", "row_text": "$100$250$500$750"}, {"control_id": "ctrl_10", "dom_selector": "#card > div:nth-of-type(3) > button:nth-of-type(4)", "tag": "button", "role": "radio", "label_text": "$750", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "100", "label": "$100"}, {"value": "250", "label": "$250"}, {"value": "500", "label": "$500"}, {"value": "750", "label": "$750"}], "radio_value": "750", "radio_group": "aria:#card > div:nth-of-type(3)", "group_label": "Annual deductible", "row_text": "$100$250$500$750"}, {"control_id": "wellness", "dom_selector": "#wellness", "tag": "input", "input_type": "checkbox", "id_attr": "wellness", "label_text": "Add routine care (wellness)", "section_text": "Build Juniper's plan", "current_value": "false", "checked": false, "visible": true, "row_text": "Add routine care (wellness)"}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Next", "section_text": "Build Juniper's plan", "checked": null, "visible": true}, {"control_id": "back", "dom_selector": "#back", "tag": "button", "id_attr": "back", "label_text": "Back", "section_text": "Build Juniper's plan", "checked": null, "visible": true, "row_text": "Back"}], "text_pairs": [], "banners": [], "modals": [], "title": "Thistlebrook Pet Health"} +FORM_TX_DEMO {"portal": "thistlebrook", "step": 24, "why": "before click selector='#card >> internal:role=radiogroup[name=\"Reimbursement\"s] >> [role=radio][data-value=\"80%\"]'>", "frame_url": "http://127.0.0.1:46007/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#card > div:nth-of-type(1) > button:nth-of-type(1)", "tag": "button", "role": "radio", "label_text": "$5,000", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "$5,000", "label": "$5,000"}, {"value": "$10,000", "label": "$10,000"}, {"value": "$20,000", "label": "$20,000"}, {"value": "Unlimited", "label": "Unlimited"}], "radio_value": "$5,000", "radio_group": "aria:#card > div:nth-of-type(1)", "group_label": "Annual limit", "row_text": "$5,000$10,000$20,000Unlimited"}, {"control_id": "ctrl_1", "dom_selector": "#card > div:nth-of-type(1) > button:nth-of-type(2)", "tag": "button", "role": "radio", "label_text": "$10,000", "section_text": "Build Juniper's plan", "current_value": "$10,000", "checked": true, "visible": true, "options": [{"value": "$5,000", "label": "$5,000"}, {"value": "$10,000", "label": "$10,000"}, {"value": "$20,000", "label": "$20,000"}, {"value": "Unlimited", "label": "Unlimited"}], "radio_value": "$10,000", "radio_group": "aria:#card > div:nth-of-type(1)", "group_label": "Annual limit", "row_text": "$5,000$10,000$20,000Unlimited"}, {"control_id": "ctrl_2", "dom_selector": "#card > div:nth-of-type(1) > button:nth-of-type(3)", "tag": "button", "role": "radio", "label_text": "$20,000", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "$5,000", "label": "$5,000"}, {"value": "$10,000", "label": "$10,000"}, {"value": "$20,000", "label": "$20,000"}, {"value": "Unlimited", "label": "Unlimited"}], "radio_value": "$20,000", "radio_group": "aria:#card > div:nth-of-type(1)", "group_label": "Annual limit", "row_text": "$5,000$10,000$20,000Unlimited"}, {"control_id": "ctrl_3", "dom_selector": "#card > div:nth-of-type(1) > button:nth-of-type(4)", "tag": "button", "role": "radio", "label_text": "Unlimited", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "$5,000", "label": "$5,000"}, {"value": "$10,000", "label": "$10,000"}, {"value": "$20,000", "label": "$20,000"}, {"value": "Unlimited", "label": "Unlimited"}], "radio_value": "Unlimited", "radio_group": "aria:#card > div:nth-of-type(1)", "group_label": "Annual limit", "row_text": "$5,000$10,000$20,000Unlimited"}, {"control_id": "ctrl_4", "dom_selector": "#card > div:nth-of-type(2) > button:nth-of-type(1)", "tag": "button", "role": "radio", "label_text": "70%", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "70%", "label": "70%"}, {"value": "80%", "label": "80%"}, {"value": "90%", "label": "90%"}], "radio_value": "70%", "radio_group": "aria:#card > div:nth-of-type(2)", "group_label": "Reimbursement", "row_text": "70%80%90%"}, {"control_id": "ctrl_5", "dom_selector": "#card > div:nth-of-type(2) > button:nth-of-type(2)", "tag": "button", "role": "radio", "label_text": "80%", "section_text": "Build Juniper's plan", "current_value": "80%", "checked": true, "visible": true, "options": [{"value": "70%", "label": "70%"}, {"value": "80%", "label": "80%"}, {"value": "90%", "label": "90%"}], "radio_value": "80%", "radio_group": "aria:#card > div:nth-of-type(2)", "group_label": "Reimbursement", "row_text": "70%80%90%"}, {"control_id": "ctrl_6", "dom_selector": "#card > div:nth-of-type(2) > button:nth-of-type(3)", "tag": "button", "role": "radio", "label_text": "90%", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "70%", "label": "70%"}, {"value": "80%", "label": "80%"}, {"value": "90%", "label": "90%"}], "radio_value": "90%", "radio_group": "aria:#card > div:nth-of-type(2)", "group_label": "Reimbursement", "row_text": "70%80%90%"}, {"control_id": "ctrl_7", "dom_selector": "#card > div:nth-of-type(3) > button:nth-of-type(1)", "tag": "button", "role": "radio", "label_text": "$100", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "100", "label": "$100"}, {"value": "250", "label": "$250"}, {"value": "500", "label": "$500"}, {"value": "750", "label": "$750"}], "radio_value": "100", "radio_group": "aria:#card > div:nth-of-type(3)", "group_label": "Annual deductible", "row_text": "$100$250$500$750"}, {"control_id": "ctrl_8", "dom_selector": "#card > div:nth-of-type(3) > button:nth-of-type(2)", "tag": "button", "role": "radio", "label_text": "$250", "section_text": "Build Juniper's plan", "current_value": "250", "checked": true, "visible": true, "options": [{"value": "100", "label": "$100"}, {"value": "250", "label": "$250"}, {"value": "500", "label": "$500"}, {"value": "750", "label": "$750"}], "radio_value": "250", "radio_group": "aria:#card > div:nth-of-type(3)", "group_label": "Annual deductible", "row_text": "$100$250$500$750"}, {"control_id": "ctrl_9", "dom_selector": "#card > div:nth-of-type(3) > button:nth-of-type(3)", "tag": "button", "role": "radio", "label_text": "$500", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "100", "label": "$100"}, {"value": "250", "label": "$250"}, {"value": "500", "label": "$500"}, {"value": "750", "label": "$750"}], "radio_value": "500", "radio_group": "aria:#card > div:nth-of-type(3)", "group_label": "Annual deductible", "row_text": "$100$250$500$750"}, {"control_id": "ctrl_10", "dom_selector": "#card > div:nth-of-type(3) > button:nth-of-type(4)", "tag": "button", "role": "radio", "label_text": "$750", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "100", "label": "$100"}, {"value": "250", "label": "$250"}, {"value": "500", "label": "$500"}, {"value": "750", "label": "$750"}], "radio_value": "750", "radio_group": "aria:#card > div:nth-of-type(3)", "group_label": "Annual deductible", "row_text": "$100$250$500$750"}, {"control_id": "wellness", "dom_selector": "#wellness", "tag": "input", "input_type": "checkbox", "id_attr": "wellness", "label_text": "Add routine care (wellness)", "section_text": "Build Juniper's plan", "current_value": "false", "checked": false, "visible": true, "row_text": "Add routine care (wellness)"}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Next", "section_text": "Build Juniper's plan", "checked": null, "visible": true}, {"control_id": "back", "dom_selector": "#back", "tag": "button", "id_attr": "back", "label_text": "Back", "section_text": "Build Juniper's plan", "checked": null, "visible": true, "row_text": "Back"}], "text_pairs": [], "banners": [], "modals": [], "title": "Thistlebrook Pet Health"} +FORM_TX_DEMO {"portal": "thistlebrook", "step": 25, "why": "before click selector='#card >> internal:role=radiogroup[name=\"Annual deductible\"s] >> [role=radio][data-value=\"250\"]'>", "frame_url": "http://127.0.0.1:46007/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#card > div:nth-of-type(1) > button:nth-of-type(1)", "tag": "button", "role": "radio", "label_text": "$5,000", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "$5,000", "label": "$5,000"}, {"value": "$10,000", "label": "$10,000"}, {"value": "$20,000", "label": "$20,000"}, {"value": "Unlimited", "label": "Unlimited"}], "radio_value": "$5,000", "radio_group": "aria:#card > div:nth-of-type(1)", "group_label": "Annual limit", "row_text": "$5,000$10,000$20,000Unlimited"}, {"control_id": "ctrl_1", "dom_selector": "#card > div:nth-of-type(1) > button:nth-of-type(2)", "tag": "button", "role": "radio", "label_text": "$10,000", "section_text": "Build Juniper's plan", "current_value": "$10,000", "checked": true, "visible": true, "options": [{"value": "$5,000", "label": "$5,000"}, {"value": "$10,000", "label": "$10,000"}, {"value": "$20,000", "label": "$20,000"}, {"value": "Unlimited", "label": "Unlimited"}], "radio_value": "$10,000", "radio_group": "aria:#card > div:nth-of-type(1)", "group_label": "Annual limit", "row_text": "$5,000$10,000$20,000Unlimited"}, {"control_id": "ctrl_2", "dom_selector": "#card > div:nth-of-type(1) > button:nth-of-type(3)", "tag": "button", "role": "radio", "label_text": "$20,000", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "$5,000", "label": "$5,000"}, {"value": "$10,000", "label": "$10,000"}, {"value": "$20,000", "label": "$20,000"}, {"value": "Unlimited", "label": "Unlimited"}], "radio_value": "$20,000", "radio_group": "aria:#card > div:nth-of-type(1)", "group_label": "Annual limit", "row_text": "$5,000$10,000$20,000Unlimited"}, {"control_id": "ctrl_3", "dom_selector": "#card > div:nth-of-type(1) > button:nth-of-type(4)", "tag": "button", "role": "radio", "label_text": "Unlimited", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "$5,000", "label": "$5,000"}, {"value": "$10,000", "label": "$10,000"}, {"value": "$20,000", "label": "$20,000"}, {"value": "Unlimited", "label": "Unlimited"}], "radio_value": "Unlimited", "radio_group": "aria:#card > div:nth-of-type(1)", "group_label": "Annual limit", "row_text": "$5,000$10,000$20,000Unlimited"}, {"control_id": "ctrl_4", "dom_selector": "#card > div:nth-of-type(2) > button:nth-of-type(1)", "tag": "button", "role": "radio", "label_text": "70%", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "70%", "label": "70%"}, {"value": "80%", "label": "80%"}, {"value": "90%", "label": "90%"}], "radio_value": "70%", "radio_group": "aria:#card > div:nth-of-type(2)", "group_label": "Reimbursement", "row_text": "70%80%90%"}, {"control_id": "ctrl_5", "dom_selector": "#card > div:nth-of-type(2) > button:nth-of-type(2)", "tag": "button", "role": "radio", "label_text": "80%", "section_text": "Build Juniper's plan", "current_value": "80%", "checked": true, "visible": true, "options": [{"value": "70%", "label": "70%"}, {"value": "80%", "label": "80%"}, {"value": "90%", "label": "90%"}], "radio_value": "80%", "radio_group": "aria:#card > div:nth-of-type(2)", "group_label": "Reimbursement", "row_text": "70%80%90%"}, {"control_id": "ctrl_6", "dom_selector": "#card > div:nth-of-type(2) > button:nth-of-type(3)", "tag": "button", "role": "radio", "label_text": "90%", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "70%", "label": "70%"}, {"value": "80%", "label": "80%"}, {"value": "90%", "label": "90%"}], "radio_value": "90%", "radio_group": "aria:#card > div:nth-of-type(2)", "group_label": "Reimbursement", "row_text": "70%80%90%"}, {"control_id": "ctrl_7", "dom_selector": "#card > div:nth-of-type(3) > button:nth-of-type(1)", "tag": "button", "role": "radio", "label_text": "$100", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "100", "label": "$100"}, {"value": "250", "label": "$250"}, {"value": "500", "label": "$500"}, {"value": "750", "label": "$750"}], "radio_value": "100", "radio_group": "aria:#card > div:nth-of-type(3)", "group_label": "Annual deductible", "row_text": "$100$250$500$750"}, {"control_id": "ctrl_8", "dom_selector": "#card > div:nth-of-type(3) > button:nth-of-type(2)", "tag": "button", "role": "radio", "label_text": "$250", "section_text": "Build Juniper's plan", "current_value": "250", "checked": true, "visible": true, "options": [{"value": "100", "label": "$100"}, {"value": "250", "label": "$250"}, {"value": "500", "label": "$500"}, {"value": "750", "label": "$750"}], "radio_value": "250", "radio_group": "aria:#card > div:nth-of-type(3)", "group_label": "Annual deductible", "row_text": "$100$250$500$750"}, {"control_id": "ctrl_9", "dom_selector": "#card > div:nth-of-type(3) > button:nth-of-type(3)", "tag": "button", "role": "radio", "label_text": "$500", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "100", "label": "$100"}, {"value": "250", "label": "$250"}, {"value": "500", "label": "$500"}, {"value": "750", "label": "$750"}], "radio_value": "500", "radio_group": "aria:#card > div:nth-of-type(3)", "group_label": "Annual deductible", "row_text": "$100$250$500$750"}, {"control_id": "ctrl_10", "dom_selector": "#card > div:nth-of-type(3) > button:nth-of-type(4)", "tag": "button", "role": "radio", "label_text": "$750", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "100", "label": "$100"}, {"value": "250", "label": "$250"}, {"value": "500", "label": "$500"}, {"value": "750", "label": "$750"}], "radio_value": "750", "radio_group": "aria:#card > div:nth-of-type(3)", "group_label": "Annual deductible", "row_text": "$100$250$500$750"}, {"control_id": "wellness", "dom_selector": "#wellness", "tag": "input", "input_type": "checkbox", "id_attr": "wellness", "label_text": "Add routine care (wellness)", "section_text": "Build Juniper's plan", "current_value": "false", "checked": false, "visible": true, "row_text": "Add routine care (wellness)"}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Next", "section_text": "Build Juniper's plan", "checked": null, "visible": true}, {"control_id": "back", "dom_selector": "#back", "tag": "button", "id_attr": "back", "label_text": "Back", "section_text": "Build Juniper's plan", "checked": null, "visible": true, "row_text": "Back"}], "text_pairs": [], "banners": [], "modals": [], "title": "Thistlebrook Pet Health"} +FORM_TX_DEMO {"portal": "thistlebrook", "step": 26, "why": "before set_checked selector='#card >> internal:label=\"Add routine care (wellness)\"s'>", "frame_url": "http://127.0.0.1:46007/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#card > div:nth-of-type(1) > button:nth-of-type(1)", "tag": "button", "role": "radio", "label_text": "$5,000", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "$5,000", "label": "$5,000"}, {"value": "$10,000", "label": "$10,000"}, {"value": "$20,000", "label": "$20,000"}, {"value": "Unlimited", "label": "Unlimited"}], "radio_value": "$5,000", "radio_group": "aria:#card > div:nth-of-type(1)", "group_label": "Annual limit", "row_text": "$5,000$10,000$20,000Unlimited"}, {"control_id": "ctrl_1", "dom_selector": "#card > div:nth-of-type(1) > button:nth-of-type(2)", "tag": "button", "role": "radio", "label_text": "$10,000", "section_text": "Build Juniper's plan", "current_value": "$10,000", "checked": true, "visible": true, "options": [{"value": "$5,000", "label": "$5,000"}, {"value": "$10,000", "label": "$10,000"}, {"value": "$20,000", "label": "$20,000"}, {"value": "Unlimited", "label": "Unlimited"}], "radio_value": "$10,000", "radio_group": "aria:#card > div:nth-of-type(1)", "group_label": "Annual limit", "row_text": "$5,000$10,000$20,000Unlimited"}, {"control_id": "ctrl_2", "dom_selector": "#card > div:nth-of-type(1) > button:nth-of-type(3)", "tag": "button", "role": "radio", "label_text": "$20,000", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "$5,000", "label": "$5,000"}, {"value": "$10,000", "label": "$10,000"}, {"value": "$20,000", "label": "$20,000"}, {"value": "Unlimited", "label": "Unlimited"}], "radio_value": "$20,000", "radio_group": "aria:#card > div:nth-of-type(1)", "group_label": "Annual limit", "row_text": "$5,000$10,000$20,000Unlimited"}, {"control_id": "ctrl_3", "dom_selector": "#card > div:nth-of-type(1) > button:nth-of-type(4)", "tag": "button", "role": "radio", "label_text": "Unlimited", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "$5,000", "label": "$5,000"}, {"value": "$10,000", "label": "$10,000"}, {"value": "$20,000", "label": "$20,000"}, {"value": "Unlimited", "label": "Unlimited"}], "radio_value": "Unlimited", "radio_group": "aria:#card > div:nth-of-type(1)", "group_label": "Annual limit", "row_text": "$5,000$10,000$20,000Unlimited"}, {"control_id": "ctrl_4", "dom_selector": "#card > div:nth-of-type(2) > button:nth-of-type(1)", "tag": "button", "role": "radio", "label_text": "70%", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "70%", "label": "70%"}, {"value": "80%", "label": "80%"}, {"value": "90%", "label": "90%"}], "radio_value": "70%", "radio_group": "aria:#card > div:nth-of-type(2)", "group_label": "Reimbursement", "row_text": "70%80%90%"}, {"control_id": "ctrl_5", "dom_selector": "#card > div:nth-of-type(2) > button:nth-of-type(2)", "tag": "button", "role": "radio", "label_text": "80%", "section_text": "Build Juniper's plan", "current_value": "80%", "checked": true, "visible": true, "options": [{"value": "70%", "label": "70%"}, {"value": "80%", "label": "80%"}, {"value": "90%", "label": "90%"}], "radio_value": "80%", "radio_group": "aria:#card > div:nth-of-type(2)", "group_label": "Reimbursement", "row_text": "70%80%90%"}, {"control_id": "ctrl_6", "dom_selector": "#card > div:nth-of-type(2) > button:nth-of-type(3)", "tag": "button", "role": "radio", "label_text": "90%", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "70%", "label": "70%"}, {"value": "80%", "label": "80%"}, {"value": "90%", "label": "90%"}], "radio_value": "90%", "radio_group": "aria:#card > div:nth-of-type(2)", "group_label": "Reimbursement", "row_text": "70%80%90%"}, {"control_id": "ctrl_7", "dom_selector": "#card > div:nth-of-type(3) > button:nth-of-type(1)", "tag": "button", "role": "radio", "label_text": "$100", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "100", "label": "$100"}, {"value": "250", "label": "$250"}, {"value": "500", "label": "$500"}, {"value": "750", "label": "$750"}], "radio_value": "100", "radio_group": "aria:#card > div:nth-of-type(3)", "group_label": "Annual deductible", "row_text": "$100$250$500$750"}, {"control_id": "ctrl_8", "dom_selector": "#card > div:nth-of-type(3) > button:nth-of-type(2)", "tag": "button", "role": "radio", "label_text": "$250", "section_text": "Build Juniper's plan", "current_value": "250", "checked": true, "visible": true, "options": [{"value": "100", "label": "$100"}, {"value": "250", "label": "$250"}, {"value": "500", "label": "$500"}, {"value": "750", "label": "$750"}], "radio_value": "250", "radio_group": "aria:#card > div:nth-of-type(3)", "group_label": "Annual deductible", "row_text": "$100$250$500$750"}, {"control_id": "ctrl_9", "dom_selector": "#card > div:nth-of-type(3) > button:nth-of-type(3)", "tag": "button", "role": "radio", "label_text": "$500", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "100", "label": "$100"}, {"value": "250", "label": "$250"}, {"value": "500", "label": "$500"}, {"value": "750", "label": "$750"}], "radio_value": "500", "radio_group": "aria:#card > div:nth-of-type(3)", "group_label": "Annual deductible", "row_text": "$100$250$500$750"}, {"control_id": "ctrl_10", "dom_selector": "#card > div:nth-of-type(3) > button:nth-of-type(4)", "tag": "button", "role": "radio", "label_text": "$750", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "100", "label": "$100"}, {"value": "250", "label": "$250"}, {"value": "500", "label": "$500"}, {"value": "750", "label": "$750"}], "radio_value": "750", "radio_group": "aria:#card > div:nth-of-type(3)", "group_label": "Annual deductible", "row_text": "$100$250$500$750"}, {"control_id": "wellness", "dom_selector": "#wellness", "tag": "input", "input_type": "checkbox", "id_attr": "wellness", "label_text": "Add routine care (wellness)", "section_text": "Build Juniper's plan", "current_value": "false", "checked": false, "visible": true, "row_text": "Add routine care (wellness)"}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Next", "section_text": "Build Juniper's plan", "checked": null, "visible": true}, {"control_id": "back", "dom_selector": "#back", "tag": "button", "id_attr": "back", "label_text": "Back", "section_text": "Build Juniper's plan", "checked": null, "visible": true, "row_text": "Back"}], "text_pairs": [], "banners": [], "modals": [], "title": "Thistlebrook Pet Health"} +FORM_TX_DEMO {"portal": "thistlebrook", "step": 27, "why": "before click selector='#card >> #next'>", "frame_url": "http://127.0.0.1:46007/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#card > div:nth-of-type(1) > button:nth-of-type(1)", "tag": "button", "role": "radio", "label_text": "$5,000", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "$5,000", "label": "$5,000"}, {"value": "$10,000", "label": "$10,000"}, {"value": "$20,000", "label": "$20,000"}, {"value": "Unlimited", "label": "Unlimited"}], "radio_value": "$5,000", "radio_group": "aria:#card > div:nth-of-type(1)", "group_label": "Annual limit", "row_text": "$5,000$10,000$20,000Unlimited"}, {"control_id": "ctrl_1", "dom_selector": "#card > div:nth-of-type(1) > button:nth-of-type(2)", "tag": "button", "role": "radio", "label_text": "$10,000", "section_text": "Build Juniper's plan", "current_value": "$10,000", "checked": true, "visible": true, "options": [{"value": "$5,000", "label": "$5,000"}, {"value": "$10,000", "label": "$10,000"}, {"value": "$20,000", "label": "$20,000"}, {"value": "Unlimited", "label": "Unlimited"}], "radio_value": "$10,000", "radio_group": "aria:#card > div:nth-of-type(1)", "group_label": "Annual limit", "row_text": "$5,000$10,000$20,000Unlimited"}, {"control_id": "ctrl_2", "dom_selector": "#card > div:nth-of-type(1) > button:nth-of-type(3)", "tag": "button", "role": "radio", "label_text": "$20,000", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "$5,000", "label": "$5,000"}, {"value": "$10,000", "label": "$10,000"}, {"value": "$20,000", "label": "$20,000"}, {"value": "Unlimited", "label": "Unlimited"}], "radio_value": "$20,000", "radio_group": "aria:#card > div:nth-of-type(1)", "group_label": "Annual limit", "row_text": "$5,000$10,000$20,000Unlimited"}, {"control_id": "ctrl_3", "dom_selector": "#card > div:nth-of-type(1) > button:nth-of-type(4)", "tag": "button", "role": "radio", "label_text": "Unlimited", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "$5,000", "label": "$5,000"}, {"value": "$10,000", "label": "$10,000"}, {"value": "$20,000", "label": "$20,000"}, {"value": "Unlimited", "label": "Unlimited"}], "radio_value": "Unlimited", "radio_group": "aria:#card > div:nth-of-type(1)", "group_label": "Annual limit", "row_text": "$5,000$10,000$20,000Unlimited"}, {"control_id": "ctrl_4", "dom_selector": "#card > div:nth-of-type(2) > button:nth-of-type(1)", "tag": "button", "role": "radio", "label_text": "70%", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "70%", "label": "70%"}, {"value": "80%", "label": "80%"}, {"value": "90%", "label": "90%"}], "radio_value": "70%", "radio_group": "aria:#card > div:nth-of-type(2)", "group_label": "Reimbursement", "row_text": "70%80%90%"}, {"control_id": "ctrl_5", "dom_selector": "#card > div:nth-of-type(2) > button:nth-of-type(2)", "tag": "button", "role": "radio", "label_text": "80%", "section_text": "Build Juniper's plan", "current_value": "80%", "checked": true, "visible": true, "options": [{"value": "70%", "label": "70%"}, {"value": "80%", "label": "80%"}, {"value": "90%", "label": "90%"}], "radio_value": "80%", "radio_group": "aria:#card > div:nth-of-type(2)", "group_label": "Reimbursement", "row_text": "70%80%90%"}, {"control_id": "ctrl_6", "dom_selector": "#card > div:nth-of-type(2) > button:nth-of-type(3)", "tag": "button", "role": "radio", "label_text": "90%", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "70%", "label": "70%"}, {"value": "80%", "label": "80%"}, {"value": "90%", "label": "90%"}], "radio_value": "90%", "radio_group": "aria:#card > div:nth-of-type(2)", "group_label": "Reimbursement", "row_text": "70%80%90%"}, {"control_id": "ctrl_7", "dom_selector": "#card > div:nth-of-type(3) > button:nth-of-type(1)", "tag": "button", "role": "radio", "label_text": "$100", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "100", "label": "$100"}, {"value": "250", "label": "$250"}, {"value": "500", "label": "$500"}, {"value": "750", "label": "$750"}], "radio_value": "100", "radio_group": "aria:#card > div:nth-of-type(3)", "group_label": "Annual deductible", "row_text": "$100$250$500$750"}, {"control_id": "ctrl_8", "dom_selector": "#card > div:nth-of-type(3) > button:nth-of-type(2)", "tag": "button", "role": "radio", "label_text": "$250", "section_text": "Build Juniper's plan", "current_value": "250", "checked": true, "visible": true, "options": [{"value": "100", "label": "$100"}, {"value": "250", "label": "$250"}, {"value": "500", "label": "$500"}, {"value": "750", "label": "$750"}], "radio_value": "250", "radio_group": "aria:#card > div:nth-of-type(3)", "group_label": "Annual deductible", "row_text": "$100$250$500$750"}, {"control_id": "ctrl_9", "dom_selector": "#card > div:nth-of-type(3) > button:nth-of-type(3)", "tag": "button", "role": "radio", "label_text": "$500", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "100", "label": "$100"}, {"value": "250", "label": "$250"}, {"value": "500", "label": "$500"}, {"value": "750", "label": "$750"}], "radio_value": "500", "radio_group": "aria:#card > div:nth-of-type(3)", "group_label": "Annual deductible", "row_text": "$100$250$500$750"}, {"control_id": "ctrl_10", "dom_selector": "#card > div:nth-of-type(3) > button:nth-of-type(4)", "tag": "button", "role": "radio", "label_text": "$750", "section_text": "Build Juniper's plan", "checked": false, "visible": true, "options": [{"value": "100", "label": "$100"}, {"value": "250", "label": "$250"}, {"value": "500", "label": "$500"}, {"value": "750", "label": "$750"}], "radio_value": "750", "radio_group": "aria:#card > div:nth-of-type(3)", "group_label": "Annual deductible", "row_text": "$100$250$500$750"}, {"control_id": "wellness", "dom_selector": "#wellness", "tag": "input", "input_type": "checkbox", "id_attr": "wellness", "label_text": "Add routine care (wellness)", "section_text": "Build Juniper's plan", "current_value": "false", "checked": false, "visible": true, "row_text": "Add routine care (wellness)"}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Next", "section_text": "Build Juniper's plan", "checked": null, "visible": true}, {"control_id": "back", "dom_selector": "#back", "tag": "button", "id_attr": "back", "label_text": "Back", "section_text": "Build Juniper's plan", "checked": null, "visible": true, "row_text": "Back"}], "text_pairs": [], "banners": [], "modals": [], "title": "Thistlebrook Pet Health"} +FORM_TX_DEMO {"portal": "thistlebrook", "step": 28, "why": "before fill selector='#card >> internal:label=\"Policy start date\"s'>", "frame_url": "http://127.0.0.1:46007/quote", "is_main": true, "controls": [{"control_id": "start_date", "dom_selector": "#start_date", "tag": "input", "input_type": "text", "id_attr": "start_date", "label_text": "Policy start date", "section_text": "When should coverage start?", "current_value": "11/22/2026", "checked": null, "visible": true, "row_text": "When should coverage start?The earliest start is tomorrow.Policy start dateNextBack"}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Next", "section_text": "When should coverage start?", "checked": null, "visible": true, "row_text": "When should coverage start?The earliest start is tomorrow.Policy start dateNextBack"}, {"control_id": "back", "dom_selector": "#back", "tag": "button", "id_attr": "back", "label_text": "Back", "section_text": "When should coverage start?", "checked": null, "visible": true, "row_text": "When should coverage start?The earliest start is tomorrow.Policy start dateNextBack"}], "text_pairs": [], "banners": [], "modals": [], "title": "Thistlebrook Pet Health"} +FORM_TX_DEMO {"portal": "thistlebrook", "step": 29, "why": "before click selector='#card >> #next'>", "frame_url": "http://127.0.0.1:46007/quote", "is_main": true, "controls": [{"control_id": "start_date", "dom_selector": "#start_date", "tag": "input", "input_type": "text", "id_attr": "start_date", "label_text": "Policy start date", "section_text": "When should coverage start?", "current_value": "12/01/2026", "checked": null, "visible": true, "row_text": "When should coverage start?The earliest start is tomorrow.Policy start dateNextBack"}, {"control_id": "next", "dom_selector": "#next", "tag": "button", "id_attr": "next", "label_text": "Next", "section_text": "When should coverage start?", "checked": null, "visible": true, "row_text": "When should coverage start?The earliest start is tomorrow.Policy start dateNextBack"}, {"control_id": "back", "dom_selector": "#back", "tag": "button", "id_attr": "back", "label_text": "Back", "section_text": "When should coverage start?", "checked": null, "visible": true, "row_text": "When should coverage start?The earliest start is tomorrow.Policy start dateNextBack"}], "text_pairs": [], "banners": [], "modals": [], "title": "Thistlebrook Pet Health"} +FORM_TX_DEMO {"portal": "thistlebrook", "step": 30, "why": "before click selector='#card >> internal:role=button[name=\"Get my quote\"i]'>", "frame_url": "http://127.0.0.1:46007/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#sum > div:nth-of-type(1) > button", "tag": "button", "label_text": "Change", "section_text": "Check Juniper's quote", "checked": null, "visible": true, "row_text": "Check Juniper's quoteMake sure everything is right before you get your price.You ChangeFirst nameAdaLast nameQuennellContact ChangeEmailada.q@example.testMobile number512-555-0148ZIP code78704Your pet ChangePet's nameJuniperSpeciesDogBreed and age ChangeBreedBorder CollieWeight (lb)38Birth monthAugustBirth year2021Health ChangeSpayed or neuteredYesIllness or injury in the last 12 monthsNoPlan ChangeAnnual limit$10,000Reimbursement80%Annual deductible$250Add routine care (wellness)NoStart date Ch"}, {"control_id": "ctrl_1", "dom_selector": "#sum > div:nth-of-type(2) > button", "tag": "button", "label_text": "Change", "section_text": "Check Juniper's quote", "checked": null, "visible": true, "row_text": "Check Juniper's quoteMake sure everything is right before you get your price.You ChangeFirst nameAdaLast nameQuennellContact ChangeEmailada.q@example.testMobile number512-555-0148ZIP code78704Your pet ChangePet's nameJuniperSpeciesDogBreed and age ChangeBreedBorder CollieWeight (lb)38Birth monthAugustBirth year2021Health ChangeSpayed or neuteredYesIllness or injury in the last 12 monthsNoPlan ChangeAnnual limit$10,000Reimbursement80%Annual deductible$250Add routine care (wellness)NoStart date Ch"}, {"control_id": "ctrl_2", "dom_selector": "#sum > div:nth-of-type(3) > button", "tag": "button", "label_text": "Change", "section_text": "Check Juniper's quote", "checked": null, "visible": true, "row_text": "Check Juniper's quoteMake sure everything is right before you get your price.You ChangeFirst nameAdaLast nameQuennellContact ChangeEmailada.q@example.testMobile number512-555-0148ZIP code78704Your pet ChangePet's nameJuniperSpeciesDogBreed and age ChangeBreedBorder CollieWeight (lb)38Birth monthAugustBirth year2021Health ChangeSpayed or neuteredYesIllness or injury in the last 12 monthsNoPlan ChangeAnnual limit$10,000Reimbursement80%Annual deductible$250Add routine care (wellness)NoStart date Ch"}, {"control_id": "ctrl_3", "dom_selector": "#sum > div:nth-of-type(4) > button", "tag": "button", "label_text": "Change", "section_text": "Check Juniper's quote", "checked": null, "visible": true, "row_text": "Check Juniper's quoteMake sure everything is right before you get your price.You ChangeFirst nameAdaLast nameQuennellContact ChangeEmailada.q@example.testMobile number512-555-0148ZIP code78704Your pet ChangePet's nameJuniperSpeciesDogBreed and age ChangeBreedBorder CollieWeight (lb)38Birth monthAugustBirth year2021Health ChangeSpayed or neuteredYesIllness or injury in the last 12 monthsNoPlan ChangeAnnual limit$10,000Reimbursement80%Annual deductible$250Add routine care (wellness)NoStart date Ch"}, {"control_id": "ctrl_4", "dom_selector": "#sum > div:nth-of-type(5) > button", "tag": "button", "label_text": "Change", "section_text": "Check Juniper's quote", "checked": null, "visible": true, "row_text": "Check Juniper's quoteMake sure everything is right before you get your price.You ChangeFirst nameAdaLast nameQuennellContact ChangeEmailada.q@example.testMobile number512-555-0148ZIP code78704Your pet ChangePet's nameJuniperSpeciesDogBreed and age ChangeBreedBorder CollieWeight (lb)38Birth monthAugustBirth year2021Health ChangeSpayed or neuteredYesIllness or injury in the last 12 monthsNoPlan ChangeAnnual limit$10,000Reimbursement80%Annual deductible$250Add routine care (wellness)NoStart date Ch"}, {"control_id": "ctrl_5", "dom_selector": "#sum > div:nth-of-type(6) > button", "tag": "button", "label_text": "Change", "section_text": "Check Juniper's quote", "checked": null, "visible": true, "row_text": "Check Juniper's quoteMake sure everything is right before you get your price.You ChangeFirst nameAdaLast nameQuennellContact ChangeEmailada.q@example.testMobile number512-555-0148ZIP code78704Your pet ChangePet's nameJuniperSpeciesDogBreed and age ChangeBreedBorder CollieWeight (lb)38Birth monthAugustBirth year2021Health ChangeSpayed or neuteredYesIllness or injury in the last 12 monthsNoPlan ChangeAnnual limit$10,000Reimbursement80%Annual deductible$250Add routine care (wellness)NoStart date Ch"}, {"control_id": "ctrl_6", "dom_selector": "#sum > div:nth-of-type(7) > button", "tag": "button", "label_text": "Change", "section_text": "Check Juniper's quote", "checked": null, "visible": true, "row_text": "Check Juniper's quoteMake sure everything is right before you get your price.You ChangeFirst nameAdaLast nameQuennellContact ChangeEmailada.q@example.testMobile number512-555-0148ZIP code78704Your pet ChangePet's nameJuniperSpeciesDogBreed and age ChangeBreedBorder CollieWeight (lb)38Birth monthAugustBirth year2021Health ChangeSpayed or neuteredYesIllness or injury in the last 12 monthsNoPlan ChangeAnnual limit$10,000Reimbursement80%Annual deductible$250Add routine care (wellness)NoStart date Ch"}, {"control_id": "get-quote", "dom_selector": "#get-quote", "tag": "button", "id_attr": "get-quote", "label_text": "Get my quote", "section_text": "Check Juniper's quote", "checked": null, "visible": true, "row_text": "Check Juniper's quoteMake sure everything is right before you get your price.You ChangeFirst nameAdaLast nameQuennellContact ChangeEmailada.q@example.testMobile number512-555-0148ZIP code78704Your pet ChangePet's nameJuniperSpeciesDogBreed and age ChangeBreedBorder CollieWeight (lb)38Birth monthAugustBirth year2021Health ChangeSpayed or neuteredYesIllness or injury in the last 12 monthsNoPlan ChangeAnnual limit$10,000Reimbursement80%Annual deductible$250Add routine care (wellness)NoStart date Ch"}], "text_pairs": [{"label": "First name", "value": "Ada", "section_text": "Check Juniper's quote", "source": "dl"}, {"label": "Last name", "value": "Quennell", "section_text": "Check Juniper's quote", "source": "dl"}, {"label": "Email", "value": "ada.q@example.test", "section_text": "Check Juniper's quote", "source": "dl"}, {"label": "Mobile number", "value": "512-555-0148", "section_text": "Check Juniper's quote", "source": "dl"}, {"label": "ZIP code", "value": "78704", "section_text": "Check Juniper's quote", "source": "dl"}, {"label": "Pet's name", "value": "Juniper", "section_text": "Check Juniper's quote", "source": "dl"}, {"label": "Species", "value": "Dog", "section_text": "Check Juniper's quote", "source": "dl"}, {"label": "Breed", "value": "Border Collie", "section_text": "Check Juniper's quote", "source": "dl"}, {"label": "Weight (lb)", "value": "38", "section_text": "Check Juniper's quote", "source": "dl"}, {"label": "Birth month", "value": "August", "section_text": "Check Juniper's quote", "source": "dl"}, {"label": "Birth year", "value": "2021", "section_text": "Check Juniper's quote", "source": "dl"}, {"label": "Spayed or neutered", "value": "Yes", "section_text": "Check Juniper's quote", "source": "dl"}, {"label": "Illness or injury in the last 12 months", "value": "No", "section_text": "Check Juniper's quote", "source": "dl"}, {"label": "Annual limit", "value": "$10,000", "section_text": "Check Juniper's quote", "source": "dl"}, {"label": "Reimbursement", "value": "80%", "section_text": "Check Juniper's quote", "source": "dl"}, {"label": "Annual deductible", "value": "$250", "section_text": "Check Juniper's quote", "source": "dl"}, {"label": "Add routine care (wellness)", "value": "No", "section_text": "Check Juniper's quote", "source": "dl"}, {"label": "Policy start date", "value": "12/01/2026", "section_text": "Check Juniper's quote", "source": "dl"}], "banners": [], "modals": [], "title": "Thistlebrook Pet Health"} +FORM_TX_DEMO {"portal": "thistlebrook", "step": 31, "why": "end of case", "frame_url": "http://127.0.0.1:46007/quote/done/TPH-3A71D", "is_main": true, "controls": [], "text_pairs": [{"label": "First name", "value": "Ada", "section_text": "Juniper's quote is ready", "source": "dl"}, {"label": "Last name", "value": "Quennell", "section_text": "Juniper's quote is ready", "source": "dl"}, {"label": "Email", "value": "ada.q@example.test", "section_text": "Juniper's quote is ready", "source": "dl"}, {"label": "Mobile number", "value": "512-555-0148", "section_text": "Juniper's quote is ready", "source": "dl"}, {"label": "ZIP code", "value": "78704", "section_text": "Juniper's quote is ready", "source": "dl"}, {"label": "Pet's name", "value": "Juniper", "section_text": "Juniper's quote is ready", "source": "dl"}, {"label": "Species", "value": "Dog", "section_text": "Juniper's quote is ready", "source": "dl"}, {"label": "Breed", "value": "Border Collie", "section_text": "Juniper's quote is ready", "source": "dl"}, {"label": "Weight (lb)", "value": "38", "section_text": "Juniper's quote is ready", "source": "dl"}, {"label": "Birth month", "value": "August", "section_text": "Juniper's quote is ready", "source": "dl"}, {"label": "Birth year", "value": "2021", "section_text": "Juniper's quote is ready", "source": "dl"}, {"label": "Spayed or neutered", "value": "Yes", "section_text": "Juniper's quote is ready", "source": "dl"}, {"label": "Illness or injury in the last 12 months", "value": "No", "section_text": "Juniper's quote is ready", "source": "dl"}, {"label": "Annual limit", "value": "$10,000", "section_text": "Juniper's quote is ready", "source": "dl"}, {"label": "Reimbursement", "value": "80%", "section_text": "Juniper's quote is ready", "source": "dl"}, {"label": "Annual deductible", "value": "$250", "section_text": "Juniper's quote is ready", "source": "dl"}, {"label": "Add routine care (wellness)", "value": "No", "section_text": "Juniper's quote is ready", "source": "dl"}, {"label": "Policy start date", "value": "12/01/2026", "section_text": "Juniper's quote is ready", "source": "dl"}], "banners": [], "modals": [], "title": "Thistlebrook Pet Health"} +FORM_TX_DEMO_RESULT [{"case_id": "tb-dev", "correct": true}] diff --git a/packages/flow/benchmark/form_tx_heldout4_run/demos/wrenfield.jsonl b/packages/flow/benchmark/form_tx_heldout4_run/demos/wrenfield.jsonl new file mode 100644 index 0000000000..50d9858754 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4_run/demos/wrenfield.jsonl @@ -0,0 +1,33 @@ +FORM_TX_DEMO {"portal": "wrenfield", "step": 0, "why": "before fill selector='internal:label=\"Email\"s'>", "frame_url": "http://127.0.0.1:44867/account/login?next=/condo/quote", "is_main": true, "controls": [{"control_id": "u", "dom_selector": "#u", "tag": "input", "input_type": "email", "name_attr": "username", "id_attr": "u", "label_text": "Email", "section_text": "Sign in to Wrenfield", "checked": null, "visible": true}, {"control_id": "p", "dom_selector": "#p", "tag": "input", "input_type": "password", "name_attr": "password", "id_attr": "p", "label_text": "Password", "section_text": "Sign in to Wrenfield", "checked": null, "visible": true, "is_secret": true}, {"control_id": "ctrl_2", "dom_selector": "body > main > form > button", "tag": "button", "label_text": "Sign in", "section_text": "Sign in to Wrenfield", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Wrenfield Mutual | Condo insurance quote"} +FORM_TX_DEMO {"portal": "wrenfield", "step": 1, "why": "before fill selector='internal:label=\"Password\"s'>", "frame_url": "http://127.0.0.1:44867/account/login?next=/condo/quote", "is_main": true, "controls": [{"control_id": "u", "dom_selector": "#u", "tag": "input", "input_type": "email", "name_attr": "username", "id_attr": "u", "label_text": "Email", "section_text": "Sign in to Wrenfield", "current_value": "condo.owner@example.test", "checked": null, "visible": true}, {"control_id": "p", "dom_selector": "#p", "tag": "input", "input_type": "password", "name_attr": "password", "id_attr": "p", "label_text": "Password", "section_text": "Sign in to Wrenfield", "checked": null, "visible": true, "is_secret": true}, {"control_id": "ctrl_2", "dom_selector": "body > main > form > button", "tag": "button", "label_text": "Sign in", "section_text": "Sign in to Wrenfield", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Wrenfield Mutual | Condo insurance quote"} +FORM_TX_DEMO {"portal": "wrenfield", "step": 2, "why": "before click selector='internal:role=button[name=\"Sign in\"i]'>", "frame_url": "http://127.0.0.1:44867/account/login?next=/condo/quote", "is_main": true, "controls": [{"control_id": "u", "dom_selector": "#u", "tag": "input", "input_type": "email", "name_attr": "username", "id_attr": "u", "label_text": "Email", "section_text": "Sign in to Wrenfield", "current_value": "condo.owner@example.test", "checked": null, "visible": true}, {"control_id": "p", "dom_selector": "#p", "tag": "input", "input_type": "password", "name_attr": "password", "id_attr": "p", "label_text": "Password", "section_text": "Sign in to Wrenfield", "current_value": "", "checked": null, "visible": true, "is_secret": true}, {"control_id": "ctrl_2", "dom_selector": "body > main > form > button", "tag": "button", "label_text": "Sign in", "section_text": "Sign in to Wrenfield", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Wrenfield Mutual | Condo insurance quote"} +FORM_TX_DEMO {"portal": "wrenfield", "step": 3, "why": "before fill selector='#association'>", "frame_url": "http://127.0.0.1:44867/condo/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "body > div > nav > ol > li:nth-of-type(1) > button", "tag": "button", "label_text": "1. Your unit", "checked": null, "visible": true, "row_text": "1. Your unit"}, {"control_id": "ctrl_1", "dom_selector": "body > div > nav > ol > li:nth-of-type(2) > button", "tag": "button", "label_text": "2. About you", "checked": null, "disabled": true, "visible": true, "row_text": "2. About you"}, {"control_id": "ctrl_2", "dom_selector": "body > div > nav > ol > li:nth-of-type(3) > button", "tag": "button", "label_text": "3. Coverage", "checked": null, "disabled": true, "visible": true, "row_text": "3. Coverage"}, {"control_id": "ctrl_3", "dom_selector": "body > div > nav > ol > li:nth-of-type(4) > button", "tag": "button", "label_text": "4. Review", "checked": null, "disabled": true, "visible": true, "row_text": "4. Review"}, {"control_id": "association", "dom_selector": "#association", "tag": "input", "input_type": "text", "role": "combobox", "id_attr": "association", "label_text": "Condominium association", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "Condominium association"}, {"control_id": "street", "dom_selector": "#street", "tag": "input", "input_type": "text", "name_attr": "street", "id_attr": "street", "label_text": "Unit street address", "section_text": "Your unit", "checked": null, "visible": true}, {"control_id": "unit_number", "dom_selector": "#unit_number", "tag": "input", "input_type": "text", "name_attr": "unit_number", "id_attr": "unit_number", "label_text": "Unit number", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "Unit number"}, {"control_id": "city", "dom_selector": "#city", "tag": "input", "input_type": "text", "name_attr": "city", "id_attr": "city", "label_text": "City", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "City"}, {"control_id": "state", "dom_selector": "#state", "tag": "select", "name_attr": "state", "id_attr": "state", "label_text": "State", "section_text": "Your unit", "current_value": "Select\u2026", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "OR", "label": "OR"}, {"value": "WA", "label": "WA"}, {"value": "ID", "label": "ID"}, {"value": "CA", "label": "CA"}, {"value": "NV", "label": "NV"}], "row_text": "StateSelect\u2026ORWAIDCANV"}, {"control_id": "zip", "dom_selector": "#zip", "tag": "input", "input_type": "text", "name_attr": "zip", "id_attr": "zip", "label_text": "ZIP code", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "ZIP code"}, {"control_id": "year_built", "dom_selector": "#year_built", "tag": "input", "input_type": "text", "name_attr": "year_built", "id_attr": "year_built", "label_text": "Year the building was built", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "Year the building was built"}, {"control_id": "floor", "dom_selector": "#floor", "tag": "input", "input_type": "text", "name_attr": "floor", "id_attr": "floor", "label_text": "Floor the unit is on", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "Floor the unit is on"}, {"control_id": "occupancy", "dom_selector": "#occupancy", "tag": "select", "name_attr": "occupancy", "id_attr": "occupancy", "label_text": "How is the unit occupied?", "section_text": "Your unit", "current_value": "Select\u2026", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "Owner-occupied (primary residence)", "label": "Owner-occupied (primary residence)"}, {"value": "Secondary or seasonal home", "label": "Secondary or seasonal home"}, {"value": "Rented to others", "label": "Rented to others"}]}, {"control_id": "wood_stove", "dom_selector": "#wood_stove", "tag": "select", "name_attr": "wood_stove", "id_attr": "wood_stove", "label_text": "Wood-burning stove or fireplace insert", "section_text": "Your unit", "current_value": "Select\u2026", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}]}, {"control_id": "ctrl_14", "dom_selector": "body > div > main > section:nth-of-type(1) > button", "tag": "button", "label_text": "Continue", "section_text": "Your unit", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Wrenfield Mutual | Condo insurance quote"} +FORM_TX_DEMO {"portal": "wrenfield", "step": 4, "why": "before fill selector='#association'>", "frame_url": "http://127.0.0.1:44867/condo/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "body > div > nav > ol > li:nth-of-type(1) > button", "tag": "button", "label_text": "1. Your unit", "checked": null, "visible": true, "row_text": "1. Your unit"}, {"control_id": "ctrl_1", "dom_selector": "body > div > nav > ol > li:nth-of-type(2) > button", "tag": "button", "label_text": "2. About you", "checked": null, "disabled": true, "visible": true, "row_text": "2. About you"}, {"control_id": "ctrl_2", "dom_selector": "body > div > nav > ol > li:nth-of-type(3) > button", "tag": "button", "label_text": "3. Coverage", "checked": null, "disabled": true, "visible": true, "row_text": "3. Coverage"}, {"control_id": "ctrl_3", "dom_selector": "body > div > nav > ol > li:nth-of-type(4) > button", "tag": "button", "label_text": "4. Review", "checked": null, "disabled": true, "visible": true, "row_text": "4. Review"}, {"control_id": "association", "dom_selector": "#association", "tag": "input", "input_type": "text", "role": "combobox", "id_attr": "association", "label_text": "Condominium association", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "Condominium association"}, {"control_id": "street", "dom_selector": "#street", "tag": "input", "input_type": "text", "name_attr": "street", "id_attr": "street", "label_text": "Unit street address", "section_text": "Your unit", "checked": null, "visible": true}, {"control_id": "unit_number", "dom_selector": "#unit_number", "tag": "input", "input_type": "text", "name_attr": "unit_number", "id_attr": "unit_number", "label_text": "Unit number", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "Unit number"}, {"control_id": "city", "dom_selector": "#city", "tag": "input", "input_type": "text", "name_attr": "city", "id_attr": "city", "label_text": "City", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "City"}, {"control_id": "state", "dom_selector": "#state", "tag": "select", "name_attr": "state", "id_attr": "state", "label_text": "State", "section_text": "Your unit", "current_value": "Select\u2026", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "OR", "label": "OR"}, {"value": "WA", "label": "WA"}, {"value": "ID", "label": "ID"}, {"value": "CA", "label": "CA"}, {"value": "NV", "label": "NV"}], "row_text": "StateSelect\u2026ORWAIDCANV"}, {"control_id": "zip", "dom_selector": "#zip", "tag": "input", "input_type": "text", "name_attr": "zip", "id_attr": "zip", "label_text": "ZIP code", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "ZIP code"}, {"control_id": "year_built", "dom_selector": "#year_built", "tag": "input", "input_type": "text", "name_attr": "year_built", "id_attr": "year_built", "label_text": "Year the building was built", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "Year the building was built"}, {"control_id": "floor", "dom_selector": "#floor", "tag": "input", "input_type": "text", "name_attr": "floor", "id_attr": "floor", "label_text": "Floor the unit is on", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "Floor the unit is on"}, {"control_id": "occupancy", "dom_selector": "#occupancy", "tag": "select", "name_attr": "occupancy", "id_attr": "occupancy", "label_text": "How is the unit occupied?", "section_text": "Your unit", "current_value": "Select\u2026", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "Owner-occupied (primary residence)", "label": "Owner-occupied (primary residence)"}, {"value": "Secondary or seasonal home", "label": "Secondary or seasonal home"}, {"value": "Rented to others", "label": "Rented to others"}]}, {"control_id": "wood_stove", "dom_selector": "#wood_stove", "tag": "select", "name_attr": "wood_stove", "id_attr": "wood_stove", "label_text": "Wood-burning stove or fireplace insert", "section_text": "Your unit", "current_value": "Select\u2026", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}]}, {"control_id": "ctrl_14", "dom_selector": "body > div > main > section:nth-of-type(1) > button", "tag": "button", "label_text": "Continue", "section_text": "Your unit", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Wrenfield Mutual | Condo insurance quote"} +FORM_TX_DEMO {"portal": "wrenfield", "step": 5, "why": "before click selector='#assoc-list li[role=option] >> nth=0'>", "frame_url": "http://127.0.0.1:44867/condo/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "body > div > nav > ol > li:nth-of-type(1) > button", "tag": "button", "label_text": "1. Your unit", "checked": null, "visible": true, "row_text": "1. Your unit"}, {"control_id": "ctrl_1", "dom_selector": "body > div > nav > ol > li:nth-of-type(2) > button", "tag": "button", "label_text": "2. About you", "checked": null, "disabled": true, "visible": true, "row_text": "2. About you"}, {"control_id": "ctrl_2", "dom_selector": "body > div > nav > ol > li:nth-of-type(3) > button", "tag": "button", "label_text": "3. Coverage", "checked": null, "disabled": true, "visible": true, "row_text": "3. Coverage"}, {"control_id": "ctrl_3", "dom_selector": "body > div > nav > ol > li:nth-of-type(4) > button", "tag": "button", "label_text": "4. Review", "checked": null, "disabled": true, "visible": true, "row_text": "4. Review"}, {"control_id": "association", "dom_selector": "#association", "tag": "input", "input_type": "text", "role": "combobox", "id_attr": "association", "label_text": "Condominium association", "section_text": "Your unit", "current_value": "Quarry Bend Lofts Owners Association (Portland, OR)", "checked": null, "visible": true, "row_text": "Condominium association Quarry Bend Lofts Owners Association (Portland, OR)"}, {"control_id": "street", "dom_selector": "#street", "tag": "input", "input_type": "text", "name_attr": "street", "id_attr": "street", "label_text": "Unit street address", "section_text": "Your unit", "checked": null, "visible": true}, {"control_id": "unit_number", "dom_selector": "#unit_number", "tag": "input", "input_type": "text", "name_attr": "unit_number", "id_attr": "unit_number", "label_text": "Unit number", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "Unit number"}, {"control_id": "city", "dom_selector": "#city", "tag": "input", "input_type": "text", "name_attr": "city", "id_attr": "city", "label_text": "City", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "City"}, {"control_id": "state", "dom_selector": "#state", "tag": "select", "name_attr": "state", "id_attr": "state", "label_text": "State", "section_text": "Your unit", "current_value": "Select\u2026", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "OR", "label": "OR"}, {"value": "WA", "label": "WA"}, {"value": "ID", "label": "ID"}, {"value": "CA", "label": "CA"}, {"value": "NV", "label": "NV"}], "row_text": "StateSelect\u2026ORWAIDCANV"}, {"control_id": "zip", "dom_selector": "#zip", "tag": "input", "input_type": "text", "name_attr": "zip", "id_attr": "zip", "label_text": "ZIP code", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "ZIP code"}, {"control_id": "year_built", "dom_selector": "#year_built", "tag": "input", "input_type": "text", "name_attr": "year_built", "id_attr": "year_built", "label_text": "Year the building was built", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "Year the building was built"}, {"control_id": "floor", "dom_selector": "#floor", "tag": "input", "input_type": "text", "name_attr": "floor", "id_attr": "floor", "label_text": "Floor the unit is on", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "Floor the unit is on"}, {"control_id": "occupancy", "dom_selector": "#occupancy", "tag": "select", "name_attr": "occupancy", "id_attr": "occupancy", "label_text": "How is the unit occupied?", "section_text": "Your unit", "current_value": "Select\u2026", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "Owner-occupied (primary residence)", "label": "Owner-occupied (primary residence)"}, {"value": "Secondary or seasonal home", "label": "Secondary or seasonal home"}, {"value": "Rented to others", "label": "Rented to others"}]}, {"control_id": "wood_stove", "dom_selector": "#wood_stove", "tag": "select", "name_attr": "wood_stove", "id_attr": "wood_stove", "label_text": "Wood-burning stove or fireplace insert", "section_text": "Your unit", "current_value": "Select\u2026", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}]}, {"control_id": "ctrl_14", "dom_selector": "body > div > main > section:nth-of-type(1) > button", "tag": "button", "label_text": "Continue", "section_text": "Your unit", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Wrenfield Mutual | Condo insurance quote"} +FORM_TX_DEMO {"portal": "wrenfield", "step": 6, "why": "before fill selector='section[data-step=\"1\"] >> internal:label=\"Unit street address\"s'>", "frame_url": "http://127.0.0.1:44867/condo/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "body > div > nav > ol > li:nth-of-type(1) > button", "tag": "button", "label_text": "1. Your unit", "checked": null, "visible": true, "row_text": "1. Your unit"}, {"control_id": "ctrl_1", "dom_selector": "body > div > nav > ol > li:nth-of-type(2) > button", "tag": "button", "label_text": "2. About you", "checked": null, "disabled": true, "visible": true, "row_text": "2. About you"}, {"control_id": "ctrl_2", "dom_selector": "body > div > nav > ol > li:nth-of-type(3) > button", "tag": "button", "label_text": "3. Coverage", "checked": null, "disabled": true, "visible": true, "row_text": "3. Coverage"}, {"control_id": "ctrl_3", "dom_selector": "body > div > nav > ol > li:nth-of-type(4) > button", "tag": "button", "label_text": "4. Review", "checked": null, "disabled": true, "visible": true, "row_text": "4. Review"}, {"control_id": "association", "dom_selector": "#association", "tag": "input", "input_type": "text", "role": "combobox", "id_attr": "association", "label_text": "Condominium association", "section_text": "Your unit", "current_value": "Quarry Bend Lofts Owners Association (Portland, OR)", "checked": null, "visible": true, "row_text": "Condominium association Quarry Bend Lofts Owners Association (Portland, OR)"}, {"control_id": "street", "dom_selector": "#street", "tag": "input", "input_type": "text", "name_attr": "street", "id_attr": "street", "label_text": "Unit street address", "section_text": "Your unit", "checked": null, "visible": true}, {"control_id": "unit_number", "dom_selector": "#unit_number", "tag": "input", "input_type": "text", "name_attr": "unit_number", "id_attr": "unit_number", "label_text": "Unit number", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "Unit number"}, {"control_id": "city", "dom_selector": "#city", "tag": "input", "input_type": "text", "name_attr": "city", "id_attr": "city", "label_text": "City", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "City"}, {"control_id": "state", "dom_selector": "#state", "tag": "select", "name_attr": "state", "id_attr": "state", "label_text": "State", "section_text": "Your unit", "current_value": "Select\u2026", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "OR", "label": "OR"}, {"value": "WA", "label": "WA"}, {"value": "ID", "label": "ID"}, {"value": "CA", "label": "CA"}, {"value": "NV", "label": "NV"}], "row_text": "StateSelect\u2026ORWAIDCANV"}, {"control_id": "zip", "dom_selector": "#zip", "tag": "input", "input_type": "text", "name_attr": "zip", "id_attr": "zip", "label_text": "ZIP code", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "ZIP code"}, {"control_id": "year_built", "dom_selector": "#year_built", "tag": "input", "input_type": "text", "name_attr": "year_built", "id_attr": "year_built", "label_text": "Year the building was built", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "Year the building was built"}, {"control_id": "floor", "dom_selector": "#floor", "tag": "input", "input_type": "text", "name_attr": "floor", "id_attr": "floor", "label_text": "Floor the unit is on", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "Floor the unit is on"}, {"control_id": "occupancy", "dom_selector": "#occupancy", "tag": "select", "name_attr": "occupancy", "id_attr": "occupancy", "label_text": "How is the unit occupied?", "section_text": "Your unit", "current_value": "Select\u2026", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "Owner-occupied (primary residence)", "label": "Owner-occupied (primary residence)"}, {"value": "Secondary or seasonal home", "label": "Secondary or seasonal home"}, {"value": "Rented to others", "label": "Rented to others"}]}, {"control_id": "wood_stove", "dom_selector": "#wood_stove", "tag": "select", "name_attr": "wood_stove", "id_attr": "wood_stove", "label_text": "Wood-burning stove or fireplace insert", "section_text": "Your unit", "current_value": "Select\u2026", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}]}, {"control_id": "ctrl_14", "dom_selector": "body > div > main > section:nth-of-type(1) > button", "tag": "button", "label_text": "Continue", "section_text": "Your unit", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Wrenfield Mutual | Condo insurance quote"} +FORM_TX_DEMO {"portal": "wrenfield", "step": 7, "why": "before fill selector='section[data-step=\"1\"] >> internal:label=\"Unit number\"s'>", "frame_url": "http://127.0.0.1:44867/condo/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "body > div > nav > ol > li:nth-of-type(1) > button", "tag": "button", "label_text": "1. Your unit", "checked": null, "visible": true, "row_text": "1. Your unit"}, {"control_id": "ctrl_1", "dom_selector": "body > div > nav > ol > li:nth-of-type(2) > button", "tag": "button", "label_text": "2. About you", "checked": null, "disabled": true, "visible": true, "row_text": "2. About you"}, {"control_id": "ctrl_2", "dom_selector": "body > div > nav > ol > li:nth-of-type(3) > button", "tag": "button", "label_text": "3. Coverage", "checked": null, "disabled": true, "visible": true, "row_text": "3. Coverage"}, {"control_id": "ctrl_3", "dom_selector": "body > div > nav > ol > li:nth-of-type(4) > button", "tag": "button", "label_text": "4. Review", "checked": null, "disabled": true, "visible": true, "row_text": "4. Review"}, {"control_id": "association", "dom_selector": "#association", "tag": "input", "input_type": "text", "role": "combobox", "id_attr": "association", "label_text": "Condominium association", "section_text": "Your unit", "current_value": "Quarry Bend Lofts Owners Association (Portland, OR)", "checked": null, "visible": true, "row_text": "Condominium association Quarry Bend Lofts Owners Association (Portland, OR)"}, {"control_id": "street", "dom_selector": "#street", "tag": "input", "input_type": "text", "name_attr": "street", "id_attr": "street", "label_text": "Unit street address", "section_text": "Your unit", "current_value": "2210 NW Quarry Bend Ave", "checked": null, "visible": true}, {"control_id": "unit_number", "dom_selector": "#unit_number", "tag": "input", "input_type": "text", "name_attr": "unit_number", "id_attr": "unit_number", "label_text": "Unit number", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "Unit number"}, {"control_id": "city", "dom_selector": "#city", "tag": "input", "input_type": "text", "name_attr": "city", "id_attr": "city", "label_text": "City", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "City"}, {"control_id": "state", "dom_selector": "#state", "tag": "select", "name_attr": "state", "id_attr": "state", "label_text": "State", "section_text": "Your unit", "current_value": "Select\u2026", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "OR", "label": "OR"}, {"value": "WA", "label": "WA"}, {"value": "ID", "label": "ID"}, {"value": "CA", "label": "CA"}, {"value": "NV", "label": "NV"}], "row_text": "StateSelect\u2026ORWAIDCANV"}, {"control_id": "zip", "dom_selector": "#zip", "tag": "input", "input_type": "text", "name_attr": "zip", "id_attr": "zip", "label_text": "ZIP code", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "ZIP code"}, {"control_id": "year_built", "dom_selector": "#year_built", "tag": "input", "input_type": "text", "name_attr": "year_built", "id_attr": "year_built", "label_text": "Year the building was built", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "Year the building was built"}, {"control_id": "floor", "dom_selector": "#floor", "tag": "input", "input_type": "text", "name_attr": "floor", "id_attr": "floor", "label_text": "Floor the unit is on", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "Floor the unit is on"}, {"control_id": "occupancy", "dom_selector": "#occupancy", "tag": "select", "name_attr": "occupancy", "id_attr": "occupancy", "label_text": "How is the unit occupied?", "section_text": "Your unit", "current_value": "Select\u2026", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "Owner-occupied (primary residence)", "label": "Owner-occupied (primary residence)"}, {"value": "Secondary or seasonal home", "label": "Secondary or seasonal home"}, {"value": "Rented to others", "label": "Rented to others"}]}, {"control_id": "wood_stove", "dom_selector": "#wood_stove", "tag": "select", "name_attr": "wood_stove", "id_attr": "wood_stove", "label_text": "Wood-burning stove or fireplace insert", "section_text": "Your unit", "current_value": "Select\u2026", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}]}, {"control_id": "ctrl_14", "dom_selector": "body > div > main > section:nth-of-type(1) > button", "tag": "button", "label_text": "Continue", "section_text": "Your unit", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Wrenfield Mutual | Condo insurance quote"} +FORM_TX_DEMO {"portal": "wrenfield", "step": 8, "why": "before fill selector='section[data-step=\"1\"] >> internal:label=\"City\"s'>", "frame_url": "http://127.0.0.1:44867/condo/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "body > div > nav > ol > li:nth-of-type(1) > button", "tag": "button", "label_text": "1. Your unit", "checked": null, "visible": true, "row_text": "1. Your unit"}, {"control_id": "ctrl_1", "dom_selector": "body > div > nav > ol > li:nth-of-type(2) > button", "tag": "button", "label_text": "2. About you", "checked": null, "disabled": true, "visible": true, "row_text": "2. About you"}, {"control_id": "ctrl_2", "dom_selector": "body > div > nav > ol > li:nth-of-type(3) > button", "tag": "button", "label_text": "3. Coverage", "checked": null, "disabled": true, "visible": true, "row_text": "3. Coverage"}, {"control_id": "ctrl_3", "dom_selector": "body > div > nav > ol > li:nth-of-type(4) > button", "tag": "button", "label_text": "4. Review", "checked": null, "disabled": true, "visible": true, "row_text": "4. Review"}, {"control_id": "association", "dom_selector": "#association", "tag": "input", "input_type": "text", "role": "combobox", "id_attr": "association", "label_text": "Condominium association", "section_text": "Your unit", "current_value": "Quarry Bend Lofts Owners Association (Portland, OR)", "checked": null, "visible": true, "row_text": "Condominium association Quarry Bend Lofts Owners Association (Portland, OR)"}, {"control_id": "street", "dom_selector": "#street", "tag": "input", "input_type": "text", "name_attr": "street", "id_attr": "street", "label_text": "Unit street address", "section_text": "Your unit", "current_value": "2210 NW Quarry Bend Ave", "checked": null, "visible": true}, {"control_id": "unit_number", "dom_selector": "#unit_number", "tag": "input", "input_type": "text", "name_attr": "unit_number", "id_attr": "unit_number", "label_text": "Unit number", "section_text": "Your unit", "current_value": "3C", "checked": null, "visible": true, "row_text": "Unit number"}, {"control_id": "city", "dom_selector": "#city", "tag": "input", "input_type": "text", "name_attr": "city", "id_attr": "city", "label_text": "City", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "City"}, {"control_id": "state", "dom_selector": "#state", "tag": "select", "name_attr": "state", "id_attr": "state", "label_text": "State", "section_text": "Your unit", "current_value": "Select\u2026", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "OR", "label": "OR"}, {"value": "WA", "label": "WA"}, {"value": "ID", "label": "ID"}, {"value": "CA", "label": "CA"}, {"value": "NV", "label": "NV"}], "row_text": "StateSelect\u2026ORWAIDCANV"}, {"control_id": "zip", "dom_selector": "#zip", "tag": "input", "input_type": "text", "name_attr": "zip", "id_attr": "zip", "label_text": "ZIP code", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "ZIP code"}, {"control_id": "year_built", "dom_selector": "#year_built", "tag": "input", "input_type": "text", "name_attr": "year_built", "id_attr": "year_built", "label_text": "Year the building was built", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "Year the building was built"}, {"control_id": "floor", "dom_selector": "#floor", "tag": "input", "input_type": "text", "name_attr": "floor", "id_attr": "floor", "label_text": "Floor the unit is on", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "Floor the unit is on"}, {"control_id": "occupancy", "dom_selector": "#occupancy", "tag": "select", "name_attr": "occupancy", "id_attr": "occupancy", "label_text": "How is the unit occupied?", "section_text": "Your unit", "current_value": "Select\u2026", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "Owner-occupied (primary residence)", "label": "Owner-occupied (primary residence)"}, {"value": "Secondary or seasonal home", "label": "Secondary or seasonal home"}, {"value": "Rented to others", "label": "Rented to others"}]}, {"control_id": "wood_stove", "dom_selector": "#wood_stove", "tag": "select", "name_attr": "wood_stove", "id_attr": "wood_stove", "label_text": "Wood-burning stove or fireplace insert", "section_text": "Your unit", "current_value": "Select\u2026", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}]}, {"control_id": "ctrl_14", "dom_selector": "body > div > main > section:nth-of-type(1) > button", "tag": "button", "label_text": "Continue", "section_text": "Your unit", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Wrenfield Mutual | Condo insurance quote"} +FORM_TX_DEMO {"portal": "wrenfield", "step": 9, "why": "before select_option selector='section[data-step=\"1\"] >> internal:label=\"State\"s'>", "frame_url": "http://127.0.0.1:44867/condo/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "body > div > nav > ol > li:nth-of-type(1) > button", "tag": "button", "label_text": "1. Your unit", "checked": null, "visible": true, "row_text": "1. Your unit"}, {"control_id": "ctrl_1", "dom_selector": "body > div > nav > ol > li:nth-of-type(2) > button", "tag": "button", "label_text": "2. About you", "checked": null, "disabled": true, "visible": true, "row_text": "2. About you"}, {"control_id": "ctrl_2", "dom_selector": "body > div > nav > ol > li:nth-of-type(3) > button", "tag": "button", "label_text": "3. Coverage", "checked": null, "disabled": true, "visible": true, "row_text": "3. Coverage"}, {"control_id": "ctrl_3", "dom_selector": "body > div > nav > ol > li:nth-of-type(4) > button", "tag": "button", "label_text": "4. Review", "checked": null, "disabled": true, "visible": true, "row_text": "4. Review"}, {"control_id": "association", "dom_selector": "#association", "tag": "input", "input_type": "text", "role": "combobox", "id_attr": "association", "label_text": "Condominium association", "section_text": "Your unit", "current_value": "Quarry Bend Lofts Owners Association (Portland, OR)", "checked": null, "visible": true, "row_text": "Condominium association Quarry Bend Lofts Owners Association (Portland, OR)"}, {"control_id": "street", "dom_selector": "#street", "tag": "input", "input_type": "text", "name_attr": "street", "id_attr": "street", "label_text": "Unit street address", "section_text": "Your unit", "current_value": "2210 NW Quarry Bend Ave", "checked": null, "visible": true}, {"control_id": "unit_number", "dom_selector": "#unit_number", "tag": "input", "input_type": "text", "name_attr": "unit_number", "id_attr": "unit_number", "label_text": "Unit number", "section_text": "Your unit", "current_value": "3C", "checked": null, "visible": true, "row_text": "Unit number"}, {"control_id": "city", "dom_selector": "#city", "tag": "input", "input_type": "text", "name_attr": "city", "id_attr": "city", "label_text": "City", "section_text": "Your unit", "current_value": "Portland", "checked": null, "visible": true, "row_text": "City"}, {"control_id": "state", "dom_selector": "#state", "tag": "select", "name_attr": "state", "id_attr": "state", "label_text": "State", "section_text": "Your unit", "current_value": "Select\u2026", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "OR", "label": "OR"}, {"value": "WA", "label": "WA"}, {"value": "ID", "label": "ID"}, {"value": "CA", "label": "CA"}, {"value": "NV", "label": "NV"}], "row_text": "StateSelect\u2026ORWAIDCANV"}, {"control_id": "zip", "dom_selector": "#zip", "tag": "input", "input_type": "text", "name_attr": "zip", "id_attr": "zip", "label_text": "ZIP code", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "ZIP code"}, {"control_id": "year_built", "dom_selector": "#year_built", "tag": "input", "input_type": "text", "name_attr": "year_built", "id_attr": "year_built", "label_text": "Year the building was built", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "Year the building was built"}, {"control_id": "floor", "dom_selector": "#floor", "tag": "input", "input_type": "text", "name_attr": "floor", "id_attr": "floor", "label_text": "Floor the unit is on", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "Floor the unit is on"}, {"control_id": "occupancy", "dom_selector": "#occupancy", "tag": "select", "name_attr": "occupancy", "id_attr": "occupancy", "label_text": "How is the unit occupied?", "section_text": "Your unit", "current_value": "Select\u2026", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "Owner-occupied (primary residence)", "label": "Owner-occupied (primary residence)"}, {"value": "Secondary or seasonal home", "label": "Secondary or seasonal home"}, {"value": "Rented to others", "label": "Rented to others"}]}, {"control_id": "wood_stove", "dom_selector": "#wood_stove", "tag": "select", "name_attr": "wood_stove", "id_attr": "wood_stove", "label_text": "Wood-burning stove or fireplace insert", "section_text": "Your unit", "current_value": "Select\u2026", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}]}, {"control_id": "ctrl_14", "dom_selector": "body > div > main > section:nth-of-type(1) > button", "tag": "button", "label_text": "Continue", "section_text": "Your unit", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Wrenfield Mutual | Condo insurance quote"} +FORM_TX_DEMO {"portal": "wrenfield", "step": 10, "why": "before fill selector='section[data-step=\"1\"] >> internal:label=\"ZIP code\"s'>", "frame_url": "http://127.0.0.1:44867/condo/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "body > div > nav > ol > li:nth-of-type(1) > button", "tag": "button", "label_text": "1. Your unit", "checked": null, "visible": true, "row_text": "1. Your unit"}, {"control_id": "ctrl_1", "dom_selector": "body > div > nav > ol > li:nth-of-type(2) > button", "tag": "button", "label_text": "2. About you", "checked": null, "disabled": true, "visible": true, "row_text": "2. About you"}, {"control_id": "ctrl_2", "dom_selector": "body > div > nav > ol > li:nth-of-type(3) > button", "tag": "button", "label_text": "3. Coverage", "checked": null, "disabled": true, "visible": true, "row_text": "3. Coverage"}, {"control_id": "ctrl_3", "dom_selector": "body > div > nav > ol > li:nth-of-type(4) > button", "tag": "button", "label_text": "4. Review", "checked": null, "disabled": true, "visible": true, "row_text": "4. Review"}, {"control_id": "association", "dom_selector": "#association", "tag": "input", "input_type": "text", "role": "combobox", "id_attr": "association", "label_text": "Condominium association", "section_text": "Your unit", "current_value": "Quarry Bend Lofts Owners Association (Portland, OR)", "checked": null, "visible": true, "row_text": "Condominium association Quarry Bend Lofts Owners Association (Portland, OR)"}, {"control_id": "street", "dom_selector": "#street", "tag": "input", "input_type": "text", "name_attr": "street", "id_attr": "street", "label_text": "Unit street address", "section_text": "Your unit", "current_value": "2210 NW Quarry Bend Ave", "checked": null, "visible": true}, {"control_id": "unit_number", "dom_selector": "#unit_number", "tag": "input", "input_type": "text", "name_attr": "unit_number", "id_attr": "unit_number", "label_text": "Unit number", "section_text": "Your unit", "current_value": "3C", "checked": null, "visible": true, "row_text": "Unit number"}, {"control_id": "city", "dom_selector": "#city", "tag": "input", "input_type": "text", "name_attr": "city", "id_attr": "city", "label_text": "City", "section_text": "Your unit", "current_value": "Portland", "checked": null, "visible": true, "row_text": "City"}, {"control_id": "state", "dom_selector": "#state", "tag": "select", "name_attr": "state", "id_attr": "state", "label_text": "State", "section_text": "Your unit", "current_value": "OR", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "OR", "label": "OR"}, {"value": "WA", "label": "WA"}, {"value": "ID", "label": "ID"}, {"value": "CA", "label": "CA"}, {"value": "NV", "label": "NV"}], "row_text": "StateSelect\u2026ORWAIDCANV"}, {"control_id": "zip", "dom_selector": "#zip", "tag": "input", "input_type": "text", "name_attr": "zip", "id_attr": "zip", "label_text": "ZIP code", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "ZIP code"}, {"control_id": "year_built", "dom_selector": "#year_built", "tag": "input", "input_type": "text", "name_attr": "year_built", "id_attr": "year_built", "label_text": "Year the building was built", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "Year the building was built"}, {"control_id": "floor", "dom_selector": "#floor", "tag": "input", "input_type": "text", "name_attr": "floor", "id_attr": "floor", "label_text": "Floor the unit is on", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "Floor the unit is on"}, {"control_id": "occupancy", "dom_selector": "#occupancy", "tag": "select", "name_attr": "occupancy", "id_attr": "occupancy", "label_text": "How is the unit occupied?", "section_text": "Your unit", "current_value": "Select\u2026", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "Owner-occupied (primary residence)", "label": "Owner-occupied (primary residence)"}, {"value": "Secondary or seasonal home", "label": "Secondary or seasonal home"}, {"value": "Rented to others", "label": "Rented to others"}]}, {"control_id": "wood_stove", "dom_selector": "#wood_stove", "tag": "select", "name_attr": "wood_stove", "id_attr": "wood_stove", "label_text": "Wood-burning stove or fireplace insert", "section_text": "Your unit", "current_value": "Select\u2026", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}]}, {"control_id": "ctrl_14", "dom_selector": "body > div > main > section:nth-of-type(1) > button", "tag": "button", "label_text": "Continue", "section_text": "Your unit", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Wrenfield Mutual | Condo insurance quote"} +FORM_TX_DEMO {"portal": "wrenfield", "step": 11, "why": "before fill selector='section[data-step=\"1\"] >> internal:label=\"Year the building was built\"s'>", "frame_url": "http://127.0.0.1:44867/condo/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "body > div > nav > ol > li:nth-of-type(1) > button", "tag": "button", "label_text": "1. Your unit", "checked": null, "visible": true, "row_text": "1. Your unit"}, {"control_id": "ctrl_1", "dom_selector": "body > div > nav > ol > li:nth-of-type(2) > button", "tag": "button", "label_text": "2. About you", "checked": null, "disabled": true, "visible": true, "row_text": "2. About you"}, {"control_id": "ctrl_2", "dom_selector": "body > div > nav > ol > li:nth-of-type(3) > button", "tag": "button", "label_text": "3. Coverage", "checked": null, "disabled": true, "visible": true, "row_text": "3. Coverage"}, {"control_id": "ctrl_3", "dom_selector": "body > div > nav > ol > li:nth-of-type(4) > button", "tag": "button", "label_text": "4. Review", "checked": null, "disabled": true, "visible": true, "row_text": "4. Review"}, {"control_id": "association", "dom_selector": "#association", "tag": "input", "input_type": "text", "role": "combobox", "id_attr": "association", "label_text": "Condominium association", "section_text": "Your unit", "current_value": "Quarry Bend Lofts Owners Association (Portland, OR)", "checked": null, "visible": true, "row_text": "Condominium association Quarry Bend Lofts Owners Association (Portland, OR)"}, {"control_id": "street", "dom_selector": "#street", "tag": "input", "input_type": "text", "name_attr": "street", "id_attr": "street", "label_text": "Unit street address", "section_text": "Your unit", "current_value": "2210 NW Quarry Bend Ave", "checked": null, "visible": true}, {"control_id": "unit_number", "dom_selector": "#unit_number", "tag": "input", "input_type": "text", "name_attr": "unit_number", "id_attr": "unit_number", "label_text": "Unit number", "section_text": "Your unit", "current_value": "3C", "checked": null, "visible": true, "row_text": "Unit number"}, {"control_id": "city", "dom_selector": "#city", "tag": "input", "input_type": "text", "name_attr": "city", "id_attr": "city", "label_text": "City", "section_text": "Your unit", "current_value": "Portland", "checked": null, "visible": true, "row_text": "City"}, {"control_id": "state", "dom_selector": "#state", "tag": "select", "name_attr": "state", "id_attr": "state", "label_text": "State", "section_text": "Your unit", "current_value": "OR", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "OR", "label": "OR"}, {"value": "WA", "label": "WA"}, {"value": "ID", "label": "ID"}, {"value": "CA", "label": "CA"}, {"value": "NV", "label": "NV"}], "row_text": "StateSelect\u2026ORWAIDCANV"}, {"control_id": "zip", "dom_selector": "#zip", "tag": "input", "input_type": "text", "name_attr": "zip", "id_attr": "zip", "label_text": "ZIP code", "section_text": "Your unit", "current_value": "97210", "checked": null, "visible": true, "row_text": "ZIP code"}, {"control_id": "year_built", "dom_selector": "#year_built", "tag": "input", "input_type": "text", "name_attr": "year_built", "id_attr": "year_built", "label_text": "Year the building was built", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "Year the building was built"}, {"control_id": "floor", "dom_selector": "#floor", "tag": "input", "input_type": "text", "name_attr": "floor", "id_attr": "floor", "label_text": "Floor the unit is on", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "Floor the unit is on"}, {"control_id": "occupancy", "dom_selector": "#occupancy", "tag": "select", "name_attr": "occupancy", "id_attr": "occupancy", "label_text": "How is the unit occupied?", "section_text": "Your unit", "current_value": "Select\u2026", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "Owner-occupied (primary residence)", "label": "Owner-occupied (primary residence)"}, {"value": "Secondary or seasonal home", "label": "Secondary or seasonal home"}, {"value": "Rented to others", "label": "Rented to others"}]}, {"control_id": "wood_stove", "dom_selector": "#wood_stove", "tag": "select", "name_attr": "wood_stove", "id_attr": "wood_stove", "label_text": "Wood-burning stove or fireplace insert", "section_text": "Your unit", "current_value": "Select\u2026", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}]}, {"control_id": "ctrl_14", "dom_selector": "body > div > main > section:nth-of-type(1) > button", "tag": "button", "label_text": "Continue", "section_text": "Your unit", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Wrenfield Mutual | Condo insurance quote"} +FORM_TX_DEMO {"portal": "wrenfield", "step": 12, "why": "before fill selector='section[data-step=\"1\"] >> internal:label=\"Floor the unit is on\"s'>", "frame_url": "http://127.0.0.1:44867/condo/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "body > div > nav > ol > li:nth-of-type(1) > button", "tag": "button", "label_text": "1. Your unit", "checked": null, "visible": true, "row_text": "1. Your unit"}, {"control_id": "ctrl_1", "dom_selector": "body > div > nav > ol > li:nth-of-type(2) > button", "tag": "button", "label_text": "2. About you", "checked": null, "disabled": true, "visible": true, "row_text": "2. About you"}, {"control_id": "ctrl_2", "dom_selector": "body > div > nav > ol > li:nth-of-type(3) > button", "tag": "button", "label_text": "3. Coverage", "checked": null, "disabled": true, "visible": true, "row_text": "3. Coverage"}, {"control_id": "ctrl_3", "dom_selector": "body > div > nav > ol > li:nth-of-type(4) > button", "tag": "button", "label_text": "4. Review", "checked": null, "disabled": true, "visible": true, "row_text": "4. Review"}, {"control_id": "association", "dom_selector": "#association", "tag": "input", "input_type": "text", "role": "combobox", "id_attr": "association", "label_text": "Condominium association", "section_text": "Your unit", "current_value": "Quarry Bend Lofts Owners Association (Portland, OR)", "checked": null, "visible": true, "row_text": "Condominium association Quarry Bend Lofts Owners Association (Portland, OR)"}, {"control_id": "street", "dom_selector": "#street", "tag": "input", "input_type": "text", "name_attr": "street", "id_attr": "street", "label_text": "Unit street address", "section_text": "Your unit", "current_value": "2210 NW Quarry Bend Ave", "checked": null, "visible": true}, {"control_id": "unit_number", "dom_selector": "#unit_number", "tag": "input", "input_type": "text", "name_attr": "unit_number", "id_attr": "unit_number", "label_text": "Unit number", "section_text": "Your unit", "current_value": "3C", "checked": null, "visible": true, "row_text": "Unit number"}, {"control_id": "city", "dom_selector": "#city", "tag": "input", "input_type": "text", "name_attr": "city", "id_attr": "city", "label_text": "City", "section_text": "Your unit", "current_value": "Portland", "checked": null, "visible": true, "row_text": "City"}, {"control_id": "state", "dom_selector": "#state", "tag": "select", "name_attr": "state", "id_attr": "state", "label_text": "State", "section_text": "Your unit", "current_value": "OR", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "OR", "label": "OR"}, {"value": "WA", "label": "WA"}, {"value": "ID", "label": "ID"}, {"value": "CA", "label": "CA"}, {"value": "NV", "label": "NV"}], "row_text": "StateSelect\u2026ORWAIDCANV"}, {"control_id": "zip", "dom_selector": "#zip", "tag": "input", "input_type": "text", "name_attr": "zip", "id_attr": "zip", "label_text": "ZIP code", "section_text": "Your unit", "current_value": "97210", "checked": null, "visible": true, "row_text": "ZIP code"}, {"control_id": "year_built", "dom_selector": "#year_built", "tag": "input", "input_type": "text", "name_attr": "year_built", "id_attr": "year_built", "label_text": "Year the building was built", "section_text": "Your unit", "current_value": "2008", "checked": null, "visible": true, "row_text": "Year the building was built"}, {"control_id": "floor", "dom_selector": "#floor", "tag": "input", "input_type": "text", "name_attr": "floor", "id_attr": "floor", "label_text": "Floor the unit is on", "section_text": "Your unit", "checked": null, "visible": true, "row_text": "Floor the unit is on"}, {"control_id": "occupancy", "dom_selector": "#occupancy", "tag": "select", "name_attr": "occupancy", "id_attr": "occupancy", "label_text": "How is the unit occupied?", "section_text": "Your unit", "current_value": "Select\u2026", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "Owner-occupied (primary residence)", "label": "Owner-occupied (primary residence)"}, {"value": "Secondary or seasonal home", "label": "Secondary or seasonal home"}, {"value": "Rented to others", "label": "Rented to others"}]}, {"control_id": "wood_stove", "dom_selector": "#wood_stove", "tag": "select", "name_attr": "wood_stove", "id_attr": "wood_stove", "label_text": "Wood-burning stove or fireplace insert", "section_text": "Your unit", "current_value": "Select\u2026", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}]}, {"control_id": "ctrl_14", "dom_selector": "body > div > main > section:nth-of-type(1) > button", "tag": "button", "label_text": "Continue", "section_text": "Your unit", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Wrenfield Mutual | Condo insurance quote"} +FORM_TX_DEMO {"portal": "wrenfield", "step": 13, "why": "before select_option selector='section[data-step=\"1\"] >> internal:label=\"How is the unit occupied?\"s'>", "frame_url": "http://127.0.0.1:44867/condo/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "body > div > nav > ol > li:nth-of-type(1) > button", "tag": "button", "label_text": "1. Your unit", "checked": null, "visible": true, "row_text": "1. Your unit"}, {"control_id": "ctrl_1", "dom_selector": "body > div > nav > ol > li:nth-of-type(2) > button", "tag": "button", "label_text": "2. About you", "checked": null, "disabled": true, "visible": true, "row_text": "2. About you"}, {"control_id": "ctrl_2", "dom_selector": "body > div > nav > ol > li:nth-of-type(3) > button", "tag": "button", "label_text": "3. Coverage", "checked": null, "disabled": true, "visible": true, "row_text": "3. Coverage"}, {"control_id": "ctrl_3", "dom_selector": "body > div > nav > ol > li:nth-of-type(4) > button", "tag": "button", "label_text": "4. Review", "checked": null, "disabled": true, "visible": true, "row_text": "4. Review"}, {"control_id": "association", "dom_selector": "#association", "tag": "input", "input_type": "text", "role": "combobox", "id_attr": "association", "label_text": "Condominium association", "section_text": "Your unit", "current_value": "Quarry Bend Lofts Owners Association (Portland, OR)", "checked": null, "visible": true, "row_text": "Condominium association Quarry Bend Lofts Owners Association (Portland, OR)"}, {"control_id": "street", "dom_selector": "#street", "tag": "input", "input_type": "text", "name_attr": "street", "id_attr": "street", "label_text": "Unit street address", "section_text": "Your unit", "current_value": "2210 NW Quarry Bend Ave", "checked": null, "visible": true}, {"control_id": "unit_number", "dom_selector": "#unit_number", "tag": "input", "input_type": "text", "name_attr": "unit_number", "id_attr": "unit_number", "label_text": "Unit number", "section_text": "Your unit", "current_value": "3C", "checked": null, "visible": true, "row_text": "Unit number"}, {"control_id": "city", "dom_selector": "#city", "tag": "input", "input_type": "text", "name_attr": "city", "id_attr": "city", "label_text": "City", "section_text": "Your unit", "current_value": "Portland", "checked": null, "visible": true, "row_text": "City"}, {"control_id": "state", "dom_selector": "#state", "tag": "select", "name_attr": "state", "id_attr": "state", "label_text": "State", "section_text": "Your unit", "current_value": "OR", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "OR", "label": "OR"}, {"value": "WA", "label": "WA"}, {"value": "ID", "label": "ID"}, {"value": "CA", "label": "CA"}, {"value": "NV", "label": "NV"}], "row_text": "StateSelect\u2026ORWAIDCANV"}, {"control_id": "zip", "dom_selector": "#zip", "tag": "input", "input_type": "text", "name_attr": "zip", "id_attr": "zip", "label_text": "ZIP code", "section_text": "Your unit", "current_value": "97210", "checked": null, "visible": true, "row_text": "ZIP code"}, {"control_id": "year_built", "dom_selector": "#year_built", "tag": "input", "input_type": "text", "name_attr": "year_built", "id_attr": "year_built", "label_text": "Year the building was built", "section_text": "Your unit", "current_value": "2008", "checked": null, "visible": true, "row_text": "Year the building was built"}, {"control_id": "floor", "dom_selector": "#floor", "tag": "input", "input_type": "text", "name_attr": "floor", "id_attr": "floor", "label_text": "Floor the unit is on", "section_text": "Your unit", "current_value": "3", "checked": null, "visible": true, "row_text": "Floor the unit is on"}, {"control_id": "occupancy", "dom_selector": "#occupancy", "tag": "select", "name_attr": "occupancy", "id_attr": "occupancy", "label_text": "How is the unit occupied?", "section_text": "Your unit", "current_value": "Select\u2026", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "Owner-occupied (primary residence)", "label": "Owner-occupied (primary residence)"}, {"value": "Secondary or seasonal home", "label": "Secondary or seasonal home"}, {"value": "Rented to others", "label": "Rented to others"}]}, {"control_id": "wood_stove", "dom_selector": "#wood_stove", "tag": "select", "name_attr": "wood_stove", "id_attr": "wood_stove", "label_text": "Wood-burning stove or fireplace insert", "section_text": "Your unit", "current_value": "Select\u2026", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}]}, {"control_id": "ctrl_14", "dom_selector": "body > div > main > section:nth-of-type(1) > button", "tag": "button", "label_text": "Continue", "section_text": "Your unit", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Wrenfield Mutual | Condo insurance quote"} +FORM_TX_DEMO {"portal": "wrenfield", "step": 14, "why": "before select_option selector='section[data-step=\"1\"] >> internal:label=\"Wood-burning stove or fireplace insert\"s'>", "frame_url": "http://127.0.0.1:44867/condo/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "body > div > nav > ol > li:nth-of-type(1) > button", "tag": "button", "label_text": "1. Your unit", "checked": null, "visible": true, "row_text": "1. Your unit"}, {"control_id": "ctrl_1", "dom_selector": "body > div > nav > ol > li:nth-of-type(2) > button", "tag": "button", "label_text": "2. About you", "checked": null, "disabled": true, "visible": true, "row_text": "2. About you"}, {"control_id": "ctrl_2", "dom_selector": "body > div > nav > ol > li:nth-of-type(3) > button", "tag": "button", "label_text": "3. Coverage", "checked": null, "disabled": true, "visible": true, "row_text": "3. Coverage"}, {"control_id": "ctrl_3", "dom_selector": "body > div > nav > ol > li:nth-of-type(4) > button", "tag": "button", "label_text": "4. Review", "checked": null, "disabled": true, "visible": true, "row_text": "4. Review"}, {"control_id": "association", "dom_selector": "#association", "tag": "input", "input_type": "text", "role": "combobox", "id_attr": "association", "label_text": "Condominium association", "section_text": "Your unit", "current_value": "Quarry Bend Lofts Owners Association (Portland, OR)", "checked": null, "visible": true, "row_text": "Condominium association Quarry Bend Lofts Owners Association (Portland, OR)"}, {"control_id": "street", "dom_selector": "#street", "tag": "input", "input_type": "text", "name_attr": "street", "id_attr": "street", "label_text": "Unit street address", "section_text": "Your unit", "current_value": "2210 NW Quarry Bend Ave", "checked": null, "visible": true}, {"control_id": "unit_number", "dom_selector": "#unit_number", "tag": "input", "input_type": "text", "name_attr": "unit_number", "id_attr": "unit_number", "label_text": "Unit number", "section_text": "Your unit", "current_value": "3C", "checked": null, "visible": true, "row_text": "Unit number"}, {"control_id": "city", "dom_selector": "#city", "tag": "input", "input_type": "text", "name_attr": "city", "id_attr": "city", "label_text": "City", "section_text": "Your unit", "current_value": "Portland", "checked": null, "visible": true, "row_text": "City"}, {"control_id": "state", "dom_selector": "#state", "tag": "select", "name_attr": "state", "id_attr": "state", "label_text": "State", "section_text": "Your unit", "current_value": "OR", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "OR", "label": "OR"}, {"value": "WA", "label": "WA"}, {"value": "ID", "label": "ID"}, {"value": "CA", "label": "CA"}, {"value": "NV", "label": "NV"}], "row_text": "StateSelect\u2026ORWAIDCANV"}, {"control_id": "zip", "dom_selector": "#zip", "tag": "input", "input_type": "text", "name_attr": "zip", "id_attr": "zip", "label_text": "ZIP code", "section_text": "Your unit", "current_value": "97210", "checked": null, "visible": true, "row_text": "ZIP code"}, {"control_id": "year_built", "dom_selector": "#year_built", "tag": "input", "input_type": "text", "name_attr": "year_built", "id_attr": "year_built", "label_text": "Year the building was built", "section_text": "Your unit", "current_value": "2008", "checked": null, "visible": true, "row_text": "Year the building was built"}, {"control_id": "floor", "dom_selector": "#floor", "tag": "input", "input_type": "text", "name_attr": "floor", "id_attr": "floor", "label_text": "Floor the unit is on", "section_text": "Your unit", "current_value": "3", "checked": null, "visible": true, "row_text": "Floor the unit is on"}, {"control_id": "occupancy", "dom_selector": "#occupancy", "tag": "select", "name_attr": "occupancy", "id_attr": "occupancy", "label_text": "How is the unit occupied?", "section_text": "Your unit", "current_value": "Owner-occupied (primary residence)", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "Owner-occupied (primary residence)", "label": "Owner-occupied (primary residence)"}, {"value": "Secondary or seasonal home", "label": "Secondary or seasonal home"}, {"value": "Rented to others", "label": "Rented to others"}]}, {"control_id": "wood_stove", "dom_selector": "#wood_stove", "tag": "select", "name_attr": "wood_stove", "id_attr": "wood_stove", "label_text": "Wood-burning stove or fireplace insert", "section_text": "Your unit", "current_value": "Select\u2026", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}]}, {"control_id": "ctrl_14", "dom_selector": "body > div > main > section:nth-of-type(1) > button", "tag": "button", "label_text": "Continue", "section_text": "Your unit", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Wrenfield Mutual | Condo insurance quote"} +FORM_TX_DEMO {"portal": "wrenfield", "step": 15, "why": "before click selector='section[data-step=\"1\"] >> [data-save=\"1\"]'>", "frame_url": "http://127.0.0.1:44867/condo/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "body > div > nav > ol > li:nth-of-type(1) > button", "tag": "button", "label_text": "1. Your unit", "checked": null, "visible": true, "row_text": "1. Your unit"}, {"control_id": "ctrl_1", "dom_selector": "body > div > nav > ol > li:nth-of-type(2) > button", "tag": "button", "label_text": "2. About you", "checked": null, "disabled": true, "visible": true, "row_text": "2. About you"}, {"control_id": "ctrl_2", "dom_selector": "body > div > nav > ol > li:nth-of-type(3) > button", "tag": "button", "label_text": "3. Coverage", "checked": null, "disabled": true, "visible": true, "row_text": "3. Coverage"}, {"control_id": "ctrl_3", "dom_selector": "body > div > nav > ol > li:nth-of-type(4) > button", "tag": "button", "label_text": "4. Review", "checked": null, "disabled": true, "visible": true, "row_text": "4. Review"}, {"control_id": "association", "dom_selector": "#association", "tag": "input", "input_type": "text", "role": "combobox", "id_attr": "association", "label_text": "Condominium association", "section_text": "Your unit", "current_value": "Quarry Bend Lofts Owners Association (Portland, OR)", "checked": null, "visible": true, "row_text": "Condominium association Quarry Bend Lofts Owners Association (Portland, OR)"}, {"control_id": "street", "dom_selector": "#street", "tag": "input", "input_type": "text", "name_attr": "street", "id_attr": "street", "label_text": "Unit street address", "section_text": "Your unit", "current_value": "2210 NW Quarry Bend Ave", "checked": null, "visible": true}, {"control_id": "unit_number", "dom_selector": "#unit_number", "tag": "input", "input_type": "text", "name_attr": "unit_number", "id_attr": "unit_number", "label_text": "Unit number", "section_text": "Your unit", "current_value": "3C", "checked": null, "visible": true, "row_text": "Unit number"}, {"control_id": "city", "dom_selector": "#city", "tag": "input", "input_type": "text", "name_attr": "city", "id_attr": "city", "label_text": "City", "section_text": "Your unit", "current_value": "Portland", "checked": null, "visible": true, "row_text": "City"}, {"control_id": "state", "dom_selector": "#state", "tag": "select", "name_attr": "state", "id_attr": "state", "label_text": "State", "section_text": "Your unit", "current_value": "OR", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "OR", "label": "OR"}, {"value": "WA", "label": "WA"}, {"value": "ID", "label": "ID"}, {"value": "CA", "label": "CA"}, {"value": "NV", "label": "NV"}], "row_text": "StateSelect\u2026ORWAIDCANV"}, {"control_id": "zip", "dom_selector": "#zip", "tag": "input", "input_type": "text", "name_attr": "zip", "id_attr": "zip", "label_text": "ZIP code", "section_text": "Your unit", "current_value": "97210", "checked": null, "visible": true, "row_text": "ZIP code"}, {"control_id": "year_built", "dom_selector": "#year_built", "tag": "input", "input_type": "text", "name_attr": "year_built", "id_attr": "year_built", "label_text": "Year the building was built", "section_text": "Your unit", "current_value": "2008", "checked": null, "visible": true, "row_text": "Year the building was built"}, {"control_id": "floor", "dom_selector": "#floor", "tag": "input", "input_type": "text", "name_attr": "floor", "id_attr": "floor", "label_text": "Floor the unit is on", "section_text": "Your unit", "current_value": "3", "checked": null, "visible": true, "row_text": "Floor the unit is on"}, {"control_id": "occupancy", "dom_selector": "#occupancy", "tag": "select", "name_attr": "occupancy", "id_attr": "occupancy", "label_text": "How is the unit occupied?", "section_text": "Your unit", "current_value": "Owner-occupied (primary residence)", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "Owner-occupied (primary residence)", "label": "Owner-occupied (primary residence)"}, {"value": "Secondary or seasonal home", "label": "Secondary or seasonal home"}, {"value": "Rented to others", "label": "Rented to others"}]}, {"control_id": "wood_stove", "dom_selector": "#wood_stove", "tag": "select", "name_attr": "wood_stove", "id_attr": "wood_stove", "label_text": "Wood-burning stove or fireplace insert", "section_text": "Your unit", "current_value": "No", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}]}, {"control_id": "ctrl_14", "dom_selector": "body > div > main > section:nth-of-type(1) > button", "tag": "button", "label_text": "Continue", "section_text": "Your unit", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Wrenfield Mutual | Condo insurance quote"} +FORM_TX_DEMO {"portal": "wrenfield", "step": 16, "why": "before fill selector='section[data-step=\"2\"] >> internal:label=\"First name\"s'>", "frame_url": "http://127.0.0.1:44867/condo/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "body > div > nav > ol > li:nth-of-type(1) > button", "tag": "button", "label_text": "1. Your unit", "checked": null, "visible": true, "row_text": "1. Your unit"}, {"control_id": "ctrl_1", "dom_selector": "body > div > nav > ol > li:nth-of-type(2) > button", "tag": "button", "label_text": "2. About you", "checked": null, "visible": true, "row_text": "2. About you"}, {"control_id": "ctrl_2", "dom_selector": "body > div > nav > ol > li:nth-of-type(3) > button", "tag": "button", "label_text": "3. Coverage", "checked": null, "disabled": true, "visible": true, "row_text": "3. Coverage"}, {"control_id": "ctrl_3", "dom_selector": "body > div > nav > ol > li:nth-of-type(4) > button", "tag": "button", "label_text": "4. Review", "checked": null, "disabled": true, "visible": true, "row_text": "4. Review"}, {"control_id": "first_name", "dom_selector": "#first_name", "tag": "input", "input_type": "text", "name_attr": "first_name", "id_attr": "first_name", "label_text": "First name", "section_text": "About you", "checked": null, "visible": true, "row_text": "First name"}, {"control_id": "last_name", "dom_selector": "#last_name", "tag": "input", "input_type": "text", "name_attr": "last_name", "id_attr": "last_name", "label_text": "Last name", "section_text": "About you", "checked": null, "visible": true, "row_text": "Last name"}, {"control_id": "dob", "dom_selector": "#dob", "tag": "input", "input_type": "text", "name_attr": "dob", "id_attr": "dob", "label_text": "Date of birth", "section_text": "About you", "checked": null, "visible": true}, {"control_id": "email", "dom_selector": "#email", "tag": "input", "input_type": "email", "name_attr": "email", "id_attr": "email", "label_text": "Email", "section_text": "About you", "checked": null, "visible": true}, {"control_id": "phone", "dom_selector": "#phone", "tag": "input", "input_type": "text", "name_attr": "phone", "id_attr": "phone", "label_text": "Mobile phone", "section_text": "About you", "checked": null, "visible": true}, {"control_id": "ctrl_9", "dom_selector": "body > div > main > section:nth-of-type(2) > button", "tag": "button", "label_text": "Continue", "section_text": "About you", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Wrenfield Mutual | Condo insurance quote"} +FORM_TX_DEMO {"portal": "wrenfield", "step": 17, "why": "before fill selector='section[data-step=\"2\"] >> internal:label=\"Last name\"s'>", "frame_url": "http://127.0.0.1:44867/condo/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "body > div > nav > ol > li:nth-of-type(1) > button", "tag": "button", "label_text": "1. Your unit", "checked": null, "visible": true, "row_text": "1. Your unit"}, {"control_id": "ctrl_1", "dom_selector": "body > div > nav > ol > li:nth-of-type(2) > button", "tag": "button", "label_text": "2. About you", "checked": null, "visible": true, "row_text": "2. About you"}, {"control_id": "ctrl_2", "dom_selector": "body > div > nav > ol > li:nth-of-type(3) > button", "tag": "button", "label_text": "3. Coverage", "checked": null, "disabled": true, "visible": true, "row_text": "3. Coverage"}, {"control_id": "ctrl_3", "dom_selector": "body > div > nav > ol > li:nth-of-type(4) > button", "tag": "button", "label_text": "4. Review", "checked": null, "disabled": true, "visible": true, "row_text": "4. Review"}, {"control_id": "first_name", "dom_selector": "#first_name", "tag": "input", "input_type": "text", "name_attr": "first_name", "id_attr": "first_name", "label_text": "First name", "section_text": "About you", "current_value": "Maren", "checked": null, "visible": true, "row_text": "First name"}, {"control_id": "last_name", "dom_selector": "#last_name", "tag": "input", "input_type": "text", "name_attr": "last_name", "id_attr": "last_name", "label_text": "Last name", "section_text": "About you", "checked": null, "visible": true, "row_text": "Last name"}, {"control_id": "dob", "dom_selector": "#dob", "tag": "input", "input_type": "text", "name_attr": "dob", "id_attr": "dob", "label_text": "Date of birth", "section_text": "About you", "checked": null, "visible": true}, {"control_id": "email", "dom_selector": "#email", "tag": "input", "input_type": "email", "name_attr": "email", "id_attr": "email", "label_text": "Email", "section_text": "About you", "checked": null, "visible": true}, {"control_id": "phone", "dom_selector": "#phone", "tag": "input", "input_type": "text", "name_attr": "phone", "id_attr": "phone", "label_text": "Mobile phone", "section_text": "About you", "checked": null, "visible": true}, {"control_id": "ctrl_9", "dom_selector": "body > div > main > section:nth-of-type(2) > button", "tag": "button", "label_text": "Continue", "section_text": "About you", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Wrenfield Mutual | Condo insurance quote"} +FORM_TX_DEMO {"portal": "wrenfield", "step": 18, "why": "before fill selector='section[data-step=\"2\"] >> internal:label=\"Date of birth\"s'>", "frame_url": "http://127.0.0.1:44867/condo/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "body > div > nav > ol > li:nth-of-type(1) > button", "tag": "button", "label_text": "1. Your unit", "checked": null, "visible": true, "row_text": "1. Your unit"}, {"control_id": "ctrl_1", "dom_selector": "body > div > nav > ol > li:nth-of-type(2) > button", "tag": "button", "label_text": "2. About you", "checked": null, "visible": true, "row_text": "2. About you"}, {"control_id": "ctrl_2", "dom_selector": "body > div > nav > ol > li:nth-of-type(3) > button", "tag": "button", "label_text": "3. Coverage", "checked": null, "disabled": true, "visible": true, "row_text": "3. Coverage"}, {"control_id": "ctrl_3", "dom_selector": "body > div > nav > ol > li:nth-of-type(4) > button", "tag": "button", "label_text": "4. Review", "checked": null, "disabled": true, "visible": true, "row_text": "4. Review"}, {"control_id": "first_name", "dom_selector": "#first_name", "tag": "input", "input_type": "text", "name_attr": "first_name", "id_attr": "first_name", "label_text": "First name", "section_text": "About you", "current_value": "Maren", "checked": null, "visible": true, "row_text": "First name"}, {"control_id": "last_name", "dom_selector": "#last_name", "tag": "input", "input_type": "text", "name_attr": "last_name", "id_attr": "last_name", "label_text": "Last name", "section_text": "About you", "current_value": "Olsgaard", "checked": null, "visible": true, "row_text": "Last name"}, {"control_id": "dob", "dom_selector": "#dob", "tag": "input", "input_type": "text", "name_attr": "dob", "id_attr": "dob", "label_text": "Date of birth", "section_text": "About you", "checked": null, "visible": true}, {"control_id": "email", "dom_selector": "#email", "tag": "input", "input_type": "email", "name_attr": "email", "id_attr": "email", "label_text": "Email", "section_text": "About you", "checked": null, "visible": true}, {"control_id": "phone", "dom_selector": "#phone", "tag": "input", "input_type": "text", "name_attr": "phone", "id_attr": "phone", "label_text": "Mobile phone", "section_text": "About you", "checked": null, "visible": true}, {"control_id": "ctrl_9", "dom_selector": "body > div > main > section:nth-of-type(2) > button", "tag": "button", "label_text": "Continue", "section_text": "About you", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Wrenfield Mutual | Condo insurance quote"} +FORM_TX_DEMO {"portal": "wrenfield", "step": 19, "why": "before fill selector='section[data-step=\"2\"] >> internal:label=\"Email\"s'>", "frame_url": "http://127.0.0.1:44867/condo/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "body > div > nav > ol > li:nth-of-type(1) > button", "tag": "button", "label_text": "1. Your unit", "checked": null, "visible": true, "row_text": "1. Your unit"}, {"control_id": "ctrl_1", "dom_selector": "body > div > nav > ol > li:nth-of-type(2) > button", "tag": "button", "label_text": "2. About you", "checked": null, "visible": true, "row_text": "2. About you"}, {"control_id": "ctrl_2", "dom_selector": "body > div > nav > ol > li:nth-of-type(3) > button", "tag": "button", "label_text": "3. Coverage", "checked": null, "disabled": true, "visible": true, "row_text": "3. Coverage"}, {"control_id": "ctrl_3", "dom_selector": "body > div > nav > ol > li:nth-of-type(4) > button", "tag": "button", "label_text": "4. Review", "checked": null, "disabled": true, "visible": true, "row_text": "4. Review"}, {"control_id": "first_name", "dom_selector": "#first_name", "tag": "input", "input_type": "text", "name_attr": "first_name", "id_attr": "first_name", "label_text": "First name", "section_text": "About you", "current_value": "Maren", "checked": null, "visible": true, "row_text": "First name"}, {"control_id": "last_name", "dom_selector": "#last_name", "tag": "input", "input_type": "text", "name_attr": "last_name", "id_attr": "last_name", "label_text": "Last name", "section_text": "About you", "current_value": "Olsgaard", "checked": null, "visible": true, "row_text": "Last name"}, {"control_id": "dob", "dom_selector": "#dob", "tag": "input", "input_type": "text", "name_attr": "dob", "id_attr": "dob", "label_text": "Date of birth", "section_text": "About you", "current_value": "04/12/1987", "checked": null, "visible": true}, {"control_id": "email", "dom_selector": "#email", "tag": "input", "input_type": "email", "name_attr": "email", "id_attr": "email", "label_text": "Email", "section_text": "About you", "checked": null, "visible": true}, {"control_id": "phone", "dom_selector": "#phone", "tag": "input", "input_type": "text", "name_attr": "phone", "id_attr": "phone", "label_text": "Mobile phone", "section_text": "About you", "checked": null, "visible": true}, {"control_id": "ctrl_9", "dom_selector": "body > div > main > section:nth-of-type(2) > button", "tag": "button", "label_text": "Continue", "section_text": "About you", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Wrenfield Mutual | Condo insurance quote"} +FORM_TX_DEMO {"portal": "wrenfield", "step": 20, "why": "before fill selector='section[data-step=\"2\"] >> internal:label=\"Mobile phone\"s'>", "frame_url": "http://127.0.0.1:44867/condo/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "body > div > nav > ol > li:nth-of-type(1) > button", "tag": "button", "label_text": "1. Your unit", "checked": null, "visible": true, "row_text": "1. Your unit"}, {"control_id": "ctrl_1", "dom_selector": "body > div > nav > ol > li:nth-of-type(2) > button", "tag": "button", "label_text": "2. About you", "checked": null, "visible": true, "row_text": "2. About you"}, {"control_id": "ctrl_2", "dom_selector": "body > div > nav > ol > li:nth-of-type(3) > button", "tag": "button", "label_text": "3. Coverage", "checked": null, "disabled": true, "visible": true, "row_text": "3. Coverage"}, {"control_id": "ctrl_3", "dom_selector": "body > div > nav > ol > li:nth-of-type(4) > button", "tag": "button", "label_text": "4. Review", "checked": null, "disabled": true, "visible": true, "row_text": "4. Review"}, {"control_id": "first_name", "dom_selector": "#first_name", "tag": "input", "input_type": "text", "name_attr": "first_name", "id_attr": "first_name", "label_text": "First name", "section_text": "About you", "current_value": "Maren", "checked": null, "visible": true, "row_text": "First name"}, {"control_id": "last_name", "dom_selector": "#last_name", "tag": "input", "input_type": "text", "name_attr": "last_name", "id_attr": "last_name", "label_text": "Last name", "section_text": "About you", "current_value": "Olsgaard", "checked": null, "visible": true, "row_text": "Last name"}, {"control_id": "dob", "dom_selector": "#dob", "tag": "input", "input_type": "text", "name_attr": "dob", "id_attr": "dob", "label_text": "Date of birth", "section_text": "About you", "current_value": "04/12/1987", "checked": null, "visible": true}, {"control_id": "email", "dom_selector": "#email", "tag": "input", "input_type": "email", "name_attr": "email", "id_attr": "email", "label_text": "Email", "section_text": "About you", "current_value": "maren.olsgaard@example.test", "checked": null, "visible": true}, {"control_id": "phone", "dom_selector": "#phone", "tag": "input", "input_type": "text", "name_attr": "phone", "id_attr": "phone", "label_text": "Mobile phone", "section_text": "About you", "checked": null, "visible": true}, {"control_id": "ctrl_9", "dom_selector": "body > div > main > section:nth-of-type(2) > button", "tag": "button", "label_text": "Continue", "section_text": "About you", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Wrenfield Mutual | Condo insurance quote"} +FORM_TX_DEMO {"portal": "wrenfield", "step": 21, "why": "before click selector='section[data-step=\"2\"] >> [data-save=\"2\"]'>", "frame_url": "http://127.0.0.1:44867/condo/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "body > div > nav > ol > li:nth-of-type(1) > button", "tag": "button", "label_text": "1. Your unit", "checked": null, "visible": true, "row_text": "1. Your unit"}, {"control_id": "ctrl_1", "dom_selector": "body > div > nav > ol > li:nth-of-type(2) > button", "tag": "button", "label_text": "2. About you", "checked": null, "visible": true, "row_text": "2. About you"}, {"control_id": "ctrl_2", "dom_selector": "body > div > nav > ol > li:nth-of-type(3) > button", "tag": "button", "label_text": "3. Coverage", "checked": null, "disabled": true, "visible": true, "row_text": "3. Coverage"}, {"control_id": "ctrl_3", "dom_selector": "body > div > nav > ol > li:nth-of-type(4) > button", "tag": "button", "label_text": "4. Review", "checked": null, "disabled": true, "visible": true, "row_text": "4. Review"}, {"control_id": "first_name", "dom_selector": "#first_name", "tag": "input", "input_type": "text", "name_attr": "first_name", "id_attr": "first_name", "label_text": "First name", "section_text": "About you", "current_value": "Maren", "checked": null, "visible": true, "row_text": "First name"}, {"control_id": "last_name", "dom_selector": "#last_name", "tag": "input", "input_type": "text", "name_attr": "last_name", "id_attr": "last_name", "label_text": "Last name", "section_text": "About you", "current_value": "Olsgaard", "checked": null, "visible": true, "row_text": "Last name"}, {"control_id": "dob", "dom_selector": "#dob", "tag": "input", "input_type": "text", "name_attr": "dob", "id_attr": "dob", "label_text": "Date of birth", "section_text": "About you", "current_value": "04/12/1987", "checked": null, "visible": true}, {"control_id": "email", "dom_selector": "#email", "tag": "input", "input_type": "email", "name_attr": "email", "id_attr": "email", "label_text": "Email", "section_text": "About you", "current_value": "maren.olsgaard@example.test", "checked": null, "visible": true}, {"control_id": "phone", "dom_selector": "#phone", "tag": "input", "input_type": "text", "name_attr": "phone", "id_attr": "phone", "label_text": "Mobile phone", "section_text": "About you", "current_value": "503-555-0142", "checked": null, "visible": true}, {"control_id": "ctrl_9", "dom_selector": "body > div > main > section:nth-of-type(2) > button", "tag": "button", "label_text": "Continue", "section_text": "About you", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Wrenfield Mutual | Condo insurance quote"} +FORM_TX_DEMO {"portal": "wrenfield", "step": 22, "why": "before fill selector='section[data-step=\"3\"] >> internal:label=\"Unit improvements and betterments (Coverage A)\"s'>", "frame_url": "http://127.0.0.1:44867/condo/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "body > div > nav > ol > li:nth-of-type(1) > button", "tag": "button", "label_text": "1. Your unit", "checked": null, "visible": true, "row_text": "1. Your unit"}, {"control_id": "ctrl_1", "dom_selector": "body > div > nav > ol > li:nth-of-type(2) > button", "tag": "button", "label_text": "2. About you", "checked": null, "visible": true, "row_text": "2. About you"}, {"control_id": "ctrl_2", "dom_selector": "body > div > nav > ol > li:nth-of-type(3) > button", "tag": "button", "label_text": "3. Coverage", "checked": null, "visible": true, "row_text": "3. Coverage"}, {"control_id": "ctrl_3", "dom_selector": "body > div > nav > ol > li:nth-of-type(4) > button", "tag": "button", "label_text": "4. Review", "checked": null, "disabled": true, "visible": true, "row_text": "4. Review"}, {"control_id": "improvements", "dom_selector": "#improvements", "tag": "input", "input_type": "text", "name_attr": "improvements", "id_attr": "improvements", "label_text": "Unit improvements and betterments (Coverage A)", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "Estimate it"}, {"control_id": "open-est", "dom_selector": "#open-est", "tag": "button", "id_attr": "open-est", "label_text": "Estimate it", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "Estimate it"}, {"control_id": "personal_property", "dom_selector": "#personal_property", "tag": "input", "input_type": "text", "name_attr": "personal_property", "id_attr": "personal_property", "label_text": "Personal property (Coverage C)", "section_text": "Coverage", "checked": null, "visible": true}, {"control_id": "loss_assessment", "dom_selector": "#loss_assessment", "tag": "select", "name_attr": "loss_assessment", "id_attr": "loss_assessment", "label_text": "Loss assessment", "section_text": "Coverage", "current_value": "Select\u2026", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "$1,000", "label": "$1,000"}, {"value": "$10,000", "label": "$10,000"}, {"value": "$25,000", "label": "$25,000"}, {"value": "$50,000", "label": "$50,000"}], "row_text": "Loss assessmentSelect\u2026$1,000$10,000$25,000$50,000"}, {"control_id": "water_backup", "dom_selector": "#water_backup", "tag": "select", "name_attr": "water_backup", "id_attr": "water_backup", "label_text": "Water and sewer backup", "section_text": "Coverage", "current_value": "Not included", "checked": null, "visible": true, "options": [{"value": "Not included", "label": "Not included"}, {"value": "$5,000", "label": "$5,000"}, {"value": "$10,000", "label": "$10,000"}, {"value": "$25,000", "label": "$25,000"}], "row_text": "Water and sewer backupNot included$5,000$10,000$25,000"}, {"control_id": "deductible", "dom_selector": "input[name=\"deductible\"][value=\"500\"]", "tag": "input", "input_type": "radio", "name_attr": "deductible", "label_text": "$500", "section_text": "Deductible", "checked": false, "visible": true, "options": [{"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}], "radio_value": "500", "radio_group": "name:deductible@doc", "group_label": "Deductible", "row_text": "Deductible $500 $1,000 $2,500"}, {"control_id": "deductible#2", "dom_selector": "input[name=\"deductible\"][value=\"1000\"]", "tag": "input", "input_type": "radio", "name_attr": "deductible", "label_text": "$1,000", "section_text": "Deductible", "current_value": "1000", "checked": true, "visible": true, "options": [{"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}], "radio_value": "1000", "radio_group": "name:deductible@doc", "group_label": "Deductible", "row_text": "Deductible $500 $1,000 $2,500"}, {"control_id": "deductible#3", "dom_selector": "input[name=\"deductible\"][value=\"2500\"]", "tag": "input", "input_type": "radio", "name_attr": "deductible", "label_text": "$2,500", "section_text": "Deductible", "checked": false, "visible": true, "options": [{"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}], "radio_value": "2500", "radio_group": "name:deductible@doc", "group_label": "Deductible", "row_text": "Deductible $500 $1,000 $2,500"}, {"control_id": "start_date", "dom_selector": "#start_date", "tag": "input", "input_type": "text", "name_attr": "start_date", "id_attr": "start_date", "label_text": "Policy start date", "section_text": "Coverage", "checked": null, "visible": true}, {"control_id": "ctrl_13", "dom_selector": "body > div > main > section:nth-of-type(3) > button", "tag": "button", "label_text": "Continue to review", "section_text": "Coverage", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Wrenfield Mutual | Condo insurance quote"} +FORM_TX_DEMO {"portal": "wrenfield", "step": 23, "why": "before fill selector='section[data-step=\"3\"] >> internal:label=\"Personal property (Coverage C)\"s'>", "frame_url": "http://127.0.0.1:44867/condo/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "body > div > nav > ol > li:nth-of-type(1) > button", "tag": "button", "label_text": "1. Your unit", "checked": null, "visible": true, "row_text": "1. Your unit"}, {"control_id": "ctrl_1", "dom_selector": "body > div > nav > ol > li:nth-of-type(2) > button", "tag": "button", "label_text": "2. About you", "checked": null, "visible": true, "row_text": "2. About you"}, {"control_id": "ctrl_2", "dom_selector": "body > div > nav > ol > li:nth-of-type(3) > button", "tag": "button", "label_text": "3. Coverage", "checked": null, "visible": true, "row_text": "3. Coverage"}, {"control_id": "ctrl_3", "dom_selector": "body > div > nav > ol > li:nth-of-type(4) > button", "tag": "button", "label_text": "4. Review", "checked": null, "disabled": true, "visible": true, "row_text": "4. Review"}, {"control_id": "improvements", "dom_selector": "#improvements", "tag": "input", "input_type": "text", "name_attr": "improvements", "id_attr": "improvements", "label_text": "Unit improvements and betterments (Coverage A)", "section_text": "Coverage", "current_value": "62000", "checked": null, "visible": true, "row_text": "Estimate it"}, {"control_id": "open-est", "dom_selector": "#open-est", "tag": "button", "id_attr": "open-est", "label_text": "Estimate it", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "Estimate it"}, {"control_id": "personal_property", "dom_selector": "#personal_property", "tag": "input", "input_type": "text", "name_attr": "personal_property", "id_attr": "personal_property", "label_text": "Personal property (Coverage C)", "section_text": "Coverage", "checked": null, "visible": true}, {"control_id": "loss_assessment", "dom_selector": "#loss_assessment", "tag": "select", "name_attr": "loss_assessment", "id_attr": "loss_assessment", "label_text": "Loss assessment", "section_text": "Coverage", "current_value": "Select\u2026", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "$1,000", "label": "$1,000"}, {"value": "$10,000", "label": "$10,000"}, {"value": "$25,000", "label": "$25,000"}, {"value": "$50,000", "label": "$50,000"}], "row_text": "Loss assessmentSelect\u2026$1,000$10,000$25,000$50,000"}, {"control_id": "water_backup", "dom_selector": "#water_backup", "tag": "select", "name_attr": "water_backup", "id_attr": "water_backup", "label_text": "Water and sewer backup", "section_text": "Coverage", "current_value": "Not included", "checked": null, "visible": true, "options": [{"value": "Not included", "label": "Not included"}, {"value": "$5,000", "label": "$5,000"}, {"value": "$10,000", "label": "$10,000"}, {"value": "$25,000", "label": "$25,000"}], "row_text": "Water and sewer backupNot included$5,000$10,000$25,000"}, {"control_id": "deductible", "dom_selector": "input[name=\"deductible\"][value=\"500\"]", "tag": "input", "input_type": "radio", "name_attr": "deductible", "label_text": "$500", "section_text": "Deductible", "checked": false, "visible": true, "options": [{"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}], "radio_value": "500", "radio_group": "name:deductible@doc", "group_label": "Deductible", "row_text": "Deductible $500 $1,000 $2,500"}, {"control_id": "deductible#2", "dom_selector": "input[name=\"deductible\"][value=\"1000\"]", "tag": "input", "input_type": "radio", "name_attr": "deductible", "label_text": "$1,000", "section_text": "Deductible", "current_value": "1000", "checked": true, "visible": true, "options": [{"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}], "radio_value": "1000", "radio_group": "name:deductible@doc", "group_label": "Deductible", "row_text": "Deductible $500 $1,000 $2,500"}, {"control_id": "deductible#3", "dom_selector": "input[name=\"deductible\"][value=\"2500\"]", "tag": "input", "input_type": "radio", "name_attr": "deductible", "label_text": "$2,500", "section_text": "Deductible", "checked": false, "visible": true, "options": [{"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}], "radio_value": "2500", "radio_group": "name:deductible@doc", "group_label": "Deductible", "row_text": "Deductible $500 $1,000 $2,500"}, {"control_id": "start_date", "dom_selector": "#start_date", "tag": "input", "input_type": "text", "name_attr": "start_date", "id_attr": "start_date", "label_text": "Policy start date", "section_text": "Coverage", "checked": null, "visible": true}, {"control_id": "ctrl_13", "dom_selector": "body > div > main > section:nth-of-type(3) > button", "tag": "button", "label_text": "Continue to review", "section_text": "Coverage", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Wrenfield Mutual | Condo insurance quote"} +FORM_TX_DEMO {"portal": "wrenfield", "step": 24, "why": "before select_option selector='section[data-step=\"3\"] >> internal:label=\"Loss assessment\"s'>", "frame_url": "http://127.0.0.1:44867/condo/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "body > div > nav > ol > li:nth-of-type(1) > button", "tag": "button", "label_text": "1. Your unit", "checked": null, "visible": true, "row_text": "1. Your unit"}, {"control_id": "ctrl_1", "dom_selector": "body > div > nav > ol > li:nth-of-type(2) > button", "tag": "button", "label_text": "2. About you", "checked": null, "visible": true, "row_text": "2. About you"}, {"control_id": "ctrl_2", "dom_selector": "body > div > nav > ol > li:nth-of-type(3) > button", "tag": "button", "label_text": "3. Coverage", "checked": null, "visible": true, "row_text": "3. Coverage"}, {"control_id": "ctrl_3", "dom_selector": "body > div > nav > ol > li:nth-of-type(4) > button", "tag": "button", "label_text": "4. Review", "checked": null, "disabled": true, "visible": true, "row_text": "4. Review"}, {"control_id": "improvements", "dom_selector": "#improvements", "tag": "input", "input_type": "text", "name_attr": "improvements", "id_attr": "improvements", "label_text": "Unit improvements and betterments (Coverage A)", "section_text": "Coverage", "current_value": "62000", "checked": null, "visible": true, "row_text": "Estimate it"}, {"control_id": "open-est", "dom_selector": "#open-est", "tag": "button", "id_attr": "open-est", "label_text": "Estimate it", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "Estimate it"}, {"control_id": "personal_property", "dom_selector": "#personal_property", "tag": "input", "input_type": "text", "name_attr": "personal_property", "id_attr": "personal_property", "label_text": "Personal property (Coverage C)", "section_text": "Coverage", "current_value": "45000", "checked": null, "visible": true}, {"control_id": "loss_assessment", "dom_selector": "#loss_assessment", "tag": "select", "name_attr": "loss_assessment", "id_attr": "loss_assessment", "label_text": "Loss assessment", "section_text": "Coverage", "current_value": "Select\u2026", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "$1,000", "label": "$1,000"}, {"value": "$10,000", "label": "$10,000"}, {"value": "$25,000", "label": "$25,000"}, {"value": "$50,000", "label": "$50,000"}], "row_text": "Loss assessmentSelect\u2026$1,000$10,000$25,000$50,000"}, {"control_id": "water_backup", "dom_selector": "#water_backup", "tag": "select", "name_attr": "water_backup", "id_attr": "water_backup", "label_text": "Water and sewer backup", "section_text": "Coverage", "current_value": "Not included", "checked": null, "visible": true, "options": [{"value": "Not included", "label": "Not included"}, {"value": "$5,000", "label": "$5,000"}, {"value": "$10,000", "label": "$10,000"}, {"value": "$25,000", "label": "$25,000"}], "row_text": "Water and sewer backupNot included$5,000$10,000$25,000"}, {"control_id": "deductible", "dom_selector": "input[name=\"deductible\"][value=\"500\"]", "tag": "input", "input_type": "radio", "name_attr": "deductible", "label_text": "$500", "section_text": "Deductible", "checked": false, "visible": true, "options": [{"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}], "radio_value": "500", "radio_group": "name:deductible@doc", "group_label": "Deductible", "row_text": "Deductible $500 $1,000 $2,500"}, {"control_id": "deductible#2", "dom_selector": "input[name=\"deductible\"][value=\"1000\"]", "tag": "input", "input_type": "radio", "name_attr": "deductible", "label_text": "$1,000", "section_text": "Deductible", "current_value": "1000", "checked": true, "visible": true, "options": [{"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}], "radio_value": "1000", "radio_group": "name:deductible@doc", "group_label": "Deductible", "row_text": "Deductible $500 $1,000 $2,500"}, {"control_id": "deductible#3", "dom_selector": "input[name=\"deductible\"][value=\"2500\"]", "tag": "input", "input_type": "radio", "name_attr": "deductible", "label_text": "$2,500", "section_text": "Deductible", "checked": false, "visible": true, "options": [{"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}], "radio_value": "2500", "radio_group": "name:deductible@doc", "group_label": "Deductible", "row_text": "Deductible $500 $1,000 $2,500"}, {"control_id": "start_date", "dom_selector": "#start_date", "tag": "input", "input_type": "text", "name_attr": "start_date", "id_attr": "start_date", "label_text": "Policy start date", "section_text": "Coverage", "checked": null, "visible": true}, {"control_id": "ctrl_13", "dom_selector": "body > div > main > section:nth-of-type(3) > button", "tag": "button", "label_text": "Continue to review", "section_text": "Coverage", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Wrenfield Mutual | Condo insurance quote"} +FORM_TX_DEMO {"portal": "wrenfield", "step": 25, "why": "before select_option selector='section[data-step=\"3\"] >> internal:label=\"Water and sewer backup\"s'>", "frame_url": "http://127.0.0.1:44867/condo/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "body > div > nav > ol > li:nth-of-type(1) > button", "tag": "button", "label_text": "1. Your unit", "checked": null, "visible": true, "row_text": "1. Your unit"}, {"control_id": "ctrl_1", "dom_selector": "body > div > nav > ol > li:nth-of-type(2) > button", "tag": "button", "label_text": "2. About you", "checked": null, "visible": true, "row_text": "2. About you"}, {"control_id": "ctrl_2", "dom_selector": "body > div > nav > ol > li:nth-of-type(3) > button", "tag": "button", "label_text": "3. Coverage", "checked": null, "visible": true, "row_text": "3. Coverage"}, {"control_id": "ctrl_3", "dom_selector": "body > div > nav > ol > li:nth-of-type(4) > button", "tag": "button", "label_text": "4. Review", "checked": null, "disabled": true, "visible": true, "row_text": "4. Review"}, {"control_id": "improvements", "dom_selector": "#improvements", "tag": "input", "input_type": "text", "name_attr": "improvements", "id_attr": "improvements", "label_text": "Unit improvements and betterments (Coverage A)", "section_text": "Coverage", "current_value": "62000", "checked": null, "visible": true, "row_text": "Estimate it"}, {"control_id": "open-est", "dom_selector": "#open-est", "tag": "button", "id_attr": "open-est", "label_text": "Estimate it", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "Estimate it"}, {"control_id": "personal_property", "dom_selector": "#personal_property", "tag": "input", "input_type": "text", "name_attr": "personal_property", "id_attr": "personal_property", "label_text": "Personal property (Coverage C)", "section_text": "Coverage", "current_value": "45000", "checked": null, "visible": true}, {"control_id": "loss_assessment", "dom_selector": "#loss_assessment", "tag": "select", "name_attr": "loss_assessment", "id_attr": "loss_assessment", "label_text": "Loss assessment", "section_text": "Coverage", "current_value": "$10,000", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "$1,000", "label": "$1,000"}, {"value": "$10,000", "label": "$10,000"}, {"value": "$25,000", "label": "$25,000"}, {"value": "$50,000", "label": "$50,000"}], "row_text": "Loss assessmentSelect\u2026$1,000$10,000$25,000$50,000"}, {"control_id": "water_backup", "dom_selector": "#water_backup", "tag": "select", "name_attr": "water_backup", "id_attr": "water_backup", "label_text": "Water and sewer backup", "section_text": "Coverage", "current_value": "Not included", "checked": null, "visible": true, "options": [{"value": "Not included", "label": "Not included"}, {"value": "$5,000", "label": "$5,000"}, {"value": "$10,000", "label": "$10,000"}, {"value": "$25,000", "label": "$25,000"}], "row_text": "Water and sewer backupNot included$5,000$10,000$25,000"}, {"control_id": "deductible", "dom_selector": "input[name=\"deductible\"][value=\"500\"]", "tag": "input", "input_type": "radio", "name_attr": "deductible", "label_text": "$500", "section_text": "Deductible", "checked": false, "visible": true, "options": [{"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}], "radio_value": "500", "radio_group": "name:deductible@doc", "group_label": "Deductible", "row_text": "Deductible $500 $1,000 $2,500"}, {"control_id": "deductible#2", "dom_selector": "input[name=\"deductible\"][value=\"1000\"]", "tag": "input", "input_type": "radio", "name_attr": "deductible", "label_text": "$1,000", "section_text": "Deductible", "current_value": "1000", "checked": true, "visible": true, "options": [{"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}], "radio_value": "1000", "radio_group": "name:deductible@doc", "group_label": "Deductible", "row_text": "Deductible $500 $1,000 $2,500"}, {"control_id": "deductible#3", "dom_selector": "input[name=\"deductible\"][value=\"2500\"]", "tag": "input", "input_type": "radio", "name_attr": "deductible", "label_text": "$2,500", "section_text": "Deductible", "checked": false, "visible": true, "options": [{"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}], "radio_value": "2500", "radio_group": "name:deductible@doc", "group_label": "Deductible", "row_text": "Deductible $500 $1,000 $2,500"}, {"control_id": "start_date", "dom_selector": "#start_date", "tag": "input", "input_type": "text", "name_attr": "start_date", "id_attr": "start_date", "label_text": "Policy start date", "section_text": "Coverage", "checked": null, "visible": true}, {"control_id": "ctrl_13", "dom_selector": "body > div > main > section:nth-of-type(3) > button", "tag": "button", "label_text": "Continue to review", "section_text": "Coverage", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Wrenfield Mutual | Condo insurance quote"} +FORM_TX_DEMO {"portal": "wrenfield", "step": 26, "why": "before check selector='section[data-step=\"3\"] >> input[name=deductible][value=\"1000\"]'>", "frame_url": "http://127.0.0.1:44867/condo/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "body > div > nav > ol > li:nth-of-type(1) > button", "tag": "button", "label_text": "1. Your unit", "checked": null, "visible": true, "row_text": "1. Your unit"}, {"control_id": "ctrl_1", "dom_selector": "body > div > nav > ol > li:nth-of-type(2) > button", "tag": "button", "label_text": "2. About you", "checked": null, "visible": true, "row_text": "2. About you"}, {"control_id": "ctrl_2", "dom_selector": "body > div > nav > ol > li:nth-of-type(3) > button", "tag": "button", "label_text": "3. Coverage", "checked": null, "visible": true, "row_text": "3. Coverage"}, {"control_id": "ctrl_3", "dom_selector": "body > div > nav > ol > li:nth-of-type(4) > button", "tag": "button", "label_text": "4. Review", "checked": null, "disabled": true, "visible": true, "row_text": "4. Review"}, {"control_id": "improvements", "dom_selector": "#improvements", "tag": "input", "input_type": "text", "name_attr": "improvements", "id_attr": "improvements", "label_text": "Unit improvements and betterments (Coverage A)", "section_text": "Coverage", "current_value": "62000", "checked": null, "visible": true, "row_text": "Estimate it"}, {"control_id": "open-est", "dom_selector": "#open-est", "tag": "button", "id_attr": "open-est", "label_text": "Estimate it", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "Estimate it"}, {"control_id": "personal_property", "dom_selector": "#personal_property", "tag": "input", "input_type": "text", "name_attr": "personal_property", "id_attr": "personal_property", "label_text": "Personal property (Coverage C)", "section_text": "Coverage", "current_value": "45000", "checked": null, "visible": true}, {"control_id": "loss_assessment", "dom_selector": "#loss_assessment", "tag": "select", "name_attr": "loss_assessment", "id_attr": "loss_assessment", "label_text": "Loss assessment", "section_text": "Coverage", "current_value": "$10,000", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "$1,000", "label": "$1,000"}, {"value": "$10,000", "label": "$10,000"}, {"value": "$25,000", "label": "$25,000"}, {"value": "$50,000", "label": "$50,000"}], "row_text": "Loss assessmentSelect\u2026$1,000$10,000$25,000$50,000"}, {"control_id": "water_backup", "dom_selector": "#water_backup", "tag": "select", "name_attr": "water_backup", "id_attr": "water_backup", "label_text": "Water and sewer backup", "section_text": "Coverage", "current_value": "Not included", "checked": null, "visible": true, "options": [{"value": "Not included", "label": "Not included"}, {"value": "$5,000", "label": "$5,000"}, {"value": "$10,000", "label": "$10,000"}, {"value": "$25,000", "label": "$25,000"}], "row_text": "Water and sewer backupNot included$5,000$10,000$25,000"}, {"control_id": "deductible", "dom_selector": "input[name=\"deductible\"][value=\"500\"]", "tag": "input", "input_type": "radio", "name_attr": "deductible", "label_text": "$500", "section_text": "Deductible", "checked": false, "visible": true, "options": [{"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}], "radio_value": "500", "radio_group": "name:deductible@doc", "group_label": "Deductible", "row_text": "Deductible $500 $1,000 $2,500"}, {"control_id": "deductible#2", "dom_selector": "input[name=\"deductible\"][value=\"1000\"]", "tag": "input", "input_type": "radio", "name_attr": "deductible", "label_text": "$1,000", "section_text": "Deductible", "current_value": "1000", "checked": true, "visible": true, "options": [{"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}], "radio_value": "1000", "radio_group": "name:deductible@doc", "group_label": "Deductible", "row_text": "Deductible $500 $1,000 $2,500"}, {"control_id": "deductible#3", "dom_selector": "input[name=\"deductible\"][value=\"2500\"]", "tag": "input", "input_type": "radio", "name_attr": "deductible", "label_text": "$2,500", "section_text": "Deductible", "checked": false, "visible": true, "options": [{"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}], "radio_value": "2500", "radio_group": "name:deductible@doc", "group_label": "Deductible", "row_text": "Deductible $500 $1,000 $2,500"}, {"control_id": "start_date", "dom_selector": "#start_date", "tag": "input", "input_type": "text", "name_attr": "start_date", "id_attr": "start_date", "label_text": "Policy start date", "section_text": "Coverage", "checked": null, "visible": true}, {"control_id": "ctrl_13", "dom_selector": "body > div > main > section:nth-of-type(3) > button", "tag": "button", "label_text": "Continue to review", "section_text": "Coverage", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Wrenfield Mutual | Condo insurance quote"} +FORM_TX_DEMO {"portal": "wrenfield", "step": 27, "why": "before fill selector='section[data-step=\"3\"] >> internal:label=\"Policy start date\"s'>", "frame_url": "http://127.0.0.1:44867/condo/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "body > div > nav > ol > li:nth-of-type(1) > button", "tag": "button", "label_text": "1. Your unit", "checked": null, "visible": true, "row_text": "1. Your unit"}, {"control_id": "ctrl_1", "dom_selector": "body > div > nav > ol > li:nth-of-type(2) > button", "tag": "button", "label_text": "2. About you", "checked": null, "visible": true, "row_text": "2. About you"}, {"control_id": "ctrl_2", "dom_selector": "body > div > nav > ol > li:nth-of-type(3) > button", "tag": "button", "label_text": "3. Coverage", "checked": null, "visible": true, "row_text": "3. Coverage"}, {"control_id": "ctrl_3", "dom_selector": "body > div > nav > ol > li:nth-of-type(4) > button", "tag": "button", "label_text": "4. Review", "checked": null, "disabled": true, "visible": true, "row_text": "4. Review"}, {"control_id": "improvements", "dom_selector": "#improvements", "tag": "input", "input_type": "text", "name_attr": "improvements", "id_attr": "improvements", "label_text": "Unit improvements and betterments (Coverage A)", "section_text": "Coverage", "current_value": "62000", "checked": null, "visible": true, "row_text": "Estimate it"}, {"control_id": "open-est", "dom_selector": "#open-est", "tag": "button", "id_attr": "open-est", "label_text": "Estimate it", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "Estimate it"}, {"control_id": "personal_property", "dom_selector": "#personal_property", "tag": "input", "input_type": "text", "name_attr": "personal_property", "id_attr": "personal_property", "label_text": "Personal property (Coverage C)", "section_text": "Coverage", "current_value": "45000", "checked": null, "visible": true}, {"control_id": "loss_assessment", "dom_selector": "#loss_assessment", "tag": "select", "name_attr": "loss_assessment", "id_attr": "loss_assessment", "label_text": "Loss assessment", "section_text": "Coverage", "current_value": "$10,000", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "$1,000", "label": "$1,000"}, {"value": "$10,000", "label": "$10,000"}, {"value": "$25,000", "label": "$25,000"}, {"value": "$50,000", "label": "$50,000"}], "row_text": "Loss assessmentSelect\u2026$1,000$10,000$25,000$50,000"}, {"control_id": "water_backup", "dom_selector": "#water_backup", "tag": "select", "name_attr": "water_backup", "id_attr": "water_backup", "label_text": "Water and sewer backup", "section_text": "Coverage", "current_value": "Not included", "checked": null, "visible": true, "options": [{"value": "Not included", "label": "Not included"}, {"value": "$5,000", "label": "$5,000"}, {"value": "$10,000", "label": "$10,000"}, {"value": "$25,000", "label": "$25,000"}], "row_text": "Water and sewer backupNot included$5,000$10,000$25,000"}, {"control_id": "deductible", "dom_selector": "input[name=\"deductible\"][value=\"500\"]", "tag": "input", "input_type": "radio", "name_attr": "deductible", "label_text": "$500", "section_text": "Deductible", "checked": false, "visible": true, "options": [{"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}], "radio_value": "500", "radio_group": "name:deductible@doc", "group_label": "Deductible", "row_text": "Deductible $500 $1,000 $2,500"}, {"control_id": "deductible#2", "dom_selector": "input[name=\"deductible\"][value=\"1000\"]", "tag": "input", "input_type": "radio", "name_attr": "deductible", "label_text": "$1,000", "section_text": "Deductible", "current_value": "1000", "checked": true, "visible": true, "options": [{"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}], "radio_value": "1000", "radio_group": "name:deductible@doc", "group_label": "Deductible", "row_text": "Deductible $500 $1,000 $2,500"}, {"control_id": "deductible#3", "dom_selector": "input[name=\"deductible\"][value=\"2500\"]", "tag": "input", "input_type": "radio", "name_attr": "deductible", "label_text": "$2,500", "section_text": "Deductible", "checked": false, "visible": true, "options": [{"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}], "radio_value": "2500", "radio_group": "name:deductible@doc", "group_label": "Deductible", "row_text": "Deductible $500 $1,000 $2,500"}, {"control_id": "start_date", "dom_selector": "#start_date", "tag": "input", "input_type": "text", "name_attr": "start_date", "id_attr": "start_date", "label_text": "Policy start date", "section_text": "Coverage", "checked": null, "visible": true}, {"control_id": "ctrl_13", "dom_selector": "body > div > main > section:nth-of-type(3) > button", "tag": "button", "label_text": "Continue to review", "section_text": "Coverage", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Wrenfield Mutual | Condo insurance quote"} +FORM_TX_DEMO {"portal": "wrenfield", "step": 28, "why": "before click selector='section[data-step=\"3\"] >> [data-save=\"3\"]'>", "frame_url": "http://127.0.0.1:44867/condo/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "body > div > nav > ol > li:nth-of-type(1) > button", "tag": "button", "label_text": "1. Your unit", "checked": null, "visible": true, "row_text": "1. Your unit"}, {"control_id": "ctrl_1", "dom_selector": "body > div > nav > ol > li:nth-of-type(2) > button", "tag": "button", "label_text": "2. About you", "checked": null, "visible": true, "row_text": "2. About you"}, {"control_id": "ctrl_2", "dom_selector": "body > div > nav > ol > li:nth-of-type(3) > button", "tag": "button", "label_text": "3. Coverage", "checked": null, "visible": true, "row_text": "3. Coverage"}, {"control_id": "ctrl_3", "dom_selector": "body > div > nav > ol > li:nth-of-type(4) > button", "tag": "button", "label_text": "4. Review", "checked": null, "disabled": true, "visible": true, "row_text": "4. Review"}, {"control_id": "improvements", "dom_selector": "#improvements", "tag": "input", "input_type": "text", "name_attr": "improvements", "id_attr": "improvements", "label_text": "Unit improvements and betterments (Coverage A)", "section_text": "Coverage", "current_value": "62000", "checked": null, "visible": true, "row_text": "Estimate it"}, {"control_id": "open-est", "dom_selector": "#open-est", "tag": "button", "id_attr": "open-est", "label_text": "Estimate it", "section_text": "Coverage", "checked": null, "visible": true, "row_text": "Estimate it"}, {"control_id": "personal_property", "dom_selector": "#personal_property", "tag": "input", "input_type": "text", "name_attr": "personal_property", "id_attr": "personal_property", "label_text": "Personal property (Coverage C)", "section_text": "Coverage", "current_value": "45000", "checked": null, "visible": true}, {"control_id": "loss_assessment", "dom_selector": "#loss_assessment", "tag": "select", "name_attr": "loss_assessment", "id_attr": "loss_assessment", "label_text": "Loss assessment", "section_text": "Coverage", "current_value": "$10,000", "checked": null, "visible": true, "options": [{"value": "", "label": "Select\u2026"}, {"value": "$1,000", "label": "$1,000"}, {"value": "$10,000", "label": "$10,000"}, {"value": "$25,000", "label": "$25,000"}, {"value": "$50,000", "label": "$50,000"}], "row_text": "Loss assessmentSelect\u2026$1,000$10,000$25,000$50,000"}, {"control_id": "water_backup", "dom_selector": "#water_backup", "tag": "select", "name_attr": "water_backup", "id_attr": "water_backup", "label_text": "Water and sewer backup", "section_text": "Coverage", "current_value": "Not included", "checked": null, "visible": true, "options": [{"value": "Not included", "label": "Not included"}, {"value": "$5,000", "label": "$5,000"}, {"value": "$10,000", "label": "$10,000"}, {"value": "$25,000", "label": "$25,000"}], "row_text": "Water and sewer backupNot included$5,000$10,000$25,000"}, {"control_id": "deductible", "dom_selector": "input[name=\"deductible\"][value=\"500\"]", "tag": "input", "input_type": "radio", "name_attr": "deductible", "label_text": "$500", "section_text": "Deductible", "checked": false, "visible": true, "options": [{"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}], "radio_value": "500", "radio_group": "name:deductible@doc", "group_label": "Deductible", "row_text": "Deductible $500 $1,000 $2,500"}, {"control_id": "deductible#2", "dom_selector": "input[name=\"deductible\"][value=\"1000\"]", "tag": "input", "input_type": "radio", "name_attr": "deductible", "label_text": "$1,000", "section_text": "Deductible", "current_value": "1000", "checked": true, "visible": true, "options": [{"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}], "radio_value": "1000", "radio_group": "name:deductible@doc", "group_label": "Deductible", "row_text": "Deductible $500 $1,000 $2,500"}, {"control_id": "deductible#3", "dom_selector": "input[name=\"deductible\"][value=\"2500\"]", "tag": "input", "input_type": "radio", "name_attr": "deductible", "label_text": "$2,500", "section_text": "Deductible", "checked": false, "visible": true, "options": [{"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}], "radio_value": "2500", "radio_group": "name:deductible@doc", "group_label": "Deductible", "row_text": "Deductible $500 $1,000 $2,500"}, {"control_id": "start_date", "dom_selector": "#start_date", "tag": "input", "input_type": "text", "name_attr": "start_date", "id_attr": "start_date", "label_text": "Policy start date", "section_text": "Coverage", "current_value": "12/15/2026", "checked": null, "visible": true}, {"control_id": "ctrl_13", "dom_selector": "body > div > main > section:nth-of-type(3) > button", "tag": "button", "label_text": "Continue to review", "section_text": "Coverage", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Wrenfield Mutual | Condo insurance quote"} +FORM_TX_DEMO {"portal": "wrenfield", "step": 29, "why": "before check selector='#confirm'>", "frame_url": "http://127.0.0.1:44867/condo/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "body > div > nav > ol > li:nth-of-type(1) > button", "tag": "button", "label_text": "1. Your unit", "checked": null, "visible": true, "row_text": "1. Your unit"}, {"control_id": "ctrl_1", "dom_selector": "body > div > nav > ol > li:nth-of-type(2) > button", "tag": "button", "label_text": "2. About you", "checked": null, "visible": true, "row_text": "2. About you"}, {"control_id": "ctrl_2", "dom_selector": "body > div > nav > ol > li:nth-of-type(3) > button", "tag": "button", "label_text": "3. Coverage", "checked": null, "visible": true, "row_text": "3. Coverage"}, {"control_id": "ctrl_3", "dom_selector": "body > div > nav > ol > li:nth-of-type(4) > button", "tag": "button", "label_text": "4. Review", "checked": null, "visible": true, "row_text": "4. Review"}, {"control_id": "ctrl_4", "dom_selector": "#review > h3:nth-of-type(1) > button", "tag": "button", "label_text": "Edit", "section_text": "Your unit Edit", "checked": null, "visible": true, "row_text": "Review your quote Check everything below before you get your quote. Your unit EditCondominium associationQuarry Bend Lofts Owners Association (Portland, OR)Unit street address2210 NW Quarry Bend AveUnit number3CCityPortlandStateORZIP code97210Year the building was built2008Floor the unit is on3How is the unit occupied?Owner-occupied (primary residence)Wood-burning stove or fireplace insertNoAbout you EditFirst nameMarenLast nameOlsgaardDate of birth04/12/1987Emailmaren.olsgaard@example.testMobil"}, {"control_id": "ctrl_5", "dom_selector": "#review > h3:nth-of-type(2) > button", "tag": "button", "label_text": "Edit", "section_text": "About you Edit", "checked": null, "visible": true, "row_text": "Review your quote Check everything below before you get your quote. Your unit EditCondominium associationQuarry Bend Lofts Owners Association (Portland, OR)Unit street address2210 NW Quarry Bend AveUnit number3CCityPortlandStateORZIP code97210Year the building was built2008Floor the unit is on3How is the unit occupied?Owner-occupied (primary residence)Wood-burning stove or fireplace insertNoAbout you EditFirst nameMarenLast nameOlsgaardDate of birth04/12/1987Emailmaren.olsgaard@example.testMobil"}, {"control_id": "ctrl_6", "dom_selector": "#review > h3:nth-of-type(3) > button", "tag": "button", "label_text": "Edit", "section_text": "Coverage Edit", "checked": null, "visible": true, "row_text": "Review your quote Check everything below before you get your quote. Your unit EditCondominium associationQuarry Bend Lofts Owners Association (Portland, OR)Unit street address2210 NW Quarry Bend AveUnit number3CCityPortlandStateORZIP code97210Year the building was built2008Floor the unit is on3How is the unit occupied?Owner-occupied (primary residence)Wood-burning stove or fireplace insertNoAbout you EditFirst nameMarenLast nameOlsgaardDate of birth04/12/1987Emailmaren.olsgaard@example.testMobil"}, {"control_id": "confirm", "dom_selector": "#confirm", "tag": "input", "input_type": "checkbox", "id_attr": "confirm", "label_text": "I confirm the information above is accurate", "section_text": "Review your quote", "current_value": "false", "checked": false, "visible": true, "row_text": "Review your quote Check everything below before you get your quote. Your unit EditCondominium associationQuarry Bend Lofts Owners Association (Portland, OR)Unit street address2210 NW Quarry Bend AveUnit number3CCityPortlandStateORZIP code97210Year the building was built2008Floor the unit is on3How is the unit occupied?Owner-occupied (primary residence)Wood-burning stove or fireplace insertNoAbout you EditFirst nameMarenLast nameOlsgaardDate of birth04/12/1987Emailmaren.olsgaard@example.testMobil"}, {"control_id": "get-quote", "dom_selector": "#get-quote", "tag": "button", "id_attr": "get-quote", "label_text": "Get my quote", "section_text": "Review your quote", "checked": null, "visible": true, "row_text": "Review your quote Check everything below before you get your quote. Your unit EditCondominium associationQuarry Bend Lofts Owners Association (Portland, OR)Unit street address2210 NW Quarry Bend AveUnit number3CCityPortlandStateORZIP code97210Year the building was built2008Floor the unit is on3How is the unit occupied?Owner-occupied (primary residence)Wood-burning stove or fireplace insertNoAbout you EditFirst nameMarenLast nameOlsgaardDate of birth04/12/1987Emailmaren.olsgaard@example.testMobil"}], "text_pairs": [{"label": "Condominium association", "value": "Quarry Bend Lofts Owners Association (Portland, OR)", "section_text": "Your unit Edit", "source": "table_row"}, {"label": "Unit street address", "value": "2210 NW Quarry Bend Ave", "section_text": "Your unit Edit", "source": "table_row"}, {"label": "Unit number", "value": "3C", "section_text": "Your unit Edit", "source": "table_row"}, {"label": "City", "value": "Portland", "section_text": "Your unit Edit", "source": "table_row"}, {"label": "State", "value": "OR", "section_text": "Your unit Edit", "source": "table_row"}, {"label": "ZIP code", "value": "97210", "section_text": "Your unit Edit", "source": "table_row"}, {"label": "Year the building was built", "value": "2008", "section_text": "Your unit Edit", "source": "table_row"}, {"label": "Floor the unit is on", "value": "3", "section_text": "Your unit Edit", "source": "table_row"}, {"label": "How is the unit occupied?", "value": "Owner-occupied (primary residence)", "section_text": "Your unit Edit", "source": "table_row"}, {"label": "Wood-burning stove or fireplace insert", "value": "No", "section_text": "Your unit Edit", "source": "table_row"}, {"label": "First name", "value": "Maren", "section_text": "About you Edit", "source": "table_row"}, {"label": "Last name", "value": "Olsgaard", "section_text": "About you Edit", "source": "table_row"}, {"label": "Date of birth", "value": "04/12/1987", "section_text": "About you Edit", "source": "table_row"}, {"label": "Email", "value": "maren.olsgaard@example.test", "section_text": "About you Edit", "source": "table_row"}, {"label": "Mobile phone", "value": "503-555-0142", "section_text": "About you Edit", "source": "table_row"}, {"label": "Unit improvements and betterments (Coverage A)", "value": "$62,000", "section_text": "Coverage Edit", "source": "table_row"}, {"label": "Personal property (Coverage C)", "value": "$45,000", "section_text": "Coverage Edit", "source": "table_row"}, {"label": "Loss assessment", "value": "$10,000", "section_text": "Coverage Edit", "source": "table_row"}, {"label": "Water and sewer backup", "value": "Not included", "section_text": "Coverage Edit", "source": "table_row"}, {"label": "Deductible", "value": "$1,000", "section_text": "Coverage Edit", "source": "table_row"}, {"label": "Policy start date", "value": "12/15/2026", "section_text": "Coverage Edit", "source": "table_row"}], "banners": [], "modals": [], "title": "Wrenfield Mutual | Condo insurance quote"} +FORM_TX_DEMO {"portal": "wrenfield", "step": 30, "why": "before click selector='internal:role=button[name=\"Get my quote\"i]'>", "frame_url": "http://127.0.0.1:44867/condo/quote", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "body > div > nav > ol > li:nth-of-type(1) > button", "tag": "button", "label_text": "1. Your unit", "checked": null, "visible": true, "row_text": "1. Your unit"}, {"control_id": "ctrl_1", "dom_selector": "body > div > nav > ol > li:nth-of-type(2) > button", "tag": "button", "label_text": "2. About you", "checked": null, "visible": true, "row_text": "2. About you"}, {"control_id": "ctrl_2", "dom_selector": "body > div > nav > ol > li:nth-of-type(3) > button", "tag": "button", "label_text": "3. Coverage", "checked": null, "visible": true, "row_text": "3. Coverage"}, {"control_id": "ctrl_3", "dom_selector": "body > div > nav > ol > li:nth-of-type(4) > button", "tag": "button", "label_text": "4. Review", "checked": null, "visible": true, "row_text": "4. Review"}, {"control_id": "ctrl_4", "dom_selector": "#review > h3:nth-of-type(1) > button", "tag": "button", "label_text": "Edit", "section_text": "Your unit Edit", "checked": null, "visible": true, "row_text": "Review your quote Check everything below before you get your quote. Your unit EditCondominium associationQuarry Bend Lofts Owners Association (Portland, OR)Unit street address2210 NW Quarry Bend AveUnit number3CCityPortlandStateORZIP code97210Year the building was built2008Floor the unit is on3How is the unit occupied?Owner-occupied (primary residence)Wood-burning stove or fireplace insertNoAbout you EditFirst nameMarenLast nameOlsgaardDate of birth04/12/1987Emailmaren.olsgaard@example.testMobil"}, {"control_id": "ctrl_5", "dom_selector": "#review > h3:nth-of-type(2) > button", "tag": "button", "label_text": "Edit", "section_text": "About you Edit", "checked": null, "visible": true, "row_text": "Review your quote Check everything below before you get your quote. Your unit EditCondominium associationQuarry Bend Lofts Owners Association (Portland, OR)Unit street address2210 NW Quarry Bend AveUnit number3CCityPortlandStateORZIP code97210Year the building was built2008Floor the unit is on3How is the unit occupied?Owner-occupied (primary residence)Wood-burning stove or fireplace insertNoAbout you EditFirst nameMarenLast nameOlsgaardDate of birth04/12/1987Emailmaren.olsgaard@example.testMobil"}, {"control_id": "ctrl_6", "dom_selector": "#review > h3:nth-of-type(3) > button", "tag": "button", "label_text": "Edit", "section_text": "Coverage Edit", "checked": null, "visible": true, "row_text": "Review your quote Check everything below before you get your quote. Your unit EditCondominium associationQuarry Bend Lofts Owners Association (Portland, OR)Unit street address2210 NW Quarry Bend AveUnit number3CCityPortlandStateORZIP code97210Year the building was built2008Floor the unit is on3How is the unit occupied?Owner-occupied (primary residence)Wood-burning stove or fireplace insertNoAbout you EditFirst nameMarenLast nameOlsgaardDate of birth04/12/1987Emailmaren.olsgaard@example.testMobil"}, {"control_id": "confirm", "dom_selector": "#confirm", "tag": "input", "input_type": "checkbox", "id_attr": "confirm", "label_text": "I confirm the information above is accurate", "section_text": "Review your quote", "current_value": "true", "checked": true, "visible": true, "row_text": "Review your quote Check everything below before you get your quote. Your unit EditCondominium associationQuarry Bend Lofts Owners Association (Portland, OR)Unit street address2210 NW Quarry Bend AveUnit number3CCityPortlandStateORZIP code97210Year the building was built2008Floor the unit is on3How is the unit occupied?Owner-occupied (primary residence)Wood-burning stove or fireplace insertNoAbout you EditFirst nameMarenLast nameOlsgaardDate of birth04/12/1987Emailmaren.olsgaard@example.testMobil"}, {"control_id": "get-quote", "dom_selector": "#get-quote", "tag": "button", "id_attr": "get-quote", "label_text": "Get my quote", "section_text": "Review your quote", "checked": null, "visible": true, "row_text": "Review your quote Check everything below before you get your quote. Your unit EditCondominium associationQuarry Bend Lofts Owners Association (Portland, OR)Unit street address2210 NW Quarry Bend AveUnit number3CCityPortlandStateORZIP code97210Year the building was built2008Floor the unit is on3How is the unit occupied?Owner-occupied (primary residence)Wood-burning stove or fireplace insertNoAbout you EditFirst nameMarenLast nameOlsgaardDate of birth04/12/1987Emailmaren.olsgaard@example.testMobil"}], "text_pairs": [{"label": "Condominium association", "value": "Quarry Bend Lofts Owners Association (Portland, OR)", "section_text": "Your unit Edit", "source": "table_row"}, {"label": "Unit street address", "value": "2210 NW Quarry Bend Ave", "section_text": "Your unit Edit", "source": "table_row"}, {"label": "Unit number", "value": "3C", "section_text": "Your unit Edit", "source": "table_row"}, {"label": "City", "value": "Portland", "section_text": "Your unit Edit", "source": "table_row"}, {"label": "State", "value": "OR", "section_text": "Your unit Edit", "source": "table_row"}, {"label": "ZIP code", "value": "97210", "section_text": "Your unit Edit", "source": "table_row"}, {"label": "Year the building was built", "value": "2008", "section_text": "Your unit Edit", "source": "table_row"}, {"label": "Floor the unit is on", "value": "3", "section_text": "Your unit Edit", "source": "table_row"}, {"label": "How is the unit occupied?", "value": "Owner-occupied (primary residence)", "section_text": "Your unit Edit", "source": "table_row"}, {"label": "Wood-burning stove or fireplace insert", "value": "No", "section_text": "Your unit Edit", "source": "table_row"}, {"label": "First name", "value": "Maren", "section_text": "About you Edit", "source": "table_row"}, {"label": "Last name", "value": "Olsgaard", "section_text": "About you Edit", "source": "table_row"}, {"label": "Date of birth", "value": "04/12/1987", "section_text": "About you Edit", "source": "table_row"}, {"label": "Email", "value": "maren.olsgaard@example.test", "section_text": "About you Edit", "source": "table_row"}, {"label": "Mobile phone", "value": "503-555-0142", "section_text": "About you Edit", "source": "table_row"}, {"label": "Unit improvements and betterments (Coverage A)", "value": "$62,000", "section_text": "Coverage Edit", "source": "table_row"}, {"label": "Personal property (Coverage C)", "value": "$45,000", "section_text": "Coverage Edit", "source": "table_row"}, {"label": "Loss assessment", "value": "$10,000", "section_text": "Coverage Edit", "source": "table_row"}, {"label": "Water and sewer backup", "value": "Not included", "section_text": "Coverage Edit", "source": "table_row"}, {"label": "Deductible", "value": "$1,000", "section_text": "Coverage Edit", "source": "table_row"}, {"label": "Policy start date", "value": "12/15/2026", "section_text": "Coverage Edit", "source": "table_row"}], "banners": [], "modals": [], "title": "Wrenfield Mutual | Condo insurance quote"} +FORM_TX_DEMO {"portal": "wrenfield", "step": 31, "why": "end of case", "frame_url": "http://127.0.0.1:44867/condo/quote/WF-604201", "is_main": true, "controls": [], "text_pairs": [{"label": "Condominium association", "value": "Quarry Bend Lofts Owners Association (Portland, OR)", "section_text": "Your condo quote is ready", "source": "table_row"}, {"label": "Unit street address", "value": "2210 NW Quarry Bend Ave", "section_text": "Your condo quote is ready", "source": "table_row"}, {"label": "Unit number", "value": "3C", "section_text": "Your condo quote is ready", "source": "table_row"}, {"label": "City", "value": "Portland", "section_text": "Your condo quote is ready", "source": "table_row"}, {"label": "State", "value": "OR", "section_text": "Your condo quote is ready", "source": "table_row"}, {"label": "ZIP code", "value": "97210", "section_text": "Your condo quote is ready", "source": "table_row"}, {"label": "Year the building was built", "value": "2008", "section_text": "Your condo quote is ready", "source": "table_row"}, {"label": "Floor the unit is on", "value": "3", "section_text": "Your condo quote is ready", "source": "table_row"}, {"label": "How is the unit occupied?", "value": "Owner-occupied (primary residence)", "section_text": "Your condo quote is ready", "source": "table_row"}, {"label": "Wood-burning stove or fireplace insert", "value": "No", "section_text": "Your condo quote is ready", "source": "table_row"}, {"label": "First name", "value": "Maren", "section_text": "Your condo quote is ready", "source": "table_row"}, {"label": "Last name", "value": "Olsgaard", "section_text": "Your condo quote is ready", "source": "table_row"}, {"label": "Date of birth", "value": "04/12/1987", "section_text": "Your condo quote is ready", "source": "table_row"}, {"label": "Email", "value": "maren.olsgaard@example.test", "section_text": "Your condo quote is ready", "source": "table_row"}, {"label": "Mobile phone", "value": "503-555-0142", "section_text": "Your condo quote is ready", "source": "table_row"}, {"label": "Unit improvements and betterments (Coverage A)", "value": "$62,000", "section_text": "Your condo quote is ready", "source": "table_row"}, {"label": "Personal property (Coverage C)", "value": "$45,000", "section_text": "Your condo quote is ready", "source": "table_row"}, {"label": "Loss assessment", "value": "$10,000", "section_text": "Your condo quote is ready", "source": "table_row"}, {"label": "Water and sewer backup", "value": "Not included", "section_text": "Your condo quote is ready", "source": "table_row"}, {"label": "Deductible", "value": "$1,000", "section_text": "Your condo quote is ready", "source": "table_row"}, {"label": "Policy start date", "value": "12/15/2026", "section_text": "Your condo quote is ready", "source": "table_row"}], "banners": [], "modals": [], "title": "Wrenfield Mutual | Condo insurance quote"} +FORM_TX_DEMO_RESULT [{"case_id": "wf-dev", "correct": true}] diff --git a/packages/flow/benchmark/form_tx_heldout4_run/record_demo.py b/packages/flow/benchmark/form_tx_heldout4_run/record_demo.py new file mode 100644 index 0000000000..11fe90ca88 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout4_run/record_demo.py @@ -0,0 +1,149 @@ +"""Record one demonstration per portal: what the form layer sees on the dev case. + +The portal author's careful-human driver runs on each portal's dev case only. +Before each of its clicks and value changes (fill, select, check, type), and +before the browser context closes, this saves +what ``PlaywrightFormSurface`` sees in every frame of every open page: +controls, page-text pairs, banners and dialogs. The pack author writes packs +from these recordings and the dev intake, without reading portal source. + + python benchmark/form_tx_heldout4_run/record_demo.py [portal ...] > demo.jsonl +""" + +from __future__ import annotations + +import json +import sys +from pathlib import Path +from typing import Any + +HERE = Path(__file__).resolve().parent +sys.path.insert(0, str(HERE.parents[1])) # packages/flow + +from benchmark.form_tx_heldout4 import reference_human, runner # noqa: E402 +from benchmark.form_tx_heldout4.portals import PORTALS # noqa: E402 +from openadapt_flow.form_tx.playwright_surface import PlaywrightFormSurface # noqa: E402 +from openadapt_flow.form_tx.types import UIProfileSpec # noqa: E402 + +MARK = "FORM_TX_DEMO" +_STATE = {"busy": False, "step": 0, "portal": ""} +_PROFILE = UIProfileSpec(profile_id="demo-recorder", max_settle_ms=6000) + + +def _capture(page: Any, why: str) -> None: + if _STATE["busy"]: + return + _STATE["busy"] = True + try: + for frame in page.frames: + row: dict[str, Any] = { + "portal": _STATE["portal"], + "step": _STATE["step"], + "why": why, + "frame_url": frame.url, + "is_main": frame == page.main_frame, + } + try: + surface = PlaywrightFormSurface(frame, _PROFILE) + snap = surface.snapshot() + surface._detach() + row["controls"] = [ + { + k: v + for k, v in c.model_dump().items() + if v not in ("", None, (), [], False) or k in ("checked",) + } + for c in snap.controls + ] + row["text_pairs"] = [p.model_dump() for p in snap.text_pairs] + row["banners"] = list(snap.banner_errors) + row["modals"] = [m.model_dump() for m in snap.active_modals] + row["title"] = snap.title + except Exception as exc: # noqa: BLE001 + row["error"] = repr(exc)[:300] + print(MARK + " " + json.dumps(row, default=str), flush=True) + _STATE["step"] += 1 + finally: + _STATE["busy"] = False + + +def _patch() -> None: + from playwright.sync_api import BrowserContext, Locator, Page + + orig_click = Locator.click + orig_page_click = Page.click + orig_close = BrowserContext.close + + def click(self: Any, *a: Any, **kw: Any) -> Any: + try: + desc = str(self) + except Exception: # noqa: BLE001 + desc = "?" + _capture(self.page, f"before click {desc[:200]}") + return orig_click(self, *a, **kw) + + def page_click(self: Any, selector: str, *a: Any, **kw: Any) -> Any: + _capture(self, f"before click {selector[:200]}") + return orig_page_click(self, selector, *a, **kw) + + def close(self: Any, *a: Any, **kw: Any) -> Any: + for p in list(self.pages): + _capture(p, "end of case") + return orig_close(self, *a, **kw) + + Locator.click = click # type: ignore[method-assign] + Page.click = page_click # type: ignore[method-assign] + BrowserContext.close = close # type: ignore[method-assign] + + # Also capture before every value change, so the first sighting of each + # control is its blank-form value (the defaults table needs it). + def _wrap_locator(name: str) -> None: + orig = getattr(Locator, name) + + def wrapped(self: Any, *a: Any, **kw: Any) -> Any: + try: + desc = str(self) + except Exception: # noqa: BLE001 + desc = "?" + _capture(self.page, f"before {name} {desc[:200]}") + return orig(self, *a, **kw) + + setattr(Locator, name, wrapped) + + def _wrap_page(name: str) -> None: + orig = getattr(Page, name) + + def wrapped(self: Any, selector: str, *a: Any, **kw: Any) -> Any: + _capture(self, f"before {name} {selector[:200]}") + return orig(self, selector, *a, **kw) + + setattr(Page, name, wrapped) + + for _name in ("fill", "select_option", "check", "uncheck", "set_checked", "type", "press_sequentially"): + if hasattr(Locator, _name): + _wrap_locator(_name) + for _name in ("fill", "select_option", "check", "uncheck", "type"): + if hasattr(Page, _name): + _wrap_page(_name) + + +def main(argv: list[str]) -> None: + _patch() + for pid in argv or list(PORTALS): + _STATE["portal"], _STATE["step"] = pid, 0 + spec = PORTALS[pid] + rows = runner.run_cases( + reference_human.make_source, [pid], include_dev=True, only=[spec.dev_case] + ) + print( + MARK + + "_RESULT " + + json.dumps( + [{"case_id": r["case_id"], "correct": r.get("correct")} for r in rows] + ), + flush=True, + ) + + +if __name__ == "__main__": + main(sys.argv[1:]) diff --git a/packages/flow/benchmark/form_tx_heldout_run/RESULTS.md b/packages/flow/benchmark/form_tx_heldout_run/RESULTS.md index 37c5f04f31..e90286e3d0 100644 --- a/packages/flow/benchmark/form_tx_heldout_run/RESULTS.md +++ b/packages/flow/benchmark/form_tx_heldout_run/RESULTS.md @@ -6,10 +6,11 @@ key from `claude/form-tx-heldout-portals` at `36be56dcd` (answer key sha256 `948f695a...7227`). The pre-registration was pushed at `8ea2e5602`, before the portals were merged into this branch at `eeb53cadb`; deviations D1 and D2 were recorded before any scored case ran. The runner and packs were committed at -`3312524d5`, before the first scored case; `git diff 6392bac91 HEAD -- -packages/flow/openadapt_flow` is empty, so the engine did not change after +`3312524d5`, before the first scored case; `git diff 6392bac91 124db5c98 -- +packages/flow/openadapt_flow` is empty (124db5c98 is the last commit of this +measurement; later commits on this branch change the engine), so the engine did not change after the freeze. Raw rows: `results/arm_B.jsonl`, `results/arm_C.jsonl`, -`results/arm_A.txt`, and the full console logs `results/arm_*_full.log`. +the JSON lines in `results/arm_A_full.log`, and the full console logs `results/arm_*_full.log`. Counts: `summarize.py`. **These portals are no longer held out.** This change publishes them with diff --git a/packages/flow/benchmark/form_tx_heldout_run/packs3/__init__.py b/packages/flow/benchmark/form_tx_heldout_run/packs3/__init__.py new file mode 100644 index 0000000000..58117eadea --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout_run/packs3/__init__.py @@ -0,0 +1,55 @@ +"""Form packs for the third held-out portal set (data only). + +Each portal's pack lives in its own module, written from that portal's dev +intake and the dev-case demonstration in ``../../form_tx_heldout3_run/demos``, +without reading portal source, scored intakes or the answer key. A module +exports ``PACK``, ``PROFILE`` and optionally ``derived_facts(raw) -> dict``, +facts restated from the intake in the form the portal shows them (never new +information). +""" + +from __future__ import annotations + +import importlib +from typing import Any + +from benchmark.form_tx_heldout_run.packs import _intake_value +from openadapt_flow.form_tx.types import DossierFact, InputDossier, ProvenanceKind + +PORTAL_IDS = ("corvane", "pellbrook") +_MODULES: dict[str, Any] = {} +for _pid in PORTAL_IDS: + try: + _MODULES[_pid] = importlib.import_module(f"{__name__}.{_pid}") + except ModuleNotFoundError as _exc: # a pack not written yet + if _exc.name != f"{__name__}.{_pid}": + raise +PACKS: dict[str, Any] = {pid: (m.PACK, m.PROFILE) for pid, m in _MODULES.items()} + + +def dossier_for(intake: dict[str, Any], request_id: str) -> InputDossier: + source = f"intake:{intake['case_id']}" + raw = intake["facts"] + values = {k: _intake_value(v) for k, v in raw.items() if v is not None and v != ""} + module = next( + ( + mod + for mod in _MODULES.values() + if str(intake["case_id"]).startswith(mod.CASE_PREFIX + "-") + ), + None, + ) + if module is not None and hasattr(module, "derived_facts"): + for key, value in module.derived_facts(raw).items(): + values.setdefault(key, value) + facts = { + key: DossierFact( + key=key, + value=value, + provenance=ProvenanceKind.INTAKE_DOCUMENT, + source_id=source, + confidence=1.0, + ) + for key, value in values.items() + } + return InputDossier(dossier_id=source, request_id=request_id, facts=facts) diff --git a/packages/flow/benchmark/form_tx_heldout_run/packs3/corvane.py b/packages/flow/benchmark/form_tx_heldout_run/packs3/corvane.py new file mode 100644 index 0000000000..dcbaf42910 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout_run/packs3/corvane.py @@ -0,0 +1,368 @@ +"""Corvane homeowners quote: form pack (data only). + +Written from the cv-dev intake, the intake vocabulary and the dev-case +demonstration (``form_tx_heldout3_run/demos/corvane.jsonl``) only; no portal +source, scored intake or answer key was read. What the demonstration shows: + +- An agent sign-in page (password field) before the quote. +- Four "Save and continue" screens: Applicant and property, Dwelling, + Household, Lender and coverage; then a Review screen with one "Edit" + button per section and "Request quote". +- Every control has a ``name`` equal to its intake key and a visible label. +- Dates are typed as MM/DD/YYYY. +- "Co-applicant full name" is described as "Spouse or other person on the + deed"; the demonstrator filled it with the spouse's name. +- Household asks for occupancy and whether dogs are kept (radio groups). The + breed and bite-history questions appear only when dogs are kept (seen on + the result page as "—" when they are not). +- The mortgagee is a type-ahead over a lender directory; the chosen entry + shows the lender name, "ISAOA", and the clause address. +- Personal liability and the deductible show $300,000 and $1,000 before the + demonstrator touched them (portal defaults). The occupancy and dogs radios + also come pre-checked (primary residence, No), found by a dev-case run + with those two bindings left out. +- "Estimate replacement cost" opens an estimator the dev case never used, so + it is not declared: a case with no dwelling limit stops for a person. +- After "Request quote" the page "Quote ready" lists every stored value as a + table, and the quote reference (CVH-Q...) is shown in the title and URL. +""" + +from __future__ import annotations + +from typing import Any + +from openadapt_flow.form_tx.types import ( + ControlKind, + FieldAnchorSpec, + FieldBindingSpec, + FieldCodecSpec, + FormCodecKind, + FormPack, + OutputExtractionSpec, + SummaryCheckSpec, + UIProfileSpec, + WizardScreenSpec, +) + +CASE_PREFIX = "cv" + +TEXT = FieldCodecSpec(kind=FormCodecKind.WHITESPACE_COLLAPSE) +FOLD = FieldCodecSpec(kind=FormCodecKind.CASEFOLD) +INT = FieldCodecSpec(kind=FormCodecKind.INTEGER) +DATE_MDY = FieldCodecSpec(kind=FormCodecKind.ISO_DATE, date_order="MDY") +MONEY = FieldCodecSpec(kind=FormCodecKind.CURRENCY_CENTS, currency_symbol="$") +BOOL = FieldCodecSpec(kind=FormCodecKind.BOOLEAN_YES_NO) +PHONE = FieldCodecSpec(kind=FormCodecKind.PHONE_DIGITS) + +PLACEHOLDERS = ( + "", + "Select…", + "Select...", + "-- Select --", +) + +RESULT_SECTION = (r"^Quote ready$",) + +# Labels as the form and the result page show them. +CO_APPLICANT = r"Co-applicant full name" +SQ_FT = r"Finished living area \(sq ft\)" +ROOF_YEAR = r"Year roof was installed or last replaced" +DOGS = r"Are any dogs kept at this address\?" +BREEDS = r"Breed of each dog" +BITE = r"Has any dog at this address ever bitten a person or another animal\?" +MORTGAGEE = r"Mortgagee \(lender\)" +DWELLING = r"Dwelling \(Coverage A\) limit" + +MORTGAGEE_KEY = "mortgagee_clause" + +# The result page shows a question that was not asked (no dogs) as a dash; +# other empty rows are assumed to show it too (not seen on the dev case). +NOT_ASKED = ("\u2014",) + + +def _bind( + key: str, + name: str, + label: str, + kind: ControlKind = ControlKind.TEXT, + codec: FieldCodecSpec = TEXT, + *, + defaults: tuple[str, ...] = (), + required: bool = False, + typeahead: int | None = None, +) -> FieldBindingSpec: + return FieldBindingSpec( + binding_id=f"cv_{name}", + dossier_key=key, + anchor=FieldAnchorSpec( + label_patterns=(f"^{label}$",), + name_or_id_patterns=(rf"^{name}(?:\s|$)",), + ), + control_kind=kind, + codec=codec, + placeholder_values=PLACEHOLDERS, + portal_default_values=defaults, + required_in_pack=required, + typeahead_query_chars=typeahead, + ) + + +def _label_only( + key: str, + label: str, + kind: ControlKind, + codec: FieldCodecSpec, +) -> FieldBindingSpec: + """A conditional question whose control name the dev case never showed.""" + return FieldBindingSpec( + binding_id=f"cv_{key}", + dossier_key=key, + anchor=FieldAnchorSpec( + label_patterns=(f"^{label}$",), section_patterns=(r"^Household$",) + ), + control_kind=kind, + codec=codec, + placeholder_values=PLACEHOLDERS, + ) + + +def _shown( + key: str, + label: str, + codec: FieldCodecSpec = TEXT, + *, + blank: tuple[str, ...] = NOT_ASKED, +) -> FieldBindingSpec: + extra = {"placeholder_values": ("",) + blank} if blank else {} + return FieldBindingSpec( + binding_id=f"cv_rb_{key}", + dossier_key=key, + anchor=FieldAnchorSpec( + label_patterns=(f"^{label}$",), section_patterns=RESULT_SECTION + ), + codec=codec, + **extra, + ) + + +def _screen(screen_id: str, landmark: str, edit_n: int) -> WizardScreenSpec: + return WizardScreenSpec( + screen_id=screen_id, + landmark_selector=landmark, + next_button_anchor=FieldAnchorSpec(label_patterns=(r"^Save and continue$",)), + revisit_selector=f"#app > h2:nth-of-type({edit_n}) > button", + ) + + +PROFILE = UIProfileSpec( + profile_id="heldout3_corvane", + auth_wall_selectors=('input[type="password"]',), +) + +PACK = FormPack( + pack_id="heldout3.corvane.homeowners.v1", + domain_schema="personal_lines.homeowners", + ui_profile_id=PROFILE.profile_id, + bindings=( + # 1. Applicant and property + _bind("first_name", "first_name", "First name", required=True), + _bind("last_name", "last_name", "Last name", required=True), + _bind( + "date_of_birth", + "date_of_birth", + "Date of birth", + codec=DATE_MDY, + required=True, + ), + _bind("email", "email", "Email"), + _bind("phone", "phone", "Phone"), + _bind("co_applicant_name", "co_applicant_name", CO_APPLICANT), + _bind( + "property_street", + "property_street", + "Property street address", + required=True, + ), + _bind("property_city", "property_city", "City", required=True), + _bind( + "property_state", + "property_state", + "State", + ControlKind.SELECT, + FOLD, + required=True, + ), + _bind("property_zip", "property_zip", "ZIP code", required=True), + # 2. Dwelling + _bind("year_built", "year_built", "Year built", codec=INT, required=True), + _bind("square_feet", "square_feet", SQ_FT, codec=INT, required=True), + _bind( + "construction", + "construction", + "Construction type", + ControlKind.SELECT, + FOLD, + required=True, + ), + _bind( + "roof_material", + "roof_material", + "Roof material", + ControlKind.SELECT, + FOLD, + required=True, + ), + _bind("roof_year", "roof_year", ROOF_YEAR, codec=INT, required=True), + # 3. Household (both radios come pre-checked on a blank form: with + # these two bindings removed, the dev record was still stored as + # primary residence and no dogs) + _bind( + "occupancy", + "occupancy", + "Occupancy", + ControlKind.RADIO_GROUP, + FOLD, + defaults=("Owner-occupied primary residence",), + required=True, + ), + _bind( + "dogs_on_premises", + "dogs", + DOGS, + ControlKind.RADIO_GROUP, + BOOL, + defaults=("No",), + required=True, + ), + _label_only("dog_breeds", BREEDS, ControlKind.TEXT, TEXT), + _label_only("dog_bite_history", BITE, ControlKind.RADIO_GROUP, FOLD), + # 4. Lender and coverage + _bind( + MORTGAGEE_KEY, + "mortgagee", + MORTGAGEE, + ControlKind.PORTAL_COMBOBOX, + TEXT, + typeahead=6, + ), + _bind("loan_number", "loan_number", "Loan number"), + _bind( + "dwelling_limit", + "dwelling_limit", + DWELLING, + codec=INT, + required=True, + ), + _bind( + "personal_liability", + "personal_liability", + "Personal liability", + ControlKind.SELECT, + MONEY, + defaults=("300000", "$300,000"), + required=True, + ), + _bind( + "deductible", + "deductible", + "All-perils deductible", + ControlKind.SELECT, + MONEY, + defaults=("1000", "$1,000"), + required=True, + ), + _bind( + "effective_date", + "effective_date", + "Policy effective date", + codec=DATE_MDY, + required=True, + ), + ), + screens=( + WizardScreenSpec( + screen_id="cv_review", + landmark_selector="#submit", + is_commit_screen=True, + commit_button_anchor=FieldAnchorSpec(label_patterns=(r"^Request quote$",)), + ), + _screen("cv_applicant", "#f-first_name", 1), + _screen("cv_dwelling", "#f-year_built", 2), + _screen("cv_household", "input[name='occupancy']", 3), + _screen("cv_lender", "#f-mortgagee", 4), + ), + summary_check=SummaryCheckSpec( + field_readbacks=( + _shown("first_name", "First name"), + _shown("last_name", "Last name"), + _shown("date_of_birth", "Date of birth", DATE_MDY), + _shown("email", "Email", FOLD), + _shown("phone", "Phone", PHONE), + _shown("co_applicant_name", CO_APPLICANT), + _shown("property_street", "Property street address", FOLD), + _shown("property_city", "City", FOLD), + _shown("property_state", "State", FOLD), + _shown("property_zip", "ZIP code"), + _shown("year_built", "Year built", INT), + _shown("square_feet", SQ_FT, INT), + _shown("construction", "Construction type", FOLD), + _shown("roof_material", "Roof material", FOLD), + _shown("roof_year", ROOF_YEAR, INT), + _shown("occupancy", "Occupancy", FOLD), + _shown("dogs_on_premises", DOGS, BOOL), + _shown("dog_breeds", BREEDS), + _shown("dog_bite_history", BITE, FOLD), + _shown(MORTGAGEE_KEY, MORTGAGEE), + _shown("loan_number", "Loan number"), + _shown("dwelling_limit", DWELLING, MONEY), + _shown("personal_liability", "Personal liability", MONEY), + _shown("deductible", "All-perils deductible", MONEY), + _shown("effective_date", "Policy effective date", DATE_MDY), + ), + outputs=( + OutputExtractionSpec( + output_key="quote.reference", + anchor=FieldAnchorSpec( + label_patterns=(r"^Quote (?:reference|number)$",), + section_patterns=RESULT_SECTION, + ), + value_pattern=r"\b(CVH-Q\d+)\b", + required=True, + ), + ), + ), + max_commit_mutations=1, + ignored_intake_keys=( + # Entered through derived_facts as the mortgagee directory entry. + "lender_name", + "lender_clause_address", + # Entered through derived_facts as the co-applicant (the portal has + # no spouse field). + "spouse_name", + # The portal asks no marital status question (not on any screen of + # the dev case). + "marital_status", + ), +) + + +def derived_facts(raw: dict[str, Any]) -> dict[str, Any]: + """Intake facts restated the way the portal shows them. + + - The mortgagee directory entry: lender name, "ISAOA", clause address. + - The co-applicant field asks for the spouse or other person on the + deed; with no co-applicant given, the intake's spouse is that person. + """ + out: dict[str, Any] = {} + lender = str(raw.get("lender_name") or "").strip() + clause = str(raw.get("lender_clause_address") or "").strip() + if lender and clause: + out[MORTGAGEE_KEY] = f"{lender} ISAOA, {clause}" + elif lender: + # No clause address: the name alone equals no directory entry, so + # the run stops at the mortgagee instead of leaving it blank. + out[MORTGAGEE_KEY] = lender + spouse = str(raw.get("spouse_name") or "").strip() + if spouse and not str(raw.get("co_applicant_name") or "").strip(): + out["co_applicant_name"] = spouse + return out diff --git a/packages/flow/benchmark/form_tx_heldout_run/packs3/pellbrook.py b/packages/flow/benchmark/form_tx_heldout_run/packs3/pellbrook.py new file mode 100644 index 0000000000..85fb778140 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout_run/packs3/pellbrook.py @@ -0,0 +1,223 @@ +"""Pellbrook boat quote: form pack written from the dev case only (data only). + +Written from the pb-dev intake, the pellbrook intake vocabulary and the +dev-case demonstration (``form_tx_heldout3_run/demos/pellbrook.jsonl``); no +portal source, scored intake or answer key was read. What the dev case +showed: + +- A sign-in page, then one page (``/boat/quote``) that asks one question at + a time as a chat-like thread. Every text question reuses the same control + (``#answer``) and every choice question is a radio group named + ``answer``, so each binding is anchored by the question's label only. + Every question has the same "Continue" button. +- Dates are typed as MM/DD/YYYY; the hull value is typed as digits and + shown back as money. "Agreed hull value" has a "Look up book value" + button; the dev case typed the value and never opened it, so its window + is not declared and a case without a hull value stops for a person. +- The lienholder question says "Leave blank if there is no loan."; the + summary then shows "None". +- A lay-up period appears on the summary but was not asked on the dev case; + its question is bound by the summary's label and was never exercised. +- "Here's what we have" lists every answer with a "Change" button per row; + "Get my quote" submits. The stored quote is then shown under "Your boat + quote" as a table, and the quote reference appears in the page title and + URL. +- The first snapshot of every question showed it blank (no radio + pre-checked), so no binding declares portal defaults. + +All questions are one declared screen; the layer advances when the question +label changes. A financed case's lienholder is typed but, with no read-back +keyed to it, is reported not_checked (the derived read-back covers what the +summary shows). +""" + +from __future__ import annotations + +import re +from typing import Any + +from openadapt_flow.form_tx.types import ( + ControlKind, + FieldAnchorSpec, + FieldBindingSpec, + FieldCodecSpec, + FormCodecKind, + FormPack, + OutputExtractionSpec, + PrefillPolicy, + SummaryCheckSpec, + UIProfileSpec, + WizardScreenSpec, +) + +CASE_PREFIX = "pb" + +TEXT = FieldCodecSpec(kind=FormCodecKind.WHITESPACE_COLLAPSE) +FOLD = FieldCodecSpec(kind=FormCodecKind.CASEFOLD) +INT = FieldCodecSpec(kind=FormCodecKind.INTEGER) +DATE_MDY = FieldCodecSpec(kind=FormCodecKind.ISO_DATE, date_order="MDY") +MONEY = FieldCodecSpec(kind=FormCodecKind.CURRENCY_CENTS, currency_symbol="$") +BOOL = FieldCodecSpec(kind=FormCodecKind.BOOLEAN_YES_NO) + +SUMMARY_SECTION = (r"^Your boat quote$",) + +RADIO = ControlKind.RADIO_GROUP + +# (dossier key, question label, control kind, entry codec, read-back codec) +FIELDS: tuple[tuple[str, str, ControlKind, FieldCodecSpec, FieldCodecSpec], ...] = ( + ("first_name", "First name", ControlKind.TEXT, TEXT, TEXT), + ("last_name", "Last name", ControlKind.TEXT, TEXT, TEXT), + ("date_of_birth", "Date of birth", ControlKind.TEXT, DATE_MDY, DATE_MDY), + ("email", "Email address", ControlKind.TEXT, FOLD, FOLD), + ("garaging_zip", "ZIP code where the boat is kept", ControlKind.TEXT, TEXT, TEXT), + ("boat_year", "Model year", ControlKind.TEXT, INT, INT), + ("boat_make", "Manufacturer", ControlKind.TEXT, TEXT, FOLD), + ("boat_model", "Model", ControlKind.TEXT, TEXT, FOLD), + ("length_ft", "Length overall (feet)", ControlKind.TEXT, INT, INT), + ("engine_type", "Engine type", RADIO, FOLD, FOLD), + ( + "total_horsepower", + "Total horsepower (all engines combined)", + ControlKind.TEXT, + INT, + INT, + ), + ("engine_count", "Number of engines", RADIO, FOLD, FOLD), + ("agreed_hull_value", "Agreed hull value", ControlKind.TEXT, INT, MONEY), + ( + "storage", + "Where is the boat kept during the boating season?", + RADIO, + FOLD, + FOLD, + ), + ("layup_period", "Lay-up period (boat out of commission)", RADIO, FOLD, FOLD), + ("navigation_area", "Where will you use the boat?", RADIO, FOLD, FOLD), + ( + "safety_course", + "Has the primary operator completed a boating safety course?", + RADIO, + BOOL, + BOOL, + ), + ( + "losses_3yr", + "Boat insurance claims in the last 3 years", + ControlKind.TEXT, + INT, + INT, + ), + ( + "lienholder", + "Lienholder (lender with a loan on this boat)", + ControlKind.TEXT, + TEXT, + FOLD, + ), + ("liability_limit", "Liability limit", RADIO, MONEY, MONEY), + ("deductible", "Hull deductible", RADIO, MONEY, MONEY), + ("effective_date", "Coverage start date", ControlKind.TEXT, DATE_MDY, DATE_MDY), +) + + +def _pattern(label: str) -> str: + return "^" + re.escape(label) + "$" + + +def _bind( + key: str, label: str, kind: ControlKind, codec: FieldCodecSpec +) -> FieldBindingSpec: + return FieldBindingSpec( + binding_id=f"pb_{key}", + dossier_key=key, + anchor=FieldAnchorSpec(label_patterns=(_pattern(label),)), + control_kind=kind, + codec=codec, + prefill_policy=PrefillPolicy.HALT_ON_CONFLICT, + ) + + +def _shown(key: str, label: str, codec: FieldCodecSpec) -> FieldBindingSpec: + return FieldBindingSpec( + binding_id=f"pb_rb_{key}", + dossier_key=key, + anchor=FieldAnchorSpec( + label_patterns=(_pattern(label),), section_patterns=SUMMARY_SECTION + ), + codec=codec, + ) + + +PROFILE = UIProfileSpec( + profile_id="heldout3_pellbrook", + auth_wall_selectors=('input[type="password"]',), +) + +# The review's first "Change" button brings the thread back to its first +# question; it is only on the review screen (not exercised on the dev case). +_FIRST_CHANGE = "#summary > tbody > tr:nth-of-type(1) > td:nth-of-type(2) > button" + +_NO_DIRECT_READBACK = frozenset({"lienholder", "layup_period"}) + +PACK = FormPack( + pack_id="heldout3.pellbrook.boat.v1", + domain_schema="personal_lines.watercraft", + ui_profile_id=PROFILE.profile_id, + bindings=tuple(_bind(k, lbl, kind, c) for k, lbl, kind, c, _ in FIELDS), + screens=( + WizardScreenSpec( + screen_id="pb_review", + landmark_selector="#get-quote", + is_commit_screen=True, + commit_button_anchor=FieldAnchorSpec(label_patterns=(r"^Get my quote$",)), + ), + WizardScreenSpec( + screen_id="pb_question", + landmark_selector="#next", + next_button_anchor=FieldAnchorSpec(label_patterns=(r"^Continue$",)), + revisit_selector=_FIRST_CHANGE, + ), + ), + summary_check=SummaryCheckSpec( + # A summary row for a key the intake does not give must be empty to + # pass, but this summary shows "None" for an unanswered or skipped + # question. So the lienholder is read back through a derived key, and + # the lay-up period (skipped on the dev case) has no read-back: when + # it is entered it is reported not_checked. + field_readbacks=tuple( + _shown(k, lbl, rb) + for k, lbl, _, _, rb in FIELDS + if k not in _NO_DIRECT_READBACK + ) + + ( + _shown( + "lienholder_shown", + "Lienholder (lender with a loan on this boat)", + FOLD, + ), + ), + outputs=( + OutputExtractionSpec( + output_key="quote.reference", + anchor=FieldAnchorSpec(label_patterns=(r"^Quote reference$",)), + value_pattern=r"\b(PBM-\d+-Q)\b", + ), + ), + ), + max_commit_mutations=1, + # financing is entered only through the lienholder (and its derived + # "None" read-back); the hull value basis has no control of its own and + # is never entered (the book-value lookup is not declared). + ignored_intake_keys=("financing", "hull_value_basis"), +) + + +def derived_facts(raw: dict[str, Any]) -> dict[str, Any]: + """The lienholder as the summary shows it: the lender, or "None" when paid in full.""" + out: dict[str, Any] = {} + lienholder = str(raw.get("lienholder") or "").strip() + if lienholder: + out["lienholder_shown"] = lienholder + elif raw.get("financing") == "Paid in full": + out["lienholder_shown"] = "None" + return out diff --git a/packages/flow/benchmark/form_tx_heldout_run/packs4/__init__.py b/packages/flow/benchmark/form_tx_heldout_run/packs4/__init__.py new file mode 100644 index 0000000000..503a423461 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout_run/packs4/__init__.py @@ -0,0 +1,55 @@ +"""Form packs for the fourth held-out portal set (Set 4) (data only). + +Each portal's pack lives in its own module, written from that portal's dev +intake and the dev-case demonstration in ``../../form_tx_heldout4_run/demos``, +without reading portal source, scored intakes or the answer key. A module +exports ``PACK``, ``PROFILE`` and optionally ``derived_facts(raw) -> dict``, +facts restated from the intake in the form the portal shows them (never new +information). +""" + +from __future__ import annotations + +import importlib +from typing import Any + +from benchmark.form_tx_heldout_run.packs import _intake_value +from openadapt_flow.form_tx.types import DossierFact, InputDossier, ProvenanceKind + +PORTAL_IDS = ("wrenfield", "corvane", "thistlebrook") +_MODULES: dict[str, Any] = {} +for _pid in PORTAL_IDS: + try: + _MODULES[_pid] = importlib.import_module(f"{__name__}.{_pid}") + except ModuleNotFoundError as _exc: # a pack not written yet + if _exc.name != f"{__name__}.{_pid}": + raise +PACKS: dict[str, Any] = {pid: (m.PACK, m.PROFILE) for pid, m in _MODULES.items()} + + +def dossier_for(intake: dict[str, Any], request_id: str) -> InputDossier: + source = f"intake:{intake['case_id']}" + raw = intake["facts"] + values = {k: _intake_value(v) for k, v in raw.items() if v is not None and v != ""} + module = next( + ( + mod + for mod in _MODULES.values() + if str(intake["case_id"]).startswith(mod.CASE_PREFIX + "-") + ), + None, + ) + if module is not None and hasattr(module, "derived_facts"): + for key, value in module.derived_facts(raw).items(): + values.setdefault(key, value) + facts = { + key: DossierFact( + key=key, + value=value, + provenance=ProvenanceKind.INTAKE_DOCUMENT, + source_id=source, + confidence=1.0, + ) + for key, value in values.items() + } + return InputDossier(dossier_id=source, request_id=request_id, facts=facts) diff --git a/packages/flow/benchmark/form_tx_heldout_run/packs4b0/__init__.py b/packages/flow/benchmark/form_tx_heldout_run/packs4b0/__init__.py new file mode 100644 index 0000000000..503a423461 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout_run/packs4b0/__init__.py @@ -0,0 +1,55 @@ +"""Form packs for the fourth held-out portal set (Set 4) (data only). + +Each portal's pack lives in its own module, written from that portal's dev +intake and the dev-case demonstration in ``../../form_tx_heldout4_run/demos``, +without reading portal source, scored intakes or the answer key. A module +exports ``PACK``, ``PROFILE`` and optionally ``derived_facts(raw) -> dict``, +facts restated from the intake in the form the portal shows them (never new +information). +""" + +from __future__ import annotations + +import importlib +from typing import Any + +from benchmark.form_tx_heldout_run.packs import _intake_value +from openadapt_flow.form_tx.types import DossierFact, InputDossier, ProvenanceKind + +PORTAL_IDS = ("wrenfield", "corvane", "thistlebrook") +_MODULES: dict[str, Any] = {} +for _pid in PORTAL_IDS: + try: + _MODULES[_pid] = importlib.import_module(f"{__name__}.{_pid}") + except ModuleNotFoundError as _exc: # a pack not written yet + if _exc.name != f"{__name__}.{_pid}": + raise +PACKS: dict[str, Any] = {pid: (m.PACK, m.PROFILE) for pid, m in _MODULES.items()} + + +def dossier_for(intake: dict[str, Any], request_id: str) -> InputDossier: + source = f"intake:{intake['case_id']}" + raw = intake["facts"] + values = {k: _intake_value(v) for k, v in raw.items() if v is not None and v != ""} + module = next( + ( + mod + for mod in _MODULES.values() + if str(intake["case_id"]).startswith(mod.CASE_PREFIX + "-") + ), + None, + ) + if module is not None and hasattr(module, "derived_facts"): + for key, value in module.derived_facts(raw).items(): + values.setdefault(key, value) + facts = { + key: DossierFact( + key=key, + value=value, + provenance=ProvenanceKind.INTAKE_DOCUMENT, + source_id=source, + confidence=1.0, + ) + for key, value in values.items() + } + return InputDossier(dossier_id=source, request_id=request_id, facts=facts) diff --git a/packages/flow/benchmark/form_tx_heldout_run/packs4b0/corvane.py b/packages/flow/benchmark/form_tx_heldout_run/packs4b0/corvane.py new file mode 100644 index 0000000000..aece1394a1 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout_run/packs4b0/corvane.py @@ -0,0 +1,443 @@ +"""Corvane motorcycle quote rater: form pack (data only). + +Written from the cv-dev intake, the ``corvane`` intake vocabulary and the +dev-case demonstration (``form_tx_heldout4_run/demos/corvane.jsonl``) only; +no portal source, scored intake or answer key was read. What the +demonstration shows: + +- An agent sign-in page (agent code and password) before the worksheet. +- One worksheet page of accordion panels, each with a header button and a + "Save panel" button: Quote basics, Rider, Garaging address, Motorcycles, + Coverage. Only the open panel's controls show. "Rate this quote" sits + below the panels. +- Dates are typed as MM/DD/YYYY. +- Motorcycles: "Add motorcycle" opens a dialog (``#bike``): VIN, "Decode + VIN", read-only model year, make, model and engine size filled by the + decoder, ownership, and a lienholder name the dev case never showed + (owned outright). "Decode VIN" opens a decoder window listing vehicles, + one "Use this vehicle" button per row (row cells: year, make, model, cc). + "Add to quote" puts the bike in a grid row with a "Remove" button. +- Blank-form values the dev intake did not ask for: annual mileage 6000, + liability 25/50/25, collision and comprehensive deductibles $500, custom + parts and equipment 0, roadside "Not included". The collision deductible + was left at $500 by the demonstrator (the intake's value). +- "CPE worksheet" opens a custom-parts worksheet the dev case never used, so + it is not declared: a case with parts listed but no amount stops. +- "Rate this quote" shows "Rated quote" (every stored value as a table, the + bike as a grid, an annual premium) with "Submit application". After it the + page "Application submitted" shows the same table; the quote reference + (CVQ-...) is in the URL. +""" + +from __future__ import annotations + +from typing import Any + +from openadapt_flow.form_tx.types import ( + ControlKind, + FieldAnchorSpec, + FieldBindingSpec, + FieldCodecSpec, + FormCodecKind, + FormPack, + OutputExtractionSpec, + PopupSubroutineSpec, + SummaryCheckSpec, + UIProfileSpec, + WizardScreenSpec, +) + +CASE_PREFIX = "cv" + +TEXT = FieldCodecSpec(kind=FormCodecKind.WHITESPACE_COLLAPSE) +FOLD = FieldCodecSpec(kind=FormCodecKind.CASEFOLD) +INT = FieldCodecSpec(kind=FormCodecKind.INTEGER) +DATE_MDY = FieldCodecSpec(kind=FormCodecKind.ISO_DATE, date_order="MDY") +MONEY = FieldCodecSpec(kind=FormCodecKind.CURRENCY_CENTS, currency_symbol="$") +BOOL = FieldCodecSpec(kind=FormCodecKind.BOOLEAN_YES_NO) +PHONE = FieldCodecSpec(kind=FormCodecKind.PHONE_DIGITS) + +PLACEHOLDERS = ("", "-- Select --") +DASH = ("—",) + +RESULT_SECTION = (r"^Application submitted$",) +BIKE_RESULT_SECTION = (r"^Motorcycles$",) +DIALOG_SECTION = (r"^Add motorcycle$",) + +SAFETY = r"Completed a rider safety course in the last 3 years" +ENDORSED = r"Years with motorcycle endorsement" +LIABILITY = r"Liability limits \(BI/PD\)" + +# Keys derived from the intake's one motorcycle (see derived_facts). +BIKE_VIN = "bike.vin" +BIKE_YEAR = "bike.year" +BIKE_MAKE = "bike.make" +BIKE_MODEL = "bike.model" +BIKE_OWNERSHIP = "bike.ownership" +BIKE_LIENHOLDER = "bike.lienholder" +ANNUAL_MILES = "usage.annual_mileage" +# What the decoder puts back in the dialog's Model box (not an intake key). +BIKE_DECODED = "bike.decoded_model" + + +def _bind( + key: str, + name: str, + label: str, + kind: ControlKind = ControlKind.TEXT, + codec: FieldCodecSpec = TEXT, + *, + defaults: tuple[str, ...] = (), + required: bool = False, +) -> FieldBindingSpec: + return FieldBindingSpec( + binding_id=f"cv_{name}", + dossier_key=key, + anchor=FieldAnchorSpec( + label_patterns=(f"^{label}$",), + name_or_id_patterns=(f"^{name}(?:\\s|$)",), + ), + control_kind=kind, + codec=codec, + placeholder_values=PLACEHOLDERS, + portal_default_values=defaults, + required_in_pack=required, + ) + + +def _dialog( + key: str, + label: str, + kind: ControlKind = ControlKind.TEXT, + codec: FieldCodecSpec = TEXT, + *, + required: bool = False, +) -> FieldBindingSpec: + """A control of the Add motorcycle dialog (no name attribute).""" + return FieldBindingSpec( + binding_id=f"cv_dlg_{key}", + dossier_key=key, + anchor=FieldAnchorSpec( + label_patterns=(f"^{label}$",), section_patterns=DIALOG_SECTION + ), + control_kind=kind, + codec=codec, + placeholder_values=PLACEHOLDERS, + required_in_pack=required, + ) + + +def _shown( + key: str, + label: str, + codec: FieldCodecSpec = TEXT, + section: tuple[str, ...] = RESULT_SECTION, + *, + blank: tuple[str, ...] = (), +) -> FieldBindingSpec: + extra = {"placeholder_values": ("",) + blank} if blank else {} + return FieldBindingSpec( + binding_id=f"cv_rb_{key}", + dossier_key=key, + anchor=FieldAnchorSpec( + label_patterns=(f"^{label}$",), section_patterns=section + ), + codec=codec, + **extra, + ) + + +def _panel( + screen_id: str, landmark: str, header: str, section: str +) -> WizardScreenSpec: + return WizardScreenSpec( + screen_id=screen_id, + landmark_selector=landmark, + next_button_anchor=FieldAnchorSpec( + label_patterns=(r"^Save panel$",), section_patterns=(f"^{section}$",) + ), + revisit_selector=f"#hdr-{header}", + ) + + +PROFILE = UIProfileSpec( + profile_id="heldout4b0_corvane", + auth_wall_selectors=('input[type="password"]',), + # The Add motorcycle dialog is a form panel, not a confirmation: it is + # handled as its own screen. Every other open dialog still stops the run. + modal_dialog_selectors=( + "dialog[open]:not(#bike)", + '[role="dialog"][aria-modal="true"]:not(#bike)', + "[data-modal-open='true']:not(#bike)", + ), +) + +VIN_DECODER = PopupSubroutineSpec( + subroutine_id="cv_vin_decoder", + trigger_anchor=FieldAnchorSpec( + label_patterns=(r"^Decode VIN$",), section_patterns=DIALOG_SECTION + ), + popup_mode="window", + popup_url_pattern=r"/rater/vin-decoder", + # One button per decoded vehicle; keep the row whose cells equal the + # intake's year, make and model. No single row: the run stops. + commit_anchor=FieldAnchorSpec( + label_patterns=(r"^Use this vehicle$",), + row_cell_dossier_keys=(BIKE_YEAR, BIKE_MAKE, BIKE_MODEL), + ), + parent_return_anchor=FieldAnchorSpec( + label_patterns=(r"^Model$",), section_patterns=DIALOG_SECTION + ), + return_output_key=BIKE_DECODED, + return_codec=FOLD, + # No condition key: with a condition set to the VIN (a string, not a + # yes/no flag) the dev run never opened the decoder. The VIN binding is + # required, so a case with no single motorcycle stops before this. +) + +PACK = FormPack( + pack_id="heldout4b0.corvane.motorcycle.v1", + domain_schema="personal_lines.motorcycle", + ui_profile_id=PROFILE.profile_id, + bindings=( + # Quote basics + _bind( + "policy.effective_date", + "effective_date", + "Effective date", + codec=DATE_MDY, + required=True, + ), + _bind( + "rider.prior_insurance", + "prior_insurance", + "Prior motorcycle insurance", + ControlKind.SELECT, + FOLD, + required=True, + ), + # Rider + _bind("rider.first_name", "first_name", "First name", required=True), + _bind("rider.last_name", "last_name", "Last name", required=True), + _bind( + "rider.date_of_birth", + "dob", + "Date of birth", + codec=DATE_MDY, + required=True, + ), + _bind("rider.phone", "phone", "Phone"), + _bind( + "rider.years_endorsed", + "years_endorsed", + ENDORSED, + codec=INT, + required=True, + ), + _bind( + "rider.safety_course", + "safety_course", + SAFETY, + ControlKind.SELECT, + BOOL, + required=True, + ), + # Garaging address + _bind("garaging.street", "street", "Street address", required=True), + _bind("garaging.city", "city", "City", required=True), + _bind( + "garaging.state", + "state", + "State", + ControlKind.SELECT, + FOLD, + required=True, + ), + _bind("garaging.zip", "zip", "ZIP", required=True), + # Motorcycles + _bind( + ANNUAL_MILES, + "annual_miles", + "Annual mileage", + codec=INT, + defaults=("6000",), + required=True, + ), + _dialog(BIKE_VIN, "VIN", required=True), + _dialog(BIKE_OWNERSHIP, "Ownership", ControlKind.SELECT, FOLD, required=True), + _dialog(BIKE_LIENHOLDER, "Lienholder name"), + # Coverage + _bind( + "coverage.liability_limits", + "bi_pd_limits", + LIABILITY, + ControlKind.SELECT, + TEXT, + defaults=("25/50/25",), + required=True, + ), + _bind( + "coverage.collision_deductible", + "collision_deductible", + "Collision deductible", + ControlKind.SELECT, + MONEY, + defaults=("500", "$500"), + required=True, + ), + _bind( + "coverage.comprehensive_deductible", + "comprehensive_deductible", + "Comprehensive deductible", + ControlKind.SELECT, + MONEY, + defaults=("500", "$500"), + required=True, + ), + _bind( + "coverage.cpe_amount", + "cpe_coverage", + "Custom parts and equipment", + codec=INT, + defaults=("0",), + required=True, + ), + _bind( + "coverage.roadside", + "roadside", + "Roadside coverage", + ControlKind.SELECT, + FOLD, + defaults=("Not included",), + required=True, + ), + ), + popup_subroutines=(VIN_DECODER,), + screens=( + WizardScreenSpec( + screen_id="cv_rated", + landmark_selector="#submit-app", + is_commit_screen=True, + commit_button_anchor=FieldAnchorSpec( + label_patterns=(r"^Submit application$",) + ), + ), + WizardScreenSpec( + screen_id="cv_bike_dialog", + landmark_selector="#bike[open]", + next_button_anchor=FieldAnchorSpec( + label_patterns=(r"^Add to quote$",), section_patterns=DIALOG_SECTION + ), + ), + _panel("cv_basics", "#effective_date", "basics", "Quote basics"), + _panel("cv_rider", "#first_name", "rider", "Rider"), + _panel("cv_garaging", "#street", "garaging", "Garaging address"), + # The motorcycles panel once a bike is in the grid: save it. + _panel("cv_motorcycles", "#bike-grid tbody tr", "motorcycles", "Motorcycles"), + # The motorcycles panel with no bike yet: add one. + WizardScreenSpec( + screen_id="cv_motorcycles_add", + landmark_selector="#annual_miles", + next_button_anchor=FieldAnchorSpec(label_patterns=(r"^Add motorcycle$",)), + revisit_selector="#hdr-motorcycles", + ), + _panel("cv_coverage", "#bi_pd_limits", "coverage", "Coverage"), + # Every panel saved and closed: rate the quote. + WizardScreenSpec( + screen_id="cv_rate", + landmark_selector="#rate", + next_button_anchor=FieldAnchorSpec(label_patterns=(r"^Rate this quote$",)), + ), + ), + summary_check=SummaryCheckSpec( + field_readbacks=( + _shown("policy.effective_date", "Effective date", DATE_MDY), + _shown("rider.prior_insurance", "Prior motorcycle insurance", FOLD), + _shown("rider.first_name", "First name"), + _shown("rider.last_name", "Last name"), + _shown("rider.date_of_birth", "Date of birth", DATE_MDY), + _shown("rider.phone", "Phone", PHONE), + _shown("rider.years_endorsed", ENDORSED, INT), + _shown("rider.safety_course", SAFETY, BOOL), + _shown("garaging.street", "Street address", FOLD), + _shown("garaging.city", "City", FOLD), + _shown("garaging.state", "State", FOLD), + _shown("garaging.zip", "ZIP"), + _shown(ANNUAL_MILES, "Annual mileage", INT), + _shown("coverage.liability_limits", LIABILITY), + _shown("coverage.collision_deductible", "Collision deductible", MONEY), + _shown( + "coverage.comprehensive_deductible", "Comprehensive deductible", MONEY + ), + _shown("coverage.cpe_amount", "Custom parts and equipment", MONEY), + _shown("coverage.roadside", "Roadside coverage", FOLD), + _shown(BIKE_VIN, "VIN", FOLD, BIKE_RESULT_SECTION), + _shown(BIKE_YEAR, "Year", INT, BIKE_RESULT_SECTION), + _shown(BIKE_MAKE, "Make", FOLD, BIKE_RESULT_SECTION), + _shown(BIKE_MODEL, "Model", FOLD, BIKE_RESULT_SECTION), + _shown(BIKE_DECODED, "Model", FOLD, BIKE_RESULT_SECTION), + _shown(BIKE_OWNERSHIP, "Ownership", FOLD, BIKE_RESULT_SECTION), + _shown( + BIKE_LIENHOLDER, "Lienholder", TEXT, BIKE_RESULT_SECTION, blank=DASH + ), + ), + outputs=( + OutputExtractionSpec( + output_key="quote.reference", + anchor=FieldAnchorSpec( + label_patterns=(r"^Quote (?:reference|number)$",), + section_patterns=RESULT_SECTION, + ), + value_pattern=r"\b(CVQ-\d+)\b", + required=True, + ), + ), + ), + max_commit_mutations=1, + ignored_intake_keys=( + # Entered through derived_facts: the one motorcycle's VIN, ownership + # and lienholder in the dialog; year, make and model through the + # decoder row; mileage restated as annual mileage. + "motorcycles", + "motorcycles.lienholder", + "usage.mileage", + "usage.mileage_period", + ), +) + + +def derived_facts(raw: dict[str, Any]) -> dict[str, Any]: + """Intake facts restated the way the portal shows them. + + - The intake's motorcycle as flat keys, only when there is exactly one + (the dialog adds one bike; with none or several, the VIN has no value + and the run stops for a person). + - Mileage as annual mileage (a per-month figure times twelve). + """ + out: dict[str, Any] = {} + bikes = raw.get("motorcycles", "Motorcycles") + if isinstance(bikes, list) and len(bikes) == 1 and isinstance(bikes[0], dict): + bike = bikes[0] + for field, key in ( + ("vin", BIKE_VIN), + ("year", BIKE_YEAR), + ("make", BIKE_MAKE), + ("model", BIKE_MODEL), + ("ownership", BIKE_OWNERSHIP), + ("lienholder", BIKE_LIENHOLDER), + ): + value = bike.get(field) + if value is not None and str(value).strip(): + out[key] = value + lien = raw.get("motorcycles.lienholder") + if BIKE_LIENHOLDER not in out and lien is not None and str(lien).strip(): + out[BIKE_LIENHOLDER] = lien + miles = raw.get("usage.mileage") + # No period given: unknown, so nothing is derived and the run stops. + period = str(raw.get("usage.mileage_period") or "").strip().casefold() + if isinstance(miles, (int, float)) and not isinstance(miles, bool): + if period == "per year": + out[ANNUAL_MILES] = int(miles) + elif period == "per month": + out[ANNUAL_MILES] = int(miles) * 12 + return out diff --git a/packages/flow/benchmark/form_tx_heldout_run/packs4b0/thistlebrook.py b/packages/flow/benchmark/form_tx_heldout_run/packs4b0/thistlebrook.py new file mode 100644 index 0000000000..6e65acffc9 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout_run/packs4b0/thistlebrook.py @@ -0,0 +1,335 @@ +"""Thistlebrook pet health quote: form pack (data only). + +Written from the tb-dev intake, the thistlebrook intake vocabulary and the +dev-case demonstration (``form_tx_heldout4_run/demos/thistlebrook.jsonl``) +only; no portal source, scored intake or answer key was read. What the +demonstration shows: + +- A sign-in page (password field), then one page (``/quote``) that shows one + card at a time, each with the same "Next" (and "Back") button: name; + contact; pet's name and species; breed, weight and birth month and year; + health questions; plan; policy start date. Then "Check 's quote" with + one "Change" button per section and "Get my quote". +- Choice questions are ARIA radio groups (buttons with role radio) with a + visible group label and no name or id; text and select controls have ids. + So every binding is anchored by its visible label only, and all cards are + one declared screen: the layer moves on when the labels change. +- The breed is a type-ahead combobox over a breed list. +- The birth date is asked as a month name and a year (two selects); no day. +- The weight box is labelled "Weight (lb)"; no unit control was shown. +- The start date is typed as MM/DD/YYYY and the blank form shows a date + computed by the portal (the day after the dev run). +- On the blank plan card the annual limit ($10,000), reimbursement (80%) and + deductible ($250) are already selected (portal defaults) and the wellness + box is unticked. The dev intake asks for the same values. +- No question for mixed breed, spay or neuter date, time outdoors, indoor + only or condition notes appeared on the dev case. They are bound by guessed + labels; when a guess does not match, the intake key is not entered and the + run cannot reach ``verified_done``. +- After "Get my quote" the page "'s quote is ready" lists every stored + value as a definition list; the quote reference (TPH-...) is in the URL. +""" + +from __future__ import annotations + +import re +from typing import Any + +from openadapt_flow.form_tx.types import ( + ControlKind, + FieldAnchorSpec, + FieldBindingSpec, + FieldCodecSpec, + FormCodecKind, + FormPack, + OutputExtractionSpec, + PrefillPolicy, + SummaryCheckSpec, + UIProfileSpec, + WizardScreenSpec, +) + +CASE_PREFIX = "tb" + +TEXT = FieldCodecSpec(kind=FormCodecKind.WHITESPACE_COLLAPSE) +FOLD = FieldCodecSpec(kind=FormCodecKind.CASEFOLD) +INT = FieldCodecSpec(kind=FormCodecKind.INTEGER) +DATE_MDY = FieldCodecSpec(kind=FormCodecKind.ISO_DATE, date_order="MDY") +MONEY = FieldCodecSpec(kind=FormCodecKind.CURRENCY_CENTS, currency_symbol="$") +BOOL = FieldCodecSpec(kind=FormCodecKind.BOOLEAN_YES_NO) +PHONE = FieldCodecSpec(kind=FormCodecKind.PHONE_DIGITS) + +RADIO = ControlKind.RADIO_GROUP +SELECT = ControlKind.SELECT + +PLACEHOLDERS = ("", "Month", "Year") + +RESULT_SECTION = (r"quote is ready$",) + +_MONTHS = ( + "January", "February", "March", "April", "May", "June", "July", + "August", "September", "October", "November", "December", +) # fmt: skip + +# Derived keys (see derived_facts). +PHONE_KEY = "owner.phone_shown" +BREED_KEY = "pet.breed_entry" +WEIGHT_KEY = "pet.weight_lb" +BIRTH_MONTH_KEY = "pet.birth_month" +BIRTH_YEAR_KEY = "pet.birth_year" + +# Guessed labels for questions the dev case never showed (form and result). +SPAY_DATE = ( + r"(?:spay|neuter)\w*\b.*\b(?:date|when)\b|\b(?:date|when)\b.*(?:spay|neuter)" +) +OUTDOOR = ( + r"\bminutes?\b.*\b(?:outdoors?|outside)\b|\b(?:outdoors?|outside)\b.*\bminutes?\b" +) +INDOOR = r"\bindoors?\b.*\bonly\b|\bonly\b.*\bindoors?\b" +_NOTE_WORD = r"(?:notes?|details?|describe|tell us)" +_HEALTH_WORD = r"(?:conditions?|illness|injury)" +NOTES = rf"\b{_NOTE_WORD}\b.*\b{_HEALTH_WORD}\b|\b{_HEALTH_WORD}\b.*\b{_NOTE_WORD}\b" + + +def _p(label: str) -> str: + return "^" + re.escape(label) + "$" + + +def _bind( + key: str, + label: str, + kind: ControlKind = ControlKind.TEXT, + codec: FieldCodecSpec = TEXT, + *, + exact: bool = True, + defaults: tuple[str, ...] = (), + required: bool = False, + rerender: bool = False, + typeahead: int | None = None, + prefill: PrefillPolicy = PrefillPolicy.HALT_ON_CONFLICT, +) -> FieldBindingSpec: + return FieldBindingSpec( + binding_id=f"tb_{key}", + dossier_key=key, + anchor=FieldAnchorSpec(label_patterns=(_p(label) if exact else label,)), + control_kind=kind, + codec=codec, + prefill_policy=prefill, + placeholder_values=PLACEHOLDERS, + portal_default_values=defaults, + required_in_pack=required, + triggers_re_render=rerender, + typeahead_query_chars=typeahead, + ) + + +def _shown( + key: str, label: str, codec: FieldCodecSpec = TEXT, *, exact: bool = True +) -> FieldBindingSpec: + return FieldBindingSpec( + binding_id=f"tb_rb_{key}", + dossier_key=key, + anchor=FieldAnchorSpec( + label_patterns=(_p(label) if exact else label,), + section_patterns=RESULT_SECTION, + ), + codec=codec, + ) + + +PROFILE = UIProfileSpec( + profile_id="heldout4b0_thistlebrook", + auth_wall_selectors=('input[type="password"]',), +) + +# The review's first "Change" button brings the cards back to the first one +# (only on the review screen; not exercised on the dev case). +_FIRST_CHANGE = "#sum > div:nth-of-type(1) > button" + +PACK = FormPack( + pack_id="heldout4b0.thistlebrook.pet.v1", + domain_schema="personal_lines.pet_health", + ui_profile_id=PROFILE.profile_id, + bindings=( + # You + _bind("owner.first_name", "First name", required=True), + _bind("owner.last_name", "Last name", required=True), + # Contact + _bind("owner.email", "Email", required=True), + _bind(PHONE_KEY, "Mobile number", required=True), + _bind("owner.zip", "ZIP code", required=True), + # Your pet + _bind("pet.name", "Pet's name", required=True), + _bind("pet.species", "Species", RADIO, FOLD, required=True, rerender=True), + # Breed and age + _bind( + BREED_KEY, + "Breed", + ControlKind.PORTAL_COMBOBOX, + TEXT, + required=True, + ), + _bind(WEIGHT_KEY, "Weight (lb)", codec=INT, required=True), + _bind(BIRTH_MONTH_KEY, "Birth month", SELECT, FOLD, required=True), + _bind(BIRTH_YEAR_KEY, "Birth year", SELECT, FOLD, required=True), + # Health + _bind( + "pet.spayed_neutered", + "Spayed or neutered", + RADIO, + BOOL, + required=True, + rerender=True, + ), + _bind("pet.spay_neuter_date", SPAY_DATE, codec=DATE_MDY, exact=False), + _bind( + "pet.recent_illness", + "Illness or injury in the last 12 months", + RADIO, + BOOL, + required=True, + rerender=True, + ), + _bind("pet.condition_notes", NOTES, exact=False), + _bind("pet.outdoor_minutes_per_day", OUTDOOR, codec=INT, exact=False), + _bind("pet.indoor_only", INDOOR, RADIO, FOLD, exact=False, rerender=True), + # Plan (three radios come pre-selected on the blank card) + _bind( + "plan.annual_limit", + "Annual limit", + RADIO, + FOLD, + defaults=("$10,000",), + required=True, + ), + _bind( + "plan.reimbursement", + "Reimbursement", + RADIO, + FOLD, + defaults=("80%",), + required=True, + ), + _bind( + "plan.deductible", + "Annual deductible", + RADIO, + MONEY, + defaults=("250", "$250"), + required=True, + ), + _bind( + "plan.wellness", + "Add routine care (wellness)", + ControlKind.CHECKBOX, + BOOL, + defaults=("false",), + required=True, + ), + # Start date: the blank card shows a date the portal computes from + # today, so it differs between runs; the intake date is typed over it. + _bind( + "policy.start_date", + "Policy start date", + codec=DATE_MDY, + defaults=("11/22/2026",), + required=True, + prefill=PrefillPolicy.OVERWRITE_WITH_DOSSIER, + ), + ), + screens=( + WizardScreenSpec( + screen_id="tb_review", + landmark_selector="#get-quote", + is_commit_screen=True, + commit_button_anchor=FieldAnchorSpec(label_patterns=(r"^Get my quote$",)), + ), + WizardScreenSpec( + screen_id="tb_card", + landmark_selector="#next", + next_button_anchor=FieldAnchorSpec(label_patterns=(r"^Next$",)), + revisit_selector=_FIRST_CHANGE, + ), + ), + summary_check=SummaryCheckSpec( + field_readbacks=( + _shown("owner.first_name", "First name"), + _shown("owner.last_name", "Last name"), + _shown("owner.email", "Email", FOLD), + _shown(PHONE_KEY, "Mobile number", PHONE), + _shown("owner.zip", "ZIP code"), + _shown("pet.name", "Pet's name"), + _shown("pet.species", "Species", FOLD), + _shown(BREED_KEY, "Breed", FOLD), + _shown(WEIGHT_KEY, "Weight (lb)", INT), + _shown(BIRTH_MONTH_KEY, "Birth month", FOLD), + _shown(BIRTH_YEAR_KEY, "Birth year", FOLD), + _shown("pet.spayed_neutered", "Spayed or neutered", BOOL), + _shown("pet.spay_neuter_date", SPAY_DATE, DATE_MDY, exact=False), + _shown( + "pet.recent_illness", "Illness or injury in the last 12 months", BOOL + ), + _shown("pet.condition_notes", NOTES, exact=False), + _shown("pet.outdoor_minutes_per_day", OUTDOOR, INT, exact=False), + _shown("pet.indoor_only", INDOOR, FOLD, exact=False), + _shown("plan.annual_limit", "Annual limit", FOLD), + _shown("plan.reimbursement", "Reimbursement", FOLD), + _shown("plan.deductible", "Annual deductible", MONEY), + _shown("plan.wellness", "Add routine care (wellness)", BOOL), + _shown("policy.start_date", "Policy start date", DATE_MDY), + ), + outputs=( + OutputExtractionSpec( + output_key="quote.reference", + anchor=FieldAnchorSpec( + label_patterns=(r"^Quote (?:reference|number|ID)$",), + section_patterns=RESULT_SECTION, + ), + value_pattern=r"\b(TPH-[0-9A-Z]+)\b", + required=True, + ), + ), + ), + max_commit_mutations=1, + ignored_intake_keys=( + # Entered through derived facts in the form the portal asks for. + "owner.phone", + "pet.breed", + "pet.weight", + "pet.weight_unit", + "pet.birth_date", + # No mixed-breed question was shown; a mixed breed withholds the + # breed fact (derived_facts), so the breed stops for a person. + "pet.mixed_breed", + ), +) + + +def derived_facts(raw: dict[str, Any]) -> dict[str, Any]: + """Intake facts restated the way the portal asks for and shows them. + + - The mobile number as ddd-ddd-dddd (as the review shows it). + - The breed, unless the intake says mixed breed (no such question was + seen, so a person decides how to enter it). + - The weight, only when the intake gives it in pounds (the box is + labelled "Weight (lb)"; no conversion). + - The birth month name and year (the portal asks for no day). + """ + out: dict[str, Any] = {} + digits = re.sub(r"\D", "", str(raw.get("owner.phone") or "")) + if len(digits) == 11 and digits.startswith("1"): + digits = digits[1:] + if len(digits) == 10: + out[PHONE_KEY] = f"{digits[:3]}-{digits[3:6]}-{digits[6:]}" + breed = str(raw.get("pet.breed") or "").strip() + if breed and raw.get("pet.mixed_breed") is not True: + out[BREED_KEY] = breed + weight = raw.get("pet.weight") + if weight is not None and str(raw.get("pet.weight_unit") or "") == "lb": + out[WEIGHT_KEY] = weight + iso = str(raw.get("pet.birth_date") or "") + m = re.fullmatch(r"(\d{4})-(\d{2})-(\d{2})", iso) + if m and 1 <= int(m.group(2)) <= 12: + out[BIRTH_MONTH_KEY] = _MONTHS[int(m.group(2)) - 1] + out[BIRTH_YEAR_KEY] = m.group(1) + return out diff --git a/packages/flow/benchmark/form_tx_heldout_run/packs4b0/wrenfield.py b/packages/flow/benchmark/form_tx_heldout_run/packs4b0/wrenfield.py new file mode 100644 index 0000000000..2adf9a9be2 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout_run/packs4b0/wrenfield.py @@ -0,0 +1,346 @@ +"""Wrenfield condo quote: form pack (data only). + +Written from the wf-dev intake, the intake vocabulary and the dev-case +demonstration (``form_tx_heldout4_run/demos/wrenfield.jsonl``) only; no portal +source, scored intake or answer key was read. What the demonstration shows: + +- A sign-in page (password field) before the quote. +- Four steps on one page, with a step bar ("1. Your unit" ... "4. Review"): + Your unit, About you, Coverage ("Continue", "Continue", "Continue to + review"), then Review with one "Edit" button per section, a confirmation + checkbox and "Get my quote". +- Every control has a ``name`` equal to its own id and a visible label. +- Dates are typed as MM/DD/YYYY; coverage amounts are typed as digits. +- The condominium association is a type-ahead over a directory; the chosen + entry reads " (, )". +- Water and sewer backup shows "Not included" and the deductible radio shows + $1,000 checked before the demonstrator touched them (portal defaults). +- "Estimate it" next to Coverage A opens an estimator the dev case never + used, so it is not declared: a case without a Coverage A amount stops for a + person. Questions that appear only for other occupancies (months occupied, + seasonal credit, tenant lease end) were never shown, so they are not bound + either and stop for a person when they appear. +- After "Get my quote" the page "Your condo quote is ready" lists every stored + value as a table; the quote reference (WF-...) is shown in the URL. +""" + +from __future__ import annotations + +from typing import Any + +from openadapt_flow.form_tx.types import ( + ControlKind, + FieldAnchorSpec, + FieldBindingSpec, + FieldCodecSpec, + FormCodecKind, + FormPack, + OutputExtractionSpec, + SummaryCheckSpec, + UIProfileSpec, + WizardScreenSpec, +) + +CASE_PREFIX = "wf" + +TEXT = FieldCodecSpec(kind=FormCodecKind.WHITESPACE_COLLAPSE) +FOLD = FieldCodecSpec(kind=FormCodecKind.CASEFOLD) +INT = FieldCodecSpec(kind=FormCodecKind.INTEGER) +DATE_MDY = FieldCodecSpec(kind=FormCodecKind.ISO_DATE, date_order="MDY") +MONEY = FieldCodecSpec(kind=FormCodecKind.CURRENCY_CENTS, currency_symbol="$") +BOOL = FieldCodecSpec(kind=FormCodecKind.BOOLEAN_YES_NO) +PHONE = FieldCodecSpec(kind=FormCodecKind.PHONE_DIGITS) + +PLACEHOLDERS = ( + "", + "Select…", + "Select...", + "-- Select --", +) + +RESULT_SECTION = (r"^Your condo quote is ready$",) + +ASSOCIATION_KEY = "association.listing" +CONFIRM_KEY = "flow.confirm_accurate" + +# Labels as the form and the result page show them. +ASSOCIATION = r"Condominium association" +YEAR_BUILT = r"Year the building was built" +FLOOR = r"Floor the unit is on" +OCCUPANCY = r"How is the unit occupied\?" +WOOD_STOVE = r"Wood-burning stove or fireplace insert" +IMPROVEMENTS = r"Unit improvements and betterments \(Coverage A\)" +PERSONAL_PROPERTY = r"Personal property \(Coverage C\)" +WATER_BACKUP = r"Water and sewer backup" + + +def _bind( + key: str, + name: str, + label: str, + section: str, + kind: ControlKind = ControlKind.TEXT, + codec: FieldCodecSpec = TEXT, + *, + defaults: tuple[str, ...] = (), + required: bool = False, + typeahead: int | None = None, +) -> FieldBindingSpec: + return FieldBindingSpec( + binding_id=f"wf_{name}", + dossier_key=key, + anchor=FieldAnchorSpec( + label_patterns=(f"^{label}$",), + name_or_id_patterns=(rf"^{name}(?:\s|$)",), + section_patterns=(f"^{section}$",), + ), + control_kind=kind, + codec=codec, + placeholder_values=PLACEHOLDERS, + portal_default_values=defaults, + required_in_pack=required, + typeahead_query_chars=typeahead, + ) + + +def _shown(key: str, label: str, codec: FieldCodecSpec = TEXT) -> FieldBindingSpec: + """A read-back of the result page's table of stored values.""" + return FieldBindingSpec( + binding_id=f"wf_rb_{key}", + dossier_key=key, + anchor=FieldAnchorSpec( + label_patterns=(f"^{label}$",), section_patterns=RESULT_SECTION + ), + codec=codec, + ) + + +def _screen( + screen_id: str, landmark: str, next_label: str, step: int +) -> WizardScreenSpec: + return WizardScreenSpec( + screen_id=screen_id, + landmark_selector=landmark, + next_button_anchor=FieldAnchorSpec(label_patterns=(f"^{next_label}$",)), + revisit_selector=f"body > div > nav > ol > li:nth-of-type({step}) > button", + ) + + +PROFILE = UIProfileSpec( + profile_id="heldout4b0_wrenfield", + auth_wall_selectors=('input[type="password"]',), +) + +PACK = FormPack( + pack_id="heldout4b0.wrenfield.condo.v1", + domain_schema="personal_lines.condo", + ui_profile_id=PROFILE.profile_id, + bindings=( + # 1. Your unit + _bind( + ASSOCIATION_KEY, + "association", + ASSOCIATION, + "Your unit", + ControlKind.PORTAL_COMBOBOX, + TEXT, + required=True, + typeahead=6, + ), + _bind( + "unit.street", "street", "Unit street address", "Your unit", required=True + ), + _bind("unit.unit_number", "unit_number", "Unit number", "Your unit"), + _bind("unit.city", "city", "City", "Your unit", required=True), + _bind( + "unit.state", + "state", + "State", + "Your unit", + ControlKind.SELECT, + FOLD, + required=True, + ), + _bind("unit.zip", "zip", "ZIP code", "Your unit", required=True), + _bind( + "building.year_built", + "year_built", + YEAR_BUILT, + "Your unit", + codec=INT, + required=True, + ), + _bind("unit.floor", "floor", FLOOR, "Your unit", codec=INT, required=True), + _bind( + "unit.occupancy", + "occupancy", + OCCUPANCY, + "Your unit", + ControlKind.SELECT, + FOLD, + required=True, + ), + _bind( + "unit.wood_stove", + "wood_stove", + WOOD_STOVE, + "Your unit", + ControlKind.SELECT, + BOOL, + required=True, + ), + # 2. About you + _bind( + "owner.first_name", "first_name", "First name", "About you", required=True + ), + _bind("owner.last_name", "last_name", "Last name", "About you", required=True), + _bind( + "owner.date_of_birth", + "dob", + "Date of birth", + "About you", + codec=DATE_MDY, + required=True, + ), + _bind("owner.email", "email", "Email", "About you"), + _bind("owner.phone", "phone", "Mobile phone", "About you"), + # 3. Coverage + _bind( + "coverage.improvements", + "improvements", + IMPROVEMENTS, + "Coverage", + codec=INT, + required=True, + ), + _bind( + "coverage.personal_property", + "personal_property", + PERSONAL_PROPERTY, + "Coverage", + codec=INT, + required=True, + ), + _bind( + "coverage.loss_assessment", + "loss_assessment", + "Loss assessment", + "Coverage", + ControlKind.SELECT, + MONEY, + required=True, + ), + _bind( + "coverage.water_backup", + "water_backup", + WATER_BACKUP, + "Coverage", + ControlKind.SELECT, + FOLD, + defaults=("Not included",), + required=True, + ), + _bind( + "coverage.deductible", + "deductible", + "Deductible", + "Deductible", + ControlKind.RADIO_GROUP, + MONEY, + defaults=("1000", "$1,000"), + required=True, + ), + _bind( + "policy.start_date", + "start_date", + "Policy start date", + "Coverage", + codec=DATE_MDY, + required=True, + ), + # 4. Review: the confirmation box, ticked by the person submitting. + FieldBindingSpec( + binding_id="wf_confirm", + dossier_key=CONFIRM_KEY, + anchor=FieldAnchorSpec( + label_patterns=(r"^I confirm the information above is accurate$",), + name_or_id_patterns=(r"^confirm$",), + ), + control_kind=ControlKind.CHECKBOX, + codec=BOOL, + ), + ), + screens=( + WizardScreenSpec( + screen_id="wf_review", + landmark_selector="#get-quote", + is_commit_screen=True, + commit_button_anchor=FieldAnchorSpec(label_patterns=(r"^Get my quote$",)), + revisit_selector="body > div > nav > ol > li:nth-of-type(4) > button", + ), + _screen("wf_unit", "#association", "Continue", 1), + _screen("wf_about", "#first_name", "Continue", 2), + _screen("wf_coverage", "#improvements", "Continue to review", 3), + ), + summary_check=SummaryCheckSpec( + field_readbacks=( + _shown(ASSOCIATION_KEY, ASSOCIATION, FOLD), + _shown("unit.street", "Unit street address", FOLD), + _shown("unit.unit_number", "Unit number", FOLD), + _shown("unit.city", "City", FOLD), + _shown("unit.state", "State", FOLD), + _shown("unit.zip", "ZIP code"), + _shown("building.year_built", YEAR_BUILT, INT), + _shown("unit.floor", FLOOR, INT), + _shown("unit.occupancy", OCCUPANCY, FOLD), + _shown("unit.wood_stove", WOOD_STOVE, BOOL), + _shown("owner.first_name", "First name"), + _shown("owner.last_name", "Last name"), + _shown("owner.date_of_birth", "Date of birth", DATE_MDY), + _shown("owner.email", "Email", FOLD), + _shown("owner.phone", "Mobile phone", PHONE), + _shown("coverage.improvements", IMPROVEMENTS, MONEY), + _shown("coverage.personal_property", PERSONAL_PROPERTY, MONEY), + _shown("coverage.loss_assessment", "Loss assessment", MONEY), + _shown("coverage.water_backup", WATER_BACKUP, FOLD), + _shown("coverage.deductible", "Deductible", MONEY), + _shown("policy.start_date", "Policy start date", DATE_MDY), + ), + outputs=( + OutputExtractionSpec( + output_key="quote.reference", + anchor=FieldAnchorSpec( + label_patterns=(r"^Quote (?:reference|number)$",), + section_patterns=RESULT_SECTION, + ), + value_pattern=r"\b(WF-\d+)\b", + required=True, + ), + ), + ), + max_commit_mutations=1, + ignored_intake_keys=( + # Entered through derived_facts as the association directory entry. + "association.name", + ), +) + + +def derived_facts(raw: dict[str, Any]) -> dict[str, Any]: + """Intake facts restated the way the portal shows them. + + - The association directory entry: " (, )", with the + unit's city and state (the unit is in the association's building). + Without both, the name alone matches no entry and the run stops. + - The review page's confirmation box, ticked by the person submitting. + """ + out: dict[str, Any] = {} + name = str(raw.get("association.name") or "").strip() + city = str(raw.get("unit.city") or "").strip() + state = str(raw.get("unit.state") or "").strip() + if name and city and state: + out[ASSOCIATION_KEY] = f"{name} ({city}, {state})" + elif name: + out[ASSOCIATION_KEY] = name + out[CONFIRM_KEY] = True + return out diff --git a/packages/flow/benchmark/form_tx_heldout_run/packs5/__init__.py b/packages/flow/benchmark/form_tx_heldout_run/packs5/__init__.py new file mode 100644 index 0000000000..5347773dd4 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout_run/packs5/__init__.py @@ -0,0 +1,55 @@ +"""Form packs for the sealed Set 4 v2 (data only). + +Each portal's pack lives in its own module, written from that portal's dev +intake and the dev-case demonstration in ``../../form_tx_set4v2_run/demos``, +without reading portal source, scored intakes or the answer key. A module +exports ``PACK``, ``PROFILE`` and optionally ``derived_facts(raw) -> dict``, +facts restated from the intake in the form the portal shows them (never new +information). +""" + +from __future__ import annotations + +import importlib +from typing import Any + +from benchmark.form_tx_heldout_run.packs import _intake_value +from openadapt_flow.form_tx.types import DossierFact, InputDossier, ProvenanceKind + +PORTAL_IDS = ("brackwater", "larkspan", "hollowfen") +_MODULES: dict[str, Any] = {} +for _pid in PORTAL_IDS: + try: + _MODULES[_pid] = importlib.import_module(f"{__name__}.{_pid}") + except ModuleNotFoundError as _exc: # a pack not written yet + if _exc.name != f"{__name__}.{_pid}": + raise +PACKS: dict[str, Any] = {pid: (m.PACK, m.PROFILE) for pid, m in _MODULES.items()} + + +def dossier_for(intake: dict[str, Any], request_id: str) -> InputDossier: + source = f"intake:{intake['case_id']}" + raw = intake["facts"] + values = {k: _intake_value(v) for k, v in raw.items() if v is not None and v != ""} + module = next( + ( + mod + for mod in _MODULES.values() + if str(intake["case_id"]).startswith(mod.CASE_PREFIX + "-") + ), + None, + ) + if module is not None and hasattr(module, "derived_facts"): + for key, value in module.derived_facts(raw).items(): + values.setdefault(key, value) + facts = { + key: DossierFact( + key=key, + value=value, + provenance=ProvenanceKind.INTAKE_DOCUMENT, + source_id=source, + confidence=1.0, + ) + for key, value in values.items() + } + return InputDossier(dossier_id=source, request_id=request_id, facts=facts) diff --git a/packages/flow/benchmark/form_tx_heldout_run/packs5/brackwater.py b/packages/flow/benchmark/form_tx_heldout_run/packs5/brackwater.py new file mode 100644 index 0000000000..73c14fba1f --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout_run/packs5/brackwater.py @@ -0,0 +1,412 @@ +"""Brackwater flood quote: form pack written from the dev case only (data only). + +Written from the bfu-d01 intake, the brackwater intake vocabulary and the +dev-case demonstration (``form_tx_set4v2_run/demos/brackwater.jsonl``, one +demonstration); no portal source, scored intake or answer key was read. +What the dev case showed: + +- An agency sign-in page (password field) before the quote. +- A hub page (``/flood/hub``) with four cards: Named insured, Property and + map, Building details, Coverage and billing. Each card's "Edit ..." button + opens that section in a ```` with "Save section" and "Cancel"; + the card then reads "Complete" instead of "Not started". A review link + (``#to-review``, which the layer's surface does not list as a control) + leads to "Declarations preview". +- "NFIP community" is a type-ahead over a community directory: typing the + name lists entries such as ", City of - County ()". + The entry's form and number are not in the intake, so the pack types the + community name and the run stops for a person to choose the entry (the + layer only accepts a suggestion equal to the typed value). The person + chooses by the intake's county, which is why ``community_county`` is not + entered by the layer. +- The flood zone select shows "Zone AE" for the code "AE"; the deductible + select shows "$2,000" for "2000" and comes pre-set to 2000 on a blank + form. The dev intake also asks for 2000, so that is not proven to be a + portal default: a case with another deductible stops at that select. +- Foundation type is a radio group; none is pre-checked. +- "Estimate replacement cost" opens an estimator (square footage, + construction, finish quality, "Use estimate") inside the coverage dialog. + The dev case typed the building coverage and never opened it, so its + controls were never seen and it is not declared: a case with no building + coverage stops for a person at that field. Construction and finish feed + only the estimator. +- "Declarations preview" lists every value (dates as MM/DD/YYYY) with a + confirmation checkbox and "Submit quote request". The stored quote is then + shown under "Stored quote" (dates as ISO) with the quote reference + (BFU-Q-...). The stored quote has a "bill to" row the dev case never + showed a control for (blank on the dev case); a lender on the intake + therefore keeps the run from ``verified_done``. + +Hub navigation: the layer tells screens apart only by CSS landmarks, and a +card's "Not started" / "Complete" status is text, which a CSS selector +cannot test. The only CSS signals of a saved section are its selects still +on their blank option (flood zone, building type), so the hub opens Building +details and Property and map only. After that, and with every section saved, +the hub's next step is ``#to-review``, which the layer's surface does not +list as a control: the run stops at the hub for a person ("next button missing"). +""" + +from __future__ import annotations + +from typing import Any + +from openadapt_flow.form_tx.types import ( + ControlKind, + FieldAnchorSpec, + FieldBindingSpec, + FieldCodecSpec, + FormCodecKind, + FormPack, + OutputExtractionSpec, + SummaryCheckSpec, + UIProfileSpec, + UnboundControlSpec, + WizardScreenSpec, +) + +CASE_PREFIX = "bfu" + +TEXT = FieldCodecSpec(kind=FormCodecKind.WHITESPACE_COLLAPSE) +FOLD = FieldCodecSpec(kind=FormCodecKind.CASEFOLD) +INT = FieldCodecSpec(kind=FormCodecKind.INTEGER) +DATE_MDY = FieldCodecSpec(kind=FormCodecKind.ISO_DATE, date_order="MDY") +ISO = FieldCodecSpec(kind=FormCodecKind.ISO_DATE) +MONEY = FieldCodecSpec(kind=FormCodecKind.CURRENCY_CENTS, currency_symbol="$") +PHONE = FieldCodecSpec(kind=FormCodecKind.PHONE_DIGITS) +BOOL = FieldCodecSpec(kind=FormCodecKind.BOOLEAN_YES_NO) +# Option codes and their visible text, from the compiler report. +ZONE = FieldCodecSpec( + kind=FormCodecKind.ENUM_MAP, + enum_aliases={z: (f"Zone {z}",) for z in ("A", "AE", "AO", "VE", "X", "D")}, +) +DEDUCTIBLE = FieldCodecSpec( + kind=FormCodecKind.ENUM_MAP, + enum_aliases={ + "1250": ("$1,250",), + "2000": ("$2,000",), + "5000": ("$5,000",), + "10000": ("$10,000",), + }, +) + +PLACEHOLDERS = ("", "Select", "Select zone") + +INSURED = "Named insured" +PROPERTY = "Property and map" +BUILDING = "Building details" +COVERAGE = "Coverage and billing" + +REVIEW_SECTION = (r"^Declarations preview$",) +STORED_SECTION = (r"^Stored quote$",) + +CONFIRM_KEY = "flow.confirm_declarations" +CONFIRM_LABEL = "I confirm these declarations match the applicant's information" + + +def _bind( + key: str, + name: str, + label: str, + section: str, + kind: ControlKind = ControlKind.TEXT, + codec: FieldCodecSpec = TEXT, + **extra: Any, +) -> FieldBindingSpec: + return FieldBindingSpec( + binding_id=f"bfu_{key}", + dossier_key=key, + anchor=FieldAnchorSpec( + label_patterns=(f"^{label}$",), + name_or_id_patterns=(f"^{name}(?:\\s|$)",) if name else (), + section_patterns=(f"^{section}$",), + ), + control_kind=kind, + codec=codec, + placeholder_values=PLACEHOLDERS, + required_in_pack=True, + **extra, + ) + + +def _shown( + key: str, label: str, section: tuple[str, ...], codec: FieldCodecSpec = TEXT +) -> FieldBindingSpec: + return FieldBindingSpec( + binding_id=f"bfu_rb_{key}" if section == STORED_SECTION else f"bfu_rv_{key}", + dossier_key=key, + anchor=FieldAnchorSpec( + label_patterns=(f"^{label}$",), section_patterns=section + ), + codec=codec, + ) + + +def _dialog(screen_id: str, card: str, section: str) -> WizardScreenSpec: + return WizardScreenSpec( + screen_id=screen_id, + landmark_selector=f"#dlg-{card}[open]", + next_button_anchor=FieldAnchorSpec( + label_patterns=(r"^Save section$",), section_patterns=(f"^{section}$",) + ), + revisit_selector=f"#card-{card} > button", + ) + + +def _hub(screen_id: str, unfinished: str, card: str, title: str) -> WizardScreenSpec: + """The hub while one section is unfinished: open that section.""" + return WizardScreenSpec( + screen_id=screen_id, + landmark_selector=f"body:has({unfinished}) #card-{card}", + next_button_anchor=FieldAnchorSpec(label_patterns=(f"^Edit {title}$",)), + ) + + +SECTION_DIALOGS = ("#dlg-insured", "#dlg-property", "#dlg-building", "#dlg-coverage") +_NOT_SECTION = "".join(f":not({d})" for d in SECTION_DIALOGS) + +PROFILE = UIProfileSpec( + profile_id="set4v2_brackwater", + auth_wall_selectors=('input[type="password"]',), + # The four section editors are elements of the form itself; any + # other open dialog still stops the run. + modal_dialog_selectors=( + "dialog[open]" + _NOT_SECTION, + '[role="dialog"][aria-modal="true"]' + _NOT_SECTION, + "[data-modal-open='true']", + ), +) + +PACK = FormPack( + pack_id="set4v2.brackwater.flood.v1", + domain_schema="personal_lines.flood", + ui_profile_id=PROFILE.profile_id, + bindings=( + # Named insured + _bind("insured_name", "insured_name", "Insured name", INSURED), + _bind("insured_phone", "insured_phone", "Phone number", INSURED), + # Property and map + _bind( + "property_street", + "property_street", + "Property street address", + PROPERTY, + ), + # The control has no name; typed whole, and only a suggestion equal + # to it is accepted (none is, on the dev case: a person chooses). + _bind( + "community_name", + "", + "NFIP community", + PROPERTY, + ControlKind.PORTAL_COMBOBOX, + TEXT, + ), + _bind( + "flood_zone_certificate", + "flood_zone", + "Flood zone", + PROPERTY, + ControlKind.SELECT, + ZONE, + portal_default_values=("Select zone",), + ), + # Building details + _bind( + "building_type", + "building_type", + "Building type", + BUILDING, + ControlKind.SELECT, + FOLD, + portal_default_values=("Select",), + ), + _bind( + "foundation", + "foundation", + "Foundation type", + "Foundation type", + ControlKind.RADIO_GROUP, + FOLD, + ), + _bind("year_built", "year_built", "Year built", BUILDING, codec=INT), + _bind( + "square_feet", + "square_feet", + "Total square footage", + BUILDING, + codec=INT, + ), + # Coverage and billing + _bind( + "building_coverage", + "building_coverage", + r"Building coverage \(\$\)", + COVERAGE, + codec=INT, + ), + _bind( + "contents_coverage", + "contents_coverage", + r"Contents coverage \(\$\)", + COVERAGE, + codec=INT, + ), + _bind( + "deductible", + "deductible", + "Deductible", + COVERAGE, + ControlKind.SELECT, + DEDUCTIBLE, + ), + _bind( + "prior_claims", + "prior_claims", + "Flood claims in the last 10 years", + COVERAGE, + codec=INT, + ), + _bind( + "effective_date", + "effective_date", + "Policy effective date", + COVERAGE, + codec=DATE_MDY, + ), + # Declarations preview + _bind( + CONFIRM_KEY, + "confirm", + CONFIRM_LABEL, + "Declarations preview", + ControlKind.CHECKBOX, + BOOL, + portal_default_values=("false",), + ), + ), + screens=( + WizardScreenSpec( + screen_id="bfu_review", + landmark_selector="#confirm", + is_commit_screen=True, + commit_button_anchor=FieldAnchorSpec( + label_patterns=(r"^Submit quote request$",) + ), + revisit_selector="#to-review", + ), + _dialog("bfu_insured", "insured", INSURED), + _dialog("bfu_property", "property", PROPERTY), + _dialog("bfu_building", "building", BUILDING), + _dialog("bfu_coverage", "coverage", COVERAGE), + # Named insured and Coverage and billing hold only text inputs and a + # pre-set select, so no CSS landmark tells a saved one from an + # unsaved one (":invalid" does not: the inputs are not required, seen + # on a dev run). Opening one from the hub would loop, so neither is + # opened: the run stops at the hub for a person. + _hub( + "bfu_hub_building", + '#f-bt option[value=""]:checked', + "building", + "building details", + ), + _hub( + "bfu_hub_property", + '#f-zone option[value=""]:checked', + "property", + "property and map", + ), + # Every section saved: ``#to-review`` is not listed as a control, + # so this stops for a person ("next button missing"). + WizardScreenSpec( + screen_id="bfu_hub", + landmark_selector="#card-insured", + next_button_anchor=FieldAnchorSpec(css_selector="#to-review"), + ), + ), + summary_check=SummaryCheckSpec( + review_readbacks=( + _shown("insured_name", "Insured name", REVIEW_SECTION), + _shown("insured_phone", "Phone number", REVIEW_SECTION, PHONE), + _shown("property_street", "Property street address", REVIEW_SECTION, FOLD), + _shown("flood_zone_certificate", "Flood zone", REVIEW_SECTION, FOLD), + _shown("building_type", "Building type", REVIEW_SECTION, FOLD), + _shown("foundation", "Foundation type", REVIEW_SECTION, FOLD), + _shown("year_built", "Year built", REVIEW_SECTION, INT), + _shown("square_feet", "Total square footage", REVIEW_SECTION, INT), + _shown("building_coverage", "Building coverage", REVIEW_SECTION, MONEY), + _shown("contents_coverage", "Contents coverage", REVIEW_SECTION, MONEY), + _shown("deductible", "Deductible", REVIEW_SECTION, MONEY), + _shown( + "prior_claims", + "Flood claims in the last 10 years", + REVIEW_SECTION, + INT, + ), + _shown("effective_date", "Policy effective date", REVIEW_SECTION, DATE_MDY), + ), + # The community is shown as the directory entry, which the intake + # does not give in full: it has no read-back and is reported + # not_checked. + field_readbacks=( + _shown("insured_name", "insured name", STORED_SECTION), + _shown("insured_phone", "insured phone", STORED_SECTION, PHONE), + _shown("property_street", "property street", STORED_SECTION, FOLD), + _shown("flood_zone_certificate", "flood zone", STORED_SECTION, FOLD), + _shown("building_type", "building type", STORED_SECTION, FOLD), + _shown("foundation", "foundation", STORED_SECTION, FOLD), + _shown("year_built", "year built", STORED_SECTION, INT), + _shown("square_feet", "square feet", STORED_SECTION, INT), + _shown("building_coverage", "building coverage", STORED_SECTION, MONEY), + _shown("contents_coverage", "contents coverage", STORED_SECTION, MONEY), + _shown("deductible", "deductible", STORED_SECTION, MONEY), + _shown("prior_claims", "prior claims", STORED_SECTION, INT), + _shown("effective_date", "effective date", STORED_SECTION, ISO), + ), + outputs=( + OutputExtractionSpec( + output_key="quote.reference", + anchor=FieldAnchorSpec( + label_patterns=(r"^Quote reference$",), + section_patterns=(r"^Quote issued$",), + ), + value_pattern=r"\b(BFU-Q-\d+)\b", + ), + ), + ), + max_commit_mutations=1, + unbound_controls=( + # Each section dialog's Cancel (only the open dialog's is visible). + UnboundControlSpec(anchor=FieldAnchorSpec(label_patterns=(r"^Cancel$",))), + # The two hub cards the layer cannot tell saved from unsaved (see + # the screens): left for a person. + UnboundControlSpec( + anchor=FieldAnchorSpec(label_patterns=(r"^Edit named insured$",)) + ), + UnboundControlSpec( + anchor=FieldAnchorSpec(label_patterns=(r"^Edit coverage and billing$",)) + ), + # The replacement-cost estimator, never opened on the dev case. + UnboundControlSpec( + anchor=FieldAnchorSpec(label_patterns=(r"^Estimate replacement cost$",)) + ), + ), + ignored_intake_keys=( + # Used by the person who chooses the community directory entry. + "community_county", + # Inputs of the replacement-cost estimator only (not declared). + "construction", + "finish", + ), + # A lender has no control on any screen of the dev case, but the stored + # quote has a "bill to" row: a lender the layer did not enter is an error. + required_intake_keys=("mortgage_lender", "lien_type"), +) + + +def derived_facts(raw: dict[str, Any]) -> dict[str, Any]: + """The review page's confirmation box, ticked by the person submitting. + + Not an intake fact: the attestation the submitter makes on the review + page, whose read-backs the layer checks before the commit click. + """ + return {CONFIRM_KEY: True} diff --git a/packages/flow/benchmark/form_tx_heldout_run/packs5/hollowfen.py b/packages/flow/benchmark/form_tx_heldout_run/packs5/hollowfen.py new file mode 100644 index 0000000000..562b2fbf7b --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout_run/packs5/hollowfen.py @@ -0,0 +1,349 @@ +"""Hollowfen BOP rating worksheet: form pack written from the dev case only (data only). + +Written from the hbm-d01 intake, the hollowfen intake vocabulary and the +dev-case demonstration (``form_tx_set4v2_run/demos/hollowfen.jsonl``); no +portal source, scored intake or answer key was read. What the dev case +showed: + +- A producer sign-in page, then one worksheet page (``/bop/worksheet``) with + three tables (applicant, location, coverage), each with its own "Save" + button, and "Rate this risk" at the bottom. Every control has a visible + label and a ``name`` equal to its intake key; the surface sees no section + headings on the worksheet. +- Each "Save" stores only its own table and reloads the page at that table's + fragment (``?saved=location#location``); values typed in the other tables + are not kept. "Rate this risk" rates only what was saved. Found by dev-case + smoke runs of this pack, not from the demonstration. The layer tells the + steps apart by the fragment (``#location:target`` and so on). +- "Look up entity" next to the entity number checked a state registry; on + the dev case it found no match ("Enter the entity details manually") and + filled nothing. The entity number is not part of the stored application, + so the pack neither types it nor runs the lookup; every applicant field is + typed from the intake. +- The class code is read-only and set by "Find class...", which opens a + class finder window: a search box ("Search classes"), "Search", and one + "Select" button per result row; choosing a row writes the class back and + closes the window. The dev case searched the class keyword and the list + had one row. The row shows the code and its name, which no intake key + holds, so the row cannot be keyed: with more than one result the Select + button is ambiguous and the run stops. +- "Open BPP worksheet" (equipment, inventory, furniture and fixtures, a + calculated total and "Copy to limit") was never opened, so it is not + declared. The dev intake gives the BPP limit, which is typed. The + vocabulary defines an absent limit as the sum of the itemised amounts; + ``derived_facts`` restates that sum only when all three items are given, + otherwise the run stops at the limit for a person. +- The property deductible showed $1,000 on the blank form, which is also + the dev intake's deductible, so it is not proven to be a portal default + and is not declared as one: a case with another deductible stops there. +- "Rate this risk" leads to a "Rating summary" review (money and Yes/No + formatting, MM/DD/YYYY date) with "Submit application"; the submitted + record is then shown under "Application received" with raw stored values, + and the reference (HBM-...) is in the page text and URL. + +Dev-case smoke: the record is stored correctly, but the run ends +readback_incomplete, never verified. Every worksheet step shows every field, +so the layer records each field once per step; the result page is read back +once per step to cover those records (one stored value, read four times). +The class keyword typed in the finder and the class code it returns stay +not_checked: the record never shows the keyword, and the finder shows its +result only as a table row, not as a readable result. +""" + +from __future__ import annotations + +from typing import Any + +from openadapt_flow.form_tx.types import ( + ControlKind, + FieldAnchorSpec, + FieldBindingSpec, + FieldCodecSpec, + FormCodecKind, + FormPack, + OutputExtractionSpec, + PopupSubroutineSpec, + PrefillPolicy, + SummaryCheckSpec, + UIProfileSpec, + UnboundControlSpec, + WizardScreenSpec, +) + +CASE_PREFIX = "hbm" + +TEXT = FieldCodecSpec(kind=FormCodecKind.WHITESPACE_COLLAPSE) +FOLD = FieldCodecSpec(kind=FormCodecKind.CASEFOLD) +INT = FieldCodecSpec(kind=FormCodecKind.INTEGER) +DATE_MDY = FieldCodecSpec(kind=FormCodecKind.ISO_DATE, date_order="MDY") +DATE_ISO = FieldCodecSpec(kind=FormCodecKind.ISO_DATE, date_order="YMD") +MONEY = FieldCodecSpec(kind=FormCodecKind.CURRENCY_CENTS, currency_symbol="$") +BOOL = FieldCodecSpec(kind=FormCodecKind.BOOLEAN_YES_NO) +# The deductible select's option codes and the text it shows (compiler report). +DEDUCTIBLE = FieldCodecSpec( + kind=FormCodecKind.ENUM_MAP, + enum_aliases={ + "500": ("$500",), + "1000": ("$1,000",), + "2500": ("$2,500",), + "5000": ("$5,000",), + }, +) + +PLACEHOLDERS = ("", "-- select --", "-- Select --") + +REVIEW_SECTION = (r"^Rating summary$",) +RESULT_SECTION = (r"^Application received$",) + +SELECT = ControlKind.SELECT + +# (dossier key, form label, control kind, entry codec, optional) +FIELDS: tuple[tuple[str, str, ControlKind, FieldCodecSpec, bool], ...] = ( + ("legal_name", "Legal name", ControlKind.TEXT, TEXT, False), + ("dba_name", r"Doing business as \(DBA\)", ControlKind.TEXT, TEXT, True), + ("entity_type", "Entity type", SELECT, FOLD, False), + ("fein", "FEIN", ControlKind.TEXT, TEXT, False), + ("year_established", "Year established", ControlKind.TEXT, INT, False), + ("location_street", "Location street address", ControlKind.TEXT, TEXT, False), + ("employees", "Number of employees", ControlKind.TEXT, INT, False), + ("annual_revenue", r"Annual gross sales \(\$\)", ControlKind.TEXT, INT, False), + ("building_owned", r"Does the insured own the building\?", SELECT, BOOL, False), + ("building_limit", r"Building limit \(\$\)", ControlKind.TEXT, INT, False), + ( + "bpp_limit", + r"Business personal property limit \(\$\)", + ControlKind.TEXT, + INT, + False, + ), + ("liability_limit", "Liability limits", SELECT, TEXT, False), + ("deductible", "Property deductible", SELECT, DEDUCTIBLE, False), + ("effective_date", "Effective date", ControlKind.TEXT, DATE_MDY, False), +) + + +def _bind( + key: str, label: str, kind: ControlKind, codec: FieldCodecSpec, optional: bool +) -> FieldBindingSpec: + return FieldBindingSpec( + binding_id=f"hbm_{key}", + dossier_key=key, + anchor=FieldAnchorSpec( + label_patterns=(f"^{label}$",), + name_or_id_patterns=(f"^{key}(?:\\s|$)",), + ), + control_kind=kind, + codec=codec, + prefill_policy=PrefillPolicy.HALT_ON_CONFLICT, + placeholder_values=PLACEHOLDERS, + optional=optional, + ) + + +def _shown( + key: str, + label: str, + codec: FieldCodecSpec, + section: tuple[str, ...], + tag: str = "", +) -> FieldBindingSpec: + stem = "hbm_rb" if section is RESULT_SECTION else "hbm_rv" + return FieldBindingSpec( + binding_id=f"{stem}{tag}_{key}", + dossier_key=key, + anchor=FieldAnchorSpec( + label_patterns=(f"^{label}$",), section_patterns=section + ), + codec=codec, + ) + + +# (dossier key, review label, review codec, result label, result codec) +READBACKS: tuple[tuple[str, str, FieldCodecSpec, str, FieldCodecSpec], ...] = ( + ("legal_name", "Legal name", TEXT, "legal name", TEXT), + ("dba_name", r"Doing business as \(DBA\)", TEXT, "dba name", TEXT), + ("entity_type", "Entity type", FOLD, "entity type", FOLD), + ("fein", "FEIN", TEXT, "fein", TEXT), + ("year_established", "Year established", INT, "year established", INT), + ("location_street", "Location street address", TEXT, "location street", TEXT), + ("employees", "Number of employees", INT, "employees", INT), + ("annual_revenue", "Annual gross sales", MONEY, "annual revenue", MONEY), + ("building_owned", "Owns building", BOOL, "building owned", BOOL), + ("building_limit", "Building limit", MONEY, "building limit", MONEY), + ( + "bpp_limit", + "Business personal property limit", + MONEY, + "bpp limit", + MONEY, + ), + ("liability_limit", "Liability limits", TEXT, "liability limit", TEXT), + ("deductible", "Property deductible", MONEY, "deductible", MONEY), + ("effective_date", "Effective date", DATE_MDY, "effective date", DATE_ISO), +) + + +def _ws(screen_id: str, landmark: str, button: str) -> WizardScreenSpec: + return WizardScreenSpec( + screen_id=screen_id, + landmark_selector=landmark, + next_button_anchor=FieldAnchorSpec(label_patterns=(button,)), + ) + + +BPP_ITEMS = ("bpp_equipment", "bpp_inventory", "bpp_furniture") + +WORKSHEET_STEPS = ("location", "coverage", "applicant", "rate") + +PROFILE = UIProfileSpec( + profile_id="set4v2_hollowfen", + auth_wall_selectors=('input[type="password"]',), +) + +CLASS_FINDER = PopupSubroutineSpec( + subroutine_id="hbm_class_finder", + popup_mode="window", + popup_url_pattern=r"/bop/classfinder", + trigger_anchor=FieldAnchorSpec(label_patterns=(r"^Find class\.\.\.$",)), + bindings=( + FieldBindingSpec( + binding_id="hbm_class_keyword", + dossier_key="class_keyword", + anchor=FieldAnchorSpec( + label_patterns=(r"^Search classes$",), + name_or_id_patterns=(r"^q(?:\s|$)",), + ), + codec=TEXT, + ), + ), + compute_anchors=( + FieldAnchorSpec( + label_patterns=(r"^Search$",), section_patterns=(r"^Class finder$",) + ), + ), + commit_anchor=FieldAnchorSpec( + label_patterns=(r"^Select$",), section_patterns=(r"^Class finder$",) + ), + parent_return_anchor=FieldAnchorSpec( + label_patterns=(r"^Class code$",), name_or_id_patterns=(r"^class_code\b",) + ), + return_output_key="class_code", + return_codec=TEXT, +) + +PACK = FormPack( + pack_id="set4v2.hollowfen.bop.v1", + domain_schema="commercial_lines.bop", + ui_profile_id=PROFILE.profile_id, + bindings=tuple(_bind(*f) for f in FIELDS), + popup_subroutines=(CLASS_FINDER,), + screens=( + WizardScreenSpec( + screen_id="hbm_review", + title_pattern=r"^Rating summary$", + is_commit_screen=True, + commit_button_anchor=FieldAnchorSpec( + label_patterns=(r"^Submit application$",), + section_patterns=REVIEW_SECTION, + ), + ), + # The worksheet is one page; each "Save" reloads it at its section's + # fragment (``#applicant``, ``#location``, ``#coverage``), which is + # how the layer tells the steps apart. + _ws("hbm_rate", "#applicant:target", r"^Rate this risk$"), + _ws("hbm_applicant", "#coverage:target", r"^Save applicant$"), + _ws("hbm_coverage", "#location:target", r"^Save coverage$"), + _ws("hbm_location", "#en", r"^Save location$"), + ), + summary_check=SummaryCheckSpec( + review_readbacks=tuple( + _shown(k, lbl, c, REVIEW_SECTION) for k, lbl, c, _, _ in READBACKS + ), + # One read-back of the stored record per worksheet step: every step + # shows every field, so the layer records each field once per step. + field_readbacks=tuple( + _shown(k, lbl, c, RESULT_SECTION, f"_{step}") + for step in WORKSHEET_STEPS + for k, _, _, lbl, c in READBACKS + ) + + (_shown("class_code", "class code", TEXT, RESULT_SECTION),), + outputs=( + OutputExtractionSpec( + output_key="application.reference", + anchor=FieldAnchorSpec( + label_patterns=( + r"^(?:Application|Reference|Quote) (?:number|reference)$", + ), + section_patterns=RESULT_SECTION, + ), + value_pattern=r"\b(HBM-\d+)\b", + ), + ), + ), + max_commit_mutations=1, + unbound_controls=( + # The entity number only feeds the registry lookup, which the pack + # does not run; it is not part of the stored application. + UnboundControlSpec( + anchor=FieldAnchorSpec( + label_patterns=(r"^State entity number$",), + name_or_id_patterns=(r"^entity_number\b",), + ) + ), + # The BPP worksheet launcher is never opened (see the docstring). + UnboundControlSpec( + anchor=FieldAnchorSpec(label_patterns=(r"^Open BPP worksheet$",)) + ), + ), + required_intake_keys=( + "legal_name", + "entity_type", + "fein", + "year_established", + "location_street", + "class_keyword", + "employees", + "annual_revenue", + "building_owned", + "liability_limit", + "deductible", + "effective_date", + ), + ignored_intake_keys=( + # Only used by the registry lookup (see unbound_controls). + "entity_number", + # The portal asks for neither (no field on the worksheet). + "class_description", + "operations_notes", + # The BPP worksheet is not declared: the limit is typed, given or + # restated as the items' sum by derived_facts. + *BPP_ITEMS, + ), +) + + +def _money(value: Any) -> int | None: + if isinstance(value, bool) or value is None: + return None + if isinstance(value, (int, float)): + return int(value) if float(value) == int(value) else None + text = str(value).replace("$", "").replace(",", "").strip() + return int(text) if text.isdigit() else None + + +def derived_facts(raw: dict[str, Any]) -> dict[str, Any]: + """Intake facts restated as the worksheet asks for them. + + - The BPP limit, when absent, is the sum of the itemised amounts (the + intake vocabulary's own definition), only when all three are given. + - The building limit, when absent and the building is not owned, is 0 + (the intake vocabulary's and the form's own rule). + """ + out: dict[str, Any] = {} + if raw.get("bpp_limit") in (None, ""): + items = [_money(raw.get(k)) for k in BPP_ITEMS] + if all(v is not None for v in items): + out["bpp_limit"] = sum(v for v in items if v is not None) + if raw.get("building_limit") in (None, "") and raw.get("building_owned") is False: + out["building_limit"] = 0 + return out diff --git a/packages/flow/benchmark/form_tx_heldout_run/packs5/larkspan.py b/packages/flow/benchmark/form_tx_heldout_run/packs5/larkspan.py new file mode 100644 index 0000000000..dd37cdeeea --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout_run/packs5/larkspan.py @@ -0,0 +1,388 @@ +"""Larkspan travel insurance quote: form pack written from the dev case only. + +Written from the lta-d01 intake, the larkspan intake vocabulary and the +dev-case demonstration (``form_tx_set4v2_run/demos/larkspan.jsonl``). What +the demonstration shows: + +- A member sign-in page (member number and password), then one page + (``/trip``) that shows one step at a time, each with its own "Continue" + button: about you, destination, dates, travellers, trip cost, plan and + cover, then "Check everything" with an "Edit ..." button per row, a + confirmation checkbox and "Get my quote". +- The destination is a type-ahead; the chosen entry reads + " - ", which tells same-named places apart. +- Dates are typed as MM/DD/YYYY. +- Travellers are one fieldset per person ("Traveller 1"); more need the + "Add another traveller" button. The dev case had one traveller. A case + with more stops for a person before that button is clicked (see + ``MORE_TRAVELLERS``): nothing in the pack can add a row. +- "Help me add it up" opens a cost helper the dev case never opened, so it + is not declared. With no total but itemised costs, the total is the sum + of the items (as the intake vocabulary defines it) and is typed directly. +- The state select shows "Choose a state" and the CFAR box is unticked on + a blank form. The dev intake asked for no CFAR, so unticked is not a + proven default. +- After "Get my quote" the page "Your quote" lists "What we stored" as a + definition list, and the quote reference (LK-...) is in the URL. +- The stored record also lists an "Evacuation limit" that no step of the + dev case asked for; it is not bound. If a case shows that question, the + layer watches it as an unbound control. +""" + +from __future__ import annotations + +from typing import Any + +from openadapt_flow.form_tx.types import ( + ControlKind, + FieldAnchorSpec, + FieldBindingSpec, + FieldCodecSpec, + FormCodecKind, + FormPack, + OutputExtractionSpec, + PopupSubroutineSpec, + SummaryCheckSpec, + UIProfileSpec, + UnboundControlSpec, + WizardScreenSpec, +) + +CASE_PREFIX = "lta" + +TEXT = FieldCodecSpec(kind=FormCodecKind.WHITESPACE_COLLAPSE) +FOLD = FieldCodecSpec(kind=FormCodecKind.CASEFOLD) +DATE_MDY = FieldCodecSpec(kind=FormCodecKind.ISO_DATE, date_order="MDY") +MONEY = FieldCodecSpec(kind=FormCodecKind.CURRENCY_CENTS, currency_symbol="$") +BOOL = FieldCodecSpec(kind=FormCodecKind.BOOLEAN_YES_NO) +PHONE = FieldCodecSpec(kind=FormCodecKind.PHONE_DIGITS) + +PLACEHOLDERS = ("", "Choose a state", "-- Select --", "Select...", "Choose...") + +DESTINATION_KEY = "destination_choice" +TRAVELLER_NAME = "traveller_1_name" +TRAVELLER_DOB = "traveller_1_dob" +TRAVELLERS_SHOWN = "travellers_shown" +MORE_TRAVELLERS = "travellers_more_than_one" +CONFIRM_KEY = "confirm_details" + +RESULT_SECTION = (r"^What we stored$",) + + +def _bind( + key: str, + label: str, + section: str, + kind: ControlKind = ControlKind.TEXT, + codec: FieldCodecSpec = TEXT, + *, + id_pattern: str | None = None, + typeahead: int | None = None, + defaults: tuple[str, ...] = (), +) -> FieldBindingSpec: + return FieldBindingSpec( + binding_id=f"lta_{key}", + dossier_key=key, + anchor=FieldAnchorSpec( + label_patterns=(f"^{label}$",), + section_patterns=(f"^{section}$",), + name_or_id_patterns=(id_pattern,) if id_pattern else (), + ), + control_kind=kind, + codec=codec, + placeholder_values=PLACEHOLDERS, + typeahead_query_chars=typeahead, + portal_default_values=defaults, + ) + + +def _shown(key: str, label: str, codec: FieldCodecSpec = TEXT) -> FieldBindingSpec: + """A read-back of the result page's "What we stored" list.""" + return FieldBindingSpec( + binding_id=f"lta_rb_{key}", + dossier_key=key, + anchor=FieldAnchorSpec( + label_patterns=(f"^{label}$",), section_patterns=RESULT_SECTION + ), + codec=codec, + ) + + +def _continue(section: str) -> FieldAnchorSpec: + return FieldAnchorSpec( + label_patterns=(r"^Continue$",), section_patterns=(f"^{section}$",) + ) + + +def _screen( + screen_id: str, landmark: str, section: str, edit_row: int +) -> WizardScreenSpec: + return WizardScreenSpec( + screen_id=screen_id, + landmark_selector=landmark, + next_button_anchor=_continue(section), + revisit_selector=f"#rev > div:nth-of-type({edit_row}) > button", + ) + + +PROFILE = UIProfileSpec( + profile_id="set4v2_larkspan", + auth_wall_selectors=('input[type="password"]',), +) + +ABOUT = "First, about you" +WHERE = "Where are you going\\?" +WHEN = "When are you travelling\\?" +WHO = "Who's travelling\\?" +COST = "What did the trip cost\\?" +REVIEW = "Check everything" +REVIEW_ROWS = ( + "Name", + "Email", + "Mobile phone", + "State of residence", + "Destination", + "Departure date", + "Return date", + "Travellers", + "Trip cost", + "Plan", + "Cancel For Any Reason", +) + +PACK = FormPack( + pack_id="set4v2.larkspan.travel.v1", + domain_schema="personal_lines.travel", + ui_profile_id=PROFILE.profile_id, + bindings=( + # About you + _bind("purchaser_name", "Full name", ABOUT, id_pattern=r"^d-name$"), + _bind("purchaser_email", "Email", ABOUT), + _bind("purchaser_phone", "Mobile phone", ABOUT), + _bind( + "residence_state", + "State of residence", + ABOUT, + ControlKind.SELECT, + FOLD, + defaults=("Choose a state",), + ), + # Destination: type the first letters of the name, then pick the + # entry " - ". + _bind( + DESTINATION_KEY, + "Destination", + WHERE, + ControlKind.PORTAL_COMBOBOX, + FOLD, + typeahead=3, + ), + # Dates + _bind("departure_date", "Departure date", WHEN, codec=DATE_MDY), + _bind("return_date", "Return date", WHEN, codec=DATE_MDY), + # Traveller 1 (a case with more travellers stops; see MORE_TRAVELLERS) + _bind(TRAVELLER_NAME, "Full name", "Traveller 1"), + _bind(TRAVELLER_DOB, "Date of birth", "Traveller 1", codec=DATE_MDY), + # Trip cost + _bind("trip_cost", r"Total prepaid trip cost \(\$\)", COST, codec=MONEY), + # Plan and cover + _bind( + "plan", + "Choose a plan", + "Choose a plan", + ControlKind.RADIO_GROUP, + FOLD, + id_pattern=r"^plan\b", + ), + _bind( + "cfar", + r"Add Cancel For Any Reason \(CFAR\)", + "Choose your cover", + ControlKind.CHECKBOX, + BOOL, + ), + # Review: the confirmation box ticked by the person submitting. + _bind( + CONFIRM_KEY, + "I confirm the details above are correct", + REVIEW, + ControlKind.CHECKBOX, + BOOL, + defaults=("false",), + ), + ), + popup_subroutines=( + # Nothing in the pack can add a traveller row. With more than one + # traveller, this stops for a person on the travellers step, before + # the button is clicked: its return field (traveller 2's name) is not + # on the page until a row is added. + PopupSubroutineSpec( + subroutine_id="lta_more_travellers", + popup_mode="in_page", + condition_dossier_key=MORE_TRAVELLERS, + trigger_anchor=FieldAnchorSpec( + label_patterns=(r"^Add another traveller$",), + name_or_id_patterns=(r"^trav-add$",), + ), + commit_anchor=_continue(WHO), + parent_return_anchor=FieldAnchorSpec( + label_patterns=(r"^Full name$",), + section_patterns=(r"^Traveller 2$",), + ), + return_output_key="traveller_2_name", + return_codec=TEXT, + ), + ), + screens=( + WizardScreenSpec( + screen_id="lta_review", + landmark_selector="#buy", + is_commit_screen=True, + commit_button_anchor=FieldAnchorSpec(label_patterns=(r"^Get my quote$",)), + ), + _screen("lta_about", "#d-name", ABOUT, 1), + _screen("lta_destination", "#dest", WHERE, 5), + _screen("lta_dates", "#dep", WHEN, 6), + _screen("lta_travellers", "#trav-add", WHO, 8), + _screen("lta_cost", "#cost", COST, 9), + _screen("lta_plan", "#cfar", "Choose your cover", 10), + ), + summary_check=SummaryCheckSpec( + field_readbacks=( + _shown("purchaser_name", "Purchaser"), + _shown("purchaser_email", "Email", FOLD), + _shown("purchaser_phone", "Phone", PHONE), + _shown("residence_state", "State of residence", FOLD), + _shown(DESTINATION_KEY, "Destination", FOLD), + _shown("departure_date", "Departing", DATE_MDY), + _shown("return_date", "Returning", DATE_MDY), + _shown(TRAVELLERS_SHOWN, "Travellers", FOLD), + _shown("trip_cost", "Trip cost", MONEY), + _shown("plan", "Plan", FOLD), + _shown("cfar", "Cancel For Any Reason", BOOL), + ), + outputs=( + OutputExtractionSpec( + output_key="quote.reference", + anchor=FieldAnchorSpec( + label_patterns=(r"^Quote (?:reference|number)$",), + ), + value_pattern=r"\b(LK-\d+-\d+)\b", + required=True, + ), + OutputExtractionSpec( + output_key="quote.total_premium", + anchor=FieldAnchorSpec( + label_patterns=(r"^Total premium$",), + section_patterns=(r"^Your quote is ready$",), + ), + codec=MONEY, + required=False, + ), + ), + ), + max_commit_mutations=1, + unbound_controls=( + # The cost helper; the dev case typed the total and never opened it. + UnboundControlSpec( + anchor=FieldAnchorSpec( + label_patterns=(r"^Help me add it up$",), + name_or_id_patterns=(r"^calc-open$",), + ), + ), + # The review's "Edit ..." buttons: the layer only uses them to go back + # (``revisit_selector``), never to change a value. + *( + UnboundControlSpec( + anchor=FieldAnchorSpec( + label_patterns=(f"^Edit {row}$",), + section_patterns=(f"^{REVIEW}$",), + ) + ) + for row in REVIEW_ROWS + ), + ), + ignored_intake_keys=( + # Entered through derived facts as the " - " entry. + "destination_name", + "destination_region", + # Entered through derived facts per traveller. + "travelers", + # Added up into the total when no total is given. + "cost_flights", + "cost_lodging", + "cost_tours", + "cost_other", + # Free-text trip notes: no step of the dev case asks for them. + "itinerary", + ), + required_intake_keys=( + "purchaser_name", + "purchaser_email", + "purchaser_phone", + "residence_state", + "departure_date", + "return_date", + "trip_cost", + "plan", + "cfar", + ), +) + + +def _mdy(iso: Any) -> str | None: + try: + y, m, d = (int(p) for p in str(iso).split("-")) + except ValueError: + return None + return f"{m:02d}/{d:02d}/{y}" + + +def _amount(value: Any) -> float | None: + if isinstance(value, bool): + return None + if isinstance(value, (int, float)): + return float(value) + return None + + +def derived_facts(raw: dict[str, Any]) -> dict[str, Any]: + """Intake facts restated the way the portal asks for and shows them.""" + out: dict[str, Any] = {} + name = str(raw.get("destination_name") or "").strip() + region = str(raw.get("destination_region") or "").strip() + if name and region: + out[DESTINATION_KEY] = f"{name} - {region}" + elif name: + # No region: the name alone matches no entry, so the pick stops. + out[DESTINATION_KEY] = name + + travellers = raw.get("travelers") + if isinstance(travellers, list) and travellers: + first = travellers[0] if isinstance(travellers[0], dict) else {} + t_name = str(first.get("name") or "").strip() + t_dob = str(first.get("dob") or "").strip() + if t_name: + out[TRAVELLER_NAME] = t_name + if t_dob: + out[TRAVELLER_DOB] = t_dob + if len(travellers) > 1: + out[MORE_TRAVELLERS] = True + elif t_name and _mdy(t_dob): + out[TRAVELLERS_SHOWN] = f"{t_name} ({_mdy(t_dob)})" + + # The vocabulary defines the total as the sum of the cost items when no + # total is given. Only plain numbers are added; anything else stops. + if raw.get("trip_cost") in (None, ""): + items = [ + raw.get(k) + for k in ("cost_flights", "cost_lodging", "cost_tours", "cost_other") + if raw.get(k) not in (None, "") + ] + amounts = [_amount(v) for v in items] + if items and all(a is not None for a in amounts): + total = sum(a for a in amounts if a is not None) + out["trip_cost"] = int(total) if total == int(total) else total + + out[CONFIRM_KEY] = True + return out diff --git a/packages/flow/benchmark/form_tx_heldout_run/packs5b0/__init__.py b/packages/flow/benchmark/form_tx_heldout_run/packs5b0/__init__.py new file mode 100644 index 0000000000..5347773dd4 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout_run/packs5b0/__init__.py @@ -0,0 +1,55 @@ +"""Form packs for the sealed Set 4 v2 (data only). + +Each portal's pack lives in its own module, written from that portal's dev +intake and the dev-case demonstration in ``../../form_tx_set4v2_run/demos``, +without reading portal source, scored intakes or the answer key. A module +exports ``PACK``, ``PROFILE`` and optionally ``derived_facts(raw) -> dict``, +facts restated from the intake in the form the portal shows them (never new +information). +""" + +from __future__ import annotations + +import importlib +from typing import Any + +from benchmark.form_tx_heldout_run.packs import _intake_value +from openadapt_flow.form_tx.types import DossierFact, InputDossier, ProvenanceKind + +PORTAL_IDS = ("brackwater", "larkspan", "hollowfen") +_MODULES: dict[str, Any] = {} +for _pid in PORTAL_IDS: + try: + _MODULES[_pid] = importlib.import_module(f"{__name__}.{_pid}") + except ModuleNotFoundError as _exc: # a pack not written yet + if _exc.name != f"{__name__}.{_pid}": + raise +PACKS: dict[str, Any] = {pid: (m.PACK, m.PROFILE) for pid, m in _MODULES.items()} + + +def dossier_for(intake: dict[str, Any], request_id: str) -> InputDossier: + source = f"intake:{intake['case_id']}" + raw = intake["facts"] + values = {k: _intake_value(v) for k, v in raw.items() if v is not None and v != ""} + module = next( + ( + mod + for mod in _MODULES.values() + if str(intake["case_id"]).startswith(mod.CASE_PREFIX + "-") + ), + None, + ) + if module is not None and hasattr(module, "derived_facts"): + for key, value in module.derived_facts(raw).items(): + values.setdefault(key, value) + facts = { + key: DossierFact( + key=key, + value=value, + provenance=ProvenanceKind.INTAKE_DOCUMENT, + source_id=source, + confidence=1.0, + ) + for key, value in values.items() + } + return InputDossier(dossier_id=source, request_id=request_id, facts=facts) diff --git a/packages/flow/benchmark/form_tx_heldout_run/packs5b0/brackwater.py b/packages/flow/benchmark/form_tx_heldout_run/packs5b0/brackwater.py new file mode 100644 index 0000000000..dffe732969 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout_run/packs5b0/brackwater.py @@ -0,0 +1,326 @@ +"""Brackwater flood quote: form pack (data only). + +Written from the bfu-d01 intake, the brackwater entry of the intake +vocabulary and the dev-case demonstration +(``form_tx_set4v2_run/demos/brackwater.jsonl``); no portal source, scored +intake or answer key was read. What the dev case showed: + +- An agency sign-in page, then a hub (``/flood/hub``) with four section + cards (Named insured, Property and map, Building details, Coverage and + billing). Each card's "Edit ..." button opens that section in an in-page + dialog (``#dlg-``) with "Save section" and "Cancel"; the hub shows + "Not started" or "Complete" per card as page text only. +- "Review declarations" on the hub is a link, not a control the surface + lists, so the layer cannot open the review: the run stops at the hub for a + person once every section is saved (``bfu_hub``). +- NFIP community is a type-ahead. Typing the community name lists entries + such as ", City of - County ()"; the + intake has no community number, so no fact can equal an entry and the + run stops there for a person to choose (the dev case does). +- The deductible select shows $2,000 before anyone touches it (a portal + default). "Estimate replacement cost" (square footage, construction, + finish) was never opened on the dev case, so it is not declared: a case + with no building coverage stops at that required field. +- Dates are typed MM/DD/YYYY; the stored quote shows them as YYYY-MM-DD. +- After "Submit quote request" the page lists the stored quote ("Stored + quote") with lowercase labels, an empty "bill to" row, and the quote + reference (BFU-Q-...) under "Quote issued". No dev-case control enters + the mortgage lender, lien type or bill-to, so those keys are not bound or + ignored: a case that gives them never verifies. +""" + +from __future__ import annotations + +from openadapt_flow.form_tx.types import ( + ControlKind, + FieldAnchorSpec, + FieldBindingSpec, + FieldCodecSpec, + FormCodecKind, + FormPack, + OutputExtractionSpec, + SummaryCheckSpec, + UIProfileSpec, + UnboundControlSpec, + WizardScreenSpec, +) + +CASE_PREFIX = "bfu" + +TEXT = FieldCodecSpec(kind=FormCodecKind.WHITESPACE_COLLAPSE) +FOLD = FieldCodecSpec(kind=FormCodecKind.CASEFOLD) +INT = FieldCodecSpec(kind=FormCodecKind.INTEGER) +PHONE = FieldCodecSpec(kind=FormCodecKind.PHONE_DIGITS) +DATE_MDY = FieldCodecSpec(kind=FormCodecKind.ISO_DATE, date_order="MDY") +DATE_ISO = FieldCodecSpec(kind=FormCodecKind.ISO_DATE, date_order="YMD") +MONEY = FieldCodecSpec(kind=FormCodecKind.CURRENCY_CENTS, currency_symbol="$") + +PLACEHOLDERS = ("", "Select", "Select zone") + +STORED = (r"^Stored quote$",) + + +def _bind( + key: str, + label: str, + name: str, + section: str, + kind: ControlKind = ControlKind.TEXT, + codec: FieldCodecSpec = TEXT, + *, + defaults: tuple[str, ...] = (), + required: bool = False, +) -> FieldBindingSpec: + return FieldBindingSpec( + binding_id=f"bfu_{key}", + dossier_key=key, + anchor=FieldAnchorSpec( + label_patterns=(f"^{label}$",), + name_or_id_patterns=(f"^{name}(?:\\s|$)|(?:^|\\s){name}$",), + section_patterns=(f"^{section}$",), + ), + control_kind=kind, + codec=codec, + placeholder_values=PLACEHOLDERS, + portal_default_values=defaults, + required_in_pack=required, + ) + + +def _shown(key: str, label: str, codec: FieldCodecSpec = TEXT) -> FieldBindingSpec: + return FieldBindingSpec( + binding_id=f"bfu_rb_{key}", + dossier_key=key, + anchor=FieldAnchorSpec(label_patterns=(f"^{label}$",), section_patterns=STORED), + codec=codec, + ) + + +def _dialog(screen_id: str, card: str, section: str) -> WizardScreenSpec: + """One section dialog of the hub, open; "Save section" stores it.""" + return WizardScreenSpec( + screen_id=screen_id, + landmark_selector=f"#dlg-{card}[open]", + next_button_anchor=FieldAnchorSpec( + label_patterns=(r"^Save section$",), section_patterns=(f"^{section}$",) + ), + revisit_selector=f"#card-{card} > button", + ) + + +def _hub(screen_id: str, card: str, edit: str) -> WizardScreenSpec: + """The hub while section ``card`` has no control the run edited.""" + return WizardScreenSpec( + screen_id=screen_id, + landmark_selector=( + "body:not(:has(dialog[open]))" + f":not(:has(#dlg-{card} :is(input, select):user-valid)) #card-{card}" + ), + next_button_anchor=FieldAnchorSpec(label_patterns=(edit,)), + ) + + +_SECTION_DIALOGS = "".join( + f":not(#dlg-{card})" for card in ("insured", "property", "building", "coverage") +) + +PROFILE = UIProfileSpec( + profile_id="set4v2b0_brackwater", + auth_wall_selectors=('input[type="password"]',), + # The four section dialogs are the form itself; any other open dialog + # is still a modal that stops the run. + modal_dialog_selectors=( + f"dialog[open]{_SECTION_DIALOGS}", + f'[role="dialog"][aria-modal="true"]{_SECTION_DIALOGS}', + "[data-modal-open='true']", + ), +) + +INSURED = "Named insured" +PROPERTY = "Property and map" +BUILDING = "Building details" +COVERAGE = "Coverage and billing" + +PACK = FormPack( + pack_id="set4v2b0.brackwater.flood.v1", + domain_schema="personal_lines.flood", + ui_profile_id=PROFILE.profile_id, + bindings=( + _bind("insured_name", "Insured name", "insured_name", INSURED, required=True), + _bind("insured_phone", "Phone number", "insured_phone", INSURED), + _bind( + "property_street", + "Property street address", + "property_street", + PROPERTY, + required=True, + ), + _bind( + "community_name", + "NFIP community", + "f-comm", + PROPERTY, + ControlKind.PORTAL_COMBOBOX, + TEXT, + required=True, + ), + _bind( + "flood_zone_certificate", + "Flood zone", + "flood_zone", + PROPERTY, + ControlKind.SELECT, + FOLD, + required=True, + ), + _bind( + "building_type", + "Building type", + "building_type", + BUILDING, + ControlKind.SELECT, + FOLD, + required=True, + ), + _bind( + "foundation", + "Foundation type", + "foundation", + "Foundation type", + ControlKind.RADIO_GROUP, + FOLD, + required=True, + ), + _bind( + "year_built", "Year built", "year_built", BUILDING, codec=INT, required=True + ), + _bind( + "square_feet", + "Total square footage", + "square_feet", + BUILDING, + codec=INT, + required=True, + ), + _bind( + "building_coverage", + r"Building coverage \(\$\)", + "building_coverage", + COVERAGE, + codec=INT, + required=True, + ), + _bind( + "contents_coverage", + r"Contents coverage \(\$\)", + "contents_coverage", + COVERAGE, + codec=INT, + ), + _bind( + "deductible", + "Deductible", + "deductible", + COVERAGE, + ControlKind.SELECT, + MONEY, + defaults=("2000", "$2,000"), + required=True, + ), + _bind( + "prior_claims", + "Flood claims in the last 10 years", + "prior_claims", + COVERAGE, + codec=INT, + required=True, + ), + _bind( + "effective_date", + "Policy effective date", + "effective_date", + COVERAGE, + codec=DATE_MDY, + required=True, + ), + ), + screens=( + WizardScreenSpec( + screen_id="bfu_review", + landmark_selector="#confirm", + is_commit_screen=True, + commit_button_anchor=FieldAnchorSpec( + label_patterns=(r"^Submit quote request$",) + ), + ), + _dialog("bfu_insured", "insured", INSURED), + _dialog("bfu_property", "property", PROPERTY), + _dialog("bfu_building", "building", BUILDING), + _dialog("bfu_coverage", "coverage", COVERAGE), + # The hub with no dialog open: open the first section the run has + # not typed into yet (":user-valid" matches a control only after it + # was edited). A section that failed to save keeps its dialog open, + # and the dialog screens above come first. + _hub("bfu_hub_insured", "insured", r"^Edit named insured$"), + _hub("bfu_hub_property", "property", r"^Edit property and map$"), + _hub("bfu_hub_building", "building", r"^Edit building details$"), + _hub("bfu_hub_coverage", "coverage", r"^Edit coverage and billing$"), + # Every section typed. "Review declarations" is a link, which the + # surface does not list as a control, so this next button is never + # found and the run stops here for a person to open the review. + WizardScreenSpec( + screen_id="bfu_hub", + landmark_selector="#card-insured", + next_button_anchor=FieldAnchorSpec( + label_patterns=(r"^Review declarations$",) + ), + ), + ), + summary_check=SummaryCheckSpec( + field_readbacks=( + _shown("insured_name", "insured name"), + _shown("insured_phone", "insured phone", PHONE), + _shown("property_street", "property street", FOLD), + _shown("community_name", "community", FOLD), + _shown("flood_zone_certificate", "flood zone", FOLD), + _shown("building_type", "building type", FOLD), + _shown("foundation", "foundation", FOLD), + _shown("year_built", "year built", INT), + _shown("square_feet", "square feet", INT), + _shown("building_coverage", "building coverage", MONEY), + _shown("contents_coverage", "contents coverage", MONEY), + _shown("deductible", "deductible", MONEY), + _shown("prior_claims", "prior claims", INT), + _shown("effective_date", "effective date", DATE_ISO), + ), + outputs=( + OutputExtractionSpec( + output_key="quote.reference", + anchor=FieldAnchorSpec( + label_patterns=(r"^Quote reference$",), + section_patterns=(r"^Quote issued$",), + ), + value_pattern=r"\b(BFU-Q-\d+)\b", + required=True, + ), + ), + ), + max_commit_mutations=1, + unbound_controls=( + UnboundControlSpec( + anchor=FieldAnchorSpec( + label_patterns=(r"^I confirm these declarations match",), + name_or_id_patterns=(r"^confirm(?:\s|$)",), + ), + blank_values=("", "false"), + ), + ), + ignored_intake_keys=( + # Only the replacement-cost estimator asks for these (not declared). + "construction", + "finish", + # Part of the community entry a person chooses; the type-ahead + # stops on anything but an entry equal to the community name. + "community_county", + ), +) diff --git a/packages/flow/benchmark/form_tx_heldout_run/packs5b0/hollowfen.py b/packages/flow/benchmark/form_tx_heldout_run/packs5b0/hollowfen.py new file mode 100644 index 0000000000..f2c9f419e2 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout_run/packs5b0/hollowfen.py @@ -0,0 +1,333 @@ +"""Hollowfen BOP rating worksheet: form pack (data only). + +Written from the hbm-d01 intake, the hollowfen intake vocabulary and the +dev-case demonstration (``form_tx_set4v2_run/demos/hollowfen.jsonl``), plus +dev-case runs of this pack; no portal source, scored intake or answer key +was read. What the dev case showed: + +- A producer sign-in page (password field), then one worksheet page + (``/bop/worksheet``) with three tables: Applicant, Location and Coverage, + each with its own Save button, and a "Rate this risk" button. Every + control has a ``name`` equal to its intake key and a visible label; the + worksheet controls carry no section text. +- "Look up entity" checks the state entity number against a registry; on the + dev case it found no match ("Enter the entity details manually"). The + entity number is not on the rating summary or the stored record. +- "Find class..." opens a class finder: search box, Search, then one + "Select" button per result row. Choosing a row fills the read-only class + code ("21890 Picture framing shop"). The row text never equals an intake + value, so a search that lists several rows stops for a person. +- "Open BPP worksheet" (equipment, inventory, furniture and fixtures) was not + opened on the dev case; its controls were never seen, so it is not + declared. +- Money is typed as bare digits, the effective date as MM/DD/YYYY. +- The property deductible shows $1,000 on the blank form, before anything was + typed (a portal default; it happens to equal the dev intake's value). +- "Rate this risk" shows a rating summary with "Submit application"; after + submit the page "Application received" lists the stored record as a table + (raw values: ``False``, ``290000``, ``2027-01-01``), and the application + reference (HBM-...) is in the URL. +- The stored record also has an empty "hnoa" row that no dev-case control + fed and no intake key grounds. If a control named ``hnoa`` shows up on a + case, it is bound to a key no intake gives, so the run stops for a person + instead of submitting it unanswered. + +Sections. "Rate this risk" rates only saved sections (found on the dev case: +with one screen and no saves, rating stopped and every field came back +blank). Each Save reloads the page with the saved section as the URL +fragment (``#applicant``, ``#location``, ``#coverage``), so the screens are +told apart by ``:target``. The class finder runs on the first screen the +layer sees, and the class code it puts back lives only in the page until +Location is saved (with Applicant saved first, the code was lost). So +Location is saved first, then Applicant, then Coverage, then the risk is +rated. No section link or "Change" control was seen, so no screen declares +``revisit_selector``. + +Read-back limits on the dev case: the class finder's search word is not +shown anywhere after submit, and the finder shows no labelled result to +match the returned class code against, so both are reported not_checked and +the run ends ``readback_incomplete`` even when every stored value is right. +""" + +from __future__ import annotations + +import re +from typing import Any + +from openadapt_flow.form_tx.types import ( + ControlKind, + FieldAnchorSpec, + FieldBindingSpec, + FieldCodecSpec, + FormCodecKind, + FormPack, + OutputExtractionSpec, + PopupSubroutineSpec, + SummaryCheckSpec, + UIProfileSpec, + UnboundControlSpec, + WizardScreenSpec, +) + +CASE_PREFIX = "hbm" + +TEXT = FieldCodecSpec(kind=FormCodecKind.WHITESPACE_COLLAPSE) +FOLD = FieldCodecSpec(kind=FormCodecKind.CASEFOLD) +INT = FieldCodecSpec(kind=FormCodecKind.INTEGER) +DATE_MDY = FieldCodecSpec(kind=FormCodecKind.ISO_DATE, date_order="MDY") +DATE_ISO = FieldCodecSpec(kind=FormCodecKind.ISO_DATE) +MONEY = FieldCodecSpec(kind=FormCodecKind.CURRENCY_CENTS, currency_symbol="$") +BOOL = FieldCodecSpec(kind=FormCodecKind.BOOLEAN_YES_NO) + +PLACEHOLDERS = ("", "-- select --", "-- Select --") + +RESULT_SECTION = (r"^Application received$",) +CLASS_KEY = "class_code" + + +def _p(label: str) -> str: + return "^" + re.escape(label) + "$" + + +def _bind( + key: str, + label: str, + kind: ControlKind = ControlKind.TEXT, + codec: FieldCodecSpec = TEXT, + *, + name: str | None = None, + defaults: tuple[str, ...] = (), + required: bool = False, +) -> FieldBindingSpec: + return FieldBindingSpec( + binding_id=f"hbm_{key}", + dossier_key=key, + anchor=FieldAnchorSpec( + label_patterns=(_p(label),), + name_or_id_patterns=(rf"^{name or key}(?:\s|$)",), + ), + control_kind=kind, + codec=codec, + placeholder_values=PLACEHOLDERS, + portal_default_values=defaults, + required_in_pack=required, + ) + + +def _shown(key: str, label: str, codec: FieldCodecSpec = TEXT) -> FieldBindingSpec: + return FieldBindingSpec( + binding_id=f"hbm_rb_{key}", + dossier_key=key, + anchor=FieldAnchorSpec( + label_patterns=(_p(label),), section_patterns=RESULT_SECTION + ), + codec=codec, + ) + + +def _section(screen_id: str, landmark: str, button: str) -> WizardScreenSpec: + return WizardScreenSpec( + screen_id=screen_id, + landmark_selector=landmark, + next_button_anchor=FieldAnchorSpec(label_patterns=(_p(button),)), + ) + + +PROFILE = UIProfileSpec( + profile_id="set4v2b0_hollowfen", + auth_wall_selectors=('input[type="password"]',), +) + +CLASS_FINDER = PopupSubroutineSpec( + subroutine_id="hbm_class_finder", + trigger_anchor=FieldAnchorSpec(label_patterns=(_p("Find class..."),)), + popup_mode="window", + popup_url_pattern=r"/bop/classfinder", + bindings=( + FieldBindingSpec( + binding_id="hbm_class_keyword", + dossier_key="class_keyword", + anchor=FieldAnchorSpec( + label_patterns=(_p("Search classes"),), + name_or_id_patterns=(r"^q(?:\s|$)",), + ), + codec=TEXT, + ), + ), + compute_anchors=( + FieldAnchorSpec( + label_patterns=(r"^Search$",), section_patterns=(r"^Class finder$",) + ), + ), + commit_anchor=FieldAnchorSpec( + label_patterns=(r"^Select$",), section_patterns=(r"^Class finder$",) + ), + parent_return_anchor=FieldAnchorSpec( + label_patterns=(_p("Class code"),), + name_or_id_patterns=(r"^class_code(?:\s|$)",), + ), + return_output_key=CLASS_KEY, + return_codec=TEXT, +) + +PACK = FormPack( + pack_id="set4v2b0.hollowfen.bop.v1", + domain_schema="commercial_lines.bop", + ui_profile_id=PROFILE.profile_id, + bindings=( + # Applicant + _bind("legal_name", "Legal name", required=True), + _bind("dba_name", "Doing business as (DBA)"), + _bind("entity_type", "Entity type", ControlKind.SELECT, FOLD, required=True), + _bind("fein", "FEIN", required=True), + _bind("year_established", "Year established", codec=INT, required=True), + # Location + _bind("location_street", "Location street address", required=True), + _bind("employees", "Number of employees", codec=INT, required=True), + _bind("annual_revenue", "Annual gross sales ($)", codec=INT, required=True), + _bind( + "building_owned", + "Does the insured own the building?", + ControlKind.SELECT, + BOOL, + required=True, + ), + _bind("building_limit", "Building limit ($)", codec=INT, required=True), + # Coverage + _bind( + "bpp_limit", + "Business personal property limit ($)", + codec=INT, + required=True, + ), + _bind( + "liability_limit", + "Liability limits", + ControlKind.SELECT, + TEXT, + required=True, + ), + _bind( + "deductible", + "Property deductible", + ControlKind.SELECT, + MONEY, + defaults=("1000", "$1,000"), + required=True, + ), + _bind( + "effective_date", + "Effective date", + codec=DATE_MDY, + required=True, + ), + # Never seen on the dev case (see the module notes): a stop if shown. + FieldBindingSpec( + binding_id="hbm_hnoa", + dossier_key="hnoa_not_in_intake", + anchor=FieldAnchorSpec(name_or_id_patterns=(r"^hnoa(?:\s|$)",)), + required_in_pack=True, + placeholder_values=PLACEHOLDERS, + ), + ), + popup_subroutines=(CLASS_FINDER,), + screens=( + WizardScreenSpec( + screen_id="hbm_summary", + title_pattern=r"^Rating summary$", + is_commit_screen=True, + commit_button_anchor=FieldAnchorSpec( + label_patterns=(r"^Submit application$",) + ), + ), + _section("hbm_rate", "#coverage:target", "Rate this risk"), + _section("hbm_coverage", "#applicant:target", "Save coverage"), + _section("hbm_applicant", "#location:target", "Save applicant"), + _section("hbm_location", "#rate", "Save location"), + ), + summary_check=SummaryCheckSpec( + field_readbacks=( + _shown("legal_name", "legal name"), + _shown("dba_name", "dba name"), + _shown("entity_type", "entity type", FOLD), + _shown("fein", "fein"), + _shown("year_established", "year established", INT), + _shown("location_street", "location street", FOLD), + _shown(CLASS_KEY, "class code", FOLD), + _shown("employees", "employees", INT), + _shown("annual_revenue", "annual revenue", MONEY), + _shown("building_owned", "building owned", BOOL), + _shown("building_limit", "building limit", MONEY), + _shown("bpp_limit", "bpp limit", MONEY), + _shown("liability_limit", "liability limit"), + _shown("deductible", "deductible", MONEY), + _shown("effective_date", "effective date", DATE_ISO), + ), + outputs=( + OutputExtractionSpec( + output_key="application.reference", + anchor=FieldAnchorSpec( + label_patterns=(r"^(?:application|reference|quote)\b.*$",), + section_patterns=RESULT_SECTION, + ), + value_pattern=r"\b(HBM-\d+)\b", + required=True, + ), + ), + ), + max_commit_mutations=1, + unbound_controls=( + # The registry lookup is not used: the entity number is not stored + # with the application, and a registry match could prefill details + # that differ from the intake. + UnboundControlSpec( + anchor=FieldAnchorSpec( + label_patterns=(_p("State entity number"),), + name_or_id_patterns=(r"^entity_number(?:\s|$)",), + ), + ), + ), + ignored_intake_keys=( + # Not stored with the application (see unbound_controls). + "entity_number", + # No control asks for it; the class is chosen through the finder. + "class_description", + # No control asks for free-text operations notes. + "operations_notes", + # Entered as their sum in the BPP limit (derived_facts) when the + # intake gives no BPP limit. + "bpp_equipment", + "bpp_inventory", + "bpp_furniture", + ), +) + +_BPP_ITEMS = ("bpp_equipment", "bpp_inventory", "bpp_furniture") + + +def _money(value: Any) -> int | None: + if isinstance(value, bool) or value is None or value == "": + return None + if isinstance(value, (int, float)): + return int(value) if float(value).is_integer() else None + text = str(value).replace("$", "").replace(",", "").strip() + try: + number = float(text) + except ValueError: + return None + return int(number) if number.is_integer() else None + + +def derived_facts(raw: dict[str, Any]) -> dict[str, Any]: + """The BPP limit as the sum of its items, when the intake gives no limit. + + The intake vocabulary says an absent BPP limit is the sum of the bpp_* + items. Only when all three items are given; otherwise the limit stays + ungrounded and the run stops for a person. + """ + out: dict[str, Any] = {} + if raw.get("bpp_limit") in (None, ""): + items = [_money(raw.get(k)) for k in _BPP_ITEMS] + if all(v is not None for v in items): + out["bpp_limit"] = sum(v for v in items if v is not None) + return out diff --git a/packages/flow/benchmark/form_tx_heldout_run/packs5b0/larkspan.py b/packages/flow/benchmark/form_tx_heldout_run/packs5b0/larkspan.py new file mode 100644 index 0000000000..7919a6261b --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout_run/packs5b0/larkspan.py @@ -0,0 +1,307 @@ +"""Larkspan travel quote: form pack written from the dev case only (data only). + +Written from the lta-d01 intake, the larkspan intake vocabulary and the +dev-case demonstration (``form_tx_set4v2_run/demos/larkspan.jsonl``); no +portal source, scored intake or answer key was read. What the dev case +showed: + +- A member sign-in page (password field), then one page (``/trip``) that + shows one step at a time, each with its own "Continue" button: about you + (name, email, mobile phone, state select), destination (a type-ahead + combobox whose chosen entry reads " - "), dates (typed + MM/DD/YYYY), travellers (one fieldset per traveller, "Traveller 1", with + an "Add another traveller" button), trip cost (typed as digits, with a + "Help me add it up" calculator the dev case never opened), and cover (a + plan radio group and a CFAR checkbox, unchecked on the blank form). +- "Check everything" lists every answer with one "Edit" button per row, an + "I confirm the details above are correct" checkbox and "Get my quote". +- The quote page shows the stored values under "What we stored" as a + definition list; the quote reference is in the URL (LK-..-.....). + +Fail-closed choices: + +- Only one traveller is supported: the layer has no way to press "Add + another traveller", so a case with more (or no) travellers gets no + traveller facts and stops at the required traveller name. +- The trip cost calculator is not declared: a case without a total trip + cost stops at the required cost field (the cost items are not summed). +- The free-text itinerary has no control on any screen of the dev case and + is not entered. +- The review's confirmation checkbox is declared as its own step whose + "Next" is the checkbox; the run reports it as not read back. +- The summary shows the traveller as one "Name (MM/DD/YYYY)" row, read back + through a derived key; the traveller's name and date of birth themselves + have no row of their own and are reported not_checked. So the dev case + submits a correct record but ends readback_incomplete, not verified. +- The summary's "Evacuation limit" had no control on the dev case and no + intake key; it is neither entered nor read back. +""" + +from __future__ import annotations + +import re +from typing import Any + +from openadapt_flow.form_tx.types import ( + ControlKind, + FieldAnchorSpec, + FieldBindingSpec, + FieldCodecSpec, + FormCodecKind, + FormPack, + OutputExtractionSpec, + PrefillPolicy, + SummaryCheckSpec, + UIProfileSpec, + UnboundControlSpec, + WizardScreenSpec, +) + +CASE_PREFIX = "lta" + +TEXT = FieldCodecSpec(kind=FormCodecKind.WHITESPACE_COLLAPSE) +FOLD = FieldCodecSpec(kind=FormCodecKind.CASEFOLD) +INT = FieldCodecSpec(kind=FormCodecKind.INTEGER) +DATE_MDY = FieldCodecSpec(kind=FormCodecKind.ISO_DATE, date_order="MDY") +MONEY = FieldCodecSpec(kind=FormCodecKind.CURRENCY_CENTS, currency_symbol="$") +BOOL = FieldCodecSpec(kind=FormCodecKind.BOOLEAN_YES_NO) +PHONE = FieldCodecSpec(kind=FormCodecKind.PHONE_DIGITS) + +PLACEHOLDERS = ("", "Choose a state") + +ABOUT = (r"^First, about you$",) +STORED = (r"^What we stored$",) + +DESTINATION_KEY = "destination_shown" +TRAVELLERS_KEY = "travellers_shown" +T1_NAME = "traveller_1_name" +T1_DOB = "traveller_1_dob" + + +def _p(label: str) -> str: + return "^" + re.escape(label) + "$" + + +def _bind( + key: str, + label: str, + id_attr: str, + kind: ControlKind = ControlKind.TEXT, + codec: FieldCodecSpec = TEXT, + *, + section: tuple[str, ...] = (), + defaults: tuple[str, ...] = (), + typeahead: int | None = None, +) -> FieldBindingSpec: + return FieldBindingSpec( + binding_id=f"lta_{key}", + dossier_key=key, + anchor=FieldAnchorSpec( + label_patterns=(_p(label),), + name_or_id_patterns=(_p(id_attr),), + section_patterns=section, + ), + control_kind=kind, + codec=codec, + prefill_policy=PrefillPolicy.HALT_ON_CONFLICT, + required_in_pack=True, + placeholder_values=PLACEHOLDERS, + portal_default_values=defaults, + typeahead_query_chars=typeahead, + ) + + +def _radio(key: str, group_label: str, name: str) -> FieldBindingSpec: + return FieldBindingSpec( + binding_id=f"lta_{key}", + dossier_key=key, + anchor=FieldAnchorSpec( + label_patterns=(_p(group_label),), name_or_id_patterns=(_p(name),) + ), + control_kind=ControlKind.RADIO_GROUP, + codec=FOLD, + required_in_pack=True, + ) + + +def _shown(key: str, label: str, codec: FieldCodecSpec = TEXT) -> FieldBindingSpec: + return FieldBindingSpec( + binding_id=f"lta_rb_{key}", + dossier_key=key, + anchor=FieldAnchorSpec(label_patterns=(_p(label),), section_patterns=STORED), + codec=codec, + ) + + +def _screen( + screen_id: str, landmark: str, edit_row: int, section: str +) -> WizardScreenSpec: + return WizardScreenSpec( + screen_id=screen_id, + landmark_selector=landmark, + next_button_anchor=FieldAnchorSpec( + label_patterns=(r"^Continue$",), section_patterns=(_p(section),) + ), + # The review's "Edit " button for the step's first field. + revisit_selector=f"#rev > div:nth-of-type({edit_row}) > button", + ) + + +PROFILE = UIProfileSpec( + profile_id="set4v2b0_larkspan", + auth_wall_selectors=('input[type="password"]',), +) + +PACK = FormPack( + pack_id="set4v2b0.larkspan.travel.v1", + domain_schema="personal_lines.travel", + ui_profile_id=PROFILE.profile_id, + bindings=( + # 1. First, about you + _bind("purchaser_name", "Full name", "d-name", section=ABOUT), + _bind("purchaser_email", "Email", "d-email", codec=FOLD), + _bind("purchaser_phone", "Mobile phone", "d-phone"), + _bind( + "residence_state", + "State of residence", + "d-state", + ControlKind.SELECT, + FOLD, + ), + # 2. Where are you going? + _bind( + DESTINATION_KEY, + "Destination", + "dest", + ControlKind.PORTAL_COMBOBOX, + TEXT, + typeahead=4, + ), + # 3. When are you travelling? + _bind("departure_date", "Departure date", "dep", codec=DATE_MDY), + _bind("return_date", "Return date", "ret", codec=DATE_MDY), + # 4. Who's travelling? (one traveller only, see the module notes) + _bind(T1_NAME, "Full name", "tn0", section=(r"^Traveller 1$",)), + _bind( + T1_DOB, + "Date of birth", + "td0", + codec=DATE_MDY, + section=(r"^Traveller 1$",), + ), + # 5. What did the trip cost? + _bind("trip_cost", "Total prepaid trip cost ($)", "cost", codec=INT), + # 6. Choose your cover + _radio("plan", "Choose a plan", "plan"), + _bind( + "cfar", + "Add Cancel For Any Reason (CFAR)", + "cfar", + ControlKind.CHECKBOX, + BOOL, + defaults=("false",), + ), + ), + screens=( + WizardScreenSpec( + screen_id="lta_review", + landmark_selector="#agree:checked", + is_commit_screen=True, + commit_button_anchor=FieldAnchorSpec(label_patterns=(r"^Get my quote$",)), + ), + # The review's confirmation tick, declared as its own step: the + # layer ticks it like a Next button once the review is shown. + WizardScreenSpec( + screen_id="lta_confirm", + landmark_selector="#agree:not(:checked)", + next_button_anchor=FieldAnchorSpec( + label_patterns=(r"^I confirm the details above are correct$",) + ), + ), + _screen("lta_about", "#d-name", 1, "First, about you"), + _screen("lta_destination", "#dest", 5, "Where are you going?"), + _screen("lta_dates", "#dep", 6, "When are you travelling?"), + _screen("lta_travellers", "#tn0", 8, "Who's travelling?"), + _screen("lta_cost", "#cost", 9, "What did the trip cost?"), + _screen("lta_cover", "#cfar", 10, "Choose your cover"), + ), + summary_check=SummaryCheckSpec( + field_readbacks=( + _shown("purchaser_name", "Purchaser"), + _shown("purchaser_email", "Email", FOLD), + _shown("purchaser_phone", "Phone", PHONE), + _shown("residence_state", "State of residence", FOLD), + _shown(DESTINATION_KEY, "Destination", FOLD), + _shown("departure_date", "Departing", DATE_MDY), + _shown("return_date", "Returning", DATE_MDY), + _shown(TRAVELLERS_KEY, "Travellers", FOLD), + _shown("trip_cost", "Trip cost", MONEY), + _shown("plan", "Plan", FOLD), + _shown("cfar", "Cancel For Any Reason", BOOL), + ), + outputs=( + OutputExtractionSpec( + output_key="quote.reference", + anchor=FieldAnchorSpec( + label_patterns=(r"^Quote (?:reference|number)$",) + ), + value_pattern=r"\b(LK-\d{2}-\d{4,})\b", + required=True, + ), + ), + ), + unbound_controls=( + UnboundControlSpec( + anchor=FieldAnchorSpec( + label_patterns=(r"^I confirm the details above are correct$",) + ), + blank_values=("false",), + ), + ), + max_commit_mutations=1, + ignored_intake_keys=( + # Entered through derived facts: the destination as the combobox + # shows it, and the single traveller's name and date of birth. + "destination_name", + "destination_region", + "travelers", + # No control for free-text trip notes on any screen of the dev case. + "itinerary", + # Cost items are not entered: the total is typed, and a case without + # one stops at the required cost field (the calculator is not used). + "cost_flights", + "cost_lodging", + "cost_tours", + "cost_other", + ), +) + + +def _mdy(iso: str) -> str: + year, month, day = iso.split("-") + return f"{month}/{day}/{year}" + + +def derived_facts(raw: dict[str, Any]) -> dict[str, Any]: + """Intake facts restated the way the portal shows them. + + - The destination entry: " - ". + - With exactly one traveller: that traveller's name and date of birth, + and the summary's "Name (MM/DD/YYYY)". With any other count no + traveller fact is given, so the run stops at the traveller step. + """ + out: dict[str, Any] = {} + name = str(raw.get("destination_name") or "").strip() + region = str(raw.get("destination_region") or "").strip() + if name and region: + out[DESTINATION_KEY] = f"{name} - {region}" + travellers = raw.get("travelers") + if isinstance(travellers, list) and len(travellers) == 1: + t = travellers[0] if isinstance(travellers[0], dict) else {} + t_name = str(t.get("name") or "").strip() + t_dob = str(t.get("dob") or "").strip() + if t_name and re.fullmatch(r"\d{4}-\d{2}-\d{2}", t_dob): + out[T1_NAME] = t_name + out[T1_DOB] = t_dob + out[TRAVELLERS_KEY] = f"{t_name} ({_mdy(t_dob)})" + return out diff --git a/packages/flow/benchmark/form_tx_heldout_run/run.py b/packages/flow/benchmark/form_tx_heldout_run/run.py index 05a0705321..7eea495ca2 100644 --- a/packages/flow/benchmark/form_tx_heldout_run/run.py +++ b/packages/flow/benchmark/form_tx_heldout_run/run.py @@ -32,6 +32,18 @@ SUITES = { "heldout": ("benchmark.form_tx_heldout", "benchmark.form_tx_heldout_run.packs"), "heldout2": ("benchmark.form_tx_heldout2", "benchmark.form_tx_heldout_run.packs2"), + "heldout3": ("benchmark.form_tx_heldout3", "benchmark.form_tx_heldout_run.packs3"), + # Set 4: arm B packs (with the compiler report) and arm B0 packs (without). + "heldout4": ("benchmark.form_tx_heldout4", "benchmark.form_tx_heldout_run.packs4"), + "heldout4b0": ( + "benchmark.form_tx_heldout4", + "benchmark.form_tx_heldout_run.packs4b0", + ), + # Set 4 v2 (sealed): portals live outside the repo, in the folder named + # by FORM_TX_SET4V2_PRIVATE (default ~/oa/private/form-tx-set4v2), and the + # answer key is decrypted in memory by its own scorer. + "set4v2": ("form_tx_set4v2", "benchmark.form_tx_heldout_run.packs5"), + "set4v2b0": ("form_tx_set4v2", "benchmark.form_tx_heldout_run.packs5b0"), } _SUITE = {"name": "heldout"} @@ -39,6 +51,15 @@ def _use_suite(name: str) -> None: global PORTALS, load_answer_key, score_case, PACKS, dossier_for portals_pkg, packs_mod = SUITES[name] + if not portals_pkg.startswith("benchmark."): + import os + + private = os.environ.get( + "FORM_TX_SET4V2_PRIVATE", + str(Path.home() / "oa" / "private" / "form-tx-set4v2"), + ) + if private not in sys.path: + sys.path.insert(0, private) PORTALS = importlib.import_module(portals_pkg + ".portals").PORTALS scoring = importlib.import_module(portals_pkg + ".scoring") load_answer_key, score_case = scoring.load_answer_key, scoring.score_case @@ -288,7 +309,20 @@ def res( note["script_hit"] = entry is not None if entry is None: return res(HumanDecisionAction.ESCALATE_TO_OWNER) - action = HumanDecisionAction(entry.get("action", "provide_value")) + raw_action = str(entry.get("action", "provide_value")) + # Answer keys may name the operator's step in their own words ("select" + # an option); anything that is not a decision action and carries a value + # is a provided value, anything else escalates. + aliases = {"select": "provide_value", "choose": "provide_value", "type": "provide_value"} + raw_action = aliases.get(raw_action, raw_action) + try: + action = HumanDecisionAction(raw_action) + except ValueError: + note["unknown_script_action"] = raw_action + if entry.get("value") is not None: + action = HumanDecisionAction.PROVIDE_VALUE + else: + return res(HumanDecisionAction.ESCALATE_TO_OWNER) if action == HumanDecisionAction.PROVIDE_VALUE and action in allowed: return res(action, entry.get("value"), halt.dossier_key) if action == HumanDecisionAction.ACCEPT_PORTAL_PREFILL and action in allowed: @@ -314,6 +348,84 @@ def res( return res(HumanDecisionAction.ESCALATE_TO_OWNER) +CONTROL_LOG: dict[str, str] = {"dir": ""} + + +def _write_control_log(case: dict[str, Any]) -> None: + """One JSON file per case: every bound control as last seen, with intake. + + For each pack binding: the intake value, and the control it matched on the + last observed screen (label, value, options, row cells, error text). Also + every unbound visible control and the page text. Synthetic data only. + """ + out_dir = CONTROL_LOG["dir"] + session = case.get("_session") + if not out_dir or session is None or session._last_observation is None: + return + from openadapt_flow.form_tx.surface import match_anchor_in_snapshot + + snap = session._last_observation + bound: list[dict[str, Any]] = [] + seen: set[str] = set() + for b in session.pack.bindings: + fact = session.effective_facts.get(b.dossier_key) + try: + ctrl = match_anchor_in_snapshot(b.anchor, snap, include_readonly=True) + except Exception as exc: # noqa: BLE001 + ctrl = None + err = repr(exc)[:200] + else: + err = "" + if ctrl is not None: + seen.add(ctrl.dom_selector) + bound.append( + { + "binding_id": b.binding_id, + "dossier_key": b.dossier_key, + "intake": None if fact is None else fact.value, + "observed": None + if ctrl is None + else { + "label": ctrl.label_text, + "group_label": ctrl.group_label, + "value": ctrl.current_value, + "checked": ctrl.checked, + "options": [o.model_dump() for o in ctrl.options], + "row_cells": list(ctrl.row_cells), + "error_text": ctrl.error_text, + }, + "match_error": err, + } + ) + unbound = [ + { + "label": c.label_text, + "value": c.current_value, + "selector": c.dom_selector, + "options": [o.model_dump() for o in c.options], + } + for c in snap.controls + if c.visible and c.dom_selector not in seen + ] + path = Path(out_dir) / f"{case['case_id']}.json" + path.parent.mkdir(parents=True, exist_ok=True) + path.write_text( + json.dumps( + { + "case_id": case["case_id"], + "screen_id": snap.screen_id, + "url": snap.url_origin_and_path, + "bound": bound, + "unbound": unbound, + "banners": list(snap.banner_errors), + "page_text": snap.page_text, + }, + indent=1, + default=str, + ) + ) + + def run_case( browser: Any, base: str, @@ -327,14 +439,9 @@ def run_case( ) -> dict[str, Any]: spec = PORTALS[pid] _post(f"{base}/__oracle/load_case", {"case_id": case_id}) + pkg_dir = Path(importlib.import_module(SUITES[_SUITE["name"]][0]).__file__).parent intake = json.loads( - ( - HERE.parent - / SUITES[_SUITE["name"]][0].split(".")[-1] - / "cases" - / pid - / f"{case_id}.intake.json" - ).read_text() + (pkg_dir / "cases" / pid / f"{case_id}.intake.json").read_text() ) script = answer_key["cases"][case_id].get("operator_script", {}) out: dict[str, Any] = {"portal": pid, "case_id": case_id, "halts": []} @@ -398,6 +505,8 @@ def run_case( ), "failed": list(verdict.failed_keys), "not_checked": list(verdict.not_checked_keys), + # Reporting only (Set 4 secondary metric). + "read_route": getattr(verdict, "read_route", "unrecorded"), } out["receipt"] = result.receipt is not None except Exception as exc: # noqa: BLE001 @@ -467,8 +576,15 @@ def main(argv: list[str]) -> int: help="frozen first run only: the operator runs harborline's estimator by " "hand (deviation D2). Off for every later run.", ) + ap.add_argument( + "--control-log", + default="", + help="directory for one per-control JSON log per case (intake value, " + "observed value, label, option map, page text); synthetic data only", + ) ap.add_argument("portals", nargs="*") args = ap.parse_args(argv) + CONTROL_LOG["dir"] = args.control_log _use_suite(args.suite) OPERATOR_TOOLS_ON["on"] = args.operator_estimator answer_key = load_answer_key() @@ -524,6 +640,7 @@ def qualify(candidate_pack: FormPack, _pid: str = pid) -> bool: if args.arm == "C": pack, learned = maybe_learn(acc, pack, case, qualify) case["learning"] = learned + _write_control_log(case) case.pop("_session", None) print(MARK + " " + json.dumps(case, default=str), flush=True) finally: diff --git a/packages/flow/benchmark/form_tx_heldout_run/summarize.py b/packages/flow/benchmark/form_tx_heldout_run/summarize.py index 48f0dbfd28..647c1dbc0c 100644 --- a/packages/flow/benchmark/form_tx_heldout_run/summarize.py +++ b/packages/flow/benchmark/form_tx_heldout_run/summarize.py @@ -24,11 +24,33 @@ if _arg.startswith("--suite="): SUITE = _arg.split("=", 1)[1] sys.argv.remove(_arg) -_PKG = {"heldout": "benchmark.form_tx_heldout", "heldout2": "benchmark.form_tx_heldout2"}[SUITE] +_PKG = { + "heldout": "benchmark.form_tx_heldout", + "heldout2": "benchmark.form_tx_heldout2", + "heldout3": "benchmark.form_tx_heldout3", + "heldout4": "benchmark.form_tx_heldout4", + "heldout4b0": "benchmark.form_tx_heldout4", + "set4v2": "form_tx_set4v2", + "set4v2b0": "form_tx_set4v2", +}[SUITE] _PACKS = { "heldout": "benchmark.form_tx_heldout_run.packs", "heldout2": "benchmark.form_tx_heldout_run.packs2", + "heldout3": "benchmark.form_tx_heldout_run.packs3", + "heldout4": "benchmark.form_tx_heldout_run.packs4", + "heldout4b0": "benchmark.form_tx_heldout_run.packs4b0", + "set4v2": "benchmark.form_tx_heldout_run.packs5", + "set4v2b0": "benchmark.form_tx_heldout_run.packs5b0", }[SUITE] +if not _PKG.startswith("benchmark."): + import os + + sys.path.insert( + 0, + os.environ.get( + "FORM_TX_SET4V2_PRIVATE", str(Path.home() / "oa" / "private" / "form-tx-set4v2") + ), + ) PORTALS = importlib.import_module(_PKG + ".portals").PORTALS load_answer_key = importlib.import_module(_PKG + ".scoring").load_answer_key diff --git a/packages/flow/benchmark/form_tx_portals/runner.py b/packages/flow/benchmark/form_tx_portals/runner.py index 2d03314c96..cc80dad6ab 100644 --- a/packages/flow/benchmark/form_tx_portals/runner.py +++ b/packages/flow/benchmark/form_tx_portals/runner.py @@ -61,6 +61,9 @@ class CaseScore: elapsed_ms: float outcome: str notes: str = "" + # The server oracle's verdict on the saved record alone, independent of + # any receipt or outcome (None where the arm does not record it). + saved_record_accurate: Optional[bool] = None @dataclass @@ -510,6 +513,7 @@ def run_portal_benchmark(*, ppr_delay_ms: int = 80) -> PortalBenchmarkReport: silent_corrupt_commit=( res.outcome == FormTxOutcome.VERIFIED_DONE and not accurate ), + saved_record_accurate=accurate, human_decisions=human_steps, fields_filled_auto=res.fields_filled_auto, receipt_verified=rcpt_ok, diff --git a/packages/flow/benchmark/form_tx_portals/servers.py b/packages/flow/benchmark/form_tx_portals/servers.py index a22e4abaeb..5a4aa84f54 100644 --- a/packages/flow/benchmark/form_tx_portals/servers.py +++ b/packages/flow/benchmark/form_tx_portals/servers.py @@ -15,7 +15,8 @@ - Child popup window (``window.open('/estimator/popup')``) with a body-portaled custom combobox that computes replacement cost and syncs it back to the parent wizard. - - Independent Quote Summary read-back page with normalized formatting. + - Quote Summary page with normalized formatting, read back by the acting + session (not an independent check). 2. ``LegacyHospitalQueuePortal`` (Held-Out Application): - 2FA login wall + session TTL + read-only ``/api/keepalive`` endpoint. @@ -23,7 +24,7 @@ - Duplicate-phone confirmation ```` modal when registering a family member sharing an existing phone number. - Mints a unique patient identifier (``HMS-2026-XXXXX``) and exposes an - independent ``/hms/search`` read-back lookup screen. + ``/hms/search`` lookup screen, read back by the acting session. """ from __future__ import annotations @@ -546,13 +547,13 @@ def _render_applicant_screen(self) -> str:
    Applicant Information
    -
    +
    -
    +
    -
    +
    -
    +
    -
    +
    Prefilled Household Members @@ -659,11 +660,11 @@ def _render_property_fields_fragment(self) -> str: cur_pool = self.draft["has_pool"] return f"""
    -
    +
    -
    +
    -
    + {extra_roof}
    +
    -
    +
    -
    +
    Rated Risk & Coverage Verification
    -
    +
    -
    +
    -
    +
    -
    +
    -
    +
    -
    +
    -
    +
    -
    +
    -
    +
    -
    +
    -
    +
    -
    +
    -
    +
    -
    +
    -
    +
    @@ -1263,21 +1264,21 @@ def _render_search_page(self, uhid: str, rec: Optional[dict[str, str]]) -> str:
    Verified Patient Chart
    -
    +
    -
    +
    -
    +
    -
    +
    -
    +
    -
    +
    -
    +
    -
    +
    """ return f""" HMS - Patient Chart Lookup diff --git a/packages/flow/benchmark/form_tx_set4v2_run/ENGINE_SHA_B b/packages/flow/benchmark/form_tx_set4v2_run/ENGINE_SHA_B new file mode 100644 index 0000000000..6bbbea13dc --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/ENGINE_SHA_B @@ -0,0 +1 @@ +1ddd6971284f27f0dcdbe86051d10147e6a87e91 diff --git a/packages/flow/benchmark/form_tx_set4v2_run/ENGINE_SHA_B0 b/packages/flow/benchmark/form_tx_set4v2_run/ENGINE_SHA_B0 new file mode 100644 index 0000000000..1368767a70 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/ENGINE_SHA_B0 @@ -0,0 +1 @@ +866aac8c1d2221295eb6047e47cdef59226f7feb diff --git a/packages/flow/benchmark/form_tx_set4v2_run/PREREGISTRATION.md b/packages/flow/benchmark/form_tx_set4v2_run/PREREGISTRATION.md new file mode 100644 index 0000000000..5ef0d7abd7 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/PREREGISTRATION.md @@ -0,0 +1,195 @@ +# Pre-registration: Set 4 v2 (sealed), pack compiler and round-3 fixes on three new portals + +Written 2026-11-22, after the v2 portals were sealed. Nobody on the +form-layer side has read them (code, scored intakes or answer key), and +nothing has run on them yet. + +**Why v2.** The first Set 4 (`../form_tx_heldout4_run/`) is no longer held +out, for three reasons: +- its plaintext answer key sat in a shared worktree; +- portals in that tree were edited after some study arms had results; +- two portals overlap a renderer's layouts used by another study. + +It is now a dev set: its demos and B0 packs stay as dev material, and no +claim rests on them. + +**What is sealed.** A fresh agent that never read the form layer built three +new portals: +- **Location:** outside every worktree, in `~/oa/private/form-tx-set4v2/`, + read-only, with local git only. Freeze commit `eb7189f83`. +- **Answer key:** encrypted (`answer_key.json.enc`, sha256 `7484eb70...7e817d`; + plaintext sha256 `ad43d211...0c712ed9`). The key sits in a separate 0600 + file that only the scorer reads. +- **Case source:** encrypted the same way. +- **Pack authors** see only the public subset (`~/oa/private/form-tx-set4v2-public/`): + dev intakes, the vocabulary and portal metadata. +- **Scored cases:** 30 scored cases (14 `submit_clean`) on `brackwater`, `larkspan` + and `hollowfen`. + +Everything below keeps the first Set 4's rules, with the portal set and +paths replaced. + +## What is frozen + +- **Portals and answer key:** the sealed folder above, freeze commit + `eb7189f83a77e80515923d9ff03be1e3bc8e1ca4`. The answer key's plaintext + sha256 is `ad43d211160b08f681afe016d8784187fab73c715ffbfeeb1eb668310c712ed9` + and its encrypted sha256 is + `7484eb70c49f1fcec190ac717fb40b095a356fd36f1e66ab5544f1c27a7e817d`. + - Three portals: `brackwater`, `larkspan` and `hollowfen`, one dev case + each. + - 30 scored cases (14 `submit_clean`, 16 trap). +- **Engines:** + - B0 runs `claude/form-tx-rework` at `866aac8c1`, the engine before round 3. + - B runs `claude/form-tx-rework` at `1ddd6971284f27f0dcdbe86051d10147e6a87e91` + (in `ENGINE_SHA_B`), the round-3 head. It adds the rulings of 2026-11-21: + intake values the portal never asks for are not covered unless the + pack requires them, and a radio group is one subject. + - Both freezes cover `packages/flow/openadapt_flow/`. +- **Oracle:** the portal's stored record, scored by the portal author's + `score_case`. + +## Procedure + +1. Push this file. Only then merge the portals branch into the run branch. +2. **Demonstrations.** The portal author's careful-human driver runs on each + dev case only. Before every click and every value change (fill, select, + check, type), the recorder saves what the surface sees + (`record_demo.py`), so the first sighting of each control is its + blank-form value. + - Only one dev case exists per portal, so every pack uses exactly + **one demonstration** plus this blank-form probe. + - The defaults table therefore proves a default only where the dev intake + asked for a value other than the one the blank form showed. T1 cases + whose default equals the dev intake value stay unproven. +3. **Packs.** Each pack is written by a fresh agent that gets only the dev + intake, the dev demonstration, its own dev-case run output, the pack + format, and one earlier pack as an example. + - **B0 packs:** 3 agents. They do not get the compiler report and must not + use the round-3 pack fields: `optional`, `review_readbacks`, + `ignored_intake_keys` beyond what the B0 engine supports, and the + compiler. + - **B packs:** 3 different agents. They also get the compiler's report for + their portal and may use every engine feature at `ENGINE_SHA_B`. + - No author reads portal source, drivers, scored intakes or the answer key. + - Packs are committed before the first scored case. +4. **Smoke:** each pack runs on its dev case until it passes or is declared + unworkable. An engine change for B is allowed only before the first scored + case, as a general fix with a test and no portal names, recorded here as a + deviation that re-pins `ENGINE_SHA_B`. The B0 engine never changes. +5. **Scored run:** every scored case runs once per arm, in `spec.cases` + order, headless Chromium on the zenbook lab, with a fresh `load_case` + before each case, a 180 s wall limit per case and at most 12 stops per + case. + - Arm order: A, B0, B. + - Per-control logs (`run.py --control-log`) are kept for B0 and B. +6. Any change after the first scored case is a labelled post-hoc row and never + replaces a frozen row. + +## Arms + +- **A, unguarded:** the portal author's `naive_filler.py`, run once. +- **B0:** round-2 engine, packs without the compiler. +- **B:** round-3 engine, packs with the compiler report. + +The scripted operator is unchanged from the earlier runs (`run.py`). + +## Metrics (denominators from the answer key) + +These are the same as in the earlier runs, per arm, per portal and pooled: +- correct submissions, and correct and `verified_done` with a receipt; +- wrong submitted, split into false proof, flagged after submit, and silent; +- trap cases stopped before submit, and stopped then correct; +- clean cases with a false stop; +- verified share; +- `not_checked` fields; +- hand-backs; +- unsubmitted cases; +- errors. + +**Reported by type.** Wrong submits, clean-case false stops and `not_checked` +fields are each listed with a cause type, from the screen-verifier taxonomy: +- T1, UI default versus stored prefill; +- T2, a control the demo skipped; +- T3, identical Select rows; +- T4, a popup the demo never opened; +- T5, a look-alike option; +- T6, which field an error belongs to; +- T8, a stale prefill; +- other. + +The cause type is assigned after the run by the form-layer author from the +rows and per-control logs. That is a judgement and is labelled as one. For +each pack the results also state how many demonstrations it used, which is +one, and which compiler findings it adopted. + +**Secondary metric (declared under D1, before any scored case).** For every +case B ends `verified_done`, the result records which read produced it: +- the page the run landed on after commit (`same_screen`); +- a new navigation or search that fetched the record from the server again + (`fresh_navigation`); +- a separate session. + +The engine's `SummaryVerdict.read_route` holds this; it is reporting only. +Set 4's verified share is reported both ways: +- under today's meaning; +- under the shared check-level ladder, where a same-screen read counts as + SHOWN and only a fresh reload, a separate session or the system of record + counts as VERIFIED. + +## Criteria (fixed now) + +- **Halving test (kill):** B's clean-case false stops must be at most half of + B0's, counted over all 14 clean cases. If B0 has no clean false stop, the + test cannot be met and is reported as not applicable. If B misses it, the + deterministic-fix claim is killed. +- **Hard gates for B:** + - zero false receipts, meaning a wrong value submitted with `verified_done`; + - zero silent wrong submits. + + Either one failing kills the receipt claim or the nothing-unflagged claim, + whatever the halving test says. +- **K1 to K4 for B**, with the same bars as before (K1 at least 75%, K2 at + most 10%, K3 at least 50%, K4 zero), reported next to B0's. +- **Small n:** 30 cases, 14 of them clean. One clean case is about 7 points + of K2. + +## What this cannot show + +Three synthetic portals by one author, each pack built from one +demonstration. Nothing here speaks to real carriers, real sessions or real +operators. + +## Deviations + +**D1, 2026-11-22, packs written; no scored case had run.** +- **Engines.** B0 packs were written and smoked in a worktree whose + `openadapt_flow` equals `866aac8c1` (the compiler module removed). B packs + were written at `1ddd69712`. +- **Read-limit departures, as the six authors reported them:** + - Several used the runner's `--control-log` on their own dev runs, which + shows the dev page text and the last-seen controls. + - One B author read parts of `reconciler.py` and grepped + `playwright_surface.py`. Others grepped engine files for a few lines, or + listed the run folder's file names. + - One B0 author read part of a set-4 (first-version) dev pack for another + portal. + - No author opened the sealed folder, the key, scored intakes or the + answer key. +- **Pack choices to review, recorded here and not changed:** + - Packs tick review-page confirmation boxes from a derived fact (an + attestation, not intake data). + - Two brackwater packs narrow the modal selectors to exclude the portal's + section dialogs; any other open dialog still stops. + - Some packs sum intake items in `derived_facts` where the vocabulary + defines the total that way. + - One hollowfen pack declares its post-submit read-back once per step, to + meet the per-screen write ledger. +- **Dev smoke.** No v2 dev case reached `verified_done` in either arm: + - larkspan and hollowfen submit correct records but end + `readback_incomplete`: a combined summary row, an unreadable + lookup-window result, and attestation boxes; + - brackwater stops before submit on a type-ahead whose directory entry + cannot be built from the intake. + + The registered criteria are unchanged. diff --git a/packages/flow/benchmark/form_tx_set4v2_run/RESULTS.md b/packages/flow/benchmark/form_tx_set4v2_run/RESULTS.md new file mode 100644 index 0000000000..ef51d30e3c --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/RESULTS.md @@ -0,0 +1,161 @@ +# Results: Set 4 v2 (sealed), arms A, B0 and B + +Run 2026-11-22 on the Mac: headless Chromium, one process through the shared +CPU slots, because the lab laptop's WSL was hung. Each arm ran once, in the +registered order A, B0, B. + +| | | +| --- | --- | +| Portals | sealed folder, freeze commit `eb7189f83` | +| B0 engine | `866aac8c1` | +| B engine | `1ddd69712` | +| Packs | committed at `a4e890c21`, before any scored case (D1) | +| Raw rows | `results/arm_{A,B0,B}.jsonl` and the full logs | +| Per-control logs | `results/controls_{B0,B}/` | +| Counts | `../form_tx_heldout_run/summarize.py --suite=set4v2` | + +Everything is synthetic. + +## Headline + +**Verdict: rework. The halving test fails, so the deterministic-fix claim is +killed. Both hard gates hold.** + +- **Clean-case false stops: B 12 of 14, B0 9 of 14.** B stopped more + clean cases than B0, not half as many. +- **Hard gates:** zero false receipts and + zero silent wrong submits, in B and in B0. Nothing ended `verified_done` + in either arm. +- **B submitted 5 cases: 4 correct and 1 wrong.** + - The wrong one is `lta-s03`, an evacuation limit the dev case never showed. + It ended `readback_incomplete`, and the flag names the field as + `unbound:Emergency medical evacuation limit`. The unbound-control rule did + its job. + - B0 submitted 8: 6 correct and 2 wrong, both flagged after submit. +- **Arm A (unguarded):** 13 of 30 correct, 16 wrong submitted with no flag, + 1 error. + +## Criteria + +| | Bar | B0 | B | | +| --- | --- | ---: | ---: | --- | +| Halving test: B false stops at most half of B0's | B ≤ 4 | 9 | 12 | **killed** | +| False receipts (hard gate) | 0 | 0 | 0 | held | +| Silent wrong submits (hard gate) | 0 | 0 | 0 | held | +| K1, trap cases stopped before submit | ≥75% | 9/16 | 13/16 (81%) | met for B | +| K2, clean false stops | ≤10% | 9/14 | 12/14 (86%) | not met | +| K3, verified share of submitted cases | ≥50% | 0/8 | 0/5 | not met | +| K4, wrong submitted | 0 | 2 | 1 | not met | +| Trap stopped, then correct | | 0 | 0 | | +| Harness errors | | 2 | 0 | | + +B0's two harness errors come from the runner, not the engine. The scripted +operator received an `operator_script` action, `select`, that it does not +know. + +**Verified share, both ways (secondary metric).** No case was verified in +either arm, so the share is 0 under today's meaning and 0 under the +check-level ladder. All five B submissions read the page they landed on +(`read_route: same_screen`). Under the ladder that read is SHOWN, not +VERIFIED, even where every field passed. + +## False stops on clean cases, by type (B) + +The type is the form-layer author's judgement, made from the rows and +control logs. + +| Type | Count | Cases | +| --- | ---: | --- | +| T5, look-alike option (directory entry not buildable from the intake) | 5 | bfu-s01, s04, s06, s09; lta-s02 | +| T1, UI default versus prefill (default unproven from one demo) | 2 | hbm-s05, s08 | +| T3, identical Select rows (no intake key names the row) | 1 | hbm-s02 | +| Other, pack workaround for "add another traveller" (a popup that cannot exist) | 2 | lta-s01, s06 | +| Other, next control is a link, not a listed control | 1 | bfu-s02 | +| Other, commit behind an attestation screen (no-commit-control stop) | 1 | lta-s05 | + +B0's 9 false stops are T5 (6) and missing traveller facts (3), which comes +from the same repeating-row limit. + +B stops more clean cases than B0 for three reasons: +- **T1:** the compiler would not prove the deductible default from one + demonstration. The B pack therefore halts on it, and B0's pack had + declared it. +- **Repeating rows:** the B larkspan pack declared a stop for multi-traveller + cases. +- **No-commit rule:** the new rule stops a screen with no commit control. + +All three are fail-closed by design. They cost K2 and buy no false receipt. + +## Demos per pack + +Every pack used **one** demonstration plus the blank-form probe. + +- No pack had a second demo. +- So the T1 defaults table could prove a default only where the dev intake + differed from the blank value. +- The deductible's blank value equalled the dev intake, so it stayed + unproven. This produced the two T1 stops. + +## Wrong submits and not_checked, by type + +**Wrong submits:** +- B: `lta-s03`, a control the demo skipped (T2). It was flagged on the + right field. +- B0: `lta-s03` (T2) and `hbm-s06`, a deductible prefill mismatch caught by + read-back (T1/T8). + +**not_checked in B (14 fields):** +- combined summary rows (traveller name and date of birth) and attestation + boxes; +- lookup-window search terms and results (`class_keyword`, `class_code`); +- one unbound control. + +## What this cannot show + +Three synthetic portals by one author, 30 cases, each pack built from one +demonstration. The B0/B comparison also differs in pack authors, not only in +engine and compiler. + +## B against B0: which stops come from what (post-hoc analysis) + +B stopped more clean cases than B0 (12 against 9) and more traps (13 against +9). Case by case, the differences come from two sources: one stricter safety +rule and one compiler gap. Everything else is the same root cause stopping +both arms, with a different stop message. + +**Compiler gap: a default it cannot prove from one demo.** +- **What happened.** The B hollowfen pack followed the compiler and did not + declare the deductible default, because the blank value equalled the dev + intake (`unproven_same_as_intake`). The B0 author declared it by judgement. +- **In B:** every hollowfen case where the deductible differs stops. + - Clean cases: hbm-s05 and hbm-s08 became false stops (2 of B's 3 extra). + - Traps: hbm-s06, hbm-s09 and hbm-s10 were caught. +- **In B0:** hbm-s06 was submitted wrong (deductible 500, intake 2500). The + B0 author's default was really a prefill. +- **Reading.** From one demo the layer cannot tell a default from a prefill. + The fail-closed choice cost 2 clean cases and prevented 1 wrong submit. A + real second demo is the general fix. + +**Stricter safety rule: no commit control means no commit.** +- **What happened.** In B a screen with no commit control always stops (the + #2429 save-evidence rule). +- **Clean cases:** lta-s05 became a false stop (B's third extra). +- **Traps:** lta-s07 was caught. B0 submitted both without evidence of a + commit path. + +**Same root cause in both arms, different message:** +- **Repeating rows (no "add another traveller"):** lta-s01, s04, s06 and + s10. B0 stopped on an ungrounded name; B stopped on its pack's popup + workaround. +- **Look-alike directory entries:** the bfu cases. One B pack stops one step + earlier, on a link it cannot click. + +**Other:** +- **Harness:** hbm-s07 was a B0 harness error. The scripted operator did not + know the `select` action; it is fixed in `run.py` after this run, as a + post-hoc change to the harness. +- **B did better:** B submitted lta-s08 correctly; B0 stopped it. + +**Net.** Of B's 3 extra clean stops, 2 are the defaults gap (compiler, one +demo) and 1 is the stricter commit rule. Of B's extra trap catches, 3 are the +same defaults stop, 1 is the commit rule and 1 is the harness error. diff --git a/packages/flow/benchmark/form_tx_set4v2_run/demos/brackwater.jsonl b/packages/flow/benchmark/form_tx_set4v2_run/demos/brackwater.jsonl new file mode 100644 index 0000000000..030d0a0ddf --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/demos/brackwater.jsonl @@ -0,0 +1,32 @@ +FORM_TX_DEMO {"portal": "brackwater", "step": 0, "why": "before fill selector='internal:label=\"Agency ID\"s'>", "frame_url": "http://127.0.0.1:64534/login", "is_main": true, "controls": [{"control_id": "aid", "dom_selector": "#aid", "tag": "input", "input_type": "text", "name_attr": "agency_id", "id_attr": "aid", "label_text": "Agency ID", "section_text": "Agency sign-in", "checked": null, "visible": true, "row_text": "Agency ID"}, {"control_id": "pp", "dom_selector": "#pp", "tag": "input", "input_type": "password", "name_attr": "passphrase", "id_attr": "pp", "label_text": "Passphrase", "section_text": "Agency sign-in", "checked": null, "visible": true, "is_secret": true, "row_text": "Passphrase"}, {"control_id": "ctrl_2", "dom_selector": "body > main > form > button", "tag": "button", "label_text": "Sign in", "section_text": "Agency sign-in", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Brackwater sign-in"} +FORM_TX_DEMO {"portal": "brackwater", "step": 1, "why": "before fill selector='internal:label=\"Passphrase\"s'>", "frame_url": "http://127.0.0.1:64534/login", "is_main": true, "controls": [{"control_id": "aid", "dom_selector": "#aid", "tag": "input", "input_type": "text", "name_attr": "agency_id", "id_attr": "aid", "label_text": "Agency ID", "section_text": "Agency sign-in", "current_value": "BFU-40817", "checked": null, "visible": true, "row_text": "Agency ID"}, {"control_id": "pp", "dom_selector": "#pp", "tag": "input", "input_type": "password", "name_attr": "passphrase", "id_attr": "pp", "label_text": "Passphrase", "section_text": "Agency sign-in", "checked": null, "visible": true, "is_secret": true, "row_text": "Passphrase"}, {"control_id": "ctrl_2", "dom_selector": "body > main > form > button", "tag": "button", "label_text": "Sign in", "section_text": "Agency sign-in", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Brackwater sign-in"} +FORM_TX_DEMO {"portal": "brackwater", "step": 2, "why": "before click selector='internal:role=button[name=\"Sign in\"i]'>", "frame_url": "http://127.0.0.1:64534/login", "is_main": true, "controls": [{"control_id": "aid", "dom_selector": "#aid", "tag": "input", "input_type": "text", "name_attr": "agency_id", "id_attr": "aid", "label_text": "Agency ID", "section_text": "Agency sign-in", "current_value": "BFU-40817", "checked": null, "visible": true, "row_text": "Agency ID"}, {"control_id": "pp", "dom_selector": "#pp", "tag": "input", "input_type": "password", "name_attr": "passphrase", "id_attr": "pp", "label_text": "Passphrase", "section_text": "Agency sign-in", "current_value": "", "checked": null, "visible": true, "is_secret": true, "row_text": "Passphrase"}, {"control_id": "ctrl_2", "dom_selector": "body > main > form > button", "tag": "button", "label_text": "Sign in", "section_text": "Agency sign-in", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Brackwater sign-in"} +FORM_TX_DEMO {"portal": "brackwater", "step": 3, "why": "before click selector=\"[data-open='insured']\">", "frame_url": "http://127.0.0.1:64534/flood/hub", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#card-insured > button", "tag": "button", "label_text": "Edit named insured", "section_text": "Named insured", "checked": null, "visible": true, "row_text": "Named insuredNot started Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_1", "dom_selector": "#card-property > button", "tag": "button", "label_text": "Edit property and map", "section_text": "Property and map", "checked": null, "visible": true, "row_text": "Named insuredNot started Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_2", "dom_selector": "#card-building > button", "tag": "button", "label_text": "Edit building details", "section_text": "Building details", "checked": null, "visible": true, "row_text": "Named insuredNot started Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_3", "dom_selector": "#card-coverage > button", "tag": "button", "label_text": "Edit coverage and billing", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Named insuredNot started Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}], "text_pairs": [], "banners": [], "modals": [], "title": "Flood quote"} +FORM_TX_DEMO {"portal": "brackwater", "step": 4, "why": "before fill selector='#dlg-insured >> internal:label=\"Insured name\"s'>", "frame_url": "http://127.0.0.1:64534/flood/hub", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#card-insured > button", "tag": "button", "label_text": "Edit named insured", "section_text": "Named insured", "checked": null, "visible": true, "row_text": "Named insuredNot started Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_1", "dom_selector": "#card-property > button", "tag": "button", "label_text": "Edit property and map", "section_text": "Property and map", "checked": null, "visible": true, "row_text": "Named insuredNot started Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_2", "dom_selector": "#card-building > button", "tag": "button", "label_text": "Edit building details", "section_text": "Building details", "checked": null, "visible": true, "row_text": "Named insuredNot started Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_3", "dom_selector": "#card-coverage > button", "tag": "button", "label_text": "Edit coverage and billing", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Named insuredNot started Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "f-name", "dom_selector": "#f-name", "tag": "input", "input_type": "text", "name_attr": "insured_name", "id_attr": "f-name", "label_text": "Insured name", "section_text": "Named insured", "checked": null, "visible": true, "row_text": "Insured name", "modal_container": "#dlg-insured"}, {"control_id": "f-phone", "dom_selector": "#f-phone", "tag": "input", "input_type": "tel", "name_attr": "insured_phone", "id_attr": "f-phone", "label_text": "Phone number", "section_text": "Named insured", "checked": null, "visible": true, "row_text": "Phone number", "modal_container": "#dlg-insured"}, {"control_id": "ctrl_6", "dom_selector": "#dlg-insured > form > button:nth-of-type(1)", "tag": "button", "label_text": "Save section", "section_text": "Named insured", "checked": null, "visible": true, "modal_container": "#dlg-insured"}, {"control_id": "ctrl_7", "dom_selector": "#dlg-insured > form > button:nth-of-type(2)", "tag": "button", "label_text": "Cancel", "section_text": "Named insured", "checked": null, "visible": true, "modal_container": "#dlg-insured"}], "text_pairs": [], "banners": [], "modals": [{"modal_id": "dlg-insured", "container_selector": "#dlg-insured", "message_text": "Named insured Insured name Phone number Save section Cancel"}], "title": "Flood quote"} +FORM_TX_DEMO {"portal": "brackwater", "step": 5, "why": "before fill selector='#dlg-insured >> internal:label=\"Phone number\"s'>", "frame_url": "http://127.0.0.1:64534/flood/hub", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#card-insured > button", "tag": "button", "label_text": "Edit named insured", "section_text": "Named insured", "checked": null, "visible": true, "row_text": "Named insuredNot started Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_1", "dom_selector": "#card-property > button", "tag": "button", "label_text": "Edit property and map", "section_text": "Property and map", "checked": null, "visible": true, "row_text": "Named insuredNot started Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_2", "dom_selector": "#card-building > button", "tag": "button", "label_text": "Edit building details", "section_text": "Building details", "checked": null, "visible": true, "row_text": "Named insuredNot started Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_3", "dom_selector": "#card-coverage > button", "tag": "button", "label_text": "Edit coverage and billing", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Named insuredNot started Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "f-name", "dom_selector": "#f-name", "tag": "input", "input_type": "text", "name_attr": "insured_name", "id_attr": "f-name", "label_text": "Insured name", "section_text": "Named insured", "current_value": "Marisol Okonkwo-Hale", "checked": null, "visible": true, "row_text": "Insured name", "modal_container": "#dlg-insured"}, {"control_id": "f-phone", "dom_selector": "#f-phone", "tag": "input", "input_type": "tel", "name_attr": "insured_phone", "id_attr": "f-phone", "label_text": "Phone number", "section_text": "Named insured", "checked": null, "visible": true, "row_text": "Phone number", "modal_container": "#dlg-insured"}, {"control_id": "ctrl_6", "dom_selector": "#dlg-insured > form > button:nth-of-type(1)", "tag": "button", "label_text": "Save section", "section_text": "Named insured", "checked": null, "visible": true, "modal_container": "#dlg-insured"}, {"control_id": "ctrl_7", "dom_selector": "#dlg-insured > form > button:nth-of-type(2)", "tag": "button", "label_text": "Cancel", "section_text": "Named insured", "checked": null, "visible": true, "modal_container": "#dlg-insured"}], "text_pairs": [], "banners": [], "modals": [{"modal_id": "dlg-insured", "container_selector": "#dlg-insured", "message_text": "Named insured Insured name Phone number Save section Cancel"}], "title": "Flood quote"} +FORM_TX_DEMO {"portal": "brackwater", "step": 6, "why": "before click selector='#dlg-insured >> internal:role=button[name=\"Save section\"i]'>", "frame_url": "http://127.0.0.1:64534/flood/hub", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#card-insured > button", "tag": "button", "label_text": "Edit named insured", "section_text": "Named insured", "checked": null, "visible": true, "row_text": "Named insuredNot started Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_1", "dom_selector": "#card-property > button", "tag": "button", "label_text": "Edit property and map", "section_text": "Property and map", "checked": null, "visible": true, "row_text": "Named insuredNot started Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_2", "dom_selector": "#card-building > button", "tag": "button", "label_text": "Edit building details", "section_text": "Building details", "checked": null, "visible": true, "row_text": "Named insuredNot started Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_3", "dom_selector": "#card-coverage > button", "tag": "button", "label_text": "Edit coverage and billing", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Named insuredNot started Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "f-name", "dom_selector": "#f-name", "tag": "input", "input_type": "text", "name_attr": "insured_name", "id_attr": "f-name", "label_text": "Insured name", "section_text": "Named insured", "current_value": "Marisol Okonkwo-Hale", "checked": null, "visible": true, "row_text": "Insured name", "modal_container": "#dlg-insured"}, {"control_id": "f-phone", "dom_selector": "#f-phone", "tag": "input", "input_type": "tel", "name_attr": "insured_phone", "id_attr": "f-phone", "label_text": "Phone number", "section_text": "Named insured", "current_value": "504-555-0117", "checked": null, "visible": true, "row_text": "Phone number", "modal_container": "#dlg-insured"}, {"control_id": "ctrl_6", "dom_selector": "#dlg-insured > form > button:nth-of-type(1)", "tag": "button", "label_text": "Save section", "section_text": "Named insured", "checked": null, "visible": true, "modal_container": "#dlg-insured"}, {"control_id": "ctrl_7", "dom_selector": "#dlg-insured > form > button:nth-of-type(2)", "tag": "button", "label_text": "Cancel", "section_text": "Named insured", "checked": null, "visible": true, "modal_container": "#dlg-insured"}], "text_pairs": [], "banners": [], "modals": [{"modal_id": "dlg-insured", "container_selector": "#dlg-insured", "message_text": "Named insured Insured name Phone number Save section Cancel"}], "title": "Flood quote"} +FORM_TX_DEMO {"portal": "brackwater", "step": 7, "why": "before click selector=\"[data-open='property']\">", "frame_url": "http://127.0.0.1:64534/flood/hub", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#card-insured > button", "tag": "button", "label_text": "Edit named insured", "section_text": "Named insured", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_1", "dom_selector": "#card-property > button", "tag": "button", "label_text": "Edit property and map", "section_text": "Property and map", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_2", "dom_selector": "#card-building > button", "tag": "button", "label_text": "Edit building details", "section_text": "Building details", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_3", "dom_selector": "#card-coverage > button", "tag": "button", "label_text": "Edit coverage and billing", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}], "text_pairs": [], "banners": [], "modals": [], "title": "Flood quote"} +FORM_TX_DEMO {"portal": "brackwater", "step": 8, "why": "before fill selector='#dlg-property >> internal:label=\"Property street address\"s'>", "frame_url": "http://127.0.0.1:64534/flood/hub", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#card-insured > button", "tag": "button", "label_text": "Edit named insured", "section_text": "Named insured", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_1", "dom_selector": "#card-property > button", "tag": "button", "label_text": "Edit property and map", "section_text": "Property and map", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_2", "dom_selector": "#card-building > button", "tag": "button", "label_text": "Edit building details", "section_text": "Building details", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_3", "dom_selector": "#card-coverage > button", "tag": "button", "label_text": "Edit coverage and billing", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "f-street", "dom_selector": "#f-street", "tag": "input", "input_type": "text", "name_attr": "property_street", "id_attr": "f-street", "label_text": "Property street address", "section_text": "Property and map", "checked": null, "visible": true, "row_text": "Property street address", "modal_container": "#dlg-property"}, {"control_id": "f-comm", "dom_selector": "#f-comm", "tag": "input", "input_type": "text", "role": "combobox", "id_attr": "f-comm", "label_text": "NFIP community", "section_text": "Property and map", "checked": null, "visible": true, "row_text": "NFIP community", "modal_container": "#dlg-property"}, {"control_id": "f-zone", "dom_selector": "#f-zone", "tag": "select", "name_attr": "flood_zone", "id_attr": "f-zone", "label_text": "Flood zone", "section_text": "Property and map", "current_value": "Select zone", "checked": null, "visible": true, "options": [{"value": "", "label": "Select zone"}, {"value": "A", "label": "Zone A"}, {"value": "AE", "label": "Zone AE"}, {"value": "AO", "label": "Zone AO"}, {"value": "VE", "label": "Zone VE"}, {"value": "X", "label": "Zone X"}, {"value": "D", "label": "Zone D"}], "row_text": "Flood zoneSelect zoneZone AZone AEZone AOZone VEZone XZone D", "modal_container": "#dlg-property"}, {"control_id": "ctrl_7", "dom_selector": "#dlg-property > form > button:nth-of-type(1)", "tag": "button", "label_text": "Save section", "section_text": "Property and map", "checked": null, "visible": true, "modal_container": "#dlg-property"}, {"control_id": "ctrl_8", "dom_selector": "#dlg-property > form > button:nth-of-type(2)", "tag": "button", "label_text": "Cancel", "section_text": "Property and map", "checked": null, "visible": true, "modal_container": "#dlg-property"}], "text_pairs": [], "banners": [], "modals": [{"modal_id": "dlg-property", "container_selector": "#dlg-property", "message_text": "Property and map Property street address NFIP community Map lookup result: Change Flood zoneSelect zoneZone AZone AEZone AOZone VEZone XZone D Save section Cancel"}], "title": "Flood quote"} +FORM_TX_DEMO {"portal": "brackwater", "step": 9, "why": "before fill selector='#dlg-property >> internal:label=\"NFIP community\"s'>", "frame_url": "http://127.0.0.1:64534/flood/hub", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#card-insured > button", "tag": "button", "label_text": "Edit named insured", "section_text": "Named insured", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_1", "dom_selector": "#card-property > button", "tag": "button", "label_text": "Edit property and map", "section_text": "Property and map", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_2", "dom_selector": "#card-building > button", "tag": "button", "label_text": "Edit building details", "section_text": "Building details", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_3", "dom_selector": "#card-coverage > button", "tag": "button", "label_text": "Edit coverage and billing", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "f-street", "dom_selector": "#f-street", "tag": "input", "input_type": "text", "name_attr": "property_street", "id_attr": "f-street", "label_text": "Property street address", "section_text": "Property and map", "current_value": "88 Tern Hollow Road", "checked": null, "visible": true, "row_text": "Property street address", "modal_container": "#dlg-property"}, {"control_id": "f-comm", "dom_selector": "#f-comm", "tag": "input", "input_type": "text", "role": "combobox", "id_attr": "f-comm", "label_text": "NFIP community", "section_text": "Property and map", "checked": null, "visible": true, "row_text": "NFIP community", "modal_container": "#dlg-property"}, {"control_id": "f-zone", "dom_selector": "#f-zone", "tag": "select", "name_attr": "flood_zone", "id_attr": "f-zone", "label_text": "Flood zone", "section_text": "Property and map", "current_value": "Select zone", "checked": null, "visible": true, "options": [{"value": "", "label": "Select zone"}, {"value": "A", "label": "Zone A"}, {"value": "AE", "label": "Zone AE"}, {"value": "AO", "label": "Zone AO"}, {"value": "VE", "label": "Zone VE"}, {"value": "X", "label": "Zone X"}, {"value": "D", "label": "Zone D"}], "row_text": "Flood zoneSelect zoneZone AZone AEZone AOZone VEZone XZone D", "modal_container": "#dlg-property"}, {"control_id": "ctrl_7", "dom_selector": "#dlg-property > form > button:nth-of-type(1)", "tag": "button", "label_text": "Save section", "section_text": "Property and map", "checked": null, "visible": true, "modal_container": "#dlg-property"}, {"control_id": "ctrl_8", "dom_selector": "#dlg-property > form > button:nth-of-type(2)", "tag": "button", "label_text": "Cancel", "section_text": "Property and map", "checked": null, "visible": true, "modal_container": "#dlg-property"}], "text_pairs": [], "banners": [], "modals": [{"modal_id": "dlg-property", "container_selector": "#dlg-property", "message_text": "Property and map Property street address NFIP community Map lookup result: Change Flood zoneSelect zoneZone AZone AEZone AOZone VEZone XZone D Save section Cancel"}], "title": "Flood quote"} +FORM_TX_DEMO {"portal": "brackwater", "step": 10, "why": "before press_sequentially selector='#dlg-property >> internal:label=\"NFIP community\"s'>", "frame_url": "http://127.0.0.1:64534/flood/hub", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#card-insured > button", "tag": "button", "label_text": "Edit named insured", "section_text": "Named insured", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_1", "dom_selector": "#card-property > button", "tag": "button", "label_text": "Edit property and map", "section_text": "Property and map", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_2", "dom_selector": "#card-building > button", "tag": "button", "label_text": "Edit building details", "section_text": "Building details", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_3", "dom_selector": "#card-coverage > button", "tag": "button", "label_text": "Edit coverage and billing", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "f-street", "dom_selector": "#f-street", "tag": "input", "input_type": "text", "name_attr": "property_street", "id_attr": "f-street", "label_text": "Property street address", "section_text": "Property and map", "current_value": "88 Tern Hollow Road", "checked": null, "visible": true, "row_text": "Property street address", "modal_container": "#dlg-property"}, {"control_id": "f-comm", "dom_selector": "#f-comm", "tag": "input", "input_type": "text", "role": "combobox", "id_attr": "f-comm", "label_text": "NFIP community", "section_text": "Property and map", "checked": null, "visible": true, "row_text": "NFIP community", "modal_container": "#dlg-property"}, {"control_id": "f-zone", "dom_selector": "#f-zone", "tag": "select", "name_attr": "flood_zone", "id_attr": "f-zone", "label_text": "Flood zone", "section_text": "Property and map", "current_value": "Select zone", "checked": null, "visible": true, "options": [{"value": "", "label": "Select zone"}, {"value": "A", "label": "Zone A"}, {"value": "AE", "label": "Zone AE"}, {"value": "AO", "label": "Zone AO"}, {"value": "VE", "label": "Zone VE"}, {"value": "X", "label": "Zone X"}, {"value": "D", "label": "Zone D"}], "row_text": "Flood zoneSelect zoneZone AZone AEZone AOZone VEZone XZone D", "modal_container": "#dlg-property"}, {"control_id": "ctrl_7", "dom_selector": "#dlg-property > form > button:nth-of-type(1)", "tag": "button", "label_text": "Save section", "section_text": "Property and map", "checked": null, "visible": true, "modal_container": "#dlg-property"}, {"control_id": "ctrl_8", "dom_selector": "#dlg-property > form > button:nth-of-type(2)", "tag": "button", "label_text": "Cancel", "section_text": "Property and map", "checked": null, "visible": true, "modal_container": "#dlg-property"}], "text_pairs": [], "banners": [], "modals": [{"modal_id": "dlg-property", "container_selector": "#dlg-property", "message_text": "Property and map Property street address NFIP community Map lookup result: Change Flood zoneSelect zoneZone AZone AEZone AOZone VEZone XZone D Save section Cancel"}], "title": "Flood quote"} +FORM_TX_DEMO {"portal": "brackwater", "step": 11, "why": "before click selector='#dlg-property >> #comm-list [role=option] >> nth=0'>", "frame_url": "http://127.0.0.1:64534/flood/hub", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#card-insured > button", "tag": "button", "label_text": "Edit named insured", "section_text": "Named insured", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_1", "dom_selector": "#card-property > button", "tag": "button", "label_text": "Edit property and map", "section_text": "Property and map", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_2", "dom_selector": "#card-building > button", "tag": "button", "label_text": "Edit building details", "section_text": "Building details", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_3", "dom_selector": "#card-coverage > button", "tag": "button", "label_text": "Edit coverage and billing", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "f-street", "dom_selector": "#f-street", "tag": "input", "input_type": "text", "name_attr": "property_street", "id_attr": "f-street", "label_text": "Property street address", "section_text": "Property and map", "current_value": "88 Tern Hollow Road", "checked": null, "visible": true, "row_text": "Property street address", "modal_container": "#dlg-property"}, {"control_id": "f-comm", "dom_selector": "#f-comm", "tag": "input", "input_type": "text", "role": "combobox", "id_attr": "f-comm", "label_text": "NFIP community", "section_text": "Property and map", "current_value": "Greywick", "checked": null, "visible": true, "row_text": "NFIP community Greywick, City of - Pell County (480733)", "modal_container": "#dlg-property"}, {"control_id": "f-zone", "dom_selector": "#f-zone", "tag": "select", "name_attr": "flood_zone", "id_attr": "f-zone", "label_text": "Flood zone", "section_text": "Property and map", "current_value": "Select zone", "checked": null, "visible": true, "options": [{"value": "", "label": "Select zone"}, {"value": "A", "label": "Zone A"}, {"value": "AE", "label": "Zone AE"}, {"value": "AO", "label": "Zone AO"}, {"value": "VE", "label": "Zone VE"}, {"value": "X", "label": "Zone X"}, {"value": "D", "label": "Zone D"}], "row_text": "Flood zoneSelect zoneZone AZone AEZone AOZone VEZone XZone D", "modal_container": "#dlg-property"}, {"control_id": "ctrl_7", "dom_selector": "#dlg-property > form > button:nth-of-type(1)", "tag": "button", "label_text": "Save section", "section_text": "Property and map", "checked": null, "visible": true, "modal_container": "#dlg-property"}, {"control_id": "ctrl_8", "dom_selector": "#dlg-property > form > button:nth-of-type(2)", "tag": "button", "label_text": "Cancel", "section_text": "Property and map", "checked": null, "visible": true, "modal_container": "#dlg-property"}], "text_pairs": [], "banners": [], "modals": [{"modal_id": "dlg-property", "container_selector": "#dlg-property", "message_text": "Property and map Property street address NFIP community Greywick, City of - Pell County (480733) Map lookup result: Change Flood zoneSelect zoneZone AZone AEZone AOZone VEZone XZone D Save section Cancel"}], "title": "Flood quote"} +FORM_TX_DEMO {"portal": "brackwater", "step": 12, "why": "before select_option selector='#dlg-property >> internal:label=\"Flood zone\"s'>", "frame_url": "http://127.0.0.1:64534/flood/hub", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#card-insured > button", "tag": "button", "label_text": "Edit named insured", "section_text": "Named insured", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_1", "dom_selector": "#card-property > button", "tag": "button", "label_text": "Edit property and map", "section_text": "Property and map", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_2", "dom_selector": "#card-building > button", "tag": "button", "label_text": "Edit building details", "section_text": "Building details", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_3", "dom_selector": "#card-coverage > button", "tag": "button", "label_text": "Edit coverage and billing", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "f-street", "dom_selector": "#f-street", "tag": "input", "input_type": "text", "name_attr": "property_street", "id_attr": "f-street", "label_text": "Property street address", "section_text": "Property and map", "current_value": "88 Tern Hollow Road", "checked": null, "visible": true, "row_text": "Property street address", "modal_container": "#dlg-property"}, {"control_id": "f-comm", "dom_selector": "#f-comm", "tag": "input", "input_type": "text", "role": "combobox", "id_attr": "f-comm", "label_text": "NFIP community", "section_text": "Property and map", "current_value": "Greywick, City of - Pell County (480733)", "checked": null, "visible": true, "row_text": "NFIP community Greywick, City of - Pell County (480733)", "modal_container": "#dlg-property"}, {"control_id": "f-zone", "dom_selector": "#f-zone", "tag": "select", "name_attr": "flood_zone", "id_attr": "f-zone", "label_text": "Flood zone", "section_text": "Property and map", "current_value": "Select zone", "checked": null, "visible": true, "options": [{"value": "", "label": "Select zone"}, {"value": "A", "label": "Zone A"}, {"value": "AE", "label": "Zone AE"}, {"value": "AO", "label": "Zone AO"}, {"value": "VE", "label": "Zone VE"}, {"value": "X", "label": "Zone X"}, {"value": "D", "label": "Zone D"}], "row_text": "Flood zoneSelect zoneZone AZone AEZone AOZone VEZone XZone D", "modal_container": "#dlg-property"}, {"control_id": "ctrl_7", "dom_selector": "#dlg-property > form > button:nth-of-type(1)", "tag": "button", "label_text": "Save section", "section_text": "Property and map", "checked": null, "visible": true, "modal_container": "#dlg-property"}, {"control_id": "ctrl_8", "dom_selector": "#dlg-property > form > button:nth-of-type(2)", "tag": "button", "label_text": "Cancel", "section_text": "Property and map", "checked": null, "visible": true, "modal_container": "#dlg-property"}], "text_pairs": [], "banners": [], "modals": [{"modal_id": "dlg-property", "container_selector": "#dlg-property", "message_text": "Property and map Property street address NFIP community Greywick, City of - Pell County (480733) Map lookup result: Change Flood zoneSelect zoneZone AZone AEZone AOZone VEZone XZone D Save section Cancel"}], "title": "Flood quote"} +FORM_TX_DEMO {"portal": "brackwater", "step": 13, "why": "before click selector='#dlg-property >> internal:role=button[name=\"Save section\"i]'>", "frame_url": "http://127.0.0.1:64534/flood/hub", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#card-insured > button", "tag": "button", "label_text": "Edit named insured", "section_text": "Named insured", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_1", "dom_selector": "#card-property > button", "tag": "button", "label_text": "Edit property and map", "section_text": "Property and map", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_2", "dom_selector": "#card-building > button", "tag": "button", "label_text": "Edit building details", "section_text": "Building details", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_3", "dom_selector": "#card-coverage > button", "tag": "button", "label_text": "Edit coverage and billing", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapNot started Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "f-street", "dom_selector": "#f-street", "tag": "input", "input_type": "text", "name_attr": "property_street", "id_attr": "f-street", "label_text": "Property street address", "section_text": "Property and map", "current_value": "88 Tern Hollow Road", "checked": null, "visible": true, "row_text": "Property street address", "modal_container": "#dlg-property"}, {"control_id": "f-comm", "dom_selector": "#f-comm", "tag": "input", "input_type": "text", "role": "combobox", "id_attr": "f-comm", "label_text": "NFIP community", "section_text": "Property and map", "current_value": "Greywick, City of - Pell County (480733)", "checked": null, "visible": true, "row_text": "NFIP community Greywick, City of - Pell County (480733)", "modal_container": "#dlg-property"}, {"control_id": "f-zone", "dom_selector": "#f-zone", "tag": "select", "name_attr": "flood_zone", "id_attr": "f-zone", "label_text": "Flood zone", "section_text": "Property and map", "current_value": "AE", "checked": null, "visible": true, "options": [{"value": "", "label": "Select zone"}, {"value": "A", "label": "Zone A"}, {"value": "AE", "label": "Zone AE"}, {"value": "AO", "label": "Zone AO"}, {"value": "VE", "label": "Zone VE"}, {"value": "X", "label": "Zone X"}, {"value": "D", "label": "Zone D"}], "row_text": "Flood zoneSelect zoneZone AZone AEZone AOZone VEZone XZone D", "modal_container": "#dlg-property"}, {"control_id": "ctrl_7", "dom_selector": "#dlg-property > form > button:nth-of-type(1)", "tag": "button", "label_text": "Save section", "section_text": "Property and map", "checked": null, "visible": true, "modal_container": "#dlg-property"}, {"control_id": "ctrl_8", "dom_selector": "#dlg-property > form > button:nth-of-type(2)", "tag": "button", "label_text": "Cancel", "section_text": "Property and map", "checked": null, "visible": true, "modal_container": "#dlg-property"}], "text_pairs": [], "banners": [], "modals": [{"modal_id": "dlg-property", "container_selector": "#dlg-property", "message_text": "Property and map Property street address NFIP community Greywick, City of - Pell County (480733) Map lookup result: Change Flood zoneSelect zoneZone AZone AEZone AOZone VEZone XZone D Save section Cancel"}], "title": "Flood quote"} +FORM_TX_DEMO {"portal": "brackwater", "step": 14, "why": "before click selector=\"[data-open='building']\">", "frame_url": "http://127.0.0.1:64534/flood/hub", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#card-insured > button", "tag": "button", "label_text": "Edit named insured", "section_text": "Named insured", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_1", "dom_selector": "#card-property > button", "tag": "button", "label_text": "Edit property and map", "section_text": "Property and map", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_2", "dom_selector": "#card-building > button", "tag": "button", "label_text": "Edit building details", "section_text": "Building details", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_3", "dom_selector": "#card-coverage > button", "tag": "button", "label_text": "Edit coverage and billing", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}], "text_pairs": [], "banners": [], "modals": [], "title": "Flood quote"} +FORM_TX_DEMO {"portal": "brackwater", "step": 15, "why": "before select_option selector='#dlg-building >> internal:label=\"Building type\"s'>", "frame_url": "http://127.0.0.1:64534/flood/hub", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#card-insured > button", "tag": "button", "label_text": "Edit named insured", "section_text": "Named insured", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_1", "dom_selector": "#card-property > button", "tag": "button", "label_text": "Edit property and map", "section_text": "Property and map", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_2", "dom_selector": "#card-building > button", "tag": "button", "label_text": "Edit building details", "section_text": "Building details", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_3", "dom_selector": "#card-coverage > button", "tag": "button", "label_text": "Edit coverage and billing", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "f-bt", "dom_selector": "#f-bt", "tag": "select", "name_attr": "building_type", "id_attr": "f-bt", "label_text": "Building type", "section_text": "Building details", "current_value": "Select", "checked": null, "visible": true, "options": [{"value": "", "label": "Select"}, {"value": "Single-family dwelling", "label": "Single-family dwelling"}, {"value": "Two-to-four family dwelling", "label": "Two-to-four family dwelling"}, {"value": "Townhouse or rowhouse", "label": "Townhouse or rowhouse"}, {"value": "Manufactured home", "label": "Manufactured home"}], "row_text": "Building typeSelectSingle-family dwellingTwo-to-four family dwellingTownhouse or rowhouseManufactured home", "modal_container": "#dlg-building"}, {"control_id": "foundation", "dom_selector": "input[name=\"foundation\"][value=\"Slab on grade\"]", "tag": "input", "input_type": "radio", "name_attr": "foundation", "label_text": "Slab on grade", "section_text": "Foundation type", "checked": false, "visible": true, "options": [{"value": "Slab on grade", "label": "Slab on grade"}, {"value": "Crawlspace", "label": "Crawlspace"}, {"value": "Elevated on piers or posts", "label": "Elevated on piers or posts"}, {"value": "Basement", "label": "Basement"}], "radio_value": "Slab on grade", "radio_group": "name:foundation@form:#dlg-building > form", "group_label": "Foundation type", "row_text": "Foundation type Slab on grade Crawlspace Elevated on piers or posts Basement", "modal_container": "#dlg-building"}, {"control_id": "foundation#2", "dom_selector": "input[name=\"foundation\"][value=\"Crawlspace\"]", "tag": "input", "input_type": "radio", "name_attr": "foundation", "label_text": "Crawlspace", "section_text": "Foundation type", "checked": false, "visible": true, "options": [{"value": "Slab on grade", "label": "Slab on grade"}, {"value": "Crawlspace", "label": "Crawlspace"}, {"value": "Elevated on piers or posts", "label": "Elevated on piers or posts"}, {"value": "Basement", "label": "Basement"}], "radio_value": "Crawlspace", "radio_group": "name:foundation@form:#dlg-building > form", "group_label": "Foundation type", "row_text": "Foundation type Slab on grade Crawlspace Elevated on piers or posts Basement", "modal_container": "#dlg-building"}, {"control_id": "foundation#3", "dom_selector": "input[name=\"foundation\"][value=\"Elevated on piers or posts\"]", "tag": "input", "input_type": "radio", "name_attr": "foundation", "label_text": "Elevated on piers or posts", "section_text": "Foundation type", "checked": false, "visible": true, "options": [{"value": "Slab on grade", "label": "Slab on grade"}, {"value": "Crawlspace", "label": "Crawlspace"}, {"value": "Elevated on piers or posts", "label": "Elevated on piers or posts"}, {"value": "Basement", "label": "Basement"}], "radio_value": "Elevated on piers or posts", "radio_group": "name:foundation@form:#dlg-building > form", "group_label": "Foundation type", "row_text": "Foundation type Slab on grade Crawlspace Elevated on piers or posts Basement", "modal_container": "#dlg-building"}, {"control_id": "foundation#4", "dom_selector": "input[name=\"foundation\"][value=\"Basement\"]", "tag": "input", "input_type": "radio", "name_attr": "foundation", "label_text": "Basement", "section_text": "Foundation type", "checked": false, "visible": true, "options": [{"value": "Slab on grade", "label": "Slab on grade"}, {"value": "Crawlspace", "label": "Crawlspace"}, {"value": "Elevated on piers or posts", "label": "Elevated on piers or posts"}, {"value": "Basement", "label": "Basement"}], "radio_value": "Basement", "radio_group": "name:foundation@form:#dlg-building > form", "group_label": "Foundation type", "row_text": "Foundation type Slab on grade Crawlspace Elevated on piers or posts Basement", "modal_container": "#dlg-building"}, {"control_id": "f-yb", "dom_selector": "#f-yb", "tag": "input", "input_type": "text", "name_attr": "year_built", "id_attr": "f-yb", "label_text": "Year built", "section_text": "Building details", "checked": null, "visible": true, "row_text": "Year built", "modal_container": "#dlg-building"}, {"control_id": "f-sf", "dom_selector": "#f-sf", "tag": "input", "input_type": "text", "name_attr": "square_feet", "id_attr": "f-sf", "label_text": "Total square footage", "section_text": "Building details", "checked": null, "visible": true, "row_text": "Total square footage", "modal_container": "#dlg-building"}, {"control_id": "ctrl_11", "dom_selector": "#dlg-building > form > button:nth-of-type(1)", "tag": "button", "label_text": "Save section", "section_text": "Building details", "checked": null, "visible": true, "modal_container": "#dlg-building"}, {"control_id": "ctrl_12", "dom_selector": "#dlg-building > form > button:nth-of-type(2)", "tag": "button", "label_text": "Cancel", "section_text": "Building details", "checked": null, "visible": true, "modal_container": "#dlg-building"}], "text_pairs": [], "banners": [], "modals": [{"modal_id": "dlg-building", "container_selector": "#dlg-building", "message_text": "Building details Building typeSelectSingle-family dwellingTwo-to-four family dwellingTownhouse or rowhouseManufactured home Foundation type Slab on grade Crawlspace Elevated on piers or posts Basement Year built Total square footage Save section Cancel"}], "title": "Flood quote"} +FORM_TX_DEMO {"portal": "brackwater", "step": 16, "why": "before check selector='#dlg-building >> #fs-found >> internal:role=radio >> nth=1'>", "frame_url": "http://127.0.0.1:64534/flood/hub", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#card-insured > button", "tag": "button", "label_text": "Edit named insured", "section_text": "Named insured", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_1", "dom_selector": "#card-property > button", "tag": "button", "label_text": "Edit property and map", "section_text": "Property and map", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_2", "dom_selector": "#card-building > button", "tag": "button", "label_text": "Edit building details", "section_text": "Building details", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_3", "dom_selector": "#card-coverage > button", "tag": "button", "label_text": "Edit coverage and billing", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "f-bt", "dom_selector": "#f-bt", "tag": "select", "name_attr": "building_type", "id_attr": "f-bt", "label_text": "Building type", "section_text": "Building details", "current_value": "Single-family dwelling", "checked": null, "visible": true, "options": [{"value": "", "label": "Select"}, {"value": "Single-family dwelling", "label": "Single-family dwelling"}, {"value": "Two-to-four family dwelling", "label": "Two-to-four family dwelling"}, {"value": "Townhouse or rowhouse", "label": "Townhouse or rowhouse"}, {"value": "Manufactured home", "label": "Manufactured home"}], "row_text": "Building typeSelectSingle-family dwellingTwo-to-four family dwellingTownhouse or rowhouseManufactured home", "modal_container": "#dlg-building"}, {"control_id": "foundation", "dom_selector": "input[name=\"foundation\"][value=\"Slab on grade\"]", "tag": "input", "input_type": "radio", "name_attr": "foundation", "label_text": "Slab on grade", "section_text": "Foundation type", "checked": false, "visible": true, "options": [{"value": "Slab on grade", "label": "Slab on grade"}, {"value": "Crawlspace", "label": "Crawlspace"}, {"value": "Elevated on piers or posts", "label": "Elevated on piers or posts"}, {"value": "Basement", "label": "Basement"}], "radio_value": "Slab on grade", "radio_group": "name:foundation@form:#dlg-building > form", "group_label": "Foundation type", "row_text": "Foundation type Slab on grade Crawlspace Elevated on piers or posts Basement", "modal_container": "#dlg-building"}, {"control_id": "foundation#2", "dom_selector": "input[name=\"foundation\"][value=\"Crawlspace\"]", "tag": "input", "input_type": "radio", "name_attr": "foundation", "label_text": "Crawlspace", "section_text": "Foundation type", "checked": false, "visible": true, "options": [{"value": "Slab on grade", "label": "Slab on grade"}, {"value": "Crawlspace", "label": "Crawlspace"}, {"value": "Elevated on piers or posts", "label": "Elevated on piers or posts"}, {"value": "Basement", "label": "Basement"}], "radio_value": "Crawlspace", "radio_group": "name:foundation@form:#dlg-building > form", "group_label": "Foundation type", "row_text": "Foundation type Slab on grade Crawlspace Elevated on piers or posts Basement", "modal_container": "#dlg-building"}, {"control_id": "foundation#3", "dom_selector": "input[name=\"foundation\"][value=\"Elevated on piers or posts\"]", "tag": "input", "input_type": "radio", "name_attr": "foundation", "label_text": "Elevated on piers or posts", "section_text": "Foundation type", "checked": false, "visible": true, "options": [{"value": "Slab on grade", "label": "Slab on grade"}, {"value": "Crawlspace", "label": "Crawlspace"}, {"value": "Elevated on piers or posts", "label": "Elevated on piers or posts"}, {"value": "Basement", "label": "Basement"}], "radio_value": "Elevated on piers or posts", "radio_group": "name:foundation@form:#dlg-building > form", "group_label": "Foundation type", "row_text": "Foundation type Slab on grade Crawlspace Elevated on piers or posts Basement", "modal_container": "#dlg-building"}, {"control_id": "foundation#4", "dom_selector": "input[name=\"foundation\"][value=\"Basement\"]", "tag": "input", "input_type": "radio", "name_attr": "foundation", "label_text": "Basement", "section_text": "Foundation type", "checked": false, "visible": true, "options": [{"value": "Slab on grade", "label": "Slab on grade"}, {"value": "Crawlspace", "label": "Crawlspace"}, {"value": "Elevated on piers or posts", "label": "Elevated on piers or posts"}, {"value": "Basement", "label": "Basement"}], "radio_value": "Basement", "radio_group": "name:foundation@form:#dlg-building > form", "group_label": "Foundation type", "row_text": "Foundation type Slab on grade Crawlspace Elevated on piers or posts Basement", "modal_container": "#dlg-building"}, {"control_id": "f-yb", "dom_selector": "#f-yb", "tag": "input", "input_type": "text", "name_attr": "year_built", "id_attr": "f-yb", "label_text": "Year built", "section_text": "Building details", "checked": null, "visible": true, "row_text": "Year built", "modal_container": "#dlg-building"}, {"control_id": "f-sf", "dom_selector": "#f-sf", "tag": "input", "input_type": "text", "name_attr": "square_feet", "id_attr": "f-sf", "label_text": "Total square footage", "section_text": "Building details", "checked": null, "visible": true, "row_text": "Total square footage", "modal_container": "#dlg-building"}, {"control_id": "ctrl_11", "dom_selector": "#dlg-building > form > button:nth-of-type(1)", "tag": "button", "label_text": "Save section", "section_text": "Building details", "checked": null, "visible": true, "modal_container": "#dlg-building"}, {"control_id": "ctrl_12", "dom_selector": "#dlg-building > form > button:nth-of-type(2)", "tag": "button", "label_text": "Cancel", "section_text": "Building details", "checked": null, "visible": true, "modal_container": "#dlg-building"}], "text_pairs": [], "banners": [], "modals": [{"modal_id": "dlg-building", "container_selector": "#dlg-building", "message_text": "Building details Building typeSelectSingle-family dwellingTwo-to-four family dwellingTownhouse or rowhouseManufactured home Foundation type Slab on grade Crawlspace Elevated on piers or posts Basement Year built Total square footage Save section Cancel"}], "title": "Flood quote"} +FORM_TX_DEMO {"portal": "brackwater", "step": 17, "why": "before fill selector='#dlg-building >> internal:label=\"Year built\"s'>", "frame_url": "http://127.0.0.1:64534/flood/hub", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#card-insured > button", "tag": "button", "label_text": "Edit named insured", "section_text": "Named insured", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_1", "dom_selector": "#card-property > button", "tag": "button", "label_text": "Edit property and map", "section_text": "Property and map", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_2", "dom_selector": "#card-building > button", "tag": "button", "label_text": "Edit building details", "section_text": "Building details", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_3", "dom_selector": "#card-coverage > button", "tag": "button", "label_text": "Edit coverage and billing", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "f-bt", "dom_selector": "#f-bt", "tag": "select", "name_attr": "building_type", "id_attr": "f-bt", "label_text": "Building type", "section_text": "Building details", "current_value": "Single-family dwelling", "checked": null, "visible": true, "options": [{"value": "", "label": "Select"}, {"value": "Single-family dwelling", "label": "Single-family dwelling"}, {"value": "Two-to-four family dwelling", "label": "Two-to-four family dwelling"}, {"value": "Townhouse or rowhouse", "label": "Townhouse or rowhouse"}, {"value": "Manufactured home", "label": "Manufactured home"}], "row_text": "Building typeSelectSingle-family dwellingTwo-to-four family dwellingTownhouse or rowhouseManufactured home", "modal_container": "#dlg-building"}, {"control_id": "foundation", "dom_selector": "input[name=\"foundation\"][value=\"Slab on grade\"]", "tag": "input", "input_type": "radio", "name_attr": "foundation", "label_text": "Slab on grade", "section_text": "Foundation type", "checked": false, "visible": true, "options": [{"value": "Slab on grade", "label": "Slab on grade"}, {"value": "Crawlspace", "label": "Crawlspace"}, {"value": "Elevated on piers or posts", "label": "Elevated on piers or posts"}, {"value": "Basement", "label": "Basement"}], "radio_value": "Slab on grade", "radio_group": "name:foundation@form:#dlg-building > form", "group_label": "Foundation type", "row_text": "Foundation type Slab on grade Crawlspace Elevated on piers or posts Basement", "modal_container": "#dlg-building"}, {"control_id": "foundation#2", "dom_selector": "input[name=\"foundation\"][value=\"Crawlspace\"]", "tag": "input", "input_type": "radio", "name_attr": "foundation", "label_text": "Crawlspace", "section_text": "Foundation type", "current_value": "Crawlspace", "checked": true, "visible": true, "options": [{"value": "Slab on grade", "label": "Slab on grade"}, {"value": "Crawlspace", "label": "Crawlspace"}, {"value": "Elevated on piers or posts", "label": "Elevated on piers or posts"}, {"value": "Basement", "label": "Basement"}], "radio_value": "Crawlspace", "radio_group": "name:foundation@form:#dlg-building > form", "group_label": "Foundation type", "row_text": "Foundation type Slab on grade Crawlspace Elevated on piers or posts Basement", "modal_container": "#dlg-building"}, {"control_id": "foundation#3", "dom_selector": "input[name=\"foundation\"][value=\"Elevated on piers or posts\"]", "tag": "input", "input_type": "radio", "name_attr": "foundation", "label_text": "Elevated on piers or posts", "section_text": "Foundation type", "checked": false, "visible": true, "options": [{"value": "Slab on grade", "label": "Slab on grade"}, {"value": "Crawlspace", "label": "Crawlspace"}, {"value": "Elevated on piers or posts", "label": "Elevated on piers or posts"}, {"value": "Basement", "label": "Basement"}], "radio_value": "Elevated on piers or posts", "radio_group": "name:foundation@form:#dlg-building > form", "group_label": "Foundation type", "row_text": "Foundation type Slab on grade Crawlspace Elevated on piers or posts Basement", "modal_container": "#dlg-building"}, {"control_id": "foundation#4", "dom_selector": "input[name=\"foundation\"][value=\"Basement\"]", "tag": "input", "input_type": "radio", "name_attr": "foundation", "label_text": "Basement", "section_text": "Foundation type", "checked": false, "visible": true, "options": [{"value": "Slab on grade", "label": "Slab on grade"}, {"value": "Crawlspace", "label": "Crawlspace"}, {"value": "Elevated on piers or posts", "label": "Elevated on piers or posts"}, {"value": "Basement", "label": "Basement"}], "radio_value": "Basement", "radio_group": "name:foundation@form:#dlg-building > form", "group_label": "Foundation type", "row_text": "Foundation type Slab on grade Crawlspace Elevated on piers or posts Basement", "modal_container": "#dlg-building"}, {"control_id": "f-yb", "dom_selector": "#f-yb", "tag": "input", "input_type": "text", "name_attr": "year_built", "id_attr": "f-yb", "label_text": "Year built", "section_text": "Building details", "checked": null, "visible": true, "row_text": "Year built", "modal_container": "#dlg-building"}, {"control_id": "f-sf", "dom_selector": "#f-sf", "tag": "input", "input_type": "text", "name_attr": "square_feet", "id_attr": "f-sf", "label_text": "Total square footage", "section_text": "Building details", "checked": null, "visible": true, "row_text": "Total square footage", "modal_container": "#dlg-building"}, {"control_id": "ctrl_11", "dom_selector": "#dlg-building > form > button:nth-of-type(1)", "tag": "button", "label_text": "Save section", "section_text": "Building details", "checked": null, "visible": true, "modal_container": "#dlg-building"}, {"control_id": "ctrl_12", "dom_selector": "#dlg-building > form > button:nth-of-type(2)", "tag": "button", "label_text": "Cancel", "section_text": "Building details", "checked": null, "visible": true, "modal_container": "#dlg-building"}], "text_pairs": [], "banners": [], "modals": [{"modal_id": "dlg-building", "container_selector": "#dlg-building", "message_text": "Building details Building typeSelectSingle-family dwellingTwo-to-four family dwellingTownhouse or rowhouseManufactured home Foundation type Slab on grade Crawlspace Elevated on piers or posts Basement Year built Total square footage Save section Cancel"}], "title": "Flood quote"} +FORM_TX_DEMO {"portal": "brackwater", "step": 18, "why": "before fill selector='#dlg-building >> internal:label=\"Total square footage\"s'>", "frame_url": "http://127.0.0.1:64534/flood/hub", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#card-insured > button", "tag": "button", "label_text": "Edit named insured", "section_text": "Named insured", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_1", "dom_selector": "#card-property > button", "tag": "button", "label_text": "Edit property and map", "section_text": "Property and map", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_2", "dom_selector": "#card-building > button", "tag": "button", "label_text": "Edit building details", "section_text": "Building details", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_3", "dom_selector": "#card-coverage > button", "tag": "button", "label_text": "Edit coverage and billing", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "f-bt", "dom_selector": "#f-bt", "tag": "select", "name_attr": "building_type", "id_attr": "f-bt", "label_text": "Building type", "section_text": "Building details", "current_value": "Single-family dwelling", "checked": null, "visible": true, "options": [{"value": "", "label": "Select"}, {"value": "Single-family dwelling", "label": "Single-family dwelling"}, {"value": "Two-to-four family dwelling", "label": "Two-to-four family dwelling"}, {"value": "Townhouse or rowhouse", "label": "Townhouse or rowhouse"}, {"value": "Manufactured home", "label": "Manufactured home"}], "row_text": "Building typeSelectSingle-family dwellingTwo-to-four family dwellingTownhouse or rowhouseManufactured home", "modal_container": "#dlg-building"}, {"control_id": "foundation", "dom_selector": "input[name=\"foundation\"][value=\"Slab on grade\"]", "tag": "input", "input_type": "radio", "name_attr": "foundation", "label_text": "Slab on grade", "section_text": "Foundation type", "checked": false, "visible": true, "options": [{"value": "Slab on grade", "label": "Slab on grade"}, {"value": "Crawlspace", "label": "Crawlspace"}, {"value": "Elevated on piers or posts", "label": "Elevated on piers or posts"}, {"value": "Basement", "label": "Basement"}], "radio_value": "Slab on grade", "radio_group": "name:foundation@form:#dlg-building > form", "group_label": "Foundation type", "row_text": "Foundation type Slab on grade Crawlspace Elevated on piers or posts Basement", "modal_container": "#dlg-building"}, {"control_id": "foundation#2", "dom_selector": "input[name=\"foundation\"][value=\"Crawlspace\"]", "tag": "input", "input_type": "radio", "name_attr": "foundation", "label_text": "Crawlspace", "section_text": "Foundation type", "current_value": "Crawlspace", "checked": true, "visible": true, "options": [{"value": "Slab on grade", "label": "Slab on grade"}, {"value": "Crawlspace", "label": "Crawlspace"}, {"value": "Elevated on piers or posts", "label": "Elevated on piers or posts"}, {"value": "Basement", "label": "Basement"}], "radio_value": "Crawlspace", "radio_group": "name:foundation@form:#dlg-building > form", "group_label": "Foundation type", "row_text": "Foundation type Slab on grade Crawlspace Elevated on piers or posts Basement", "modal_container": "#dlg-building"}, {"control_id": "foundation#3", "dom_selector": "input[name=\"foundation\"][value=\"Elevated on piers or posts\"]", "tag": "input", "input_type": "radio", "name_attr": "foundation", "label_text": "Elevated on piers or posts", "section_text": "Foundation type", "checked": false, "visible": true, "options": [{"value": "Slab on grade", "label": "Slab on grade"}, {"value": "Crawlspace", "label": "Crawlspace"}, {"value": "Elevated on piers or posts", "label": "Elevated on piers or posts"}, {"value": "Basement", "label": "Basement"}], "radio_value": "Elevated on piers or posts", "radio_group": "name:foundation@form:#dlg-building > form", "group_label": "Foundation type", "row_text": "Foundation type Slab on grade Crawlspace Elevated on piers or posts Basement", "modal_container": "#dlg-building"}, {"control_id": "foundation#4", "dom_selector": "input[name=\"foundation\"][value=\"Basement\"]", "tag": "input", "input_type": "radio", "name_attr": "foundation", "label_text": "Basement", "section_text": "Foundation type", "checked": false, "visible": true, "options": [{"value": "Slab on grade", "label": "Slab on grade"}, {"value": "Crawlspace", "label": "Crawlspace"}, {"value": "Elevated on piers or posts", "label": "Elevated on piers or posts"}, {"value": "Basement", "label": "Basement"}], "radio_value": "Basement", "radio_group": "name:foundation@form:#dlg-building > form", "group_label": "Foundation type", "row_text": "Foundation type Slab on grade Crawlspace Elevated on piers or posts Basement", "modal_container": "#dlg-building"}, {"control_id": "f-yb", "dom_selector": "#f-yb", "tag": "input", "input_type": "text", "name_attr": "year_built", "id_attr": "f-yb", "label_text": "Year built", "section_text": "Building details", "current_value": "1994", "checked": null, "visible": true, "row_text": "Year built", "modal_container": "#dlg-building"}, {"control_id": "f-sf", "dom_selector": "#f-sf", "tag": "input", "input_type": "text", "name_attr": "square_feet", "id_attr": "f-sf", "label_text": "Total square footage", "section_text": "Building details", "checked": null, "visible": true, "row_text": "Total square footage", "modal_container": "#dlg-building"}, {"control_id": "ctrl_11", "dom_selector": "#dlg-building > form > button:nth-of-type(1)", "tag": "button", "label_text": "Save section", "section_text": "Building details", "checked": null, "visible": true, "modal_container": "#dlg-building"}, {"control_id": "ctrl_12", "dom_selector": "#dlg-building > form > button:nth-of-type(2)", "tag": "button", "label_text": "Cancel", "section_text": "Building details", "checked": null, "visible": true, "modal_container": "#dlg-building"}], "text_pairs": [], "banners": [], "modals": [{"modal_id": "dlg-building", "container_selector": "#dlg-building", "message_text": "Building details Building typeSelectSingle-family dwellingTwo-to-four family dwellingTownhouse or rowhouseManufactured home Foundation type Slab on grade Crawlspace Elevated on piers or posts Basement Year built Total square footage Save section Cancel"}], "title": "Flood quote"} +FORM_TX_DEMO {"portal": "brackwater", "step": 19, "why": "before click selector='#dlg-building >> internal:role=button[name=\"Save section\"i]'>", "frame_url": "http://127.0.0.1:64534/flood/hub", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#card-insured > button", "tag": "button", "label_text": "Edit named insured", "section_text": "Named insured", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_1", "dom_selector": "#card-property > button", "tag": "button", "label_text": "Edit property and map", "section_text": "Property and map", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_2", "dom_selector": "#card-building > button", "tag": "button", "label_text": "Edit building details", "section_text": "Building details", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_3", "dom_selector": "#card-coverage > button", "tag": "button", "label_text": "Edit coverage and billing", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsNot started Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "f-bt", "dom_selector": "#f-bt", "tag": "select", "name_attr": "building_type", "id_attr": "f-bt", "label_text": "Building type", "section_text": "Building details", "current_value": "Single-family dwelling", "checked": null, "visible": true, "options": [{"value": "", "label": "Select"}, {"value": "Single-family dwelling", "label": "Single-family dwelling"}, {"value": "Two-to-four family dwelling", "label": "Two-to-four family dwelling"}, {"value": "Townhouse or rowhouse", "label": "Townhouse or rowhouse"}, {"value": "Manufactured home", "label": "Manufactured home"}], "row_text": "Building typeSelectSingle-family dwellingTwo-to-four family dwellingTownhouse or rowhouseManufactured home", "modal_container": "#dlg-building"}, {"control_id": "foundation", "dom_selector": "input[name=\"foundation\"][value=\"Slab on grade\"]", "tag": "input", "input_type": "radio", "name_attr": "foundation", "label_text": "Slab on grade", "section_text": "Foundation type", "checked": false, "visible": true, "options": [{"value": "Slab on grade", "label": "Slab on grade"}, {"value": "Crawlspace", "label": "Crawlspace"}, {"value": "Elevated on piers or posts", "label": "Elevated on piers or posts"}, {"value": "Basement", "label": "Basement"}], "radio_value": "Slab on grade", "radio_group": "name:foundation@form:#dlg-building > form", "group_label": "Foundation type", "row_text": "Foundation type Slab on grade Crawlspace Elevated on piers or posts Basement", "modal_container": "#dlg-building"}, {"control_id": "foundation#2", "dom_selector": "input[name=\"foundation\"][value=\"Crawlspace\"]", "tag": "input", "input_type": "radio", "name_attr": "foundation", "label_text": "Crawlspace", "section_text": "Foundation type", "current_value": "Crawlspace", "checked": true, "visible": true, "options": [{"value": "Slab on grade", "label": "Slab on grade"}, {"value": "Crawlspace", "label": "Crawlspace"}, {"value": "Elevated on piers or posts", "label": "Elevated on piers or posts"}, {"value": "Basement", "label": "Basement"}], "radio_value": "Crawlspace", "radio_group": "name:foundation@form:#dlg-building > form", "group_label": "Foundation type", "row_text": "Foundation type Slab on grade Crawlspace Elevated on piers or posts Basement", "modal_container": "#dlg-building"}, {"control_id": "foundation#3", "dom_selector": "input[name=\"foundation\"][value=\"Elevated on piers or posts\"]", "tag": "input", "input_type": "radio", "name_attr": "foundation", "label_text": "Elevated on piers or posts", "section_text": "Foundation type", "checked": false, "visible": true, "options": [{"value": "Slab on grade", "label": "Slab on grade"}, {"value": "Crawlspace", "label": "Crawlspace"}, {"value": "Elevated on piers or posts", "label": "Elevated on piers or posts"}, {"value": "Basement", "label": "Basement"}], "radio_value": "Elevated on piers or posts", "radio_group": "name:foundation@form:#dlg-building > form", "group_label": "Foundation type", "row_text": "Foundation type Slab on grade Crawlspace Elevated on piers or posts Basement", "modal_container": "#dlg-building"}, {"control_id": "foundation#4", "dom_selector": "input[name=\"foundation\"][value=\"Basement\"]", "tag": "input", "input_type": "radio", "name_attr": "foundation", "label_text": "Basement", "section_text": "Foundation type", "checked": false, "visible": true, "options": [{"value": "Slab on grade", "label": "Slab on grade"}, {"value": "Crawlspace", "label": "Crawlspace"}, {"value": "Elevated on piers or posts", "label": "Elevated on piers or posts"}, {"value": "Basement", "label": "Basement"}], "radio_value": "Basement", "radio_group": "name:foundation@form:#dlg-building > form", "group_label": "Foundation type", "row_text": "Foundation type Slab on grade Crawlspace Elevated on piers or posts Basement", "modal_container": "#dlg-building"}, {"control_id": "f-yb", "dom_selector": "#f-yb", "tag": "input", "input_type": "text", "name_attr": "year_built", "id_attr": "f-yb", "label_text": "Year built", "section_text": "Building details", "current_value": "1994", "checked": null, "visible": true, "row_text": "Year built", "modal_container": "#dlg-building"}, {"control_id": "f-sf", "dom_selector": "#f-sf", "tag": "input", "input_type": "text", "name_attr": "square_feet", "id_attr": "f-sf", "label_text": "Total square footage", "section_text": "Building details", "current_value": "1680", "checked": null, "visible": true, "row_text": "Total square footage", "modal_container": "#dlg-building"}, {"control_id": "ctrl_11", "dom_selector": "#dlg-building > form > button:nth-of-type(1)", "tag": "button", "label_text": "Save section", "section_text": "Building details", "checked": null, "visible": true, "modal_container": "#dlg-building"}, {"control_id": "ctrl_12", "dom_selector": "#dlg-building > form > button:nth-of-type(2)", "tag": "button", "label_text": "Cancel", "section_text": "Building details", "checked": null, "visible": true, "modal_container": "#dlg-building"}], "text_pairs": [], "banners": [], "modals": [{"modal_id": "dlg-building", "container_selector": "#dlg-building", "message_text": "Building details Building typeSelectSingle-family dwellingTwo-to-four family dwellingTownhouse or rowhouseManufactured home Foundation type Slab on grade Crawlspace Elevated on piers or posts Basement Year built Total square footage Save section Cancel"}], "title": "Flood quote"} +FORM_TX_DEMO {"portal": "brackwater", "step": 20, "why": "before click selector=\"[data-open='coverage']\">", "frame_url": "http://127.0.0.1:64534/flood/hub", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#card-insured > button", "tag": "button", "label_text": "Edit named insured", "section_text": "Named insured", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsComplete Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_1", "dom_selector": "#card-property > button", "tag": "button", "label_text": "Edit property and map", "section_text": "Property and map", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsComplete Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_2", "dom_selector": "#card-building > button", "tag": "button", "label_text": "Edit building details", "section_text": "Building details", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsComplete Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_3", "dom_selector": "#card-coverage > button", "tag": "button", "label_text": "Edit coverage and billing", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsComplete Edit building detailsCoverage and billingNot started Edit coverage and billing"}], "text_pairs": [], "banners": [], "modals": [], "title": "Flood quote"} +FORM_TX_DEMO {"portal": "brackwater", "step": 21, "why": "before fill selector='#dlg-coverage >> internal:label=\"Building coverage ($)\"s'>", "frame_url": "http://127.0.0.1:64534/flood/hub", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#card-insured > button", "tag": "button", "label_text": "Edit named insured", "section_text": "Named insured", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsComplete Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_1", "dom_selector": "#card-property > button", "tag": "button", "label_text": "Edit property and map", "section_text": "Property and map", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsComplete Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_2", "dom_selector": "#card-building > button", "tag": "button", "label_text": "Edit building details", "section_text": "Building details", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsComplete Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_3", "dom_selector": "#card-coverage > button", "tag": "button", "label_text": "Edit coverage and billing", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsComplete Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "f-bc", "dom_selector": "#f-bc", "tag": "input", "input_type": "text", "name_attr": "building_coverage", "id_attr": "f-bc", "label_text": "Building coverage ($)", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Building coverage ($) Estimate replacement cost", "modal_container": "#dlg-coverage"}, {"control_id": "est-open", "dom_selector": "#est-open", "tag": "button", "id_attr": "est-open", "label_text": "Estimate replacement cost", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Building coverage ($) Estimate replacement cost", "modal_container": "#dlg-coverage"}, {"control_id": "f-cc", "dom_selector": "#f-cc", "tag": "input", "input_type": "text", "name_attr": "contents_coverage", "id_attr": "f-cc", "label_text": "Contents coverage ($)", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Contents coverage ($)", "modal_container": "#dlg-coverage"}, {"control_id": "f-ded", "dom_selector": "#f-ded", "tag": "select", "name_attr": "deductible", "id_attr": "f-ded", "label_text": "Deductible", "section_text": "Coverage and billing", "current_value": "2000", "checked": null, "visible": true, "options": [{"value": "1250", "label": "$1,250"}, {"value": "2000", "label": "$2,000"}, {"value": "5000", "label": "$5,000"}, {"value": "10000", "label": "$10,000"}], "row_text": "Deductible$1,250$2,000$5,000$10,000", "modal_container": "#dlg-coverage"}, {"control_id": "f-pc", "dom_selector": "#f-pc", "tag": "input", "input_type": "text", "name_attr": "prior_claims", "id_attr": "f-pc", "label_text": "Flood claims in the last 10 years", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Flood claims in the last 10 years", "modal_container": "#dlg-coverage"}, {"control_id": "f-eff", "dom_selector": "#f-eff", "tag": "input", "input_type": "text", "name_attr": "effective_date", "id_attr": "f-eff", "label_text": "Policy effective date", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Policy effective date", "modal_container": "#dlg-coverage"}, {"control_id": "ctrl_10", "dom_selector": "#dlg-coverage > form > button:nth-of-type(1)", "tag": "button", "label_text": "Save section", "section_text": "Coverage and billing", "checked": null, "visible": true, "modal_container": "#dlg-coverage"}, {"control_id": "ctrl_11", "dom_selector": "#dlg-coverage > form > button:nth-of-type(2)", "tag": "button", "label_text": "Cancel", "section_text": "Coverage and billing", "checked": null, "visible": true, "modal_container": "#dlg-coverage"}], "text_pairs": [], "banners": [], "modals": [{"modal_id": "dlg-coverage", "container_selector": "#dlg-coverage", "message_text": "Coverage and billing Building coverage ($) Estimate replacement cost Square footage ConstructionFrameMasonry Finish qualityStandardCustom Use estimate Contents coverage ($) Deductible$1,250$2,000$5,000$10,000 Flood claims in the last 10 years Policy effective date Save section Cancel"}], "title": "Flood quote"} +FORM_TX_DEMO {"portal": "brackwater", "step": 22, "why": "before fill selector='#dlg-coverage >> internal:label=\"Contents coverage ($)\"s'>", "frame_url": "http://127.0.0.1:64534/flood/hub", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#card-insured > button", "tag": "button", "label_text": "Edit named insured", "section_text": "Named insured", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsComplete Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_1", "dom_selector": "#card-property > button", "tag": "button", "label_text": "Edit property and map", "section_text": "Property and map", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsComplete Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_2", "dom_selector": "#card-building > button", "tag": "button", "label_text": "Edit building details", "section_text": "Building details", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsComplete Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_3", "dom_selector": "#card-coverage > button", "tag": "button", "label_text": "Edit coverage and billing", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsComplete Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "f-bc", "dom_selector": "#f-bc", "tag": "input", "input_type": "text", "name_attr": "building_coverage", "id_attr": "f-bc", "label_text": "Building coverage ($)", "section_text": "Coverage and billing", "current_value": "250000", "checked": null, "visible": true, "row_text": "Building coverage ($) Estimate replacement cost", "modal_container": "#dlg-coverage"}, {"control_id": "est-open", "dom_selector": "#est-open", "tag": "button", "id_attr": "est-open", "label_text": "Estimate replacement cost", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Building coverage ($) Estimate replacement cost", "modal_container": "#dlg-coverage"}, {"control_id": "f-cc", "dom_selector": "#f-cc", "tag": "input", "input_type": "text", "name_attr": "contents_coverage", "id_attr": "f-cc", "label_text": "Contents coverage ($)", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Contents coverage ($)", "modal_container": "#dlg-coverage"}, {"control_id": "f-ded", "dom_selector": "#f-ded", "tag": "select", "name_attr": "deductible", "id_attr": "f-ded", "label_text": "Deductible", "section_text": "Coverage and billing", "current_value": "2000", "checked": null, "visible": true, "options": [{"value": "1250", "label": "$1,250"}, {"value": "2000", "label": "$2,000"}, {"value": "5000", "label": "$5,000"}, {"value": "10000", "label": "$10,000"}], "row_text": "Deductible$1,250$2,000$5,000$10,000", "modal_container": "#dlg-coverage"}, {"control_id": "f-pc", "dom_selector": "#f-pc", "tag": "input", "input_type": "text", "name_attr": "prior_claims", "id_attr": "f-pc", "label_text": "Flood claims in the last 10 years", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Flood claims in the last 10 years", "modal_container": "#dlg-coverage"}, {"control_id": "f-eff", "dom_selector": "#f-eff", "tag": "input", "input_type": "text", "name_attr": "effective_date", "id_attr": "f-eff", "label_text": "Policy effective date", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Policy effective date", "modal_container": "#dlg-coverage"}, {"control_id": "ctrl_10", "dom_selector": "#dlg-coverage > form > button:nth-of-type(1)", "tag": "button", "label_text": "Save section", "section_text": "Coverage and billing", "checked": null, "visible": true, "modal_container": "#dlg-coverage"}, {"control_id": "ctrl_11", "dom_selector": "#dlg-coverage > form > button:nth-of-type(2)", "tag": "button", "label_text": "Cancel", "section_text": "Coverage and billing", "checked": null, "visible": true, "modal_container": "#dlg-coverage"}], "text_pairs": [], "banners": [], "modals": [{"modal_id": "dlg-coverage", "container_selector": "#dlg-coverage", "message_text": "Coverage and billing Building coverage ($) Estimate replacement cost Square footage ConstructionFrameMasonry Finish qualityStandardCustom Use estimate Contents coverage ($) Deductible$1,250$2,000$5,000$10,000 Flood claims in the last 10 years Policy effective date Save section Cancel"}], "title": "Flood quote"} +FORM_TX_DEMO {"portal": "brackwater", "step": 23, "why": "before select_option selector='#dlg-coverage >> internal:label=\"Deductible\"s'>", "frame_url": "http://127.0.0.1:64534/flood/hub", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#card-insured > button", "tag": "button", "label_text": "Edit named insured", "section_text": "Named insured", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsComplete Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_1", "dom_selector": "#card-property > button", "tag": "button", "label_text": "Edit property and map", "section_text": "Property and map", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsComplete Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_2", "dom_selector": "#card-building > button", "tag": "button", "label_text": "Edit building details", "section_text": "Building details", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsComplete Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_3", "dom_selector": "#card-coverage > button", "tag": "button", "label_text": "Edit coverage and billing", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsComplete Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "f-bc", "dom_selector": "#f-bc", "tag": "input", "input_type": "text", "name_attr": "building_coverage", "id_attr": "f-bc", "label_text": "Building coverage ($)", "section_text": "Coverage and billing", "current_value": "250000", "checked": null, "visible": true, "row_text": "Building coverage ($) Estimate replacement cost", "modal_container": "#dlg-coverage"}, {"control_id": "est-open", "dom_selector": "#est-open", "tag": "button", "id_attr": "est-open", "label_text": "Estimate replacement cost", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Building coverage ($) Estimate replacement cost", "modal_container": "#dlg-coverage"}, {"control_id": "f-cc", "dom_selector": "#f-cc", "tag": "input", "input_type": "text", "name_attr": "contents_coverage", "id_attr": "f-cc", "label_text": "Contents coverage ($)", "section_text": "Coverage and billing", "current_value": "60000", "checked": null, "visible": true, "row_text": "Contents coverage ($)", "modal_container": "#dlg-coverage"}, {"control_id": "f-ded", "dom_selector": "#f-ded", "tag": "select", "name_attr": "deductible", "id_attr": "f-ded", "label_text": "Deductible", "section_text": "Coverage and billing", "current_value": "2000", "checked": null, "visible": true, "options": [{"value": "1250", "label": "$1,250"}, {"value": "2000", "label": "$2,000"}, {"value": "5000", "label": "$5,000"}, {"value": "10000", "label": "$10,000"}], "row_text": "Deductible$1,250$2,000$5,000$10,000", "modal_container": "#dlg-coverage"}, {"control_id": "f-pc", "dom_selector": "#f-pc", "tag": "input", "input_type": "text", "name_attr": "prior_claims", "id_attr": "f-pc", "label_text": "Flood claims in the last 10 years", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Flood claims in the last 10 years", "modal_container": "#dlg-coverage"}, {"control_id": "f-eff", "dom_selector": "#f-eff", "tag": "input", "input_type": "text", "name_attr": "effective_date", "id_attr": "f-eff", "label_text": "Policy effective date", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Policy effective date", "modal_container": "#dlg-coverage"}, {"control_id": "ctrl_10", "dom_selector": "#dlg-coverage > form > button:nth-of-type(1)", "tag": "button", "label_text": "Save section", "section_text": "Coverage and billing", "checked": null, "visible": true, "modal_container": "#dlg-coverage"}, {"control_id": "ctrl_11", "dom_selector": "#dlg-coverage > form > button:nth-of-type(2)", "tag": "button", "label_text": "Cancel", "section_text": "Coverage and billing", "checked": null, "visible": true, "modal_container": "#dlg-coverage"}], "text_pairs": [], "banners": [], "modals": [{"modal_id": "dlg-coverage", "container_selector": "#dlg-coverage", "message_text": "Coverage and billing Building coverage ($) Estimate replacement cost Square footage ConstructionFrameMasonry Finish qualityStandardCustom Use estimate Contents coverage ($) Deductible$1,250$2,000$5,000$10,000 Flood claims in the last 10 years Policy effective date Save section Cancel"}], "title": "Flood quote"} +FORM_TX_DEMO {"portal": "brackwater", "step": 24, "why": "before fill selector='#dlg-coverage >> internal:label=\"Flood claims in the last 10 years\"s'>", "frame_url": "http://127.0.0.1:64534/flood/hub", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#card-insured > button", "tag": "button", "label_text": "Edit named insured", "section_text": "Named insured", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsComplete Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_1", "dom_selector": "#card-property > button", "tag": "button", "label_text": "Edit property and map", "section_text": "Property and map", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsComplete Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_2", "dom_selector": "#card-building > button", "tag": "button", "label_text": "Edit building details", "section_text": "Building details", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsComplete Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_3", "dom_selector": "#card-coverage > button", "tag": "button", "label_text": "Edit coverage and billing", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsComplete Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "f-bc", "dom_selector": "#f-bc", "tag": "input", "input_type": "text", "name_attr": "building_coverage", "id_attr": "f-bc", "label_text": "Building coverage ($)", "section_text": "Coverage and billing", "current_value": "250000", "checked": null, "visible": true, "row_text": "Building coverage ($) Estimate replacement cost", "modal_container": "#dlg-coverage"}, {"control_id": "est-open", "dom_selector": "#est-open", "tag": "button", "id_attr": "est-open", "label_text": "Estimate replacement cost", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Building coverage ($) Estimate replacement cost", "modal_container": "#dlg-coverage"}, {"control_id": "f-cc", "dom_selector": "#f-cc", "tag": "input", "input_type": "text", "name_attr": "contents_coverage", "id_attr": "f-cc", "label_text": "Contents coverage ($)", "section_text": "Coverage and billing", "current_value": "60000", "checked": null, "visible": true, "row_text": "Contents coverage ($)", "modal_container": "#dlg-coverage"}, {"control_id": "f-ded", "dom_selector": "#f-ded", "tag": "select", "name_attr": "deductible", "id_attr": "f-ded", "label_text": "Deductible", "section_text": "Coverage and billing", "current_value": "2000", "checked": null, "visible": true, "options": [{"value": "1250", "label": "$1,250"}, {"value": "2000", "label": "$2,000"}, {"value": "5000", "label": "$5,000"}, {"value": "10000", "label": "$10,000"}], "row_text": "Deductible$1,250$2,000$5,000$10,000", "modal_container": "#dlg-coverage"}, {"control_id": "f-pc", "dom_selector": "#f-pc", "tag": "input", "input_type": "text", "name_attr": "prior_claims", "id_attr": "f-pc", "label_text": "Flood claims in the last 10 years", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Flood claims in the last 10 years", "modal_container": "#dlg-coverage"}, {"control_id": "f-eff", "dom_selector": "#f-eff", "tag": "input", "input_type": "text", "name_attr": "effective_date", "id_attr": "f-eff", "label_text": "Policy effective date", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Policy effective date", "modal_container": "#dlg-coverage"}, {"control_id": "ctrl_10", "dom_selector": "#dlg-coverage > form > button:nth-of-type(1)", "tag": "button", "label_text": "Save section", "section_text": "Coverage and billing", "checked": null, "visible": true, "modal_container": "#dlg-coverage"}, {"control_id": "ctrl_11", "dom_selector": "#dlg-coverage > form > button:nth-of-type(2)", "tag": "button", "label_text": "Cancel", "section_text": "Coverage and billing", "checked": null, "visible": true, "modal_container": "#dlg-coverage"}], "text_pairs": [], "banners": [], "modals": [{"modal_id": "dlg-coverage", "container_selector": "#dlg-coverage", "message_text": "Coverage and billing Building coverage ($) Estimate replacement cost Square footage ConstructionFrameMasonry Finish qualityStandardCustom Use estimate Contents coverage ($) Deductible$1,250$2,000$5,000$10,000 Flood claims in the last 10 years Policy effective date Save section Cancel"}], "title": "Flood quote"} +FORM_TX_DEMO {"portal": "brackwater", "step": 25, "why": "before fill selector='#dlg-coverage >> internal:label=\"Policy effective date\"s'>", "frame_url": "http://127.0.0.1:64534/flood/hub", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#card-insured > button", "tag": "button", "label_text": "Edit named insured", "section_text": "Named insured", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsComplete Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_1", "dom_selector": "#card-property > button", "tag": "button", "label_text": "Edit property and map", "section_text": "Property and map", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsComplete Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_2", "dom_selector": "#card-building > button", "tag": "button", "label_text": "Edit building details", "section_text": "Building details", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsComplete Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_3", "dom_selector": "#card-coverage > button", "tag": "button", "label_text": "Edit coverage and billing", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsComplete Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "f-bc", "dom_selector": "#f-bc", "tag": "input", "input_type": "text", "name_attr": "building_coverage", "id_attr": "f-bc", "label_text": "Building coverage ($)", "section_text": "Coverage and billing", "current_value": "250000", "checked": null, "visible": true, "row_text": "Building coverage ($) Estimate replacement cost", "modal_container": "#dlg-coverage"}, {"control_id": "est-open", "dom_selector": "#est-open", "tag": "button", "id_attr": "est-open", "label_text": "Estimate replacement cost", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Building coverage ($) Estimate replacement cost", "modal_container": "#dlg-coverage"}, {"control_id": "f-cc", "dom_selector": "#f-cc", "tag": "input", "input_type": "text", "name_attr": "contents_coverage", "id_attr": "f-cc", "label_text": "Contents coverage ($)", "section_text": "Coverage and billing", "current_value": "60000", "checked": null, "visible": true, "row_text": "Contents coverage ($)", "modal_container": "#dlg-coverage"}, {"control_id": "f-ded", "dom_selector": "#f-ded", "tag": "select", "name_attr": "deductible", "id_attr": "f-ded", "label_text": "Deductible", "section_text": "Coverage and billing", "current_value": "2000", "checked": null, "visible": true, "options": [{"value": "1250", "label": "$1,250"}, {"value": "2000", "label": "$2,000"}, {"value": "5000", "label": "$5,000"}, {"value": "10000", "label": "$10,000"}], "row_text": "Deductible$1,250$2,000$5,000$10,000", "modal_container": "#dlg-coverage"}, {"control_id": "f-pc", "dom_selector": "#f-pc", "tag": "input", "input_type": "text", "name_attr": "prior_claims", "id_attr": "f-pc", "label_text": "Flood claims in the last 10 years", "section_text": "Coverage and billing", "current_value": "0", "checked": null, "visible": true, "row_text": "Flood claims in the last 10 years", "modal_container": "#dlg-coverage"}, {"control_id": "f-eff", "dom_selector": "#f-eff", "tag": "input", "input_type": "text", "name_attr": "effective_date", "id_attr": "f-eff", "label_text": "Policy effective date", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Policy effective date", "modal_container": "#dlg-coverage"}, {"control_id": "ctrl_10", "dom_selector": "#dlg-coverage > form > button:nth-of-type(1)", "tag": "button", "label_text": "Save section", "section_text": "Coverage and billing", "checked": null, "visible": true, "modal_container": "#dlg-coverage"}, {"control_id": "ctrl_11", "dom_selector": "#dlg-coverage > form > button:nth-of-type(2)", "tag": "button", "label_text": "Cancel", "section_text": "Coverage and billing", "checked": null, "visible": true, "modal_container": "#dlg-coverage"}], "text_pairs": [], "banners": [], "modals": [{"modal_id": "dlg-coverage", "container_selector": "#dlg-coverage", "message_text": "Coverage and billing Building coverage ($) Estimate replacement cost Square footage ConstructionFrameMasonry Finish qualityStandardCustom Use estimate Contents coverage ($) Deductible$1,250$2,000$5,000$10,000 Flood claims in the last 10 years Policy effective date Save section Cancel"}], "title": "Flood quote"} +FORM_TX_DEMO {"portal": "brackwater", "step": 26, "why": "before click selector='#dlg-coverage >> internal:role=button[name=\"Save section\"i]'>", "frame_url": "http://127.0.0.1:64534/flood/hub", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#card-insured > button", "tag": "button", "label_text": "Edit named insured", "section_text": "Named insured", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsComplete Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_1", "dom_selector": "#card-property > button", "tag": "button", "label_text": "Edit property and map", "section_text": "Property and map", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsComplete Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_2", "dom_selector": "#card-building > button", "tag": "button", "label_text": "Edit building details", "section_text": "Building details", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsComplete Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "ctrl_3", "dom_selector": "#card-coverage > button", "tag": "button", "label_text": "Edit coverage and billing", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsComplete Edit building detailsCoverage and billingNot started Edit coverage and billing"}, {"control_id": "f-bc", "dom_selector": "#f-bc", "tag": "input", "input_type": "text", "name_attr": "building_coverage", "id_attr": "f-bc", "label_text": "Building coverage ($)", "section_text": "Coverage and billing", "current_value": "250000", "checked": null, "visible": true, "row_text": "Building coverage ($) Estimate replacement cost", "modal_container": "#dlg-coverage"}, {"control_id": "est-open", "dom_selector": "#est-open", "tag": "button", "id_attr": "est-open", "label_text": "Estimate replacement cost", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Building coverage ($) Estimate replacement cost", "modal_container": "#dlg-coverage"}, {"control_id": "f-cc", "dom_selector": "#f-cc", "tag": "input", "input_type": "text", "name_attr": "contents_coverage", "id_attr": "f-cc", "label_text": "Contents coverage ($)", "section_text": "Coverage and billing", "current_value": "60000", "checked": null, "visible": true, "row_text": "Contents coverage ($)", "modal_container": "#dlg-coverage"}, {"control_id": "f-ded", "dom_selector": "#f-ded", "tag": "select", "name_attr": "deductible", "id_attr": "f-ded", "label_text": "Deductible", "section_text": "Coverage and billing", "current_value": "2000", "checked": null, "visible": true, "options": [{"value": "1250", "label": "$1,250"}, {"value": "2000", "label": "$2,000"}, {"value": "5000", "label": "$5,000"}, {"value": "10000", "label": "$10,000"}], "row_text": "Deductible$1,250$2,000$5,000$10,000", "modal_container": "#dlg-coverage"}, {"control_id": "f-pc", "dom_selector": "#f-pc", "tag": "input", "input_type": "text", "name_attr": "prior_claims", "id_attr": "f-pc", "label_text": "Flood claims in the last 10 years", "section_text": "Coverage and billing", "current_value": "0", "checked": null, "visible": true, "row_text": "Flood claims in the last 10 years", "modal_container": "#dlg-coverage"}, {"control_id": "f-eff", "dom_selector": "#f-eff", "tag": "input", "input_type": "text", "name_attr": "effective_date", "id_attr": "f-eff", "label_text": "Policy effective date", "section_text": "Coverage and billing", "current_value": "01/15/2027", "checked": null, "visible": true, "row_text": "Policy effective date", "modal_container": "#dlg-coverage"}, {"control_id": "ctrl_10", "dom_selector": "#dlg-coverage > form > button:nth-of-type(1)", "tag": "button", "label_text": "Save section", "section_text": "Coverage and billing", "checked": null, "visible": true, "modal_container": "#dlg-coverage"}, {"control_id": "ctrl_11", "dom_selector": "#dlg-coverage > form > button:nth-of-type(2)", "tag": "button", "label_text": "Cancel", "section_text": "Coverage and billing", "checked": null, "visible": true, "modal_container": "#dlg-coverage"}], "text_pairs": [], "banners": [], "modals": [{"modal_id": "dlg-coverage", "container_selector": "#dlg-coverage", "message_text": "Coverage and billing Building coverage ($) Estimate replacement cost Square footage ConstructionFrameMasonry Finish qualityStandardCustom Use estimate Contents coverage ($) Deductible$1,250$2,000$5,000$10,000 Flood claims in the last 10 years Policy effective date Save section Cancel"}], "title": "Flood quote"} +FORM_TX_DEMO {"portal": "brackwater", "step": 27, "why": "before click selector='#to-review'>", "frame_url": "http://127.0.0.1:64534/flood/hub", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#card-insured > button", "tag": "button", "label_text": "Edit named insured", "section_text": "Named insured", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsComplete Edit building detailsCoverage and billingComplete Edit coverage and billing"}, {"control_id": "ctrl_1", "dom_selector": "#card-property > button", "tag": "button", "label_text": "Edit property and map", "section_text": "Property and map", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsComplete Edit building detailsCoverage and billingComplete Edit coverage and billing"}, {"control_id": "ctrl_2", "dom_selector": "#card-building > button", "tag": "button", "label_text": "Edit building details", "section_text": "Building details", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsComplete Edit building detailsCoverage and billingComplete Edit coverage and billing"}, {"control_id": "ctrl_3", "dom_selector": "#card-coverage > button", "tag": "button", "label_text": "Edit coverage and billing", "section_text": "Coverage and billing", "checked": null, "visible": true, "row_text": "Named insuredComplete Edit named insuredProperty and mapComplete Edit property and mapBuilding detailsComplete Edit building detailsCoverage and billingComplete Edit coverage and billing"}], "text_pairs": [], "banners": [], "modals": [], "title": "Flood quote"} +FORM_TX_DEMO {"portal": "brackwater", "step": 28, "why": "before check selector='internal:label=\"I confirm these declarations match the applicant\\'s information\"i'>", "frame_url": "http://127.0.0.1:64534/flood/review", "is_main": true, "controls": [{"control_id": "confirm", "dom_selector": "#confirm", "tag": "input", "input_type": "checkbox", "name_attr": "confirm", "id_attr": "confirm", "label_text": "I confirm these declarations match the applicant's information", "section_text": "Declarations preview", "current_value": "false", "checked": false, "visible": true, "row_text": "I confirm these declarations match the applicant's information"}, {"control_id": "ctrl_1", "dom_selector": "body > main > form > button", "tag": "button", "label_text": "Submit quote request", "section_text": "Declarations preview", "checked": null, "visible": true}], "text_pairs": [{"label": "Insured name", "value": "Marisol Okonkwo-Hale", "section_text": "Declarations preview", "source": "dl"}, {"label": "Phone number", "value": "504-555-0117", "section_text": "Declarations preview", "source": "dl"}, {"label": "Property street address", "value": "88 Tern Hollow Road", "section_text": "Declarations preview", "source": "dl"}, {"label": "NFIP community", "value": "Greywick, City of - Pell County (480733)", "section_text": "Declarations preview", "source": "dl"}, {"label": "Flood zone", "value": "AE", "section_text": "Declarations preview", "source": "dl"}, {"label": "Building type", "value": "Single-family dwelling", "section_text": "Declarations preview", "source": "dl"}, {"label": "Foundation type", "value": "Crawlspace", "section_text": "Declarations preview", "source": "dl"}, {"label": "Year built", "value": "1994", "section_text": "Declarations preview", "source": "dl"}, {"label": "Total square footage", "value": "1680", "section_text": "Declarations preview", "source": "dl"}, {"label": "Building coverage", "value": "250000", "section_text": "Declarations preview", "source": "dl"}, {"label": "Contents coverage", "value": "60000", "section_text": "Declarations preview", "source": "dl"}, {"label": "Deductible", "value": "2000", "section_text": "Declarations preview", "source": "dl"}, {"label": "Flood claims in the last 10 years", "value": "0", "section_text": "Declarations preview", "source": "dl"}, {"label": "Policy effective date", "value": "01/15/2027", "section_text": "Declarations preview", "source": "dl"}], "banners": [], "modals": [], "title": "Declarations preview"} +FORM_TX_DEMO {"portal": "brackwater", "step": 29, "why": "before click selector='internal:role=button[name=\"Submit quote request\"i]'>", "frame_url": "http://127.0.0.1:64534/flood/review", "is_main": true, "controls": [{"control_id": "confirm", "dom_selector": "#confirm", "tag": "input", "input_type": "checkbox", "name_attr": "confirm", "id_attr": "confirm", "label_text": "I confirm these declarations match the applicant's information", "section_text": "Declarations preview", "current_value": "true", "checked": true, "visible": true, "row_text": "I confirm these declarations match the applicant's information"}, {"control_id": "ctrl_1", "dom_selector": "body > main > form > button", "tag": "button", "label_text": "Submit quote request", "section_text": "Declarations preview", "checked": null, "visible": true}], "text_pairs": [{"label": "Insured name", "value": "Marisol Okonkwo-Hale", "section_text": "Declarations preview", "source": "dl"}, {"label": "Phone number", "value": "504-555-0117", "section_text": "Declarations preview", "source": "dl"}, {"label": "Property street address", "value": "88 Tern Hollow Road", "section_text": "Declarations preview", "source": "dl"}, {"label": "NFIP community", "value": "Greywick, City of - Pell County (480733)", "section_text": "Declarations preview", "source": "dl"}, {"label": "Flood zone", "value": "AE", "section_text": "Declarations preview", "source": "dl"}, {"label": "Building type", "value": "Single-family dwelling", "section_text": "Declarations preview", "source": "dl"}, {"label": "Foundation type", "value": "Crawlspace", "section_text": "Declarations preview", "source": "dl"}, {"label": "Year built", "value": "1994", "section_text": "Declarations preview", "source": "dl"}, {"label": "Total square footage", "value": "1680", "section_text": "Declarations preview", "source": "dl"}, {"label": "Building coverage", "value": "250000", "section_text": "Declarations preview", "source": "dl"}, {"label": "Contents coverage", "value": "60000", "section_text": "Declarations preview", "source": "dl"}, {"label": "Deductible", "value": "2000", "section_text": "Declarations preview", "source": "dl"}, {"label": "Flood claims in the last 10 years", "value": "0", "section_text": "Declarations preview", "source": "dl"}, {"label": "Policy effective date", "value": "01/15/2027", "section_text": "Declarations preview", "source": "dl"}], "banners": [], "modals": [], "title": "Declarations preview"} +FORM_TX_DEMO {"portal": "brackwater", "step": 30, "why": "end of case", "frame_url": "http://127.0.0.1:64534/flood/quote/BFU-Q-04101", "is_main": true, "controls": [], "text_pairs": [{"label": "insured name", "value": "Marisol Okonkwo-Hale", "section_text": "Stored quote", "source": "dl"}, {"label": "insured phone", "value": "504-555-0117", "section_text": "Stored quote", "source": "dl"}, {"label": "property street", "value": "88 Tern Hollow Road", "section_text": "Stored quote", "source": "dl"}, {"label": "community", "value": "Greywick, City of - Pell County (480733)", "section_text": "Stored quote", "source": "dl"}, {"label": "flood zone", "value": "AE", "section_text": "Stored quote", "source": "dl"}, {"label": "building type", "value": "Single-family dwelling", "section_text": "Stored quote", "source": "dl"}, {"label": "foundation", "value": "Crawlspace", "section_text": "Stored quote", "source": "dl"}, {"label": "year built", "value": "1994", "section_text": "Stored quote", "source": "dl"}, {"label": "square feet", "value": "1680", "section_text": "Stored quote", "source": "dl"}, {"label": "building coverage", "value": "250000", "section_text": "Stored quote", "source": "dl"}, {"label": "contents coverage", "value": "60000", "section_text": "Stored quote", "source": "dl"}, {"label": "deductible", "value": "2000", "section_text": "Stored quote", "source": "dl"}, {"label": "prior claims", "value": "0", "section_text": "Stored quote", "source": "dl"}, {"label": "bill to", "value": "", "section_text": "Stored quote", "source": "dl"}, {"label": "effective date", "value": "2027-01-15", "section_text": "Stored quote", "source": "dl"}, {"label": "Quote reference", "value": "BFU-Q-04101", "section_text": "Quote issued", "source": "inline"}, {"label": "Estimated annual premium", "value": "$1,040", "section_text": "Quote issued", "source": "inline"}], "banners": [], "modals": [], "title": "Quote issued"} +FORM_TX_DEMO_RESULT [{"case_id": "bfu-d01", "correct": true}] diff --git a/packages/flow/benchmark/form_tx_set4v2_run/demos/hollowfen.jsonl b/packages/flow/benchmark/form_tx_set4v2_run/demos/hollowfen.jsonl new file mode 100644 index 0000000000..8bda19a504 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/demos/hollowfen.jsonl @@ -0,0 +1,30 @@ +FORM_TX_DEMO {"portal": "hollowfen", "step": 0, "why": "before fill selector='internal:label=\"Producer email\"s'>", "frame_url": "http://127.0.0.1:64585/signin", "is_main": true, "controls": [{"control_id": "u", "dom_selector": "#u", "tag": "input", "input_type": "text", "name_attr": "email", "id_attr": "u", "label_text": "Producer email", "section_text": "Producer sign-in", "checked": null, "visible": true, "row_text": "Producer email", "row_cells": ["Producer email", ""]}, {"control_id": "pw", "dom_selector": "#pw", "tag": "input", "input_type": "password", "name_attr": "password", "id_attr": "pw", "label_text": "Password", "section_text": "Producer sign-in", "checked": null, "visible": true, "is_secret": true, "row_text": "Password", "row_cells": ["Password", ""]}, {"control_id": "ctrl_2", "dom_selector": "body > div:nth-of-type(2) > form > button", "tag": "button", "label_text": "Sign in", "section_text": "Producer sign-in", "checked": null, "visible": true}], "text_pairs": [{"label": "Hollowfen Business Mutual", "value": "BOP Rating Worksheet v4.2", "section_text": "", "source": "inline"}], "banners": [], "modals": [], "title": "Sign in"} +FORM_TX_DEMO {"portal": "hollowfen", "step": 1, "why": "before fill selector='internal:label=\"Password\"s'>", "frame_url": "http://127.0.0.1:64585/signin", "is_main": true, "controls": [{"control_id": "u", "dom_selector": "#u", "tag": "input", "input_type": "text", "name_attr": "email", "id_attr": "u", "label_text": "Producer email", "section_text": "Producer sign-in", "current_value": "hf.producer@example.test", "checked": null, "visible": true, "row_text": "Producer email", "row_cells": ["Producer email", ""]}, {"control_id": "pw", "dom_selector": "#pw", "tag": "input", "input_type": "password", "name_attr": "password", "id_attr": "pw", "label_text": "Password", "section_text": "Producer sign-in", "checked": null, "visible": true, "is_secret": true, "row_text": "Password", "row_cells": ["Password", ""]}, {"control_id": "ctrl_2", "dom_selector": "body > div:nth-of-type(2) > form > button", "tag": "button", "label_text": "Sign in", "section_text": "Producer sign-in", "checked": null, "visible": true}], "text_pairs": [{"label": "Hollowfen Business Mutual", "value": "BOP Rating Worksheet v4.2", "section_text": "", "source": "inline"}], "banners": [], "modals": [], "title": "Sign in"} +FORM_TX_DEMO {"portal": "hollowfen", "step": 2, "why": "before click selector='internal:role=button[name=\"Sign in\"i]'>", "frame_url": "http://127.0.0.1:64585/signin", "is_main": true, "controls": [{"control_id": "u", "dom_selector": "#u", "tag": "input", "input_type": "text", "name_attr": "email", "id_attr": "u", "label_text": "Producer email", "section_text": "Producer sign-in", "current_value": "hf.producer@example.test", "checked": null, "visible": true, "row_text": "Producer email", "row_cells": ["Producer email", ""]}, {"control_id": "pw", "dom_selector": "#pw", "tag": "input", "input_type": "password", "name_attr": "password", "id_attr": "pw", "label_text": "Password", "section_text": "Producer sign-in", "current_value": "", "checked": null, "visible": true, "is_secret": true, "row_text": "Password", "row_cells": ["Password", ""]}, {"control_id": "ctrl_2", "dom_selector": "body > div:nth-of-type(2) > form > button", "tag": "button", "label_text": "Sign in", "section_text": "Producer sign-in", "checked": null, "visible": true}], "text_pairs": [{"label": "Hollowfen Business Mutual", "value": "BOP Rating Worksheet v4.2", "section_text": "", "source": "inline"}], "banners": [], "modals": [], "title": "Sign in"} +FORM_TX_DEMO {"portal": "hollowfen", "step": 3, "why": "before fill selector='#applicant >> internal:label=\"State entity number\"s'>", "frame_url": "http://127.0.0.1:64585/bop/worksheet", "is_main": true, "controls": [{"control_id": "en", "dom_selector": "#en", "tag": "input", "input_type": "text", "name_attr": "entity_number", "id_attr": "en", "label_text": "State entity number", "checked": null, "visible": true, "row_text": "State entity number Look up entity", "row_cells": ["State entity number", "Look up entity"]}, {"control_id": "action", "dom_selector": "#applicant > tbody > tr:nth-of-type(2) > td > button", "tag": "button", "name_attr": "action", "label_text": "Look up entity", "checked": null, "visible": true, "row_text": "State entity number Look up entity", "row_cells": ["State entity number", "Look up entity"]}, {"control_id": "ln", "dom_selector": "#ln", "tag": "input", "input_type": "text", "name_attr": "legal_name", "id_attr": "ln", "label_text": "Legal name", "checked": null, "visible": true, "row_text": "Legal name", "row_cells": ["Legal name", ""]}, {"control_id": "dba", "dom_selector": "#dba", "tag": "input", "input_type": "text", "name_attr": "dba_name", "id_attr": "dba", "label_text": "Doing business as (DBA)", "checked": null, "visible": true, "row_text": "Doing business as (DBA)", "row_cells": ["Doing business as (DBA)", ""]}, {"control_id": "et", "dom_selector": "#et", "tag": "select", "name_attr": "entity_type", "id_attr": "et", "label_text": "Entity type", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Limited liability company", "label": "Limited liability company"}, {"value": "Corporation", "label": "Corporation"}, {"value": "Sole proprietorship", "label": "Sole proprietorship"}, {"value": "General partnership", "label": "General partnership"}], "row_text": "Entity type-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership", "row_cells": ["Entity type", "-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership"]}, {"control_id": "fein", "dom_selector": "#fein", "tag": "input", "input_type": "text", "name_attr": "fein", "id_attr": "fein", "label_text": "FEIN", "checked": null, "visible": true, "row_text": "FEIN", "row_cells": ["FEIN", ""]}, {"control_id": "ye", "dom_selector": "#ye", "tag": "input", "input_type": "text", "name_attr": "year_established", "id_attr": "ye", "label_text": "Year established", "checked": null, "visible": true, "row_text": "Year established", "row_cells": ["Year established", ""]}, {"control_id": "action#2", "dom_selector": "#applicant > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save applicant", "checked": null, "visible": true, "row_text": "Save applicant", "row_cells": ["Save applicant"]}, {"control_id": "ls", "dom_selector": "#ls", "tag": "input", "input_type": "text", "name_attr": "location_street", "id_attr": "ls", "label_text": "Location street address", "checked": null, "visible": true, "row_text": "Location street address", "row_cells": ["Location street address", ""]}, {"control_id": "class-code", "dom_selector": "#class-code", "tag": "input", "input_type": "text", "name_attr": "class_code", "id_attr": "class-code", "label_text": "Class code", "checked": null, "readonly": true, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "find-class", "dom_selector": "#find-class", "tag": "button", "id_attr": "find-class", "label_text": "Find class...", "checked": null, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "emp", "dom_selector": "#emp", "tag": "input", "input_type": "text", "name_attr": "employees", "id_attr": "emp", "label_text": "Number of employees", "checked": null, "visible": true, "row_text": "Number of employees", "row_cells": ["Number of employees", ""]}, {"control_id": "rev", "dom_selector": "#rev", "tag": "input", "input_type": "text", "name_attr": "annual_revenue", "id_attr": "rev", "label_text": "Annual gross sales ($)", "checked": null, "visible": true, "row_text": "Annual gross sales ($)", "row_cells": ["Annual gross sales ($)", ""]}, {"control_id": "own", "dom_selector": "#own", "tag": "select", "name_attr": "building_owned", "id_attr": "own", "label_text": "Does the insured own the building?", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "row_text": "Does the insured own the building?-- select --YesNo", "row_cells": ["Does the insured own the building?", "-- select --YesNo"]}, {"control_id": "bl", "dom_selector": "#bl", "tag": "input", "input_type": "text", "name_attr": "building_limit", "id_attr": "bl", "label_text": "Building limit ($)", "checked": null, "visible": true, "row_text": "Building limit ($) enter 0 if not owned", "row_cells": ["Building limit ($)", "enter 0 if not owned"]}, {"control_id": "action#3", "dom_selector": "#location > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save location", "checked": null, "visible": true, "row_text": "Save location", "row_cells": ["Save location"]}, {"control_id": "bpp", "dom_selector": "#bpp", "tag": "input", "input_type": "text", "name_attr": "bpp_limit", "id_attr": "bpp", "label_text": "Business personal property limit ($)", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "bpp-open", "dom_selector": "#bpp-open", "tag": "button", "id_attr": "bpp-open", "label_text": "Open BPP worksheet", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "ll", "dom_selector": "#ll", "tag": "select", "name_attr": "liability_limit", "id_attr": "ll", "label_text": "Liability limits", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "$300,000 / $600,000", "label": "$300,000 / $600,000"}, {"value": "$500,000 / $1,000,000", "label": "$500,000 / $1,000,000"}, {"value": "$1,000,000 / $2,000,000", "label": "$1,000,000 / $2,000,000"}], "row_text": "Liability limits-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate", "row_cells": ["Liability limits", "-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate"]}, {"control_id": "ded", "dom_selector": "#ded", "tag": "select", "name_attr": "deductible", "id_attr": "ded", "label_text": "Property deductible", "current_value": "1000", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}, {"value": "5000", "label": "$5,000"}], "row_text": "Property deductible-- select --$500$1,000$2,500$5,000", "row_cells": ["Property deductible", "-- select --$500$1,000$2,500$5,000"]}, {"control_id": "eff", "dom_selector": "#eff", "tag": "input", "input_type": "text", "name_attr": "effective_date", "id_attr": "eff", "label_text": "Effective date", "checked": null, "visible": true, "row_text": "Effective date", "row_cells": ["Effective date", ""]}, {"control_id": "action#4", "dom_selector": "#coverage > tbody > tr:nth-of-type(6) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save coverage", "checked": null, "visible": true, "row_text": "Save coverage", "row_cells": ["Save coverage"]}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "name_attr": "action", "id_attr": "rate", "label_text": "Rate this risk", "checked": null, "visible": true}], "text_pairs": [{"label": "Hollowfen Business Mutual", "value": "BOP Rating Worksheet v4.2", "section_text": "", "source": "inline"}], "banners": [], "modals": [], "title": "BOP worksheet"} +FORM_TX_DEMO {"portal": "hollowfen", "step": 4, "why": "before click selector='#applicant >> internal:role=button[name=\"Look up entity\"i]'>", "frame_url": "http://127.0.0.1:64585/bop/worksheet", "is_main": true, "controls": [{"control_id": "en", "dom_selector": "#en", "tag": "input", "input_type": "text", "name_attr": "entity_number", "id_attr": "en", "label_text": "State entity number", "current_value": "LLC-2017-902214", "checked": null, "visible": true, "row_text": "State entity number Look up entity", "row_cells": ["State entity number", "Look up entity"]}, {"control_id": "action", "dom_selector": "#applicant > tbody > tr:nth-of-type(2) > td > button", "tag": "button", "name_attr": "action", "label_text": "Look up entity", "checked": null, "visible": true, "row_text": "State entity number Look up entity", "row_cells": ["State entity number", "Look up entity"]}, {"control_id": "ln", "dom_selector": "#ln", "tag": "input", "input_type": "text", "name_attr": "legal_name", "id_attr": "ln", "label_text": "Legal name", "checked": null, "visible": true, "row_text": "Legal name", "row_cells": ["Legal name", ""]}, {"control_id": "dba", "dom_selector": "#dba", "tag": "input", "input_type": "text", "name_attr": "dba_name", "id_attr": "dba", "label_text": "Doing business as (DBA)", "checked": null, "visible": true, "row_text": "Doing business as (DBA)", "row_cells": ["Doing business as (DBA)", ""]}, {"control_id": "et", "dom_selector": "#et", "tag": "select", "name_attr": "entity_type", "id_attr": "et", "label_text": "Entity type", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Limited liability company", "label": "Limited liability company"}, {"value": "Corporation", "label": "Corporation"}, {"value": "Sole proprietorship", "label": "Sole proprietorship"}, {"value": "General partnership", "label": "General partnership"}], "row_text": "Entity type-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership", "row_cells": ["Entity type", "-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership"]}, {"control_id": "fein", "dom_selector": "#fein", "tag": "input", "input_type": "text", "name_attr": "fein", "id_attr": "fein", "label_text": "FEIN", "checked": null, "visible": true, "row_text": "FEIN", "row_cells": ["FEIN", ""]}, {"control_id": "ye", "dom_selector": "#ye", "tag": "input", "input_type": "text", "name_attr": "year_established", "id_attr": "ye", "label_text": "Year established", "checked": null, "visible": true, "row_text": "Year established", "row_cells": ["Year established", ""]}, {"control_id": "action#2", "dom_selector": "#applicant > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save applicant", "checked": null, "visible": true, "row_text": "Save applicant", "row_cells": ["Save applicant"]}, {"control_id": "ls", "dom_selector": "#ls", "tag": "input", "input_type": "text", "name_attr": "location_street", "id_attr": "ls", "label_text": "Location street address", "checked": null, "visible": true, "row_text": "Location street address", "row_cells": ["Location street address", ""]}, {"control_id": "class-code", "dom_selector": "#class-code", "tag": "input", "input_type": "text", "name_attr": "class_code", "id_attr": "class-code", "label_text": "Class code", "checked": null, "readonly": true, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "find-class", "dom_selector": "#find-class", "tag": "button", "id_attr": "find-class", "label_text": "Find class...", "checked": null, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "emp", "dom_selector": "#emp", "tag": "input", "input_type": "text", "name_attr": "employees", "id_attr": "emp", "label_text": "Number of employees", "checked": null, "visible": true, "row_text": "Number of employees", "row_cells": ["Number of employees", ""]}, {"control_id": "rev", "dom_selector": "#rev", "tag": "input", "input_type": "text", "name_attr": "annual_revenue", "id_attr": "rev", "label_text": "Annual gross sales ($)", "checked": null, "visible": true, "row_text": "Annual gross sales ($)", "row_cells": ["Annual gross sales ($)", ""]}, {"control_id": "own", "dom_selector": "#own", "tag": "select", "name_attr": "building_owned", "id_attr": "own", "label_text": "Does the insured own the building?", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "row_text": "Does the insured own the building?-- select --YesNo", "row_cells": ["Does the insured own the building?", "-- select --YesNo"]}, {"control_id": "bl", "dom_selector": "#bl", "tag": "input", "input_type": "text", "name_attr": "building_limit", "id_attr": "bl", "label_text": "Building limit ($)", "checked": null, "visible": true, "row_text": "Building limit ($) enter 0 if not owned", "row_cells": ["Building limit ($)", "enter 0 if not owned"]}, {"control_id": "action#3", "dom_selector": "#location > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save location", "checked": null, "visible": true, "row_text": "Save location", "row_cells": ["Save location"]}, {"control_id": "bpp", "dom_selector": "#bpp", "tag": "input", "input_type": "text", "name_attr": "bpp_limit", "id_attr": "bpp", "label_text": "Business personal property limit ($)", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "bpp-open", "dom_selector": "#bpp-open", "tag": "button", "id_attr": "bpp-open", "label_text": "Open BPP worksheet", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "ll", "dom_selector": "#ll", "tag": "select", "name_attr": "liability_limit", "id_attr": "ll", "label_text": "Liability limits", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "$300,000 / $600,000", "label": "$300,000 / $600,000"}, {"value": "$500,000 / $1,000,000", "label": "$500,000 / $1,000,000"}, {"value": "$1,000,000 / $2,000,000", "label": "$1,000,000 / $2,000,000"}], "row_text": "Liability limits-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate", "row_cells": ["Liability limits", "-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate"]}, {"control_id": "ded", "dom_selector": "#ded", "tag": "select", "name_attr": "deductible", "id_attr": "ded", "label_text": "Property deductible", "current_value": "1000", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}, {"value": "5000", "label": "$5,000"}], "row_text": "Property deductible-- select --$500$1,000$2,500$5,000", "row_cells": ["Property deductible", "-- select --$500$1,000$2,500$5,000"]}, {"control_id": "eff", "dom_selector": "#eff", "tag": "input", "input_type": "text", "name_attr": "effective_date", "id_attr": "eff", "label_text": "Effective date", "checked": null, "visible": true, "row_text": "Effective date", "row_cells": ["Effective date", ""]}, {"control_id": "action#4", "dom_selector": "#coverage > tbody > tr:nth-of-type(6) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save coverage", "checked": null, "visible": true, "row_text": "Save coverage", "row_cells": ["Save coverage"]}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "name_attr": "action", "id_attr": "rate", "label_text": "Rate this risk", "checked": null, "visible": true}], "text_pairs": [{"label": "Hollowfen Business Mutual", "value": "BOP Rating Worksheet v4.2", "section_text": "", "source": "inline"}], "banners": [], "modals": [], "title": "BOP worksheet"} +FORM_TX_DEMO {"portal": "hollowfen", "step": 5, "why": "before fill selector='#applicant >> internal:label=\"Legal name\"s'>", "frame_url": "http://127.0.0.1:64585/bop/worksheet#applicant", "is_main": true, "controls": [{"control_id": "en", "dom_selector": "#en", "tag": "input", "input_type": "text", "name_attr": "entity_number", "id_attr": "en", "label_text": "State entity number", "current_value": "LLC-2017-902214", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "action", "dom_selector": "#applicant > tbody > tr:nth-of-type(2) > td > button", "tag": "button", "name_attr": "action", "label_text": "Look up entity", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "ln", "dom_selector": "#ln", "tag": "input", "input_type": "text", "name_attr": "legal_name", "id_attr": "ln", "label_text": "Legal name", "checked": null, "visible": true, "row_text": "Legal name", "row_cells": ["Legal name", ""]}, {"control_id": "dba", "dom_selector": "#dba", "tag": "input", "input_type": "text", "name_attr": "dba_name", "id_attr": "dba", "label_text": "Doing business as (DBA)", "checked": null, "visible": true, "row_text": "Doing business as (DBA)", "row_cells": ["Doing business as (DBA)", ""]}, {"control_id": "et", "dom_selector": "#et", "tag": "select", "name_attr": "entity_type", "id_attr": "et", "label_text": "Entity type", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Limited liability company", "label": "Limited liability company"}, {"value": "Corporation", "label": "Corporation"}, {"value": "Sole proprietorship", "label": "Sole proprietorship"}, {"value": "General partnership", "label": "General partnership"}], "row_text": "Entity type-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership", "row_cells": ["Entity type", "-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership"]}, {"control_id": "fein", "dom_selector": "#fein", "tag": "input", "input_type": "text", "name_attr": "fein", "id_attr": "fein", "label_text": "FEIN", "checked": null, "visible": true, "row_text": "FEIN", "row_cells": ["FEIN", ""]}, {"control_id": "ye", "dom_selector": "#ye", "tag": "input", "input_type": "text", "name_attr": "year_established", "id_attr": "ye", "label_text": "Year established", "checked": null, "visible": true, "row_text": "Year established", "row_cells": ["Year established", ""]}, {"control_id": "action#2", "dom_selector": "#applicant > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save applicant", "checked": null, "visible": true, "row_text": "Save applicant", "row_cells": ["Save applicant"]}, {"control_id": "ls", "dom_selector": "#ls", "tag": "input", "input_type": "text", "name_attr": "location_street", "id_attr": "ls", "label_text": "Location street address", "checked": null, "visible": true, "row_text": "Location street address", "row_cells": ["Location street address", ""]}, {"control_id": "class-code", "dom_selector": "#class-code", "tag": "input", "input_type": "text", "name_attr": "class_code", "id_attr": "class-code", "label_text": "Class code", "checked": null, "readonly": true, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "find-class", "dom_selector": "#find-class", "tag": "button", "id_attr": "find-class", "label_text": "Find class...", "checked": null, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "emp", "dom_selector": "#emp", "tag": "input", "input_type": "text", "name_attr": "employees", "id_attr": "emp", "label_text": "Number of employees", "checked": null, "visible": true, "row_text": "Number of employees", "row_cells": ["Number of employees", ""]}, {"control_id": "rev", "dom_selector": "#rev", "tag": "input", "input_type": "text", "name_attr": "annual_revenue", "id_attr": "rev", "label_text": "Annual gross sales ($)", "checked": null, "visible": true, "row_text": "Annual gross sales ($)", "row_cells": ["Annual gross sales ($)", ""]}, {"control_id": "own", "dom_selector": "#own", "tag": "select", "name_attr": "building_owned", "id_attr": "own", "label_text": "Does the insured own the building?", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "row_text": "Does the insured own the building?-- select --YesNo", "row_cells": ["Does the insured own the building?", "-- select --YesNo"]}, {"control_id": "bl", "dom_selector": "#bl", "tag": "input", "input_type": "text", "name_attr": "building_limit", "id_attr": "bl", "label_text": "Building limit ($)", "checked": null, "visible": true, "row_text": "Building limit ($) enter 0 if not owned", "row_cells": ["Building limit ($)", "enter 0 if not owned"]}, {"control_id": "action#3", "dom_selector": "#location > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save location", "checked": null, "visible": true, "row_text": "Save location", "row_cells": ["Save location"]}, {"control_id": "bpp", "dom_selector": "#bpp", "tag": "input", "input_type": "text", "name_attr": "bpp_limit", "id_attr": "bpp", "label_text": "Business personal property limit ($)", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "bpp-open", "dom_selector": "#bpp-open", "tag": "button", "id_attr": "bpp-open", "label_text": "Open BPP worksheet", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "ll", "dom_selector": "#ll", "tag": "select", "name_attr": "liability_limit", "id_attr": "ll", "label_text": "Liability limits", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "$300,000 / $600,000", "label": "$300,000 / $600,000"}, {"value": "$500,000 / $1,000,000", "label": "$500,000 / $1,000,000"}, {"value": "$1,000,000 / $2,000,000", "label": "$1,000,000 / $2,000,000"}], "row_text": "Liability limits-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate", "row_cells": ["Liability limits", "-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate"]}, {"control_id": "ded", "dom_selector": "#ded", "tag": "select", "name_attr": "deductible", "id_attr": "ded", "label_text": "Property deductible", "current_value": "1000", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}, {"value": "5000", "label": "$5,000"}], "row_text": "Property deductible-- select --$500$1,000$2,500$5,000", "row_cells": ["Property deductible", "-- select --$500$1,000$2,500$5,000"]}, {"control_id": "eff", "dom_selector": "#eff", "tag": "input", "input_type": "text", "name_attr": "effective_date", "id_attr": "eff", "label_text": "Effective date", "checked": null, "visible": true, "row_text": "Effective date", "row_cells": ["Effective date", ""]}, {"control_id": "action#4", "dom_selector": "#coverage > tbody > tr:nth-of-type(6) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save coverage", "checked": null, "visible": true, "row_text": "Save coverage", "row_cells": ["Save coverage"]}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "name_attr": "action", "id_attr": "rate", "label_text": "Rate this risk", "checked": null, "visible": true}], "text_pairs": [{"label": "Hollowfen Business Mutual", "value": "BOP Rating Worksheet v4.2", "section_text": "", "source": "inline"}], "banners": [], "modals": [], "title": "BOP worksheet"} +FORM_TX_DEMO {"portal": "hollowfen", "step": 6, "why": "before select_option selector='#applicant >> internal:label=\"Entity type\"s'>", "frame_url": "http://127.0.0.1:64585/bop/worksheet#applicant", "is_main": true, "controls": [{"control_id": "en", "dom_selector": "#en", "tag": "input", "input_type": "text", "name_attr": "entity_number", "id_attr": "en", "label_text": "State entity number", "current_value": "LLC-2017-902214", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "action", "dom_selector": "#applicant > tbody > tr:nth-of-type(2) > td > button", "tag": "button", "name_attr": "action", "label_text": "Look up entity", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "ln", "dom_selector": "#ln", "tag": "input", "input_type": "text", "name_attr": "legal_name", "id_attr": "ln", "label_text": "Legal name", "current_value": "Morrow Lane Frames LLC", "checked": null, "visible": true, "row_text": "Legal name", "row_cells": ["Legal name", ""]}, {"control_id": "dba", "dom_selector": "#dba", "tag": "input", "input_type": "text", "name_attr": "dba_name", "id_attr": "dba", "label_text": "Doing business as (DBA)", "checked": null, "visible": true, "row_text": "Doing business as (DBA)", "row_cells": ["Doing business as (DBA)", ""]}, {"control_id": "et", "dom_selector": "#et", "tag": "select", "name_attr": "entity_type", "id_attr": "et", "label_text": "Entity type", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Limited liability company", "label": "Limited liability company"}, {"value": "Corporation", "label": "Corporation"}, {"value": "Sole proprietorship", "label": "Sole proprietorship"}, {"value": "General partnership", "label": "General partnership"}], "row_text": "Entity type-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership", "row_cells": ["Entity type", "-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership"]}, {"control_id": "fein", "dom_selector": "#fein", "tag": "input", "input_type": "text", "name_attr": "fein", "id_attr": "fein", "label_text": "FEIN", "checked": null, "visible": true, "row_text": "FEIN", "row_cells": ["FEIN", ""]}, {"control_id": "ye", "dom_selector": "#ye", "tag": "input", "input_type": "text", "name_attr": "year_established", "id_attr": "ye", "label_text": "Year established", "checked": null, "visible": true, "row_text": "Year established", "row_cells": ["Year established", ""]}, {"control_id": "action#2", "dom_selector": "#applicant > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save applicant", "checked": null, "visible": true, "row_text": "Save applicant", "row_cells": ["Save applicant"]}, {"control_id": "ls", "dom_selector": "#ls", "tag": "input", "input_type": "text", "name_attr": "location_street", "id_attr": "ls", "label_text": "Location street address", "checked": null, "visible": true, "row_text": "Location street address", "row_cells": ["Location street address", ""]}, {"control_id": "class-code", "dom_selector": "#class-code", "tag": "input", "input_type": "text", "name_attr": "class_code", "id_attr": "class-code", "label_text": "Class code", "checked": null, "readonly": true, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "find-class", "dom_selector": "#find-class", "tag": "button", "id_attr": "find-class", "label_text": "Find class...", "checked": null, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "emp", "dom_selector": "#emp", "tag": "input", "input_type": "text", "name_attr": "employees", "id_attr": "emp", "label_text": "Number of employees", "checked": null, "visible": true, "row_text": "Number of employees", "row_cells": ["Number of employees", ""]}, {"control_id": "rev", "dom_selector": "#rev", "tag": "input", "input_type": "text", "name_attr": "annual_revenue", "id_attr": "rev", "label_text": "Annual gross sales ($)", "checked": null, "visible": true, "row_text": "Annual gross sales ($)", "row_cells": ["Annual gross sales ($)", ""]}, {"control_id": "own", "dom_selector": "#own", "tag": "select", "name_attr": "building_owned", "id_attr": "own", "label_text": "Does the insured own the building?", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "row_text": "Does the insured own the building?-- select --YesNo", "row_cells": ["Does the insured own the building?", "-- select --YesNo"]}, {"control_id": "bl", "dom_selector": "#bl", "tag": "input", "input_type": "text", "name_attr": "building_limit", "id_attr": "bl", "label_text": "Building limit ($)", "checked": null, "visible": true, "row_text": "Building limit ($) enter 0 if not owned", "row_cells": ["Building limit ($)", "enter 0 if not owned"]}, {"control_id": "action#3", "dom_selector": "#location > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save location", "checked": null, "visible": true, "row_text": "Save location", "row_cells": ["Save location"]}, {"control_id": "bpp", "dom_selector": "#bpp", "tag": "input", "input_type": "text", "name_attr": "bpp_limit", "id_attr": "bpp", "label_text": "Business personal property limit ($)", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "bpp-open", "dom_selector": "#bpp-open", "tag": "button", "id_attr": "bpp-open", "label_text": "Open BPP worksheet", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "ll", "dom_selector": "#ll", "tag": "select", "name_attr": "liability_limit", "id_attr": "ll", "label_text": "Liability limits", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "$300,000 / $600,000", "label": "$300,000 / $600,000"}, {"value": "$500,000 / $1,000,000", "label": "$500,000 / $1,000,000"}, {"value": "$1,000,000 / $2,000,000", "label": "$1,000,000 / $2,000,000"}], "row_text": "Liability limits-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate", "row_cells": ["Liability limits", "-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate"]}, {"control_id": "ded", "dom_selector": "#ded", "tag": "select", "name_attr": "deductible", "id_attr": "ded", "label_text": "Property deductible", "current_value": "1000", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}, {"value": "5000", "label": "$5,000"}], "row_text": "Property deductible-- select --$500$1,000$2,500$5,000", "row_cells": ["Property deductible", "-- select --$500$1,000$2,500$5,000"]}, {"control_id": "eff", "dom_selector": "#eff", "tag": "input", "input_type": "text", "name_attr": "effective_date", "id_attr": "eff", "label_text": "Effective date", "checked": null, "visible": true, "row_text": "Effective date", "row_cells": ["Effective date", ""]}, {"control_id": "action#4", "dom_selector": "#coverage > tbody > tr:nth-of-type(6) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save coverage", "checked": null, "visible": true, "row_text": "Save coverage", "row_cells": ["Save coverage"]}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "name_attr": "action", "id_attr": "rate", "label_text": "Rate this risk", "checked": null, "visible": true}], "text_pairs": [{"label": "Hollowfen Business Mutual", "value": "BOP Rating Worksheet v4.2", "section_text": "", "source": "inline"}], "banners": [], "modals": [], "title": "BOP worksheet"} +FORM_TX_DEMO {"portal": "hollowfen", "step": 7, "why": "before fill selector='#applicant >> internal:label=\"Year established\"s'>", "frame_url": "http://127.0.0.1:64585/bop/worksheet#applicant", "is_main": true, "controls": [{"control_id": "en", "dom_selector": "#en", "tag": "input", "input_type": "text", "name_attr": "entity_number", "id_attr": "en", "label_text": "State entity number", "current_value": "LLC-2017-902214", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "action", "dom_selector": "#applicant > tbody > tr:nth-of-type(2) > td > button", "tag": "button", "name_attr": "action", "label_text": "Look up entity", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "ln", "dom_selector": "#ln", "tag": "input", "input_type": "text", "name_attr": "legal_name", "id_attr": "ln", "label_text": "Legal name", "current_value": "Morrow Lane Frames LLC", "checked": null, "visible": true, "row_text": "Legal name", "row_cells": ["Legal name", ""]}, {"control_id": "dba", "dom_selector": "#dba", "tag": "input", "input_type": "text", "name_attr": "dba_name", "id_attr": "dba", "label_text": "Doing business as (DBA)", "checked": null, "visible": true, "row_text": "Doing business as (DBA)", "row_cells": ["Doing business as (DBA)", ""]}, {"control_id": "et", "dom_selector": "#et", "tag": "select", "name_attr": "entity_type", "id_attr": "et", "label_text": "Entity type", "current_value": "Limited liability company", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Limited liability company", "label": "Limited liability company"}, {"value": "Corporation", "label": "Corporation"}, {"value": "Sole proprietorship", "label": "Sole proprietorship"}, {"value": "General partnership", "label": "General partnership"}], "row_text": "Entity type-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership", "row_cells": ["Entity type", "-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership"]}, {"control_id": "fein", "dom_selector": "#fein", "tag": "input", "input_type": "text", "name_attr": "fein", "id_attr": "fein", "label_text": "FEIN", "checked": null, "visible": true, "row_text": "FEIN", "row_cells": ["FEIN", ""]}, {"control_id": "ye", "dom_selector": "#ye", "tag": "input", "input_type": "text", "name_attr": "year_established", "id_attr": "ye", "label_text": "Year established", "checked": null, "visible": true, "row_text": "Year established", "row_cells": ["Year established", ""]}, {"control_id": "action#2", "dom_selector": "#applicant > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save applicant", "checked": null, "visible": true, "row_text": "Save applicant", "row_cells": ["Save applicant"]}, {"control_id": "ls", "dom_selector": "#ls", "tag": "input", "input_type": "text", "name_attr": "location_street", "id_attr": "ls", "label_text": "Location street address", "checked": null, "visible": true, "row_text": "Location street address", "row_cells": ["Location street address", ""]}, {"control_id": "class-code", "dom_selector": "#class-code", "tag": "input", "input_type": "text", "name_attr": "class_code", "id_attr": "class-code", "label_text": "Class code", "checked": null, "readonly": true, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "find-class", "dom_selector": "#find-class", "tag": "button", "id_attr": "find-class", "label_text": "Find class...", "checked": null, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "emp", "dom_selector": "#emp", "tag": "input", "input_type": "text", "name_attr": "employees", "id_attr": "emp", "label_text": "Number of employees", "checked": null, "visible": true, "row_text": "Number of employees", "row_cells": ["Number of employees", ""]}, {"control_id": "rev", "dom_selector": "#rev", "tag": "input", "input_type": "text", "name_attr": "annual_revenue", "id_attr": "rev", "label_text": "Annual gross sales ($)", "checked": null, "visible": true, "row_text": "Annual gross sales ($)", "row_cells": ["Annual gross sales ($)", ""]}, {"control_id": "own", "dom_selector": "#own", "tag": "select", "name_attr": "building_owned", "id_attr": "own", "label_text": "Does the insured own the building?", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "row_text": "Does the insured own the building?-- select --YesNo", "row_cells": ["Does the insured own the building?", "-- select --YesNo"]}, {"control_id": "bl", "dom_selector": "#bl", "tag": "input", "input_type": "text", "name_attr": "building_limit", "id_attr": "bl", "label_text": "Building limit ($)", "checked": null, "visible": true, "row_text": "Building limit ($) enter 0 if not owned", "row_cells": ["Building limit ($)", "enter 0 if not owned"]}, {"control_id": "action#3", "dom_selector": "#location > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save location", "checked": null, "visible": true, "row_text": "Save location", "row_cells": ["Save location"]}, {"control_id": "bpp", "dom_selector": "#bpp", "tag": "input", "input_type": "text", "name_attr": "bpp_limit", "id_attr": "bpp", "label_text": "Business personal property limit ($)", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "bpp-open", "dom_selector": "#bpp-open", "tag": "button", "id_attr": "bpp-open", "label_text": "Open BPP worksheet", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "ll", "dom_selector": "#ll", "tag": "select", "name_attr": "liability_limit", "id_attr": "ll", "label_text": "Liability limits", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "$300,000 / $600,000", "label": "$300,000 / $600,000"}, {"value": "$500,000 / $1,000,000", "label": "$500,000 / $1,000,000"}, {"value": "$1,000,000 / $2,000,000", "label": "$1,000,000 / $2,000,000"}], "row_text": "Liability limits-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate", "row_cells": ["Liability limits", "-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate"]}, {"control_id": "ded", "dom_selector": "#ded", "tag": "select", "name_attr": "deductible", "id_attr": "ded", "label_text": "Property deductible", "current_value": "1000", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}, {"value": "5000", "label": "$5,000"}], "row_text": "Property deductible-- select --$500$1,000$2,500$5,000", "row_cells": ["Property deductible", "-- select --$500$1,000$2,500$5,000"]}, {"control_id": "eff", "dom_selector": "#eff", "tag": "input", "input_type": "text", "name_attr": "effective_date", "id_attr": "eff", "label_text": "Effective date", "checked": null, "visible": true, "row_text": "Effective date", "row_cells": ["Effective date", ""]}, {"control_id": "action#4", "dom_selector": "#coverage > tbody > tr:nth-of-type(6) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save coverage", "checked": null, "visible": true, "row_text": "Save coverage", "row_cells": ["Save coverage"]}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "name_attr": "action", "id_attr": "rate", "label_text": "Rate this risk", "checked": null, "visible": true}], "text_pairs": [{"label": "Hollowfen Business Mutual", "value": "BOP Rating Worksheet v4.2", "section_text": "", "source": "inline"}], "banners": [], "modals": [], "title": "BOP worksheet"} +FORM_TX_DEMO {"portal": "hollowfen", "step": 8, "why": "before fill selector='#applicant >> internal:label=\"Doing business as (DBA)\"s'>", "frame_url": "http://127.0.0.1:64585/bop/worksheet#applicant", "is_main": true, "controls": [{"control_id": "en", "dom_selector": "#en", "tag": "input", "input_type": "text", "name_attr": "entity_number", "id_attr": "en", "label_text": "State entity number", "current_value": "LLC-2017-902214", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "action", "dom_selector": "#applicant > tbody > tr:nth-of-type(2) > td > button", "tag": "button", "name_attr": "action", "label_text": "Look up entity", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "ln", "dom_selector": "#ln", "tag": "input", "input_type": "text", "name_attr": "legal_name", "id_attr": "ln", "label_text": "Legal name", "current_value": "Morrow Lane Frames LLC", "checked": null, "visible": true, "row_text": "Legal name", "row_cells": ["Legal name", ""]}, {"control_id": "dba", "dom_selector": "#dba", "tag": "input", "input_type": "text", "name_attr": "dba_name", "id_attr": "dba", "label_text": "Doing business as (DBA)", "checked": null, "visible": true, "row_text": "Doing business as (DBA)", "row_cells": ["Doing business as (DBA)", ""]}, {"control_id": "et", "dom_selector": "#et", "tag": "select", "name_attr": "entity_type", "id_attr": "et", "label_text": "Entity type", "current_value": "Limited liability company", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Limited liability company", "label": "Limited liability company"}, {"value": "Corporation", "label": "Corporation"}, {"value": "Sole proprietorship", "label": "Sole proprietorship"}, {"value": "General partnership", "label": "General partnership"}], "row_text": "Entity type-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership", "row_cells": ["Entity type", "-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership"]}, {"control_id": "fein", "dom_selector": "#fein", "tag": "input", "input_type": "text", "name_attr": "fein", "id_attr": "fein", "label_text": "FEIN", "checked": null, "visible": true, "row_text": "FEIN", "row_cells": ["FEIN", ""]}, {"control_id": "ye", "dom_selector": "#ye", "tag": "input", "input_type": "text", "name_attr": "year_established", "id_attr": "ye", "label_text": "Year established", "current_value": "2017", "checked": null, "visible": true, "row_text": "Year established", "row_cells": ["Year established", ""]}, {"control_id": "action#2", "dom_selector": "#applicant > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save applicant", "checked": null, "visible": true, "row_text": "Save applicant", "row_cells": ["Save applicant"]}, {"control_id": "ls", "dom_selector": "#ls", "tag": "input", "input_type": "text", "name_attr": "location_street", "id_attr": "ls", "label_text": "Location street address", "checked": null, "visible": true, "row_text": "Location street address", "row_cells": ["Location street address", ""]}, {"control_id": "class-code", "dom_selector": "#class-code", "tag": "input", "input_type": "text", "name_attr": "class_code", "id_attr": "class-code", "label_text": "Class code", "checked": null, "readonly": true, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "find-class", "dom_selector": "#find-class", "tag": "button", "id_attr": "find-class", "label_text": "Find class...", "checked": null, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "emp", "dom_selector": "#emp", "tag": "input", "input_type": "text", "name_attr": "employees", "id_attr": "emp", "label_text": "Number of employees", "checked": null, "visible": true, "row_text": "Number of employees", "row_cells": ["Number of employees", ""]}, {"control_id": "rev", "dom_selector": "#rev", "tag": "input", "input_type": "text", "name_attr": "annual_revenue", "id_attr": "rev", "label_text": "Annual gross sales ($)", "checked": null, "visible": true, "row_text": "Annual gross sales ($)", "row_cells": ["Annual gross sales ($)", ""]}, {"control_id": "own", "dom_selector": "#own", "tag": "select", "name_attr": "building_owned", "id_attr": "own", "label_text": "Does the insured own the building?", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "row_text": "Does the insured own the building?-- select --YesNo", "row_cells": ["Does the insured own the building?", "-- select --YesNo"]}, {"control_id": "bl", "dom_selector": "#bl", "tag": "input", "input_type": "text", "name_attr": "building_limit", "id_attr": "bl", "label_text": "Building limit ($)", "checked": null, "visible": true, "row_text": "Building limit ($) enter 0 if not owned", "row_cells": ["Building limit ($)", "enter 0 if not owned"]}, {"control_id": "action#3", "dom_selector": "#location > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save location", "checked": null, "visible": true, "row_text": "Save location", "row_cells": ["Save location"]}, {"control_id": "bpp", "dom_selector": "#bpp", "tag": "input", "input_type": "text", "name_attr": "bpp_limit", "id_attr": "bpp", "label_text": "Business personal property limit ($)", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "bpp-open", "dom_selector": "#bpp-open", "tag": "button", "id_attr": "bpp-open", "label_text": "Open BPP worksheet", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "ll", "dom_selector": "#ll", "tag": "select", "name_attr": "liability_limit", "id_attr": "ll", "label_text": "Liability limits", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "$300,000 / $600,000", "label": "$300,000 / $600,000"}, {"value": "$500,000 / $1,000,000", "label": "$500,000 / $1,000,000"}, {"value": "$1,000,000 / $2,000,000", "label": "$1,000,000 / $2,000,000"}], "row_text": "Liability limits-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate", "row_cells": ["Liability limits", "-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate"]}, {"control_id": "ded", "dom_selector": "#ded", "tag": "select", "name_attr": "deductible", "id_attr": "ded", "label_text": "Property deductible", "current_value": "1000", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}, {"value": "5000", "label": "$5,000"}], "row_text": "Property deductible-- select --$500$1,000$2,500$5,000", "row_cells": ["Property deductible", "-- select --$500$1,000$2,500$5,000"]}, {"control_id": "eff", "dom_selector": "#eff", "tag": "input", "input_type": "text", "name_attr": "effective_date", "id_attr": "eff", "label_text": "Effective date", "checked": null, "visible": true, "row_text": "Effective date", "row_cells": ["Effective date", ""]}, {"control_id": "action#4", "dom_selector": "#coverage > tbody > tr:nth-of-type(6) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save coverage", "checked": null, "visible": true, "row_text": "Save coverage", "row_cells": ["Save coverage"]}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "name_attr": "action", "id_attr": "rate", "label_text": "Rate this risk", "checked": null, "visible": true}], "text_pairs": [{"label": "Hollowfen Business Mutual", "value": "BOP Rating Worksheet v4.2", "section_text": "", "source": "inline"}], "banners": [], "modals": [], "title": "BOP worksheet"} +FORM_TX_DEMO {"portal": "hollowfen", "step": 9, "why": "before fill selector='#applicant >> internal:label=\"FEIN\"s'>", "frame_url": "http://127.0.0.1:64585/bop/worksheet#applicant", "is_main": true, "controls": [{"control_id": "en", "dom_selector": "#en", "tag": "input", "input_type": "text", "name_attr": "entity_number", "id_attr": "en", "label_text": "State entity number", "current_value": "LLC-2017-902214", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "action", "dom_selector": "#applicant > tbody > tr:nth-of-type(2) > td > button", "tag": "button", "name_attr": "action", "label_text": "Look up entity", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "ln", "dom_selector": "#ln", "tag": "input", "input_type": "text", "name_attr": "legal_name", "id_attr": "ln", "label_text": "Legal name", "current_value": "Morrow Lane Frames LLC", "checked": null, "visible": true, "row_text": "Legal name", "row_cells": ["Legal name", ""]}, {"control_id": "dba", "dom_selector": "#dba", "tag": "input", "input_type": "text", "name_attr": "dba_name", "id_attr": "dba", "label_text": "Doing business as (DBA)", "current_value": "Morrow Lane Framing", "checked": null, "visible": true, "row_text": "Doing business as (DBA)", "row_cells": ["Doing business as (DBA)", ""]}, {"control_id": "et", "dom_selector": "#et", "tag": "select", "name_attr": "entity_type", "id_attr": "et", "label_text": "Entity type", "current_value": "Limited liability company", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Limited liability company", "label": "Limited liability company"}, {"value": "Corporation", "label": "Corporation"}, {"value": "Sole proprietorship", "label": "Sole proprietorship"}, {"value": "General partnership", "label": "General partnership"}], "row_text": "Entity type-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership", "row_cells": ["Entity type", "-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership"]}, {"control_id": "fein", "dom_selector": "#fein", "tag": "input", "input_type": "text", "name_attr": "fein", "id_attr": "fein", "label_text": "FEIN", "checked": null, "visible": true, "row_text": "FEIN", "row_cells": ["FEIN", ""]}, {"control_id": "ye", "dom_selector": "#ye", "tag": "input", "input_type": "text", "name_attr": "year_established", "id_attr": "ye", "label_text": "Year established", "current_value": "2017", "checked": null, "visible": true, "row_text": "Year established", "row_cells": ["Year established", ""]}, {"control_id": "action#2", "dom_selector": "#applicant > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save applicant", "checked": null, "visible": true, "row_text": "Save applicant", "row_cells": ["Save applicant"]}, {"control_id": "ls", "dom_selector": "#ls", "tag": "input", "input_type": "text", "name_attr": "location_street", "id_attr": "ls", "label_text": "Location street address", "checked": null, "visible": true, "row_text": "Location street address", "row_cells": ["Location street address", ""]}, {"control_id": "class-code", "dom_selector": "#class-code", "tag": "input", "input_type": "text", "name_attr": "class_code", "id_attr": "class-code", "label_text": "Class code", "checked": null, "readonly": true, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "find-class", "dom_selector": "#find-class", "tag": "button", "id_attr": "find-class", "label_text": "Find class...", "checked": null, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "emp", "dom_selector": "#emp", "tag": "input", "input_type": "text", "name_attr": "employees", "id_attr": "emp", "label_text": "Number of employees", "checked": null, "visible": true, "row_text": "Number of employees", "row_cells": ["Number of employees", ""]}, {"control_id": "rev", "dom_selector": "#rev", "tag": "input", "input_type": "text", "name_attr": "annual_revenue", "id_attr": "rev", "label_text": "Annual gross sales ($)", "checked": null, "visible": true, "row_text": "Annual gross sales ($)", "row_cells": ["Annual gross sales ($)", ""]}, {"control_id": "own", "dom_selector": "#own", "tag": "select", "name_attr": "building_owned", "id_attr": "own", "label_text": "Does the insured own the building?", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "row_text": "Does the insured own the building?-- select --YesNo", "row_cells": ["Does the insured own the building?", "-- select --YesNo"]}, {"control_id": "bl", "dom_selector": "#bl", "tag": "input", "input_type": "text", "name_attr": "building_limit", "id_attr": "bl", "label_text": "Building limit ($)", "checked": null, "visible": true, "row_text": "Building limit ($) enter 0 if not owned", "row_cells": ["Building limit ($)", "enter 0 if not owned"]}, {"control_id": "action#3", "dom_selector": "#location > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save location", "checked": null, "visible": true, "row_text": "Save location", "row_cells": ["Save location"]}, {"control_id": "bpp", "dom_selector": "#bpp", "tag": "input", "input_type": "text", "name_attr": "bpp_limit", "id_attr": "bpp", "label_text": "Business personal property limit ($)", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "bpp-open", "dom_selector": "#bpp-open", "tag": "button", "id_attr": "bpp-open", "label_text": "Open BPP worksheet", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "ll", "dom_selector": "#ll", "tag": "select", "name_attr": "liability_limit", "id_attr": "ll", "label_text": "Liability limits", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "$300,000 / $600,000", "label": "$300,000 / $600,000"}, {"value": "$500,000 / $1,000,000", "label": "$500,000 / $1,000,000"}, {"value": "$1,000,000 / $2,000,000", "label": "$1,000,000 / $2,000,000"}], "row_text": "Liability limits-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate", "row_cells": ["Liability limits", "-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate"]}, {"control_id": "ded", "dom_selector": "#ded", "tag": "select", "name_attr": "deductible", "id_attr": "ded", "label_text": "Property deductible", "current_value": "1000", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}, {"value": "5000", "label": "$5,000"}], "row_text": "Property deductible-- select --$500$1,000$2,500$5,000", "row_cells": ["Property deductible", "-- select --$500$1,000$2,500$5,000"]}, {"control_id": "eff", "dom_selector": "#eff", "tag": "input", "input_type": "text", "name_attr": "effective_date", "id_attr": "eff", "label_text": "Effective date", "checked": null, "visible": true, "row_text": "Effective date", "row_cells": ["Effective date", ""]}, {"control_id": "action#4", "dom_selector": "#coverage > tbody > tr:nth-of-type(6) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save coverage", "checked": null, "visible": true, "row_text": "Save coverage", "row_cells": ["Save coverage"]}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "name_attr": "action", "id_attr": "rate", "label_text": "Rate this risk", "checked": null, "visible": true}], "text_pairs": [{"label": "Hollowfen Business Mutual", "value": "BOP Rating Worksheet v4.2", "section_text": "", "source": "inline"}], "banners": [], "modals": [], "title": "BOP worksheet"} +FORM_TX_DEMO {"portal": "hollowfen", "step": 10, "why": "before click selector='#applicant >> internal:role=button[name=\"Save applicant\"i]'>", "frame_url": "http://127.0.0.1:64585/bop/worksheet#applicant", "is_main": true, "controls": [{"control_id": "en", "dom_selector": "#en", "tag": "input", "input_type": "text", "name_attr": "entity_number", "id_attr": "en", "label_text": "State entity number", "current_value": "LLC-2017-902214", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "action", "dom_selector": "#applicant > tbody > tr:nth-of-type(2) > td > button", "tag": "button", "name_attr": "action", "label_text": "Look up entity", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "ln", "dom_selector": "#ln", "tag": "input", "input_type": "text", "name_attr": "legal_name", "id_attr": "ln", "label_text": "Legal name", "current_value": "Morrow Lane Frames LLC", "checked": null, "visible": true, "row_text": "Legal name", "row_cells": ["Legal name", ""]}, {"control_id": "dba", "dom_selector": "#dba", "tag": "input", "input_type": "text", "name_attr": "dba_name", "id_attr": "dba", "label_text": "Doing business as (DBA)", "current_value": "Morrow Lane Framing", "checked": null, "visible": true, "row_text": "Doing business as (DBA)", "row_cells": ["Doing business as (DBA)", ""]}, {"control_id": "et", "dom_selector": "#et", "tag": "select", "name_attr": "entity_type", "id_attr": "et", "label_text": "Entity type", "current_value": "Limited liability company", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Limited liability company", "label": "Limited liability company"}, {"value": "Corporation", "label": "Corporation"}, {"value": "Sole proprietorship", "label": "Sole proprietorship"}, {"value": "General partnership", "label": "General partnership"}], "row_text": "Entity type-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership", "row_cells": ["Entity type", "-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership"]}, {"control_id": "fein", "dom_selector": "#fein", "tag": "input", "input_type": "text", "name_attr": "fein", "id_attr": "fein", "label_text": "FEIN", "current_value": "82-4471036", "checked": null, "visible": true, "row_text": "FEIN", "row_cells": ["FEIN", ""]}, {"control_id": "ye", "dom_selector": "#ye", "tag": "input", "input_type": "text", "name_attr": "year_established", "id_attr": "ye", "label_text": "Year established", "current_value": "2017", "checked": null, "visible": true, "row_text": "Year established", "row_cells": ["Year established", ""]}, {"control_id": "action#2", "dom_selector": "#applicant > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save applicant", "checked": null, "visible": true, "row_text": "Save applicant", "row_cells": ["Save applicant"]}, {"control_id": "ls", "dom_selector": "#ls", "tag": "input", "input_type": "text", "name_attr": "location_street", "id_attr": "ls", "label_text": "Location street address", "checked": null, "visible": true, "row_text": "Location street address", "row_cells": ["Location street address", ""]}, {"control_id": "class-code", "dom_selector": "#class-code", "tag": "input", "input_type": "text", "name_attr": "class_code", "id_attr": "class-code", "label_text": "Class code", "checked": null, "readonly": true, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "find-class", "dom_selector": "#find-class", "tag": "button", "id_attr": "find-class", "label_text": "Find class...", "checked": null, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "emp", "dom_selector": "#emp", "tag": "input", "input_type": "text", "name_attr": "employees", "id_attr": "emp", "label_text": "Number of employees", "checked": null, "visible": true, "row_text": "Number of employees", "row_cells": ["Number of employees", ""]}, {"control_id": "rev", "dom_selector": "#rev", "tag": "input", "input_type": "text", "name_attr": "annual_revenue", "id_attr": "rev", "label_text": "Annual gross sales ($)", "checked": null, "visible": true, "row_text": "Annual gross sales ($)", "row_cells": ["Annual gross sales ($)", ""]}, {"control_id": "own", "dom_selector": "#own", "tag": "select", "name_attr": "building_owned", "id_attr": "own", "label_text": "Does the insured own the building?", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "row_text": "Does the insured own the building?-- select --YesNo", "row_cells": ["Does the insured own the building?", "-- select --YesNo"]}, {"control_id": "bl", "dom_selector": "#bl", "tag": "input", "input_type": "text", "name_attr": "building_limit", "id_attr": "bl", "label_text": "Building limit ($)", "checked": null, "visible": true, "row_text": "Building limit ($) enter 0 if not owned", "row_cells": ["Building limit ($)", "enter 0 if not owned"]}, {"control_id": "action#3", "dom_selector": "#location > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save location", "checked": null, "visible": true, "row_text": "Save location", "row_cells": ["Save location"]}, {"control_id": "bpp", "dom_selector": "#bpp", "tag": "input", "input_type": "text", "name_attr": "bpp_limit", "id_attr": "bpp", "label_text": "Business personal property limit ($)", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "bpp-open", "dom_selector": "#bpp-open", "tag": "button", "id_attr": "bpp-open", "label_text": "Open BPP worksheet", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "ll", "dom_selector": "#ll", "tag": "select", "name_attr": "liability_limit", "id_attr": "ll", "label_text": "Liability limits", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "$300,000 / $600,000", "label": "$300,000 / $600,000"}, {"value": "$500,000 / $1,000,000", "label": "$500,000 / $1,000,000"}, {"value": "$1,000,000 / $2,000,000", "label": "$1,000,000 / $2,000,000"}], "row_text": "Liability limits-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate", "row_cells": ["Liability limits", "-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate"]}, {"control_id": "ded", "dom_selector": "#ded", "tag": "select", "name_attr": "deductible", "id_attr": "ded", "label_text": "Property deductible", "current_value": "1000", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}, {"value": "5000", "label": "$5,000"}], "row_text": "Property deductible-- select --$500$1,000$2,500$5,000", "row_cells": ["Property deductible", "-- select --$500$1,000$2,500$5,000"]}, {"control_id": "eff", "dom_selector": "#eff", "tag": "input", "input_type": "text", "name_attr": "effective_date", "id_attr": "eff", "label_text": "Effective date", "checked": null, "visible": true, "row_text": "Effective date", "row_cells": ["Effective date", ""]}, {"control_id": "action#4", "dom_selector": "#coverage > tbody > tr:nth-of-type(6) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save coverage", "checked": null, "visible": true, "row_text": "Save coverage", "row_cells": ["Save coverage"]}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "name_attr": "action", "id_attr": "rate", "label_text": "Rate this risk", "checked": null, "visible": true}], "text_pairs": [{"label": "Hollowfen Business Mutual", "value": "BOP Rating Worksheet v4.2", "section_text": "", "source": "inline"}], "banners": [], "modals": [], "title": "BOP worksheet"} +FORM_TX_DEMO {"portal": "hollowfen", "step": 11, "why": "before fill selector='#location >> internal:label=\"Location street address\"s'>", "frame_url": "http://127.0.0.1:64585/bop/worksheet?saved=applicant#applicant", "is_main": true, "controls": [{"control_id": "en", "dom_selector": "#en", "tag": "input", "input_type": "text", "name_attr": "entity_number", "id_attr": "en", "label_text": "State entity number", "current_value": "LLC-2017-902214", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "action", "dom_selector": "#applicant > tbody > tr:nth-of-type(2) > td > button", "tag": "button", "name_attr": "action", "label_text": "Look up entity", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "ln", "dom_selector": "#ln", "tag": "input", "input_type": "text", "name_attr": "legal_name", "id_attr": "ln", "label_text": "Legal name", "current_value": "Morrow Lane Frames LLC", "checked": null, "visible": true, "row_text": "Legal name", "row_cells": ["Legal name", ""]}, {"control_id": "dba", "dom_selector": "#dba", "tag": "input", "input_type": "text", "name_attr": "dba_name", "id_attr": "dba", "label_text": "Doing business as (DBA)", "current_value": "Morrow Lane Framing", "checked": null, "visible": true, "row_text": "Doing business as (DBA)", "row_cells": ["Doing business as (DBA)", ""]}, {"control_id": "et", "dom_selector": "#et", "tag": "select", "name_attr": "entity_type", "id_attr": "et", "label_text": "Entity type", "current_value": "Limited liability company", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Limited liability company", "label": "Limited liability company"}, {"value": "Corporation", "label": "Corporation"}, {"value": "Sole proprietorship", "label": "Sole proprietorship"}, {"value": "General partnership", "label": "General partnership"}], "row_text": "Entity type-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership", "row_cells": ["Entity type", "-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership"]}, {"control_id": "fein", "dom_selector": "#fein", "tag": "input", "input_type": "text", "name_attr": "fein", "id_attr": "fein", "label_text": "FEIN", "current_value": "82-4471036", "checked": null, "visible": true, "row_text": "FEIN", "row_cells": ["FEIN", ""]}, {"control_id": "ye", "dom_selector": "#ye", "tag": "input", "input_type": "text", "name_attr": "year_established", "id_attr": "ye", "label_text": "Year established", "current_value": "2017", "checked": null, "visible": true, "row_text": "Year established", "row_cells": ["Year established", ""]}, {"control_id": "action#2", "dom_selector": "#applicant > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save applicant", "checked": null, "visible": true, "row_text": "Save applicant", "row_cells": ["Save applicant"]}, {"control_id": "ls", "dom_selector": "#ls", "tag": "input", "input_type": "text", "name_attr": "location_street", "id_attr": "ls", "label_text": "Location street address", "checked": null, "visible": true, "row_text": "Location street address", "row_cells": ["Location street address", ""]}, {"control_id": "class-code", "dom_selector": "#class-code", "tag": "input", "input_type": "text", "name_attr": "class_code", "id_attr": "class-code", "label_text": "Class code", "checked": null, "readonly": true, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "find-class", "dom_selector": "#find-class", "tag": "button", "id_attr": "find-class", "label_text": "Find class...", "checked": null, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "emp", "dom_selector": "#emp", "tag": "input", "input_type": "text", "name_attr": "employees", "id_attr": "emp", "label_text": "Number of employees", "checked": null, "visible": true, "row_text": "Number of employees", "row_cells": ["Number of employees", ""]}, {"control_id": "rev", "dom_selector": "#rev", "tag": "input", "input_type": "text", "name_attr": "annual_revenue", "id_attr": "rev", "label_text": "Annual gross sales ($)", "checked": null, "visible": true, "row_text": "Annual gross sales ($)", "row_cells": ["Annual gross sales ($)", ""]}, {"control_id": "own", "dom_selector": "#own", "tag": "select", "name_attr": "building_owned", "id_attr": "own", "label_text": "Does the insured own the building?", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "row_text": "Does the insured own the building?-- select --YesNo", "row_cells": ["Does the insured own the building?", "-- select --YesNo"]}, {"control_id": "bl", "dom_selector": "#bl", "tag": "input", "input_type": "text", "name_attr": "building_limit", "id_attr": "bl", "label_text": "Building limit ($)", "checked": null, "visible": true, "row_text": "Building limit ($) enter 0 if not owned", "row_cells": ["Building limit ($)", "enter 0 if not owned"]}, {"control_id": "action#3", "dom_selector": "#location > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save location", "checked": null, "visible": true, "row_text": "Save location", "row_cells": ["Save location"]}, {"control_id": "bpp", "dom_selector": "#bpp", "tag": "input", "input_type": "text", "name_attr": "bpp_limit", "id_attr": "bpp", "label_text": "Business personal property limit ($)", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "bpp-open", "dom_selector": "#bpp-open", "tag": "button", "id_attr": "bpp-open", "label_text": "Open BPP worksheet", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "ll", "dom_selector": "#ll", "tag": "select", "name_attr": "liability_limit", "id_attr": "ll", "label_text": "Liability limits", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "$300,000 / $600,000", "label": "$300,000 / $600,000"}, {"value": "$500,000 / $1,000,000", "label": "$500,000 / $1,000,000"}, {"value": "$1,000,000 / $2,000,000", "label": "$1,000,000 / $2,000,000"}], "row_text": "Liability limits-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate", "row_cells": ["Liability limits", "-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate"]}, {"control_id": "ded", "dom_selector": "#ded", "tag": "select", "name_attr": "deductible", "id_attr": "ded", "label_text": "Property deductible", "current_value": "1000", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}, {"value": "5000", "label": "$5,000"}], "row_text": "Property deductible-- select --$500$1,000$2,500$5,000", "row_cells": ["Property deductible", "-- select --$500$1,000$2,500$5,000"]}, {"control_id": "eff", "dom_selector": "#eff", "tag": "input", "input_type": "text", "name_attr": "effective_date", "id_attr": "eff", "label_text": "Effective date", "checked": null, "visible": true, "row_text": "Effective date", "row_cells": ["Effective date", ""]}, {"control_id": "action#4", "dom_selector": "#coverage > tbody > tr:nth-of-type(6) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save coverage", "checked": null, "visible": true, "row_text": "Save coverage", "row_cells": ["Save coverage"]}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "name_attr": "action", "id_attr": "rate", "label_text": "Rate this risk", "checked": null, "visible": true}], "text_pairs": [{"label": "Hollowfen Business Mutual", "value": "BOP Rating Worksheet v4.2", "section_text": "", "source": "inline"}], "banners": [], "modals": [], "title": "BOP worksheet"} +FORM_TX_DEMO {"portal": "hollowfen", "step": 12, "why": "before click selector='internal:role=button[name=\"Find class...\"i]'>", "frame_url": "http://127.0.0.1:64585/bop/worksheet?saved=applicant#applicant", "is_main": true, "controls": [{"control_id": "en", "dom_selector": "#en", "tag": "input", "input_type": "text", "name_attr": "entity_number", "id_attr": "en", "label_text": "State entity number", "current_value": "LLC-2017-902214", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "action", "dom_selector": "#applicant > tbody > tr:nth-of-type(2) > td > button", "tag": "button", "name_attr": "action", "label_text": "Look up entity", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "ln", "dom_selector": "#ln", "tag": "input", "input_type": "text", "name_attr": "legal_name", "id_attr": "ln", "label_text": "Legal name", "current_value": "Morrow Lane Frames LLC", "checked": null, "visible": true, "row_text": "Legal name", "row_cells": ["Legal name", ""]}, {"control_id": "dba", "dom_selector": "#dba", "tag": "input", "input_type": "text", "name_attr": "dba_name", "id_attr": "dba", "label_text": "Doing business as (DBA)", "current_value": "Morrow Lane Framing", "checked": null, "visible": true, "row_text": "Doing business as (DBA)", "row_cells": ["Doing business as (DBA)", ""]}, {"control_id": "et", "dom_selector": "#et", "tag": "select", "name_attr": "entity_type", "id_attr": "et", "label_text": "Entity type", "current_value": "Limited liability company", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Limited liability company", "label": "Limited liability company"}, {"value": "Corporation", "label": "Corporation"}, {"value": "Sole proprietorship", "label": "Sole proprietorship"}, {"value": "General partnership", "label": "General partnership"}], "row_text": "Entity type-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership", "row_cells": ["Entity type", "-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership"]}, {"control_id": "fein", "dom_selector": "#fein", "tag": "input", "input_type": "text", "name_attr": "fein", "id_attr": "fein", "label_text": "FEIN", "current_value": "82-4471036", "checked": null, "visible": true, "row_text": "FEIN", "row_cells": ["FEIN", ""]}, {"control_id": "ye", "dom_selector": "#ye", "tag": "input", "input_type": "text", "name_attr": "year_established", "id_attr": "ye", "label_text": "Year established", "current_value": "2017", "checked": null, "visible": true, "row_text": "Year established", "row_cells": ["Year established", ""]}, {"control_id": "action#2", "dom_selector": "#applicant > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save applicant", "checked": null, "visible": true, "row_text": "Save applicant", "row_cells": ["Save applicant"]}, {"control_id": "ls", "dom_selector": "#ls", "tag": "input", "input_type": "text", "name_attr": "location_street", "id_attr": "ls", "label_text": "Location street address", "current_value": "56 Morrow Lane", "checked": null, "visible": true, "row_text": "Location street address", "row_cells": ["Location street address", ""]}, {"control_id": "class-code", "dom_selector": "#class-code", "tag": "input", "input_type": "text", "name_attr": "class_code", "id_attr": "class-code", "label_text": "Class code", "checked": null, "readonly": true, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "find-class", "dom_selector": "#find-class", "tag": "button", "id_attr": "find-class", "label_text": "Find class...", "checked": null, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "emp", "dom_selector": "#emp", "tag": "input", "input_type": "text", "name_attr": "employees", "id_attr": "emp", "label_text": "Number of employees", "checked": null, "visible": true, "row_text": "Number of employees", "row_cells": ["Number of employees", ""]}, {"control_id": "rev", "dom_selector": "#rev", "tag": "input", "input_type": "text", "name_attr": "annual_revenue", "id_attr": "rev", "label_text": "Annual gross sales ($)", "checked": null, "visible": true, "row_text": "Annual gross sales ($)", "row_cells": ["Annual gross sales ($)", ""]}, {"control_id": "own", "dom_selector": "#own", "tag": "select", "name_attr": "building_owned", "id_attr": "own", "label_text": "Does the insured own the building?", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "row_text": "Does the insured own the building?-- select --YesNo", "row_cells": ["Does the insured own the building?", "-- select --YesNo"]}, {"control_id": "bl", "dom_selector": "#bl", "tag": "input", "input_type": "text", "name_attr": "building_limit", "id_attr": "bl", "label_text": "Building limit ($)", "checked": null, "visible": true, "row_text": "Building limit ($) enter 0 if not owned", "row_cells": ["Building limit ($)", "enter 0 if not owned"]}, {"control_id": "action#3", "dom_selector": "#location > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save location", "checked": null, "visible": true, "row_text": "Save location", "row_cells": ["Save location"]}, {"control_id": "bpp", "dom_selector": "#bpp", "tag": "input", "input_type": "text", "name_attr": "bpp_limit", "id_attr": "bpp", "label_text": "Business personal property limit ($)", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "bpp-open", "dom_selector": "#bpp-open", "tag": "button", "id_attr": "bpp-open", "label_text": "Open BPP worksheet", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "ll", "dom_selector": "#ll", "tag": "select", "name_attr": "liability_limit", "id_attr": "ll", "label_text": "Liability limits", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "$300,000 / $600,000", "label": "$300,000 / $600,000"}, {"value": "$500,000 / $1,000,000", "label": "$500,000 / $1,000,000"}, {"value": "$1,000,000 / $2,000,000", "label": "$1,000,000 / $2,000,000"}], "row_text": "Liability limits-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate", "row_cells": ["Liability limits", "-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate"]}, {"control_id": "ded", "dom_selector": "#ded", "tag": "select", "name_attr": "deductible", "id_attr": "ded", "label_text": "Property deductible", "current_value": "1000", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}, {"value": "5000", "label": "$5,000"}], "row_text": "Property deductible-- select --$500$1,000$2,500$5,000", "row_cells": ["Property deductible", "-- select --$500$1,000$2,500$5,000"]}, {"control_id": "eff", "dom_selector": "#eff", "tag": "input", "input_type": "text", "name_attr": "effective_date", "id_attr": "eff", "label_text": "Effective date", "checked": null, "visible": true, "row_text": "Effective date", "row_cells": ["Effective date", ""]}, {"control_id": "action#4", "dom_selector": "#coverage > tbody > tr:nth-of-type(6) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save coverage", "checked": null, "visible": true, "row_text": "Save coverage", "row_cells": ["Save coverage"]}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "name_attr": "action", "id_attr": "rate", "label_text": "Rate this risk", "checked": null, "visible": true}], "text_pairs": [{"label": "Hollowfen Business Mutual", "value": "BOP Rating Worksheet v4.2", "section_text": "", "source": "inline"}], "banners": [], "modals": [], "title": "BOP worksheet"} +FORM_TX_DEMO {"portal": "hollowfen", "step": 13, "why": "before fill selector='internal:label=\"Search classes\"s'>", "frame_url": "http://127.0.0.1:64585/bop/classfinder", "is_main": true, "controls": [{"control_id": "q", "dom_selector": "#q", "tag": "input", "input_type": "text", "name_attr": "q", "id_attr": "q", "label_text": "Search classes", "section_text": "Class finder", "checked": null, "visible": true}, {"control_id": "ctrl_1", "dom_selector": "body > div:nth-of-type(2) > form > button", "tag": "button", "label_text": "Search", "section_text": "Class finder", "checked": null, "visible": true}], "text_pairs": [{"label": "Hollowfen Business Mutual", "value": "BOP Rating Worksheet v4.2", "section_text": "", "source": "inline"}], "banners": [], "modals": [], "title": "Class finder"} +FORM_TX_DEMO {"portal": "hollowfen", "step": 14, "why": "before click selector='internal:role=button[name=\"Search\"i]'>", "frame_url": "http://127.0.0.1:64585/bop/classfinder", "is_main": true, "controls": [{"control_id": "q", "dom_selector": "#q", "tag": "input", "input_type": "text", "name_attr": "q", "id_attr": "q", "label_text": "Search classes", "section_text": "Class finder", "current_value": "framing", "checked": null, "visible": true}, {"control_id": "ctrl_1", "dom_selector": "body > div:nth-of-type(2) > form > button", "tag": "button", "label_text": "Search", "section_text": "Class finder", "checked": null, "visible": true}], "text_pairs": [{"label": "Hollowfen Business Mutual", "value": "BOP Rating Worksheet v4.2", "section_text": "", "source": "inline"}], "banners": [], "modals": [], "title": "Class finder"} +FORM_TX_DEMO {"portal": "hollowfen", "step": 15, "why": "before click selector='[data-pick] >> nth=0'>", "frame_url": "http://127.0.0.1:64585/bop/classfinder?q=framing", "is_main": true, "controls": [{"control_id": "q", "dom_selector": "#q", "tag": "input", "input_type": "text", "name_attr": "q", "id_attr": "q", "label_text": "Search classes", "section_text": "Class finder", "current_value": "framing", "checked": null, "visible": true}, {"control_id": "ctrl_1", "dom_selector": "body > div:nth-of-type(2) > form > button", "tag": "button", "label_text": "Search", "section_text": "Class finder", "checked": null, "visible": true}, {"control_id": "ctrl_2", "dom_selector": "#results > tbody > tr:nth-of-type(2) > td:nth-of-type(2) > button", "tag": "button", "label_text": "Select", "section_text": "Class finder", "checked": null, "visible": true, "row_text": "21890 Picture framing shopSelect", "row_cells": ["21890 Picture framing shop", "Select"]}], "text_pairs": [{"label": "Class", "value": "", "section_text": "Class finder", "source": "table_row"}, {"label": "Hollowfen Business Mutual", "value": "BOP Rating Worksheet v4.2", "section_text": "", "source": "inline"}], "banners": [], "modals": [], "title": "Class finder"} +FORM_TX_DEMO {"portal": "hollowfen", "step": 16, "why": "before fill selector='#location >> internal:label=\"Number of employees\"s'>", "frame_url": "http://127.0.0.1:64585/bop/worksheet?saved=applicant#applicant", "is_main": true, "controls": [{"control_id": "en", "dom_selector": "#en", "tag": "input", "input_type": "text", "name_attr": "entity_number", "id_attr": "en", "label_text": "State entity number", "current_value": "LLC-2017-902214", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "action", "dom_selector": "#applicant > tbody > tr:nth-of-type(2) > td > button", "tag": "button", "name_attr": "action", "label_text": "Look up entity", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "ln", "dom_selector": "#ln", "tag": "input", "input_type": "text", "name_attr": "legal_name", "id_attr": "ln", "label_text": "Legal name", "current_value": "Morrow Lane Frames LLC", "checked": null, "visible": true, "row_text": "Legal name", "row_cells": ["Legal name", ""]}, {"control_id": "dba", "dom_selector": "#dba", "tag": "input", "input_type": "text", "name_attr": "dba_name", "id_attr": "dba", "label_text": "Doing business as (DBA)", "current_value": "Morrow Lane Framing", "checked": null, "visible": true, "row_text": "Doing business as (DBA)", "row_cells": ["Doing business as (DBA)", ""]}, {"control_id": "et", "dom_selector": "#et", "tag": "select", "name_attr": "entity_type", "id_attr": "et", "label_text": "Entity type", "current_value": "Limited liability company", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Limited liability company", "label": "Limited liability company"}, {"value": "Corporation", "label": "Corporation"}, {"value": "Sole proprietorship", "label": "Sole proprietorship"}, {"value": "General partnership", "label": "General partnership"}], "row_text": "Entity type-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership", "row_cells": ["Entity type", "-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership"]}, {"control_id": "fein", "dom_selector": "#fein", "tag": "input", "input_type": "text", "name_attr": "fein", "id_attr": "fein", "label_text": "FEIN", "current_value": "82-4471036", "checked": null, "visible": true, "row_text": "FEIN", "row_cells": ["FEIN", ""]}, {"control_id": "ye", "dom_selector": "#ye", "tag": "input", "input_type": "text", "name_attr": "year_established", "id_attr": "ye", "label_text": "Year established", "current_value": "2017", "checked": null, "visible": true, "row_text": "Year established", "row_cells": ["Year established", ""]}, {"control_id": "action#2", "dom_selector": "#applicant > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save applicant", "checked": null, "visible": true, "row_text": "Save applicant", "row_cells": ["Save applicant"]}, {"control_id": "ls", "dom_selector": "#ls", "tag": "input", "input_type": "text", "name_attr": "location_street", "id_attr": "ls", "label_text": "Location street address", "current_value": "56 Morrow Lane", "checked": null, "visible": true, "row_text": "Location street address", "row_cells": ["Location street address", ""]}, {"control_id": "class-code", "dom_selector": "#class-code", "tag": "input", "input_type": "text", "name_attr": "class_code", "id_attr": "class-code", "label_text": "Class code", "current_value": "21890 Picture framing shop", "checked": null, "readonly": true, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "find-class", "dom_selector": "#find-class", "tag": "button", "id_attr": "find-class", "label_text": "Find class...", "checked": null, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "emp", "dom_selector": "#emp", "tag": "input", "input_type": "text", "name_attr": "employees", "id_attr": "emp", "label_text": "Number of employees", "checked": null, "visible": true, "row_text": "Number of employees", "row_cells": ["Number of employees", ""]}, {"control_id": "rev", "dom_selector": "#rev", "tag": "input", "input_type": "text", "name_attr": "annual_revenue", "id_attr": "rev", "label_text": "Annual gross sales ($)", "checked": null, "visible": true, "row_text": "Annual gross sales ($)", "row_cells": ["Annual gross sales ($)", ""]}, {"control_id": "own", "dom_selector": "#own", "tag": "select", "name_attr": "building_owned", "id_attr": "own", "label_text": "Does the insured own the building?", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "row_text": "Does the insured own the building?-- select --YesNo", "row_cells": ["Does the insured own the building?", "-- select --YesNo"]}, {"control_id": "bl", "dom_selector": "#bl", "tag": "input", "input_type": "text", "name_attr": "building_limit", "id_attr": "bl", "label_text": "Building limit ($)", "checked": null, "visible": true, "row_text": "Building limit ($) enter 0 if not owned", "row_cells": ["Building limit ($)", "enter 0 if not owned"]}, {"control_id": "action#3", "dom_selector": "#location > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save location", "checked": null, "visible": true, "row_text": "Save location", "row_cells": ["Save location"]}, {"control_id": "bpp", "dom_selector": "#bpp", "tag": "input", "input_type": "text", "name_attr": "bpp_limit", "id_attr": "bpp", "label_text": "Business personal property limit ($)", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "bpp-open", "dom_selector": "#bpp-open", "tag": "button", "id_attr": "bpp-open", "label_text": "Open BPP worksheet", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "ll", "dom_selector": "#ll", "tag": "select", "name_attr": "liability_limit", "id_attr": "ll", "label_text": "Liability limits", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "$300,000 / $600,000", "label": "$300,000 / $600,000"}, {"value": "$500,000 / $1,000,000", "label": "$500,000 / $1,000,000"}, {"value": "$1,000,000 / $2,000,000", "label": "$1,000,000 / $2,000,000"}], "row_text": "Liability limits-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate", "row_cells": ["Liability limits", "-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate"]}, {"control_id": "ded", "dom_selector": "#ded", "tag": "select", "name_attr": "deductible", "id_attr": "ded", "label_text": "Property deductible", "current_value": "1000", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}, {"value": "5000", "label": "$5,000"}], "row_text": "Property deductible-- select --$500$1,000$2,500$5,000", "row_cells": ["Property deductible", "-- select --$500$1,000$2,500$5,000"]}, {"control_id": "eff", "dom_selector": "#eff", "tag": "input", "input_type": "text", "name_attr": "effective_date", "id_attr": "eff", "label_text": "Effective date", "checked": null, "visible": true, "row_text": "Effective date", "row_cells": ["Effective date", ""]}, {"control_id": "action#4", "dom_selector": "#coverage > tbody > tr:nth-of-type(6) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save coverage", "checked": null, "visible": true, "row_text": "Save coverage", "row_cells": ["Save coverage"]}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "name_attr": "action", "id_attr": "rate", "label_text": "Rate this risk", "checked": null, "visible": true}], "text_pairs": [{"label": "Hollowfen Business Mutual", "value": "BOP Rating Worksheet v4.2", "section_text": "", "source": "inline"}], "banners": [], "modals": [], "title": "BOP worksheet"} +FORM_TX_DEMO {"portal": "hollowfen", "step": 17, "why": "before fill selector='#location >> internal:label=\"Annual gross sales ($)\"s'>", "frame_url": "http://127.0.0.1:64585/bop/worksheet?saved=applicant#applicant", "is_main": true, "controls": [{"control_id": "en", "dom_selector": "#en", "tag": "input", "input_type": "text", "name_attr": "entity_number", "id_attr": "en", "label_text": "State entity number", "current_value": "LLC-2017-902214", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "action", "dom_selector": "#applicant > tbody > tr:nth-of-type(2) > td > button", "tag": "button", "name_attr": "action", "label_text": "Look up entity", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "ln", "dom_selector": "#ln", "tag": "input", "input_type": "text", "name_attr": "legal_name", "id_attr": "ln", "label_text": "Legal name", "current_value": "Morrow Lane Frames LLC", "checked": null, "visible": true, "row_text": "Legal name", "row_cells": ["Legal name", ""]}, {"control_id": "dba", "dom_selector": "#dba", "tag": "input", "input_type": "text", "name_attr": "dba_name", "id_attr": "dba", "label_text": "Doing business as (DBA)", "current_value": "Morrow Lane Framing", "checked": null, "visible": true, "row_text": "Doing business as (DBA)", "row_cells": ["Doing business as (DBA)", ""]}, {"control_id": "et", "dom_selector": "#et", "tag": "select", "name_attr": "entity_type", "id_attr": "et", "label_text": "Entity type", "current_value": "Limited liability company", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Limited liability company", "label": "Limited liability company"}, {"value": "Corporation", "label": "Corporation"}, {"value": "Sole proprietorship", "label": "Sole proprietorship"}, {"value": "General partnership", "label": "General partnership"}], "row_text": "Entity type-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership", "row_cells": ["Entity type", "-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership"]}, {"control_id": "fein", "dom_selector": "#fein", "tag": "input", "input_type": "text", "name_attr": "fein", "id_attr": "fein", "label_text": "FEIN", "current_value": "82-4471036", "checked": null, "visible": true, "row_text": "FEIN", "row_cells": ["FEIN", ""]}, {"control_id": "ye", "dom_selector": "#ye", "tag": "input", "input_type": "text", "name_attr": "year_established", "id_attr": "ye", "label_text": "Year established", "current_value": "2017", "checked": null, "visible": true, "row_text": "Year established", "row_cells": ["Year established", ""]}, {"control_id": "action#2", "dom_selector": "#applicant > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save applicant", "checked": null, "visible": true, "row_text": "Save applicant", "row_cells": ["Save applicant"]}, {"control_id": "ls", "dom_selector": "#ls", "tag": "input", "input_type": "text", "name_attr": "location_street", "id_attr": "ls", "label_text": "Location street address", "current_value": "56 Morrow Lane", "checked": null, "visible": true, "row_text": "Location street address", "row_cells": ["Location street address", ""]}, {"control_id": "class-code", "dom_selector": "#class-code", "tag": "input", "input_type": "text", "name_attr": "class_code", "id_attr": "class-code", "label_text": "Class code", "current_value": "21890 Picture framing shop", "checked": null, "readonly": true, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "find-class", "dom_selector": "#find-class", "tag": "button", "id_attr": "find-class", "label_text": "Find class...", "checked": null, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "emp", "dom_selector": "#emp", "tag": "input", "input_type": "text", "name_attr": "employees", "id_attr": "emp", "label_text": "Number of employees", "current_value": "3", "checked": null, "visible": true, "row_text": "Number of employees", "row_cells": ["Number of employees", ""]}, {"control_id": "rev", "dom_selector": "#rev", "tag": "input", "input_type": "text", "name_attr": "annual_revenue", "id_attr": "rev", "label_text": "Annual gross sales ($)", "checked": null, "visible": true, "row_text": "Annual gross sales ($)", "row_cells": ["Annual gross sales ($)", ""]}, {"control_id": "own", "dom_selector": "#own", "tag": "select", "name_attr": "building_owned", "id_attr": "own", "label_text": "Does the insured own the building?", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "row_text": "Does the insured own the building?-- select --YesNo", "row_cells": ["Does the insured own the building?", "-- select --YesNo"]}, {"control_id": "bl", "dom_selector": "#bl", "tag": "input", "input_type": "text", "name_attr": "building_limit", "id_attr": "bl", "label_text": "Building limit ($)", "checked": null, "visible": true, "row_text": "Building limit ($) enter 0 if not owned", "row_cells": ["Building limit ($)", "enter 0 if not owned"]}, {"control_id": "action#3", "dom_selector": "#location > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save location", "checked": null, "visible": true, "row_text": "Save location", "row_cells": ["Save location"]}, {"control_id": "bpp", "dom_selector": "#bpp", "tag": "input", "input_type": "text", "name_attr": "bpp_limit", "id_attr": "bpp", "label_text": "Business personal property limit ($)", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "bpp-open", "dom_selector": "#bpp-open", "tag": "button", "id_attr": "bpp-open", "label_text": "Open BPP worksheet", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "ll", "dom_selector": "#ll", "tag": "select", "name_attr": "liability_limit", "id_attr": "ll", "label_text": "Liability limits", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "$300,000 / $600,000", "label": "$300,000 / $600,000"}, {"value": "$500,000 / $1,000,000", "label": "$500,000 / $1,000,000"}, {"value": "$1,000,000 / $2,000,000", "label": "$1,000,000 / $2,000,000"}], "row_text": "Liability limits-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate", "row_cells": ["Liability limits", "-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate"]}, {"control_id": "ded", "dom_selector": "#ded", "tag": "select", "name_attr": "deductible", "id_attr": "ded", "label_text": "Property deductible", "current_value": "1000", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}, {"value": "5000", "label": "$5,000"}], "row_text": "Property deductible-- select --$500$1,000$2,500$5,000", "row_cells": ["Property deductible", "-- select --$500$1,000$2,500$5,000"]}, {"control_id": "eff", "dom_selector": "#eff", "tag": "input", "input_type": "text", "name_attr": "effective_date", "id_attr": "eff", "label_text": "Effective date", "checked": null, "visible": true, "row_text": "Effective date", "row_cells": ["Effective date", ""]}, {"control_id": "action#4", "dom_selector": "#coverage > tbody > tr:nth-of-type(6) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save coverage", "checked": null, "visible": true, "row_text": "Save coverage", "row_cells": ["Save coverage"]}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "name_attr": "action", "id_attr": "rate", "label_text": "Rate this risk", "checked": null, "visible": true}], "text_pairs": [{"label": "Hollowfen Business Mutual", "value": "BOP Rating Worksheet v4.2", "section_text": "", "source": "inline"}], "banners": [], "modals": [], "title": "BOP worksheet"} +FORM_TX_DEMO {"portal": "hollowfen", "step": 18, "why": "before select_option selector='#location >> internal:label=\"Does the insured own the building?\"s'>", "frame_url": "http://127.0.0.1:64585/bop/worksheet?saved=applicant#applicant", "is_main": true, "controls": [{"control_id": "en", "dom_selector": "#en", "tag": "input", "input_type": "text", "name_attr": "entity_number", "id_attr": "en", "label_text": "State entity number", "current_value": "LLC-2017-902214", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "action", "dom_selector": "#applicant > tbody > tr:nth-of-type(2) > td > button", "tag": "button", "name_attr": "action", "label_text": "Look up entity", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "ln", "dom_selector": "#ln", "tag": "input", "input_type": "text", "name_attr": "legal_name", "id_attr": "ln", "label_text": "Legal name", "current_value": "Morrow Lane Frames LLC", "checked": null, "visible": true, "row_text": "Legal name", "row_cells": ["Legal name", ""]}, {"control_id": "dba", "dom_selector": "#dba", "tag": "input", "input_type": "text", "name_attr": "dba_name", "id_attr": "dba", "label_text": "Doing business as (DBA)", "current_value": "Morrow Lane Framing", "checked": null, "visible": true, "row_text": "Doing business as (DBA)", "row_cells": ["Doing business as (DBA)", ""]}, {"control_id": "et", "dom_selector": "#et", "tag": "select", "name_attr": "entity_type", "id_attr": "et", "label_text": "Entity type", "current_value": "Limited liability company", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Limited liability company", "label": "Limited liability company"}, {"value": "Corporation", "label": "Corporation"}, {"value": "Sole proprietorship", "label": "Sole proprietorship"}, {"value": "General partnership", "label": "General partnership"}], "row_text": "Entity type-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership", "row_cells": ["Entity type", "-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership"]}, {"control_id": "fein", "dom_selector": "#fein", "tag": "input", "input_type": "text", "name_attr": "fein", "id_attr": "fein", "label_text": "FEIN", "current_value": "82-4471036", "checked": null, "visible": true, "row_text": "FEIN", "row_cells": ["FEIN", ""]}, {"control_id": "ye", "dom_selector": "#ye", "tag": "input", "input_type": "text", "name_attr": "year_established", "id_attr": "ye", "label_text": "Year established", "current_value": "2017", "checked": null, "visible": true, "row_text": "Year established", "row_cells": ["Year established", ""]}, {"control_id": "action#2", "dom_selector": "#applicant > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save applicant", "checked": null, "visible": true, "row_text": "Save applicant", "row_cells": ["Save applicant"]}, {"control_id": "ls", "dom_selector": "#ls", "tag": "input", "input_type": "text", "name_attr": "location_street", "id_attr": "ls", "label_text": "Location street address", "current_value": "56 Morrow Lane", "checked": null, "visible": true, "row_text": "Location street address", "row_cells": ["Location street address", ""]}, {"control_id": "class-code", "dom_selector": "#class-code", "tag": "input", "input_type": "text", "name_attr": "class_code", "id_attr": "class-code", "label_text": "Class code", "current_value": "21890 Picture framing shop", "checked": null, "readonly": true, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "find-class", "dom_selector": "#find-class", "tag": "button", "id_attr": "find-class", "label_text": "Find class...", "checked": null, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "emp", "dom_selector": "#emp", "tag": "input", "input_type": "text", "name_attr": "employees", "id_attr": "emp", "label_text": "Number of employees", "current_value": "3", "checked": null, "visible": true, "row_text": "Number of employees", "row_cells": ["Number of employees", ""]}, {"control_id": "rev", "dom_selector": "#rev", "tag": "input", "input_type": "text", "name_attr": "annual_revenue", "id_attr": "rev", "label_text": "Annual gross sales ($)", "current_value": "290000", "checked": null, "visible": true, "row_text": "Annual gross sales ($)", "row_cells": ["Annual gross sales ($)", ""]}, {"control_id": "own", "dom_selector": "#own", "tag": "select", "name_attr": "building_owned", "id_attr": "own", "label_text": "Does the insured own the building?", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "row_text": "Does the insured own the building?-- select --YesNo", "row_cells": ["Does the insured own the building?", "-- select --YesNo"]}, {"control_id": "bl", "dom_selector": "#bl", "tag": "input", "input_type": "text", "name_attr": "building_limit", "id_attr": "bl", "label_text": "Building limit ($)", "checked": null, "visible": true, "row_text": "Building limit ($) enter 0 if not owned", "row_cells": ["Building limit ($)", "enter 0 if not owned"]}, {"control_id": "action#3", "dom_selector": "#location > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save location", "checked": null, "visible": true, "row_text": "Save location", "row_cells": ["Save location"]}, {"control_id": "bpp", "dom_selector": "#bpp", "tag": "input", "input_type": "text", "name_attr": "bpp_limit", "id_attr": "bpp", "label_text": "Business personal property limit ($)", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "bpp-open", "dom_selector": "#bpp-open", "tag": "button", "id_attr": "bpp-open", "label_text": "Open BPP worksheet", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "ll", "dom_selector": "#ll", "tag": "select", "name_attr": "liability_limit", "id_attr": "ll", "label_text": "Liability limits", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "$300,000 / $600,000", "label": "$300,000 / $600,000"}, {"value": "$500,000 / $1,000,000", "label": "$500,000 / $1,000,000"}, {"value": "$1,000,000 / $2,000,000", "label": "$1,000,000 / $2,000,000"}], "row_text": "Liability limits-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate", "row_cells": ["Liability limits", "-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate"]}, {"control_id": "ded", "dom_selector": "#ded", "tag": "select", "name_attr": "deductible", "id_attr": "ded", "label_text": "Property deductible", "current_value": "1000", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}, {"value": "5000", "label": "$5,000"}], "row_text": "Property deductible-- select --$500$1,000$2,500$5,000", "row_cells": ["Property deductible", "-- select --$500$1,000$2,500$5,000"]}, {"control_id": "eff", "dom_selector": "#eff", "tag": "input", "input_type": "text", "name_attr": "effective_date", "id_attr": "eff", "label_text": "Effective date", "checked": null, "visible": true, "row_text": "Effective date", "row_cells": ["Effective date", ""]}, {"control_id": "action#4", "dom_selector": "#coverage > tbody > tr:nth-of-type(6) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save coverage", "checked": null, "visible": true, "row_text": "Save coverage", "row_cells": ["Save coverage"]}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "name_attr": "action", "id_attr": "rate", "label_text": "Rate this risk", "checked": null, "visible": true}], "text_pairs": [{"label": "Hollowfen Business Mutual", "value": "BOP Rating Worksheet v4.2", "section_text": "", "source": "inline"}], "banners": [], "modals": [], "title": "BOP worksheet"} +FORM_TX_DEMO {"portal": "hollowfen", "step": 19, "why": "before fill selector='#location >> internal:label=\"Building limit ($)\"s'>", "frame_url": "http://127.0.0.1:64585/bop/worksheet?saved=applicant#applicant", "is_main": true, "controls": [{"control_id": "en", "dom_selector": "#en", "tag": "input", "input_type": "text", "name_attr": "entity_number", "id_attr": "en", "label_text": "State entity number", "current_value": "LLC-2017-902214", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "action", "dom_selector": "#applicant > tbody > tr:nth-of-type(2) > td > button", "tag": "button", "name_attr": "action", "label_text": "Look up entity", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "ln", "dom_selector": "#ln", "tag": "input", "input_type": "text", "name_attr": "legal_name", "id_attr": "ln", "label_text": "Legal name", "current_value": "Morrow Lane Frames LLC", "checked": null, "visible": true, "row_text": "Legal name", "row_cells": ["Legal name", ""]}, {"control_id": "dba", "dom_selector": "#dba", "tag": "input", "input_type": "text", "name_attr": "dba_name", "id_attr": "dba", "label_text": "Doing business as (DBA)", "current_value": "Morrow Lane Framing", "checked": null, "visible": true, "row_text": "Doing business as (DBA)", "row_cells": ["Doing business as (DBA)", ""]}, {"control_id": "et", "dom_selector": "#et", "tag": "select", "name_attr": "entity_type", "id_attr": "et", "label_text": "Entity type", "current_value": "Limited liability company", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Limited liability company", "label": "Limited liability company"}, {"value": "Corporation", "label": "Corporation"}, {"value": "Sole proprietorship", "label": "Sole proprietorship"}, {"value": "General partnership", "label": "General partnership"}], "row_text": "Entity type-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership", "row_cells": ["Entity type", "-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership"]}, {"control_id": "fein", "dom_selector": "#fein", "tag": "input", "input_type": "text", "name_attr": "fein", "id_attr": "fein", "label_text": "FEIN", "current_value": "82-4471036", "checked": null, "visible": true, "row_text": "FEIN", "row_cells": ["FEIN", ""]}, {"control_id": "ye", "dom_selector": "#ye", "tag": "input", "input_type": "text", "name_attr": "year_established", "id_attr": "ye", "label_text": "Year established", "current_value": "2017", "checked": null, "visible": true, "row_text": "Year established", "row_cells": ["Year established", ""]}, {"control_id": "action#2", "dom_selector": "#applicant > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save applicant", "checked": null, "visible": true, "row_text": "Save applicant", "row_cells": ["Save applicant"]}, {"control_id": "ls", "dom_selector": "#ls", "tag": "input", "input_type": "text", "name_attr": "location_street", "id_attr": "ls", "label_text": "Location street address", "current_value": "56 Morrow Lane", "checked": null, "visible": true, "row_text": "Location street address", "row_cells": ["Location street address", ""]}, {"control_id": "class-code", "dom_selector": "#class-code", "tag": "input", "input_type": "text", "name_attr": "class_code", "id_attr": "class-code", "label_text": "Class code", "current_value": "21890 Picture framing shop", "checked": null, "readonly": true, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "find-class", "dom_selector": "#find-class", "tag": "button", "id_attr": "find-class", "label_text": "Find class...", "checked": null, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "emp", "dom_selector": "#emp", "tag": "input", "input_type": "text", "name_attr": "employees", "id_attr": "emp", "label_text": "Number of employees", "current_value": "3", "checked": null, "visible": true, "row_text": "Number of employees", "row_cells": ["Number of employees", ""]}, {"control_id": "rev", "dom_selector": "#rev", "tag": "input", "input_type": "text", "name_attr": "annual_revenue", "id_attr": "rev", "label_text": "Annual gross sales ($)", "current_value": "290000", "checked": null, "visible": true, "row_text": "Annual gross sales ($)", "row_cells": ["Annual gross sales ($)", ""]}, {"control_id": "own", "dom_selector": "#own", "tag": "select", "name_attr": "building_owned", "id_attr": "own", "label_text": "Does the insured own the building?", "current_value": "No", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "row_text": "Does the insured own the building?-- select --YesNo", "row_cells": ["Does the insured own the building?", "-- select --YesNo"]}, {"control_id": "bl", "dom_selector": "#bl", "tag": "input", "input_type": "text", "name_attr": "building_limit", "id_attr": "bl", "label_text": "Building limit ($)", "checked": null, "visible": true, "row_text": "Building limit ($) enter 0 if not owned", "row_cells": ["Building limit ($)", "enter 0 if not owned"]}, {"control_id": "action#3", "dom_selector": "#location > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save location", "checked": null, "visible": true, "row_text": "Save location", "row_cells": ["Save location"]}, {"control_id": "bpp", "dom_selector": "#bpp", "tag": "input", "input_type": "text", "name_attr": "bpp_limit", "id_attr": "bpp", "label_text": "Business personal property limit ($)", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "bpp-open", "dom_selector": "#bpp-open", "tag": "button", "id_attr": "bpp-open", "label_text": "Open BPP worksheet", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "ll", "dom_selector": "#ll", "tag": "select", "name_attr": "liability_limit", "id_attr": "ll", "label_text": "Liability limits", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "$300,000 / $600,000", "label": "$300,000 / $600,000"}, {"value": "$500,000 / $1,000,000", "label": "$500,000 / $1,000,000"}, {"value": "$1,000,000 / $2,000,000", "label": "$1,000,000 / $2,000,000"}], "row_text": "Liability limits-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate", "row_cells": ["Liability limits", "-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate"]}, {"control_id": "ded", "dom_selector": "#ded", "tag": "select", "name_attr": "deductible", "id_attr": "ded", "label_text": "Property deductible", "current_value": "1000", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}, {"value": "5000", "label": "$5,000"}], "row_text": "Property deductible-- select --$500$1,000$2,500$5,000", "row_cells": ["Property deductible", "-- select --$500$1,000$2,500$5,000"]}, {"control_id": "eff", "dom_selector": "#eff", "tag": "input", "input_type": "text", "name_attr": "effective_date", "id_attr": "eff", "label_text": "Effective date", "checked": null, "visible": true, "row_text": "Effective date", "row_cells": ["Effective date", ""]}, {"control_id": "action#4", "dom_selector": "#coverage > tbody > tr:nth-of-type(6) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save coverage", "checked": null, "visible": true, "row_text": "Save coverage", "row_cells": ["Save coverage"]}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "name_attr": "action", "id_attr": "rate", "label_text": "Rate this risk", "checked": null, "visible": true}], "text_pairs": [{"label": "Hollowfen Business Mutual", "value": "BOP Rating Worksheet v4.2", "section_text": "", "source": "inline"}], "banners": [], "modals": [], "title": "BOP worksheet"} +FORM_TX_DEMO {"portal": "hollowfen", "step": 20, "why": "before click selector='#location >> internal:role=button[name=\"Save location\"i]'>", "frame_url": "http://127.0.0.1:64585/bop/worksheet?saved=applicant#applicant", "is_main": true, "controls": [{"control_id": "en", "dom_selector": "#en", "tag": "input", "input_type": "text", "name_attr": "entity_number", "id_attr": "en", "label_text": "State entity number", "current_value": "LLC-2017-902214", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "action", "dom_selector": "#applicant > tbody > tr:nth-of-type(2) > td > button", "tag": "button", "name_attr": "action", "label_text": "Look up entity", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "ln", "dom_selector": "#ln", "tag": "input", "input_type": "text", "name_attr": "legal_name", "id_attr": "ln", "label_text": "Legal name", "current_value": "Morrow Lane Frames LLC", "checked": null, "visible": true, "row_text": "Legal name", "row_cells": ["Legal name", ""]}, {"control_id": "dba", "dom_selector": "#dba", "tag": "input", "input_type": "text", "name_attr": "dba_name", "id_attr": "dba", "label_text": "Doing business as (DBA)", "current_value": "Morrow Lane Framing", "checked": null, "visible": true, "row_text": "Doing business as (DBA)", "row_cells": ["Doing business as (DBA)", ""]}, {"control_id": "et", "dom_selector": "#et", "tag": "select", "name_attr": "entity_type", "id_attr": "et", "label_text": "Entity type", "current_value": "Limited liability company", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Limited liability company", "label": "Limited liability company"}, {"value": "Corporation", "label": "Corporation"}, {"value": "Sole proprietorship", "label": "Sole proprietorship"}, {"value": "General partnership", "label": "General partnership"}], "row_text": "Entity type-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership", "row_cells": ["Entity type", "-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership"]}, {"control_id": "fein", "dom_selector": "#fein", "tag": "input", "input_type": "text", "name_attr": "fein", "id_attr": "fein", "label_text": "FEIN", "current_value": "82-4471036", "checked": null, "visible": true, "row_text": "FEIN", "row_cells": ["FEIN", ""]}, {"control_id": "ye", "dom_selector": "#ye", "tag": "input", "input_type": "text", "name_attr": "year_established", "id_attr": "ye", "label_text": "Year established", "current_value": "2017", "checked": null, "visible": true, "row_text": "Year established", "row_cells": ["Year established", ""]}, {"control_id": "action#2", "dom_selector": "#applicant > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save applicant", "checked": null, "visible": true, "row_text": "Save applicant", "row_cells": ["Save applicant"]}, {"control_id": "ls", "dom_selector": "#ls", "tag": "input", "input_type": "text", "name_attr": "location_street", "id_attr": "ls", "label_text": "Location street address", "current_value": "56 Morrow Lane", "checked": null, "visible": true, "row_text": "Location street address", "row_cells": ["Location street address", ""]}, {"control_id": "class-code", "dom_selector": "#class-code", "tag": "input", "input_type": "text", "name_attr": "class_code", "id_attr": "class-code", "label_text": "Class code", "current_value": "21890 Picture framing shop", "checked": null, "readonly": true, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "find-class", "dom_selector": "#find-class", "tag": "button", "id_attr": "find-class", "label_text": "Find class...", "checked": null, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "emp", "dom_selector": "#emp", "tag": "input", "input_type": "text", "name_attr": "employees", "id_attr": "emp", "label_text": "Number of employees", "current_value": "3", "checked": null, "visible": true, "row_text": "Number of employees", "row_cells": ["Number of employees", ""]}, {"control_id": "rev", "dom_selector": "#rev", "tag": "input", "input_type": "text", "name_attr": "annual_revenue", "id_attr": "rev", "label_text": "Annual gross sales ($)", "current_value": "290000", "checked": null, "visible": true, "row_text": "Annual gross sales ($)", "row_cells": ["Annual gross sales ($)", ""]}, {"control_id": "own", "dom_selector": "#own", "tag": "select", "name_attr": "building_owned", "id_attr": "own", "label_text": "Does the insured own the building?", "current_value": "No", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "row_text": "Does the insured own the building?-- select --YesNo", "row_cells": ["Does the insured own the building?", "-- select --YesNo"]}, {"control_id": "bl", "dom_selector": "#bl", "tag": "input", "input_type": "text", "name_attr": "building_limit", "id_attr": "bl", "label_text": "Building limit ($)", "current_value": "0", "checked": null, "visible": true, "row_text": "Building limit ($) enter 0 if not owned", "row_cells": ["Building limit ($)", "enter 0 if not owned"]}, {"control_id": "action#3", "dom_selector": "#location > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save location", "checked": null, "visible": true, "row_text": "Save location", "row_cells": ["Save location"]}, {"control_id": "bpp", "dom_selector": "#bpp", "tag": "input", "input_type": "text", "name_attr": "bpp_limit", "id_attr": "bpp", "label_text": "Business personal property limit ($)", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "bpp-open", "dom_selector": "#bpp-open", "tag": "button", "id_attr": "bpp-open", "label_text": "Open BPP worksheet", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "ll", "dom_selector": "#ll", "tag": "select", "name_attr": "liability_limit", "id_attr": "ll", "label_text": "Liability limits", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "$300,000 / $600,000", "label": "$300,000 / $600,000"}, {"value": "$500,000 / $1,000,000", "label": "$500,000 / $1,000,000"}, {"value": "$1,000,000 / $2,000,000", "label": "$1,000,000 / $2,000,000"}], "row_text": "Liability limits-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate", "row_cells": ["Liability limits", "-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate"]}, {"control_id": "ded", "dom_selector": "#ded", "tag": "select", "name_attr": "deductible", "id_attr": "ded", "label_text": "Property deductible", "current_value": "1000", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}, {"value": "5000", "label": "$5,000"}], "row_text": "Property deductible-- select --$500$1,000$2,500$5,000", "row_cells": ["Property deductible", "-- select --$500$1,000$2,500$5,000"]}, {"control_id": "eff", "dom_selector": "#eff", "tag": "input", "input_type": "text", "name_attr": "effective_date", "id_attr": "eff", "label_text": "Effective date", "checked": null, "visible": true, "row_text": "Effective date", "row_cells": ["Effective date", ""]}, {"control_id": "action#4", "dom_selector": "#coverage > tbody > tr:nth-of-type(6) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save coverage", "checked": null, "visible": true, "row_text": "Save coverage", "row_cells": ["Save coverage"]}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "name_attr": "action", "id_attr": "rate", "label_text": "Rate this risk", "checked": null, "visible": true}], "text_pairs": [{"label": "Hollowfen Business Mutual", "value": "BOP Rating Worksheet v4.2", "section_text": "", "source": "inline"}], "banners": [], "modals": [], "title": "BOP worksheet"} +FORM_TX_DEMO {"portal": "hollowfen", "step": 21, "why": "before fill selector='#coverage >> internal:label=\"Business personal property limit ($)\"s'>", "frame_url": "http://127.0.0.1:64585/bop/worksheet?saved=location#location", "is_main": true, "controls": [{"control_id": "en", "dom_selector": "#en", "tag": "input", "input_type": "text", "name_attr": "entity_number", "id_attr": "en", "label_text": "State entity number", "current_value": "LLC-2017-902214", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "action", "dom_selector": "#applicant > tbody > tr:nth-of-type(2) > td > button", "tag": "button", "name_attr": "action", "label_text": "Look up entity", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "ln", "dom_selector": "#ln", "tag": "input", "input_type": "text", "name_attr": "legal_name", "id_attr": "ln", "label_text": "Legal name", "current_value": "Morrow Lane Frames LLC", "checked": null, "visible": true, "row_text": "Legal name", "row_cells": ["Legal name", ""]}, {"control_id": "dba", "dom_selector": "#dba", "tag": "input", "input_type": "text", "name_attr": "dba_name", "id_attr": "dba", "label_text": "Doing business as (DBA)", "current_value": "Morrow Lane Framing", "checked": null, "visible": true, "row_text": "Doing business as (DBA)", "row_cells": ["Doing business as (DBA)", ""]}, {"control_id": "et", "dom_selector": "#et", "tag": "select", "name_attr": "entity_type", "id_attr": "et", "label_text": "Entity type", "current_value": "Limited liability company", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Limited liability company", "label": "Limited liability company"}, {"value": "Corporation", "label": "Corporation"}, {"value": "Sole proprietorship", "label": "Sole proprietorship"}, {"value": "General partnership", "label": "General partnership"}], "row_text": "Entity type-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership", "row_cells": ["Entity type", "-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership"]}, {"control_id": "fein", "dom_selector": "#fein", "tag": "input", "input_type": "text", "name_attr": "fein", "id_attr": "fein", "label_text": "FEIN", "current_value": "82-4471036", "checked": null, "visible": true, "row_text": "FEIN", "row_cells": ["FEIN", ""]}, {"control_id": "ye", "dom_selector": "#ye", "tag": "input", "input_type": "text", "name_attr": "year_established", "id_attr": "ye", "label_text": "Year established", "current_value": "2017", "checked": null, "visible": true, "row_text": "Year established", "row_cells": ["Year established", ""]}, {"control_id": "action#2", "dom_selector": "#applicant > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save applicant", "checked": null, "visible": true, "row_text": "Save applicant", "row_cells": ["Save applicant"]}, {"control_id": "ls", "dom_selector": "#ls", "tag": "input", "input_type": "text", "name_attr": "location_street", "id_attr": "ls", "label_text": "Location street address", "current_value": "56 Morrow Lane", "checked": null, "visible": true, "row_text": "Location street address", "row_cells": ["Location street address", ""]}, {"control_id": "class-code", "dom_selector": "#class-code", "tag": "input", "input_type": "text", "name_attr": "class_code", "id_attr": "class-code", "label_text": "Class code", "current_value": "21890 Picture framing shop", "checked": null, "readonly": true, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "find-class", "dom_selector": "#find-class", "tag": "button", "id_attr": "find-class", "label_text": "Find class...", "checked": null, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "emp", "dom_selector": "#emp", "tag": "input", "input_type": "text", "name_attr": "employees", "id_attr": "emp", "label_text": "Number of employees", "current_value": "3", "checked": null, "visible": true, "row_text": "Number of employees", "row_cells": ["Number of employees", ""]}, {"control_id": "rev", "dom_selector": "#rev", "tag": "input", "input_type": "text", "name_attr": "annual_revenue", "id_attr": "rev", "label_text": "Annual gross sales ($)", "current_value": "290000", "checked": null, "visible": true, "row_text": "Annual gross sales ($)", "row_cells": ["Annual gross sales ($)", ""]}, {"control_id": "own", "dom_selector": "#own", "tag": "select", "name_attr": "building_owned", "id_attr": "own", "label_text": "Does the insured own the building?", "current_value": "No", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "row_text": "Does the insured own the building?-- select --YesNo", "row_cells": ["Does the insured own the building?", "-- select --YesNo"]}, {"control_id": "bl", "dom_selector": "#bl", "tag": "input", "input_type": "text", "name_attr": "building_limit", "id_attr": "bl", "label_text": "Building limit ($)", "current_value": "0", "checked": null, "visible": true, "row_text": "Building limit ($) enter 0 if not owned", "row_cells": ["Building limit ($)", "enter 0 if not owned"]}, {"control_id": "action#3", "dom_selector": "#location > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save location", "checked": null, "visible": true, "row_text": "Save location", "row_cells": ["Save location"]}, {"control_id": "bpp", "dom_selector": "#bpp", "tag": "input", "input_type": "text", "name_attr": "bpp_limit", "id_attr": "bpp", "label_text": "Business personal property limit ($)", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "bpp-open", "dom_selector": "#bpp-open", "tag": "button", "id_attr": "bpp-open", "label_text": "Open BPP worksheet", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "ll", "dom_selector": "#ll", "tag": "select", "name_attr": "liability_limit", "id_attr": "ll", "label_text": "Liability limits", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "$300,000 / $600,000", "label": "$300,000 / $600,000"}, {"value": "$500,000 / $1,000,000", "label": "$500,000 / $1,000,000"}, {"value": "$1,000,000 / $2,000,000", "label": "$1,000,000 / $2,000,000"}], "row_text": "Liability limits-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate", "row_cells": ["Liability limits", "-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate"]}, {"control_id": "ded", "dom_selector": "#ded", "tag": "select", "name_attr": "deductible", "id_attr": "ded", "label_text": "Property deductible", "current_value": "1000", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}, {"value": "5000", "label": "$5,000"}], "row_text": "Property deductible-- select --$500$1,000$2,500$5,000", "row_cells": ["Property deductible", "-- select --$500$1,000$2,500$5,000"]}, {"control_id": "eff", "dom_selector": "#eff", "tag": "input", "input_type": "text", "name_attr": "effective_date", "id_attr": "eff", "label_text": "Effective date", "checked": null, "visible": true, "row_text": "Effective date", "row_cells": ["Effective date", ""]}, {"control_id": "action#4", "dom_selector": "#coverage > tbody > tr:nth-of-type(6) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save coverage", "checked": null, "visible": true, "row_text": "Save coverage", "row_cells": ["Save coverage"]}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "name_attr": "action", "id_attr": "rate", "label_text": "Rate this risk", "checked": null, "visible": true}], "text_pairs": [{"label": "Hollowfen Business Mutual", "value": "BOP Rating Worksheet v4.2", "section_text": "", "source": "inline"}], "banners": [], "modals": [], "title": "BOP worksheet"} +FORM_TX_DEMO {"portal": "hollowfen", "step": 22, "why": "before select_option selector='#coverage >> internal:label=\"Liability limits\"s'>", "frame_url": "http://127.0.0.1:64585/bop/worksheet?saved=location#location", "is_main": true, "controls": [{"control_id": "en", "dom_selector": "#en", "tag": "input", "input_type": "text", "name_attr": "entity_number", "id_attr": "en", "label_text": "State entity number", "current_value": "LLC-2017-902214", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "action", "dom_selector": "#applicant > tbody > tr:nth-of-type(2) > td > button", "tag": "button", "name_attr": "action", "label_text": "Look up entity", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "ln", "dom_selector": "#ln", "tag": "input", "input_type": "text", "name_attr": "legal_name", "id_attr": "ln", "label_text": "Legal name", "current_value": "Morrow Lane Frames LLC", "checked": null, "visible": true, "row_text": "Legal name", "row_cells": ["Legal name", ""]}, {"control_id": "dba", "dom_selector": "#dba", "tag": "input", "input_type": "text", "name_attr": "dba_name", "id_attr": "dba", "label_text": "Doing business as (DBA)", "current_value": "Morrow Lane Framing", "checked": null, "visible": true, "row_text": "Doing business as (DBA)", "row_cells": ["Doing business as (DBA)", ""]}, {"control_id": "et", "dom_selector": "#et", "tag": "select", "name_attr": "entity_type", "id_attr": "et", "label_text": "Entity type", "current_value": "Limited liability company", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Limited liability company", "label": "Limited liability company"}, {"value": "Corporation", "label": "Corporation"}, {"value": "Sole proprietorship", "label": "Sole proprietorship"}, {"value": "General partnership", "label": "General partnership"}], "row_text": "Entity type-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership", "row_cells": ["Entity type", "-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership"]}, {"control_id": "fein", "dom_selector": "#fein", "tag": "input", "input_type": "text", "name_attr": "fein", "id_attr": "fein", "label_text": "FEIN", "current_value": "82-4471036", "checked": null, "visible": true, "row_text": "FEIN", "row_cells": ["FEIN", ""]}, {"control_id": "ye", "dom_selector": "#ye", "tag": "input", "input_type": "text", "name_attr": "year_established", "id_attr": "ye", "label_text": "Year established", "current_value": "2017", "checked": null, "visible": true, "row_text": "Year established", "row_cells": ["Year established", ""]}, {"control_id": "action#2", "dom_selector": "#applicant > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save applicant", "checked": null, "visible": true, "row_text": "Save applicant", "row_cells": ["Save applicant"]}, {"control_id": "ls", "dom_selector": "#ls", "tag": "input", "input_type": "text", "name_attr": "location_street", "id_attr": "ls", "label_text": "Location street address", "current_value": "56 Morrow Lane", "checked": null, "visible": true, "row_text": "Location street address", "row_cells": ["Location street address", ""]}, {"control_id": "class-code", "dom_selector": "#class-code", "tag": "input", "input_type": "text", "name_attr": "class_code", "id_attr": "class-code", "label_text": "Class code", "current_value": "21890 Picture framing shop", "checked": null, "readonly": true, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "find-class", "dom_selector": "#find-class", "tag": "button", "id_attr": "find-class", "label_text": "Find class...", "checked": null, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "emp", "dom_selector": "#emp", "tag": "input", "input_type": "text", "name_attr": "employees", "id_attr": "emp", "label_text": "Number of employees", "current_value": "3", "checked": null, "visible": true, "row_text": "Number of employees", "row_cells": ["Number of employees", ""]}, {"control_id": "rev", "dom_selector": "#rev", "tag": "input", "input_type": "text", "name_attr": "annual_revenue", "id_attr": "rev", "label_text": "Annual gross sales ($)", "current_value": "290000", "checked": null, "visible": true, "row_text": "Annual gross sales ($)", "row_cells": ["Annual gross sales ($)", ""]}, {"control_id": "own", "dom_selector": "#own", "tag": "select", "name_attr": "building_owned", "id_attr": "own", "label_text": "Does the insured own the building?", "current_value": "No", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "row_text": "Does the insured own the building?-- select --YesNo", "row_cells": ["Does the insured own the building?", "-- select --YesNo"]}, {"control_id": "bl", "dom_selector": "#bl", "tag": "input", "input_type": "text", "name_attr": "building_limit", "id_attr": "bl", "label_text": "Building limit ($)", "current_value": "0", "checked": null, "visible": true, "row_text": "Building limit ($) enter 0 if not owned", "row_cells": ["Building limit ($)", "enter 0 if not owned"]}, {"control_id": "action#3", "dom_selector": "#location > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save location", "checked": null, "visible": true, "row_text": "Save location", "row_cells": ["Save location"]}, {"control_id": "bpp", "dom_selector": "#bpp", "tag": "input", "input_type": "text", "name_attr": "bpp_limit", "id_attr": "bpp", "label_text": "Business personal property limit ($)", "current_value": "85000", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "bpp-open", "dom_selector": "#bpp-open", "tag": "button", "id_attr": "bpp-open", "label_text": "Open BPP worksheet", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "ll", "dom_selector": "#ll", "tag": "select", "name_attr": "liability_limit", "id_attr": "ll", "label_text": "Liability limits", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "$300,000 / $600,000", "label": "$300,000 / $600,000"}, {"value": "$500,000 / $1,000,000", "label": "$500,000 / $1,000,000"}, {"value": "$1,000,000 / $2,000,000", "label": "$1,000,000 / $2,000,000"}], "row_text": "Liability limits-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate", "row_cells": ["Liability limits", "-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate"]}, {"control_id": "ded", "dom_selector": "#ded", "tag": "select", "name_attr": "deductible", "id_attr": "ded", "label_text": "Property deductible", "current_value": "1000", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}, {"value": "5000", "label": "$5,000"}], "row_text": "Property deductible-- select --$500$1,000$2,500$5,000", "row_cells": ["Property deductible", "-- select --$500$1,000$2,500$5,000"]}, {"control_id": "eff", "dom_selector": "#eff", "tag": "input", "input_type": "text", "name_attr": "effective_date", "id_attr": "eff", "label_text": "Effective date", "checked": null, "visible": true, "row_text": "Effective date", "row_cells": ["Effective date", ""]}, {"control_id": "action#4", "dom_selector": "#coverage > tbody > tr:nth-of-type(6) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save coverage", "checked": null, "visible": true, "row_text": "Save coverage", "row_cells": ["Save coverage"]}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "name_attr": "action", "id_attr": "rate", "label_text": "Rate this risk", "checked": null, "visible": true}], "text_pairs": [{"label": "Hollowfen Business Mutual", "value": "BOP Rating Worksheet v4.2", "section_text": "", "source": "inline"}], "banners": [], "modals": [], "title": "BOP worksheet"} +FORM_TX_DEMO {"portal": "hollowfen", "step": 23, "why": "before select_option selector='#coverage >> internal:label=\"Property deductible\"s'>", "frame_url": "http://127.0.0.1:64585/bop/worksheet?saved=location#location", "is_main": true, "controls": [{"control_id": "en", "dom_selector": "#en", "tag": "input", "input_type": "text", "name_attr": "entity_number", "id_attr": "en", "label_text": "State entity number", "current_value": "LLC-2017-902214", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "action", "dom_selector": "#applicant > tbody > tr:nth-of-type(2) > td > button", "tag": "button", "name_attr": "action", "label_text": "Look up entity", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "ln", "dom_selector": "#ln", "tag": "input", "input_type": "text", "name_attr": "legal_name", "id_attr": "ln", "label_text": "Legal name", "current_value": "Morrow Lane Frames LLC", "checked": null, "visible": true, "row_text": "Legal name", "row_cells": ["Legal name", ""]}, {"control_id": "dba", "dom_selector": "#dba", "tag": "input", "input_type": "text", "name_attr": "dba_name", "id_attr": "dba", "label_text": "Doing business as (DBA)", "current_value": "Morrow Lane Framing", "checked": null, "visible": true, "row_text": "Doing business as (DBA)", "row_cells": ["Doing business as (DBA)", ""]}, {"control_id": "et", "dom_selector": "#et", "tag": "select", "name_attr": "entity_type", "id_attr": "et", "label_text": "Entity type", "current_value": "Limited liability company", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Limited liability company", "label": "Limited liability company"}, {"value": "Corporation", "label": "Corporation"}, {"value": "Sole proprietorship", "label": "Sole proprietorship"}, {"value": "General partnership", "label": "General partnership"}], "row_text": "Entity type-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership", "row_cells": ["Entity type", "-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership"]}, {"control_id": "fein", "dom_selector": "#fein", "tag": "input", "input_type": "text", "name_attr": "fein", "id_attr": "fein", "label_text": "FEIN", "current_value": "82-4471036", "checked": null, "visible": true, "row_text": "FEIN", "row_cells": ["FEIN", ""]}, {"control_id": "ye", "dom_selector": "#ye", "tag": "input", "input_type": "text", "name_attr": "year_established", "id_attr": "ye", "label_text": "Year established", "current_value": "2017", "checked": null, "visible": true, "row_text": "Year established", "row_cells": ["Year established", ""]}, {"control_id": "action#2", "dom_selector": "#applicant > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save applicant", "checked": null, "visible": true, "row_text": "Save applicant", "row_cells": ["Save applicant"]}, {"control_id": "ls", "dom_selector": "#ls", "tag": "input", "input_type": "text", "name_attr": "location_street", "id_attr": "ls", "label_text": "Location street address", "current_value": "56 Morrow Lane", "checked": null, "visible": true, "row_text": "Location street address", "row_cells": ["Location street address", ""]}, {"control_id": "class-code", "dom_selector": "#class-code", "tag": "input", "input_type": "text", "name_attr": "class_code", "id_attr": "class-code", "label_text": "Class code", "current_value": "21890 Picture framing shop", "checked": null, "readonly": true, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "find-class", "dom_selector": "#find-class", "tag": "button", "id_attr": "find-class", "label_text": "Find class...", "checked": null, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "emp", "dom_selector": "#emp", "tag": "input", "input_type": "text", "name_attr": "employees", "id_attr": "emp", "label_text": "Number of employees", "current_value": "3", "checked": null, "visible": true, "row_text": "Number of employees", "row_cells": ["Number of employees", ""]}, {"control_id": "rev", "dom_selector": "#rev", "tag": "input", "input_type": "text", "name_attr": "annual_revenue", "id_attr": "rev", "label_text": "Annual gross sales ($)", "current_value": "290000", "checked": null, "visible": true, "row_text": "Annual gross sales ($)", "row_cells": ["Annual gross sales ($)", ""]}, {"control_id": "own", "dom_selector": "#own", "tag": "select", "name_attr": "building_owned", "id_attr": "own", "label_text": "Does the insured own the building?", "current_value": "No", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "row_text": "Does the insured own the building?-- select --YesNo", "row_cells": ["Does the insured own the building?", "-- select --YesNo"]}, {"control_id": "bl", "dom_selector": "#bl", "tag": "input", "input_type": "text", "name_attr": "building_limit", "id_attr": "bl", "label_text": "Building limit ($)", "current_value": "0", "checked": null, "visible": true, "row_text": "Building limit ($) enter 0 if not owned", "row_cells": ["Building limit ($)", "enter 0 if not owned"]}, {"control_id": "action#3", "dom_selector": "#location > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save location", "checked": null, "visible": true, "row_text": "Save location", "row_cells": ["Save location"]}, {"control_id": "bpp", "dom_selector": "#bpp", "tag": "input", "input_type": "text", "name_attr": "bpp_limit", "id_attr": "bpp", "label_text": "Business personal property limit ($)", "current_value": "85000", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "bpp-open", "dom_selector": "#bpp-open", "tag": "button", "id_attr": "bpp-open", "label_text": "Open BPP worksheet", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "ll", "dom_selector": "#ll", "tag": "select", "name_attr": "liability_limit", "id_attr": "ll", "label_text": "Liability limits", "current_value": "$1,000,000 / $2,000,000", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "$300,000 / $600,000", "label": "$300,000 / $600,000"}, {"value": "$500,000 / $1,000,000", "label": "$500,000 / $1,000,000"}, {"value": "$1,000,000 / $2,000,000", "label": "$1,000,000 / $2,000,000"}], "row_text": "Liability limits-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate", "row_cells": ["Liability limits", "-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate"]}, {"control_id": "ded", "dom_selector": "#ded", "tag": "select", "name_attr": "deductible", "id_attr": "ded", "label_text": "Property deductible", "current_value": "1000", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}, {"value": "5000", "label": "$5,000"}], "row_text": "Property deductible-- select --$500$1,000$2,500$5,000", "row_cells": ["Property deductible", "-- select --$500$1,000$2,500$5,000"]}, {"control_id": "eff", "dom_selector": "#eff", "tag": "input", "input_type": "text", "name_attr": "effective_date", "id_attr": "eff", "label_text": "Effective date", "checked": null, "visible": true, "row_text": "Effective date", "row_cells": ["Effective date", ""]}, {"control_id": "action#4", "dom_selector": "#coverage > tbody > tr:nth-of-type(6) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save coverage", "checked": null, "visible": true, "row_text": "Save coverage", "row_cells": ["Save coverage"]}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "name_attr": "action", "id_attr": "rate", "label_text": "Rate this risk", "checked": null, "visible": true}], "text_pairs": [{"label": "Hollowfen Business Mutual", "value": "BOP Rating Worksheet v4.2", "section_text": "", "source": "inline"}], "banners": [], "modals": [], "title": "BOP worksheet"} +FORM_TX_DEMO {"portal": "hollowfen", "step": 24, "why": "before fill selector='#coverage >> internal:label=\"Effective date\"s'>", "frame_url": "http://127.0.0.1:64585/bop/worksheet?saved=location#location", "is_main": true, "controls": [{"control_id": "en", "dom_selector": "#en", "tag": "input", "input_type": "text", "name_attr": "entity_number", "id_attr": "en", "label_text": "State entity number", "current_value": "LLC-2017-902214", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "action", "dom_selector": "#applicant > tbody > tr:nth-of-type(2) > td > button", "tag": "button", "name_attr": "action", "label_text": "Look up entity", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "ln", "dom_selector": "#ln", "tag": "input", "input_type": "text", "name_attr": "legal_name", "id_attr": "ln", "label_text": "Legal name", "current_value": "Morrow Lane Frames LLC", "checked": null, "visible": true, "row_text": "Legal name", "row_cells": ["Legal name", ""]}, {"control_id": "dba", "dom_selector": "#dba", "tag": "input", "input_type": "text", "name_attr": "dba_name", "id_attr": "dba", "label_text": "Doing business as (DBA)", "current_value": "Morrow Lane Framing", "checked": null, "visible": true, "row_text": "Doing business as (DBA)", "row_cells": ["Doing business as (DBA)", ""]}, {"control_id": "et", "dom_selector": "#et", "tag": "select", "name_attr": "entity_type", "id_attr": "et", "label_text": "Entity type", "current_value": "Limited liability company", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Limited liability company", "label": "Limited liability company"}, {"value": "Corporation", "label": "Corporation"}, {"value": "Sole proprietorship", "label": "Sole proprietorship"}, {"value": "General partnership", "label": "General partnership"}], "row_text": "Entity type-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership", "row_cells": ["Entity type", "-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership"]}, {"control_id": "fein", "dom_selector": "#fein", "tag": "input", "input_type": "text", "name_attr": "fein", "id_attr": "fein", "label_text": "FEIN", "current_value": "82-4471036", "checked": null, "visible": true, "row_text": "FEIN", "row_cells": ["FEIN", ""]}, {"control_id": "ye", "dom_selector": "#ye", "tag": "input", "input_type": "text", "name_attr": "year_established", "id_attr": "ye", "label_text": "Year established", "current_value": "2017", "checked": null, "visible": true, "row_text": "Year established", "row_cells": ["Year established", ""]}, {"control_id": "action#2", "dom_selector": "#applicant > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save applicant", "checked": null, "visible": true, "row_text": "Save applicant", "row_cells": ["Save applicant"]}, {"control_id": "ls", "dom_selector": "#ls", "tag": "input", "input_type": "text", "name_attr": "location_street", "id_attr": "ls", "label_text": "Location street address", "current_value": "56 Morrow Lane", "checked": null, "visible": true, "row_text": "Location street address", "row_cells": ["Location street address", ""]}, {"control_id": "class-code", "dom_selector": "#class-code", "tag": "input", "input_type": "text", "name_attr": "class_code", "id_attr": "class-code", "label_text": "Class code", "current_value": "21890 Picture framing shop", "checked": null, "readonly": true, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "find-class", "dom_selector": "#find-class", "tag": "button", "id_attr": "find-class", "label_text": "Find class...", "checked": null, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "emp", "dom_selector": "#emp", "tag": "input", "input_type": "text", "name_attr": "employees", "id_attr": "emp", "label_text": "Number of employees", "current_value": "3", "checked": null, "visible": true, "row_text": "Number of employees", "row_cells": ["Number of employees", ""]}, {"control_id": "rev", "dom_selector": "#rev", "tag": "input", "input_type": "text", "name_attr": "annual_revenue", "id_attr": "rev", "label_text": "Annual gross sales ($)", "current_value": "290000", "checked": null, "visible": true, "row_text": "Annual gross sales ($)", "row_cells": ["Annual gross sales ($)", ""]}, {"control_id": "own", "dom_selector": "#own", "tag": "select", "name_attr": "building_owned", "id_attr": "own", "label_text": "Does the insured own the building?", "current_value": "No", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "row_text": "Does the insured own the building?-- select --YesNo", "row_cells": ["Does the insured own the building?", "-- select --YesNo"]}, {"control_id": "bl", "dom_selector": "#bl", "tag": "input", "input_type": "text", "name_attr": "building_limit", "id_attr": "bl", "label_text": "Building limit ($)", "current_value": "0", "checked": null, "visible": true, "row_text": "Building limit ($) enter 0 if not owned", "row_cells": ["Building limit ($)", "enter 0 if not owned"]}, {"control_id": "action#3", "dom_selector": "#location > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save location", "checked": null, "visible": true, "row_text": "Save location", "row_cells": ["Save location"]}, {"control_id": "bpp", "dom_selector": "#bpp", "tag": "input", "input_type": "text", "name_attr": "bpp_limit", "id_attr": "bpp", "label_text": "Business personal property limit ($)", "current_value": "85000", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "bpp-open", "dom_selector": "#bpp-open", "tag": "button", "id_attr": "bpp-open", "label_text": "Open BPP worksheet", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "ll", "dom_selector": "#ll", "tag": "select", "name_attr": "liability_limit", "id_attr": "ll", "label_text": "Liability limits", "current_value": "$1,000,000 / $2,000,000", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "$300,000 / $600,000", "label": "$300,000 / $600,000"}, {"value": "$500,000 / $1,000,000", "label": "$500,000 / $1,000,000"}, {"value": "$1,000,000 / $2,000,000", "label": "$1,000,000 / $2,000,000"}], "row_text": "Liability limits-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate", "row_cells": ["Liability limits", "-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate"]}, {"control_id": "ded", "dom_selector": "#ded", "tag": "select", "name_attr": "deductible", "id_attr": "ded", "label_text": "Property deductible", "current_value": "1000", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}, {"value": "5000", "label": "$5,000"}], "row_text": "Property deductible-- select --$500$1,000$2,500$5,000", "row_cells": ["Property deductible", "-- select --$500$1,000$2,500$5,000"]}, {"control_id": "eff", "dom_selector": "#eff", "tag": "input", "input_type": "text", "name_attr": "effective_date", "id_attr": "eff", "label_text": "Effective date", "checked": null, "visible": true, "row_text": "Effective date", "row_cells": ["Effective date", ""]}, {"control_id": "action#4", "dom_selector": "#coverage > tbody > tr:nth-of-type(6) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save coverage", "checked": null, "visible": true, "row_text": "Save coverage", "row_cells": ["Save coverage"]}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "name_attr": "action", "id_attr": "rate", "label_text": "Rate this risk", "checked": null, "visible": true}], "text_pairs": [{"label": "Hollowfen Business Mutual", "value": "BOP Rating Worksheet v4.2", "section_text": "", "source": "inline"}], "banners": [], "modals": [], "title": "BOP worksheet"} +FORM_TX_DEMO {"portal": "hollowfen", "step": 25, "why": "before click selector='#coverage >> internal:role=button[name=\"Save coverage\"i]'>", "frame_url": "http://127.0.0.1:64585/bop/worksheet?saved=location#location", "is_main": true, "controls": [{"control_id": "en", "dom_selector": "#en", "tag": "input", "input_type": "text", "name_attr": "entity_number", "id_attr": "en", "label_text": "State entity number", "current_value": "LLC-2017-902214", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "action", "dom_selector": "#applicant > tbody > tr:nth-of-type(2) > td > button", "tag": "button", "name_attr": "action", "label_text": "Look up entity", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "ln", "dom_selector": "#ln", "tag": "input", "input_type": "text", "name_attr": "legal_name", "id_attr": "ln", "label_text": "Legal name", "current_value": "Morrow Lane Frames LLC", "checked": null, "visible": true, "row_text": "Legal name", "row_cells": ["Legal name", ""]}, {"control_id": "dba", "dom_selector": "#dba", "tag": "input", "input_type": "text", "name_attr": "dba_name", "id_attr": "dba", "label_text": "Doing business as (DBA)", "current_value": "Morrow Lane Framing", "checked": null, "visible": true, "row_text": "Doing business as (DBA)", "row_cells": ["Doing business as (DBA)", ""]}, {"control_id": "et", "dom_selector": "#et", "tag": "select", "name_attr": "entity_type", "id_attr": "et", "label_text": "Entity type", "current_value": "Limited liability company", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Limited liability company", "label": "Limited liability company"}, {"value": "Corporation", "label": "Corporation"}, {"value": "Sole proprietorship", "label": "Sole proprietorship"}, {"value": "General partnership", "label": "General partnership"}], "row_text": "Entity type-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership", "row_cells": ["Entity type", "-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership"]}, {"control_id": "fein", "dom_selector": "#fein", "tag": "input", "input_type": "text", "name_attr": "fein", "id_attr": "fein", "label_text": "FEIN", "current_value": "82-4471036", "checked": null, "visible": true, "row_text": "FEIN", "row_cells": ["FEIN", ""]}, {"control_id": "ye", "dom_selector": "#ye", "tag": "input", "input_type": "text", "name_attr": "year_established", "id_attr": "ye", "label_text": "Year established", "current_value": "2017", "checked": null, "visible": true, "row_text": "Year established", "row_cells": ["Year established", ""]}, {"control_id": "action#2", "dom_selector": "#applicant > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save applicant", "checked": null, "visible": true, "row_text": "Save applicant", "row_cells": ["Save applicant"]}, {"control_id": "ls", "dom_selector": "#ls", "tag": "input", "input_type": "text", "name_attr": "location_street", "id_attr": "ls", "label_text": "Location street address", "current_value": "56 Morrow Lane", "checked": null, "visible": true, "row_text": "Location street address", "row_cells": ["Location street address", ""]}, {"control_id": "class-code", "dom_selector": "#class-code", "tag": "input", "input_type": "text", "name_attr": "class_code", "id_attr": "class-code", "label_text": "Class code", "current_value": "21890 Picture framing shop", "checked": null, "readonly": true, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "find-class", "dom_selector": "#find-class", "tag": "button", "id_attr": "find-class", "label_text": "Find class...", "checked": null, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "emp", "dom_selector": "#emp", "tag": "input", "input_type": "text", "name_attr": "employees", "id_attr": "emp", "label_text": "Number of employees", "current_value": "3", "checked": null, "visible": true, "row_text": "Number of employees", "row_cells": ["Number of employees", ""]}, {"control_id": "rev", "dom_selector": "#rev", "tag": "input", "input_type": "text", "name_attr": "annual_revenue", "id_attr": "rev", "label_text": "Annual gross sales ($)", "current_value": "290000", "checked": null, "visible": true, "row_text": "Annual gross sales ($)", "row_cells": ["Annual gross sales ($)", ""]}, {"control_id": "own", "dom_selector": "#own", "tag": "select", "name_attr": "building_owned", "id_attr": "own", "label_text": "Does the insured own the building?", "current_value": "No", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "row_text": "Does the insured own the building?-- select --YesNo", "row_cells": ["Does the insured own the building?", "-- select --YesNo"]}, {"control_id": "bl", "dom_selector": "#bl", "tag": "input", "input_type": "text", "name_attr": "building_limit", "id_attr": "bl", "label_text": "Building limit ($)", "current_value": "0", "checked": null, "visible": true, "row_text": "Building limit ($) enter 0 if not owned", "row_cells": ["Building limit ($)", "enter 0 if not owned"]}, {"control_id": "action#3", "dom_selector": "#location > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save location", "checked": null, "visible": true, "row_text": "Save location", "row_cells": ["Save location"]}, {"control_id": "bpp", "dom_selector": "#bpp", "tag": "input", "input_type": "text", "name_attr": "bpp_limit", "id_attr": "bpp", "label_text": "Business personal property limit ($)", "current_value": "85000", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "bpp-open", "dom_selector": "#bpp-open", "tag": "button", "id_attr": "bpp-open", "label_text": "Open BPP worksheet", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "ll", "dom_selector": "#ll", "tag": "select", "name_attr": "liability_limit", "id_attr": "ll", "label_text": "Liability limits", "current_value": "$1,000,000 / $2,000,000", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "$300,000 / $600,000", "label": "$300,000 / $600,000"}, {"value": "$500,000 / $1,000,000", "label": "$500,000 / $1,000,000"}, {"value": "$1,000,000 / $2,000,000", "label": "$1,000,000 / $2,000,000"}], "row_text": "Liability limits-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate", "row_cells": ["Liability limits", "-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate"]}, {"control_id": "ded", "dom_selector": "#ded", "tag": "select", "name_attr": "deductible", "id_attr": "ded", "label_text": "Property deductible", "current_value": "1000", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}, {"value": "5000", "label": "$5,000"}], "row_text": "Property deductible-- select --$500$1,000$2,500$5,000", "row_cells": ["Property deductible", "-- select --$500$1,000$2,500$5,000"]}, {"control_id": "eff", "dom_selector": "#eff", "tag": "input", "input_type": "text", "name_attr": "effective_date", "id_attr": "eff", "label_text": "Effective date", "current_value": "01/01/2027", "checked": null, "visible": true, "row_text": "Effective date", "row_cells": ["Effective date", ""]}, {"control_id": "action#4", "dom_selector": "#coverage > tbody > tr:nth-of-type(6) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save coverage", "checked": null, "visible": true, "row_text": "Save coverage", "row_cells": ["Save coverage"]}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "name_attr": "action", "id_attr": "rate", "label_text": "Rate this risk", "checked": null, "visible": true}], "text_pairs": [{"label": "Hollowfen Business Mutual", "value": "BOP Rating Worksheet v4.2", "section_text": "", "source": "inline"}], "banners": [], "modals": [], "title": "BOP worksheet"} +FORM_TX_DEMO {"portal": "hollowfen", "step": 26, "why": "before click selector='#rate'>", "frame_url": "http://127.0.0.1:64585/bop/worksheet?saved=coverage#coverage", "is_main": true, "controls": [{"control_id": "en", "dom_selector": "#en", "tag": "input", "input_type": "text", "name_attr": "entity_number", "id_attr": "en", "label_text": "State entity number", "current_value": "LLC-2017-902214", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "action", "dom_selector": "#applicant > tbody > tr:nth-of-type(2) > td > button", "tag": "button", "name_attr": "action", "label_text": "Look up entity", "checked": null, "visible": true, "row_text": "State entity number Look up entityNo registry match. Enter the entity details manually.", "row_cells": ["State entity number", "Look up entityNo registry match. Enter the entity details manually."]}, {"control_id": "ln", "dom_selector": "#ln", "tag": "input", "input_type": "text", "name_attr": "legal_name", "id_attr": "ln", "label_text": "Legal name", "current_value": "Morrow Lane Frames LLC", "checked": null, "visible": true, "row_text": "Legal name", "row_cells": ["Legal name", ""]}, {"control_id": "dba", "dom_selector": "#dba", "tag": "input", "input_type": "text", "name_attr": "dba_name", "id_attr": "dba", "label_text": "Doing business as (DBA)", "current_value": "Morrow Lane Framing", "checked": null, "visible": true, "row_text": "Doing business as (DBA)", "row_cells": ["Doing business as (DBA)", ""]}, {"control_id": "et", "dom_selector": "#et", "tag": "select", "name_attr": "entity_type", "id_attr": "et", "label_text": "Entity type", "current_value": "Limited liability company", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Limited liability company", "label": "Limited liability company"}, {"value": "Corporation", "label": "Corporation"}, {"value": "Sole proprietorship", "label": "Sole proprietorship"}, {"value": "General partnership", "label": "General partnership"}], "row_text": "Entity type-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership", "row_cells": ["Entity type", "-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership"]}, {"control_id": "fein", "dom_selector": "#fein", "tag": "input", "input_type": "text", "name_attr": "fein", "id_attr": "fein", "label_text": "FEIN", "current_value": "82-4471036", "checked": null, "visible": true, "row_text": "FEIN", "row_cells": ["FEIN", ""]}, {"control_id": "ye", "dom_selector": "#ye", "tag": "input", "input_type": "text", "name_attr": "year_established", "id_attr": "ye", "label_text": "Year established", "current_value": "2017", "checked": null, "visible": true, "row_text": "Year established", "row_cells": ["Year established", ""]}, {"control_id": "action#2", "dom_selector": "#applicant > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save applicant", "checked": null, "visible": true, "row_text": "Save applicant", "row_cells": ["Save applicant"]}, {"control_id": "ls", "dom_selector": "#ls", "tag": "input", "input_type": "text", "name_attr": "location_street", "id_attr": "ls", "label_text": "Location street address", "current_value": "56 Morrow Lane", "checked": null, "visible": true, "row_text": "Location street address", "row_cells": ["Location street address", ""]}, {"control_id": "class-code", "dom_selector": "#class-code", "tag": "input", "input_type": "text", "name_attr": "class_code", "id_attr": "class-code", "label_text": "Class code", "current_value": "21890 Picture framing shop", "checked": null, "readonly": true, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "find-class", "dom_selector": "#find-class", "tag": "button", "id_attr": "find-class", "label_text": "Find class...", "checked": null, "visible": true, "row_text": "Class code Find class...", "row_cells": ["Class code", "Find class..."]}, {"control_id": "emp", "dom_selector": "#emp", "tag": "input", "input_type": "text", "name_attr": "employees", "id_attr": "emp", "label_text": "Number of employees", "current_value": "3", "checked": null, "visible": true, "row_text": "Number of employees", "row_cells": ["Number of employees", ""]}, {"control_id": "rev", "dom_selector": "#rev", "tag": "input", "input_type": "text", "name_attr": "annual_revenue", "id_attr": "rev", "label_text": "Annual gross sales ($)", "current_value": "290000", "checked": null, "visible": true, "row_text": "Annual gross sales ($)", "row_cells": ["Annual gross sales ($)", ""]}, {"control_id": "own", "dom_selector": "#own", "tag": "select", "name_attr": "building_owned", "id_attr": "own", "label_text": "Does the insured own the building?", "current_value": "No", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "Yes", "label": "Yes"}, {"value": "No", "label": "No"}], "row_text": "Does the insured own the building?-- select --YesNo", "row_cells": ["Does the insured own the building?", "-- select --YesNo"]}, {"control_id": "bl", "dom_selector": "#bl", "tag": "input", "input_type": "text", "name_attr": "building_limit", "id_attr": "bl", "label_text": "Building limit ($)", "current_value": "0", "checked": null, "visible": true, "row_text": "Building limit ($) enter 0 if not owned", "row_cells": ["Building limit ($)", "enter 0 if not owned"]}, {"control_id": "action#3", "dom_selector": "#location > tbody > tr:nth-of-type(8) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save location", "checked": null, "visible": true, "row_text": "Save location", "row_cells": ["Save location"]}, {"control_id": "bpp", "dom_selector": "#bpp", "tag": "input", "input_type": "text", "name_attr": "bpp_limit", "id_attr": "bpp", "label_text": "Business personal property limit ($)", "current_value": "85000", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "bpp-open", "dom_selector": "#bpp-open", "tag": "button", "id_attr": "bpp-open", "label_text": "Open BPP worksheet", "checked": null, "visible": true, "row_text": "Business personal property limit ($) Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit", "row_cells": ["Business personal property limit ($)", "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit"]}, {"control_id": "ll", "dom_selector": "#ll", "tag": "select", "name_attr": "liability_limit", "id_attr": "ll", "label_text": "Liability limits", "current_value": "$1,000,000 / $2,000,000", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "$300,000 / $600,000", "label": "$300,000 / $600,000"}, {"value": "$500,000 / $1,000,000", "label": "$500,000 / $1,000,000"}, {"value": "$1,000,000 / $2,000,000", "label": "$1,000,000 / $2,000,000"}], "row_text": "Liability limits-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate", "row_cells": ["Liability limits", "-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate"]}, {"control_id": "ded", "dom_selector": "#ded", "tag": "select", "name_attr": "deductible", "id_attr": "ded", "label_text": "Property deductible", "current_value": "1000", "checked": null, "visible": true, "options": [{"value": "", "label": "-- select --"}, {"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}, {"value": "2500", "label": "$2,500"}, {"value": "5000", "label": "$5,000"}], "row_text": "Property deductible-- select --$500$1,000$2,500$5,000", "row_cells": ["Property deductible", "-- select --$500$1,000$2,500$5,000"]}, {"control_id": "eff", "dom_selector": "#eff", "tag": "input", "input_type": "text", "name_attr": "effective_date", "id_attr": "eff", "label_text": "Effective date", "current_value": "01/01/2027", "checked": null, "visible": true, "row_text": "Effective date", "row_cells": ["Effective date", ""]}, {"control_id": "action#4", "dom_selector": "#coverage > tbody > tr:nth-of-type(6) > td > button", "tag": "button", "name_attr": "action", "label_text": "Save coverage", "checked": null, "visible": true, "row_text": "Save coverage", "row_cells": ["Save coverage"]}, {"control_id": "rate", "dom_selector": "#rate", "tag": "button", "name_attr": "action", "id_attr": "rate", "label_text": "Rate this risk", "checked": null, "visible": true}], "text_pairs": [{"label": "Hollowfen Business Mutual", "value": "BOP Rating Worksheet v4.2", "section_text": "", "source": "inline"}], "banners": [], "modals": [], "title": "BOP worksheet"} +FORM_TX_DEMO {"portal": "hollowfen", "step": 27, "why": "before click selector='internal:role=button[name=\"Submit application\"i]'>", "frame_url": "http://127.0.0.1:64585/bop/summary", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "body > div:nth-of-type(2) > form > button", "tag": "button", "label_text": "Submit application", "section_text": "Rating summary", "checked": null, "visible": true}], "text_pairs": [{"label": "Legal name", "value": "Morrow Lane Frames LLC", "section_text": "Rating summary", "source": "table_row"}, {"label": "Doing business as (DBA)", "value": "Morrow Lane Framing", "section_text": "Rating summary", "source": "table_row"}, {"label": "Entity type", "value": "Limited liability company", "section_text": "Rating summary", "source": "table_row"}, {"label": "FEIN", "value": "82-4471036", "section_text": "Rating summary", "source": "table_row"}, {"label": "Year established", "value": "2017", "section_text": "Rating summary", "source": "table_row"}, {"label": "Location street address", "value": "56 Morrow Lane", "section_text": "Rating summary", "source": "table_row"}, {"label": "Class code", "value": "21890 Picture framing shop", "section_text": "Rating summary", "source": "table_row"}, {"label": "Number of employees", "value": "3", "section_text": "Rating summary", "source": "table_row"}, {"label": "Annual gross sales", "value": "$290,000", "section_text": "Rating summary", "source": "table_row"}, {"label": "Owns building", "value": "No", "section_text": "Rating summary", "source": "table_row"}, {"label": "Building limit", "value": "$0", "section_text": "Rating summary", "source": "table_row"}, {"label": "Business personal property limit", "value": "$85,000", "section_text": "Rating summary", "source": "table_row"}, {"label": "Liability limits", "value": "$1,000,000 / $2,000,000", "section_text": "Rating summary", "source": "table_row"}, {"label": "Property deductible", "value": "$1,000", "section_text": "Rating summary", "source": "table_row"}, {"label": "Effective date", "value": "01/01/2027", "section_text": "Rating summary", "source": "table_row"}, {"label": "Indicated annual premium", "value": "$589", "section_text": "Rating summary", "source": "table_row"}, {"label": "Hollowfen Business Mutual", "value": "BOP Rating Worksheet v4.2", "section_text": "", "source": "inline"}], "banners": [], "modals": [], "title": "Rating summary"} +FORM_TX_DEMO {"portal": "hollowfen", "step": 28, "why": "end of case", "frame_url": "http://127.0.0.1:64585/bop/issued/HBM-880301", "is_main": true, "controls": [], "text_pairs": [{"label": "legal name", "value": "Morrow Lane Frames LLC", "section_text": "Application received", "source": "table_row"}, {"label": "dba name", "value": "Morrow Lane Framing", "section_text": "Application received", "source": "table_row"}, {"label": "entity type", "value": "Limited liability company", "section_text": "Application received", "source": "table_row"}, {"label": "fein", "value": "82-4471036", "section_text": "Application received", "source": "table_row"}, {"label": "year established", "value": "2017", "section_text": "Application received", "source": "table_row"}, {"label": "location street", "value": "56 Morrow Lane", "section_text": "Application received", "source": "table_row"}, {"label": "class code", "value": "21890 Picture framing shop", "section_text": "Application received", "source": "table_row"}, {"label": "employees", "value": "3", "section_text": "Application received", "source": "table_row"}, {"label": "annual revenue", "value": "290000", "section_text": "Application received", "source": "table_row"}, {"label": "building owned", "value": "False", "section_text": "Application received", "source": "table_row"}, {"label": "building limit", "value": "0", "section_text": "Application received", "source": "table_row"}, {"label": "bpp limit", "value": "85000", "section_text": "Application received", "source": "table_row"}, {"label": "liability limit", "value": "$1,000,000 / $2,000,000", "section_text": "Application received", "source": "table_row"}, {"label": "deductible", "value": "1000", "section_text": "Application received", "source": "table_row"}, {"label": "hnoa", "value": "", "section_text": "Application received", "source": "table_row"}, {"label": "effective date", "value": "2027-01-01", "section_text": "Application received", "source": "table_row"}, {"label": "Hollowfen Business Mutual", "value": "BOP Rating Worksheet v4.2", "section_text": "", "source": "inline"}], "banners": [], "modals": [], "title": "Application received"} +FORM_TX_DEMO_RESULT [{"case_id": "hbm-d01", "correct": true}] diff --git a/packages/flow/benchmark/form_tx_set4v2_run/demos/larkspan.jsonl b/packages/flow/benchmark/form_tx_set4v2_run/demos/larkspan.jsonl new file mode 100644 index 0000000000..697c093f83 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/demos/larkspan.jsonl @@ -0,0 +1,26 @@ +FORM_TX_DEMO {"portal": "larkspan", "step": 0, "why": "before fill selector='internal:label=\"Member number\"s'>", "frame_url": "http://127.0.0.1:64559/member/sign-in", "is_main": true, "controls": [{"control_id": "m", "dom_selector": "#m", "tag": "input", "input_type": "text", "name_attr": "member", "id_attr": "m", "label_text": "Member number", "section_text": "Sign in", "checked": null, "visible": true}, {"control_id": "pw", "dom_selector": "#pw", "tag": "input", "input_type": "password", "name_attr": "password", "id_attr": "pw", "label_text": "Password", "section_text": "Sign in", "checked": null, "visible": true, "is_secret": true}, {"control_id": "ctrl_2", "dom_selector": "body > div:nth-of-type(2) > div > form > button", "tag": "button", "label_text": "Sign in", "section_text": "Sign in", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Sign in"} +FORM_TX_DEMO {"portal": "larkspan", "step": 1, "why": "before fill selector='internal:label=\"Password\"s'>", "frame_url": "http://127.0.0.1:64559/member/sign-in", "is_main": true, "controls": [{"control_id": "m", "dom_selector": "#m", "tag": "input", "input_type": "text", "name_attr": "member", "id_attr": "m", "label_text": "Member number", "section_text": "Sign in", "current_value": "LTA-552190", "checked": null, "visible": true}, {"control_id": "pw", "dom_selector": "#pw", "tag": "input", "input_type": "password", "name_attr": "password", "id_attr": "pw", "label_text": "Password", "section_text": "Sign in", "checked": null, "visible": true, "is_secret": true}, {"control_id": "ctrl_2", "dom_selector": "body > div:nth-of-type(2) > div > form > button", "tag": "button", "label_text": "Sign in", "section_text": "Sign in", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Sign in"} +FORM_TX_DEMO {"portal": "larkspan", "step": 2, "why": "before click selector='internal:role=button[name=\"Sign in\"i]'>", "frame_url": "http://127.0.0.1:64559/member/sign-in", "is_main": true, "controls": [{"control_id": "m", "dom_selector": "#m", "tag": "input", "input_type": "text", "name_attr": "member", "id_attr": "m", "label_text": "Member number", "section_text": "Sign in", "current_value": "LTA-552190", "checked": null, "visible": true}, {"control_id": "pw", "dom_selector": "#pw", "tag": "input", "input_type": "password", "name_attr": "password", "id_attr": "pw", "label_text": "Password", "section_text": "Sign in", "current_value": "", "checked": null, "visible": true, "is_secret": true}, {"control_id": "ctrl_2", "dom_selector": "body > div:nth-of-type(2) > div > form > button", "tag": "button", "label_text": "Sign in", "section_text": "Sign in", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Sign in"} +FORM_TX_DEMO {"portal": "larkspan", "step": 3, "why": "before fill selector='[data-step=\\'details\\'] >> internal:label=\"Full name\"s'>", "frame_url": "http://127.0.0.1:64559/trip", "is_main": true, "controls": [{"control_id": "d-name", "dom_selector": "#d-name", "tag": "input", "input_type": "text", "id_attr": "d-name", "label_text": "Full name", "section_text": "First, about you", "checked": null, "visible": true}, {"control_id": "d-email", "dom_selector": "#d-email", "tag": "input", "input_type": "email", "id_attr": "d-email", "label_text": "Email", "section_text": "First, about you", "checked": null, "visible": true}, {"control_id": "d-phone", "dom_selector": "#d-phone", "tag": "input", "input_type": "tel", "id_attr": "d-phone", "label_text": "Mobile phone", "section_text": "First, about you", "checked": null, "visible": true}, {"control_id": "d-state", "dom_selector": "#d-state", "tag": "select", "id_attr": "d-state", "label_text": "State of residence", "section_text": "First, about you", "current_value": "Choose a state", "checked": null, "visible": true, "options": [{"value": "", "label": "Choose a state"}, {"value": "Arizona", "label": "Arizona"}, {"value": "California", "label": "California"}, {"value": "Colorado", "label": "Colorado"}, {"value": "Illinois", "label": "Illinois"}, {"value": "Maine", "label": "Maine"}, {"value": "Minnesota", "label": "Minnesota"}, {"value": "Oregon", "label": "Oregon"}, {"value": "Texas", "label": "Texas"}, {"value": "Vermont", "label": "Vermont"}, {"value": "Washington", "label": "Washington"}]}, {"control_id": "ctrl_4", "dom_selector": "#details-form > button", "tag": "button", "label_text": "Continue", "section_text": "First, about you", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a travel quote"} +FORM_TX_DEMO {"portal": "larkspan", "step": 4, "why": "before fill selector='[data-step=\\'details\\'] >> internal:label=\"Email\"s'>", "frame_url": "http://127.0.0.1:64559/trip", "is_main": true, "controls": [{"control_id": "d-name", "dom_selector": "#d-name", "tag": "input", "input_type": "text", "id_attr": "d-name", "label_text": "Full name", "section_text": "First, about you", "current_value": "Odile Fairweather", "checked": null, "visible": true}, {"control_id": "d-email", "dom_selector": "#d-email", "tag": "input", "input_type": "email", "id_attr": "d-email", "label_text": "Email", "section_text": "First, about you", "checked": null, "visible": true}, {"control_id": "d-phone", "dom_selector": "#d-phone", "tag": "input", "input_type": "tel", "id_attr": "d-phone", "label_text": "Mobile phone", "section_text": "First, about you", "checked": null, "visible": true}, {"control_id": "d-state", "dom_selector": "#d-state", "tag": "select", "id_attr": "d-state", "label_text": "State of residence", "section_text": "First, about you", "current_value": "Choose a state", "checked": null, "visible": true, "options": [{"value": "", "label": "Choose a state"}, {"value": "Arizona", "label": "Arizona"}, {"value": "California", "label": "California"}, {"value": "Colorado", "label": "Colorado"}, {"value": "Illinois", "label": "Illinois"}, {"value": "Maine", "label": "Maine"}, {"value": "Minnesota", "label": "Minnesota"}, {"value": "Oregon", "label": "Oregon"}, {"value": "Texas", "label": "Texas"}, {"value": "Vermont", "label": "Vermont"}, {"value": "Washington", "label": "Washington"}]}, {"control_id": "ctrl_4", "dom_selector": "#details-form > button", "tag": "button", "label_text": "Continue", "section_text": "First, about you", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a travel quote"} +FORM_TX_DEMO {"portal": "larkspan", "step": 5, "why": "before fill selector='[data-step=\\'details\\'] >> internal:label=\"Mobile phone\"s'>", "frame_url": "http://127.0.0.1:64559/trip", "is_main": true, "controls": [{"control_id": "d-name", "dom_selector": "#d-name", "tag": "input", "input_type": "text", "id_attr": "d-name", "label_text": "Full name", "section_text": "First, about you", "current_value": "Odile Fairweather", "checked": null, "visible": true}, {"control_id": "d-email", "dom_selector": "#d-email", "tag": "input", "input_type": "email", "id_attr": "d-email", "label_text": "Email", "section_text": "First, about you", "current_value": "odile.f@example.test", "checked": null, "visible": true}, {"control_id": "d-phone", "dom_selector": "#d-phone", "tag": "input", "input_type": "tel", "id_attr": "d-phone", "label_text": "Mobile phone", "section_text": "First, about you", "checked": null, "visible": true}, {"control_id": "d-state", "dom_selector": "#d-state", "tag": "select", "id_attr": "d-state", "label_text": "State of residence", "section_text": "First, about you", "current_value": "Choose a state", "checked": null, "visible": true, "options": [{"value": "", "label": "Choose a state"}, {"value": "Arizona", "label": "Arizona"}, {"value": "California", "label": "California"}, {"value": "Colorado", "label": "Colorado"}, {"value": "Illinois", "label": "Illinois"}, {"value": "Maine", "label": "Maine"}, {"value": "Minnesota", "label": "Minnesota"}, {"value": "Oregon", "label": "Oregon"}, {"value": "Texas", "label": "Texas"}, {"value": "Vermont", "label": "Vermont"}, {"value": "Washington", "label": "Washington"}]}, {"control_id": "ctrl_4", "dom_selector": "#details-form > button", "tag": "button", "label_text": "Continue", "section_text": "First, about you", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a travel quote"} +FORM_TX_DEMO {"portal": "larkspan", "step": 6, "why": "before select_option selector='[data-step=\\'details\\'] >> internal:label=\"State of residence\"s'>", "frame_url": "http://127.0.0.1:64559/trip", "is_main": true, "controls": [{"control_id": "d-name", "dom_selector": "#d-name", "tag": "input", "input_type": "text", "id_attr": "d-name", "label_text": "Full name", "section_text": "First, about you", "current_value": "Odile Fairweather", "checked": null, "visible": true}, {"control_id": "d-email", "dom_selector": "#d-email", "tag": "input", "input_type": "email", "id_attr": "d-email", "label_text": "Email", "section_text": "First, about you", "current_value": "odile.f@example.test", "checked": null, "visible": true}, {"control_id": "d-phone", "dom_selector": "#d-phone", "tag": "input", "input_type": "tel", "id_attr": "d-phone", "label_text": "Mobile phone", "section_text": "First, about you", "current_value": "503-555-0112", "checked": null, "visible": true}, {"control_id": "d-state", "dom_selector": "#d-state", "tag": "select", "id_attr": "d-state", "label_text": "State of residence", "section_text": "First, about you", "current_value": "Choose a state", "checked": null, "visible": true, "options": [{"value": "", "label": "Choose a state"}, {"value": "Arizona", "label": "Arizona"}, {"value": "California", "label": "California"}, {"value": "Colorado", "label": "Colorado"}, {"value": "Illinois", "label": "Illinois"}, {"value": "Maine", "label": "Maine"}, {"value": "Minnesota", "label": "Minnesota"}, {"value": "Oregon", "label": "Oregon"}, {"value": "Texas", "label": "Texas"}, {"value": "Vermont", "label": "Vermont"}, {"value": "Washington", "label": "Washington"}]}, {"control_id": "ctrl_4", "dom_selector": "#details-form > button", "tag": "button", "label_text": "Continue", "section_text": "First, about you", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a travel quote"} +FORM_TX_DEMO {"portal": "larkspan", "step": 7, "why": "before click selector='[data-step=\\'details\\'] >> internal:role=button[name=\"Continue\"i]'>", "frame_url": "http://127.0.0.1:64559/trip", "is_main": true, "controls": [{"control_id": "d-name", "dom_selector": "#d-name", "tag": "input", "input_type": "text", "id_attr": "d-name", "label_text": "Full name", "section_text": "First, about you", "current_value": "Odile Fairweather", "checked": null, "visible": true}, {"control_id": "d-email", "dom_selector": "#d-email", "tag": "input", "input_type": "email", "id_attr": "d-email", "label_text": "Email", "section_text": "First, about you", "current_value": "odile.f@example.test", "checked": null, "visible": true}, {"control_id": "d-phone", "dom_selector": "#d-phone", "tag": "input", "input_type": "tel", "id_attr": "d-phone", "label_text": "Mobile phone", "section_text": "First, about you", "current_value": "503-555-0112", "checked": null, "visible": true}, {"control_id": "d-state", "dom_selector": "#d-state", "tag": "select", "id_attr": "d-state", "label_text": "State of residence", "section_text": "First, about you", "current_value": "Oregon", "checked": null, "visible": true, "options": [{"value": "", "label": "Choose a state"}, {"value": "Arizona", "label": "Arizona"}, {"value": "California", "label": "California"}, {"value": "Colorado", "label": "Colorado"}, {"value": "Illinois", "label": "Illinois"}, {"value": "Maine", "label": "Maine"}, {"value": "Minnesota", "label": "Minnesota"}, {"value": "Oregon", "label": "Oregon"}, {"value": "Texas", "label": "Texas"}, {"value": "Vermont", "label": "Vermont"}, {"value": "Washington", "label": "Washington"}]}, {"control_id": "ctrl_4", "dom_selector": "#details-form > button", "tag": "button", "label_text": "Continue", "section_text": "First, about you", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a travel quote"} +FORM_TX_DEMO {"portal": "larkspan", "step": 8, "why": "before fill selector='[data-step=\\'destination\\'] >> internal:label=\"Destination\"s'>", "frame_url": "http://127.0.0.1:64559/trip", "is_main": true, "controls": [{"control_id": "dest", "dom_selector": "#dest", "tag": "input", "input_type": "text", "role": "combobox", "id_attr": "dest", "label_text": "Destination", "section_text": "Where are you going?", "checked": null, "visible": true, "row_text": "Where are you going? Destination Continue"}, {"control_id": "ctrl_1", "dom_selector": "body > div:nth-of-type(2) > section:nth-of-type(2) > button", "tag": "button", "label_text": "Continue", "section_text": "Where are you going?", "checked": null, "visible": true, "row_text": "Where are you going? Destination Continue"}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a travel quote"} +FORM_TX_DEMO {"portal": "larkspan", "step": 9, "why": "before press_sequentially selector='[data-step=\\'destination\\'] >> internal:label=\"Destination\"s'>", "frame_url": "http://127.0.0.1:64559/trip", "is_main": true, "controls": [{"control_id": "dest", "dom_selector": "#dest", "tag": "input", "input_type": "text", "role": "combobox", "id_attr": "dest", "label_text": "Destination", "section_text": "Where are you going?", "checked": null, "visible": true, "row_text": "Where are you going? Destination Continue"}, {"control_id": "ctrl_1", "dom_selector": "body > div:nth-of-type(2) > section:nth-of-type(2) > button", "tag": "button", "label_text": "Continue", "section_text": "Where are you going?", "checked": null, "visible": true, "row_text": "Where are you going? Destination Continue"}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a travel quote"} +FORM_TX_DEMO {"portal": "larkspan", "step": 10, "why": "before click selector=\"[data-step='destination'] >> #dest-list [role=option] >> nth=0\">", "frame_url": "http://127.0.0.1:64559/trip", "is_main": true, "controls": [{"control_id": "dest", "dom_selector": "#dest", "tag": "input", "input_type": "text", "role": "combobox", "id_attr": "dest", "label_text": "Destination", "section_text": "Where are you going?", "current_value": "Portugal", "checked": null, "visible": true, "row_text": "Where are you going? Destination Portugal - Southern Europe Continue"}, {"control_id": "ctrl_1", "dom_selector": "body > div:nth-of-type(2) > section:nth-of-type(2) > button", "tag": "button", "label_text": "Continue", "section_text": "Where are you going?", "checked": null, "visible": true, "row_text": "Where are you going? Destination Portugal - Southern Europe Continue"}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a travel quote"} +FORM_TX_DEMO {"portal": "larkspan", "step": 11, "why": "before click selector='[data-step=\\'destination\\'] >> internal:role=button[name=\"Continue\"i]'>", "frame_url": "http://127.0.0.1:64559/trip", "is_main": true, "controls": [{"control_id": "dest", "dom_selector": "#dest", "tag": "input", "input_type": "text", "role": "combobox", "id_attr": "dest", "label_text": "Destination", "section_text": "Where are you going?", "current_value": "Portugal - Southern Europe", "checked": null, "visible": true, "row_text": "Where are you going? Destination Portugal - Southern Europe Continue"}, {"control_id": "ctrl_1", "dom_selector": "body > div:nth-of-type(2) > section:nth-of-type(2) > button", "tag": "button", "label_text": "Continue", "section_text": "Where are you going?", "checked": null, "visible": true, "row_text": "Where are you going? Destination Portugal - Southern Europe Continue"}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a travel quote"} +FORM_TX_DEMO {"portal": "larkspan", "step": 12, "why": "before fill selector='[data-step=\\'dates\\'] >> internal:label=\"Departure date\"s'>", "frame_url": "http://127.0.0.1:64559/trip", "is_main": true, "controls": [{"control_id": "dep", "dom_selector": "#dep", "tag": "input", "input_type": "text", "id_attr": "dep", "label_text": "Departure date", "section_text": "When are you travelling?", "checked": null, "visible": true}, {"control_id": "ret", "dom_selector": "#ret", "tag": "input", "input_type": "text", "id_attr": "ret", "label_text": "Return date", "section_text": "When are you travelling?", "checked": null, "visible": true}, {"control_id": "ctrl_2", "dom_selector": "body > div:nth-of-type(2) > section:nth-of-type(3) > button", "tag": "button", "label_text": "Continue", "section_text": "When are you travelling?", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a travel quote"} +FORM_TX_DEMO {"portal": "larkspan", "step": 13, "why": "before fill selector='[data-step=\\'dates\\'] >> internal:label=\"Return date\"s'>", "frame_url": "http://127.0.0.1:64559/trip", "is_main": true, "controls": [{"control_id": "dep", "dom_selector": "#dep", "tag": "input", "input_type": "text", "id_attr": "dep", "label_text": "Departure date", "section_text": "When are you travelling?", "current_value": "05/04/2027", "checked": null, "visible": true}, {"control_id": "ret", "dom_selector": "#ret", "tag": "input", "input_type": "text", "id_attr": "ret", "label_text": "Return date", "section_text": "When are you travelling?", "checked": null, "visible": true}, {"control_id": "ctrl_2", "dom_selector": "body > div:nth-of-type(2) > section:nth-of-type(3) > button", "tag": "button", "label_text": "Continue", "section_text": "When are you travelling?", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a travel quote"} +FORM_TX_DEMO {"portal": "larkspan", "step": 14, "why": "before click selector='[data-step=\\'dates\\'] >> internal:role=button[name=\"Continue\"i]'>", "frame_url": "http://127.0.0.1:64559/trip", "is_main": true, "controls": [{"control_id": "dep", "dom_selector": "#dep", "tag": "input", "input_type": "text", "id_attr": "dep", "label_text": "Departure date", "section_text": "When are you travelling?", "current_value": "05/04/2027", "checked": null, "visible": true}, {"control_id": "ret", "dom_selector": "#ret", "tag": "input", "input_type": "text", "id_attr": "ret", "label_text": "Return date", "section_text": "When are you travelling?", "current_value": "05/14/2027", "checked": null, "visible": true}, {"control_id": "ctrl_2", "dom_selector": "body > div:nth-of-type(2) > section:nth-of-type(3) > button", "tag": "button", "label_text": "Continue", "section_text": "When are you travelling?", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a travel quote"} +FORM_TX_DEMO {"portal": "larkspan", "step": 15, "why": "before fill selector='[data-step=\\'travellers\\'] >> #trav-list fieldset >> nth=0 >> internal:label=\"Full name\"s'>", "frame_url": "http://127.0.0.1:64559/trip", "is_main": true, "controls": [{"control_id": "tn0", "dom_selector": "#tn0", "tag": "input", "input_type": "text", "id_attr": "tn0", "label_text": "Full name", "section_text": "Traveller 1", "checked": null, "visible": true}, {"control_id": "td0", "dom_selector": "#td0", "tag": "input", "input_type": "text", "id_attr": "td0", "label_text": "Date of birth", "section_text": "Traveller 1", "checked": null, "visible": true}, {"control_id": "trav-add", "dom_selector": "#trav-add", "tag": "button", "id_attr": "trav-add", "label_text": "Add another traveller", "section_text": "Who's travelling?", "checked": null, "visible": true}, {"control_id": "ctrl_3", "dom_selector": "body > div:nth-of-type(2) > section:nth-of-type(4) > button:nth-of-type(2)", "tag": "button", "label_text": "Continue", "section_text": "Who's travelling?", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a travel quote"} +FORM_TX_DEMO {"portal": "larkspan", "step": 16, "why": "before fill selector='[data-step=\\'travellers\\'] >> #trav-list fieldset >> nth=0 >> internal:label=\"Date of birth\"s'>", "frame_url": "http://127.0.0.1:64559/trip", "is_main": true, "controls": [{"control_id": "tn0", "dom_selector": "#tn0", "tag": "input", "input_type": "text", "id_attr": "tn0", "label_text": "Full name", "section_text": "Traveller 1", "current_value": "Odile Fairweather", "checked": null, "visible": true}, {"control_id": "td0", "dom_selector": "#td0", "tag": "input", "input_type": "text", "id_attr": "td0", "label_text": "Date of birth", "section_text": "Traveller 1", "checked": null, "visible": true}, {"control_id": "trav-add", "dom_selector": "#trav-add", "tag": "button", "id_attr": "trav-add", "label_text": "Add another traveller", "section_text": "Who's travelling?", "checked": null, "visible": true}, {"control_id": "ctrl_3", "dom_selector": "body > div:nth-of-type(2) > section:nth-of-type(4) > button:nth-of-type(2)", "tag": "button", "label_text": "Continue", "section_text": "Who's travelling?", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a travel quote"} +FORM_TX_DEMO {"portal": "larkspan", "step": 17, "why": "before click selector='[data-step=\\'travellers\\'] >> internal:role=button[name=\"Continue\"i]'>", "frame_url": "http://127.0.0.1:64559/trip", "is_main": true, "controls": [{"control_id": "tn0", "dom_selector": "#tn0", "tag": "input", "input_type": "text", "id_attr": "tn0", "label_text": "Full name", "section_text": "Traveller 1", "current_value": "Odile Fairweather", "checked": null, "visible": true}, {"control_id": "td0", "dom_selector": "#td0", "tag": "input", "input_type": "text", "id_attr": "td0", "label_text": "Date of birth", "section_text": "Traveller 1", "current_value": "03/22/1979", "checked": null, "visible": true}, {"control_id": "trav-add", "dom_selector": "#trav-add", "tag": "button", "id_attr": "trav-add", "label_text": "Add another traveller", "section_text": "Who's travelling?", "checked": null, "visible": true}, {"control_id": "ctrl_3", "dom_selector": "body > div:nth-of-type(2) > section:nth-of-type(4) > button:nth-of-type(2)", "tag": "button", "label_text": "Continue", "section_text": "Who's travelling?", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a travel quote"} +FORM_TX_DEMO {"portal": "larkspan", "step": 18, "why": "before fill selector='[data-step=\\'cost\\'] >> internal:label=\"Total prepaid trip cost ($)\"s'>", "frame_url": "http://127.0.0.1:64559/trip", "is_main": true, "controls": [{"control_id": "cost", "dom_selector": "#cost", "tag": "input", "input_type": "text", "id_attr": "cost", "label_text": "Total prepaid trip cost ($)", "section_text": "What did the trip cost?", "checked": null, "visible": true}, {"control_id": "calc-open", "dom_selector": "#calc-open", "tag": "button", "id_attr": "calc-open", "label_text": "Help me add it up", "section_text": "What did the trip cost?", "checked": null, "visible": true}, {"control_id": "ctrl_2", "dom_selector": "body > div:nth-of-type(2) > section:nth-of-type(5) > button:nth-of-type(2)", "tag": "button", "label_text": "Continue", "section_text": "What did the trip cost?", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a travel quote"} +FORM_TX_DEMO {"portal": "larkspan", "step": 19, "why": "before click selector='[data-step=\\'cost\\'] >> internal:role=button[name=\"Continue\"i]'>", "frame_url": "http://127.0.0.1:64559/trip", "is_main": true, "controls": [{"control_id": "cost", "dom_selector": "#cost", "tag": "input", "input_type": "text", "id_attr": "cost", "label_text": "Total prepaid trip cost ($)", "section_text": "What did the trip cost?", "current_value": "3420", "checked": null, "visible": true}, {"control_id": "calc-open", "dom_selector": "#calc-open", "tag": "button", "id_attr": "calc-open", "label_text": "Help me add it up", "section_text": "What did the trip cost?", "checked": null, "visible": true}, {"control_id": "ctrl_2", "dom_selector": "body > div:nth-of-type(2) > section:nth-of-type(5) > button:nth-of-type(2)", "tag": "button", "label_text": "Continue", "section_text": "What did the trip cost?", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a travel quote"} +FORM_TX_DEMO {"portal": "larkspan", "step": 20, "why": "before check selector=\"[data-step='plan'] >> #plans >> internal:role=radio >> nth=1\">", "frame_url": "http://127.0.0.1:64559/trip", "is_main": true, "controls": [{"control_id": "plan", "dom_selector": "input[name=\"plan\"][value=\"Essential\"]", "tag": "input", "input_type": "radio", "name_attr": "plan", "label_text": "Essential", "section_text": "Choose a plan", "checked": false, "visible": true, "options": [{"value": "Essential", "label": "Essential"}, {"value": "Plus", "label": "Plus"}, {"value": "Premier", "label": "Premier"}], "radio_value": "Essential", "radio_group": "name:plan@doc", "group_label": "Choose a plan", "row_text": "Choose a plan Essential Plus Premier"}, {"control_id": "plan#2", "dom_selector": "input[name=\"plan\"][value=\"Plus\"]", "tag": "input", "input_type": "radio", "name_attr": "plan", "label_text": "Plus", "section_text": "Choose a plan", "checked": false, "visible": true, "options": [{"value": "Essential", "label": "Essential"}, {"value": "Plus", "label": "Plus"}, {"value": "Premier", "label": "Premier"}], "radio_value": "Plus", "radio_group": "name:plan@doc", "group_label": "Choose a plan", "row_text": "Choose a plan Essential Plus Premier"}, {"control_id": "plan#3", "dom_selector": "input[name=\"plan\"][value=\"Premier\"]", "tag": "input", "input_type": "radio", "name_attr": "plan", "label_text": "Premier", "section_text": "Choose a plan", "checked": false, "visible": true, "options": [{"value": "Essential", "label": "Essential"}, {"value": "Plus", "label": "Plus"}, {"value": "Premier", "label": "Premier"}], "radio_value": "Premier", "radio_group": "name:plan@doc", "group_label": "Choose a plan", "row_text": "Choose a plan Essential Plus Premier"}, {"control_id": "cfar", "dom_selector": "#cfar", "tag": "input", "input_type": "checkbox", "id_attr": "cfar", "label_text": "Add Cancel For Any Reason (CFAR)", "section_text": "Choose your cover", "current_value": "false", "checked": false, "visible": true, "row_text": "Add Cancel For Any Reason (CFAR)"}, {"control_id": "ctrl_4", "dom_selector": "body > div:nth-of-type(2) > section:nth-of-type(6) > button", "tag": "button", "label_text": "Continue", "section_text": "Choose your cover", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a travel quote"} +FORM_TX_DEMO {"portal": "larkspan", "step": 21, "why": "before click selector='[data-step=\\'plan\\'] >> internal:role=button[name=\"Continue\"i]'>", "frame_url": "http://127.0.0.1:64559/trip", "is_main": true, "controls": [{"control_id": "plan", "dom_selector": "input[name=\"plan\"][value=\"Essential\"]", "tag": "input", "input_type": "radio", "name_attr": "plan", "label_text": "Essential", "section_text": "Choose a plan", "checked": false, "visible": true, "options": [{"value": "Essential", "label": "Essential"}, {"value": "Plus", "label": "Plus"}, {"value": "Premier", "label": "Premier"}], "radio_value": "Essential", "radio_group": "name:plan@doc", "group_label": "Choose a plan", "row_text": "Choose a plan Essential Plus Premier"}, {"control_id": "plan#2", "dom_selector": "input[name=\"plan\"][value=\"Plus\"]", "tag": "input", "input_type": "radio", "name_attr": "plan", "label_text": "Plus", "section_text": "Choose a plan", "current_value": "Plus", "checked": true, "visible": true, "options": [{"value": "Essential", "label": "Essential"}, {"value": "Plus", "label": "Plus"}, {"value": "Premier", "label": "Premier"}], "radio_value": "Plus", "radio_group": "name:plan@doc", "group_label": "Choose a plan", "row_text": "Choose a plan Essential Plus Premier"}, {"control_id": "plan#3", "dom_selector": "input[name=\"plan\"][value=\"Premier\"]", "tag": "input", "input_type": "radio", "name_attr": "plan", "label_text": "Premier", "section_text": "Choose a plan", "checked": false, "visible": true, "options": [{"value": "Essential", "label": "Essential"}, {"value": "Plus", "label": "Plus"}, {"value": "Premier", "label": "Premier"}], "radio_value": "Premier", "radio_group": "name:plan@doc", "group_label": "Choose a plan", "row_text": "Choose a plan Essential Plus Premier"}, {"control_id": "cfar", "dom_selector": "#cfar", "tag": "input", "input_type": "checkbox", "id_attr": "cfar", "label_text": "Add Cancel For Any Reason (CFAR)", "section_text": "Choose your cover", "current_value": "false", "checked": false, "visible": true, "row_text": "Add Cancel For Any Reason (CFAR)"}, {"control_id": "ctrl_4", "dom_selector": "body > div:nth-of-type(2) > section:nth-of-type(6) > button", "tag": "button", "label_text": "Continue", "section_text": "Choose your cover", "checked": null, "visible": true}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a travel quote"} +FORM_TX_DEMO {"portal": "larkspan", "step": 22, "why": "before check selector='internal:label=\"I confirm the details above are correct\"i'>", "frame_url": "http://127.0.0.1:64559/trip", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#rev > div:nth-of-type(1) > button", "tag": "button", "label_text": "Edit Name", "section_text": "Check everything", "checked": null, "visible": true, "row_text": "Check everything NameOdile FairweatherEditEmailodile.f@example.testEditMobile phone503-555-0112EditState of residenceOregonEditDestinationPortugal - Southern EuropeEditDeparture date05/04/2027EditReturn date05/14/2027EditTravellersOdile Fairweather (03/22/1979)EditTrip cost$3,420EditPlanPlusEditCancel For Any ReasonNoEdit I confirm the details above are correct Get my quote"}, {"control_id": "ctrl_1", "dom_selector": "#rev > div:nth-of-type(2) > button", "tag": "button", "label_text": "Edit Email", "section_text": "Check everything", "checked": null, "visible": true, "row_text": "Check everything NameOdile FairweatherEditEmailodile.f@example.testEditMobile phone503-555-0112EditState of residenceOregonEditDestinationPortugal - Southern EuropeEditDeparture date05/04/2027EditReturn date05/14/2027EditTravellersOdile Fairweather (03/22/1979)EditTrip cost$3,420EditPlanPlusEditCancel For Any ReasonNoEdit I confirm the details above are correct Get my quote"}, {"control_id": "ctrl_2", "dom_selector": "#rev > div:nth-of-type(3) > button", "tag": "button", "label_text": "Edit Mobile phone", "section_text": "Check everything", "checked": null, "visible": true, "row_text": "Check everything NameOdile FairweatherEditEmailodile.f@example.testEditMobile phone503-555-0112EditState of residenceOregonEditDestinationPortugal - Southern EuropeEditDeparture date05/04/2027EditReturn date05/14/2027EditTravellersOdile Fairweather (03/22/1979)EditTrip cost$3,420EditPlanPlusEditCancel For Any ReasonNoEdit I confirm the details above are correct Get my quote"}, {"control_id": "ctrl_3", "dom_selector": "#rev > div:nth-of-type(4) > button", "tag": "button", "label_text": "Edit State of residence", "section_text": "Check everything", "checked": null, "visible": true, "row_text": "Check everything NameOdile FairweatherEditEmailodile.f@example.testEditMobile phone503-555-0112EditState of residenceOregonEditDestinationPortugal - Southern EuropeEditDeparture date05/04/2027EditReturn date05/14/2027EditTravellersOdile Fairweather (03/22/1979)EditTrip cost$3,420EditPlanPlusEditCancel For Any ReasonNoEdit I confirm the details above are correct Get my quote"}, {"control_id": "ctrl_4", "dom_selector": "#rev > div:nth-of-type(5) > button", "tag": "button", "label_text": "Edit Destination", "section_text": "Check everything", "checked": null, "visible": true, "row_text": "Check everything NameOdile FairweatherEditEmailodile.f@example.testEditMobile phone503-555-0112EditState of residenceOregonEditDestinationPortugal - Southern EuropeEditDeparture date05/04/2027EditReturn date05/14/2027EditTravellersOdile Fairweather (03/22/1979)EditTrip cost$3,420EditPlanPlusEditCancel For Any ReasonNoEdit I confirm the details above are correct Get my quote"}, {"control_id": "ctrl_5", "dom_selector": "#rev > div:nth-of-type(6) > button", "tag": "button", "label_text": "Edit Departure date", "section_text": "Check everything", "checked": null, "visible": true, "row_text": "Check everything NameOdile FairweatherEditEmailodile.f@example.testEditMobile phone503-555-0112EditState of residenceOregonEditDestinationPortugal - Southern EuropeEditDeparture date05/04/2027EditReturn date05/14/2027EditTravellersOdile Fairweather (03/22/1979)EditTrip cost$3,420EditPlanPlusEditCancel For Any ReasonNoEdit I confirm the details above are correct Get my quote"}, {"control_id": "ctrl_6", "dom_selector": "#rev > div:nth-of-type(7) > button", "tag": "button", "label_text": "Edit Return date", "section_text": "Check everything", "checked": null, "visible": true, "row_text": "Check everything NameOdile FairweatherEditEmailodile.f@example.testEditMobile phone503-555-0112EditState of residenceOregonEditDestinationPortugal - Southern EuropeEditDeparture date05/04/2027EditReturn date05/14/2027EditTravellersOdile Fairweather (03/22/1979)EditTrip cost$3,420EditPlanPlusEditCancel For Any ReasonNoEdit I confirm the details above are correct Get my quote"}, {"control_id": "ctrl_7", "dom_selector": "#rev > div:nth-of-type(8) > button", "tag": "button", "label_text": "Edit Travellers", "section_text": "Check everything", "checked": null, "visible": true, "row_text": "Check everything NameOdile FairweatherEditEmailodile.f@example.testEditMobile phone503-555-0112EditState of residenceOregonEditDestinationPortugal - Southern EuropeEditDeparture date05/04/2027EditReturn date05/14/2027EditTravellersOdile Fairweather (03/22/1979)EditTrip cost$3,420EditPlanPlusEditCancel For Any ReasonNoEdit I confirm the details above are correct Get my quote"}, {"control_id": "ctrl_8", "dom_selector": "#rev > div:nth-of-type(9) > button", "tag": "button", "label_text": "Edit Trip cost", "section_text": "Check everything", "checked": null, "visible": true, "row_text": "Check everything NameOdile FairweatherEditEmailodile.f@example.testEditMobile phone503-555-0112EditState of residenceOregonEditDestinationPortugal - Southern EuropeEditDeparture date05/04/2027EditReturn date05/14/2027EditTravellersOdile Fairweather (03/22/1979)EditTrip cost$3,420EditPlanPlusEditCancel For Any ReasonNoEdit I confirm the details above are correct Get my quote"}, {"control_id": "ctrl_9", "dom_selector": "#rev > div:nth-of-type(10) > button", "tag": "button", "label_text": "Edit Plan", "section_text": "Check everything", "checked": null, "visible": true, "row_text": "Check everything NameOdile FairweatherEditEmailodile.f@example.testEditMobile phone503-555-0112EditState of residenceOregonEditDestinationPortugal - Southern EuropeEditDeparture date05/04/2027EditReturn date05/14/2027EditTravellersOdile Fairweather (03/22/1979)EditTrip cost$3,420EditPlanPlusEditCancel For Any ReasonNoEdit I confirm the details above are correct Get my quote"}, {"control_id": "ctrl_10", "dom_selector": "#rev > div:nth-of-type(11) > button", "tag": "button", "label_text": "Edit Cancel For Any Reason", "section_text": "Check everything", "checked": null, "visible": true, "row_text": "Check everything NameOdile FairweatherEditEmailodile.f@example.testEditMobile phone503-555-0112EditState of residenceOregonEditDestinationPortugal - Southern EuropeEditDeparture date05/04/2027EditReturn date05/14/2027EditTravellersOdile Fairweather (03/22/1979)EditTrip cost$3,420EditPlanPlusEditCancel For Any ReasonNoEdit I confirm the details above are correct Get my quote"}, {"control_id": "agree", "dom_selector": "#agree", "tag": "input", "input_type": "checkbox", "id_attr": "agree", "label_text": "I confirm the details above are correct", "section_text": "Check everything", "current_value": "false", "checked": false, "visible": true, "row_text": "Check everything NameOdile FairweatherEditEmailodile.f@example.testEditMobile phone503-555-0112EditState of residenceOregonEditDestinationPortugal - Southern EuropeEditDeparture date05/04/2027EditReturn date05/14/2027EditTravellersOdile Fairweather (03/22/1979)EditTrip cost$3,420EditPlanPlusEditCancel For Any ReasonNoEdit I confirm the details above are correct Get my quote"}, {"control_id": "buy", "dom_selector": "#buy", "tag": "button", "id_attr": "buy", "label_text": "Get my quote", "section_text": "Check everything", "checked": null, "visible": true, "row_text": "Check everything NameOdile FairweatherEditEmailodile.f@example.testEditMobile phone503-555-0112EditState of residenceOregonEditDestinationPortugal - Southern EuropeEditDeparture date05/04/2027EditReturn date05/14/2027EditTravellersOdile Fairweather (03/22/1979)EditTrip cost$3,420EditPlanPlusEditCancel For Any ReasonNoEdit I confirm the details above are correct Get my quote"}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a travel quote"} +FORM_TX_DEMO {"portal": "larkspan", "step": 23, "why": "before click selector='internal:role=button[name=\"Get my quote\"i]'>", "frame_url": "http://127.0.0.1:64559/trip", "is_main": true, "controls": [{"control_id": "ctrl_0", "dom_selector": "#rev > div:nth-of-type(1) > button", "tag": "button", "label_text": "Edit Name", "section_text": "Check everything", "checked": null, "visible": true, "row_text": "Check everything NameOdile FairweatherEditEmailodile.f@example.testEditMobile phone503-555-0112EditState of residenceOregonEditDestinationPortugal - Southern EuropeEditDeparture date05/04/2027EditReturn date05/14/2027EditTravellersOdile Fairweather (03/22/1979)EditTrip cost$3,420EditPlanPlusEditCancel For Any ReasonNoEdit I confirm the details above are correct Get my quote"}, {"control_id": "ctrl_1", "dom_selector": "#rev > div:nth-of-type(2) > button", "tag": "button", "label_text": "Edit Email", "section_text": "Check everything", "checked": null, "visible": true, "row_text": "Check everything NameOdile FairweatherEditEmailodile.f@example.testEditMobile phone503-555-0112EditState of residenceOregonEditDestinationPortugal - Southern EuropeEditDeparture date05/04/2027EditReturn date05/14/2027EditTravellersOdile Fairweather (03/22/1979)EditTrip cost$3,420EditPlanPlusEditCancel For Any ReasonNoEdit I confirm the details above are correct Get my quote"}, {"control_id": "ctrl_2", "dom_selector": "#rev > div:nth-of-type(3) > button", "tag": "button", "label_text": "Edit Mobile phone", "section_text": "Check everything", "checked": null, "visible": true, "row_text": "Check everything NameOdile FairweatherEditEmailodile.f@example.testEditMobile phone503-555-0112EditState of residenceOregonEditDestinationPortugal - Southern EuropeEditDeparture date05/04/2027EditReturn date05/14/2027EditTravellersOdile Fairweather (03/22/1979)EditTrip cost$3,420EditPlanPlusEditCancel For Any ReasonNoEdit I confirm the details above are correct Get my quote"}, {"control_id": "ctrl_3", "dom_selector": "#rev > div:nth-of-type(4) > button", "tag": "button", "label_text": "Edit State of residence", "section_text": "Check everything", "checked": null, "visible": true, "row_text": "Check everything NameOdile FairweatherEditEmailodile.f@example.testEditMobile phone503-555-0112EditState of residenceOregonEditDestinationPortugal - Southern EuropeEditDeparture date05/04/2027EditReturn date05/14/2027EditTravellersOdile Fairweather (03/22/1979)EditTrip cost$3,420EditPlanPlusEditCancel For Any ReasonNoEdit I confirm the details above are correct Get my quote"}, {"control_id": "ctrl_4", "dom_selector": "#rev > div:nth-of-type(5) > button", "tag": "button", "label_text": "Edit Destination", "section_text": "Check everything", "checked": null, "visible": true, "row_text": "Check everything NameOdile FairweatherEditEmailodile.f@example.testEditMobile phone503-555-0112EditState of residenceOregonEditDestinationPortugal - Southern EuropeEditDeparture date05/04/2027EditReturn date05/14/2027EditTravellersOdile Fairweather (03/22/1979)EditTrip cost$3,420EditPlanPlusEditCancel For Any ReasonNoEdit I confirm the details above are correct Get my quote"}, {"control_id": "ctrl_5", "dom_selector": "#rev > div:nth-of-type(6) > button", "tag": "button", "label_text": "Edit Departure date", "section_text": "Check everything", "checked": null, "visible": true, "row_text": "Check everything NameOdile FairweatherEditEmailodile.f@example.testEditMobile phone503-555-0112EditState of residenceOregonEditDestinationPortugal - Southern EuropeEditDeparture date05/04/2027EditReturn date05/14/2027EditTravellersOdile Fairweather (03/22/1979)EditTrip cost$3,420EditPlanPlusEditCancel For Any ReasonNoEdit I confirm the details above are correct Get my quote"}, {"control_id": "ctrl_6", "dom_selector": "#rev > div:nth-of-type(7) > button", "tag": "button", "label_text": "Edit Return date", "section_text": "Check everything", "checked": null, "visible": true, "row_text": "Check everything NameOdile FairweatherEditEmailodile.f@example.testEditMobile phone503-555-0112EditState of residenceOregonEditDestinationPortugal - Southern EuropeEditDeparture date05/04/2027EditReturn date05/14/2027EditTravellersOdile Fairweather (03/22/1979)EditTrip cost$3,420EditPlanPlusEditCancel For Any ReasonNoEdit I confirm the details above are correct Get my quote"}, {"control_id": "ctrl_7", "dom_selector": "#rev > div:nth-of-type(8) > button", "tag": "button", "label_text": "Edit Travellers", "section_text": "Check everything", "checked": null, "visible": true, "row_text": "Check everything NameOdile FairweatherEditEmailodile.f@example.testEditMobile phone503-555-0112EditState of residenceOregonEditDestinationPortugal - Southern EuropeEditDeparture date05/04/2027EditReturn date05/14/2027EditTravellersOdile Fairweather (03/22/1979)EditTrip cost$3,420EditPlanPlusEditCancel For Any ReasonNoEdit I confirm the details above are correct Get my quote"}, {"control_id": "ctrl_8", "dom_selector": "#rev > div:nth-of-type(9) > button", "tag": "button", "label_text": "Edit Trip cost", "section_text": "Check everything", "checked": null, "visible": true, "row_text": "Check everything NameOdile FairweatherEditEmailodile.f@example.testEditMobile phone503-555-0112EditState of residenceOregonEditDestinationPortugal - Southern EuropeEditDeparture date05/04/2027EditReturn date05/14/2027EditTravellersOdile Fairweather (03/22/1979)EditTrip cost$3,420EditPlanPlusEditCancel For Any ReasonNoEdit I confirm the details above are correct Get my quote"}, {"control_id": "ctrl_9", "dom_selector": "#rev > div:nth-of-type(10) > button", "tag": "button", "label_text": "Edit Plan", "section_text": "Check everything", "checked": null, "visible": true, "row_text": "Check everything NameOdile FairweatherEditEmailodile.f@example.testEditMobile phone503-555-0112EditState of residenceOregonEditDestinationPortugal - Southern EuropeEditDeparture date05/04/2027EditReturn date05/14/2027EditTravellersOdile Fairweather (03/22/1979)EditTrip cost$3,420EditPlanPlusEditCancel For Any ReasonNoEdit I confirm the details above are correct Get my quote"}, {"control_id": "ctrl_10", "dom_selector": "#rev > div:nth-of-type(11) > button", "tag": "button", "label_text": "Edit Cancel For Any Reason", "section_text": "Check everything", "checked": null, "visible": true, "row_text": "Check everything NameOdile FairweatherEditEmailodile.f@example.testEditMobile phone503-555-0112EditState of residenceOregonEditDestinationPortugal - Southern EuropeEditDeparture date05/04/2027EditReturn date05/14/2027EditTravellersOdile Fairweather (03/22/1979)EditTrip cost$3,420EditPlanPlusEditCancel For Any ReasonNoEdit I confirm the details above are correct Get my quote"}, {"control_id": "agree", "dom_selector": "#agree", "tag": "input", "input_type": "checkbox", "id_attr": "agree", "label_text": "I confirm the details above are correct", "section_text": "Check everything", "current_value": "true", "checked": true, "visible": true, "row_text": "Check everything NameOdile FairweatherEditEmailodile.f@example.testEditMobile phone503-555-0112EditState of residenceOregonEditDestinationPortugal - Southern EuropeEditDeparture date05/04/2027EditReturn date05/14/2027EditTravellersOdile Fairweather (03/22/1979)EditTrip cost$3,420EditPlanPlusEditCancel For Any ReasonNoEdit I confirm the details above are correct Get my quote"}, {"control_id": "buy", "dom_selector": "#buy", "tag": "button", "id_attr": "buy", "label_text": "Get my quote", "section_text": "Check everything", "checked": null, "visible": true, "row_text": "Check everything NameOdile FairweatherEditEmailodile.f@example.testEditMobile phone503-555-0112EditState of residenceOregonEditDestinationPortugal - Southern EuropeEditDeparture date05/04/2027EditReturn date05/14/2027EditTravellersOdile Fairweather (03/22/1979)EditTrip cost$3,420EditPlanPlusEditCancel For Any ReasonNoEdit I confirm the details above are correct Get my quote"}], "text_pairs": [], "banners": [], "modals": [], "title": "Get a travel quote"} +FORM_TX_DEMO {"portal": "larkspan", "step": 24, "why": "end of case", "frame_url": "http://127.0.0.1:64559/trip/quote/LK-26-70211", "is_main": true, "controls": [], "text_pairs": [{"label": "Purchaser", "value": "Odile Fairweather", "section_text": "What we stored", "source": "dl"}, {"label": "Email", "value": "odile.f@example.test", "section_text": "What we stored", "source": "dl"}, {"label": "Phone", "value": "503-555-0112", "section_text": "What we stored", "source": "dl"}, {"label": "State of residence", "value": "Oregon", "section_text": "What we stored", "source": "dl"}, {"label": "Destination", "value": "Portugal - Southern Europe", "section_text": "What we stored", "source": "dl"}, {"label": "Departing", "value": "05/04/2027", "section_text": "What we stored", "source": "dl"}, {"label": "Returning", "value": "05/14/2027", "section_text": "What we stored", "source": "dl"}, {"label": "Travellers", "value": "Odile Fairweather (03/22/1979)", "section_text": "What we stored", "source": "dl"}, {"label": "Trip cost", "value": "$3,420", "section_text": "What we stored", "source": "dl"}, {"label": "Plan", "value": "Plus", "section_text": "What we stored", "source": "dl"}, {"label": "Cancel For Any Reason", "value": "No", "section_text": "What we stored", "source": "dl"}, {"label": "Evacuation limit", "value": "Standard", "section_text": "What we stored", "source": "dl"}, {"label": "Total premium", "value": "$201", "section_text": "Your quote is ready", "source": "inline"}], "banners": [], "modals": [], "title": "Your quote"} +FORM_TX_DEMO_RESULT [{"case_id": "lta-d01", "correct": true}] diff --git a/packages/flow/benchmark/form_tx_set4v2_run/record_demo.py b/packages/flow/benchmark/form_tx_set4v2_run/record_demo.py new file mode 100644 index 0000000000..82bd43738d --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/record_demo.py @@ -0,0 +1,157 @@ +"""Record one demonstration per portal: what the form layer sees on the dev case. + +The portal author's careful-human driver runs on each portal's dev case only. +Before each of its clicks and value changes (fill, select, check, type), and +before the browser context closes, this saves +what ``PlaywrightFormSurface`` sees in every frame of every open page: +controls, page-text pairs, banners and dialogs. The pack author writes packs +from these recordings and the dev intake, without reading portal source. + + python benchmark/form_tx_set4v2_run/record_demo.py [portal ...] > demo.jsonl +""" + +from __future__ import annotations + +import json +import sys +from pathlib import Path +from typing import Any + +HERE = Path(__file__).resolve().parent +sys.path.insert(0, str(HERE.parents[1])) # packages/flow + +import os # noqa: E402 + +sys.path.insert( + 0, + os.environ.get( + "FORM_TX_SET4V2_PRIVATE", str(Path.home() / "oa" / "private" / "form-tx-set4v2") + ), +) +from form_tx_set4v2 import reference_human, runner # noqa: E402 +from form_tx_set4v2.portals import PORTALS # noqa: E402 +from openadapt_flow.form_tx.playwright_surface import PlaywrightFormSurface # noqa: E402 +from openadapt_flow.form_tx.types import UIProfileSpec # noqa: E402 + +MARK = "FORM_TX_DEMO" +_STATE = {"busy": False, "step": 0, "portal": ""} +_PROFILE = UIProfileSpec(profile_id="demo-recorder", max_settle_ms=6000) + + +def _capture(page: Any, why: str) -> None: + if _STATE["busy"]: + return + _STATE["busy"] = True + try: + for frame in page.frames: + row: dict[str, Any] = { + "portal": _STATE["portal"], + "step": _STATE["step"], + "why": why, + "frame_url": frame.url, + "is_main": frame == page.main_frame, + } + try: + surface = PlaywrightFormSurface(frame, _PROFILE) + snap = surface.snapshot() + surface._detach() + row["controls"] = [ + { + k: v + for k, v in c.model_dump().items() + if v not in ("", None, (), [], False) or k in ("checked",) + } + for c in snap.controls + ] + row["text_pairs"] = [p.model_dump() for p in snap.text_pairs] + row["banners"] = list(snap.banner_errors) + row["modals"] = [m.model_dump() for m in snap.active_modals] + row["title"] = snap.title + except Exception as exc: # noqa: BLE001 + row["error"] = repr(exc)[:300] + print(MARK + " " + json.dumps(row, default=str), flush=True) + _STATE["step"] += 1 + finally: + _STATE["busy"] = False + + +def _patch() -> None: + from playwright.sync_api import BrowserContext, Locator, Page + + orig_click = Locator.click + orig_page_click = Page.click + orig_close = BrowserContext.close + + def click(self: Any, *a: Any, **kw: Any) -> Any: + try: + desc = str(self) + except Exception: # noqa: BLE001 + desc = "?" + _capture(self.page, f"before click {desc[:200]}") + return orig_click(self, *a, **kw) + + def page_click(self: Any, selector: str, *a: Any, **kw: Any) -> Any: + _capture(self, f"before click {selector[:200]}") + return orig_page_click(self, selector, *a, **kw) + + def close(self: Any, *a: Any, **kw: Any) -> Any: + for p in list(self.pages): + _capture(p, "end of case") + return orig_close(self, *a, **kw) + + Locator.click = click # type: ignore[method-assign] + Page.click = page_click # type: ignore[method-assign] + BrowserContext.close = close # type: ignore[method-assign] + + # Also capture before every value change, so the first sighting of each + # control is its blank-form value (the defaults table needs it). + def _wrap_locator(name: str) -> None: + orig = getattr(Locator, name) + + def wrapped(self: Any, *a: Any, **kw: Any) -> Any: + try: + desc = str(self) + except Exception: # noqa: BLE001 + desc = "?" + _capture(self.page, f"before {name} {desc[:200]}") + return orig(self, *a, **kw) + + setattr(Locator, name, wrapped) + + def _wrap_page(name: str) -> None: + orig = getattr(Page, name) + + def wrapped(self: Any, selector: str, *a: Any, **kw: Any) -> Any: + _capture(self, f"before {name} {selector[:200]}") + return orig(self, selector, *a, **kw) + + setattr(Page, name, wrapped) + + for _name in ("fill", "select_option", "check", "uncheck", "set_checked", "type", "press_sequentially"): + if hasattr(Locator, _name): + _wrap_locator(_name) + for _name in ("fill", "select_option", "check", "uncheck", "type"): + if hasattr(Page, _name): + _wrap_page(_name) + + +def main(argv: list[str]) -> None: + _patch() + for pid in argv or list(PORTALS): + _STATE["portal"], _STATE["step"] = pid, 0 + spec = PORTALS[pid] + rows = runner.run_cases( + reference_human.make_source, [pid], include_dev=True, only=[spec.dev_case] + ) + print( + MARK + + "_RESULT " + + json.dumps( + [{"case_id": r["case_id"], "correct": r.get("correct")} for r in rows] + ), + flush=True, + ) + + +if __name__ == "__main__": + main(sys.argv[1:]) diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/arm_A.jsonl b/packages/flow/benchmark/form_tx_set4v2_run/results/arm_A.jsonl new file mode 100644 index 0000000000..c9d1223789 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/arm_A.jsonl @@ -0,0 +1,30 @@ +{"portal": "brackwater", "case_id": "bfu-s01", "outcome": "submitted", "correct": true} +{"portal": "brackwater", "case_id": "bfu-s02", "outcome": "submitted", "correct": true} +{"portal": "brackwater", "case_id": "bfu-s03", "outcome": "submitted", "correct": false} +{"portal": "brackwater", "case_id": "bfu-s04", "outcome": "submitted", "correct": false} +{"portal": "brackwater", "case_id": "bfu-s05", "outcome": "submitted", "correct": false} +{"portal": "brackwater", "case_id": "bfu-s06", "outcome": "submitted", "correct": true} +{"portal": "brackwater", "case_id": "bfu-s07", "outcome": "submitted", "correct": false} +{"portal": "brackwater", "case_id": "bfu-s08", "outcome": "submitted", "correct": false} +{"portal": "brackwater", "case_id": "bfu-s09", "outcome": "submitted", "correct": true} +{"portal": "brackwater", "case_id": "bfu-s10", "outcome": "submitted", "correct": true} +{"portal": "larkspan", "case_id": "lta-s01", "outcome": "submitted", "correct": true} +{"portal": "larkspan", "case_id": "lta-s02", "outcome": "submitted", "correct": false} +{"portal": "larkspan", "case_id": "lta-s03", "outcome": "submitted", "correct": false} +{"portal": "larkspan", "case_id": "lta-s04", "outcome": "submitted", "correct": false} +{"portal": "larkspan", "case_id": "lta-s05", "outcome": "submitted", "correct": true} +{"portal": "larkspan", "case_id": "lta-s06", "outcome": "submitted", "correct": true} +{"portal": "larkspan", "case_id": "lta-s07", "outcome": "submitted", "correct": false} +{"portal": "larkspan", "case_id": "lta-s08", "outcome": "submitted", "correct": false} +{"portal": "larkspan", "case_id": "lta-s09", "outcome": "submitted", "correct": true} +{"portal": "larkspan", "case_id": "lta-s10", "outcome": "submitted", "correct": false} +{"portal": "hollowfen", "case_id": "hbm-s01", "outcome": "submitted", "correct": true} +{"portal": "hollowfen", "case_id": "hbm-s02", "outcome": "submitted", "correct": false} +{"portal": "hollowfen", "case_id": "hbm-s03", "outcome": "submitted", "correct": false} +{"portal": "hollowfen", "case_id": "hbm-s04", "outcome": "submitted", "correct": false} +{"portal": "hollowfen", "case_id": "hbm-s05", "outcome": "submitted", "correct": true} +{"portal": "hollowfen", "case_id": "hbm-s06", "outcome": "submitted", "correct": false} +{"portal": "hollowfen", "case_id": "hbm-s07", "outcome": "error", "correct": false} +{"portal": "hollowfen", "case_id": "hbm-s08", "outcome": "submitted", "correct": true} +{"portal": "hollowfen", "case_id": "hbm-s09", "outcome": "submitted", "correct": false} +{"portal": "hollowfen", "case_id": "hbm-s10", "outcome": "submitted", "correct": true} diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/arm_A_full.log b/packages/flow/benchmark/form_tx_set4v2_run/results/arm_A_full.log new file mode 100644 index 0000000000..4b75f5bc4d --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/arm_A_full.log @@ -0,0 +1,813 @@ +{"portal": "brackwater", "case_id": "bfu-s01", "outcome": "submitted", "correct": true} +{"portal": "brackwater", "case_id": "bfu-s02", "outcome": "submitted", "correct": true} +{"portal": "brackwater", "case_id": "bfu-s03", "outcome": "submitted", "correct": false} +{"portal": "brackwater", "case_id": "bfu-s04", "outcome": "submitted", "correct": false} +{"portal": "brackwater", "case_id": "bfu-s05", "outcome": "submitted", "correct": false} +{"portal": "brackwater", "case_id": "bfu-s06", "outcome": "submitted", "correct": true} +{"portal": "brackwater", "case_id": "bfu-s07", "outcome": "submitted", "correct": false} +{"portal": "brackwater", "case_id": "bfu-s08", "outcome": "submitted", "correct": false} +{"portal": "brackwater", "case_id": "bfu-s09", "outcome": "submitted", "correct": true} +{"portal": "brackwater", "case_id": "bfu-s10", "outcome": "submitted", "correct": true} +<<>> +{"portal": "larkspan", "case_id": "lta-s01", "outcome": "submitted", "correct": true} +{"portal": "larkspan", "case_id": "lta-s02", "outcome": "submitted", "correct": false} +{"portal": "larkspan", "case_id": "lta-s03", "outcome": "submitted", "correct": false} +{"portal": "larkspan", "case_id": "lta-s04", "outcome": "submitted", "correct": false} +{"portal": "larkspan", "case_id": "lta-s05", "outcome": "submitted", "correct": true} +{"portal": "larkspan", "case_id": "lta-s06", "outcome": "submitted", "correct": true} +{"portal": "larkspan", "case_id": "lta-s07", "outcome": "submitted", "correct": false} +{"portal": "larkspan", "case_id": "lta-s08", "outcome": "submitted", "correct": false} +{"portal": "larkspan", "case_id": "lta-s09", "outcome": "submitted", "correct": true} +{"portal": "larkspan", "case_id": "lta-s10", "outcome": "submitted", "correct": false} +<<>> +{"portal": "hollowfen", "case_id": "hbm-s01", "outcome": "submitted", "correct": true} +{"portal": "hollowfen", "case_id": "hbm-s02", "outcome": "submitted", "correct": false} +{"portal": "hollowfen", "case_id": "hbm-s03", "outcome": "submitted", "correct": false} +{"portal": "hollowfen", "case_id": "hbm-s04", "outcome": "submitted", "correct": false} +{"portal": "hollowfen", "case_id": "hbm-s05", "outcome": "submitted", "correct": true} +{"portal": "hollowfen", "case_id": "hbm-s06", "outcome": "submitted", "correct": false} +{"portal": "hollowfen", "case_id": "hbm-s07", "outcome": "error", "correct": false} +{"portal": "hollowfen", "case_id": "hbm-s08", "outcome": "submitted", "correct": true} +{"portal": "hollowfen", "case_id": "hbm-s09", "outcome": "submitted", "correct": false} +{"portal": "hollowfen", "case_id": "hbm-s10", "outcome": "submitted", "correct": true} +<<>> diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/arm_B.jsonl b/packages/flow/benchmark/form_tx_set4v2_run/results/arm_B.jsonl new file mode 100644 index 0000000000..54d4a86911 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/arm_B.jsonl @@ -0,0 +1,30 @@ +{"portal": "brackwater", "case_id": "bfu-s01", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "NFIP community", "dossier_key": "community_name", "message": "No option matched 'Brindle Cove' among ['Brindle Cove, City of - Mossgate County (390442)']", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_3a4a40bc9794ac to owner", "receipt": false, "elapsed_s": 5.3, "score": {"case_id": "bfu-s01", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +{"portal": "brackwater", "case_id": "bfu-s02", "halts": [{"halt_kind": "portal_validation_blocked", "label": "", "dossier_key": null, "message": "Next button missing on screen 'bfu_hub'", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_f82d74082995ee to owner", "receipt": false, "elapsed_s": 3.5, "score": {"case_id": "bfu-s02", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +{"portal": "brackwater", "case_id": "bfu-s03", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "NFIP community", "dossier_key": "community_name", "message": "No option matched 'Fallowmouth' among ['Fallowmouth, Town of - Rydal County (250108)']", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_7c20b59f836701 to owner", "receipt": false, "elapsed_s": 5.2, "score": {"case_id": "bfu-s03", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +{"portal": "brackwater", "case_id": "bfu-s04", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "NFIP community", "dossier_key": "community_name", "message": "No option matched 'Ashby Landing' among ['Ashby Landing, Town of - Pell County (480917)', 'Ashby Landing, Village of - Corran County (481203)']", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_09a5de7f0fe865 to owner", "receipt": false, "elapsed_s": 5.3, "score": {"case_id": "bfu-s04", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +{"portal": "brackwater", "case_id": "bfu-s05", "halts": [{"halt_kind": "portal_validation_blocked", "label": "", "dossier_key": null, "message": "Next button missing on screen 'bfu_hub'", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_d7c5f17cc576af to owner", "receipt": false, "elapsed_s": 3.6, "score": {"case_id": "bfu-s05", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +{"portal": "brackwater", "case_id": "bfu-s06", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "NFIP community", "dossier_key": "community_name", "message": "No option matched 'Cauldwell' among ['Cauldwell, Township of - Ferrow County (420318)']", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_cdbfb702239577 to owner", "receipt": false, "elapsed_s": 5.2, "score": {"case_id": "bfu-s06", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +{"portal": "brackwater", "case_id": "bfu-s07", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "NFIP community", "dossier_key": "community_name", "message": "No option matched 'Greywick' among ['Greywick, City of - Pell County (480733)']", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_67c6bd28d70e84 to owner", "receipt": false, "elapsed_s": 5.1, "score": {"case_id": "bfu-s07", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +{"portal": "brackwater", "case_id": "bfu-s08", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "NFIP community", "dossier_key": "community_name", "message": "No option matched 'Fallowmouth' among ['Fallowmouth, Town of - Rydal County (250108)']", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_1d637d9c43f532 to owner", "receipt": false, "elapsed_s": 5.2, "score": {"case_id": "bfu-s08", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +{"portal": "brackwater", "case_id": "bfu-s09", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "NFIP community", "dossier_key": "community_name", "message": "No option matched 'Eskerton' among ['Eskerton, Borough of - Linfield County (340561)']", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_838576daf77c90 to owner", "receipt": false, "elapsed_s": 5.1, "score": {"case_id": "bfu-s09", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +{"portal": "brackwater", "case_id": "bfu-s10", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "NFIP community", "dossier_key": "community_name", "message": "No option matched 'Brindle Cove' among ['Brindle Cove, City of - Mossgate County (390442)']", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_d0ee569b82ce63 to owner", "receipt": false, "elapsed_s": 5.3, "score": {"case_id": "bfu-s10", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +{"portal": "larkspan", "case_id": "lta-s01", "halts": [{"halt_kind": "popup_contract_failed", "label": "", "dossier_key": "traveller_2_name", "message": "Popup parent_return_anchor for 'lta_more_travellers' was not found on parent screen", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_cc6a46250e3c30 to owner", "receipt": false, "elapsed_s": 6.9, "score": {"case_id": "lta-s01", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["purchaser_name", "purchaser_email", "purchaser_phone", "residence_state", "destination", "departure_date", "return_date", "travelers", "trip_cost", "plan", "cfar", "evac_limit"]}, "arm": "B"} +{"portal": "larkspan", "case_id": "lta-s02", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "Destination", "dossier_key": "destination_choice", "message": "No option matched 'Georgia - Caucasus' among ['Georgia - U.S. state', 'Georgia - country in the Caucasus']", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_c98c764cb85ba2 to owner", "receipt": false, "elapsed_s": 3.7, "score": {"case_id": "lta-s02", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["purchaser_name", "purchaser_email", "purchaser_phone", "residence_state", "destination", "departure_date", "return_date", "travelers", "trip_cost", "plan", "cfar", "evac_limit"]}, "arm": "B"} +{"portal": "larkspan", "case_id": "lta-s03", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['confirm_details', 'traveller_1_dob', 'traveller_1_name', 'unbound:Emergency medical evacuation limit']", "readback": {"passed": 11, "failed": [], "not_checked": ["confirm_details", "traveller_1_dob", "traveller_1_name", "unbound:Emergency medical evacuation limit"], "read_route": "same_screen"}, "receipt": false, "elapsed_s": 10.5, "score": {"case_id": "lta-s03", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": false, "correct": false, "wrong_fields": ["evac_limit"], "wrong_details": [{"field": "evac_limit", "expected": 500000, "stored": null}], "missing_fields": []}, "arm": "B"} +{"portal": "larkspan", "case_id": "lta-s04", "halts": [{"halt_kind": "popup_contract_failed", "label": "", "dossier_key": "traveller_2_name", "message": "Popup parent_return_anchor for 'lta_more_travellers' was not found on parent screen", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_053aecc1e45570 to owner", "receipt": false, "elapsed_s": 7.0, "score": {"case_id": "lta-s04", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["purchaser_name", "purchaser_email", "purchaser_phone", "residence_state", "destination", "departure_date", "return_date", "travelers", "trip_cost", "plan", "cfar", "evac_limit"]}, "arm": "B"} +{"portal": "larkspan", "case_id": "lta-s05", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "", "dossier_key": null, "message": "No commit control on this screen, so there is no evidence the record was saved; the run will not treat its own edits as a commit", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_cca35baa787209 to owner", "receipt": false, "elapsed_s": 1.1, "score": {"case_id": "lta-s05", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["purchaser_name", "purchaser_email", "purchaser_phone", "residence_state", "destination", "departure_date", "return_date", "travelers", "trip_cost", "plan", "cfar", "evac_limit"]}, "arm": "B"} +{"portal": "larkspan", "case_id": "lta-s06", "halts": [{"halt_kind": "popup_contract_failed", "label": "", "dossier_key": "traveller_2_name", "message": "Popup parent_return_anchor for 'lta_more_travellers' was not found on parent screen", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_d5d0645d1a8098 to owner", "receipt": false, "elapsed_s": 7.0, "score": {"case_id": "lta-s06", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["purchaser_name", "purchaser_email", "purchaser_phone", "residence_state", "destination", "departure_date", "return_date", "travelers", "trip_cost", "plan", "cfar", "evac_limit"]}, "arm": "B"} +{"portal": "larkspan", "case_id": "lta-s07", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "", "dossier_key": null, "message": "No commit control on this screen, so there is no evidence the record was saved; the run will not treat its own edits as a commit", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_93b26a454d7a2b to owner", "receipt": false, "elapsed_s": 1.1, "score": {"case_id": "lta-s07", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["purchaser_name", "purchaser_email", "purchaser_phone", "residence_state", "destination", "departure_date", "return_date", "travelers", "trip_cost", "plan", "cfar", "evac_limit"]}, "arm": "B"} +{"portal": "larkspan", "case_id": "lta-s08", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['confirm_details', 'traveller_1_dob', 'traveller_1_name']", "readback": {"passed": 11, "failed": [], "not_checked": ["confirm_details", "traveller_1_dob", "traveller_1_name"], "read_route": "same_screen"}, "receipt": false, "elapsed_s": 10.4, "score": {"case_id": "lta-s08", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "larkspan", "case_id": "lta-s09", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['confirm_details', 'traveller_1_dob', 'traveller_1_name']", "readback": {"passed": 11, "failed": [], "not_checked": ["confirm_details", "traveller_1_dob", "traveller_1_name"], "read_route": "same_screen"}, "receipt": false, "elapsed_s": 10.5, "score": {"case_id": "lta-s09", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "larkspan", "case_id": "lta-s10", "halts": [{"halt_kind": "popup_contract_failed", "label": "", "dossier_key": "traveller_2_name", "message": "Popup parent_return_anchor for 'lta_more_travellers' was not found on parent screen", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_670842deed5123 to owner", "receipt": false, "elapsed_s": 7.0, "score": {"case_id": "lta-s10", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["purchaser_name", "purchaser_email", "purchaser_phone", "residence_state", "destination", "departure_date", "return_date", "travelers", "trip_cost", "plan", "cfar", "evac_limit"]}, "arm": "B"} +{"portal": "hollowfen", "case_id": "hbm-s01", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['class_keyword', 'class_code']", "readback": {"passed": 56, "failed": [], "not_checked": ["class_keyword", "class_code"], "read_route": "same_screen"}, "receipt": false, "elapsed_s": 14.6, "score": {"case_id": "hbm-s01", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "hollowfen", "case_id": "hbm-s02", "halts": [{"halt_kind": "popup_contract_failed", "label": "", "dossier_key": "class_code", "message": "Anchor {'label_patterns': ('^Select$',), 'name_or_id_patterns': (), 'section_patterns': ('^Class finder$',), 'row_cell_dossier_keys': ()} matched 3 controls: ['Select (#results > tbody > tr:nth-of-type(2) > td:nth-of-type(2) > button)', 'Se", "url": "bop/worksheet", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_a8000f7337cdc0 to owner", "receipt": false, "elapsed_s": 7.2, "score": {"case_id": "hbm-s02", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["legal_name", "dba_name", "entity_type", "fein", "year_established", "location_street", "class_code", "employees", "annual_revenue", "building_owned", "building_limit", "bpp_limit", "liability_limit", "deductible", "hnoa", "effective_date"]}, "arm": "B"} +{"portal": "hollowfen", "case_id": "hbm-s03", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['class_keyword', 'class_code']", "readback": {"passed": 56, "failed": [], "not_checked": ["class_keyword", "class_code"], "read_route": "same_screen"}, "receipt": false, "elapsed_s": 14.5, "score": {"case_id": "hbm-s03", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "hollowfen", "case_id": "hbm-s04", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Property deductible", "dossier_key": "deductible", "message": "Prefilled value on 'Property deductible' conflicts with grounded dossier state for 'deductible'", "url": "bop/worksheet", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_05d43f494b22bd to owner", "receipt": false, "elapsed_s": 4.9, "score": {"case_id": "hbm-s04", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["legal_name", "dba_name", "entity_type", "fein", "year_established", "location_street", "class_code", "employees", "annual_revenue", "building_owned", "building_limit", "bpp_limit", "liability_limit", "deductible", "hnoa", "effective_date"]}, "arm": "B"} +{"portal": "hollowfen", "case_id": "hbm-s05", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Property deductible", "dossier_key": "deductible", "message": "Prefilled value on 'Property deductible' conflicts with grounded dossier state for 'deductible'", "url": "bop/worksheet", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_7f7f8bdfcf1f7f to owner", "receipt": false, "elapsed_s": 4.9, "score": {"case_id": "hbm-s05", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["legal_name", "dba_name", "entity_type", "fein", "year_established", "location_street", "class_code", "employees", "annual_revenue", "building_owned", "building_limit", "bpp_limit", "liability_limit", "deductible", "hnoa", "effective_date"]}, "arm": "B"} +{"portal": "hollowfen", "case_id": "hbm-s06", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Property deductible", "dossier_key": "deductible", "message": "Prefilled value on 'Property deductible' conflicts with grounded dossier state for 'deductible'", "url": "bop/worksheet", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_164c163e701375 to owner", "receipt": false, "elapsed_s": 4.9, "score": {"case_id": "hbm-s06", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["legal_name", "dba_name", "entity_type", "fein", "year_established", "location_street", "class_code", "employees", "annual_revenue", "building_owned", "building_limit", "bpp_limit", "liability_limit", "deductible", "hnoa", "effective_date"]}, "arm": "B"} +{"portal": "hollowfen", "case_id": "hbm-s07", "halts": [{"halt_kind": "auth_wall_detected", "label": "", "dossier_key": null, "message": "Sign-in wall at 'http://127.0.0.1:52717/bop/worksheet' (sign-in form on screen)", "url": "bop/worksheet", "action": "fixed_on_screen", "before_submit": true}, {"halt_kind": "portal_validation_blocked", "label": "", "dossier_key": null, "message": "Rating stopped: a class code is required.", "url": "bop/worksheet", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_1078f6529c2770 to owner", "receipt": false, "elapsed_s": 19.9, "score": {"case_id": "hbm-s07", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["legal_name", "dba_name", "entity_type", "fein", "year_established", "location_street", "class_code", "employees", "annual_revenue", "building_owned", "building_limit", "bpp_limit", "liability_limit", "deductible", "hnoa", "effective_date"]}, "arm": "B"} +{"portal": "hollowfen", "case_id": "hbm-s08", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Property deductible", "dossier_key": "deductible", "message": "Prefilled value on 'Property deductible' conflicts with grounded dossier state for 'deductible'", "url": "bop/worksheet", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_2cf05868dc9bda to owner", "receipt": false, "elapsed_s": 4.9, "score": {"case_id": "hbm-s08", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["legal_name", "dba_name", "entity_type", "fein", "year_established", "location_street", "class_code", "employees", "annual_revenue", "building_owned", "building_limit", "bpp_limit", "liability_limit", "deductible", "hnoa", "effective_date"]}, "arm": "B"} +{"portal": "hollowfen", "case_id": "hbm-s09", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Property deductible", "dossier_key": "deductible", "message": "Prefilled value on 'Property deductible' conflicts with grounded dossier state for 'deductible'", "url": "bop/worksheet", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_2cac8806066dca to owner", "receipt": false, "elapsed_s": 4.9, "score": {"case_id": "hbm-s09", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["legal_name", "dba_name", "entity_type", "fein", "year_established", "location_street", "class_code", "employees", "annual_revenue", "building_owned", "building_limit", "bpp_limit", "liability_limit", "deductible", "hnoa", "effective_date"]}, "arm": "B"} +{"portal": "hollowfen", "case_id": "hbm-s10", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Property deductible", "dossier_key": "deductible", "message": "Prefilled value on 'Property deductible' conflicts with grounded dossier state for 'deductible'", "url": "bop/worksheet", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_19de8bc8e80bd2 to owner", "receipt": false, "elapsed_s": 5.0, "score": {"case_id": "hbm-s10", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["legal_name", "dba_name", "entity_type", "fein", "year_established", "location_street", "class_code", "employees", "annual_revenue", "building_owned", "building_limit", "bpp_limit", "liability_limit", "deductible", "hnoa", "effective_date"]}, "arm": "B"} diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/arm_B0.jsonl b/packages/flow/benchmark/form_tx_set4v2_run/results/arm_B0.jsonl new file mode 100644 index 0000000000..7430f2788a --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/arm_B0.jsonl @@ -0,0 +1,30 @@ +{"portal": "brackwater", "case_id": "bfu-s01", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "NFIP community", "dossier_key": "community_name", "message": "No option matched 'Brindle Cove' among ['Brindle Cove, City of - Mossgate County (390442)']", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_3a4a40bc9794ac to owner", "receipt": false, "elapsed_s": 4.7, "score": {"case_id": "bfu-s01", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +{"portal": "brackwater", "case_id": "bfu-s02", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "NFIP community", "dossier_key": "community_name", "message": "No option matched 'Eskerton' among ['Eskerton, Borough of - Linfield County (340561)']", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_239f341f939bd8 to owner", "receipt": false, "elapsed_s": 4.7, "score": {"case_id": "bfu-s02", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +{"portal": "brackwater", "case_id": "bfu-s03", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "NFIP community", "dossier_key": "community_name", "message": "No option matched 'Fallowmouth' among ['Fallowmouth, Town of - Rydal County (250108)']", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_7c20b59f836701 to owner", "receipt": false, "elapsed_s": 5.0, "score": {"case_id": "bfu-s03", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +{"portal": "brackwater", "case_id": "bfu-s04", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "NFIP community", "dossier_key": "community_name", "message": "No option matched 'Ashby Landing' among ['Ashby Landing, Town of - Pell County (480917)', 'Ashby Landing, Village of - Corran County (481203)']", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_09a5de7f0fe865 to owner", "receipt": false, "elapsed_s": 4.8, "score": {"case_id": "bfu-s04", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +{"portal": "brackwater", "case_id": "bfu-s05", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "NFIP community", "dossier_key": "community_name", "message": "No option matched 'Dunmere' among ['Dunmere, City of - Halloway County (130227)']", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_9e5ecb627a4255 to owner", "receipt": false, "elapsed_s": 4.6, "score": {"case_id": "bfu-s05", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +{"portal": "brackwater", "case_id": "bfu-s06", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "NFIP community", "dossier_key": "community_name", "message": "No option matched 'Cauldwell' among ['Cauldwell, Township of - Ferrow County (420318)']", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_cdbfb702239577 to owner", "receipt": false, "elapsed_s": 4.5, "score": {"case_id": "bfu-s06", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +{"portal": "brackwater", "case_id": "bfu-s07", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "NFIP community", "dossier_key": "community_name", "message": "No option matched 'Greywick' among ['Greywick, City of - Pell County (480733)']", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_67c6bd28d70e84 to owner", "receipt": false, "elapsed_s": 4.6, "score": {"case_id": "bfu-s07", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +{"portal": "brackwater", "case_id": "bfu-s08", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "NFIP community", "dossier_key": "community_name", "message": "No option matched 'Fallowmouth' among ['Fallowmouth, Town of - Rydal County (250108)']", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_1d637d9c43f532 to owner", "receipt": false, "elapsed_s": 4.9, "score": {"case_id": "bfu-s08", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +{"portal": "brackwater", "case_id": "bfu-s09", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "NFIP community", "dossier_key": "community_name", "message": "No option matched 'Eskerton' among ['Eskerton, Borough of - Linfield County (340561)']", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_838576daf77c90 to owner", "receipt": false, "elapsed_s": 4.6, "score": {"case_id": "bfu-s09", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +{"portal": "brackwater", "case_id": "bfu-s10", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "NFIP community", "dossier_key": "community_name", "message": "No option matched 'Brindle Cove' among ['Brindle Cove, City of - Mossgate County (390442)']", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_d0ee569b82ce63 to owner", "receipt": false, "elapsed_s": 4.6, "score": {"case_id": "bfu-s10", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +{"portal": "larkspan", "case_id": "lta-s01", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Full name", "dossier_key": "traveller_1_name", "message": "Required control 'Full name' has no grounded value in dossier", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_a6219375f0777b to owner", "receipt": false, "elapsed_s": 6.2, "score": {"case_id": "lta-s01", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["purchaser_name", "purchaser_email", "purchaser_phone", "residence_state", "destination", "departure_date", "return_date", "travelers", "trip_cost", "plan", "cfar", "evac_limit"]}, "arm": "B"} +{"portal": "larkspan", "case_id": "lta-s02", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "Destination", "dossier_key": "destination_shown", "message": "No option matched 'Georgia - Caucasus' among ['Georgia - U.S. state', 'Georgia - country in the Caucasus']", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_c98c764cb85ba2 to owner", "receipt": false, "elapsed_s": 3.9, "score": {"case_id": "lta-s02", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["purchaser_name", "purchaser_email", "purchaser_phone", "residence_state", "destination", "departure_date", "return_date", "travelers", "trip_cost", "plan", "cfar", "evac_limit"]}, "arm": "B"} +{"portal": "larkspan", "case_id": "lta-s03", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['traveller_1_dob', 'traveller_1_name', 'unbound:Emergency medical evacuation limit', 'unbound:I confirm the details above are correct']", "readback": {"passed": 11, "failed": [], "not_checked": ["traveller_1_dob", "traveller_1_name", "unbound:Emergency medical evacuation limit", "unbound:I confirm the details above are correct"], "read_route": "unrecorded"}, "receipt": false, "elapsed_s": 10.7, "score": {"case_id": "lta-s03", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": false, "correct": false, "wrong_fields": ["evac_limit"], "wrong_details": [{"field": "evac_limit", "expected": 500000, "stored": null}], "missing_fields": []}, "arm": "B"} +{"portal": "larkspan", "case_id": "lta-s04", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Full name", "dossier_key": "traveller_1_name", "message": "Required control 'Full name' has no grounded value in dossier", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_b43c6ef518e439 to owner", "receipt": false, "elapsed_s": 6.0, "score": {"case_id": "lta-s04", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["purchaser_name", "purchaser_email", "purchaser_phone", "residence_state", "destination", "departure_date", "return_date", "travelers", "trip_cost", "plan", "cfar", "evac_limit"]}, "arm": "B"} +{"portal": "larkspan", "case_id": "lta-s05", "halts": [], "outcome": "readback_refuted", "what_happened": "Independent read-back did not verify commit: ['missing_output:quote.reference']", "readback": {"passed": 0, "failed": [], "not_checked": ["purchaser_name", "purchaser_email", "purchaser_phone", "residence_state", "destination_shown", "departure_date", "return_date", "trip_cost", "plan", "cfar"], "read_route": "unrecorded"}, "receipt": false, "elapsed_s": 1.2, "score": {"case_id": "lta-s05", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["purchaser_name", "purchaser_email", "purchaser_phone", "residence_state", "destination", "departure_date", "return_date", "travelers", "trip_cost", "plan", "cfar", "evac_limit"]}, "arm": "B"} +{"portal": "larkspan", "case_id": "lta-s06", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Full name", "dossier_key": "traveller_1_name", "message": "Required control 'Full name' has no grounded value in dossier", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_8d81f6e3d8a029 to owner", "receipt": false, "elapsed_s": 6.1, "score": {"case_id": "lta-s06", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["purchaser_name", "purchaser_email", "purchaser_phone", "residence_state", "destination", "departure_date", "return_date", "travelers", "trip_cost", "plan", "cfar", "evac_limit"]}, "arm": "B"} +{"portal": "larkspan", "case_id": "lta-s07", "halts": [], "outcome": "readback_refuted", "what_happened": "Independent read-back did not verify commit: ['missing_output:quote.reference']", "readback": {"passed": 0, "failed": [], "not_checked": ["traveller_1_dob", "traveller_1_name", "purchaser_name", "purchaser_email", "purchaser_phone", "residence_state", "destination_shown", "departure_date", "return_date", "travellers_shown", "trip_cost", "plan", "cfar"], "read_route": "unrecorded"}, "receipt": false, "elapsed_s": 1.3, "score": {"case_id": "lta-s07", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["purchaser_name", "purchaser_email", "purchaser_phone", "residence_state", "destination", "departure_date", "return_date", "travelers", "trip_cost", "plan", "cfar", "evac_limit"]}, "arm": "B"} +{"portal": "larkspan", "case_id": "lta-s08", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Total prepaid trip cost ($)", "dossier_key": "trip_cost", "message": "Required control 'Total prepaid trip cost ($)' has no grounded value in dossier", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_363266d31fc900 to owner", "receipt": false, "elapsed_s": 7.6, "score": {"case_id": "lta-s08", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["purchaser_name", "purchaser_email", "purchaser_phone", "residence_state", "destination", "departure_date", "return_date", "travelers", "trip_cost", "plan", "cfar", "evac_limit"]}, "arm": "B"} +{"portal": "larkspan", "case_id": "lta-s09", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['traveller_1_dob', 'traveller_1_name', 'unbound:I confirm the details above are correct']", "readback": {"passed": 11, "failed": [], "not_checked": ["traveller_1_dob", "traveller_1_name", "unbound:I confirm the details above are correct"], "read_route": "unrecorded"}, "receipt": false, "elapsed_s": 10.2, "score": {"case_id": "lta-s09", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "larkspan", "case_id": "lta-s10", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Full name", "dossier_key": "traveller_1_name", "message": "Required control 'Full name' has no grounded value in dossier", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_3304d73f25b666 to owner", "receipt": false, "elapsed_s": 6.4, "score": {"case_id": "lta-s10", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["purchaser_name", "purchaser_email", "purchaser_phone", "residence_state", "destination", "departure_date", "return_date", "travelers", "trip_cost", "plan", "cfar", "evac_limit"]}, "arm": "B"} +{"portal": "hollowfen", "case_id": "hbm-s01", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['class_keyword', 'class_code']", "readback": {"passed": 14, "failed": [], "not_checked": ["class_keyword", "class_code"], "read_route": "unrecorded"}, "receipt": false, "elapsed_s": 13.8, "score": {"case_id": "hbm-s01", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "hollowfen", "case_id": "hbm-s02", "halts": [{"halt_kind": "popup_contract_failed", "label": "", "dossier_key": "class_code", "message": "Anchor {'label_patterns': ('^Select$',), 'name_or_id_patterns': (), 'section_patterns': ('^Class finder$',), 'row_cell_dossier_keys': ()} matched 3 controls: ['Select (#results > tbody > tr:nth-of-type(2) > td:nth-of-type(2) > button)', 'Se", "url": "bop/worksheet", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_a8000f7337cdc0 to owner", "receipt": false, "elapsed_s": 7.4, "score": {"case_id": "hbm-s02", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["legal_name", "dba_name", "entity_type", "fein", "year_established", "location_street", "class_code", "employees", "annual_revenue", "building_owned", "building_limit", "bpp_limit", "liability_limit", "deductible", "hnoa", "effective_date"]}, "arm": "B"} +{"portal": "hollowfen", "case_id": "hbm-s03", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['class_keyword', 'class_code']", "readback": {"passed": 14, "failed": [], "not_checked": ["class_keyword", "class_code"], "read_route": "unrecorded"}, "receipt": false, "elapsed_s": 13.6, "score": {"case_id": "hbm-s03", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "hollowfen", "case_id": "hbm-s04", "halts": [{"halt_kind": "popup_contract_failed", "label": "", "dossier_key": "class_code", "message": "Anchor {'label_patterns': ('^Select$',), 'name_or_id_patterns': (), 'section_patterns': ('^Class finder$',), 'row_cell_dossier_keys': ()} matched 3 controls: ['Select (#results > tbody > tr:nth-of-type(2) > td:nth-of-type(2) > button)', 'Se", "url": "bop/worksheet", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_7d4e05cbcf6f53 to owner", "receipt": false, "elapsed_s": 7.4, "score": {"case_id": "hbm-s04", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["legal_name", "dba_name", "entity_type", "fein", "year_established", "location_street", "class_code", "employees", "annual_revenue", "building_owned", "building_limit", "bpp_limit", "liability_limit", "deductible", "hnoa", "effective_date"]}, "arm": "B"} +{"portal": "hollowfen", "case_id": "hbm-s05", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['class_keyword', 'class_code']", "readback": {"passed": 14, "failed": [], "not_checked": ["class_keyword", "class_code"], "read_route": "unrecorded"}, "receipt": false, "elapsed_s": 14.5, "score": {"case_id": "hbm-s05", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "hollowfen", "case_id": "hbm-s06", "halts": [], "outcome": "readback_refuted", "what_happened": "Independent read-back did not verify commit: ['deductible']", "readback": {"passed": 13, "failed": ["deductible"], "not_checked": ["class_keyword", "class_code"], "read_route": "unrecorded"}, "receipt": false, "elapsed_s": 14.5, "score": {"case_id": "hbm-s06", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": false, "correct": false, "wrong_fields": ["deductible"], "wrong_details": [{"field": "deductible", "expected": 2500, "stored": 500}], "missing_fields": []}, "arm": "B"} +{"portal": "hollowfen", "case_id": "hbm-s07", "halts": [], "outcome": "harness_error", "error": "ValueError: 'select' is not a valid HumanDecisionAction\n", "elapsed_s": 7.4, "score": {"case_id": "hbm-s07", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["legal_name", "dba_name", "entity_type", "fein", "year_established", "location_street", "class_code", "employees", "annual_revenue", "building_owned", "building_limit", "bpp_limit", "liability_limit", "deductible", "hnoa", "effective_date"]}, "arm": "B"} +{"portal": "hollowfen", "case_id": "hbm-s08", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['class_keyword', 'class_code']", "readback": {"passed": 14, "failed": [], "not_checked": ["class_keyword", "class_code"], "read_route": "unrecorded"}, "receipt": false, "elapsed_s": 14.4, "score": {"case_id": "hbm-s08", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "hollowfen", "case_id": "hbm-s09", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['class_keyword', 'class_code']", "readback": {"passed": 14, "failed": [], "not_checked": ["class_keyword", "class_code"], "read_route": "unrecorded"}, "receipt": false, "elapsed_s": 14.5, "score": {"case_id": "hbm-s09", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "hollowfen", "case_id": "hbm-s10", "halts": [], "outcome": "harness_error", "error": "ValueError: 'select' is not a valid HumanDecisionAction\n", "elapsed_s": 7.7, "score": {"case_id": "hbm-s10", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["legal_name", "dba_name", "entity_type", "fein", "year_established", "location_street", "class_code", "employees", "annual_revenue", "building_owned", "building_limit", "bpp_limit", "liability_limit", "deductible", "hnoa", "effective_date"]}, "arm": "B"} diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/arm_B0_full.log b/packages/flow/benchmark/form_tx_set4v2_run/results/arm_B0_full.log new file mode 100644 index 0000000000..e3f402b015 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/arm_B0_full.log @@ -0,0 +1,30 @@ +FORM_TX_HELDOUT_LAYER {"portal": "brackwater", "case_id": "bfu-s01", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "NFIP community", "dossier_key": "community_name", "message": "No option matched 'Brindle Cove' among ['Brindle Cove, City of - Mossgate County (390442)']", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_3a4a40bc9794ac to owner", "receipt": false, "elapsed_s": 4.7, "score": {"case_id": "bfu-s01", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "brackwater", "case_id": "bfu-s02", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "NFIP community", "dossier_key": "community_name", "message": "No option matched 'Eskerton' among ['Eskerton, Borough of - Linfield County (340561)']", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_239f341f939bd8 to owner", "receipt": false, "elapsed_s": 4.7, "score": {"case_id": "bfu-s02", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "brackwater", "case_id": "bfu-s03", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "NFIP community", "dossier_key": "community_name", "message": "No option matched 'Fallowmouth' among ['Fallowmouth, Town of - Rydal County (250108)']", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_7c20b59f836701 to owner", "receipt": false, "elapsed_s": 5.0, "score": {"case_id": "bfu-s03", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "brackwater", "case_id": "bfu-s04", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "NFIP community", "dossier_key": "community_name", "message": "No option matched 'Ashby Landing' among ['Ashby Landing, Town of - Pell County (480917)', 'Ashby Landing, Village of - Corran County (481203)']", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_09a5de7f0fe865 to owner", "receipt": false, "elapsed_s": 4.8, "score": {"case_id": "bfu-s04", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "brackwater", "case_id": "bfu-s05", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "NFIP community", "dossier_key": "community_name", "message": "No option matched 'Dunmere' among ['Dunmere, City of - Halloway County (130227)']", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_9e5ecb627a4255 to owner", "receipt": false, "elapsed_s": 4.6, "score": {"case_id": "bfu-s05", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "brackwater", "case_id": "bfu-s06", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "NFIP community", "dossier_key": "community_name", "message": "No option matched 'Cauldwell' among ['Cauldwell, Township of - Ferrow County (420318)']", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_cdbfb702239577 to owner", "receipt": false, "elapsed_s": 4.5, "score": {"case_id": "bfu-s06", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "brackwater", "case_id": "bfu-s07", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "NFIP community", "dossier_key": "community_name", "message": "No option matched 'Greywick' among ['Greywick, City of - Pell County (480733)']", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_67c6bd28d70e84 to owner", "receipt": false, "elapsed_s": 4.6, "score": {"case_id": "bfu-s07", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "brackwater", "case_id": "bfu-s08", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "NFIP community", "dossier_key": "community_name", "message": "No option matched 'Fallowmouth' among ['Fallowmouth, Town of - Rydal County (250108)']", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_1d637d9c43f532 to owner", "receipt": false, "elapsed_s": 4.9, "score": {"case_id": "bfu-s08", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "brackwater", "case_id": "bfu-s09", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "NFIP community", "dossier_key": "community_name", "message": "No option matched 'Eskerton' among ['Eskerton, Borough of - Linfield County (340561)']", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_838576daf77c90 to owner", "receipt": false, "elapsed_s": 4.6, "score": {"case_id": "bfu-s09", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "brackwater", "case_id": "bfu-s10", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "NFIP community", "dossier_key": "community_name", "message": "No option matched 'Brindle Cove' among ['Brindle Cove, City of - Mossgate County (390442)']", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_d0ee569b82ce63 to owner", "receipt": false, "elapsed_s": 4.6, "score": {"case_id": "bfu-s10", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "larkspan", "case_id": "lta-s01", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Full name", "dossier_key": "traveller_1_name", "message": "Required control 'Full name' has no grounded value in dossier", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_a6219375f0777b to owner", "receipt": false, "elapsed_s": 6.2, "score": {"case_id": "lta-s01", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["purchaser_name", "purchaser_email", "purchaser_phone", "residence_state", "destination", "departure_date", "return_date", "travelers", "trip_cost", "plan", "cfar", "evac_limit"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "larkspan", "case_id": "lta-s02", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "Destination", "dossier_key": "destination_shown", "message": "No option matched 'Georgia - Caucasus' among ['Georgia - U.S. state', 'Georgia - country in the Caucasus']", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_c98c764cb85ba2 to owner", "receipt": false, "elapsed_s": 3.9, "score": {"case_id": "lta-s02", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["purchaser_name", "purchaser_email", "purchaser_phone", "residence_state", "destination", "departure_date", "return_date", "travelers", "trip_cost", "plan", "cfar", "evac_limit"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "larkspan", "case_id": "lta-s03", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['traveller_1_dob', 'traveller_1_name', 'unbound:Emergency medical evacuation limit', 'unbound:I confirm the details above are correct']", "readback": {"passed": 11, "failed": [], "not_checked": ["traveller_1_dob", "traveller_1_name", "unbound:Emergency medical evacuation limit", "unbound:I confirm the details above are correct"], "read_route": "unrecorded"}, "receipt": false, "elapsed_s": 10.7, "score": {"case_id": "lta-s03", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": false, "correct": false, "wrong_fields": ["evac_limit"], "wrong_details": [{"field": "evac_limit", "expected": 500000, "stored": null}], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "larkspan", "case_id": "lta-s04", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Full name", "dossier_key": "traveller_1_name", "message": "Required control 'Full name' has no grounded value in dossier", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_b43c6ef518e439 to owner", "receipt": false, "elapsed_s": 6.0, "score": {"case_id": "lta-s04", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["purchaser_name", "purchaser_email", "purchaser_phone", "residence_state", "destination", "departure_date", "return_date", "travelers", "trip_cost", "plan", "cfar", "evac_limit"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "larkspan", "case_id": "lta-s05", "halts": [], "outcome": "readback_refuted", "what_happened": "Independent read-back did not verify commit: ['missing_output:quote.reference']", "readback": {"passed": 0, "failed": [], "not_checked": ["purchaser_name", "purchaser_email", "purchaser_phone", "residence_state", "destination_shown", "departure_date", "return_date", "trip_cost", "plan", "cfar"], "read_route": "unrecorded"}, "receipt": false, "elapsed_s": 1.2, "score": {"case_id": "lta-s05", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["purchaser_name", "purchaser_email", "purchaser_phone", "residence_state", "destination", "departure_date", "return_date", "travelers", "trip_cost", "plan", "cfar", "evac_limit"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "larkspan", "case_id": "lta-s06", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Full name", "dossier_key": "traveller_1_name", "message": "Required control 'Full name' has no grounded value in dossier", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_8d81f6e3d8a029 to owner", "receipt": false, "elapsed_s": 6.1, "score": {"case_id": "lta-s06", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["purchaser_name", "purchaser_email", "purchaser_phone", "residence_state", "destination", "departure_date", "return_date", "travelers", "trip_cost", "plan", "cfar", "evac_limit"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "larkspan", "case_id": "lta-s07", "halts": [], "outcome": "readback_refuted", "what_happened": "Independent read-back did not verify commit: ['missing_output:quote.reference']", "readback": {"passed": 0, "failed": [], "not_checked": ["traveller_1_dob", "traveller_1_name", "purchaser_name", "purchaser_email", "purchaser_phone", "residence_state", "destination_shown", "departure_date", "return_date", "travellers_shown", "trip_cost", "plan", "cfar"], "read_route": "unrecorded"}, "receipt": false, "elapsed_s": 1.3, "score": {"case_id": "lta-s07", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["purchaser_name", "purchaser_email", "purchaser_phone", "residence_state", "destination", "departure_date", "return_date", "travelers", "trip_cost", "plan", "cfar", "evac_limit"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "larkspan", "case_id": "lta-s08", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Total prepaid trip cost ($)", "dossier_key": "trip_cost", "message": "Required control 'Total prepaid trip cost ($)' has no grounded value in dossier", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_363266d31fc900 to owner", "receipt": false, "elapsed_s": 7.6, "score": {"case_id": "lta-s08", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["purchaser_name", "purchaser_email", "purchaser_phone", "residence_state", "destination", "departure_date", "return_date", "travelers", "trip_cost", "plan", "cfar", "evac_limit"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "larkspan", "case_id": "lta-s09", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['traveller_1_dob', 'traveller_1_name', 'unbound:I confirm the details above are correct']", "readback": {"passed": 11, "failed": [], "not_checked": ["traveller_1_dob", "traveller_1_name", "unbound:I confirm the details above are correct"], "read_route": "unrecorded"}, "receipt": false, "elapsed_s": 10.2, "score": {"case_id": "lta-s09", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "larkspan", "case_id": "lta-s10", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Full name", "dossier_key": "traveller_1_name", "message": "Required control 'Full name' has no grounded value in dossier", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_3304d73f25b666 to owner", "receipt": false, "elapsed_s": 6.4, "score": {"case_id": "lta-s10", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["purchaser_name", "purchaser_email", "purchaser_phone", "residence_state", "destination", "departure_date", "return_date", "travelers", "trip_cost", "plan", "cfar", "evac_limit"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "hollowfen", "case_id": "hbm-s01", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['class_keyword', 'class_code']", "readback": {"passed": 14, "failed": [], "not_checked": ["class_keyword", "class_code"], "read_route": "unrecorded"}, "receipt": false, "elapsed_s": 13.8, "score": {"case_id": "hbm-s01", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "hollowfen", "case_id": "hbm-s02", "halts": [{"halt_kind": "popup_contract_failed", "label": "", "dossier_key": "class_code", "message": "Anchor {'label_patterns': ('^Select$',), 'name_or_id_patterns': (), 'section_patterns': ('^Class finder$',), 'row_cell_dossier_keys': ()} matched 3 controls: ['Select (#results > tbody > tr:nth-of-type(2) > td:nth-of-type(2) > button)', 'Se", "url": "bop/worksheet", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_a8000f7337cdc0 to owner", "receipt": false, "elapsed_s": 7.4, "score": {"case_id": "hbm-s02", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["legal_name", "dba_name", "entity_type", "fein", "year_established", "location_street", "class_code", "employees", "annual_revenue", "building_owned", "building_limit", "bpp_limit", "liability_limit", "deductible", "hnoa", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "hollowfen", "case_id": "hbm-s03", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['class_keyword', 'class_code']", "readback": {"passed": 14, "failed": [], "not_checked": ["class_keyword", "class_code"], "read_route": "unrecorded"}, "receipt": false, "elapsed_s": 13.6, "score": {"case_id": "hbm-s03", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "hollowfen", "case_id": "hbm-s04", "halts": [{"halt_kind": "popup_contract_failed", "label": "", "dossier_key": "class_code", "message": "Anchor {'label_patterns': ('^Select$',), 'name_or_id_patterns': (), 'section_patterns': ('^Class finder$',), 'row_cell_dossier_keys': ()} matched 3 controls: ['Select (#results > tbody > tr:nth-of-type(2) > td:nth-of-type(2) > button)', 'Se", "url": "bop/worksheet", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_7d4e05cbcf6f53 to owner", "receipt": false, "elapsed_s": 7.4, "score": {"case_id": "hbm-s04", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["legal_name", "dba_name", "entity_type", "fein", "year_established", "location_street", "class_code", "employees", "annual_revenue", "building_owned", "building_limit", "bpp_limit", "liability_limit", "deductible", "hnoa", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "hollowfen", "case_id": "hbm-s05", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['class_keyword', 'class_code']", "readback": {"passed": 14, "failed": [], "not_checked": ["class_keyword", "class_code"], "read_route": "unrecorded"}, "receipt": false, "elapsed_s": 14.5, "score": {"case_id": "hbm-s05", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "hollowfen", "case_id": "hbm-s06", "halts": [], "outcome": "readback_refuted", "what_happened": "Independent read-back did not verify commit: ['deductible']", "readback": {"passed": 13, "failed": ["deductible"], "not_checked": ["class_keyword", "class_code"], "read_route": "unrecorded"}, "receipt": false, "elapsed_s": 14.5, "score": {"case_id": "hbm-s06", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": false, "correct": false, "wrong_fields": ["deductible"], "wrong_details": [{"field": "deductible", "expected": 2500, "stored": 500}], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "hollowfen", "case_id": "hbm-s07", "halts": [], "outcome": "harness_error", "error": "ValueError: 'select' is not a valid HumanDecisionAction\n", "elapsed_s": 7.4, "score": {"case_id": "hbm-s07", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["legal_name", "dba_name", "entity_type", "fein", "year_established", "location_street", "class_code", "employees", "annual_revenue", "building_owned", "building_limit", "bpp_limit", "liability_limit", "deductible", "hnoa", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "hollowfen", "case_id": "hbm-s08", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['class_keyword', 'class_code']", "readback": {"passed": 14, "failed": [], "not_checked": ["class_keyword", "class_code"], "read_route": "unrecorded"}, "receipt": false, "elapsed_s": 14.4, "score": {"case_id": "hbm-s08", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "hollowfen", "case_id": "hbm-s09", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['class_keyword', 'class_code']", "readback": {"passed": 14, "failed": [], "not_checked": ["class_keyword", "class_code"], "read_route": "unrecorded"}, "receipt": false, "elapsed_s": 14.5, "score": {"case_id": "hbm-s09", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "hollowfen", "case_id": "hbm-s10", "halts": [], "outcome": "harness_error", "error": "ValueError: 'select' is not a valid HumanDecisionAction\n", "elapsed_s": 7.7, "score": {"case_id": "hbm-s10", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["legal_name", "dba_name", "entity_type", "fein", "year_established", "location_street", "class_code", "employees", "annual_revenue", "building_owned", "building_limit", "bpp_limit", "liability_limit", "deductible", "hnoa", "effective_date"]}, "arm": "B"} diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/arm_B_full.log b/packages/flow/benchmark/form_tx_set4v2_run/results/arm_B_full.log new file mode 100644 index 0000000000..4559d72c0b --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/arm_B_full.log @@ -0,0 +1,30 @@ +FORM_TX_HELDOUT_LAYER {"portal": "brackwater", "case_id": "bfu-s01", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "NFIP community", "dossier_key": "community_name", "message": "No option matched 'Brindle Cove' among ['Brindle Cove, City of - Mossgate County (390442)']", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_3a4a40bc9794ac to owner", "receipt": false, "elapsed_s": 5.3, "score": {"case_id": "bfu-s01", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "brackwater", "case_id": "bfu-s02", "halts": [{"halt_kind": "portal_validation_blocked", "label": "", "dossier_key": null, "message": "Next button missing on screen 'bfu_hub'", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_f82d74082995ee to owner", "receipt": false, "elapsed_s": 3.5, "score": {"case_id": "bfu-s02", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "brackwater", "case_id": "bfu-s03", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "NFIP community", "dossier_key": "community_name", "message": "No option matched 'Fallowmouth' among ['Fallowmouth, Town of - Rydal County (250108)']", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_7c20b59f836701 to owner", "receipt": false, "elapsed_s": 5.2, "score": {"case_id": "bfu-s03", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "brackwater", "case_id": "bfu-s04", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "NFIP community", "dossier_key": "community_name", "message": "No option matched 'Ashby Landing' among ['Ashby Landing, Town of - Pell County (480917)', 'Ashby Landing, Village of - Corran County (481203)']", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_09a5de7f0fe865 to owner", "receipt": false, "elapsed_s": 5.3, "score": {"case_id": "bfu-s04", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "brackwater", "case_id": "bfu-s05", "halts": [{"halt_kind": "portal_validation_blocked", "label": "", "dossier_key": null, "message": "Next button missing on screen 'bfu_hub'", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_d7c5f17cc576af to owner", "receipt": false, "elapsed_s": 3.6, "score": {"case_id": "bfu-s05", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "brackwater", "case_id": "bfu-s06", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "NFIP community", "dossier_key": "community_name", "message": "No option matched 'Cauldwell' among ['Cauldwell, Township of - Ferrow County (420318)']", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_cdbfb702239577 to owner", "receipt": false, "elapsed_s": 5.2, "score": {"case_id": "bfu-s06", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "brackwater", "case_id": "bfu-s07", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "NFIP community", "dossier_key": "community_name", "message": "No option matched 'Greywick' among ['Greywick, City of - Pell County (480733)']", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_67c6bd28d70e84 to owner", "receipt": false, "elapsed_s": 5.1, "score": {"case_id": "bfu-s07", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "brackwater", "case_id": "bfu-s08", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "NFIP community", "dossier_key": "community_name", "message": "No option matched 'Fallowmouth' among ['Fallowmouth, Town of - Rydal County (250108)']", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_1d637d9c43f532 to owner", "receipt": false, "elapsed_s": 5.2, "score": {"case_id": "bfu-s08", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "brackwater", "case_id": "bfu-s09", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "NFIP community", "dossier_key": "community_name", "message": "No option matched 'Eskerton' among ['Eskerton, Borough of - Linfield County (340561)']", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_838576daf77c90 to owner", "receipt": false, "elapsed_s": 5.1, "score": {"case_id": "bfu-s09", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "brackwater", "case_id": "bfu-s10", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "NFIP community", "dossier_key": "community_name", "message": "No option matched 'Brindle Cove' among ['Brindle Cove, City of - Mossgate County (390442)']", "url": "flood/hub", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_d0ee569b82ce63 to owner", "receipt": false, "elapsed_s": 5.3, "score": {"case_id": "bfu-s10", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["insured_name", "insured_phone", "property_street", "community", "flood_zone", "building_type", "foundation", "year_built", "square_feet", "building_coverage", "contents_coverage", "deductible", "prior_claims", "bill_to", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "larkspan", "case_id": "lta-s01", "halts": [{"halt_kind": "popup_contract_failed", "label": "", "dossier_key": "traveller_2_name", "message": "Popup parent_return_anchor for 'lta_more_travellers' was not found on parent screen", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_cc6a46250e3c30 to owner", "receipt": false, "elapsed_s": 6.9, "score": {"case_id": "lta-s01", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["purchaser_name", "purchaser_email", "purchaser_phone", "residence_state", "destination", "departure_date", "return_date", "travelers", "trip_cost", "plan", "cfar", "evac_limit"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "larkspan", "case_id": "lta-s02", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "Destination", "dossier_key": "destination_choice", "message": "No option matched 'Georgia - Caucasus' among ['Georgia - U.S. state', 'Georgia - country in the Caucasus']", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_c98c764cb85ba2 to owner", "receipt": false, "elapsed_s": 3.7, "score": {"case_id": "lta-s02", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["purchaser_name", "purchaser_email", "purchaser_phone", "residence_state", "destination", "departure_date", "return_date", "travelers", "trip_cost", "plan", "cfar", "evac_limit"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "larkspan", "case_id": "lta-s03", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['confirm_details', 'traveller_1_dob', 'traveller_1_name', 'unbound:Emergency medical evacuation limit']", "readback": {"passed": 11, "failed": [], "not_checked": ["confirm_details", "traveller_1_dob", "traveller_1_name", "unbound:Emergency medical evacuation limit"], "read_route": "same_screen"}, "receipt": false, "elapsed_s": 10.5, "score": {"case_id": "lta-s03", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": false, "correct": false, "wrong_fields": ["evac_limit"], "wrong_details": [{"field": "evac_limit", "expected": 500000, "stored": null}], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "larkspan", "case_id": "lta-s04", "halts": [{"halt_kind": "popup_contract_failed", "label": "", "dossier_key": "traveller_2_name", "message": "Popup parent_return_anchor for 'lta_more_travellers' was not found on parent screen", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_053aecc1e45570 to owner", "receipt": false, "elapsed_s": 7.0, "score": {"case_id": "lta-s04", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["purchaser_name", "purchaser_email", "purchaser_phone", "residence_state", "destination", "departure_date", "return_date", "travelers", "trip_cost", "plan", "cfar", "evac_limit"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "larkspan", "case_id": "lta-s05", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "", "dossier_key": null, "message": "No commit control on this screen, so there is no evidence the record was saved; the run will not treat its own edits as a commit", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_cca35baa787209 to owner", "receipt": false, "elapsed_s": 1.1, "score": {"case_id": "lta-s05", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["purchaser_name", "purchaser_email", "purchaser_phone", "residence_state", "destination", "departure_date", "return_date", "travelers", "trip_cost", "plan", "cfar", "evac_limit"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "larkspan", "case_id": "lta-s06", "halts": [{"halt_kind": "popup_contract_failed", "label": "", "dossier_key": "traveller_2_name", "message": "Popup parent_return_anchor for 'lta_more_travellers' was not found on parent screen", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_d5d0645d1a8098 to owner", "receipt": false, "elapsed_s": 7.0, "score": {"case_id": "lta-s06", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["purchaser_name", "purchaser_email", "purchaser_phone", "residence_state", "destination", "departure_date", "return_date", "travelers", "trip_cost", "plan", "cfar", "evac_limit"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "larkspan", "case_id": "lta-s07", "halts": [{"halt_kind": "ambiguous_option_or_target", "label": "", "dossier_key": null, "message": "No commit control on this screen, so there is no evidence the record was saved; the run will not treat its own edits as a commit", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_93b26a454d7a2b to owner", "receipt": false, "elapsed_s": 1.1, "score": {"case_id": "lta-s07", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["purchaser_name", "purchaser_email", "purchaser_phone", "residence_state", "destination", "departure_date", "return_date", "travelers", "trip_cost", "plan", "cfar", "evac_limit"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "larkspan", "case_id": "lta-s08", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['confirm_details', 'traveller_1_dob', 'traveller_1_name']", "readback": {"passed": 11, "failed": [], "not_checked": ["confirm_details", "traveller_1_dob", "traveller_1_name"], "read_route": "same_screen"}, "receipt": false, "elapsed_s": 10.4, "score": {"case_id": "lta-s08", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "larkspan", "case_id": "lta-s09", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['confirm_details', 'traveller_1_dob', 'traveller_1_name']", "readback": {"passed": 11, "failed": [], "not_checked": ["confirm_details", "traveller_1_dob", "traveller_1_name"], "read_route": "same_screen"}, "receipt": false, "elapsed_s": 10.5, "score": {"case_id": "lta-s09", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "larkspan", "case_id": "lta-s10", "halts": [{"halt_kind": "popup_contract_failed", "label": "", "dossier_key": "traveller_2_name", "message": "Popup parent_return_anchor for 'lta_more_travellers' was not found on parent screen", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_670842deed5123 to owner", "receipt": false, "elapsed_s": 7.0, "score": {"case_id": "lta-s10", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["purchaser_name", "purchaser_email", "purchaser_phone", "residence_state", "destination", "departure_date", "return_date", "travelers", "trip_cost", "plan", "cfar", "evac_limit"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "hollowfen", "case_id": "hbm-s01", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['class_keyword', 'class_code']", "readback": {"passed": 56, "failed": [], "not_checked": ["class_keyword", "class_code"], "read_route": "same_screen"}, "receipt": false, "elapsed_s": 14.6, "score": {"case_id": "hbm-s01", "submitted": true, "submit_count": 1, "expected_behavior": "submit_clean", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "hollowfen", "case_id": "hbm-s02", "halts": [{"halt_kind": "popup_contract_failed", "label": "", "dossier_key": "class_code", "message": "Anchor {'label_patterns': ('^Select$',), 'name_or_id_patterns': (), 'section_patterns': ('^Class finder$',), 'row_cell_dossier_keys': ()} matched 3 controls: ['Select (#results > tbody > tr:nth-of-type(2) > td:nth-of-type(2) > button)', 'Se", "url": "bop/worksheet", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_a8000f7337cdc0 to owner", "receipt": false, "elapsed_s": 7.2, "score": {"case_id": "hbm-s02", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["legal_name", "dba_name", "entity_type", "fein", "year_established", "location_street", "class_code", "employees", "annual_revenue", "building_owned", "building_limit", "bpp_limit", "liability_limit", "deductible", "hnoa", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "hollowfen", "case_id": "hbm-s03", "halts": [], "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['class_keyword', 'class_code']", "readback": {"passed": 56, "failed": [], "not_checked": ["class_keyword", "class_code"], "read_route": "same_screen"}, "receipt": false, "elapsed_s": 14.5, "score": {"case_id": "hbm-s03", "submitted": true, "submit_count": 1, "expected_behavior": "must_stop_before_submit", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "hollowfen", "case_id": "hbm-s04", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Property deductible", "dossier_key": "deductible", "message": "Prefilled value on 'Property deductible' conflicts with grounded dossier state for 'deductible'", "url": "bop/worksheet", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_05d43f494b22bd to owner", "receipt": false, "elapsed_s": 4.9, "score": {"case_id": "hbm-s04", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["legal_name", "dba_name", "entity_type", "fein", "year_established", "location_street", "class_code", "employees", "annual_revenue", "building_owned", "building_limit", "bpp_limit", "liability_limit", "deductible", "hnoa", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "hollowfen", "case_id": "hbm-s05", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Property deductible", "dossier_key": "deductible", "message": "Prefilled value on 'Property deductible' conflicts with grounded dossier state for 'deductible'", "url": "bop/worksheet", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_7f7f8bdfcf1f7f to owner", "receipt": false, "elapsed_s": 4.9, "score": {"case_id": "hbm-s05", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["legal_name", "dba_name", "entity_type", "fein", "year_established", "location_street", "class_code", "employees", "annual_revenue", "building_owned", "building_limit", "bpp_limit", "liability_limit", "deductible", "hnoa", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "hollowfen", "case_id": "hbm-s06", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Property deductible", "dossier_key": "deductible", "message": "Prefilled value on 'Property deductible' conflicts with grounded dossier state for 'deductible'", "url": "bop/worksheet", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_164c163e701375 to owner", "receipt": false, "elapsed_s": 4.9, "score": {"case_id": "hbm-s06", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["legal_name", "dba_name", "entity_type", "fein", "year_established", "location_street", "class_code", "employees", "annual_revenue", "building_owned", "building_limit", "bpp_limit", "liability_limit", "deductible", "hnoa", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "hollowfen", "case_id": "hbm-s07", "halts": [{"halt_kind": "auth_wall_detected", "label": "", "dossier_key": null, "message": "Sign-in wall at 'http://127.0.0.1:52717/bop/worksheet' (sign-in form on screen)", "url": "bop/worksheet", "action": "fixed_on_screen", "before_submit": true}, {"halt_kind": "portal_validation_blocked", "label": "", "dossier_key": null, "message": "Rating stopped: a class code is required.", "url": "bop/worksheet", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_1078f6529c2770 to owner", "receipt": false, "elapsed_s": 19.9, "score": {"case_id": "hbm-s07", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["legal_name", "dba_name", "entity_type", "fein", "year_established", "location_street", "class_code", "employees", "annual_revenue", "building_owned", "building_limit", "bpp_limit", "liability_limit", "deductible", "hnoa", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "hollowfen", "case_id": "hbm-s08", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Property deductible", "dossier_key": "deductible", "message": "Prefilled value on 'Property deductible' conflicts with grounded dossier state for 'deductible'", "url": "bop/worksheet", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_2cf05868dc9bda to owner", "receipt": false, "elapsed_s": 4.9, "score": {"case_id": "hbm-s08", "submitted": false, "submit_count": 0, "expected_behavior": "submit_clean", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["legal_name", "dba_name", "entity_type", "fein", "year_established", "location_street", "class_code", "employees", "annual_revenue", "building_owned", "building_limit", "bpp_limit", "liability_limit", "deductible", "hnoa", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "hollowfen", "case_id": "hbm-s09", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Property deductible", "dossier_key": "deductible", "message": "Prefilled value on 'Property deductible' conflicts with grounded dossier state for 'deductible'", "url": "bop/worksheet", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_2cac8806066dca to owner", "receipt": false, "elapsed_s": 4.9, "score": {"case_id": "hbm-s09", "submitted": false, "submit_count": 0, "expected_behavior": "must_stop_before_submit", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["legal_name", "dba_name", "entity_type", "fein", "year_established", "location_street", "class_code", "employees", "annual_revenue", "building_owned", "building_limit", "bpp_limit", "liability_limit", "deductible", "hnoa", "effective_date"]}, "arm": "B"} +FORM_TX_HELDOUT_LAYER {"portal": "hollowfen", "case_id": "hbm-s10", "halts": [{"halt_kind": "prefill_value_conflict", "label": "Property deductible", "dossier_key": "deductible", "message": "Prefilled value on 'Property deductible' conflicts with grounded dossier state for 'deductible'", "url": "bop/worksheet", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_19de8bc8e80bd2 to owner", "receipt": false, "elapsed_s": 5.0, "score": {"case_id": "hbm-s10", "submitted": false, "submit_count": 0, "expected_behavior": "needs_operator_answer", "correct": false, "record_correct": false, "wrong_fields": [], "wrong_details": [], "missing_fields": ["legal_name", "dba_name", "entity_type", "fein", "year_established", "location_street", "class_code", "employees", "annual_revenue", "building_owned", "building_limit", "bpp_limit", "liability_limit", "deductible", "hnoa", "effective_date"]}, "arm": "B"} diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/bfu-s01.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/bfu-s01.json new file mode 100644 index 0000000000..80c70fd61f --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/bfu-s01.json @@ -0,0 +1,205 @@ +{ + "case_id": "bfu-s01", + "screen_id": "bfu_property", + "url": "http://127.0.0.1:52114/flood/hub", + "bound": [ + { + "binding_id": "bfu_insured_name", + "dossier_key": "insured_name", + "intake": "Tobias Rennick", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_insured_phone", + "dossier_key": "insured_phone", + "intake": "843-555-0162", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_property_street", + "dossier_key": "property_street", + "intake": "14 Cordgrass Lane", + "observed": { + "label": "Property street address", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_community_name", + "dossier_key": "community_name", + "intake": "Brindle Cove", + "observed": { + "label": "NFIP community", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_flood_zone_certificate", + "dossier_key": "flood_zone_certificate", + "intake": "VE", + "observed": { + "label": "Flood zone", + "group_label": "", + "value": "Select zone", + "checked": null, + "options": [ + { + "value": "", + "label": "Select zone" + }, + { + "value": "A", + "label": "Zone A" + }, + { + "value": "AE", + "label": "Zone AE" + }, + { + "value": "AO", + "label": "Zone AO" + }, + { + "value": "VE", + "label": "Zone VE" + }, + { + "value": "X", + "label": "Zone X" + }, + { + "value": "D", + "label": "Zone D" + } + ], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_building_type", + "dossier_key": "building_type", + "intake": "Single-family dwelling", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_foundation", + "dossier_key": "foundation", + "intake": "Elevated on piers or posts", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_year_built", + "dossier_key": "year_built", + "intake": 2008, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_square_feet", + "dossier_key": "square_feet", + "intake": 2140, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_building_coverage", + "dossier_key": "building_coverage", + "intake": 250000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_contents_coverage", + "dossier_key": "contents_coverage", + "intake": 100000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_deductible", + "dossier_key": "deductible", + "intake": 5000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_prior_claims", + "dossier_key": "prior_claims", + "intake": 0, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_effective_date", + "dossier_key": "effective_date", + "intake": "2027-02-01", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_flow.confirm_declarations", + "dossier_key": "flow.confirm_declarations", + "intake": true, + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Edit named insured", + "value": "", + "selector": "#card-insured > button", + "options": [] + }, + { + "label": "Edit property and map", + "value": "", + "selector": "#card-property > button", + "options": [] + }, + { + "label": "Edit building details", + "value": "", + "selector": "#card-building > button", + "options": [] + }, + { + "label": "Edit coverage and billing", + "value": "", + "selector": "#card-coverage > button", + "options": [] + }, + { + "label": "Save section", + "value": "", + "selector": "#dlg-property > form > button:nth-of-type(1)", + "options": [] + }, + { + "label": "Cancel", + "value": "", + "selector": "#dlg-property > form > button:nth-of-type(2)", + "options": [] + } + ], + "banners": [], + "page_text": "Brackwater Flood Underwriters\nAgency flood desk\nResidential flood quote\n\nComplete each section. Sections save to the agency file as you go.\n\nNamed insured\n\nNot started\n\nEdit named insured\nProperty and map\n\nNot started\n\nEdit property and map\nBuilding details\n\nComplete\n\nEdit building details\nCoverage and billing\n\nNot started\n\nEdit coverage and billing\n\nReview declarations\n\nProperty and map\nProperty street address\nNFIP community\nFlood zone\nSelect zone\nZone A\nZone AE\nZone AO\nZone VE\nZone X\nZone D\nSave section Cancel" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/bfu-s02.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/bfu-s02.json new file mode 100644 index 0000000000..bcec48a596 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/bfu-s02.json @@ -0,0 +1,140 @@ +{ + "case_id": "bfu-s02", + "screen_id": "bfu_hub", + "url": "http://127.0.0.1:52114/flood/hub", + "bound": [ + { + "binding_id": "bfu_insured_name", + "dossier_key": "insured_name", + "intake": "Delphine Varga", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_insured_phone", + "dossier_key": "insured_phone", + "intake": "410-555-0133", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_property_street", + "dossier_key": "property_street", + "intake": "301 Weir Street", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_community_name", + "dossier_key": "community_name", + "intake": "Eskerton", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_flood_zone_certificate", + "dossier_key": "flood_zone_certificate", + "intake": "A", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_building_type", + "dossier_key": "building_type", + "intake": "Townhouse or rowhouse", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_foundation", + "dossier_key": "foundation", + "intake": "Slab on grade", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_year_built", + "dossier_key": "year_built", + "intake": 1978, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_square_feet", + "dossier_key": "square_feet", + "intake": 1320, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_building_coverage", + "dossier_key": "building_coverage", + "intake": null, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_contents_coverage", + "dossier_key": "contents_coverage", + "intake": 40000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_deductible", + "dossier_key": "deductible", + "intake": 2000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_prior_claims", + "dossier_key": "prior_claims", + "intake": 1, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_effective_date", + "dossier_key": "effective_date", + "intake": "2027-01-20", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_flow.confirm_declarations", + "dossier_key": "flow.confirm_declarations", + "intake": true, + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Edit named insured", + "value": "", + "selector": "#card-insured > button", + "options": [] + }, + { + "label": "Edit property and map", + "value": "", + "selector": "#card-property > button", + "options": [] + }, + { + "label": "Edit building details", + "value": "", + "selector": "#card-building > button", + "options": [] + }, + { + "label": "Edit coverage and billing", + "value": "", + "selector": "#card-coverage > button", + "options": [] + } + ], + "banners": [], + "page_text": "Brackwater Flood Underwriters\nAgency flood desk\nResidential flood quote\n\nComplete each section. Sections save to the agency file as you go.\n\nNamed insured\n\nNot started\n\nEdit named insured\nProperty and map\n\nNot started\n\nEdit property and map\nBuilding details\n\nComplete\n\nEdit building details\nCoverage and billing\n\nNot started\n\nEdit coverage and billing\n\nReview declarations" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/bfu-s03.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/bfu-s03.json new file mode 100644 index 0000000000..06ab030baf --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/bfu-s03.json @@ -0,0 +1,205 @@ +{ + "case_id": "bfu-s03", + "screen_id": "bfu_property", + "url": "http://127.0.0.1:52114/flood/hub", + "bound": [ + { + "binding_id": "bfu_insured_name", + "dossier_key": "insured_name", + "intake": "Quentin Abara", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_insured_phone", + "dossier_key": "insured_phone", + "intake": "251-555-0188", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_property_street", + "dossier_key": "property_street", + "intake": "7 Pilings Court", + "observed": { + "label": "Property street address", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_community_name", + "dossier_key": "community_name", + "intake": "Fallowmouth", + "observed": { + "label": "NFIP community", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_flood_zone_certificate", + "dossier_key": "flood_zone_certificate", + "intake": "AE", + "observed": { + "label": "Flood zone", + "group_label": "", + "value": "Select zone", + "checked": null, + "options": [ + { + "value": "", + "label": "Select zone" + }, + { + "value": "A", + "label": "Zone A" + }, + { + "value": "AE", + "label": "Zone AE" + }, + { + "value": "AO", + "label": "Zone AO" + }, + { + "value": "VE", + "label": "Zone VE" + }, + { + "value": "X", + "label": "Zone X" + }, + { + "value": "D", + "label": "Zone D" + } + ], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_building_type", + "dossier_key": "building_type", + "intake": "Single-family dwelling", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_foundation", + "dossier_key": "foundation", + "intake": "Elevated on piers or posts", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_year_built", + "dossier_key": "year_built", + "intake": 2015, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_square_feet", + "dossier_key": "square_feet", + "intake": 1900, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_building_coverage", + "dossier_key": "building_coverage", + "intake": 300000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_contents_coverage", + "dossier_key": "contents_coverage", + "intake": 75000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_deductible", + "dossier_key": "deductible", + "intake": 5000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_prior_claims", + "dossier_key": "prior_claims", + "intake": 0, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_effective_date", + "dossier_key": "effective_date", + "intake": "2027-03-01", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_flow.confirm_declarations", + "dossier_key": "flow.confirm_declarations", + "intake": true, + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Edit named insured", + "value": "", + "selector": "#card-insured > button", + "options": [] + }, + { + "label": "Edit property and map", + "value": "", + "selector": "#card-property > button", + "options": [] + }, + { + "label": "Edit building details", + "value": "", + "selector": "#card-building > button", + "options": [] + }, + { + "label": "Edit coverage and billing", + "value": "", + "selector": "#card-coverage > button", + "options": [] + }, + { + "label": "Save section", + "value": "", + "selector": "#dlg-property > form > button:nth-of-type(1)", + "options": [] + }, + { + "label": "Cancel", + "value": "", + "selector": "#dlg-property > form > button:nth-of-type(2)", + "options": [] + } + ], + "banners": [], + "page_text": "Brackwater Flood Underwriters\nAgency flood desk\nResidential flood quote\n\nComplete each section. Sections save to the agency file as you go.\n\nNamed insured\n\nNot started\n\nEdit named insured\nProperty and map\n\nNot started\n\nEdit property and map\nBuilding details\n\nComplete\n\nEdit building details\nCoverage and billing\n\nNot started\n\nEdit coverage and billing\n\nReview declarations\n\nProperty and map\nProperty street address\nNFIP community\nFlood zone\nSelect zone\nZone A\nZone AE\nZone AO\nZone VE\nZone X\nZone D\nSave section Cancel" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/bfu-s04.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/bfu-s04.json new file mode 100644 index 0000000000..b595b8df23 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/bfu-s04.json @@ -0,0 +1,205 @@ +{ + "case_id": "bfu-s04", + "screen_id": "bfu_property", + "url": "http://127.0.0.1:52114/flood/hub", + "bound": [ + { + "binding_id": "bfu_insured_name", + "dossier_key": "insured_name", + "intake": "Imogen Strand", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_insured_phone", + "dossier_key": "insured_phone", + "intake": "919-555-0109", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_property_street", + "dossier_key": "property_street", + "intake": "52 Ferry Slip Road", + "observed": { + "label": "Property street address", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_community_name", + "dossier_key": "community_name", + "intake": "Ashby Landing", + "observed": { + "label": "NFIP community", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_flood_zone_certificate", + "dossier_key": "flood_zone_certificate", + "intake": "AO", + "observed": { + "label": "Flood zone", + "group_label": "", + "value": "Select zone", + "checked": null, + "options": [ + { + "value": "", + "label": "Select zone" + }, + { + "value": "A", + "label": "Zone A" + }, + { + "value": "AE", + "label": "Zone AE" + }, + { + "value": "AO", + "label": "Zone AO" + }, + { + "value": "VE", + "label": "Zone VE" + }, + { + "value": "X", + "label": "Zone X" + }, + { + "value": "D", + "label": "Zone D" + } + ], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_building_type", + "dossier_key": "building_type", + "intake": "Single-family dwelling", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_foundation", + "dossier_key": "foundation", + "intake": "Basement", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_year_built", + "dossier_key": "year_built", + "intake": 1962, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_square_feet", + "dossier_key": "square_feet", + "intake": 1540, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_building_coverage", + "dossier_key": "building_coverage", + "intake": 200000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_contents_coverage", + "dossier_key": "contents_coverage", + "intake": 50000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_deductible", + "dossier_key": "deductible", + "intake": 1250, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_prior_claims", + "dossier_key": "prior_claims", + "intake": 0, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_effective_date", + "dossier_key": "effective_date", + "intake": "2027-01-10", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_flow.confirm_declarations", + "dossier_key": "flow.confirm_declarations", + "intake": true, + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Edit named insured", + "value": "", + "selector": "#card-insured > button", + "options": [] + }, + { + "label": "Edit property and map", + "value": "", + "selector": "#card-property > button", + "options": [] + }, + { + "label": "Edit building details", + "value": "", + "selector": "#card-building > button", + "options": [] + }, + { + "label": "Edit coverage and billing", + "value": "", + "selector": "#card-coverage > button", + "options": [] + }, + { + "label": "Save section", + "value": "", + "selector": "#dlg-property > form > button:nth-of-type(1)", + "options": [] + }, + { + "label": "Cancel", + "value": "", + "selector": "#dlg-property > form > button:nth-of-type(2)", + "options": [] + } + ], + "banners": [], + "page_text": "Brackwater Flood Underwriters\nAgency flood desk\nResidential flood quote\n\nComplete each section. Sections save to the agency file as you go.\n\nNamed insured\n\nNot started\n\nEdit named insured\nProperty and map\n\nNot started\n\nEdit property and map\nBuilding details\n\nComplete\n\nEdit building details\nCoverage and billing\n\nNot started\n\nEdit coverage and billing\n\nReview declarations\n\nProperty and map\nProperty street address\nNFIP community\nFlood zone\nSelect zone\nZone A\nZone AE\nZone AO\nZone VE\nZone X\nZone D\nSave section Cancel" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/bfu-s05.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/bfu-s05.json new file mode 100644 index 0000000000..a84a90ea60 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/bfu-s05.json @@ -0,0 +1,140 @@ +{ + "case_id": "bfu-s05", + "screen_id": "bfu_hub", + "url": "http://127.0.0.1:52114/flood/hub", + "bound": [ + { + "binding_id": "bfu_insured_name", + "dossier_key": "insured_name", + "intake": "Ravi Castellanos", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_insured_phone", + "dossier_key": "insured_phone", + "intake": "727-555-0174", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_property_street", + "dossier_key": "property_street", + "intake": "1190 Heron Bend", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_community_name", + "dossier_key": "community_name", + "intake": "Dunmere", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_flood_zone_certificate", + "dossier_key": "flood_zone_certificate", + "intake": "AE", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_building_type", + "dossier_key": "building_type", + "intake": "Two-to-four family dwelling", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_foundation", + "dossier_key": "foundation", + "intake": "Slab on grade", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_year_built", + "dossier_key": "year_built", + "intake": 1985, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_square_feet", + "dossier_key": "square_feet", + "intake": 2860, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_building_coverage", + "dossier_key": "building_coverage", + "intake": 250000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_contents_coverage", + "dossier_key": "contents_coverage", + "intake": 80000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_deductible", + "dossier_key": "deductible", + "intake": 2000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_prior_claims", + "dossier_key": "prior_claims", + "intake": 0, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_effective_date", + "dossier_key": "effective_date", + "intake": "2027-02-15", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_flow.confirm_declarations", + "dossier_key": "flow.confirm_declarations", + "intake": true, + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Edit named insured", + "value": "", + "selector": "#card-insured > button", + "options": [] + }, + { + "label": "Edit property and map", + "value": "", + "selector": "#card-property > button", + "options": [] + }, + { + "label": "Edit building details", + "value": "", + "selector": "#card-building > button", + "options": [] + }, + { + "label": "Edit coverage and billing", + "value": "", + "selector": "#card-coverage > button", + "options": [] + } + ], + "banners": [], + "page_text": "Brackwater Flood Underwriters\nAgency flood desk\nResidential flood quote\n\nComplete each section. Sections save to the agency file as you go.\n\nNamed insured\n\nNot started\n\nEdit named insured\nProperty and map\n\nNot started\n\nEdit property and map\nBuilding details\n\nComplete\n\nEdit building details\nCoverage and billing\n\nNot started\n\nEdit coverage and billing\n\nReview declarations" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/bfu-s06.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/bfu-s06.json new file mode 100644 index 0000000000..9b0b66b7e1 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/bfu-s06.json @@ -0,0 +1,205 @@ +{ + "case_id": "bfu-s06", + "screen_id": "bfu_property", + "url": "http://127.0.0.1:52114/flood/hub", + "bound": [ + { + "binding_id": "bfu_insured_name", + "dossier_key": "insured_name", + "intake": "Annika Thorvald", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_insured_phone", + "dossier_key": "insured_phone", + "intake": "207-555-0151", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_property_street", + "dossier_key": "property_street", + "intake": "4 Mill Race Way", + "observed": { + "label": "Property street address", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_community_name", + "dossier_key": "community_name", + "intake": "Cauldwell", + "observed": { + "label": "NFIP community", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_flood_zone_certificate", + "dossier_key": "flood_zone_certificate", + "intake": "X", + "observed": { + "label": "Flood zone", + "group_label": "", + "value": "Select zone", + "checked": null, + "options": [ + { + "value": "", + "label": "Select zone" + }, + { + "value": "A", + "label": "Zone A" + }, + { + "value": "AE", + "label": "Zone AE" + }, + { + "value": "AO", + "label": "Zone AO" + }, + { + "value": "VE", + "label": "Zone VE" + }, + { + "value": "X", + "label": "Zone X" + }, + { + "value": "D", + "label": "Zone D" + } + ], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_building_type", + "dossier_key": "building_type", + "intake": "Manufactured home", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_foundation", + "dossier_key": "foundation", + "intake": "Crawlspace", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_year_built", + "dossier_key": "year_built", + "intake": 2001, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_square_feet", + "dossier_key": "square_feet", + "intake": 1120, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_building_coverage", + "dossier_key": "building_coverage", + "intake": 120000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_contents_coverage", + "dossier_key": "contents_coverage", + "intake": 30000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_deductible", + "dossier_key": "deductible", + "intake": 1250, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_prior_claims", + "dossier_key": "prior_claims", + "intake": 0, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_effective_date", + "dossier_key": "effective_date", + "intake": "2027-01-05", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_flow.confirm_declarations", + "dossier_key": "flow.confirm_declarations", + "intake": true, + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Edit named insured", + "value": "", + "selector": "#card-insured > button", + "options": [] + }, + { + "label": "Edit property and map", + "value": "", + "selector": "#card-property > button", + "options": [] + }, + { + "label": "Edit building details", + "value": "", + "selector": "#card-building > button", + "options": [] + }, + { + "label": "Edit coverage and billing", + "value": "", + "selector": "#card-coverage > button", + "options": [] + }, + { + "label": "Save section", + "value": "", + "selector": "#dlg-property > form > button:nth-of-type(1)", + "options": [] + }, + { + "label": "Cancel", + "value": "", + "selector": "#dlg-property > form > button:nth-of-type(2)", + "options": [] + } + ], + "banners": [], + "page_text": "Brackwater Flood Underwriters\nAgency flood desk\nResidential flood quote\n\nComplete each section. Sections save to the agency file as you go.\n\nNamed insured\n\nNot started\n\nEdit named insured\nProperty and map\n\nNot started\n\nEdit property and map\nBuilding details\n\nComplete\n\nEdit building details\nCoverage and billing\n\nNot started\n\nEdit coverage and billing\n\nReview declarations\n\nProperty and map\nProperty street address\nNFIP community\nFlood zone\nSelect zone\nZone A\nZone AE\nZone AO\nZone VE\nZone X\nZone D\nSave section Cancel" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/bfu-s07.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/bfu-s07.json new file mode 100644 index 0000000000..7ccd95d550 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/bfu-s07.json @@ -0,0 +1,205 @@ +{ + "case_id": "bfu-s07", + "screen_id": "bfu_property", + "url": "http://127.0.0.1:52114/flood/hub", + "bound": [ + { + "binding_id": "bfu_insured_name", + "dossier_key": "insured_name", + "intake": "Bertrand Okafor", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_insured_phone", + "dossier_key": "insured_phone", + "intake": "985-555-0126", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_property_street", + "dossier_key": "property_street", + "intake": "260 Levee View Drive", + "observed": { + "label": "Property street address", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_community_name", + "dossier_key": "community_name", + "intake": "Greywick", + "observed": { + "label": "NFIP community", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_flood_zone_certificate", + "dossier_key": "flood_zone_certificate", + "intake": "AE", + "observed": { + "label": "Flood zone", + "group_label": "", + "value": "Select zone", + "checked": null, + "options": [ + { + "value": "", + "label": "Select zone" + }, + { + "value": "A", + "label": "Zone A" + }, + { + "value": "AE", + "label": "Zone AE" + }, + { + "value": "AO", + "label": "Zone AO" + }, + { + "value": "VE", + "label": "Zone VE" + }, + { + "value": "X", + "label": "Zone X" + }, + { + "value": "D", + "label": "Zone D" + } + ], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_building_type", + "dossier_key": "building_type", + "intake": "Single-family dwelling", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_foundation", + "dossier_key": "foundation", + "intake": "Elevated on piers or posts", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_year_built", + "dossier_key": "year_built", + "intake": 2019, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_square_feet", + "dossier_key": "square_feet", + "intake": 2250, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_building_coverage", + "dossier_key": "building_coverage", + "intake": null, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_contents_coverage", + "dossier_key": "contents_coverage", + "intake": 100000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_deductible", + "dossier_key": "deductible", + "intake": 10000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_prior_claims", + "dossier_key": "prior_claims", + "intake": 0, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_effective_date", + "dossier_key": "effective_date", + "intake": "2027-04-01", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_flow.confirm_declarations", + "dossier_key": "flow.confirm_declarations", + "intake": true, + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Edit named insured", + "value": "", + "selector": "#card-insured > button", + "options": [] + }, + { + "label": "Edit property and map", + "value": "", + "selector": "#card-property > button", + "options": [] + }, + { + "label": "Edit building details", + "value": "", + "selector": "#card-building > button", + "options": [] + }, + { + "label": "Edit coverage and billing", + "value": "", + "selector": "#card-coverage > button", + "options": [] + }, + { + "label": "Save section", + "value": "", + "selector": "#dlg-property > form > button:nth-of-type(1)", + "options": [] + }, + { + "label": "Cancel", + "value": "", + "selector": "#dlg-property > form > button:nth-of-type(2)", + "options": [] + } + ], + "banners": [], + "page_text": "Brackwater Flood Underwriters\nAgency flood desk\nResidential flood quote\n\nComplete each section. Sections save to the agency file as you go.\n\nNamed insured\n\nNot started\n\nEdit named insured\nProperty and map\n\nNot started\n\nEdit property and map\nBuilding details\n\nComplete\n\nEdit building details\nCoverage and billing\n\nNot started\n\nEdit coverage and billing\n\nReview declarations\n\nProperty and map\nProperty street address\nNFIP community\nFlood zone\nSelect zone\nZone A\nZone AE\nZone AO\nZone VE\nZone X\nZone D\nSave section Cancel" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/bfu-s08.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/bfu-s08.json new file mode 100644 index 0000000000..25dd42bf7f --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/bfu-s08.json @@ -0,0 +1,205 @@ +{ + "case_id": "bfu-s08", + "screen_id": "bfu_property", + "url": "http://127.0.0.1:52114/flood/hub", + "bound": [ + { + "binding_id": "bfu_insured_name", + "dossier_key": "insured_name", + "intake": "Celestine Marrow", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_insured_phone", + "dossier_key": "insured_phone", + "intake": "337-555-0193", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_property_street", + "dossier_key": "property_street", + "intake": "19 Bayou Ash Street", + "observed": { + "label": "Property street address", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_community_name", + "dossier_key": "community_name", + "intake": "Fallowmouth", + "observed": { + "label": "NFIP community", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_flood_zone_certificate", + "dossier_key": "flood_zone_certificate", + "intake": "A", + "observed": { + "label": "Flood zone", + "group_label": "", + "value": "Select zone", + "checked": null, + "options": [ + { + "value": "", + "label": "Select zone" + }, + { + "value": "A", + "label": "Zone A" + }, + { + "value": "AE", + "label": "Zone AE" + }, + { + "value": "AO", + "label": "Zone AO" + }, + { + "value": "VE", + "label": "Zone VE" + }, + { + "value": "X", + "label": "Zone X" + }, + { + "value": "D", + "label": "Zone D" + } + ], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_building_type", + "dossier_key": "building_type", + "intake": "Single-family dwelling", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_foundation", + "dossier_key": "foundation", + "intake": "Slab on grade", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_year_built", + "dossier_key": "year_built", + "intake": 1999, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_square_feet", + "dossier_key": "square_feet", + "intake": 1760, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_building_coverage", + "dossier_key": "building_coverage", + "intake": 225000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_contents_coverage", + "dossier_key": "contents_coverage", + "intake": 70000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_deductible", + "dossier_key": "deductible", + "intake": 5000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_prior_claims", + "dossier_key": "prior_claims", + "intake": 2, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_effective_date", + "dossier_key": "effective_date", + "intake": "2027-02-20", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_flow.confirm_declarations", + "dossier_key": "flow.confirm_declarations", + "intake": true, + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Edit named insured", + "value": "", + "selector": "#card-insured > button", + "options": [] + }, + { + "label": "Edit property and map", + "value": "", + "selector": "#card-property > button", + "options": [] + }, + { + "label": "Edit building details", + "value": "", + "selector": "#card-building > button", + "options": [] + }, + { + "label": "Edit coverage and billing", + "value": "", + "selector": "#card-coverage > button", + "options": [] + }, + { + "label": "Save section", + "value": "", + "selector": "#dlg-property > form > button:nth-of-type(1)", + "options": [] + }, + { + "label": "Cancel", + "value": "", + "selector": "#dlg-property > form > button:nth-of-type(2)", + "options": [] + } + ], + "banners": [], + "page_text": "Brackwater Flood Underwriters\nAgency flood desk\nResidential flood quote\n\nComplete each section. Sections save to the agency file as you go.\n\nNamed insured\n\nNot started\n\nEdit named insured\nProperty and map\n\nNot started\n\nEdit property and map\nBuilding details\n\nComplete\n\nEdit building details\nCoverage and billing\n\nNot started\n\nEdit coverage and billing\n\nReview declarations\n\nProperty and map\nProperty street address\nNFIP community\nFlood zone\nSelect zone\nZone A\nZone AE\nZone AO\nZone VE\nZone X\nZone D\nSave section Cancel" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/bfu-s09.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/bfu-s09.json new file mode 100644 index 0000000000..3a415a5a24 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/bfu-s09.json @@ -0,0 +1,205 @@ +{ + "case_id": "bfu-s09", + "screen_id": "bfu_property", + "url": "http://127.0.0.1:52114/flood/hub", + "bound": [ + { + "binding_id": "bfu_insured_name", + "dossier_key": "insured_name", + "intake": "Wendell Ashgrove", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_insured_phone", + "dossier_key": "insured_phone", + "intake": "302-555-0140", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_property_street", + "dossier_key": "property_street", + "intake": "77 Saltbox Row", + "observed": { + "label": "Property street address", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_community_name", + "dossier_key": "community_name", + "intake": "Eskerton", + "observed": { + "label": "NFIP community", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_flood_zone_certificate", + "dossier_key": "flood_zone_certificate", + "intake": "D", + "observed": { + "label": "Flood zone", + "group_label": "", + "value": "Select zone", + "checked": null, + "options": [ + { + "value": "", + "label": "Select zone" + }, + { + "value": "A", + "label": "Zone A" + }, + { + "value": "AE", + "label": "Zone AE" + }, + { + "value": "AO", + "label": "Zone AO" + }, + { + "value": "VE", + "label": "Zone VE" + }, + { + "value": "X", + "label": "Zone X" + }, + { + "value": "D", + "label": "Zone D" + } + ], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_building_type", + "dossier_key": "building_type", + "intake": "Two-to-four family dwelling", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_foundation", + "dossier_key": "foundation", + "intake": "Basement", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_year_built", + "dossier_key": "year_built", + "intake": 1931, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_square_feet", + "dossier_key": "square_feet", + "intake": 3020, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_building_coverage", + "dossier_key": "building_coverage", + "intake": 250000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_contents_coverage", + "dossier_key": "contents_coverage", + "intake": 0, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_deductible", + "dossier_key": "deductible", + "intake": 10000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_prior_claims", + "dossier_key": "prior_claims", + "intake": 0, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_effective_date", + "dossier_key": "effective_date", + "intake": "2027-03-15", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_flow.confirm_declarations", + "dossier_key": "flow.confirm_declarations", + "intake": true, + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Edit named insured", + "value": "", + "selector": "#card-insured > button", + "options": [] + }, + { + "label": "Edit property and map", + "value": "", + "selector": "#card-property > button", + "options": [] + }, + { + "label": "Edit building details", + "value": "", + "selector": "#card-building > button", + "options": [] + }, + { + "label": "Edit coverage and billing", + "value": "", + "selector": "#card-coverage > button", + "options": [] + }, + { + "label": "Save section", + "value": "", + "selector": "#dlg-property > form > button:nth-of-type(1)", + "options": [] + }, + { + "label": "Cancel", + "value": "", + "selector": "#dlg-property > form > button:nth-of-type(2)", + "options": [] + } + ], + "banners": [], + "page_text": "Brackwater Flood Underwriters\nAgency flood desk\nResidential flood quote\n\nComplete each section. Sections save to the agency file as you go.\n\nNamed insured\n\nNot started\n\nEdit named insured\nProperty and map\n\nNot started\n\nEdit property and map\nBuilding details\n\nComplete\n\nEdit building details\nCoverage and billing\n\nNot started\n\nEdit coverage and billing\n\nReview declarations\n\nProperty and map\nProperty street address\nNFIP community\nFlood zone\nSelect zone\nZone A\nZone AE\nZone AO\nZone VE\nZone X\nZone D\nSave section Cancel" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/bfu-s10.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/bfu-s10.json new file mode 100644 index 0000000000..df0b8e2b9b --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/bfu-s10.json @@ -0,0 +1,205 @@ +{ + "case_id": "bfu-s10", + "screen_id": "bfu_property", + "url": "http://127.0.0.1:52114/flood/hub", + "bound": [ + { + "binding_id": "bfu_insured_name", + "dossier_key": "insured_name", + "intake": "Priya Lindqvist", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_insured_phone", + "dossier_key": "insured_phone", + "intake": "228-555-0185", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_property_street", + "dossier_key": "property_street", + "intake": "3 Gull Point Lane", + "observed": { + "label": "Property street address", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_community_name", + "dossier_key": "community_name", + "intake": "Brindle Cove", + "observed": { + "label": "NFIP community", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_flood_zone_certificate", + "dossier_key": "flood_zone_certificate", + "intake": "VE", + "observed": { + "label": "Flood zone", + "group_label": "", + "value": "Select zone", + "checked": null, + "options": [ + { + "value": "", + "label": "Select zone" + }, + { + "value": "A", + "label": "Zone A" + }, + { + "value": "AE", + "label": "Zone AE" + }, + { + "value": "AO", + "label": "Zone AO" + }, + { + "value": "VE", + "label": "Zone VE" + }, + { + "value": "X", + "label": "Zone X" + }, + { + "value": "D", + "label": "Zone D" + } + ], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_building_type", + "dossier_key": "building_type", + "intake": "Single-family dwelling", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_foundation", + "dossier_key": "foundation", + "intake": "Elevated on piers or posts", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_year_built", + "dossier_key": "year_built", + "intake": 2011, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_square_feet", + "dossier_key": "square_feet", + "intake": 1980, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_building_coverage", + "dossier_key": "building_coverage", + "intake": 275000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_contents_coverage", + "dossier_key": "contents_coverage", + "intake": 90000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_deductible", + "dossier_key": "deductible", + "intake": 5000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_prior_claims", + "dossier_key": "prior_claims", + "intake": 0, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_effective_date", + "dossier_key": "effective_date", + "intake": "2027-03-20", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_flow.confirm_declarations", + "dossier_key": "flow.confirm_declarations", + "intake": true, + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Edit named insured", + "value": "", + "selector": "#card-insured > button", + "options": [] + }, + { + "label": "Edit property and map", + "value": "", + "selector": "#card-property > button", + "options": [] + }, + { + "label": "Edit building details", + "value": "", + "selector": "#card-building > button", + "options": [] + }, + { + "label": "Edit coverage and billing", + "value": "", + "selector": "#card-coverage > button", + "options": [] + }, + { + "label": "Save section", + "value": "", + "selector": "#dlg-property > form > button:nth-of-type(1)", + "options": [] + }, + { + "label": "Cancel", + "value": "", + "selector": "#dlg-property > form > button:nth-of-type(2)", + "options": [] + } + ], + "banners": [], + "page_text": "Brackwater Flood Underwriters\nAgency flood desk\nResidential flood quote\n\nComplete each section. Sections save to the agency file as you go.\n\nNamed insured\n\nNot started\n\nEdit named insured\nProperty and map\n\nNot started\n\nEdit property and map\nBuilding details\n\nComplete\n\nEdit building details\nCoverage and billing\n\nNot started\n\nEdit coverage and billing\n\nReview declarations\n\nProperty and map\nProperty street address\nNFIP community\nFlood zone\nSelect zone\nZone A\nZone AE\nZone AO\nZone VE\nZone X\nZone D\nSave section Cancel" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/hbm-s01.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/hbm-s01.json new file mode 100644 index 0000000000..5a05e78124 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/hbm-s01.json @@ -0,0 +1,115 @@ +{ + "case_id": "hbm-s01", + "screen_id": "hbm_review", + "url": "http://127.0.0.1:52717/bop/summary", + "bound": [ + { + "binding_id": "hbm_legal_name", + "dossier_key": "legal_name", + "intake": "Ember & Oat Coffee LLC", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_dba_name", + "dossier_key": "dba_name", + "intake": "Ember & Oat", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_entity_type", + "dossier_key": "entity_type", + "intake": "Limited liability company", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_fein", + "dossier_key": "fein", + "intake": "84-2093357", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_year_established", + "dossier_key": "year_established", + "intake": 2019, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_location_street", + "dossier_key": "location_street", + "intake": "903 Commerce Street", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_employees", + "dossier_key": "employees", + "intake": 11, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_annual_revenue", + "dossier_key": "annual_revenue", + "intake": 720000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_building_owned", + "dossier_key": "building_owned", + "intake": false, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_building_limit", + "dossier_key": "building_limit", + "intake": 0, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_bpp_limit", + "dossier_key": "bpp_limit", + "intake": 95000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_liability_limit", + "dossier_key": "liability_limit", + "intake": "$1,000,000 / $2,000,000", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_deductible", + "dossier_key": "deductible", + "intake": 1000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_effective_date", + "dossier_key": "effective_date", + "intake": "2027-01-15", + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Submit application", + "value": "", + "selector": "body > div:nth-of-type(2) > form > button", + "options": [] + } + ], + "banners": [], + "page_text": "HOLLOWFEN BUSINESS MUTUAL\nBOP Rating Worksheet v4.2\nRating summary\nLegal name\tEmber & Oat Coffee LLC\nDoing business as (DBA)\tEmber & Oat\nEntity type\tLimited liability company\nFEIN\t84-2093357\nYear established\t2019\nLocation street address\t903 Commerce Street\nClass code\t09311 Coffee shop - no alcohol\nNumber of employees\t11\nAnnual gross sales\t$720,000\nOwns building\tNo\nBuilding limit\t$0\nBusiness personal property limit\t$95,000\nLiability limits\t$1,000,000 / $2,000,000\nProperty deductible\t$1,000\nEffective date\t2027-01-15\nIndicated annual premium\t$662\n\nReturn to worksheet\n\nSubmit application" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/hbm-s02.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/hbm-s02.json new file mode 100644 index 0000000000..a205419c41 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/hbm-s02.json @@ -0,0 +1,389 @@ +{ + "case_id": "hbm-s02", + "screen_id": "hbm_location", + "url": "http://127.0.0.1:52717/bop/worksheet", + "bound": [ + { + "binding_id": "hbm_legal_name", + "dossier_key": "legal_name", + "intake": "Ines Carvalho-Brandt", + "observed": { + "label": "Legal name", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Legal name", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_dba_name", + "dossier_key": "dba_name", + "intake": "Rise Street Bakehouse", + "observed": { + "label": "Doing business as (DBA)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Doing business as (DBA)", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_entity_type", + "dossier_key": "entity_type", + "intake": "Sole proprietorship", + "observed": { + "label": "Entity type", + "group_label": "", + "value": "", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "Limited liability company", + "label": "Limited liability company" + }, + { + "value": "Corporation", + "label": "Corporation" + }, + { + "value": "Sole proprietorship", + "label": "Sole proprietorship" + }, + { + "value": "General partnership", + "label": "General partnership" + } + ], + "row_cells": [ + "Entity type", + "-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_fein", + "dossier_key": "fein", + "intake": "88-1174520", + "observed": { + "label": "FEIN", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "FEIN", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_year_established", + "dossier_key": "year_established", + "intake": 2021, + "observed": { + "label": "Year established", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Year established", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_location_street", + "dossier_key": "location_street", + "intake": "18 Rise Street", + "observed": { + "label": "Location street address", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Location street address", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_employees", + "dossier_key": "employees", + "intake": 6, + "observed": { + "label": "Number of employees", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Number of employees", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_annual_revenue", + "dossier_key": "annual_revenue", + "intake": 410000, + "observed": { + "label": "Annual gross sales ($)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Annual gross sales ($)", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_building_owned", + "dossier_key": "building_owned", + "intake": false, + "observed": { + "label": "Does the insured own the building?", + "group_label": "", + "value": "", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "Yes", + "label": "Yes" + }, + { + "value": "No", + "label": "No" + } + ], + "row_cells": [ + "Does the insured own the building?", + "-- select --YesNo" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_building_limit", + "dossier_key": "building_limit", + "intake": 0, + "observed": { + "label": "Building limit ($)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Building limit ($)", + "enter 0 if not owned" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_bpp_limit", + "dossier_key": "bpp_limit", + "intake": 130700, + "observed": { + "label": "Business personal property limit ($)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Business personal property limit ($)", + "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_liability_limit", + "dossier_key": "liability_limit", + "intake": "$500,000 / $1,000,000", + "observed": { + "label": "Liability limits", + "group_label": "", + "value": "", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "$300,000 / $600,000", + "label": "$300,000 / $600,000" + }, + { + "value": "$500,000 / $1,000,000", + "label": "$500,000 / $1,000,000" + }, + { + "value": "$1,000,000 / $2,000,000", + "label": "$1,000,000 / $2,000,000" + } + ], + "row_cells": [ + "Liability limits", + "-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_deductible", + "dossier_key": "deductible", + "intake": 1000, + "observed": { + "label": "Property deductible", + "group_label": "", + "value": "1000", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "500", + "label": "$500" + }, + { + "value": "1000", + "label": "$1,000" + }, + { + "value": "2500", + "label": "$2,500" + }, + { + "value": "5000", + "label": "$5,000" + } + ], + "row_cells": [ + "Property deductible", + "-- select --$500$1,000$2,500$5,000" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_effective_date", + "dossier_key": "effective_date", + "intake": "2027-02-01", + "observed": { + "label": "Effective date", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Effective date", + "" + ], + "error_text": "" + }, + "match_error": "" + } + ], + "unbound": [ + { + "label": "State entity number", + "value": "", + "selector": "#en", + "options": [] + }, + { + "label": "Look up entity", + "value": "", + "selector": "#applicant > tbody > tr:nth-of-type(2) > td > button", + "options": [] + }, + { + "label": "Save applicant", + "value": "", + "selector": "#applicant > tbody > tr:nth-of-type(8) > td > button", + "options": [] + }, + { + "label": "Class code", + "value": "", + "selector": "#class-code", + "options": [] + }, + { + "label": "Find class...", + "value": "", + "selector": "#find-class", + "options": [] + }, + { + "label": "Save location", + "value": "", + "selector": "#location > tbody > tr:nth-of-type(8) > td > button", + "options": [] + }, + { + "label": "Open BPP worksheet", + "value": "", + "selector": "#bpp-open", + "options": [] + }, + { + "label": "Save coverage", + "value": "", + "selector": "#coverage > tbody > tr:nth-of-type(6) > td > button", + "options": [] + }, + { + "label": "Rate this risk", + "value": "", + "selector": "#rate", + "options": [] + } + ], + "banners": [], + "page_text": "HOLLOWFEN BUSINESS MUTUAL\nBOP Rating Worksheet v4.2\n1. Applicant\nState entity number\t Look up entity\nLegal name\t\nDoing business as (DBA)\t\nEntity type\t\n-- select --\nLimited liability company\nCorporation\nSole proprietorship\nGeneral partnership\n\nFEIN\t\nYear established\t\nSave applicant\n2. Location and operations\nLocation street address\t\nClass code\t Find class...\nNumber of employees\t\nAnnual gross sales ($)\t\nDoes the insured own the building?\t\n-- select --\nYes\nNo\n\nBuilding limit ($)\t enter 0 if not owned\nSave location\n3. Coverages\nBusiness personal property limit ($)\t Open BPP worksheet\nLiability limits\t\n-- select --\n$300,000 / $600,000\n$500,000 / $1,000,000\n$1,000,000 / $2,000,000\n occurrence / aggregate\nProperty deductible\t\n-- select --\n$500\n$1,000\n$2,500\n$5,000\n\nEffective date\t\nSave coverage\nRate this risk" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/hbm-s03.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/hbm-s03.json new file mode 100644 index 0000000000..35007182bb --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/hbm-s03.json @@ -0,0 +1,115 @@ +{ + "case_id": "hbm-s03", + "screen_id": "hbm_review", + "url": "http://127.0.0.1:52717/bop/summary", + "bound": [ + { + "binding_id": "hbm_legal_name", + "dossier_key": "legal_name", + "intake": "Copperline Book Arts LLC", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_dba_name", + "dossier_key": "dba_name", + "intake": "Copperline Bindery", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_entity_type", + "dossier_key": "entity_type", + "intake": "Limited liability company", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_fein", + "dossier_key": "fein", + "intake": "47-3318265", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_year_established", + "dossier_key": "year_established", + "intake": 2013, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_location_street", + "dossier_key": "location_street", + "intake": "212 Tannery Row, Unit B", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_employees", + "dossier_key": "employees", + "intake": 4, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_annual_revenue", + "dossier_key": "annual_revenue", + "intake": 365000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_building_owned", + "dossier_key": "building_owned", + "intake": false, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_building_limit", + "dossier_key": "building_limit", + "intake": 0, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_bpp_limit", + "dossier_key": "bpp_limit", + "intake": 140000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_liability_limit", + "dossier_key": "liability_limit", + "intake": "$1,000,000 / $2,000,000", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_deductible", + "dossier_key": "deductible", + "intake": 1000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_effective_date", + "dossier_key": "effective_date", + "intake": "2027-01-01", + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Submit application", + "value": "", + "selector": "body > div:nth-of-type(2) > form > button", + "options": [] + } + ], + "banners": [], + "page_text": "HOLLOWFEN BUSINESS MUTUAL\nBOP Rating Worksheet v4.2\nRating summary\nLegal name\tCopperline Book Arts LLC\nDoing business as (DBA)\tCopperline Bindery\nEntity type\tLimited liability company\nFEIN\t47-3318265\nYear established\t2013\nLocation street address\t212 Tannery Row, Unit B\nClass code\t21730 Bookbinding\nNumber of employees\t4\nAnnual gross sales\t$365,000\nOwns building\tNo\nBuilding limit\t$0\nBusiness personal property limit\t$140,000\nLiability limits\t$1,000,000 / $2,000,000\nProperty deductible\t$1,000\nEffective date\t2027-01-01\nIndicated annual premium\t$730\n\nReturn to worksheet\n\nSubmit application" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/hbm-s04.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/hbm-s04.json new file mode 100644 index 0000000000..71b6ab8cbd --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/hbm-s04.json @@ -0,0 +1,408 @@ +{ + "case_id": "hbm-s04", + "screen_id": "hbm_location", + "url": "http://127.0.0.1:52717/bop/worksheet", + "bound": [ + { + "binding_id": "hbm_legal_name", + "dossier_key": "legal_name", + "intake": "Hearthstone Loaf Company", + "observed": { + "label": "Legal name", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Legal name", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_dba_name", + "dossier_key": "dba_name", + "intake": "Hearthstone Loaf", + "observed": { + "label": "Doing business as (DBA)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Doing business as (DBA)", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_entity_type", + "dossier_key": "entity_type", + "intake": "Corporation", + "observed": { + "label": "Entity type", + "group_label": "", + "value": "", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "Limited liability company", + "label": "Limited liability company" + }, + { + "value": "Corporation", + "label": "Corporation" + }, + { + "value": "Sole proprietorship", + "label": "Sole proprietorship" + }, + { + "value": "General partnership", + "label": "General partnership" + } + ], + "row_cells": [ + "Entity type", + "-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_fein", + "dossier_key": "fein", + "intake": "27-6650183", + "observed": { + "label": "FEIN", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "FEIN", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_year_established", + "dossier_key": "year_established", + "intake": 2009, + "observed": { + "label": "Year established", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Year established", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_location_street", + "dossier_key": "location_street", + "intake": "4400 Granary Road", + "observed": { + "label": "Location street address", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Location street address", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_employees", + "dossier_key": "employees", + "intake": 14, + "observed": { + "label": "Number of employees", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Number of employees", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_annual_revenue", + "dossier_key": "annual_revenue", + "intake": 1650000, + "observed": { + "label": "Annual gross sales ($)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Annual gross sales ($)", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_building_owned", + "dossier_key": "building_owned", + "intake": true, + "observed": { + "label": "Does the insured own the building?", + "group_label": "", + "value": "", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "Yes", + "label": "Yes" + }, + { + "value": "No", + "label": "No" + } + ], + "row_cells": [ + "Does the insured own the building?", + "-- select --YesNo" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_building_limit", + "dossier_key": "building_limit", + "intake": 820000, + "observed": { + "label": "Building limit ($)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Building limit ($)", + "enter 0 if not owned" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_bpp_limit", + "dossier_key": "bpp_limit", + "intake": 260000, + "observed": { + "label": "Business personal property limit ($)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Business personal property limit ($)", + "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_liability_limit", + "dossier_key": "liability_limit", + "intake": "$1,000,000 / $2,000,000", + "observed": { + "label": "Liability limits", + "group_label": "", + "value": "", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "$300,000 / $600,000", + "label": "$300,000 / $600,000" + }, + { + "value": "$500,000 / $1,000,000", + "label": "$500,000 / $1,000,000" + }, + { + "value": "$1,000,000 / $2,000,000", + "label": "$1,000,000 / $2,000,000" + } + ], + "row_cells": [ + "Liability limits", + "-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_deductible", + "dossier_key": "deductible", + "intake": 2500, + "observed": { + "label": "Property deductible", + "group_label": "", + "value": "1000", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "500", + "label": "$500" + }, + { + "value": "1000", + "label": "$1,000" + }, + { + "value": "2500", + "label": "$2,500" + }, + { + "value": "5000", + "label": "$5,000" + } + ], + "row_cells": [ + "Property deductible", + "-- select --$500$1,000$2,500$5,000" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_effective_date", + "dossier_key": "effective_date", + "intake": "2027-03-01", + "observed": { + "label": "Effective date", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Effective date", + "" + ], + "error_text": "" + }, + "match_error": "" + } + ], + "unbound": [ + { + "label": "State entity number", + "value": "", + "selector": "#en", + "options": [] + }, + { + "label": "Look up entity", + "value": "", + "selector": "#applicant > tbody > tr:nth-of-type(2) > td > button", + "options": [] + }, + { + "label": "Save applicant", + "value": "", + "selector": "#applicant > tbody > tr:nth-of-type(8) > td > button", + "options": [] + }, + { + "label": "Class code", + "value": "", + "selector": "#class-code", + "options": [] + }, + { + "label": "Find class...", + "value": "", + "selector": "#find-class", + "options": [] + }, + { + "label": "Save location", + "value": "", + "selector": "#location > tbody > tr:nth-of-type(8) > td > button", + "options": [] + }, + { + "label": "Open BPP worksheet", + "value": "", + "selector": "#bpp-open", + "options": [] + }, + { + "label": "Hired and non-owned auto liability", + "value": "", + "selector": "#hn", + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "Exclude", + "label": "Exclude" + }, + { + "value": "Include - $1,000,000", + "label": "Include - $1,000,000" + } + ] + }, + { + "label": "Save coverage", + "value": "", + "selector": "#coverage > tbody > tr:nth-of-type(7) > td > button", + "options": [] + }, + { + "label": "Rate this risk", + "value": "", + "selector": "#rate", + "options": [] + } + ], + "banners": [], + "page_text": "HOLLOWFEN BUSINESS MUTUAL\nBOP Rating Worksheet v4.2\n1. Applicant\nState entity number\t Look up entity\nLegal name\t\nDoing business as (DBA)\t\nEntity type\t\n-- select --\nLimited liability company\nCorporation\nSole proprietorship\nGeneral partnership\n\nFEIN\t\nYear established\t\nSave applicant\n2. Location and operations\nLocation street address\t\nClass code\t Find class...\nNumber of employees\t\nAnnual gross sales ($)\t\nDoes the insured own the building?\t\n-- select --\nYes\nNo\n\nBuilding limit ($)\t enter 0 if not owned\nSave location\n3. Coverages\nBusiness personal property limit ($)\t Open BPP worksheet\nLiability limits\t\n-- select --\n$300,000 / $600,000\n$500,000 / $1,000,000\n$1,000,000 / $2,000,000\n occurrence / aggregate\nProperty deductible\t\n-- select --\n$500\n$1,000\n$2,500\n$5,000\n\nEffective date\t\nHired and non-owned auto liability\t\n-- select --\nExclude\nInclude - $1,000,000\n\nSave coverage\nRate this risk" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/hbm-s05.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/hbm-s05.json new file mode 100644 index 0000000000..8be0335fdd --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/hbm-s05.json @@ -0,0 +1,389 @@ +{ + "case_id": "hbm-s05", + "screen_id": "hbm_location", + "url": "http://127.0.0.1:52717/bop/worksheet", + "bound": [ + { + "binding_id": "hbm_legal_name", + "dossier_key": "legal_name", + "intake": "Ravel & Weft Partners", + "observed": { + "label": "Legal name", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Legal name", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_dba_name", + "dossier_key": "dba_name", + "intake": "Ravel & Weft", + "observed": { + "label": "Doing business as (DBA)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Doing business as (DBA)", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_entity_type", + "dossier_key": "entity_type", + "intake": "General partnership", + "observed": { + "label": "Entity type", + "group_label": "", + "value": "", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "Limited liability company", + "label": "Limited liability company" + }, + { + "value": "Corporation", + "label": "Corporation" + }, + { + "value": "Sole proprietorship", + "label": "Sole proprietorship" + }, + { + "value": "General partnership", + "label": "General partnership" + } + ], + "row_cells": [ + "Entity type", + "-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_fein", + "dossier_key": "fein", + "intake": "46-9083721", + "observed": { + "label": "FEIN", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "FEIN", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_year_established", + "dossier_key": "year_established", + "intake": 2015, + "observed": { + "label": "Year established", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Year established", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_location_street", + "dossier_key": "location_street", + "intake": "77 Spindle Court", + "observed": { + "label": "Location street address", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Location street address", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_employees", + "dossier_key": "employees", + "intake": 5, + "observed": { + "label": "Number of employees", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Number of employees", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_annual_revenue", + "dossier_key": "annual_revenue", + "intake": 455000, + "observed": { + "label": "Annual gross sales ($)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Annual gross sales ($)", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_building_owned", + "dossier_key": "building_owned", + "intake": false, + "observed": { + "label": "Does the insured own the building?", + "group_label": "", + "value": "", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "Yes", + "label": "Yes" + }, + { + "value": "No", + "label": "No" + } + ], + "row_cells": [ + "Does the insured own the building?", + "-- select --YesNo" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_building_limit", + "dossier_key": "building_limit", + "intake": 0, + "observed": { + "label": "Building limit ($)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Building limit ($)", + "enter 0 if not owned" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_bpp_limit", + "dossier_key": "bpp_limit", + "intake": 180000, + "observed": { + "label": "Business personal property limit ($)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Business personal property limit ($)", + "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_liability_limit", + "dossier_key": "liability_limit", + "intake": "$1,000,000 / $2,000,000", + "observed": { + "label": "Liability limits", + "group_label": "", + "value": "", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "$300,000 / $600,000", + "label": "$300,000 / $600,000" + }, + { + "value": "$500,000 / $1,000,000", + "label": "$500,000 / $1,000,000" + }, + { + "value": "$1,000,000 / $2,000,000", + "label": "$1,000,000 / $2,000,000" + } + ], + "row_cells": [ + "Liability limits", + "-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_deductible", + "dossier_key": "deductible", + "intake": 500, + "observed": { + "label": "Property deductible", + "group_label": "", + "value": "1000", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "500", + "label": "$500" + }, + { + "value": "1000", + "label": "$1,000" + }, + { + "value": "2500", + "label": "$2,500" + }, + { + "value": "5000", + "label": "$5,000" + } + ], + "row_cells": [ + "Property deductible", + "-- select --$500$1,000$2,500$5,000" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_effective_date", + "dossier_key": "effective_date", + "intake": "2027-01-20", + "observed": { + "label": "Effective date", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Effective date", + "" + ], + "error_text": "" + }, + "match_error": "" + } + ], + "unbound": [ + { + "label": "State entity number", + "value": "", + "selector": "#en", + "options": [] + }, + { + "label": "Look up entity", + "value": "", + "selector": "#applicant > tbody > tr:nth-of-type(2) > td > button", + "options": [] + }, + { + "label": "Save applicant", + "value": "", + "selector": "#applicant > tbody > tr:nth-of-type(8) > td > button", + "options": [] + }, + { + "label": "Class code", + "value": "", + "selector": "#class-code", + "options": [] + }, + { + "label": "Find class...", + "value": "", + "selector": "#find-class", + "options": [] + }, + { + "label": "Save location", + "value": "", + "selector": "#location > tbody > tr:nth-of-type(8) > td > button", + "options": [] + }, + { + "label": "Open BPP worksheet", + "value": "", + "selector": "#bpp-open", + "options": [] + }, + { + "label": "Save coverage", + "value": "", + "selector": "#coverage > tbody > tr:nth-of-type(6) > td > button", + "options": [] + }, + { + "label": "Rate this risk", + "value": "", + "selector": "#rate", + "options": [] + } + ], + "banners": [], + "page_text": "HOLLOWFEN BUSINESS MUTUAL\nBOP Rating Worksheet v4.2\n1. Applicant\nState entity number\t Look up entity\nLegal name\t\nDoing business as (DBA)\t\nEntity type\t\n-- select --\nLimited liability company\nCorporation\nSole proprietorship\nGeneral partnership\n\nFEIN\t\nYear established\t\nSave applicant\n2. Location and operations\nLocation street address\t\nClass code\t Find class...\nNumber of employees\t\nAnnual gross sales ($)\t\nDoes the insured own the building?\t\n-- select --\nYes\nNo\n\nBuilding limit ($)\t enter 0 if not owned\nSave location\n3. Coverages\nBusiness personal property limit ($)\t Open BPP worksheet\nLiability limits\t\n-- select --\n$300,000 / $600,000\n$500,000 / $1,000,000\n$1,000,000 / $2,000,000\n occurrence / aggregate\nProperty deductible\t\n-- select --\n$500\n$1,000\n$2,500\n$5,000\n\nEffective date\t\nSave coverage\nRate this risk" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/hbm-s06.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/hbm-s06.json new file mode 100644 index 0000000000..e6c106911c --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/hbm-s06.json @@ -0,0 +1,389 @@ +{ + "case_id": "hbm-s06", + "screen_id": "hbm_location", + "url": "http://127.0.0.1:52717/bop/worksheet", + "bound": [ + { + "binding_id": "hbm_legal_name", + "dossier_key": "legal_name", + "intake": "Pressmark Print Works LLC", + "observed": { + "label": "Legal name", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Legal name", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_dba_name", + "dossier_key": "dba_name", + "intake": "Pressmark", + "observed": { + "label": "Doing business as (DBA)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Doing business as (DBA)", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_entity_type", + "dossier_key": "entity_type", + "intake": "Limited liability company", + "observed": { + "label": "Entity type", + "group_label": "", + "value": "", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "Limited liability company", + "label": "Limited liability company" + }, + { + "value": "Corporation", + "label": "Corporation" + }, + { + "value": "Sole proprietorship", + "label": "Sole proprietorship" + }, + { + "value": "General partnership", + "label": "General partnership" + } + ], + "row_cells": [ + "Entity type", + "-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_fein", + "dossier_key": "fein", + "intake": "45-7712608", + "observed": { + "label": "FEIN", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "FEIN", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_year_established", + "dossier_key": "year_established", + "intake": 2012, + "observed": { + "label": "Year established", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Year established", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_location_street", + "dossier_key": "location_street", + "intake": "1201 Foundry Street", + "observed": { + "label": "Location street address", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Location street address", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_employees", + "dossier_key": "employees", + "intake": 8, + "observed": { + "label": "Number of employees", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Number of employees", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_annual_revenue", + "dossier_key": "annual_revenue", + "intake": 980000, + "observed": { + "label": "Annual gross sales ($)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Annual gross sales ($)", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_building_owned", + "dossier_key": "building_owned", + "intake": true, + "observed": { + "label": "Does the insured own the building?", + "group_label": "", + "value": "", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "Yes", + "label": "Yes" + }, + { + "value": "No", + "label": "No" + } + ], + "row_cells": [ + "Does the insured own the building?", + "-- select --YesNo" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_building_limit", + "dossier_key": "building_limit", + "intake": 540000, + "observed": { + "label": "Building limit ($)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Building limit ($)", + "enter 0 if not owned" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_bpp_limit", + "dossier_key": "bpp_limit", + "intake": 420000, + "observed": { + "label": "Business personal property limit ($)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Business personal property limit ($)", + "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_liability_limit", + "dossier_key": "liability_limit", + "intake": "$1,000,000 / $2,000,000", + "observed": { + "label": "Liability limits", + "group_label": "", + "value": "", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "$300,000 / $600,000", + "label": "$300,000 / $600,000" + }, + { + "value": "$500,000 / $1,000,000", + "label": "$500,000 / $1,000,000" + }, + { + "value": "$1,000,000 / $2,000,000", + "label": "$1,000,000 / $2,000,000" + } + ], + "row_cells": [ + "Liability limits", + "-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_deductible", + "dossier_key": "deductible", + "intake": 2500, + "observed": { + "label": "Property deductible", + "group_label": "", + "value": "1000", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "500", + "label": "$500" + }, + { + "value": "1000", + "label": "$1,000" + }, + { + "value": "2500", + "label": "$2,500" + }, + { + "value": "5000", + "label": "$5,000" + } + ], + "row_cells": [ + "Property deductible", + "-- select --$500$1,000$2,500$5,000" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_effective_date", + "dossier_key": "effective_date", + "intake": "2027-02-15", + "observed": { + "label": "Effective date", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Effective date", + "" + ], + "error_text": "" + }, + "match_error": "" + } + ], + "unbound": [ + { + "label": "State entity number", + "value": "", + "selector": "#en", + "options": [] + }, + { + "label": "Look up entity", + "value": "", + "selector": "#applicant > tbody > tr:nth-of-type(2) > td > button", + "options": [] + }, + { + "label": "Save applicant", + "value": "", + "selector": "#applicant > tbody > tr:nth-of-type(8) > td > button", + "options": [] + }, + { + "label": "Class code", + "value": "", + "selector": "#class-code", + "options": [] + }, + { + "label": "Find class...", + "value": "", + "selector": "#find-class", + "options": [] + }, + { + "label": "Save location", + "value": "", + "selector": "#location > tbody > tr:nth-of-type(8) > td > button", + "options": [] + }, + { + "label": "Open BPP worksheet", + "value": "", + "selector": "#bpp-open", + "options": [] + }, + { + "label": "Save coverage", + "value": "", + "selector": "#coverage > tbody > tr:nth-of-type(6) > td > button", + "options": [] + }, + { + "label": "Rate this risk", + "value": "", + "selector": "#rate", + "options": [] + } + ], + "banners": [], + "page_text": "HOLLOWFEN BUSINESS MUTUAL\nBOP Rating Worksheet v4.2\n1. Applicant\nState entity number\t Look up entity\nLegal name\t\nDoing business as (DBA)\t\nEntity type\t\n-- select --\nLimited liability company\nCorporation\nSole proprietorship\nGeneral partnership\n\nFEIN\t\nYear established\t\nSave applicant\n2. Location and operations\nLocation street address\t\nClass code\t Find class...\nNumber of employees\t\nAnnual gross sales ($)\t\nDoes the insured own the building?\t\n-- select --\nYes\nNo\n\nBuilding limit ($)\t enter 0 if not owned\nSave location\n3. Coverages\nBusiness personal property limit ($)\t Open BPP worksheet\nLiability limits\t\n-- select --\n$300,000 / $600,000\n$500,000 / $1,000,000\n$1,000,000 / $2,000,000\n occurrence / aggregate\nProperty deductible\t\n-- select --\n$500\n$1,000\n$2,500\n$5,000\n\nEffective date\t\nSave coverage\nRate this risk" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/hbm-s07.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/hbm-s07.json new file mode 100644 index 0000000000..db719fb1a4 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/hbm-s07.json @@ -0,0 +1,408 @@ +{ + "case_id": "hbm-s07", + "screen_id": "hbm_rate", + "url": "http://127.0.0.1:52717/bop/worksheet", + "bound": [ + { + "binding_id": "hbm_legal_name", + "dossier_key": "legal_name", + "intake": "Wildmeadow Stems LLC", + "observed": { + "label": "Legal name", + "group_label": "", + "value": "Wildmeadow Stems LLC", + "checked": null, + "options": [], + "row_cells": [ + "Legal name", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_dba_name", + "dossier_key": "dba_name", + "intake": "Wildmeadow Florals", + "observed": { + "label": "Doing business as (DBA)", + "group_label": "", + "value": "Wildmeadow Florals", + "checked": null, + "options": [], + "row_cells": [ + "Doing business as (DBA)", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_entity_type", + "dossier_key": "entity_type", + "intake": "Limited liability company", + "observed": { + "label": "Entity type", + "group_label": "", + "value": "Limited liability company", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "Limited liability company", + "label": "Limited liability company" + }, + { + "value": "Corporation", + "label": "Corporation" + }, + { + "value": "Sole proprietorship", + "label": "Sole proprietorship" + }, + { + "value": "General partnership", + "label": "General partnership" + } + ], + "row_cells": [ + "Entity type", + "-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_fein", + "dossier_key": "fein", + "intake": "83-3305169", + "observed": { + "label": "FEIN", + "group_label": "", + "value": "83-3305169", + "checked": null, + "options": [], + "row_cells": [ + "FEIN", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_year_established", + "dossier_key": "year_established", + "intake": 2018, + "observed": { + "label": "Year established", + "group_label": "", + "value": "2018", + "checked": null, + "options": [], + "row_cells": [ + "Year established", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_location_street", + "dossier_key": "location_street", + "intake": "340 Garden Market Way", + "observed": { + "label": "Location street address", + "group_label": "", + "value": "340 Garden Market Way", + "checked": null, + "options": [], + "row_cells": [ + "Location street address", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_employees", + "dossier_key": "employees", + "intake": 7, + "observed": { + "label": "Number of employees", + "group_label": "", + "value": "7", + "checked": null, + "options": [], + "row_cells": [ + "Number of employees", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_annual_revenue", + "dossier_key": "annual_revenue", + "intake": 520000, + "observed": { + "label": "Annual gross sales ($)", + "group_label": "", + "value": "520000", + "checked": null, + "options": [], + "row_cells": [ + "Annual gross sales ($)", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_building_owned", + "dossier_key": "building_owned", + "intake": false, + "observed": { + "label": "Does the insured own the building?", + "group_label": "", + "value": "No", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "Yes", + "label": "Yes" + }, + { + "value": "No", + "label": "No" + } + ], + "row_cells": [ + "Does the insured own the building?", + "-- select --YesNo" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_building_limit", + "dossier_key": "building_limit", + "intake": 0, + "observed": { + "label": "Building limit ($)", + "group_label": "", + "value": "0", + "checked": null, + "options": [], + "row_cells": [ + "Building limit ($)", + "enter 0 if not owned" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_bpp_limit", + "dossier_key": "bpp_limit", + "intake": 75000, + "observed": { + "label": "Business personal property limit ($)", + "group_label": "", + "value": "75000", + "checked": null, + "options": [], + "row_cells": [ + "Business personal property limit ($)", + "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_liability_limit", + "dossier_key": "liability_limit", + "intake": "$500,000 / $1,000,000", + "observed": { + "label": "Liability limits", + "group_label": "", + "value": "$500,000 / $1,000,000", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "$300,000 / $600,000", + "label": "$300,000 / $600,000" + }, + { + "value": "$500,000 / $1,000,000", + "label": "$500,000 / $1,000,000" + }, + { + "value": "$1,000,000 / $2,000,000", + "label": "$1,000,000 / $2,000,000" + } + ], + "row_cells": [ + "Liability limits", + "-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_deductible", + "dossier_key": "deductible", + "intake": 1000, + "observed": { + "label": "Property deductible", + "group_label": "", + "value": "1000", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "500", + "label": "$500" + }, + { + "value": "1000", + "label": "$1,000" + }, + { + "value": "2500", + "label": "$2,500" + }, + { + "value": "5000", + "label": "$5,000" + } + ], + "row_cells": [ + "Property deductible", + "-- select --$500$1,000$2,500$5,000" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_effective_date", + "dossier_key": "effective_date", + "intake": "2027-02-10", + "observed": { + "label": "Effective date", + "group_label": "", + "value": "2027-02-10", + "checked": null, + "options": [], + "row_cells": [ + "Effective date", + "" + ], + "error_text": "" + }, + "match_error": "" + } + ], + "unbound": [ + { + "label": "State entity number", + "value": "", + "selector": "#en", + "options": [] + }, + { + "label": "Look up entity", + "value": "", + "selector": "#applicant > tbody > tr:nth-of-type(2) > td > button", + "options": [] + }, + { + "label": "Save applicant", + "value": "", + "selector": "#applicant > tbody > tr:nth-of-type(8) > td > button", + "options": [] + }, + { + "label": "Class code", + "value": "", + "selector": "#class-code", + "options": [] + }, + { + "label": "Find class...", + "value": "", + "selector": "#find-class", + "options": [] + }, + { + "label": "Save location", + "value": "", + "selector": "#location > tbody > tr:nth-of-type(8) > td > button", + "options": [] + }, + { + "label": "Open BPP worksheet", + "value": "", + "selector": "#bpp-open", + "options": [] + }, + { + "label": "Hired and non-owned auto liability", + "value": "", + "selector": "#hn", + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "Exclude", + "label": "Exclude" + }, + { + "value": "Include - $1,000,000", + "label": "Include - $1,000,000" + } + ] + }, + { + "label": "Save coverage", + "value": "", + "selector": "#coverage > tbody > tr:nth-of-type(7) > td > button", + "options": [] + }, + { + "label": "Rate this risk", + "value": "", + "selector": "#rate", + "options": [] + } + ], + "banners": [], + "page_text": "HOLLOWFEN BUSINESS MUTUAL\nBOP Rating Worksheet v4.2\n1. Applicant\nState entity number\t Look up entity\nLegal name\t\nDoing business as (DBA)\t\nEntity type\t\n-- select --\nLimited liability company\nCorporation\nSole proprietorship\nGeneral partnership\n\nFEIN\t\nYear established\t\nSave applicant\n2. Location and operations\nLocation street address\t\nClass code\t Find class...\nNumber of employees\t\nAnnual gross sales ($)\t\nDoes the insured own the building?\t\n-- select --\nYes\nNo\n\nBuilding limit ($)\t enter 0 if not owned\nSave location\n3. Coverages\nBusiness personal property limit ($)\t Open BPP worksheet\nLiability limits\t\n-- select --\n$300,000 / $600,000\n$500,000 / $1,000,000\n$1,000,000 / $2,000,000\n occurrence / aggregate\nProperty deductible\t\n-- select --\n$500\n$1,000\n$2,500\n$5,000\n\nEffective date\t\nHired and non-owned auto liability\t\n-- select --\nExclude\nInclude - $1,000,000\n\nSave coverage\nRate this risk" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/hbm-s08.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/hbm-s08.json new file mode 100644 index 0000000000..4de274b4e8 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/hbm-s08.json @@ -0,0 +1,389 @@ +{ + "case_id": "hbm-s08", + "screen_id": "hbm_location", + "url": "http://127.0.0.1:52717/bop/worksheet", + "bound": [ + { + "binding_id": "hbm_legal_name", + "dossier_key": "legal_name", + "intake": "Spokewright Cycles Inc.", + "observed": { + "label": "Legal name", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Legal name", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_dba_name", + "dossier_key": "dba_name", + "intake": "Spokewright", + "observed": { + "label": "Doing business as (DBA)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Doing business as (DBA)", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_entity_type", + "dossier_key": "entity_type", + "intake": "Corporation", + "observed": { + "label": "Entity type", + "group_label": "", + "value": "", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "Limited liability company", + "label": "Limited liability company" + }, + { + "value": "Corporation", + "label": "Corporation" + }, + { + "value": "Sole proprietorship", + "label": "Sole proprietorship" + }, + { + "value": "General partnership", + "label": "General partnership" + } + ], + "row_cells": [ + "Entity type", + "-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_fein", + "dossier_key": "fein", + "intake": "36-5520914", + "observed": { + "label": "FEIN", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "FEIN", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_year_established", + "dossier_key": "year_established", + "intake": 2004, + "observed": { + "label": "Year established", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Year established", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_location_street", + "dossier_key": "location_street", + "intake": "1409 Linden Avenue", + "observed": { + "label": "Location street address", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Location street address", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_employees", + "dossier_key": "employees", + "intake": 9, + "observed": { + "label": "Number of employees", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Number of employees", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_annual_revenue", + "dossier_key": "annual_revenue", + "intake": 1280000, + "observed": { + "label": "Annual gross sales ($)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Annual gross sales ($)", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_building_owned", + "dossier_key": "building_owned", + "intake": true, + "observed": { + "label": "Does the insured own the building?", + "group_label": "", + "value": "", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "Yes", + "label": "Yes" + }, + { + "value": "No", + "label": "No" + } + ], + "row_cells": [ + "Does the insured own the building?", + "-- select --YesNo" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_building_limit", + "dossier_key": "building_limit", + "intake": 640000, + "observed": { + "label": "Building limit ($)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Building limit ($)", + "enter 0 if not owned" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_bpp_limit", + "dossier_key": "bpp_limit", + "intake": 310000, + "observed": { + "label": "Business personal property limit ($)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Business personal property limit ($)", + "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_liability_limit", + "dossier_key": "liability_limit", + "intake": "$1,000,000 / $2,000,000", + "observed": { + "label": "Liability limits", + "group_label": "", + "value": "", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "$300,000 / $600,000", + "label": "$300,000 / $600,000" + }, + { + "value": "$500,000 / $1,000,000", + "label": "$500,000 / $1,000,000" + }, + { + "value": "$1,000,000 / $2,000,000", + "label": "$1,000,000 / $2,000,000" + } + ], + "row_cells": [ + "Liability limits", + "-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_deductible", + "dossier_key": "deductible", + "intake": 2500, + "observed": { + "label": "Property deductible", + "group_label": "", + "value": "1000", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "500", + "label": "$500" + }, + { + "value": "1000", + "label": "$1,000" + }, + { + "value": "2500", + "label": "$2,500" + }, + { + "value": "5000", + "label": "$5,000" + } + ], + "row_cells": [ + "Property deductible", + "-- select --$500$1,000$2,500$5,000" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_effective_date", + "dossier_key": "effective_date", + "intake": "2027-02-01", + "observed": { + "label": "Effective date", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Effective date", + "" + ], + "error_text": "" + }, + "match_error": "" + } + ], + "unbound": [ + { + "label": "State entity number", + "value": "", + "selector": "#en", + "options": [] + }, + { + "label": "Look up entity", + "value": "", + "selector": "#applicant > tbody > tr:nth-of-type(2) > td > button", + "options": [] + }, + { + "label": "Save applicant", + "value": "", + "selector": "#applicant > tbody > tr:nth-of-type(8) > td > button", + "options": [] + }, + { + "label": "Class code", + "value": "", + "selector": "#class-code", + "options": [] + }, + { + "label": "Find class...", + "value": "", + "selector": "#find-class", + "options": [] + }, + { + "label": "Save location", + "value": "", + "selector": "#location > tbody > tr:nth-of-type(8) > td > button", + "options": [] + }, + { + "label": "Open BPP worksheet", + "value": "", + "selector": "#bpp-open", + "options": [] + }, + { + "label": "Save coverage", + "value": "", + "selector": "#coverage > tbody > tr:nth-of-type(6) > td > button", + "options": [] + }, + { + "label": "Rate this risk", + "value": "", + "selector": "#rate", + "options": [] + } + ], + "banners": [], + "page_text": "HOLLOWFEN BUSINESS MUTUAL\nBOP Rating Worksheet v4.2\n1. Applicant\nState entity number\t Look up entity\nLegal name\t\nDoing business as (DBA)\t\nEntity type\t\n-- select --\nLimited liability company\nCorporation\nSole proprietorship\nGeneral partnership\n\nFEIN\t\nYear established\t\nSave applicant\n2. Location and operations\nLocation street address\t\nClass code\t Find class...\nNumber of employees\t\nAnnual gross sales ($)\t\nDoes the insured own the building?\t\n-- select --\nYes\nNo\n\nBuilding limit ($)\t enter 0 if not owned\nSave location\n3. Coverages\nBusiness personal property limit ($)\t Open BPP worksheet\nLiability limits\t\n-- select --\n$300,000 / $600,000\n$500,000 / $1,000,000\n$1,000,000 / $2,000,000\n occurrence / aggregate\nProperty deductible\t\n-- select --\n$500\n$1,000\n$2,500\n$5,000\n\nEffective date\t\nSave coverage\nRate this risk" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/hbm-s09.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/hbm-s09.json new file mode 100644 index 0000000000..98bf331cfa --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/hbm-s09.json @@ -0,0 +1,389 @@ +{ + "case_id": "hbm-s09", + "screen_id": "hbm_location", + "url": "http://127.0.0.1:52717/bop/worksheet", + "bound": [ + { + "binding_id": "hbm_legal_name", + "dossier_key": "legal_name", + "intake": "Brightwater Garment Care Inc.", + "observed": { + "label": "Legal name", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Legal name", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_dba_name", + "dossier_key": "dba_name", + "intake": "Brightwater Cleaners", + "observed": { + "label": "Doing business as (DBA)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Doing business as (DBA)", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_entity_type", + "dossier_key": "entity_type", + "intake": "Corporation", + "observed": { + "label": "Entity type", + "group_label": "", + "value": "", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "Limited liability company", + "label": "Limited liability company" + }, + { + "value": "Corporation", + "label": "Corporation" + }, + { + "value": "Sole proprietorship", + "label": "Sole proprietorship" + }, + { + "value": "General partnership", + "label": "General partnership" + } + ], + "row_cells": [ + "Entity type", + "-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_fein", + "dossier_key": "fein", + "intake": "31-4408827", + "observed": { + "label": "FEIN", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "FEIN", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_year_established", + "dossier_key": "year_established", + "intake": 2001, + "observed": { + "label": "Year established", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Year established", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_location_street", + "dossier_key": "location_street", + "intake": "2250 Harbor Boulevard", + "observed": { + "label": "Location street address", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Location street address", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_employees", + "dossier_key": "employees", + "intake": 4, + "observed": { + "label": "Number of employees", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Number of employees", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_annual_revenue", + "dossier_key": "annual_revenue", + "intake": 610000, + "observed": { + "label": "Annual gross sales ($)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Annual gross sales ($)", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_building_owned", + "dossier_key": "building_owned", + "intake": true, + "observed": { + "label": "Does the insured own the building?", + "group_label": "", + "value": "", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "Yes", + "label": "Yes" + }, + { + "value": "No", + "label": "No" + } + ], + "row_cells": [ + "Does the insured own the building?", + "-- select --YesNo" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_building_limit", + "dossier_key": "building_limit", + "intake": 450000, + "observed": { + "label": "Building limit ($)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Building limit ($)", + "enter 0 if not owned" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_bpp_limit", + "dossier_key": "bpp_limit", + "intake": 1214600, + "observed": { + "label": "Business personal property limit ($)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Business personal property limit ($)", + "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_liability_limit", + "dossier_key": "liability_limit", + "intake": "$300,000 / $600,000", + "observed": { + "label": "Liability limits", + "group_label": "", + "value": "", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "$300,000 / $600,000", + "label": "$300,000 / $600,000" + }, + { + "value": "$500,000 / $1,000,000", + "label": "$500,000 / $1,000,000" + }, + { + "value": "$1,000,000 / $2,000,000", + "label": "$1,000,000 / $2,000,000" + } + ], + "row_cells": [ + "Liability limits", + "-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_deductible", + "dossier_key": "deductible", + "intake": 5000, + "observed": { + "label": "Property deductible", + "group_label": "", + "value": "1000", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "500", + "label": "$500" + }, + { + "value": "1000", + "label": "$1,000" + }, + { + "value": "2500", + "label": "$2,500" + }, + { + "value": "5000", + "label": "$5,000" + } + ], + "row_cells": [ + "Property deductible", + "-- select --$500$1,000$2,500$5,000" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_effective_date", + "dossier_key": "effective_date", + "intake": "2027-03-10", + "observed": { + "label": "Effective date", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Effective date", + "" + ], + "error_text": "" + }, + "match_error": "" + } + ], + "unbound": [ + { + "label": "State entity number", + "value": "", + "selector": "#en", + "options": [] + }, + { + "label": "Look up entity", + "value": "", + "selector": "#applicant > tbody > tr:nth-of-type(2) > td > button", + "options": [] + }, + { + "label": "Save applicant", + "value": "", + "selector": "#applicant > tbody > tr:nth-of-type(8) > td > button", + "options": [] + }, + { + "label": "Class code", + "value": "", + "selector": "#class-code", + "options": [] + }, + { + "label": "Find class...", + "value": "", + "selector": "#find-class", + "options": [] + }, + { + "label": "Save location", + "value": "", + "selector": "#location > tbody > tr:nth-of-type(8) > td > button", + "options": [] + }, + { + "label": "Open BPP worksheet", + "value": "", + "selector": "#bpp-open", + "options": [] + }, + { + "label": "Save coverage", + "value": "", + "selector": "#coverage > tbody > tr:nth-of-type(6) > td > button", + "options": [] + }, + { + "label": "Rate this risk", + "value": "", + "selector": "#rate", + "options": [] + } + ], + "banners": [], + "page_text": "HOLLOWFEN BUSINESS MUTUAL\nBOP Rating Worksheet v4.2\n1. Applicant\nState entity number\t Look up entity\nLegal name\t\nDoing business as (DBA)\t\nEntity type\t\n-- select --\nLimited liability company\nCorporation\nSole proprietorship\nGeneral partnership\n\nFEIN\t\nYear established\t\nSave applicant\n2. Location and operations\nLocation street address\t\nClass code\t Find class...\nNumber of employees\t\nAnnual gross sales ($)\t\nDoes the insured own the building?\t\n-- select --\nYes\nNo\n\nBuilding limit ($)\t enter 0 if not owned\nSave location\n3. Coverages\nBusiness personal property limit ($)\t Open BPP worksheet\nLiability limits\t\n-- select --\n$300,000 / $600,000\n$500,000 / $1,000,000\n$1,000,000 / $2,000,000\n occurrence / aggregate\nProperty deductible\t\n-- select --\n$500\n$1,000\n$2,500\n$5,000\n\nEffective date\t\nSave coverage\nRate this risk" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/hbm-s10.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/hbm-s10.json new file mode 100644 index 0000000000..142f594bb5 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/hbm-s10.json @@ -0,0 +1,408 @@ +{ + "case_id": "hbm-s10", + "screen_id": "hbm_location", + "url": "http://127.0.0.1:52717/bop/worksheet", + "bound": [ + { + "binding_id": "hbm_legal_name", + "dossier_key": "legal_name", + "intake": "Tallis Hardware & Supply Co.", + "observed": { + "label": "Legal name", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Legal name", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_dba_name", + "dossier_key": "dba_name", + "intake": "Tallis Hardware", + "observed": { + "label": "Doing business as (DBA)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Doing business as (DBA)", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_entity_type", + "dossier_key": "entity_type", + "intake": "Corporation", + "observed": { + "label": "Entity type", + "group_label": "", + "value": "", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "Limited liability company", + "label": "Limited liability company" + }, + { + "value": "Corporation", + "label": "Corporation" + }, + { + "value": "Sole proprietorship", + "label": "Sole proprietorship" + }, + { + "value": "General partnership", + "label": "General partnership" + } + ], + "row_cells": [ + "Entity type", + "-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_fein", + "dossier_key": "fein", + "intake": "13-8806452", + "observed": { + "label": "FEIN", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "FEIN", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_year_established", + "dossier_key": "year_established", + "intake": 1996, + "observed": { + "label": "Year established", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Year established", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_location_street", + "dossier_key": "location_street", + "intake": "15 Anvil Square", + "observed": { + "label": "Location street address", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Location street address", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_employees", + "dossier_key": "employees", + "intake": 12, + "observed": { + "label": "Number of employees", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Number of employees", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_annual_revenue", + "dossier_key": "annual_revenue", + "intake": 2350000, + "observed": { + "label": "Annual gross sales ($)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Annual gross sales ($)", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_building_owned", + "dossier_key": "building_owned", + "intake": true, + "observed": { + "label": "Does the insured own the building?", + "group_label": "", + "value": "", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "Yes", + "label": "Yes" + }, + { + "value": "No", + "label": "No" + } + ], + "row_cells": [ + "Does the insured own the building?", + "-- select --YesNo" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_building_limit", + "dossier_key": "building_limit", + "intake": 1100000, + "observed": { + "label": "Building limit ($)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Building limit ($)", + "enter 0 if not owned" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_bpp_limit", + "dossier_key": "bpp_limit", + "intake": 690000, + "observed": { + "label": "Business personal property limit ($)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Business personal property limit ($)", + "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_liability_limit", + "dossier_key": "liability_limit", + "intake": "$1,000,000 / $2,000,000", + "observed": { + "label": "Liability limits", + "group_label": "", + "value": "", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "$300,000 / $600,000", + "label": "$300,000 / $600,000" + }, + { + "value": "$500,000 / $1,000,000", + "label": "$500,000 / $1,000,000" + }, + { + "value": "$1,000,000 / $2,000,000", + "label": "$1,000,000 / $2,000,000" + } + ], + "row_cells": [ + "Liability limits", + "-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_deductible", + "dossier_key": "deductible", + "intake": 2500, + "observed": { + "label": "Property deductible", + "group_label": "", + "value": "1000", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "500", + "label": "$500" + }, + { + "value": "1000", + "label": "$1,000" + }, + { + "value": "2500", + "label": "$2,500" + }, + { + "value": "5000", + "label": "$5,000" + } + ], + "row_cells": [ + "Property deductible", + "-- select --$500$1,000$2,500$5,000" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_effective_date", + "dossier_key": "effective_date", + "intake": "2027-04-01", + "observed": { + "label": "Effective date", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Effective date", + "" + ], + "error_text": "" + }, + "match_error": "" + } + ], + "unbound": [ + { + "label": "State entity number", + "value": "", + "selector": "#en", + "options": [] + }, + { + "label": "Look up entity", + "value": "", + "selector": "#applicant > tbody > tr:nth-of-type(2) > td > button", + "options": [] + }, + { + "label": "Save applicant", + "value": "", + "selector": "#applicant > tbody > tr:nth-of-type(8) > td > button", + "options": [] + }, + { + "label": "Class code", + "value": "", + "selector": "#class-code", + "options": [] + }, + { + "label": "Find class...", + "value": "", + "selector": "#find-class", + "options": [] + }, + { + "label": "Save location", + "value": "", + "selector": "#location > tbody > tr:nth-of-type(8) > td > button", + "options": [] + }, + { + "label": "Open BPP worksheet", + "value": "", + "selector": "#bpp-open", + "options": [] + }, + { + "label": "Hired and non-owned auto liability", + "value": "", + "selector": "#hn", + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "Exclude", + "label": "Exclude" + }, + { + "value": "Include - $1,000,000", + "label": "Include - $1,000,000" + } + ] + }, + { + "label": "Save coverage", + "value": "", + "selector": "#coverage > tbody > tr:nth-of-type(7) > td > button", + "options": [] + }, + { + "label": "Rate this risk", + "value": "", + "selector": "#rate", + "options": [] + } + ], + "banners": [], + "page_text": "HOLLOWFEN BUSINESS MUTUAL\nBOP Rating Worksheet v4.2\n1. Applicant\nState entity number\t Look up entity\nLegal name\t\nDoing business as (DBA)\t\nEntity type\t\n-- select --\nLimited liability company\nCorporation\nSole proprietorship\nGeneral partnership\n\nFEIN\t\nYear established\t\nSave applicant\n2. Location and operations\nLocation street address\t\nClass code\t Find class...\nNumber of employees\t\nAnnual gross sales ($)\t\nDoes the insured own the building?\t\n-- select --\nYes\nNo\n\nBuilding limit ($)\t enter 0 if not owned\nSave location\n3. Coverages\nBusiness personal property limit ($)\t Open BPP worksheet\nLiability limits\t\n-- select --\n$300,000 / $600,000\n$500,000 / $1,000,000\n$1,000,000 / $2,000,000\n occurrence / aggregate\nProperty deductible\t\n-- select --\n$500\n$1,000\n$2,500\n$5,000\n\nEffective date\t\nHired and non-owned auto liability\t\n-- select --\nExclude\nInclude - $1,000,000\n\nSave coverage\nRate this risk" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/lta-s01.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/lta-s01.json new file mode 100644 index 0000000000..36497ff493 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/lta-s01.json @@ -0,0 +1,130 @@ +{ + "case_id": "lta-s01", + "screen_id": "lta_travellers", + "url": "http://127.0.0.1:52316/trip", + "bound": [ + { + "binding_id": "lta_purchaser_name", + "dossier_key": "purchaser_name", + "intake": "Ignatius Belmonte", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_email", + "dossier_key": "purchaser_email", + "intake": "ig.belmonte@example.test", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_phone", + "dossier_key": "purchaser_phone", + "intake": "312-555-0166", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_residence_state", + "dossier_key": "residence_state", + "intake": "Illinois", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_destination_choice", + "dossier_key": "destination_choice", + "intake": "Iceland - Northern Europe", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_departure_date", + "dossier_key": "departure_date", + "intake": "2027-08-09", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_return_date", + "dossier_key": "return_date", + "intake": "2027-08-19", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_name", + "dossier_key": "traveller_1_name", + "intake": "Ignatius Belmonte", + "observed": { + "label": "Full name", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_dob", + "dossier_key": "traveller_1_dob", + "intake": "1984-07-11", + "observed": { + "label": "Date of birth", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "lta_trip_cost", + "dossier_key": "trip_cost", + "intake": 7150, + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_plan", + "dossier_key": "plan", + "intake": "Essential", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_cfar", + "dossier_key": "cfar", + "intake": false, + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_confirm_details", + "dossier_key": "confirm_details", + "intake": true, + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Add another traveller", + "value": "", + "selector": "#trav-add", + "options": [] + }, + { + "label": "Continue", + "value": "", + "selector": "body > div:nth-of-type(2) > section:nth-of-type(4) > button:nth-of-type(2)", + "options": [] + } + ], + "banners": [], + "page_text": "Larkspan Travel Assurance\n\nWho's travelling?\nTraveller 1\nFull name\nDate of birth\nAdd another traveller\nContinue" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/lta-s02.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/lta-s02.json new file mode 100644 index 0000000000..e922ed1095 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/lta-s02.json @@ -0,0 +1,116 @@ +{ + "case_id": "lta-s02", + "screen_id": "lta_destination", + "url": "http://127.0.0.1:52316/trip", + "bound": [ + { + "binding_id": "lta_purchaser_name", + "dossier_key": "purchaser_name", + "intake": "Nadia Szymanska", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_email", + "dossier_key": "purchaser_email", + "intake": "nadia.sz@example.test", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_phone", + "dossier_key": "purchaser_phone", + "intake": "720-555-0103", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_residence_state", + "dossier_key": "residence_state", + "intake": "Colorado", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_destination_choice", + "dossier_key": "destination_choice", + "intake": "Georgia - Caucasus", + "observed": { + "label": "Destination", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "lta_departure_date", + "dossier_key": "departure_date", + "intake": "2027-09-14", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_return_date", + "dossier_key": "return_date", + "intake": "2027-09-27", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_name", + "dossier_key": "traveller_1_name", + "intake": "Nadia Szymanska", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_dob", + "dossier_key": "traveller_1_dob", + "intake": "1990-04-17", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_trip_cost", + "dossier_key": "trip_cost", + "intake": 2980, + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_plan", + "dossier_key": "plan", + "intake": "Plus", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_cfar", + "dossier_key": "cfar", + "intake": false, + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_confirm_details", + "dossier_key": "confirm_details", + "intake": true, + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Continue", + "value": "", + "selector": "body > div:nth-of-type(2) > section:nth-of-type(2) > button", + "options": [] + } + ], + "banners": [], + "page_text": "Larkspan Travel Assurance\n\nWhere are you going?\nDestination\nContinue" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/lta-s03.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/lta-s03.json new file mode 100644 index 0000000000..c6f4bb2292 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/lta-s03.json @@ -0,0 +1,188 @@ +{ + "case_id": "lta-s03", + "screen_id": "lta_review", + "url": "http://127.0.0.1:52316/trip", + "bound": [ + { + "binding_id": "lta_purchaser_name", + "dossier_key": "purchaser_name", + "intake": "Cornelius Adeyemi", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_email", + "dossier_key": "purchaser_email", + "intake": "c.adeyemi@example.test", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_phone", + "dossier_key": "purchaser_phone", + "intake": "512-555-0149", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_residence_state", + "dossier_key": "residence_state", + "intake": "Texas", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_destination_choice", + "dossier_key": "destination_choice", + "intake": "Morocco - North Africa", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_departure_date", + "dossier_key": "departure_date", + "intake": "2027-03-08", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_return_date", + "dossier_key": "return_date", + "intake": "2027-03-20", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_name", + "dossier_key": "traveller_1_name", + "intake": "Cornelius Adeyemi", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_dob", + "dossier_key": "traveller_1_dob", + "intake": "1972-11-05", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_trip_cost", + "dossier_key": "trip_cost", + "intake": 4410, + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_plan", + "dossier_key": "plan", + "intake": "Plus", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_cfar", + "dossier_key": "cfar", + "intake": false, + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_confirm_details", + "dossier_key": "confirm_details", + "intake": true, + "observed": { + "label": "I confirm the details above are correct", + "group_label": "", + "value": "false", + "checked": false, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Edit Name", + "value": "", + "selector": "#rev > div:nth-of-type(1) > button", + "options": [] + }, + { + "label": "Edit Email", + "value": "", + "selector": "#rev > div:nth-of-type(2) > button", + "options": [] + }, + { + "label": "Edit Mobile phone", + "value": "", + "selector": "#rev > div:nth-of-type(3) > button", + "options": [] + }, + { + "label": "Edit State of residence", + "value": "", + "selector": "#rev > div:nth-of-type(4) > button", + "options": [] + }, + { + "label": "Edit Destination", + "value": "", + "selector": "#rev > div:nth-of-type(5) > button", + "options": [] + }, + { + "label": "Edit Departure date", + "value": "", + "selector": "#rev > div:nth-of-type(6) > button", + "options": [] + }, + { + "label": "Edit Return date", + "value": "", + "selector": "#rev > div:nth-of-type(7) > button", + "options": [] + }, + { + "label": "Edit Travellers", + "value": "", + "selector": "#rev > div:nth-of-type(8) > button", + "options": [] + }, + { + "label": "Edit Trip cost", + "value": "", + "selector": "#rev > div:nth-of-type(9) > button", + "options": [] + }, + { + "label": "Edit Plan", + "value": "", + "selector": "#rev > div:nth-of-type(10) > button", + "options": [] + }, + { + "label": "Edit Cancel For Any Reason", + "value": "", + "selector": "#rev > div:nth-of-type(11) > button", + "options": [] + }, + { + "label": "Edit Emergency medical evacuation limit", + "value": "", + "selector": "#rev > div:nth-of-type(12) > button", + "options": [] + }, + { + "label": "Get my quote", + "value": "", + "selector": "#buy", + "options": [] + } + ], + "banners": [], + "page_text": "Larkspan Travel Assurance\n\nCheck everything\nName\nCornelius Adeyemi\nEdit\nEmail\nc.adeyemi@example.test\nEdit\nMobile phone\n512-555-0149\nEdit\nState of residence\nTexas\nEdit\nDestination\nMorocco - North Africa\nEdit\nDeparture date\n03/08/2027\nEdit\nReturn date\n03/20/2027\nEdit\nTravellers\nCornelius Adeyemi (11/05/1972)\nEdit\nTrip cost\n$4,410\nEdit\nPlan\nPlus\nEdit\nCancel For Any Reason\nNo\nEdit\nEmergency medical evacuation limit\nEdit\nI confirm the details above are correct\nGet my quote" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/lta-s04.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/lta-s04.json new file mode 100644 index 0000000000..2b8e491618 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/lta-s04.json @@ -0,0 +1,130 @@ +{ + "case_id": "lta-s04", + "screen_id": "lta_travellers", + "url": "http://127.0.0.1:52316/trip", + "bound": [ + { + "binding_id": "lta_purchaser_name", + "dossier_key": "purchaser_name", + "intake": "Leocadia Furness", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_email", + "dossier_key": "purchaser_email", + "intake": "leo.furness@example.test", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_phone", + "dossier_key": "purchaser_phone", + "intake": "802-555-0177", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_residence_state", + "dossier_key": "residence_state", + "intake": "Vermont", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_destination_choice", + "dossier_key": "destination_choice", + "intake": "Peru - South America", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_departure_date", + "dossier_key": "departure_date", + "intake": "2027-07-01", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_return_date", + "dossier_key": "return_date", + "intake": "2027-07-16", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_name", + "dossier_key": "traveller_1_name", + "intake": "Leocadia Furness", + "observed": { + "label": "Full name", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_dob", + "dossier_key": "traveller_1_dob", + "intake": "1993-06-08", + "observed": { + "label": "Date of birth", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "lta_trip_cost", + "dossier_key": "trip_cost", + "intake": 6380, + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_plan", + "dossier_key": "plan", + "intake": "Plus", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_cfar", + "dossier_key": "cfar", + "intake": true, + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_confirm_details", + "dossier_key": "confirm_details", + "intake": true, + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Add another traveller", + "value": "", + "selector": "#trav-add", + "options": [] + }, + { + "label": "Continue", + "value": "", + "selector": "body > div:nth-of-type(2) > section:nth-of-type(4) > button:nth-of-type(2)", + "options": [] + } + ], + "banners": [], + "page_text": "Larkspan Travel Assurance\n\nWho's travelling?\nTraveller 1\nFull name\nDate of birth\nAdd another traveller\nContinue" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/lta-s05.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/lta-s05.json new file mode 100644 index 0000000000..ef2e8cb684 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/lta-s05.json @@ -0,0 +1,114 @@ +{ + "case_id": "lta-s05", + "screen_id": null, + "url": "http://127.0.0.1:52316/trip", + "bound": [ + { + "binding_id": "lta_purchaser_name", + "dossier_key": "purchaser_name", + "intake": "Henrietta Moss-Achebe", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_email", + "dossier_key": "purchaser_email", + "intake": "h.mossachebe@example.test", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_phone", + "dossier_key": "purchaser_phone", + "intake": "612-555-0158", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_residence_state", + "dossier_key": "residence_state", + "intake": "Minnesota", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_destination_choice", + "dossier_key": "destination_choice", + "intake": "Norway - Northern Europe", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_departure_date", + "dossier_key": "departure_date", + "intake": "2027-06-12", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_return_date", + "dossier_key": "return_date", + "intake": "2027-06-24", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_name", + "dossier_key": "traveller_1_name", + "intake": "Henrietta Moss-Achebe", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_dob", + "dossier_key": "traveller_1_dob", + "intake": "1961-09-30", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_trip_cost", + "dossier_key": "trip_cost", + "intake": 11840, + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_plan", + "dossier_key": "plan", + "intake": "Premier", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_cfar", + "dossier_key": "cfar", + "intake": true, + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_confirm_details", + "dossier_key": "confirm_details", + "intake": true, + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Yes, these are correct", + "value": "", + "selector": "#profile-yes", + "options": [] + }, + { + "label": "Update my details", + "value": "", + "selector": "#profile-edit", + "options": [] + } + ], + "banners": [], + "page_text": "Larkspan Travel Assurance\n\nFirst, about you\n\nWe have these details on file\n\nName\nHenrietta Moss-Achebe\nEmail\nh.mossachebe@example.test\nMobile phone\n612-555-0158\nState of residence\nMinnesota\nYes, these are correct Update my details" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/lta-s06.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/lta-s06.json new file mode 100644 index 0000000000..f46f9f84bb --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/lta-s06.json @@ -0,0 +1,130 @@ +{ + "case_id": "lta-s06", + "screen_id": "lta_travellers", + "url": "http://127.0.0.1:52316/trip", + "bound": [ + { + "binding_id": "lta_purchaser_name", + "dossier_key": "purchaser_name", + "intake": "Thaddeus Kimura", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_email", + "dossier_key": "purchaser_email", + "intake": "t.kimura@example.test", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_phone", + "dossier_key": "purchaser_phone", + "intake": "480-555-0121", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_residence_state", + "dossier_key": "residence_state", + "intake": "Arizona", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_destination_choice", + "dossier_key": "destination_choice", + "intake": "New Zealand - Oceania", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_departure_date", + "dossier_key": "departure_date", + "intake": "2027-11-03", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_return_date", + "dossier_key": "return_date", + "intake": "2027-11-25", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_name", + "dossier_key": "traveller_1_name", + "intake": "Thaddeus Kimura", + "observed": { + "label": "Full name", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_dob", + "dossier_key": "traveller_1_dob", + "intake": "1968-05-19", + "observed": { + "label": "Date of birth", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "lta_trip_cost", + "dossier_key": "trip_cost", + "intake": 14200, + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_plan", + "dossier_key": "plan", + "intake": "Premier", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_cfar", + "dossier_key": "cfar", + "intake": false, + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_confirm_details", + "dossier_key": "confirm_details", + "intake": true, + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Add another traveller", + "value": "", + "selector": "#trav-add", + "options": [] + }, + { + "label": "Continue", + "value": "", + "selector": "body > div:nth-of-type(2) > section:nth-of-type(4) > button:nth-of-type(2)", + "options": [] + } + ], + "banners": [], + "page_text": "Larkspan Travel Assurance\n\nWho's travelling?\nTraveller 1\nFull name\nDate of birth\nAdd another traveller\nContinue" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/lta-s07.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/lta-s07.json new file mode 100644 index 0000000000..7f089c5559 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/lta-s07.json @@ -0,0 +1,114 @@ +{ + "case_id": "lta-s07", + "screen_id": null, + "url": "http://127.0.0.1:52316/trip", + "bound": [ + { + "binding_id": "lta_purchaser_name", + "dossier_key": "purchaser_name", + "intake": "Dorian Velasquez-Pratt", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_email", + "dossier_key": "purchaser_email", + "intake": "dorian.vp@example.test", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_phone", + "dossier_key": "purchaser_phone", + "intake": "206-555-0137", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_residence_state", + "dossier_key": "residence_state", + "intake": "Washington", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_destination_choice", + "dossier_key": "destination_choice", + "intake": "Japan - East Asia", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_departure_date", + "dossier_key": "departure_date", + "intake": "2027-04-02", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_return_date", + "dossier_key": "return_date", + "intake": "2027-04-18", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_name", + "dossier_key": "traveller_1_name", + "intake": "Dorian Velasquez-Pratt", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_dob", + "dossier_key": "traveller_1_dob", + "intake": "1988-12-03", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_trip_cost", + "dossier_key": "trip_cost", + "intake": 5260, + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_plan", + "dossier_key": "plan", + "intake": "Plus", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_cfar", + "dossier_key": "cfar", + "intake": false, + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_confirm_details", + "dossier_key": "confirm_details", + "intake": true, + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Yes, these are correct", + "value": "", + "selector": "#profile-yes", + "options": [] + }, + { + "label": "Update my details", + "value": "", + "selector": "#profile-edit", + "options": [] + } + ], + "banners": [], + "page_text": "Larkspan Travel Assurance\n\nFirst, about you\n\nWe have these details on file\n\nName\nDorian Velasquez-Pratt\nEmail\ndorian.vp@example.test\nMobile phone\n206-555-0137\nState of residence\nOregon\nYes, these are correct Update my details" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/lta-s08.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/lta-s08.json new file mode 100644 index 0000000000..0ee415c065 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/lta-s08.json @@ -0,0 +1,182 @@ +{ + "case_id": "lta-s08", + "screen_id": "lta_review", + "url": "http://127.0.0.1:52316/trip", + "bound": [ + { + "binding_id": "lta_purchaser_name", + "dossier_key": "purchaser_name", + "intake": "Felicity Oyelaran", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_email", + "dossier_key": "purchaser_email", + "intake": "f.oyelaran@example.test", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_phone", + "dossier_key": "purchaser_phone", + "intake": "207-555-0198", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_residence_state", + "dossier_key": "residence_state", + "intake": "Maine", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_destination_choice", + "dossier_key": "destination_choice", + "intake": "Vietnam - Southeast Asia", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_departure_date", + "dossier_key": "departure_date", + "intake": "2027-02-10", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_return_date", + "dossier_key": "return_date", + "intake": "2027-02-28", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_name", + "dossier_key": "traveller_1_name", + "intake": "Felicity Oyelaran", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_dob", + "dossier_key": "traveller_1_dob", + "intake": "1982-02-25", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_trip_cost", + "dossier_key": "trip_cost", + "intake": 3995, + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_plan", + "dossier_key": "plan", + "intake": "Plus", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_cfar", + "dossier_key": "cfar", + "intake": false, + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_confirm_details", + "dossier_key": "confirm_details", + "intake": true, + "observed": { + "label": "I confirm the details above are correct", + "group_label": "", + "value": "false", + "checked": false, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Edit Name", + "value": "", + "selector": "#rev > div:nth-of-type(1) > button", + "options": [] + }, + { + "label": "Edit Email", + "value": "", + "selector": "#rev > div:nth-of-type(2) > button", + "options": [] + }, + { + "label": "Edit Mobile phone", + "value": "", + "selector": "#rev > div:nth-of-type(3) > button", + "options": [] + }, + { + "label": "Edit State of residence", + "value": "", + "selector": "#rev > div:nth-of-type(4) > button", + "options": [] + }, + { + "label": "Edit Destination", + "value": "", + "selector": "#rev > div:nth-of-type(5) > button", + "options": [] + }, + { + "label": "Edit Departure date", + "value": "", + "selector": "#rev > div:nth-of-type(6) > button", + "options": [] + }, + { + "label": "Edit Return date", + "value": "", + "selector": "#rev > div:nth-of-type(7) > button", + "options": [] + }, + { + "label": "Edit Travellers", + "value": "", + "selector": "#rev > div:nth-of-type(8) > button", + "options": [] + }, + { + "label": "Edit Trip cost", + "value": "", + "selector": "#rev > div:nth-of-type(9) > button", + "options": [] + }, + { + "label": "Edit Plan", + "value": "", + "selector": "#rev > div:nth-of-type(10) > button", + "options": [] + }, + { + "label": "Edit Cancel For Any Reason", + "value": "", + "selector": "#rev > div:nth-of-type(11) > button", + "options": [] + }, + { + "label": "Get my quote", + "value": "", + "selector": "#buy", + "options": [] + } + ], + "banners": [], + "page_text": "Larkspan Travel Assurance\n\nCheck everything\nName\nFelicity Oyelaran\nEdit\nEmail\nf.oyelaran@example.test\nEdit\nMobile phone\n207-555-0198\nEdit\nState of residence\nMaine\nEdit\nDestination\nVietnam - Southeast Asia\nEdit\nDeparture date\n02/10/2027\nEdit\nReturn date\n02/28/2027\nEdit\nTravellers\nFelicity Oyelaran (02/25/1982)\nEdit\nTrip cost\n$3,995\nEdit\nPlan\nPlus\nEdit\nCancel For Any Reason\nNo\nEdit\nI confirm the details above are correct\nGet my quote" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/lta-s09.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/lta-s09.json new file mode 100644 index 0000000000..c43b8e2d64 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/lta-s09.json @@ -0,0 +1,182 @@ +{ + "case_id": "lta-s09", + "screen_id": "lta_review", + "url": "http://127.0.0.1:52316/trip", + "bound": [ + { + "binding_id": "lta_purchaser_name", + "dossier_key": "purchaser_name", + "intake": "Bartholomew Esquivel", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_email", + "dossier_key": "purchaser_email", + "intake": "bart.esq@example.test", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_phone", + "dossier_key": "purchaser_phone", + "intake": "916-555-0114", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_residence_state", + "dossier_key": "residence_state", + "intake": "California", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_destination_choice", + "dossier_key": "destination_choice", + "intake": "Portugal - Southern Europe", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_departure_date", + "dossier_key": "departure_date", + "intake": "2027-10-02", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_return_date", + "dossier_key": "return_date", + "intake": "2027-10-11", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_name", + "dossier_key": "traveller_1_name", + "intake": "Bartholomew Esquivel", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_dob", + "dossier_key": "traveller_1_dob", + "intake": "1997-09-09", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_trip_cost", + "dossier_key": "trip_cost", + "intake": 2240, + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_plan", + "dossier_key": "plan", + "intake": "Essential", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_cfar", + "dossier_key": "cfar", + "intake": false, + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_confirm_details", + "dossier_key": "confirm_details", + "intake": true, + "observed": { + "label": "I confirm the details above are correct", + "group_label": "", + "value": "false", + "checked": false, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Edit Name", + "value": "", + "selector": "#rev > div:nth-of-type(1) > button", + "options": [] + }, + { + "label": "Edit Email", + "value": "", + "selector": "#rev > div:nth-of-type(2) > button", + "options": [] + }, + { + "label": "Edit Mobile phone", + "value": "", + "selector": "#rev > div:nth-of-type(3) > button", + "options": [] + }, + { + "label": "Edit State of residence", + "value": "", + "selector": "#rev > div:nth-of-type(4) > button", + "options": [] + }, + { + "label": "Edit Destination", + "value": "", + "selector": "#rev > div:nth-of-type(5) > button", + "options": [] + }, + { + "label": "Edit Departure date", + "value": "", + "selector": "#rev > div:nth-of-type(6) > button", + "options": [] + }, + { + "label": "Edit Return date", + "value": "", + "selector": "#rev > div:nth-of-type(7) > button", + "options": [] + }, + { + "label": "Edit Travellers", + "value": "", + "selector": "#rev > div:nth-of-type(8) > button", + "options": [] + }, + { + "label": "Edit Trip cost", + "value": "", + "selector": "#rev > div:nth-of-type(9) > button", + "options": [] + }, + { + "label": "Edit Plan", + "value": "", + "selector": "#rev > div:nth-of-type(10) > button", + "options": [] + }, + { + "label": "Edit Cancel For Any Reason", + "value": "", + "selector": "#rev > div:nth-of-type(11) > button", + "options": [] + }, + { + "label": "Get my quote", + "value": "", + "selector": "#buy", + "options": [] + } + ], + "banners": [], + "page_text": "Larkspan Travel Assurance\n\nCheck everything\nName\nBartholomew Esquivel\nEdit\nEmail\nbart.esq@example.test\nEdit\nMobile phone\n916-555-0114\nEdit\nState of residence\nCalifornia\nEdit\nDestination\nPortugal - Southern Europe\nEdit\nDeparture date\n10/02/2027\nEdit\nReturn date\n10/11/2027\nEdit\nTravellers\nBartholomew Esquivel (09/09/1997)\nEdit\nTrip cost\n$2,240\nEdit\nPlan\nEssential\nEdit\nCancel For Any Reason\nNo\nEdit\nI confirm the details above are correct\nGet my quote" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/lta-s10.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/lta-s10.json new file mode 100644 index 0000000000..4d66527a53 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B/lta-s10.json @@ -0,0 +1,130 @@ +{ + "case_id": "lta-s10", + "screen_id": "lta_travellers", + "url": "http://127.0.0.1:52316/trip", + "bound": [ + { + "binding_id": "lta_purchaser_name", + "dossier_key": "purchaser_name", + "intake": "Sunniva Haraldsen", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_email", + "dossier_key": "purchaser_email", + "intake": "sunniva.h@example.test", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_phone", + "dossier_key": "purchaser_phone", + "intake": "651-555-0172", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_residence_state", + "dossier_key": "residence_state", + "intake": "Minnesota", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_destination_choice", + "dossier_key": "destination_choice", + "intake": "Kenya - East Africa", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_departure_date", + "dossier_key": "departure_date", + "intake": "2027-01-18", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_return_date", + "dossier_key": "return_date", + "intake": "2027-02-01", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_name", + "dossier_key": "traveller_1_name", + "intake": "Sunniva Haraldsen", + "observed": { + "label": "Full name", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_dob", + "dossier_key": "traveller_1_dob", + "intake": "1975-03-03", + "observed": { + "label": "Date of birth", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "lta_trip_cost", + "dossier_key": "trip_cost", + "intake": 16900, + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_plan", + "dossier_key": "plan", + "intake": "Premier", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_cfar", + "dossier_key": "cfar", + "intake": false, + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_confirm_details", + "dossier_key": "confirm_details", + "intake": true, + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Add another traveller", + "value": "", + "selector": "#trav-add", + "options": [] + }, + { + "label": "Continue", + "value": "", + "selector": "body > div:nth-of-type(2) > section:nth-of-type(4) > button:nth-of-type(2)", + "options": [] + } + ], + "banners": [], + "page_text": "Larkspan Travel Assurance\n\nWho's travelling?\nTraveller 1\nFull name\nDate of birth\nAdd another traveller\nContinue" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/bfu-s01.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/bfu-s01.json new file mode 100644 index 0000000000..8c34373953 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/bfu-s01.json @@ -0,0 +1,198 @@ +{ + "case_id": "bfu-s01", + "screen_id": "bfu_property", + "url": "http://127.0.0.1:51459/flood/hub", + "bound": [ + { + "binding_id": "bfu_insured_name", + "dossier_key": "insured_name", + "intake": "Tobias Rennick", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_insured_phone", + "dossier_key": "insured_phone", + "intake": "843-555-0162", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_property_street", + "dossier_key": "property_street", + "intake": "14 Cordgrass Lane", + "observed": { + "label": "Property street address", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_community_name", + "dossier_key": "community_name", + "intake": "Brindle Cove", + "observed": { + "label": "NFIP community", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_flood_zone_certificate", + "dossier_key": "flood_zone_certificate", + "intake": "VE", + "observed": { + "label": "Flood zone", + "group_label": "", + "value": "Select zone", + "checked": null, + "options": [ + { + "value": "", + "label": "Select zone" + }, + { + "value": "A", + "label": "Zone A" + }, + { + "value": "AE", + "label": "Zone AE" + }, + { + "value": "AO", + "label": "Zone AO" + }, + { + "value": "VE", + "label": "Zone VE" + }, + { + "value": "X", + "label": "Zone X" + }, + { + "value": "D", + "label": "Zone D" + } + ], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_building_type", + "dossier_key": "building_type", + "intake": "Single-family dwelling", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_foundation", + "dossier_key": "foundation", + "intake": "Elevated on piers or posts", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_year_built", + "dossier_key": "year_built", + "intake": 2008, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_square_feet", + "dossier_key": "square_feet", + "intake": 2140, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_building_coverage", + "dossier_key": "building_coverage", + "intake": 250000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_contents_coverage", + "dossier_key": "contents_coverage", + "intake": 100000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_deductible", + "dossier_key": "deductible", + "intake": 5000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_prior_claims", + "dossier_key": "prior_claims", + "intake": 0, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_effective_date", + "dossier_key": "effective_date", + "intake": "2027-02-01", + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Edit named insured", + "value": "", + "selector": "#card-insured > button", + "options": [] + }, + { + "label": "Edit property and map", + "value": "", + "selector": "#card-property > button", + "options": [] + }, + { + "label": "Edit building details", + "value": "", + "selector": "#card-building > button", + "options": [] + }, + { + "label": "Edit coverage and billing", + "value": "", + "selector": "#card-coverage > button", + "options": [] + }, + { + "label": "Save section", + "value": "", + "selector": "#dlg-property > form > button:nth-of-type(1)", + "options": [] + }, + { + "label": "Cancel", + "value": "", + "selector": "#dlg-property > form > button:nth-of-type(2)", + "options": [] + } + ], + "banners": [], + "page_text": "Brackwater Flood Underwriters\nAgency flood desk\nResidential flood quote\n\nComplete each section. Sections save to the agency file as you go.\n\nNamed insured\n\nComplete\n\nEdit named insured\nProperty and map\n\nNot started\n\nEdit property and map\nBuilding details\n\nNot started\n\nEdit building details\nCoverage and billing\n\nNot started\n\nEdit coverage and billing\n\nReview declarations\n\nProperty and map\nProperty street address\nNFIP community\nFlood zone\nSelect zone\nZone A\nZone AE\nZone AO\nZone VE\nZone X\nZone D\nSave section Cancel" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/bfu-s02.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/bfu-s02.json new file mode 100644 index 0000000000..d7a45f039f --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/bfu-s02.json @@ -0,0 +1,167 @@ +{ + "case_id": "bfu-s02", + "screen_id": "bfu_property", + "url": "http://127.0.0.1:51459/flood/hub", + "bound": [ + { + "binding_id": "bfu_insured_name", + "dossier_key": "insured_name", + "intake": "Delphine Varga", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_insured_phone", + "dossier_key": "insured_phone", + "intake": "410-555-0133", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_property_street", + "dossier_key": "property_street", + "intake": "301 Weir Street", + "observed": { + "label": "Property street address", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_community_name", + "dossier_key": "community_name", + "intake": "Eskerton", + "observed": { + "label": "NFIP community", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_flood_zone_certificate", + "dossier_key": "flood_zone_certificate", + "intake": "A", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_building_type", + "dossier_key": "building_type", + "intake": "Townhouse or rowhouse", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_foundation", + "dossier_key": "foundation", + "intake": "Slab on grade", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_year_built", + "dossier_key": "year_built", + "intake": 1978, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_square_feet", + "dossier_key": "square_feet", + "intake": 1320, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_building_coverage", + "dossier_key": "building_coverage", + "intake": null, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_contents_coverage", + "dossier_key": "contents_coverage", + "intake": 40000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_deductible", + "dossier_key": "deductible", + "intake": 2000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_prior_claims", + "dossier_key": "prior_claims", + "intake": 1, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_effective_date", + "dossier_key": "effective_date", + "intake": "2027-01-20", + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Edit named insured", + "value": "", + "selector": "#card-insured > button", + "options": [] + }, + { + "label": "Edit property and map", + "value": "", + "selector": "#card-property > button", + "options": [] + }, + { + "label": "Edit building details", + "value": "", + "selector": "#card-building > button", + "options": [] + }, + { + "label": "Edit coverage and billing", + "value": "", + "selector": "#card-coverage > button", + "options": [] + }, + { + "label": "Change", + "value": "", + "selector": "#zone-change", + "options": [] + }, + { + "label": "Save section", + "value": "", + "selector": "#dlg-property > form > button:nth-of-type(1)", + "options": [] + }, + { + "label": "Cancel", + "value": "", + "selector": "#dlg-property > form > button:nth-of-type(2)", + "options": [] + } + ], + "banners": [], + "page_text": "Brackwater Flood Underwriters\nAgency flood desk\nResidential flood quote\n\nComplete each section. Sections save to the agency file as you go.\n\nNamed insured\n\nComplete\n\nEdit named insured\nProperty and map\n\nNot started\n\nEdit property and map\nBuilding details\n\nNot started\n\nEdit building details\nCoverage and billing\n\nNot started\n\nEdit coverage and billing\n\nReview declarations\n\nProperty and map\nProperty street address\nNFIP community\nMap lookup result: Zone A Change\nSave section Cancel" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/bfu-s03.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/bfu-s03.json new file mode 100644 index 0000000000..4df28a990c --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/bfu-s03.json @@ -0,0 +1,198 @@ +{ + "case_id": "bfu-s03", + "screen_id": "bfu_property", + "url": "http://127.0.0.1:51459/flood/hub", + "bound": [ + { + "binding_id": "bfu_insured_name", + "dossier_key": "insured_name", + "intake": "Quentin Abara", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_insured_phone", + "dossier_key": "insured_phone", + "intake": "251-555-0188", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_property_street", + "dossier_key": "property_street", + "intake": "7 Pilings Court", + "observed": { + "label": "Property street address", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_community_name", + "dossier_key": "community_name", + "intake": "Fallowmouth", + "observed": { + "label": "NFIP community", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_flood_zone_certificate", + "dossier_key": "flood_zone_certificate", + "intake": "AE", + "observed": { + "label": "Flood zone", + "group_label": "", + "value": "Select zone", + "checked": null, + "options": [ + { + "value": "", + "label": "Select zone" + }, + { + "value": "A", + "label": "Zone A" + }, + { + "value": "AE", + "label": "Zone AE" + }, + { + "value": "AO", + "label": "Zone AO" + }, + { + "value": "VE", + "label": "Zone VE" + }, + { + "value": "X", + "label": "Zone X" + }, + { + "value": "D", + "label": "Zone D" + } + ], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_building_type", + "dossier_key": "building_type", + "intake": "Single-family dwelling", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_foundation", + "dossier_key": "foundation", + "intake": "Elevated on piers or posts", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_year_built", + "dossier_key": "year_built", + "intake": 2015, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_square_feet", + "dossier_key": "square_feet", + "intake": 1900, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_building_coverage", + "dossier_key": "building_coverage", + "intake": 300000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_contents_coverage", + "dossier_key": "contents_coverage", + "intake": 75000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_deductible", + "dossier_key": "deductible", + "intake": 5000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_prior_claims", + "dossier_key": "prior_claims", + "intake": 0, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_effective_date", + "dossier_key": "effective_date", + "intake": "2027-03-01", + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Edit named insured", + "value": "", + "selector": "#card-insured > button", + "options": [] + }, + { + "label": "Edit property and map", + "value": "", + "selector": "#card-property > button", + "options": [] + }, + { + "label": "Edit building details", + "value": "", + "selector": "#card-building > button", + "options": [] + }, + { + "label": "Edit coverage and billing", + "value": "", + "selector": "#card-coverage > button", + "options": [] + }, + { + "label": "Save section", + "value": "", + "selector": "#dlg-property > form > button:nth-of-type(1)", + "options": [] + }, + { + "label": "Cancel", + "value": "", + "selector": "#dlg-property > form > button:nth-of-type(2)", + "options": [] + } + ], + "banners": [], + "page_text": "Brackwater Flood Underwriters\nAgency flood desk\nResidential flood quote\n\nComplete each section. Sections save to the agency file as you go.\n\nNamed insured\n\nComplete\n\nEdit named insured\nProperty and map\n\nNot started\n\nEdit property and map\nBuilding details\n\nNot started\n\nEdit building details\nCoverage and billing\n\nNot started\n\nEdit coverage and billing\n\nReview declarations\n\nProperty and map\nProperty street address\nNFIP community\nFlood zone\nSelect zone\nZone A\nZone AE\nZone AO\nZone VE\nZone X\nZone D\nSave section Cancel" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/bfu-s04.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/bfu-s04.json new file mode 100644 index 0000000000..f9c692ad08 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/bfu-s04.json @@ -0,0 +1,198 @@ +{ + "case_id": "bfu-s04", + "screen_id": "bfu_property", + "url": "http://127.0.0.1:51459/flood/hub", + "bound": [ + { + "binding_id": "bfu_insured_name", + "dossier_key": "insured_name", + "intake": "Imogen Strand", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_insured_phone", + "dossier_key": "insured_phone", + "intake": "919-555-0109", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_property_street", + "dossier_key": "property_street", + "intake": "52 Ferry Slip Road", + "observed": { + "label": "Property street address", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_community_name", + "dossier_key": "community_name", + "intake": "Ashby Landing", + "observed": { + "label": "NFIP community", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_flood_zone_certificate", + "dossier_key": "flood_zone_certificate", + "intake": "AO", + "observed": { + "label": "Flood zone", + "group_label": "", + "value": "Select zone", + "checked": null, + "options": [ + { + "value": "", + "label": "Select zone" + }, + { + "value": "A", + "label": "Zone A" + }, + { + "value": "AE", + "label": "Zone AE" + }, + { + "value": "AO", + "label": "Zone AO" + }, + { + "value": "VE", + "label": "Zone VE" + }, + { + "value": "X", + "label": "Zone X" + }, + { + "value": "D", + "label": "Zone D" + } + ], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_building_type", + "dossier_key": "building_type", + "intake": "Single-family dwelling", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_foundation", + "dossier_key": "foundation", + "intake": "Basement", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_year_built", + "dossier_key": "year_built", + "intake": 1962, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_square_feet", + "dossier_key": "square_feet", + "intake": 1540, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_building_coverage", + "dossier_key": "building_coverage", + "intake": 200000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_contents_coverage", + "dossier_key": "contents_coverage", + "intake": 50000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_deductible", + "dossier_key": "deductible", + "intake": 1250, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_prior_claims", + "dossier_key": "prior_claims", + "intake": 0, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_effective_date", + "dossier_key": "effective_date", + "intake": "2027-01-10", + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Edit named insured", + "value": "", + "selector": "#card-insured > button", + "options": [] + }, + { + "label": "Edit property and map", + "value": "", + "selector": "#card-property > button", + "options": [] + }, + { + "label": "Edit building details", + "value": "", + "selector": "#card-building > button", + "options": [] + }, + { + "label": "Edit coverage and billing", + "value": "", + "selector": "#card-coverage > button", + "options": [] + }, + { + "label": "Save section", + "value": "", + "selector": "#dlg-property > form > button:nth-of-type(1)", + "options": [] + }, + { + "label": "Cancel", + "value": "", + "selector": "#dlg-property > form > button:nth-of-type(2)", + "options": [] + } + ], + "banners": [], + "page_text": "Brackwater Flood Underwriters\nAgency flood desk\nResidential flood quote\n\nComplete each section. Sections save to the agency file as you go.\n\nNamed insured\n\nComplete\n\nEdit named insured\nProperty and map\n\nNot started\n\nEdit property and map\nBuilding details\n\nNot started\n\nEdit building details\nCoverage and billing\n\nNot started\n\nEdit coverage and billing\n\nReview declarations\n\nProperty and map\nProperty street address\nNFIP community\nFlood zone\nSelect zone\nZone A\nZone AE\nZone AO\nZone VE\nZone X\nZone D\nSave section Cancel" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/bfu-s05.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/bfu-s05.json new file mode 100644 index 0000000000..1af4c0b54e --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/bfu-s05.json @@ -0,0 +1,167 @@ +{ + "case_id": "bfu-s05", + "screen_id": "bfu_property", + "url": "http://127.0.0.1:51459/flood/hub", + "bound": [ + { + "binding_id": "bfu_insured_name", + "dossier_key": "insured_name", + "intake": "Ravi Castellanos", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_insured_phone", + "dossier_key": "insured_phone", + "intake": "727-555-0174", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_property_street", + "dossier_key": "property_street", + "intake": "1190 Heron Bend", + "observed": { + "label": "Property street address", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_community_name", + "dossier_key": "community_name", + "intake": "Dunmere", + "observed": { + "label": "NFIP community", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_flood_zone_certificate", + "dossier_key": "flood_zone_certificate", + "intake": "AE", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_building_type", + "dossier_key": "building_type", + "intake": "Two-to-four family dwelling", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_foundation", + "dossier_key": "foundation", + "intake": "Slab on grade", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_year_built", + "dossier_key": "year_built", + "intake": 1985, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_square_feet", + "dossier_key": "square_feet", + "intake": 2860, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_building_coverage", + "dossier_key": "building_coverage", + "intake": 250000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_contents_coverage", + "dossier_key": "contents_coverage", + "intake": 80000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_deductible", + "dossier_key": "deductible", + "intake": 2000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_prior_claims", + "dossier_key": "prior_claims", + "intake": 0, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_effective_date", + "dossier_key": "effective_date", + "intake": "2027-02-15", + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Edit named insured", + "value": "", + "selector": "#card-insured > button", + "options": [] + }, + { + "label": "Edit property and map", + "value": "", + "selector": "#card-property > button", + "options": [] + }, + { + "label": "Edit building details", + "value": "", + "selector": "#card-building > button", + "options": [] + }, + { + "label": "Edit coverage and billing", + "value": "", + "selector": "#card-coverage > button", + "options": [] + }, + { + "label": "Change", + "value": "", + "selector": "#zone-change", + "options": [] + }, + { + "label": "Save section", + "value": "", + "selector": "#dlg-property > form > button:nth-of-type(1)", + "options": [] + }, + { + "label": "Cancel", + "value": "", + "selector": "#dlg-property > form > button:nth-of-type(2)", + "options": [] + } + ], + "banners": [], + "page_text": "Brackwater Flood Underwriters\nAgency flood desk\nResidential flood quote\n\nComplete each section. Sections save to the agency file as you go.\n\nNamed insured\n\nComplete\n\nEdit named insured\nProperty and map\n\nNot started\n\nEdit property and map\nBuilding details\n\nNot started\n\nEdit building details\nCoverage and billing\n\nNot started\n\nEdit coverage and billing\n\nReview declarations\n\nProperty and map\nProperty street address\nNFIP community\nMap lookup result: Zone X Change\nSave section Cancel" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/bfu-s06.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/bfu-s06.json new file mode 100644 index 0000000000..e223412f8a --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/bfu-s06.json @@ -0,0 +1,198 @@ +{ + "case_id": "bfu-s06", + "screen_id": "bfu_property", + "url": "http://127.0.0.1:51459/flood/hub", + "bound": [ + { + "binding_id": "bfu_insured_name", + "dossier_key": "insured_name", + "intake": "Annika Thorvald", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_insured_phone", + "dossier_key": "insured_phone", + "intake": "207-555-0151", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_property_street", + "dossier_key": "property_street", + "intake": "4 Mill Race Way", + "observed": { + "label": "Property street address", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_community_name", + "dossier_key": "community_name", + "intake": "Cauldwell", + "observed": { + "label": "NFIP community", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_flood_zone_certificate", + "dossier_key": "flood_zone_certificate", + "intake": "X", + "observed": { + "label": "Flood zone", + "group_label": "", + "value": "Select zone", + "checked": null, + "options": [ + { + "value": "", + "label": "Select zone" + }, + { + "value": "A", + "label": "Zone A" + }, + { + "value": "AE", + "label": "Zone AE" + }, + { + "value": "AO", + "label": "Zone AO" + }, + { + "value": "VE", + "label": "Zone VE" + }, + { + "value": "X", + "label": "Zone X" + }, + { + "value": "D", + "label": "Zone D" + } + ], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_building_type", + "dossier_key": "building_type", + "intake": "Manufactured home", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_foundation", + "dossier_key": "foundation", + "intake": "Crawlspace", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_year_built", + "dossier_key": "year_built", + "intake": 2001, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_square_feet", + "dossier_key": "square_feet", + "intake": 1120, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_building_coverage", + "dossier_key": "building_coverage", + "intake": 120000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_contents_coverage", + "dossier_key": "contents_coverage", + "intake": 30000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_deductible", + "dossier_key": "deductible", + "intake": 1250, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_prior_claims", + "dossier_key": "prior_claims", + "intake": 0, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_effective_date", + "dossier_key": "effective_date", + "intake": "2027-01-05", + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Edit named insured", + "value": "", + "selector": "#card-insured > button", + "options": [] + }, + { + "label": "Edit property and map", + "value": "", + "selector": "#card-property > button", + "options": [] + }, + { + "label": "Edit building details", + "value": "", + "selector": "#card-building > button", + "options": [] + }, + { + "label": "Edit coverage and billing", + "value": "", + "selector": "#card-coverage > button", + "options": [] + }, + { + "label": "Save section", + "value": "", + "selector": "#dlg-property > form > button:nth-of-type(1)", + "options": [] + }, + { + "label": "Cancel", + "value": "", + "selector": "#dlg-property > form > button:nth-of-type(2)", + "options": [] + } + ], + "banners": [], + "page_text": "Brackwater Flood Underwriters\nAgency flood desk\nResidential flood quote\n\nComplete each section. Sections save to the agency file as you go.\n\nNamed insured\n\nComplete\n\nEdit named insured\nProperty and map\n\nNot started\n\nEdit property and map\nBuilding details\n\nNot started\n\nEdit building details\nCoverage and billing\n\nNot started\n\nEdit coverage and billing\n\nReview declarations\n\nProperty and map\nProperty street address\nNFIP community\nFlood zone\nSelect zone\nZone A\nZone AE\nZone AO\nZone VE\nZone X\nZone D\nSave section Cancel" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/bfu-s07.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/bfu-s07.json new file mode 100644 index 0000000000..fe2c5634ef --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/bfu-s07.json @@ -0,0 +1,198 @@ +{ + "case_id": "bfu-s07", + "screen_id": "bfu_property", + "url": "http://127.0.0.1:51459/flood/hub", + "bound": [ + { + "binding_id": "bfu_insured_name", + "dossier_key": "insured_name", + "intake": "Bertrand Okafor", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_insured_phone", + "dossier_key": "insured_phone", + "intake": "985-555-0126", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_property_street", + "dossier_key": "property_street", + "intake": "260 Levee View Drive", + "observed": { + "label": "Property street address", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_community_name", + "dossier_key": "community_name", + "intake": "Greywick", + "observed": { + "label": "NFIP community", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_flood_zone_certificate", + "dossier_key": "flood_zone_certificate", + "intake": "AE", + "observed": { + "label": "Flood zone", + "group_label": "", + "value": "Select zone", + "checked": null, + "options": [ + { + "value": "", + "label": "Select zone" + }, + { + "value": "A", + "label": "Zone A" + }, + { + "value": "AE", + "label": "Zone AE" + }, + { + "value": "AO", + "label": "Zone AO" + }, + { + "value": "VE", + "label": "Zone VE" + }, + { + "value": "X", + "label": "Zone X" + }, + { + "value": "D", + "label": "Zone D" + } + ], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_building_type", + "dossier_key": "building_type", + "intake": "Single-family dwelling", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_foundation", + "dossier_key": "foundation", + "intake": "Elevated on piers or posts", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_year_built", + "dossier_key": "year_built", + "intake": 2019, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_square_feet", + "dossier_key": "square_feet", + "intake": 2250, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_building_coverage", + "dossier_key": "building_coverage", + "intake": null, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_contents_coverage", + "dossier_key": "contents_coverage", + "intake": 100000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_deductible", + "dossier_key": "deductible", + "intake": 10000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_prior_claims", + "dossier_key": "prior_claims", + "intake": 0, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_effective_date", + "dossier_key": "effective_date", + "intake": "2027-04-01", + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Edit named insured", + "value": "", + "selector": "#card-insured > button", + "options": [] + }, + { + "label": "Edit property and map", + "value": "", + "selector": "#card-property > button", + "options": [] + }, + { + "label": "Edit building details", + "value": "", + "selector": "#card-building > button", + "options": [] + }, + { + "label": "Edit coverage and billing", + "value": "", + "selector": "#card-coverage > button", + "options": [] + }, + { + "label": "Save section", + "value": "", + "selector": "#dlg-property > form > button:nth-of-type(1)", + "options": [] + }, + { + "label": "Cancel", + "value": "", + "selector": "#dlg-property > form > button:nth-of-type(2)", + "options": [] + } + ], + "banners": [], + "page_text": "Brackwater Flood Underwriters\nAgency flood desk\nResidential flood quote\n\nComplete each section. Sections save to the agency file as you go.\n\nNamed insured\n\nComplete\n\nEdit named insured\nProperty and map\n\nNot started\n\nEdit property and map\nBuilding details\n\nNot started\n\nEdit building details\nCoverage and billing\n\nNot started\n\nEdit coverage and billing\n\nReview declarations\n\nProperty and map\nProperty street address\nNFIP community\nFlood zone\nSelect zone\nZone A\nZone AE\nZone AO\nZone VE\nZone X\nZone D\nSave section Cancel" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/bfu-s08.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/bfu-s08.json new file mode 100644 index 0000000000..e17675565a --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/bfu-s08.json @@ -0,0 +1,198 @@ +{ + "case_id": "bfu-s08", + "screen_id": "bfu_property", + "url": "http://127.0.0.1:51459/flood/hub", + "bound": [ + { + "binding_id": "bfu_insured_name", + "dossier_key": "insured_name", + "intake": "Celestine Marrow", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_insured_phone", + "dossier_key": "insured_phone", + "intake": "337-555-0193", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_property_street", + "dossier_key": "property_street", + "intake": "19 Bayou Ash Street", + "observed": { + "label": "Property street address", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_community_name", + "dossier_key": "community_name", + "intake": "Fallowmouth", + "observed": { + "label": "NFIP community", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_flood_zone_certificate", + "dossier_key": "flood_zone_certificate", + "intake": "A", + "observed": { + "label": "Flood zone", + "group_label": "", + "value": "Select zone", + "checked": null, + "options": [ + { + "value": "", + "label": "Select zone" + }, + { + "value": "A", + "label": "Zone A" + }, + { + "value": "AE", + "label": "Zone AE" + }, + { + "value": "AO", + "label": "Zone AO" + }, + { + "value": "VE", + "label": "Zone VE" + }, + { + "value": "X", + "label": "Zone X" + }, + { + "value": "D", + "label": "Zone D" + } + ], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_building_type", + "dossier_key": "building_type", + "intake": "Single-family dwelling", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_foundation", + "dossier_key": "foundation", + "intake": "Slab on grade", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_year_built", + "dossier_key": "year_built", + "intake": 1999, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_square_feet", + "dossier_key": "square_feet", + "intake": 1760, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_building_coverage", + "dossier_key": "building_coverage", + "intake": 225000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_contents_coverage", + "dossier_key": "contents_coverage", + "intake": 70000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_deductible", + "dossier_key": "deductible", + "intake": 5000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_prior_claims", + "dossier_key": "prior_claims", + "intake": 2, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_effective_date", + "dossier_key": "effective_date", + "intake": "2027-02-20", + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Edit named insured", + "value": "", + "selector": "#card-insured > button", + "options": [] + }, + { + "label": "Edit property and map", + "value": "", + "selector": "#card-property > button", + "options": [] + }, + { + "label": "Edit building details", + "value": "", + "selector": "#card-building > button", + "options": [] + }, + { + "label": "Edit coverage and billing", + "value": "", + "selector": "#card-coverage > button", + "options": [] + }, + { + "label": "Save section", + "value": "", + "selector": "#dlg-property > form > button:nth-of-type(1)", + "options": [] + }, + { + "label": "Cancel", + "value": "", + "selector": "#dlg-property > form > button:nth-of-type(2)", + "options": [] + } + ], + "banners": [], + "page_text": "Brackwater Flood Underwriters\nAgency flood desk\nResidential flood quote\n\nComplete each section. Sections save to the agency file as you go.\n\nNamed insured\n\nComplete\n\nEdit named insured\nProperty and map\n\nNot started\n\nEdit property and map\nBuilding details\n\nNot started\n\nEdit building details\nCoverage and billing\n\nNot started\n\nEdit coverage and billing\n\nReview declarations\n\nProperty and map\nProperty street address\nNFIP community\nFlood zone\nSelect zone\nZone A\nZone AE\nZone AO\nZone VE\nZone X\nZone D\nSave section Cancel" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/bfu-s09.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/bfu-s09.json new file mode 100644 index 0000000000..596ba55d81 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/bfu-s09.json @@ -0,0 +1,198 @@ +{ + "case_id": "bfu-s09", + "screen_id": "bfu_property", + "url": "http://127.0.0.1:51459/flood/hub", + "bound": [ + { + "binding_id": "bfu_insured_name", + "dossier_key": "insured_name", + "intake": "Wendell Ashgrove", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_insured_phone", + "dossier_key": "insured_phone", + "intake": "302-555-0140", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_property_street", + "dossier_key": "property_street", + "intake": "77 Saltbox Row", + "observed": { + "label": "Property street address", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_community_name", + "dossier_key": "community_name", + "intake": "Eskerton", + "observed": { + "label": "NFIP community", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_flood_zone_certificate", + "dossier_key": "flood_zone_certificate", + "intake": "D", + "observed": { + "label": "Flood zone", + "group_label": "", + "value": "Select zone", + "checked": null, + "options": [ + { + "value": "", + "label": "Select zone" + }, + { + "value": "A", + "label": "Zone A" + }, + { + "value": "AE", + "label": "Zone AE" + }, + { + "value": "AO", + "label": "Zone AO" + }, + { + "value": "VE", + "label": "Zone VE" + }, + { + "value": "X", + "label": "Zone X" + }, + { + "value": "D", + "label": "Zone D" + } + ], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_building_type", + "dossier_key": "building_type", + "intake": "Two-to-four family dwelling", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_foundation", + "dossier_key": "foundation", + "intake": "Basement", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_year_built", + "dossier_key": "year_built", + "intake": 1931, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_square_feet", + "dossier_key": "square_feet", + "intake": 3020, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_building_coverage", + "dossier_key": "building_coverage", + "intake": 250000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_contents_coverage", + "dossier_key": "contents_coverage", + "intake": 0, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_deductible", + "dossier_key": "deductible", + "intake": 10000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_prior_claims", + "dossier_key": "prior_claims", + "intake": 0, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_effective_date", + "dossier_key": "effective_date", + "intake": "2027-03-15", + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Edit named insured", + "value": "", + "selector": "#card-insured > button", + "options": [] + }, + { + "label": "Edit property and map", + "value": "", + "selector": "#card-property > button", + "options": [] + }, + { + "label": "Edit building details", + "value": "", + "selector": "#card-building > button", + "options": [] + }, + { + "label": "Edit coverage and billing", + "value": "", + "selector": "#card-coverage > button", + "options": [] + }, + { + "label": "Save section", + "value": "", + "selector": "#dlg-property > form > button:nth-of-type(1)", + "options": [] + }, + { + "label": "Cancel", + "value": "", + "selector": "#dlg-property > form > button:nth-of-type(2)", + "options": [] + } + ], + "banners": [], + "page_text": "Brackwater Flood Underwriters\nAgency flood desk\nResidential flood quote\n\nComplete each section. Sections save to the agency file as you go.\n\nNamed insured\n\nComplete\n\nEdit named insured\nProperty and map\n\nNot started\n\nEdit property and map\nBuilding details\n\nNot started\n\nEdit building details\nCoverage and billing\n\nNot started\n\nEdit coverage and billing\n\nReview declarations\n\nProperty and map\nProperty street address\nNFIP community\nFlood zone\nSelect zone\nZone A\nZone AE\nZone AO\nZone VE\nZone X\nZone D\nSave section Cancel" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/bfu-s10.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/bfu-s10.json new file mode 100644 index 0000000000..86acfe7585 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/bfu-s10.json @@ -0,0 +1,198 @@ +{ + "case_id": "bfu-s10", + "screen_id": "bfu_property", + "url": "http://127.0.0.1:51459/flood/hub", + "bound": [ + { + "binding_id": "bfu_insured_name", + "dossier_key": "insured_name", + "intake": "Priya Lindqvist", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_insured_phone", + "dossier_key": "insured_phone", + "intake": "228-555-0185", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_property_street", + "dossier_key": "property_street", + "intake": "3 Gull Point Lane", + "observed": { + "label": "Property street address", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_community_name", + "dossier_key": "community_name", + "intake": "Brindle Cove", + "observed": { + "label": "NFIP community", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_flood_zone_certificate", + "dossier_key": "flood_zone_certificate", + "intake": "VE", + "observed": { + "label": "Flood zone", + "group_label": "", + "value": "Select zone", + "checked": null, + "options": [ + { + "value": "", + "label": "Select zone" + }, + { + "value": "A", + "label": "Zone A" + }, + { + "value": "AE", + "label": "Zone AE" + }, + { + "value": "AO", + "label": "Zone AO" + }, + { + "value": "VE", + "label": "Zone VE" + }, + { + "value": "X", + "label": "Zone X" + }, + { + "value": "D", + "label": "Zone D" + } + ], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "bfu_building_type", + "dossier_key": "building_type", + "intake": "Single-family dwelling", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_foundation", + "dossier_key": "foundation", + "intake": "Elevated on piers or posts", + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_year_built", + "dossier_key": "year_built", + "intake": 2011, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_square_feet", + "dossier_key": "square_feet", + "intake": 1980, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_building_coverage", + "dossier_key": "building_coverage", + "intake": 275000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_contents_coverage", + "dossier_key": "contents_coverage", + "intake": 90000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_deductible", + "dossier_key": "deductible", + "intake": 5000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_prior_claims", + "dossier_key": "prior_claims", + "intake": 0, + "observed": null, + "match_error": "" + }, + { + "binding_id": "bfu_effective_date", + "dossier_key": "effective_date", + "intake": "2027-03-20", + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Edit named insured", + "value": "", + "selector": "#card-insured > button", + "options": [] + }, + { + "label": "Edit property and map", + "value": "", + "selector": "#card-property > button", + "options": [] + }, + { + "label": "Edit building details", + "value": "", + "selector": "#card-building > button", + "options": [] + }, + { + "label": "Edit coverage and billing", + "value": "", + "selector": "#card-coverage > button", + "options": [] + }, + { + "label": "Save section", + "value": "", + "selector": "#dlg-property > form > button:nth-of-type(1)", + "options": [] + }, + { + "label": "Cancel", + "value": "", + "selector": "#dlg-property > form > button:nth-of-type(2)", + "options": [] + } + ], + "banners": [], + "page_text": "Brackwater Flood Underwriters\nAgency flood desk\nResidential flood quote\n\nComplete each section. Sections save to the agency file as you go.\n\nNamed insured\n\nComplete\n\nEdit named insured\nProperty and map\n\nNot started\n\nEdit property and map\nBuilding details\n\nNot started\n\nEdit building details\nCoverage and billing\n\nNot started\n\nEdit coverage and billing\n\nReview declarations\n\nProperty and map\nProperty street address\nNFIP community\nFlood zone\nSelect zone\nZone A\nZone AE\nZone AO\nZone VE\nZone X\nZone D\nSave section Cancel" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/hbm-s01.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/hbm-s01.json new file mode 100644 index 0000000000..81cbba2fc6 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/hbm-s01.json @@ -0,0 +1,122 @@ +{ + "case_id": "hbm-s01", + "screen_id": "hbm_summary", + "url": "http://127.0.0.1:51783/bop/summary", + "bound": [ + { + "binding_id": "hbm_legal_name", + "dossier_key": "legal_name", + "intake": "Ember & Oat Coffee LLC", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_dba_name", + "dossier_key": "dba_name", + "intake": "Ember & Oat", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_entity_type", + "dossier_key": "entity_type", + "intake": "Limited liability company", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_fein", + "dossier_key": "fein", + "intake": "84-2093357", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_year_established", + "dossier_key": "year_established", + "intake": 2019, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_location_street", + "dossier_key": "location_street", + "intake": "903 Commerce Street", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_employees", + "dossier_key": "employees", + "intake": 11, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_annual_revenue", + "dossier_key": "annual_revenue", + "intake": 720000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_building_owned", + "dossier_key": "building_owned", + "intake": false, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_building_limit", + "dossier_key": "building_limit", + "intake": 0, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_bpp_limit", + "dossier_key": "bpp_limit", + "intake": 95000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_liability_limit", + "dossier_key": "liability_limit", + "intake": "$1,000,000 / $2,000,000", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_deductible", + "dossier_key": "deductible", + "intake": 1000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_effective_date", + "dossier_key": "effective_date", + "intake": "2027-01-15", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_hnoa", + "dossier_key": "hnoa_not_in_intake", + "intake": null, + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Submit application", + "value": "", + "selector": "body > div:nth-of-type(2) > form > button", + "options": [] + } + ], + "banners": [], + "page_text": "HOLLOWFEN BUSINESS MUTUAL\nBOP Rating Worksheet v4.2\nRating summary\nLegal name\tEmber & Oat Coffee LLC\nDoing business as (DBA)\tEmber & Oat\nEntity type\tLimited liability company\nFEIN\t84-2093357\nYear established\t2019\nLocation street address\t903 Commerce Street\nClass code\t09311 Coffee shop - no alcohol\nNumber of employees\t11\nAnnual gross sales\t$720,000\nOwns building\tNo\nBuilding limit\t$0\nBusiness personal property limit\t$95,000\nLiability limits\t$1,000,000 / $2,000,000\nProperty deductible\t$1,000\nEffective date\t2027-01-15\nIndicated annual premium\t$662\n\nReturn to worksheet\n\nSubmit application" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/hbm-s02.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/hbm-s02.json new file mode 100644 index 0000000000..0e8f094fc4 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/hbm-s02.json @@ -0,0 +1,396 @@ +{ + "case_id": "hbm-s02", + "screen_id": "hbm_location", + "url": "http://127.0.0.1:51783/bop/worksheet", + "bound": [ + { + "binding_id": "hbm_legal_name", + "dossier_key": "legal_name", + "intake": "Ines Carvalho-Brandt", + "observed": { + "label": "Legal name", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Legal name", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_dba_name", + "dossier_key": "dba_name", + "intake": "Rise Street Bakehouse", + "observed": { + "label": "Doing business as (DBA)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Doing business as (DBA)", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_entity_type", + "dossier_key": "entity_type", + "intake": "Sole proprietorship", + "observed": { + "label": "Entity type", + "group_label": "", + "value": "", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "Limited liability company", + "label": "Limited liability company" + }, + { + "value": "Corporation", + "label": "Corporation" + }, + { + "value": "Sole proprietorship", + "label": "Sole proprietorship" + }, + { + "value": "General partnership", + "label": "General partnership" + } + ], + "row_cells": [ + "Entity type", + "-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_fein", + "dossier_key": "fein", + "intake": "88-1174520", + "observed": { + "label": "FEIN", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "FEIN", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_year_established", + "dossier_key": "year_established", + "intake": 2021, + "observed": { + "label": "Year established", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Year established", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_location_street", + "dossier_key": "location_street", + "intake": "18 Rise Street", + "observed": { + "label": "Location street address", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Location street address", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_employees", + "dossier_key": "employees", + "intake": 6, + "observed": { + "label": "Number of employees", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Number of employees", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_annual_revenue", + "dossier_key": "annual_revenue", + "intake": 410000, + "observed": { + "label": "Annual gross sales ($)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Annual gross sales ($)", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_building_owned", + "dossier_key": "building_owned", + "intake": false, + "observed": { + "label": "Does the insured own the building?", + "group_label": "", + "value": "", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "Yes", + "label": "Yes" + }, + { + "value": "No", + "label": "No" + } + ], + "row_cells": [ + "Does the insured own the building?", + "-- select --YesNo" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_building_limit", + "dossier_key": "building_limit", + "intake": 0, + "observed": { + "label": "Building limit ($)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Building limit ($)", + "enter 0 if not owned" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_bpp_limit", + "dossier_key": "bpp_limit", + "intake": 130700, + "observed": { + "label": "Business personal property limit ($)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Business personal property limit ($)", + "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_liability_limit", + "dossier_key": "liability_limit", + "intake": "$500,000 / $1,000,000", + "observed": { + "label": "Liability limits", + "group_label": "", + "value": "", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "$300,000 / $600,000", + "label": "$300,000 / $600,000" + }, + { + "value": "$500,000 / $1,000,000", + "label": "$500,000 / $1,000,000" + }, + { + "value": "$1,000,000 / $2,000,000", + "label": "$1,000,000 / $2,000,000" + } + ], + "row_cells": [ + "Liability limits", + "-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_deductible", + "dossier_key": "deductible", + "intake": 1000, + "observed": { + "label": "Property deductible", + "group_label": "", + "value": "1000", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "500", + "label": "$500" + }, + { + "value": "1000", + "label": "$1,000" + }, + { + "value": "2500", + "label": "$2,500" + }, + { + "value": "5000", + "label": "$5,000" + } + ], + "row_cells": [ + "Property deductible", + "-- select --$500$1,000$2,500$5,000" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_effective_date", + "dossier_key": "effective_date", + "intake": "2027-02-01", + "observed": { + "label": "Effective date", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Effective date", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_hnoa", + "dossier_key": "hnoa_not_in_intake", + "intake": null, + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "State entity number", + "value": "", + "selector": "#en", + "options": [] + }, + { + "label": "Look up entity", + "value": "", + "selector": "#applicant > tbody > tr:nth-of-type(2) > td > button", + "options": [] + }, + { + "label": "Save applicant", + "value": "", + "selector": "#applicant > tbody > tr:nth-of-type(8) > td > button", + "options": [] + }, + { + "label": "Class code", + "value": "", + "selector": "#class-code", + "options": [] + }, + { + "label": "Find class...", + "value": "", + "selector": "#find-class", + "options": [] + }, + { + "label": "Save location", + "value": "", + "selector": "#location > tbody > tr:nth-of-type(8) > td > button", + "options": [] + }, + { + "label": "Open BPP worksheet", + "value": "", + "selector": "#bpp-open", + "options": [] + }, + { + "label": "Save coverage", + "value": "", + "selector": "#coverage > tbody > tr:nth-of-type(6) > td > button", + "options": [] + }, + { + "label": "Rate this risk", + "value": "", + "selector": "#rate", + "options": [] + } + ], + "banners": [], + "page_text": "HOLLOWFEN BUSINESS MUTUAL\nBOP Rating Worksheet v4.2\n1. Applicant\nState entity number\t Look up entity\nLegal name\t\nDoing business as (DBA)\t\nEntity type\t\n-- select --\nLimited liability company\nCorporation\nSole proprietorship\nGeneral partnership\n\nFEIN\t\nYear established\t\nSave applicant\n2. Location and operations\nLocation street address\t\nClass code\t Find class...\nNumber of employees\t\nAnnual gross sales ($)\t\nDoes the insured own the building?\t\n-- select --\nYes\nNo\n\nBuilding limit ($)\t enter 0 if not owned\nSave location\n3. Coverages\nBusiness personal property limit ($)\t Open BPP worksheet\nLiability limits\t\n-- select --\n$300,000 / $600,000\n$500,000 / $1,000,000\n$1,000,000 / $2,000,000\n occurrence / aggregate\nProperty deductible\t\n-- select --\n$500\n$1,000\n$2,500\n$5,000\n\nEffective date\t\nSave coverage\nRate this risk" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/hbm-s03.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/hbm-s03.json new file mode 100644 index 0000000000..6b5c6e4cf0 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/hbm-s03.json @@ -0,0 +1,122 @@ +{ + "case_id": "hbm-s03", + "screen_id": "hbm_summary", + "url": "http://127.0.0.1:51783/bop/summary", + "bound": [ + { + "binding_id": "hbm_legal_name", + "dossier_key": "legal_name", + "intake": "Copperline Book Arts LLC", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_dba_name", + "dossier_key": "dba_name", + "intake": "Copperline Bindery", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_entity_type", + "dossier_key": "entity_type", + "intake": "Limited liability company", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_fein", + "dossier_key": "fein", + "intake": "47-3318265", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_year_established", + "dossier_key": "year_established", + "intake": 2013, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_location_street", + "dossier_key": "location_street", + "intake": "212 Tannery Row, Unit B", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_employees", + "dossier_key": "employees", + "intake": 4, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_annual_revenue", + "dossier_key": "annual_revenue", + "intake": 365000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_building_owned", + "dossier_key": "building_owned", + "intake": false, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_building_limit", + "dossier_key": "building_limit", + "intake": 0, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_bpp_limit", + "dossier_key": "bpp_limit", + "intake": 140000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_liability_limit", + "dossier_key": "liability_limit", + "intake": "$1,000,000 / $2,000,000", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_deductible", + "dossier_key": "deductible", + "intake": 1000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_effective_date", + "dossier_key": "effective_date", + "intake": "2027-01-01", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_hnoa", + "dossier_key": "hnoa_not_in_intake", + "intake": null, + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Submit application", + "value": "", + "selector": "body > div:nth-of-type(2) > form > button", + "options": [] + } + ], + "banners": [], + "page_text": "HOLLOWFEN BUSINESS MUTUAL\nBOP Rating Worksheet v4.2\nRating summary\nLegal name\tCopperline Book Arts LLC\nDoing business as (DBA)\tCopperline Bindery\nEntity type\tLimited liability company\nFEIN\t47-3318265\nYear established\t2013\nLocation street address\t212 Tannery Row, Unit B\nClass code\t21730 Bookbinding\nNumber of employees\t4\nAnnual gross sales\t$365,000\nOwns building\tNo\nBuilding limit\t$0\nBusiness personal property limit\t$140,000\nLiability limits\t$1,000,000 / $2,000,000\nProperty deductible\t$1,000\nEffective date\t2027-01-01\nIndicated annual premium\t$730\n\nReturn to worksheet\n\nSubmit application" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/hbm-s04.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/hbm-s04.json new file mode 100644 index 0000000000..faf1e85053 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/hbm-s04.json @@ -0,0 +1,420 @@ +{ + "case_id": "hbm-s04", + "screen_id": "hbm_location", + "url": "http://127.0.0.1:51783/bop/worksheet", + "bound": [ + { + "binding_id": "hbm_legal_name", + "dossier_key": "legal_name", + "intake": "Hearthstone Loaf Company", + "observed": { + "label": "Legal name", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Legal name", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_dba_name", + "dossier_key": "dba_name", + "intake": "Hearthstone Loaf", + "observed": { + "label": "Doing business as (DBA)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Doing business as (DBA)", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_entity_type", + "dossier_key": "entity_type", + "intake": "Corporation", + "observed": { + "label": "Entity type", + "group_label": "", + "value": "", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "Limited liability company", + "label": "Limited liability company" + }, + { + "value": "Corporation", + "label": "Corporation" + }, + { + "value": "Sole proprietorship", + "label": "Sole proprietorship" + }, + { + "value": "General partnership", + "label": "General partnership" + } + ], + "row_cells": [ + "Entity type", + "-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_fein", + "dossier_key": "fein", + "intake": "27-6650183", + "observed": { + "label": "FEIN", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "FEIN", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_year_established", + "dossier_key": "year_established", + "intake": 2009, + "observed": { + "label": "Year established", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Year established", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_location_street", + "dossier_key": "location_street", + "intake": "4400 Granary Road", + "observed": { + "label": "Location street address", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Location street address", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_employees", + "dossier_key": "employees", + "intake": 14, + "observed": { + "label": "Number of employees", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Number of employees", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_annual_revenue", + "dossier_key": "annual_revenue", + "intake": 1650000, + "observed": { + "label": "Annual gross sales ($)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Annual gross sales ($)", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_building_owned", + "dossier_key": "building_owned", + "intake": true, + "observed": { + "label": "Does the insured own the building?", + "group_label": "", + "value": "", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "Yes", + "label": "Yes" + }, + { + "value": "No", + "label": "No" + } + ], + "row_cells": [ + "Does the insured own the building?", + "-- select --YesNo" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_building_limit", + "dossier_key": "building_limit", + "intake": 820000, + "observed": { + "label": "Building limit ($)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Building limit ($)", + "enter 0 if not owned" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_bpp_limit", + "dossier_key": "bpp_limit", + "intake": 260000, + "observed": { + "label": "Business personal property limit ($)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Business personal property limit ($)", + "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_liability_limit", + "dossier_key": "liability_limit", + "intake": "$1,000,000 / $2,000,000", + "observed": { + "label": "Liability limits", + "group_label": "", + "value": "", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "$300,000 / $600,000", + "label": "$300,000 / $600,000" + }, + { + "value": "$500,000 / $1,000,000", + "label": "$500,000 / $1,000,000" + }, + { + "value": "$1,000,000 / $2,000,000", + "label": "$1,000,000 / $2,000,000" + } + ], + "row_cells": [ + "Liability limits", + "-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_deductible", + "dossier_key": "deductible", + "intake": 2500, + "observed": { + "label": "Property deductible", + "group_label": "", + "value": "1000", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "500", + "label": "$500" + }, + { + "value": "1000", + "label": "$1,000" + }, + { + "value": "2500", + "label": "$2,500" + }, + { + "value": "5000", + "label": "$5,000" + } + ], + "row_cells": [ + "Property deductible", + "-- select --$500$1,000$2,500$5,000" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_effective_date", + "dossier_key": "effective_date", + "intake": "2027-03-01", + "observed": { + "label": "Effective date", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Effective date", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_hnoa", + "dossier_key": "hnoa_not_in_intake", + "intake": null, + "observed": { + "label": "Hired and non-owned auto liability", + "group_label": "", + "value": "", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "Exclude", + "label": "Exclude" + }, + { + "value": "Include - $1,000,000", + "label": "Include - $1,000,000" + } + ], + "row_cells": [ + "Hired and non-owned auto liability", + "-- select --ExcludeInclude - $1,000,000" + ], + "error_text": "" + }, + "match_error": "" + } + ], + "unbound": [ + { + "label": "State entity number", + "value": "", + "selector": "#en", + "options": [] + }, + { + "label": "Look up entity", + "value": "", + "selector": "#applicant > tbody > tr:nth-of-type(2) > td > button", + "options": [] + }, + { + "label": "Save applicant", + "value": "", + "selector": "#applicant > tbody > tr:nth-of-type(8) > td > button", + "options": [] + }, + { + "label": "Class code", + "value": "", + "selector": "#class-code", + "options": [] + }, + { + "label": "Find class...", + "value": "", + "selector": "#find-class", + "options": [] + }, + { + "label": "Save location", + "value": "", + "selector": "#location > tbody > tr:nth-of-type(8) > td > button", + "options": [] + }, + { + "label": "Open BPP worksheet", + "value": "", + "selector": "#bpp-open", + "options": [] + }, + { + "label": "Save coverage", + "value": "", + "selector": "#coverage > tbody > tr:nth-of-type(7) > td > button", + "options": [] + }, + { + "label": "Rate this risk", + "value": "", + "selector": "#rate", + "options": [] + } + ], + "banners": [], + "page_text": "HOLLOWFEN BUSINESS MUTUAL\nBOP Rating Worksheet v4.2\n1. Applicant\nState entity number\t Look up entity\nLegal name\t\nDoing business as (DBA)\t\nEntity type\t\n-- select --\nLimited liability company\nCorporation\nSole proprietorship\nGeneral partnership\n\nFEIN\t\nYear established\t\nSave applicant\n2. Location and operations\nLocation street address\t\nClass code\t Find class...\nNumber of employees\t\nAnnual gross sales ($)\t\nDoes the insured own the building?\t\n-- select --\nYes\nNo\n\nBuilding limit ($)\t enter 0 if not owned\nSave location\n3. Coverages\nBusiness personal property limit ($)\t Open BPP worksheet\nLiability limits\t\n-- select --\n$300,000 / $600,000\n$500,000 / $1,000,000\n$1,000,000 / $2,000,000\n occurrence / aggregate\nProperty deductible\t\n-- select --\n$500\n$1,000\n$2,500\n$5,000\n\nEffective date\t\nHired and non-owned auto liability\t\n-- select --\nExclude\nInclude - $1,000,000\n\nSave coverage\nRate this risk" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/hbm-s05.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/hbm-s05.json new file mode 100644 index 0000000000..f9edefe91b --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/hbm-s05.json @@ -0,0 +1,122 @@ +{ + "case_id": "hbm-s05", + "screen_id": "hbm_summary", + "url": "http://127.0.0.1:51783/bop/summary", + "bound": [ + { + "binding_id": "hbm_legal_name", + "dossier_key": "legal_name", + "intake": "Ravel & Weft Partners", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_dba_name", + "dossier_key": "dba_name", + "intake": "Ravel & Weft", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_entity_type", + "dossier_key": "entity_type", + "intake": "General partnership", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_fein", + "dossier_key": "fein", + "intake": "46-9083721", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_year_established", + "dossier_key": "year_established", + "intake": 2015, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_location_street", + "dossier_key": "location_street", + "intake": "77 Spindle Court", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_employees", + "dossier_key": "employees", + "intake": 5, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_annual_revenue", + "dossier_key": "annual_revenue", + "intake": 455000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_building_owned", + "dossier_key": "building_owned", + "intake": false, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_building_limit", + "dossier_key": "building_limit", + "intake": 0, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_bpp_limit", + "dossier_key": "bpp_limit", + "intake": 180000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_liability_limit", + "dossier_key": "liability_limit", + "intake": "$1,000,000 / $2,000,000", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_deductible", + "dossier_key": "deductible", + "intake": 500, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_effective_date", + "dossier_key": "effective_date", + "intake": "2027-01-20", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_hnoa", + "dossier_key": "hnoa_not_in_intake", + "intake": null, + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Submit application", + "value": "", + "selector": "body > div:nth-of-type(2) > form > button", + "options": [] + } + ], + "banners": [], + "page_text": "HOLLOWFEN BUSINESS MUTUAL\nBOP Rating Worksheet v4.2\nRating summary\nLegal name\tRavel & Weft Partners\nDoing business as (DBA)\tRavel & Weft\nEntity type\tGeneral partnership\nFEIN\t46-9083721\nYear established\t2015\nLocation street address\t77 Spindle Court\nClass code\t15540 Yarn and fabric store\nNumber of employees\t5\nAnnual gross sales\t$455,000\nOwns building\tNo\nBuilding limit\t$0\nBusiness personal property limit\t$180,000\nLiability limits\t$1,000,000 / $2,000,000\nProperty deductible\t$500\nEffective date\t2027-01-20\nIndicated annual premium\t$830\n\nReturn to worksheet\n\nSubmit application" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/hbm-s06.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/hbm-s06.json new file mode 100644 index 0000000000..eb0cfe2d6e --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/hbm-s06.json @@ -0,0 +1,122 @@ +{ + "case_id": "hbm-s06", + "screen_id": "hbm_summary", + "url": "http://127.0.0.1:51783/bop/summary", + "bound": [ + { + "binding_id": "hbm_legal_name", + "dossier_key": "legal_name", + "intake": "Pressmark Print Works LLC", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_dba_name", + "dossier_key": "dba_name", + "intake": "Pressmark", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_entity_type", + "dossier_key": "entity_type", + "intake": "Limited liability company", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_fein", + "dossier_key": "fein", + "intake": "45-7712608", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_year_established", + "dossier_key": "year_established", + "intake": 2012, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_location_street", + "dossier_key": "location_street", + "intake": "1201 Foundry Street", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_employees", + "dossier_key": "employees", + "intake": 8, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_annual_revenue", + "dossier_key": "annual_revenue", + "intake": 980000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_building_owned", + "dossier_key": "building_owned", + "intake": true, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_building_limit", + "dossier_key": "building_limit", + "intake": 540000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_bpp_limit", + "dossier_key": "bpp_limit", + "intake": 420000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_liability_limit", + "dossier_key": "liability_limit", + "intake": "$1,000,000 / $2,000,000", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_deductible", + "dossier_key": "deductible", + "intake": 2500, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_effective_date", + "dossier_key": "effective_date", + "intake": "2027-02-15", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_hnoa", + "dossier_key": "hnoa_not_in_intake", + "intake": null, + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Submit application", + "value": "", + "selector": "body > div:nth-of-type(2) > form > button", + "options": [] + } + ], + "banners": [], + "page_text": "HOLLOWFEN BUSINESS MUTUAL\nBOP Rating Worksheet v4.2\nRating summary\nLegal name\tPressmark Print Works LLC\nDoing business as (DBA)\tPressmark\nEntity type\tLimited liability company\nFEIN\t45-7712608\nYear established\t2012\nLocation street address\t1201 Foundry Street\nClass code\t17705 Printing - quick print\nNumber of employees\t8\nAnnual gross sales\t$980,000\nOwns building\tYes\nBuilding limit\t$540,000\nBusiness personal property limit\t$420,000\nLiability limits\t$1,000,000 / $2,000,000\nProperty deductible\t$500\nEffective date\t2027-02-15\nIndicated annual premium\t$2,231\n\nReturn to worksheet\n\nSubmit application" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/hbm-s07.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/hbm-s07.json new file mode 100644 index 0000000000..29b7a9a989 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/hbm-s07.json @@ -0,0 +1,420 @@ +{ + "case_id": "hbm-s07", + "screen_id": "hbm_location", + "url": "http://127.0.0.1:51783/bop/worksheet", + "bound": [ + { + "binding_id": "hbm_legal_name", + "dossier_key": "legal_name", + "intake": "Wildmeadow Stems LLC", + "observed": { + "label": "Legal name", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Legal name", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_dba_name", + "dossier_key": "dba_name", + "intake": "Wildmeadow Florals", + "observed": { + "label": "Doing business as (DBA)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Doing business as (DBA)", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_entity_type", + "dossier_key": "entity_type", + "intake": "Limited liability company", + "observed": { + "label": "Entity type", + "group_label": "", + "value": "", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "Limited liability company", + "label": "Limited liability company" + }, + { + "value": "Corporation", + "label": "Corporation" + }, + { + "value": "Sole proprietorship", + "label": "Sole proprietorship" + }, + { + "value": "General partnership", + "label": "General partnership" + } + ], + "row_cells": [ + "Entity type", + "-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_fein", + "dossier_key": "fein", + "intake": "83-3305169", + "observed": { + "label": "FEIN", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "FEIN", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_year_established", + "dossier_key": "year_established", + "intake": 2018, + "observed": { + "label": "Year established", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Year established", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_location_street", + "dossier_key": "location_street", + "intake": "340 Garden Market Way", + "observed": { + "label": "Location street address", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Location street address", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_employees", + "dossier_key": "employees", + "intake": 7, + "observed": { + "label": "Number of employees", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Number of employees", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_annual_revenue", + "dossier_key": "annual_revenue", + "intake": 520000, + "observed": { + "label": "Annual gross sales ($)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Annual gross sales ($)", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_building_owned", + "dossier_key": "building_owned", + "intake": false, + "observed": { + "label": "Does the insured own the building?", + "group_label": "", + "value": "", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "Yes", + "label": "Yes" + }, + { + "value": "No", + "label": "No" + } + ], + "row_cells": [ + "Does the insured own the building?", + "-- select --YesNo" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_building_limit", + "dossier_key": "building_limit", + "intake": 0, + "observed": { + "label": "Building limit ($)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Building limit ($)", + "enter 0 if not owned" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_bpp_limit", + "dossier_key": "bpp_limit", + "intake": 75000, + "observed": { + "label": "Business personal property limit ($)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Business personal property limit ($)", + "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_liability_limit", + "dossier_key": "liability_limit", + "intake": "$500,000 / $1,000,000", + "observed": { + "label": "Liability limits", + "group_label": "", + "value": "", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "$300,000 / $600,000", + "label": "$300,000 / $600,000" + }, + { + "value": "$500,000 / $1,000,000", + "label": "$500,000 / $1,000,000" + }, + { + "value": "$1,000,000 / $2,000,000", + "label": "$1,000,000 / $2,000,000" + } + ], + "row_cells": [ + "Liability limits", + "-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_deductible", + "dossier_key": "deductible", + "intake": 1000, + "observed": { + "label": "Property deductible", + "group_label": "", + "value": "1000", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "500", + "label": "$500" + }, + { + "value": "1000", + "label": "$1,000" + }, + { + "value": "2500", + "label": "$2,500" + }, + { + "value": "5000", + "label": "$5,000" + } + ], + "row_cells": [ + "Property deductible", + "-- select --$500$1,000$2,500$5,000" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_effective_date", + "dossier_key": "effective_date", + "intake": "2027-02-10", + "observed": { + "label": "Effective date", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Effective date", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_hnoa", + "dossier_key": "hnoa_not_in_intake", + "intake": null, + "observed": { + "label": "Hired and non-owned auto liability", + "group_label": "", + "value": "", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "Exclude", + "label": "Exclude" + }, + { + "value": "Include - $1,000,000", + "label": "Include - $1,000,000" + } + ], + "row_cells": [ + "Hired and non-owned auto liability", + "-- select --ExcludeInclude - $1,000,000" + ], + "error_text": "" + }, + "match_error": "" + } + ], + "unbound": [ + { + "label": "State entity number", + "value": "", + "selector": "#en", + "options": [] + }, + { + "label": "Look up entity", + "value": "", + "selector": "#applicant > tbody > tr:nth-of-type(2) > td > button", + "options": [] + }, + { + "label": "Save applicant", + "value": "", + "selector": "#applicant > tbody > tr:nth-of-type(8) > td > button", + "options": [] + }, + { + "label": "Class code", + "value": "", + "selector": "#class-code", + "options": [] + }, + { + "label": "Find class...", + "value": "", + "selector": "#find-class", + "options": [] + }, + { + "label": "Save location", + "value": "", + "selector": "#location > tbody > tr:nth-of-type(8) > td > button", + "options": [] + }, + { + "label": "Open BPP worksheet", + "value": "", + "selector": "#bpp-open", + "options": [] + }, + { + "label": "Save coverage", + "value": "", + "selector": "#coverage > tbody > tr:nth-of-type(7) > td > button", + "options": [] + }, + { + "label": "Rate this risk", + "value": "", + "selector": "#rate", + "options": [] + } + ], + "banners": [], + "page_text": "HOLLOWFEN BUSINESS MUTUAL\nBOP Rating Worksheet v4.2\n1. Applicant\nState entity number\t Look up entity\nLegal name\t\nDoing business as (DBA)\t\nEntity type\t\n-- select --\nLimited liability company\nCorporation\nSole proprietorship\nGeneral partnership\n\nFEIN\t\nYear established\t\nSave applicant\n2. Location and operations\nLocation street address\t\nClass code\t Find class...\nNumber of employees\t\nAnnual gross sales ($)\t\nDoes the insured own the building?\t\n-- select --\nYes\nNo\n\nBuilding limit ($)\t enter 0 if not owned\nSave location\n3. Coverages\nBusiness personal property limit ($)\t Open BPP worksheet\nLiability limits\t\n-- select --\n$300,000 / $600,000\n$500,000 / $1,000,000\n$1,000,000 / $2,000,000\n occurrence / aggregate\nProperty deductible\t\n-- select --\n$500\n$1,000\n$2,500\n$5,000\n\nEffective date\t\nHired and non-owned auto liability\t\n-- select --\nExclude\nInclude - $1,000,000\n\nSave coverage\nRate this risk" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/hbm-s08.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/hbm-s08.json new file mode 100644 index 0000000000..cf9e0b36ba --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/hbm-s08.json @@ -0,0 +1,122 @@ +{ + "case_id": "hbm-s08", + "screen_id": "hbm_summary", + "url": "http://127.0.0.1:51783/bop/summary", + "bound": [ + { + "binding_id": "hbm_legal_name", + "dossier_key": "legal_name", + "intake": "Spokewright Cycles Inc.", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_dba_name", + "dossier_key": "dba_name", + "intake": "Spokewright", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_entity_type", + "dossier_key": "entity_type", + "intake": "Corporation", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_fein", + "dossier_key": "fein", + "intake": "36-5520914", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_year_established", + "dossier_key": "year_established", + "intake": 2004, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_location_street", + "dossier_key": "location_street", + "intake": "1409 Linden Avenue", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_employees", + "dossier_key": "employees", + "intake": 9, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_annual_revenue", + "dossier_key": "annual_revenue", + "intake": 1280000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_building_owned", + "dossier_key": "building_owned", + "intake": true, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_building_limit", + "dossier_key": "building_limit", + "intake": 640000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_bpp_limit", + "dossier_key": "bpp_limit", + "intake": 310000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_liability_limit", + "dossier_key": "liability_limit", + "intake": "$1,000,000 / $2,000,000", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_deductible", + "dossier_key": "deductible", + "intake": 2500, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_effective_date", + "dossier_key": "effective_date", + "intake": "2027-02-01", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_hnoa", + "dossier_key": "hnoa_not_in_intake", + "intake": null, + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Submit application", + "value": "", + "selector": "body > div:nth-of-type(2) > form > button", + "options": [] + } + ], + "banners": [], + "page_text": "HOLLOWFEN BUSINESS MUTUAL\nBOP Rating Worksheet v4.2\nRating summary\nLegal name\tSpokewright Cycles Inc.\nDoing business as (DBA)\tSpokewright\nEntity type\tCorporation\nFEIN\t36-5520914\nYear established\t2004\nLocation street address\t1409 Linden Avenue\nClass code\t12650 Bicycle shop - sales and repair\nNumber of employees\t9\nAnnual gross sales\t$1,280,000\nOwns building\tYes\nBuilding limit\t$640,000\nBusiness personal property limit\t$310,000\nLiability limits\t$1,000,000 / $2,000,000\nProperty deductible\t$2,500\nEffective date\t2027-02-01\nIndicated annual premium\t$2,175\n\nReturn to worksheet\n\nSubmit application" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/hbm-s09.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/hbm-s09.json new file mode 100644 index 0000000000..8eb0fc25e5 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/hbm-s09.json @@ -0,0 +1,122 @@ +{ + "case_id": "hbm-s09", + "screen_id": "hbm_summary", + "url": "http://127.0.0.1:51783/bop/summary", + "bound": [ + { + "binding_id": "hbm_legal_name", + "dossier_key": "legal_name", + "intake": "Brightwater Garment Care Inc.", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_dba_name", + "dossier_key": "dba_name", + "intake": "Brightwater Cleaners", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_entity_type", + "dossier_key": "entity_type", + "intake": "Corporation", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_fein", + "dossier_key": "fein", + "intake": "31-4408827", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_year_established", + "dossier_key": "year_established", + "intake": 2001, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_location_street", + "dossier_key": "location_street", + "intake": "2250 Harbor Boulevard", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_employees", + "dossier_key": "employees", + "intake": 4, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_annual_revenue", + "dossier_key": "annual_revenue", + "intake": 610000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_building_owned", + "dossier_key": "building_owned", + "intake": true, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_building_limit", + "dossier_key": "building_limit", + "intake": 450000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_bpp_limit", + "dossier_key": "bpp_limit", + "intake": 1214600, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_liability_limit", + "dossier_key": "liability_limit", + "intake": "$300,000 / $600,000", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_deductible", + "dossier_key": "deductible", + "intake": 5000, + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_effective_date", + "dossier_key": "effective_date", + "intake": "2027-03-10", + "observed": null, + "match_error": "" + }, + { + "binding_id": "hbm_hnoa", + "dossier_key": "hnoa_not_in_intake", + "intake": null, + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Submit application", + "value": "", + "selector": "body > div:nth-of-type(2) > form > button", + "options": [] + } + ], + "banners": [], + "page_text": "HOLLOWFEN BUSINESS MUTUAL\nBOP Rating Worksheet v4.2\nRating summary\nLegal name\tBrightwater Garment Care Inc.\nDoing business as (DBA)\tBrightwater Cleaners\nEntity type\tCorporation\nFEIN\t31-4408827\nYear established\t2001\nLocation street address\t2250 Harbor Boulevard\nClass code\t18810 Dry cleaner - drop-off only\nNumber of employees\t4\nAnnual gross sales\t$610,000\nOwns building\tYes\nBuilding limit\t$450,000\nBusiness personal property limit\t$1,214,600\nLiability limits\t$300,000 / $600,000\nProperty deductible\t$5,000\nEffective date\t2027-03-10\nIndicated annual premium\t$3,789\n\nReturn to worksheet\n\nSubmit application" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/hbm-s10.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/hbm-s10.json new file mode 100644 index 0000000000..85968504b3 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/hbm-s10.json @@ -0,0 +1,420 @@ +{ + "case_id": "hbm-s10", + "screen_id": "hbm_location", + "url": "http://127.0.0.1:51783/bop/worksheet", + "bound": [ + { + "binding_id": "hbm_legal_name", + "dossier_key": "legal_name", + "intake": "Tallis Hardware & Supply Co.", + "observed": { + "label": "Legal name", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Legal name", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_dba_name", + "dossier_key": "dba_name", + "intake": "Tallis Hardware", + "observed": { + "label": "Doing business as (DBA)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Doing business as (DBA)", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_entity_type", + "dossier_key": "entity_type", + "intake": "Corporation", + "observed": { + "label": "Entity type", + "group_label": "", + "value": "", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "Limited liability company", + "label": "Limited liability company" + }, + { + "value": "Corporation", + "label": "Corporation" + }, + { + "value": "Sole proprietorship", + "label": "Sole proprietorship" + }, + { + "value": "General partnership", + "label": "General partnership" + } + ], + "row_cells": [ + "Entity type", + "-- select --Limited liability companyCorporationSole proprietorshipGeneral partnership" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_fein", + "dossier_key": "fein", + "intake": "13-8806452", + "observed": { + "label": "FEIN", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "FEIN", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_year_established", + "dossier_key": "year_established", + "intake": 1996, + "observed": { + "label": "Year established", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Year established", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_location_street", + "dossier_key": "location_street", + "intake": "15 Anvil Square", + "observed": { + "label": "Location street address", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Location street address", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_employees", + "dossier_key": "employees", + "intake": 12, + "observed": { + "label": "Number of employees", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Number of employees", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_annual_revenue", + "dossier_key": "annual_revenue", + "intake": 2350000, + "observed": { + "label": "Annual gross sales ($)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Annual gross sales ($)", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_building_owned", + "dossier_key": "building_owned", + "intake": true, + "observed": { + "label": "Does the insured own the building?", + "group_label": "", + "value": "", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "Yes", + "label": "Yes" + }, + { + "value": "No", + "label": "No" + } + ], + "row_cells": [ + "Does the insured own the building?", + "-- select --YesNo" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_building_limit", + "dossier_key": "building_limit", + "intake": 1100000, + "observed": { + "label": "Building limit ($)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Building limit ($)", + "enter 0 if not owned" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_bpp_limit", + "dossier_key": "bpp_limit", + "intake": 690000, + "observed": { + "label": "Business personal property limit ($)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Business personal property limit ($)", + "Open BPP worksheet Equipment Inventory Furniture and fixtures Calculated BPP: $0 Copy to limit" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_liability_limit", + "dossier_key": "liability_limit", + "intake": "$1,000,000 / $2,000,000", + "observed": { + "label": "Liability limits", + "group_label": "", + "value": "", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "$300,000 / $600,000", + "label": "$300,000 / $600,000" + }, + { + "value": "$500,000 / $1,000,000", + "label": "$500,000 / $1,000,000" + }, + { + "value": "$1,000,000 / $2,000,000", + "label": "$1,000,000 / $2,000,000" + } + ], + "row_cells": [ + "Liability limits", + "-- select --$300,000 / $600,000$500,000 / $1,000,000$1,000,000 / $2,000,000 occurrence / aggregate" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_deductible", + "dossier_key": "deductible", + "intake": 2500, + "observed": { + "label": "Property deductible", + "group_label": "", + "value": "1000", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "500", + "label": "$500" + }, + { + "value": "1000", + "label": "$1,000" + }, + { + "value": "2500", + "label": "$2,500" + }, + { + "value": "5000", + "label": "$5,000" + } + ], + "row_cells": [ + "Property deductible", + "-- select --$500$1,000$2,500$5,000" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_effective_date", + "dossier_key": "effective_date", + "intake": "2027-04-01", + "observed": { + "label": "Effective date", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [ + "Effective date", + "" + ], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "hbm_hnoa", + "dossier_key": "hnoa_not_in_intake", + "intake": null, + "observed": { + "label": "Hired and non-owned auto liability", + "group_label": "", + "value": "", + "checked": null, + "options": [ + { + "value": "", + "label": "-- select --" + }, + { + "value": "Exclude", + "label": "Exclude" + }, + { + "value": "Include - $1,000,000", + "label": "Include - $1,000,000" + } + ], + "row_cells": [ + "Hired and non-owned auto liability", + "-- select --ExcludeInclude - $1,000,000" + ], + "error_text": "" + }, + "match_error": "" + } + ], + "unbound": [ + { + "label": "State entity number", + "value": "", + "selector": "#en", + "options": [] + }, + { + "label": "Look up entity", + "value": "", + "selector": "#applicant > tbody > tr:nth-of-type(2) > td > button", + "options": [] + }, + { + "label": "Save applicant", + "value": "", + "selector": "#applicant > tbody > tr:nth-of-type(8) > td > button", + "options": [] + }, + { + "label": "Class code", + "value": "", + "selector": "#class-code", + "options": [] + }, + { + "label": "Find class...", + "value": "", + "selector": "#find-class", + "options": [] + }, + { + "label": "Save location", + "value": "", + "selector": "#location > tbody > tr:nth-of-type(8) > td > button", + "options": [] + }, + { + "label": "Open BPP worksheet", + "value": "", + "selector": "#bpp-open", + "options": [] + }, + { + "label": "Save coverage", + "value": "", + "selector": "#coverage > tbody > tr:nth-of-type(7) > td > button", + "options": [] + }, + { + "label": "Rate this risk", + "value": "", + "selector": "#rate", + "options": [] + } + ], + "banners": [], + "page_text": "HOLLOWFEN BUSINESS MUTUAL\nBOP Rating Worksheet v4.2\n1. Applicant\nState entity number\t Look up entity\nLegal name\t\nDoing business as (DBA)\t\nEntity type\t\n-- select --\nLimited liability company\nCorporation\nSole proprietorship\nGeneral partnership\n\nFEIN\t\nYear established\t\nSave applicant\n2. Location and operations\nLocation street address\t\nClass code\t Find class...\nNumber of employees\t\nAnnual gross sales ($)\t\nDoes the insured own the building?\t\n-- select --\nYes\nNo\n\nBuilding limit ($)\t enter 0 if not owned\nSave location\n3. Coverages\nBusiness personal property limit ($)\t Open BPP worksheet\nLiability limits\t\n-- select --\n$300,000 / $600,000\n$500,000 / $1,000,000\n$1,000,000 / $2,000,000\n occurrence / aggregate\nProperty deductible\t\n-- select --\n$500\n$1,000\n$2,500\n$5,000\n\nEffective date\t\nHired and non-owned auto liability\t\n-- select --\nExclude\nInclude - $1,000,000\n\nSave coverage\nRate this risk" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/lta-s01.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/lta-s01.json new file mode 100644 index 0000000000..ab6843728d --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/lta-s01.json @@ -0,0 +1,123 @@ +{ + "case_id": "lta-s01", + "screen_id": "lta_travellers", + "url": "http://127.0.0.1:51621/trip", + "bound": [ + { + "binding_id": "lta_purchaser_name", + "dossier_key": "purchaser_name", + "intake": "Ignatius Belmonte", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_email", + "dossier_key": "purchaser_email", + "intake": "ig.belmonte@example.test", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_phone", + "dossier_key": "purchaser_phone", + "intake": "312-555-0166", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_residence_state", + "dossier_key": "residence_state", + "intake": "Illinois", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_destination_shown", + "dossier_key": "destination_shown", + "intake": "Iceland - Northern Europe", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_departure_date", + "dossier_key": "departure_date", + "intake": "2027-08-09", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_return_date", + "dossier_key": "return_date", + "intake": "2027-08-19", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_name", + "dossier_key": "traveller_1_name", + "intake": null, + "observed": { + "label": "Full name", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_dob", + "dossier_key": "traveller_1_dob", + "intake": null, + "observed": { + "label": "Date of birth", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "lta_trip_cost", + "dossier_key": "trip_cost", + "intake": 7150, + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_plan", + "dossier_key": "plan", + "intake": "Essential", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_cfar", + "dossier_key": "cfar", + "intake": false, + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Add another traveller", + "value": "", + "selector": "#trav-add", + "options": [] + }, + { + "label": "Continue", + "value": "", + "selector": "body > div:nth-of-type(2) > section:nth-of-type(4) > button:nth-of-type(2)", + "options": [] + } + ], + "banners": [], + "page_text": "Larkspan Travel Assurance\n\nWho's travelling?\nTraveller 1\nFull name\nDate of birth\nAdd another traveller\nContinue" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/lta-s02.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/lta-s02.json new file mode 100644 index 0000000000..374d4329eb --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/lta-s02.json @@ -0,0 +1,109 @@ +{ + "case_id": "lta-s02", + "screen_id": "lta_destination", + "url": "http://127.0.0.1:51621/trip", + "bound": [ + { + "binding_id": "lta_purchaser_name", + "dossier_key": "purchaser_name", + "intake": "Nadia Szymanska", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_email", + "dossier_key": "purchaser_email", + "intake": "nadia.sz@example.test", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_phone", + "dossier_key": "purchaser_phone", + "intake": "720-555-0103", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_residence_state", + "dossier_key": "residence_state", + "intake": "Colorado", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_destination_shown", + "dossier_key": "destination_shown", + "intake": "Georgia - Caucasus", + "observed": { + "label": "Destination", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "lta_departure_date", + "dossier_key": "departure_date", + "intake": "2027-09-14", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_return_date", + "dossier_key": "return_date", + "intake": "2027-09-27", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_name", + "dossier_key": "traveller_1_name", + "intake": "Nadia Szymanska", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_dob", + "dossier_key": "traveller_1_dob", + "intake": "1990-04-17", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_trip_cost", + "dossier_key": "trip_cost", + "intake": 2980, + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_plan", + "dossier_key": "plan", + "intake": "Plus", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_cfar", + "dossier_key": "cfar", + "intake": false, + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Continue", + "value": "", + "selector": "body > div:nth-of-type(2) > section:nth-of-type(2) > button", + "options": [] + } + ], + "banners": [], + "page_text": "Larkspan Travel Assurance\n\nWhere are you going?\nDestination\nContinue" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/lta-s03.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/lta-s03.json new file mode 100644 index 0000000000..1e50f4583f --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/lta-s03.json @@ -0,0 +1,179 @@ +{ + "case_id": "lta-s03", + "screen_id": "lta_review", + "url": "http://127.0.0.1:51621/trip", + "bound": [ + { + "binding_id": "lta_purchaser_name", + "dossier_key": "purchaser_name", + "intake": "Cornelius Adeyemi", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_email", + "dossier_key": "purchaser_email", + "intake": "c.adeyemi@example.test", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_phone", + "dossier_key": "purchaser_phone", + "intake": "512-555-0149", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_residence_state", + "dossier_key": "residence_state", + "intake": "Texas", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_destination_shown", + "dossier_key": "destination_shown", + "intake": "Morocco - North Africa", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_departure_date", + "dossier_key": "departure_date", + "intake": "2027-03-08", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_return_date", + "dossier_key": "return_date", + "intake": "2027-03-20", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_name", + "dossier_key": "traveller_1_name", + "intake": "Cornelius Adeyemi", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_dob", + "dossier_key": "traveller_1_dob", + "intake": "1972-11-05", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_trip_cost", + "dossier_key": "trip_cost", + "intake": 4410, + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_plan", + "dossier_key": "plan", + "intake": "Plus", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_cfar", + "dossier_key": "cfar", + "intake": false, + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Edit Name", + "value": "", + "selector": "#rev > div:nth-of-type(1) > button", + "options": [] + }, + { + "label": "Edit Email", + "value": "", + "selector": "#rev > div:nth-of-type(2) > button", + "options": [] + }, + { + "label": "Edit Mobile phone", + "value": "", + "selector": "#rev > div:nth-of-type(3) > button", + "options": [] + }, + { + "label": "Edit State of residence", + "value": "", + "selector": "#rev > div:nth-of-type(4) > button", + "options": [] + }, + { + "label": "Edit Destination", + "value": "", + "selector": "#rev > div:nth-of-type(5) > button", + "options": [] + }, + { + "label": "Edit Departure date", + "value": "", + "selector": "#rev > div:nth-of-type(6) > button", + "options": [] + }, + { + "label": "Edit Return date", + "value": "", + "selector": "#rev > div:nth-of-type(7) > button", + "options": [] + }, + { + "label": "Edit Travellers", + "value": "", + "selector": "#rev > div:nth-of-type(8) > button", + "options": [] + }, + { + "label": "Edit Trip cost", + "value": "", + "selector": "#rev > div:nth-of-type(9) > button", + "options": [] + }, + { + "label": "Edit Plan", + "value": "", + "selector": "#rev > div:nth-of-type(10) > button", + "options": [] + }, + { + "label": "Edit Cancel For Any Reason", + "value": "", + "selector": "#rev > div:nth-of-type(11) > button", + "options": [] + }, + { + "label": "Edit Emergency medical evacuation limit", + "value": "", + "selector": "#rev > div:nth-of-type(12) > button", + "options": [] + }, + { + "label": "I confirm the details above are correct", + "value": "true", + "selector": "#agree", + "options": [] + }, + { + "label": "Get my quote", + "value": "", + "selector": "#buy", + "options": [] + } + ], + "banners": [], + "page_text": "Larkspan Travel Assurance\n\nCheck everything\nName\nCornelius Adeyemi\nEdit\nEmail\nc.adeyemi@example.test\nEdit\nMobile phone\n512-555-0149\nEdit\nState of residence\nTexas\nEdit\nDestination\nMorocco - North Africa\nEdit\nDeparture date\n03/08/2027\nEdit\nReturn date\n03/20/2027\nEdit\nTravellers\nCornelius Adeyemi (11/05/1972)\nEdit\nTrip cost\n$4,410\nEdit\nPlan\nPlus\nEdit\nCancel For Any Reason\nNo\nEdit\nEmergency medical evacuation limit\nEdit\nI confirm the details above are correct\nGet my quote" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/lta-s04.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/lta-s04.json new file mode 100644 index 0000000000..ae8198356e --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/lta-s04.json @@ -0,0 +1,123 @@ +{ + "case_id": "lta-s04", + "screen_id": "lta_travellers", + "url": "http://127.0.0.1:51621/trip", + "bound": [ + { + "binding_id": "lta_purchaser_name", + "dossier_key": "purchaser_name", + "intake": "Leocadia Furness", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_email", + "dossier_key": "purchaser_email", + "intake": "leo.furness@example.test", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_phone", + "dossier_key": "purchaser_phone", + "intake": "802-555-0177", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_residence_state", + "dossier_key": "residence_state", + "intake": "Vermont", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_destination_shown", + "dossier_key": "destination_shown", + "intake": "Peru - South America", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_departure_date", + "dossier_key": "departure_date", + "intake": "2027-07-01", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_return_date", + "dossier_key": "return_date", + "intake": "2027-07-16", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_name", + "dossier_key": "traveller_1_name", + "intake": null, + "observed": { + "label": "Full name", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_dob", + "dossier_key": "traveller_1_dob", + "intake": null, + "observed": { + "label": "Date of birth", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "lta_trip_cost", + "dossier_key": "trip_cost", + "intake": 6380, + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_plan", + "dossier_key": "plan", + "intake": "Plus", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_cfar", + "dossier_key": "cfar", + "intake": true, + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Add another traveller", + "value": "", + "selector": "#trav-add", + "options": [] + }, + { + "label": "Continue", + "value": "", + "selector": "body > div:nth-of-type(2) > section:nth-of-type(4) > button:nth-of-type(2)", + "options": [] + } + ], + "banners": [], + "page_text": "Larkspan Travel Assurance\n\nWho's travelling?\nTraveller 1\nFull name\nDate of birth\nAdd another traveller\nContinue" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/lta-s05.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/lta-s05.json new file mode 100644 index 0000000000..70eee7ad4e --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/lta-s05.json @@ -0,0 +1,107 @@ +{ + "case_id": "lta-s05", + "screen_id": null, + "url": "http://127.0.0.1:51621/trip", + "bound": [ + { + "binding_id": "lta_purchaser_name", + "dossier_key": "purchaser_name", + "intake": "Henrietta Moss-Achebe", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_email", + "dossier_key": "purchaser_email", + "intake": "h.mossachebe@example.test", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_phone", + "dossier_key": "purchaser_phone", + "intake": "612-555-0158", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_residence_state", + "dossier_key": "residence_state", + "intake": "Minnesota", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_destination_shown", + "dossier_key": "destination_shown", + "intake": "Norway - Northern Europe", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_departure_date", + "dossier_key": "departure_date", + "intake": "2027-06-12", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_return_date", + "dossier_key": "return_date", + "intake": "2027-06-24", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_name", + "dossier_key": "traveller_1_name", + "intake": null, + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_dob", + "dossier_key": "traveller_1_dob", + "intake": null, + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_trip_cost", + "dossier_key": "trip_cost", + "intake": 11840, + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_plan", + "dossier_key": "plan", + "intake": "Premier", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_cfar", + "dossier_key": "cfar", + "intake": true, + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Yes, these are correct", + "value": "", + "selector": "#profile-yes", + "options": [] + }, + { + "label": "Update my details", + "value": "", + "selector": "#profile-edit", + "options": [] + } + ], + "banners": [], + "page_text": "Larkspan Travel Assurance\n\nFirst, about you\n\nWe have these details on file\n\nName\nHenrietta Moss-Achebe\nEmail\nh.mossachebe@example.test\nMobile phone\n612-555-0158\nState of residence\nMinnesota\nYes, these are correct Update my details" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/lta-s06.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/lta-s06.json new file mode 100644 index 0000000000..7429d4b9c4 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/lta-s06.json @@ -0,0 +1,123 @@ +{ + "case_id": "lta-s06", + "screen_id": "lta_travellers", + "url": "http://127.0.0.1:51621/trip", + "bound": [ + { + "binding_id": "lta_purchaser_name", + "dossier_key": "purchaser_name", + "intake": "Thaddeus Kimura", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_email", + "dossier_key": "purchaser_email", + "intake": "t.kimura@example.test", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_phone", + "dossier_key": "purchaser_phone", + "intake": "480-555-0121", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_residence_state", + "dossier_key": "residence_state", + "intake": "Arizona", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_destination_shown", + "dossier_key": "destination_shown", + "intake": "New Zealand - Oceania", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_departure_date", + "dossier_key": "departure_date", + "intake": "2027-11-03", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_return_date", + "dossier_key": "return_date", + "intake": "2027-11-25", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_name", + "dossier_key": "traveller_1_name", + "intake": null, + "observed": { + "label": "Full name", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_dob", + "dossier_key": "traveller_1_dob", + "intake": null, + "observed": { + "label": "Date of birth", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "lta_trip_cost", + "dossier_key": "trip_cost", + "intake": 14200, + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_plan", + "dossier_key": "plan", + "intake": "Premier", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_cfar", + "dossier_key": "cfar", + "intake": false, + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Add another traveller", + "value": "", + "selector": "#trav-add", + "options": [] + }, + { + "label": "Continue", + "value": "", + "selector": "body > div:nth-of-type(2) > section:nth-of-type(4) > button:nth-of-type(2)", + "options": [] + } + ], + "banners": [], + "page_text": "Larkspan Travel Assurance\n\nWho's travelling?\nTraveller 1\nFull name\nDate of birth\nAdd another traveller\nContinue" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/lta-s07.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/lta-s07.json new file mode 100644 index 0000000000..c7463e70bc --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/lta-s07.json @@ -0,0 +1,107 @@ +{ + "case_id": "lta-s07", + "screen_id": null, + "url": "http://127.0.0.1:51621/trip", + "bound": [ + { + "binding_id": "lta_purchaser_name", + "dossier_key": "purchaser_name", + "intake": "Dorian Velasquez-Pratt", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_email", + "dossier_key": "purchaser_email", + "intake": "dorian.vp@example.test", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_phone", + "dossier_key": "purchaser_phone", + "intake": "206-555-0137", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_residence_state", + "dossier_key": "residence_state", + "intake": "Washington", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_destination_shown", + "dossier_key": "destination_shown", + "intake": "Japan - East Asia", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_departure_date", + "dossier_key": "departure_date", + "intake": "2027-04-02", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_return_date", + "dossier_key": "return_date", + "intake": "2027-04-18", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_name", + "dossier_key": "traveller_1_name", + "intake": "Dorian Velasquez-Pratt", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_dob", + "dossier_key": "traveller_1_dob", + "intake": "1988-12-03", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_trip_cost", + "dossier_key": "trip_cost", + "intake": 5260, + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_plan", + "dossier_key": "plan", + "intake": "Plus", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_cfar", + "dossier_key": "cfar", + "intake": false, + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Yes, these are correct", + "value": "", + "selector": "#profile-yes", + "options": [] + }, + { + "label": "Update my details", + "value": "", + "selector": "#profile-edit", + "options": [] + } + ], + "banners": [], + "page_text": "Larkspan Travel Assurance\n\nFirst, about you\n\nWe have these details on file\n\nName\nDorian Velasquez-Pratt\nEmail\ndorian.vp@example.test\nMobile phone\n206-555-0137\nState of residence\nOregon\nYes, these are correct Update my details" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/lta-s08.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/lta-s08.json new file mode 100644 index 0000000000..7accd82255 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/lta-s08.json @@ -0,0 +1,115 @@ +{ + "case_id": "lta-s08", + "screen_id": "lta_cost", + "url": "http://127.0.0.1:51621/trip", + "bound": [ + { + "binding_id": "lta_purchaser_name", + "dossier_key": "purchaser_name", + "intake": "Felicity Oyelaran", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_email", + "dossier_key": "purchaser_email", + "intake": "f.oyelaran@example.test", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_phone", + "dossier_key": "purchaser_phone", + "intake": "207-555-0198", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_residence_state", + "dossier_key": "residence_state", + "intake": "Maine", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_destination_shown", + "dossier_key": "destination_shown", + "intake": "Vietnam - Southeast Asia", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_departure_date", + "dossier_key": "departure_date", + "intake": "2027-02-10", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_return_date", + "dossier_key": "return_date", + "intake": "2027-02-28", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_name", + "dossier_key": "traveller_1_name", + "intake": "Felicity Oyelaran", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_dob", + "dossier_key": "traveller_1_dob", + "intake": "1982-02-25", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_trip_cost", + "dossier_key": "trip_cost", + "intake": null, + "observed": { + "label": "Total prepaid trip cost ($)", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "lta_plan", + "dossier_key": "plan", + "intake": "Plus", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_cfar", + "dossier_key": "cfar", + "intake": false, + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Help me add it up", + "value": "", + "selector": "#calc-open", + "options": [] + }, + { + "label": "Continue", + "value": "", + "selector": "body > div:nth-of-type(2) > section:nth-of-type(5) > button:nth-of-type(2)", + "options": [] + } + ], + "banners": [], + "page_text": "Larkspan Travel Assurance\n\nWhat did the trip cost?\n\nPrepaid, non-refundable costs for everyone on the trip.\n\nTotal prepaid trip cost ($)\n Help me add it up\nContinue" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/lta-s09.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/lta-s09.json new file mode 100644 index 0000000000..0fe97b0952 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/lta-s09.json @@ -0,0 +1,173 @@ +{ + "case_id": "lta-s09", + "screen_id": "lta_review", + "url": "http://127.0.0.1:51621/trip", + "bound": [ + { + "binding_id": "lta_purchaser_name", + "dossier_key": "purchaser_name", + "intake": "Bartholomew Esquivel", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_email", + "dossier_key": "purchaser_email", + "intake": "bart.esq@example.test", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_phone", + "dossier_key": "purchaser_phone", + "intake": "916-555-0114", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_residence_state", + "dossier_key": "residence_state", + "intake": "California", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_destination_shown", + "dossier_key": "destination_shown", + "intake": "Portugal - Southern Europe", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_departure_date", + "dossier_key": "departure_date", + "intake": "2027-10-02", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_return_date", + "dossier_key": "return_date", + "intake": "2027-10-11", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_name", + "dossier_key": "traveller_1_name", + "intake": "Bartholomew Esquivel", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_dob", + "dossier_key": "traveller_1_dob", + "intake": "1997-09-09", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_trip_cost", + "dossier_key": "trip_cost", + "intake": 2240, + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_plan", + "dossier_key": "plan", + "intake": "Essential", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_cfar", + "dossier_key": "cfar", + "intake": false, + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Edit Name", + "value": "", + "selector": "#rev > div:nth-of-type(1) > button", + "options": [] + }, + { + "label": "Edit Email", + "value": "", + "selector": "#rev > div:nth-of-type(2) > button", + "options": [] + }, + { + "label": "Edit Mobile phone", + "value": "", + "selector": "#rev > div:nth-of-type(3) > button", + "options": [] + }, + { + "label": "Edit State of residence", + "value": "", + "selector": "#rev > div:nth-of-type(4) > button", + "options": [] + }, + { + "label": "Edit Destination", + "value": "", + "selector": "#rev > div:nth-of-type(5) > button", + "options": [] + }, + { + "label": "Edit Departure date", + "value": "", + "selector": "#rev > div:nth-of-type(6) > button", + "options": [] + }, + { + "label": "Edit Return date", + "value": "", + "selector": "#rev > div:nth-of-type(7) > button", + "options": [] + }, + { + "label": "Edit Travellers", + "value": "", + "selector": "#rev > div:nth-of-type(8) > button", + "options": [] + }, + { + "label": "Edit Trip cost", + "value": "", + "selector": "#rev > div:nth-of-type(9) > button", + "options": [] + }, + { + "label": "Edit Plan", + "value": "", + "selector": "#rev > div:nth-of-type(10) > button", + "options": [] + }, + { + "label": "Edit Cancel For Any Reason", + "value": "", + "selector": "#rev > div:nth-of-type(11) > button", + "options": [] + }, + { + "label": "I confirm the details above are correct", + "value": "true", + "selector": "#agree", + "options": [] + }, + { + "label": "Get my quote", + "value": "", + "selector": "#buy", + "options": [] + } + ], + "banners": [], + "page_text": "Larkspan Travel Assurance\n\nCheck everything\nName\nBartholomew Esquivel\nEdit\nEmail\nbart.esq@example.test\nEdit\nMobile phone\n916-555-0114\nEdit\nState of residence\nCalifornia\nEdit\nDestination\nPortugal - Southern Europe\nEdit\nDeparture date\n10/02/2027\nEdit\nReturn date\n10/11/2027\nEdit\nTravellers\nBartholomew Esquivel (09/09/1997)\nEdit\nTrip cost\n$2,240\nEdit\nPlan\nEssential\nEdit\nCancel For Any Reason\nNo\nEdit\nI confirm the details above are correct\nGet my quote" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/lta-s10.json b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/lta-s10.json new file mode 100644 index 0000000000..307022a48a --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results/controls_B0/lta-s10.json @@ -0,0 +1,123 @@ +{ + "case_id": "lta-s10", + "screen_id": "lta_travellers", + "url": "http://127.0.0.1:51621/trip", + "bound": [ + { + "binding_id": "lta_purchaser_name", + "dossier_key": "purchaser_name", + "intake": "Sunniva Haraldsen", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_email", + "dossier_key": "purchaser_email", + "intake": "sunniva.h@example.test", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_phone", + "dossier_key": "purchaser_phone", + "intake": "651-555-0172", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_residence_state", + "dossier_key": "residence_state", + "intake": "Minnesota", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_destination_shown", + "dossier_key": "destination_shown", + "intake": "Kenya - East Africa", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_departure_date", + "dossier_key": "departure_date", + "intake": "2027-01-18", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_return_date", + "dossier_key": "return_date", + "intake": "2027-02-01", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_name", + "dossier_key": "traveller_1_name", + "intake": null, + "observed": { + "label": "Full name", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "lta_traveller_1_dob", + "dossier_key": "traveller_1_dob", + "intake": null, + "observed": { + "label": "Date of birth", + "group_label": "", + "value": "", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "lta_trip_cost", + "dossier_key": "trip_cost", + "intake": 16900, + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_plan", + "dossier_key": "plan", + "intake": "Premier", + "observed": null, + "match_error": "" + }, + { + "binding_id": "lta_cfar", + "dossier_key": "cfar", + "intake": false, + "observed": null, + "match_error": "" + } + ], + "unbound": [ + { + "label": "Add another traveller", + "value": "", + "selector": "#trav-add", + "options": [] + }, + { + "label": "Continue", + "value": "", + "selector": "body > div:nth-of-type(2) > section:nth-of-type(4) > button:nth-of-type(2)", + "options": [] + } + ], + "banners": [], + "page_text": "Larkspan Travel Assurance\n\nWho's travelling?\nTraveller 1\nFull name\nDate of birth\nAdd another traveller\nContinue" +} \ No newline at end of file diff --git a/packages/flow/openadapt_flow/form_tx/demo_compiler.py b/packages/flow/openadapt_flow/form_tx/demo_compiler.py new file mode 100644 index 0000000000..fd6b72771b --- /dev/null +++ b/packages/flow/openadapt_flow/form_tx/demo_compiler.py @@ -0,0 +1,347 @@ +"""Pack-authoring report compiled from dev-case demonstrations, at setup time. + +A demonstration is the JSONL a recorder writes while a careful person fills a +form: before each interaction, what ``PlaywrightFormSurface`` sees (controls +with labels, values, options and row cells; page-text pairs; banners). From +one or more demonstrations and their intakes this module derives the pack +data a person would otherwise have to guess: + +- **defaults table**: the value each bound control shows before anyone + touches it. A value is a *proven* portal default only when it is the same + blank value in every demonstration and at least one intake asked for + something else, so it cannot be that client's data. Everything else is + reported, never asserted. +- **row key cells**: for identical buttons in table rows ("Select"), the + intake keys whose value is a cell of exactly one row. +- **option codecs**: a select's option codes and their visible text, as an + ``ENUM_MAP`` codec, so a code entered and a label shown read back the same. +- **unopened launchers**: buttons the demonstrations showed but never + clicked and the pack does not cover, so the author covers or marks them. +- **error routes** (suggest-only): a validation message seen in a banner and + the field whose label it names. + +Only proven defaults, exact row cells and exact option maps are offered as +pack data. Inferred mappings (error routes, a control the demonstration +skipped) are suggestions: the compiler never writes them into a pack, and +they never count toward a verified read-back. + +Zero model calls; no application names. +""" + +from __future__ import annotations + +import json +from pathlib import Path +from typing import Any, Iterable, Literal, Mapping, Optional, Sequence + +from pydantic import BaseModel, ConfigDict, Field + +from openadapt_flow.form_tx.codecs import collapse_whitespace +from openadapt_flow.form_tx.surface import ( + AmbiguousAnchorError, + match_anchor_in_snapshot, +) +from openadapt_flow.form_tx.types import ( + ControlKind, + FieldBindingSpec, + FieldCodecSpec, + FormCodecKind, + FormPack, + FormSnapshot, + ObservedControl, +) + +__all__ = [ + "DefaultFinding", + "DemoReport", + "compile_demo_report", + "load_demo", +] + + +def _norm(text: Any) -> str: + return collapse_whitespace(str(text)).casefold() + + +def load_demo(path: str | Path) -> list[dict[str, Any]]: + """Rows of a recorded demonstration (``FORM_TX_DEMO`` lines or plain JSONL).""" + rows: list[dict[str, Any]] = [] + for line in Path(path).read_text().splitlines(): + line = line.strip() + if not line: + continue + if line.startswith("FORM_TX_DEMO "): + line = line[len("FORM_TX_DEMO ") :] + elif not line.startswith("{"): + continue + row = json.loads(line) + if isinstance(row, dict) and "controls" in row: + rows.append(row) + return rows + + +def _snapshot(row: Mapping[str, Any]) -> FormSnapshot: + controls = [] + for raw in row.get("controls") or (): + data = {k: v for k, v in raw.items() if k in ObservedControl.model_fields} + data.setdefault("control_id", data.get("dom_selector") or "ctrl") + data.setdefault("dom_selector", data["control_id"]) + if "options" in data: + data["options"] = tuple(data["options"]) + if "row_cells" in data: + data["row_cells"] = tuple(data["row_cells"]) + controls.append(ObservedControl.model_validate(data)) + return FormSnapshot( + url_origin_and_path=str(row.get("frame_url") or ""), + controls=tuple(controls), + banner_errors=tuple(row.get("banners") or ()), + ) + + +def _shown(ctrl: ObservedControl) -> str: + if ctrl.input_type.casefold() in ("checkbox",) or ctrl.role == "checkbox": + return "true" if ctrl.checked else "false" + if ctrl.input_type.casefold() == "radio" or ctrl.role == "radio": + return ctrl.current_value if ctrl.checked else "" + return ctrl.current_value + + +class DefaultFinding(BaseModel): + """What one bound control showed before anyone touched it, per demo.""" + + model_config = ConfigDict(extra="forbid", frozen=True) + + binding_id: str + dossier_key: str + blank_values: tuple[str, ...] + intake_values: tuple[str, ...] + status: Literal[ + "proven_default", "unproven_same_as_intake", "differs_between_demos", "blank" + ] + + +class RowKeySuggestion(BaseModel): + model_config = ConfigDict(extra="forbid", frozen=True) + + button_label: str + dossier_keys: tuple[str, ...] + rows_seen: int + + +class DemoReport(BaseModel): + """Everything the compiler found, and what it offers as pack data.""" + + model_config = ConfigDict(extra="forbid", frozen=True) + + demos_used: int + defaults: tuple[DefaultFinding, ...] = () + row_keys: tuple[RowKeySuggestion, ...] = () + option_codecs: dict[str, FieldCodecSpec] = Field(default_factory=dict) + unopened_launchers: tuple[str, ...] = () + suggested_error_routes: tuple[tuple[str, str], ...] = () + unseen_bindings: tuple[str, ...] = () + + def proven_defaults(self) -> dict[str, tuple[str, ...]]: + """binding_id -> values safe to put in ``portal_default_values``.""" + return { + f.binding_id: tuple(sorted(set(f.blank_values))) + for f in self.defaults + if f.status == "proven_default" + } + + +def _first_sightings( + rows: Sequence[Mapping[str, Any]], bindings: Sequence[FieldBindingSpec] +) -> dict[str, ObservedControl]: + """The first time each binding's control is seen in a demonstration.""" + seen: dict[str, ObservedControl] = {} + for row in rows: + snap = _snapshot(row) + for b in bindings: + if b.binding_id in seen: + continue + try: + ctrl = match_anchor_in_snapshot(b.anchor, snap, include_readonly=False) + except AmbiguousAnchorError: + continue + if ctrl is not None: + seen[b.binding_id] = ctrl + return seen + + +def _clicked_text(rows: Sequence[Mapping[str, Any]]) -> str: + return " ".join(_norm(r.get("why") or "") for r in rows) + + +def compile_demo_report( + pack: FormPack, + demos: Sequence[tuple[Sequence[Mapping[str, Any]], Mapping[str, Any]]], +) -> DemoReport: + """Compile a report from ``(demo rows, intake facts)`` pairs.""" + bindings = [ + b + for b in ( + *pack.bindings, + *(b for s in pack.popup_subroutines for b in s.bindings), + ) + if b.control_kind + not in (ControlKind.POPUP_LAUNCHER, ControlKind.READONLY_OUTPUT) + ] + sightings = [_first_sightings(rows, bindings) for rows, _ in demos] + + defaults: list[DefaultFinding] = [] + for b in bindings: + firsts = [s.get(b.binding_id) for s in sightings] + if any(c is None for c in firsts): + continue + blanks = tuple(_shown(c) for c in firsts if c is not None) + intakes = tuple( + "" if facts.get(b.dossier_key) is None else str(facts.get(b.dossier_key)) + for _, facts in demos + ) + if not any(_norm(v) for v in blanks): + status = "blank" + elif len({_norm(v) for v in blanks}) > 1: + status = "differs_between_demos" + elif any(_norm(i) != _norm(blanks[0]) for i in intakes): + status = "proven_default" + else: + status = "unproven_same_as_intake" + defaults.append( + DefaultFinding( + binding_id=b.binding_id, + dossier_key=b.dossier_key, + blank_values=blanks, + intake_values=intakes, + status=status, # type: ignore[arg-type] + ) + ) + + unseen = tuple( + sorted( + b.binding_id + for b in bindings + if any(b.binding_id not in s for s in sightings) + ) + ) + + # Option codecs: exact code -> text maps from the selects themselves. + codecs: dict[str, FieldCodecSpec] = {} + for b in bindings: + if b.control_kind != ControlKind.SELECT: + continue + for s in sightings: + ctrl = s.get(b.binding_id) + if ctrl is None or not ctrl.options: + continue + aliases: dict[str, tuple[str, ...]] = { + o.value: (o.label,) + for o in ctrl.options + if o.value and o.label and _norm(o.value) != _norm(o.label) + } + if aliases: + codecs[b.binding_id] = FieldCodecSpec( + kind=FormCodecKind.ENUM_MAP, enum_aliases=aliases + ) + break + + # Row key cells and unopened launchers, from every row of every demo. + row_keys: dict[str, RowKeySuggestion] = {} + buttons: dict[str, str] = {} + routes: set[tuple[str, str]] = set() + clicked = " ".join(_clicked_text(rows) for rows, _ in demos) + covered_labels = _pack_button_labels(pack) + for rows, facts in demos: + values = { + k: _norm(v) for k, v in facts.items() if v is not None and str(v).strip() + } + for row in rows: + snap = _snapshot(row) + by_label: dict[str, list[ObservedControl]] = {} + for c in snap.controls: + if c.tag == "button" or c.input_type in ("button", "submit"): + label = collapse_whitespace(c.label_text or c.current_value) + if label: + by_label.setdefault(label, []).append(c) + buttons.setdefault(_norm(label), label) + for label, group in by_label.items(): + if len(group) < 2 or not all(c.row_cells for c in group): + continue + keys = tuple( + sorted( + k + for k, v in values.items() + if sum(1 for c in group if v in {_norm(x) for x in c.row_cells}) + == 1 + ) + ) + if keys: + row_keys[label] = RowKeySuggestion( + button_label=label, dossier_keys=keys, rows_seen=len(group) + ) + for banner in snap.banner_errors: + text = _norm(banner) + for c in snap.controls: + label = collapse_whitespace(c.label_text) + if len(label) >= 4 and _norm(label) in text: + routes.add((collapse_whitespace(banner)[:120], label)) + unopened = tuple( + sorted( + label + for key, label in buttons.items() + if key not in clicked and key not in covered_labels + ) + ) + return DemoReport( + demos_used=len(demos), + defaults=tuple(defaults), + row_keys=tuple(row_keys.values()), + option_codecs=codecs, + unopened_launchers=unopened, + suggested_error_routes=tuple(sorted(routes)), + unseen_bindings=unseen, + ) + + +def _pack_button_labels(pack: FormPack) -> set[str]: + """Normalized literal labels of every button the pack already handles.""" + anchors: list[Any] = [] + for s in pack.screens: + anchors += [s.next_button_anchor, s.commit_button_anchor] + for sub in pack.popup_subroutines: + anchors += [sub.trigger_anchor, sub.commit_anchor, *sub.compute_anchors] + anchors += [u.anchor for u in pack.unbound_controls] + out: set[str] = set() + for a in anchors: + if a is None: + continue + for p in a.label_patterns: + out.add(_norm(p.strip("^$").replace("\\", ""))) + return out + + +def _main(argv: Optional[Iterable[str]] = None) -> int: + import argparse + import importlib + + ap = argparse.ArgumentParser(description=__doc__.splitlines()[0]) + ap.add_argument("pack_module", help="module exporting PACK") + ap.add_argument( + "--demo", + nargs=2, + action="append", + metavar=("DEMO_JSONL", "INTAKE_JSON"), + required=True, + ) + args = ap.parse_args(list(argv) if argv is not None else None) + pack = importlib.import_module(args.pack_module).PACK + demos = [] + for demo_path, intake_path in args.demo: + intake = json.loads(Path(intake_path).read_text()) + demos.append((load_demo(demo_path), intake.get("facts", intake))) + print(compile_demo_report(pack, demos).model_dump_json(indent=1)) + return 0 + + +if __name__ == "__main__": + raise SystemExit(_main()) diff --git a/packages/flow/openadapt_flow/form_tx/judge.py b/packages/flow/openadapt_flow/form_tx/judge.py index 241648db94..82d211e9c5 100644 --- a/packages/flow/openadapt_flow/form_tx/judge.py +++ b/packages/flow/openadapt_flow/form_tx/judge.py @@ -1,4 +1,8 @@ -"""Independent post-commit summary/search read-back judge for ``form_tx``. +"""Post-commit summary/search read-back judge for ``form_tx``. + +The judge reads through the surface of the session that did the work +(``acting_session_reread``). It is not an independent check: only a read by a +fresh, separate session would be. Verifies committed portal state against the authoritative expected fact map (grounded ``InputDossier`` facts overlaid with verified human co-pilot @@ -8,13 +12,18 @@ from __future__ import annotations -from typing import Any, Mapping, Optional, Sequence +import re +from typing import Any, Callable, Mapping, Optional, Sequence from urllib.parse import urlsplit +from pydantic import BaseModel, ConfigDict + from openadapt_flow.form_tx.codecs import ( + _MONTH_MAP, CodecValueError, collapse_whitespace, normalize_with_codec, + parse_iso_date_strict, values_equivalent, ) from openadapt_flow.form_tx.surface import ( @@ -45,6 +54,7 @@ ReadbackStatus, SummaryVerdict, WizardScreenSpec, + canonical_sha256, ) __all__ = [ @@ -129,6 +139,11 @@ def _observed_control_matches( ctrl: ObservedControl, binding: FieldBindingSpec, ) -> bool: + # partial-match-as-match: a radio option matches only when it is selected. + if ( + ctrl.input_type.casefold() == "radio" or ctrl.role.casefold() == "radio" + ) and ctrl.checked is not True: + return False if ( binding.control_kind == ControlKind.CHECKBOX and ctrl.checked is not None @@ -168,6 +183,138 @@ def _text_pair_matches( return False +def _pattern_value(pattern: str, text: str) -> Any: + """The one value ``pattern``'s first group finds in ``text``. + + ``None`` when it finds nothing, ``False`` when matches disagree. + """ + try: + found = { + collapse_whitespace(m.group(1)) + for m in re.finditer(pattern, text or "") + if m.groups() and m.group(1) and m.group(1).strip() + } + except re.error: + return False + if not found: + return None + if len(found) > 1: + return False + return found.pop() + + +def _split_date_expected(day: Any, month: Any, year: Any) -> Optional[str]: + """ISO date from day, month (number or name) and year values, or None.""" + try: + d = int(str(day).strip()) + y = int(str(year).strip()) + m_raw = str(month).strip() + m = int(m_raw) if m_raw.isdigit() else _MONTH_MAP.get(m_raw.casefold()) + if m is None: + return None + return parse_iso_date_strict(f"{y:04d}-{m:02d}-{d:02d}") + except (ValueError, CodecValueError): + return None + + +class Subject(BaseModel): + """One control the run wrote, kept or accepted, and the key it holds. + + ``subject_id`` names where it is (popup, selector or entity row), so two + controls that hold the same dossier key are two subjects. + """ + + model_config = ConfigDict(extra="forbid", frozen=True) + + subject_id: str + key: str + label: str = "" + + +def read_subjects( + writes: Sequence[FieldWriteRecord], + resolutions: Sequence[HumanResolutionRecord], +) -> list[Subject]: + """Every written, kept or operator-accepted control, by subject.""" + subjects: dict[str, Subject] = {} + for w in writes: + key = w.dossier_key or w.field_key + sid = ( + f"{w.in_popup_subroutine or 'main'}|{w.screen_id or ''}|" + f"{w.selector or ''}|{w.field_key}" + ) + subjects.setdefault(sid, Subject(subject_id=sid, key=key, label=w.label or "")) + for rec in resolutions: + if ( + rec.halt_kind == FormHaltKind.PREFILL_ENTITY_CONFLICT + and rec.action == HumanDecisionAction.ACCEPT_PORTAL_PREFILL + ): + # One subject per accepted row, not per table. + row = canonical_sha256(rec.resolved_value)[:16] + sid = f"entity|{rec.field_signature}|{row}" + subjects.setdefault( + sid, + Subject(subject_id=sid, key=f"entity:{rec.field_signature}|{row}"), + ) + return list(subjects.values()) + + +def uncovered_subject_verdicts( + subjects: Sequence[Subject], + verdicts: Sequence[ReadbackFieldVerdict], + codec_for: Callable[[str], FormCodecKind], + observations_per_key: Optional[Mapping[str, int]] = None, +) -> list[ReadbackFieldVerdict]: + """absent-evidence-as-success: a subject with no verdict is not_checked. + + One verdict for a key accounts for one subject holding that key. When more + subjects hold the key than there are verdicts for it, the summary cannot + say which control it shows, so the rest are not_checked. Never passed. + """ + # A passed or failed verdict is an observation of the summary; two + # read-backs that resolve to the same shown value are one observation, + # so they account for one subject only. + observed: dict[str, int] = {} + other: dict[str, int] = {} + for v in verdicts: + bucket = ( + observed + if v.status in (ReadbackStatus.PASSED, ReadbackStatus.FAILED) + else other + ) + bucket[v.dossier_key] = bucket.get(v.dossier_key, 0) + 1 + verdicts_per_key: dict[str, int] = dict(other) + for key, n in observed.items(): + distinct = (observations_per_key or {}).get(key, n) + verdicts_per_key[key] = verdicts_per_key.get(key, 0) + min(n, distinct) + by_key: dict[str, list[Subject]] = {} + for subject in subjects: + by_key.setdefault(subject.key, []).append(subject) + out: list[ReadbackFieldVerdict] = [] + for key, group in sorted(by_key.items()): + have = verdicts_per_key.get(key, 0) + for subject in sorted(group, key=lambda s: s.subject_id)[have:]: + out.append( + ReadbackFieldVerdict( + dossier_key=key, + codec_kind=codec_for(key), + passed=False, + status=ReadbackStatus.NOT_CHECKED, + provenance=ProvenanceKind.INTAKE_DOCUMENT, + reason=( + f"No read-back covers {subject.label or subject.subject_id!r}" + + ( + f": {len(group)} controls hold {key!r} and only " + f"{have} read-back verdict(s) exist" + if have + else "" + ) + ), + ) + ) + return out + + def _extract_present_outputs( snapshot: FormSnapshot, output_specs: Sequence[OutputExtractionSpec], @@ -183,6 +330,17 @@ def _extract_present_outputs( except AmbiguousAnchorError: invalid_keys.add(spec.output_key) continue + if ctrl is None and spec.value_pattern: + found = _pattern_value(spec.value_pattern, snapshot.page_text) + if found is False: + invalid_keys.add(spec.output_key) + continue + if found: + try: + extracted[spec.output_key] = normalize_with_codec(found, spec.codec) + except CodecValueError: + invalid_keys.add(spec.output_key) + continue if ctrl is None: # A read-only summary may show the output (a quote number, a # premium) as page text rather than in a control. @@ -211,7 +369,7 @@ def _extract_present_outputs( class SummaryJudge: - """Independent read-back verifier for committed form transactions.""" + """Read-back verifier for committed form transactions (acting session).""" def __init__( self, @@ -235,6 +393,9 @@ def evaluate( known_outputs: Optional[Mapping[str, Any]] = None, supplemental_facts: Optional[Mapping[str, DossierFact]] = None, writes: Sequence[FieldWriteRecord] = (), + uncovered: Optional[Mapping[str, str]] = None, + unentered_intake_keys: Sequence[str] = (), + review_skipped: Optional[Mapping[str, str]] = None, ) -> SummaryVerdict: """Navigate/search if configured, verify all read-backs, and extract outputs.""" active_surface = surface if surface is not None else self._surface @@ -277,16 +438,21 @@ def evaluate( ), *observation_screens, ) + # How the read was produced (reporting only): the page the run + # landed on after commit, or a new navigation or search that fetched + # it from the server again. + read_route = "same_screen" snapshot = active_surface.snapshot(screens=observation_screens) seeded_outputs: dict[str, Any] = dict(known_outputs or {}) pre_outputs, _ = _extract_present_outputs(snapshot, summary_check.outputs) seeded_outputs.update(pre_outputs) - # Navigate to independent summary/search route if configured and not already there. + # Navigate to the summary/search route if configured and not already there. if summary_check.summary_url_path and not _url_matches( snapshot.url_origin_and_path, summary_check.summary_url_path ): active_surface.goto(summary_check.summary_url_path) + read_route = "fresh_navigation" snapshot = active_surface.snapshot(screens=observation_screens) # Execute search-by-key lookup when configured. @@ -327,6 +493,7 @@ def evaluate( input_ctrl.dom_selector, str(lookup_val) ) active_surface.click(submit_ctrl.dom_selector) + read_route = "fresh_navigation" snapshot = active_surface.snapshot(screens=observation_screens) verdicts: list[ReadbackFieldVerdict] = [] @@ -376,6 +543,8 @@ def _failed( declared_keys = { binding.dossier_key for binding in summary_check.field_readbacks } + for sd in summary_check.split_date_readbacks: + declared_keys |= {sd.day_key, sd.month_key, sd.year_key} expected_keys = { binding.dossier_key for binding in active_pack.bindings @@ -520,6 +689,18 @@ def _where(field_writes: Sequence[FieldWriteRecord]) -> str: f"has no expected value to compare", ) ) + elif binding.dossier_key in written_by_key: + # The run wrote this field but there is no value to + # compare: it gets a verdict, never silence. + verdicts.append( + _not_checked( + binding.dossier_key, + prov, + f"{binding.dossier_key!r} was written with no expected " + "value, and the summary shows it empty" + + _where(written_by_key[binding.dossier_key]), + ) + ) continue if observed_ctrl is None and observed_text is not None: @@ -589,6 +770,113 @@ def _where(field_writes: Sequence[FieldWriteRecord]) -> str: ) ) + # A date typed in day, month and year boxes, shown as one value. + for sd in summary_check.split_date_readbacks: + keys = (sd.day_key, sd.month_key, sd.year_key) + facts3 = [expected_facts.get(k) for k in keys] + if all(f is None for f in facts3): + continue + provs = [ + f.provenance if f is not None else ProvenanceKind.INTAKE_DOCUMENT + for f in facts3 + ] + expected_iso = ( + _split_date_expected(*(f.value for f in facts3 if f is not None)) + if all(f is not None for f in facts3) + else None + ) + shown_date: Optional[str] = None + reason = "" + try: + ctrl = match_anchor_in_snapshot( + sd.anchor, snapshot, include_readonly=True + ) + if ctrl is not None: + shown_date = ctrl.current_value + else: + pair = match_text_pair_in_snapshot(sd.anchor, snapshot) + shown_date = pair.value if pair is not None else None + except AmbiguousAnchorError as exc: + reason = f"Date is shown more than once: {exc}" + if expected_iso is None: + for k, prov in zip(keys, provs): + verdicts.append( + _not_checked( + k, prov, "Day, month and year do not form a date to compare" + ) + ) + continue + if shown_date is None or not shown_date.strip(): + for k, prov in zip(keys, provs): + verdicts.append( + _not_checked( + k, prov, reason or "The summary does not show this date" + ) + ) + continue + try: + shown_iso = parse_iso_date_strict(shown_date, date_order=sd.date_order) + except CodecValueError: + shown_iso = None + for k, prov in zip(keys, provs): + if shown_iso == expected_iso: + verdicts.append( + ReadbackFieldVerdict( + dossier_key=k, + codec_kind=FormCodecKind.ISO_DATE, + passed=True, + status=ReadbackStatus.PASSED, + provenance=prov, + reason="Read back as one date with its day, month and year", + ) + ) + elif shown_iso is None: + verdicts.append( + _not_checked( + k, prov, f"Shown date {shown_date!r} could not be read" + ) + ) + else: + verdicts.append( + _failed( + k, + FormCodecKind.ISO_DATE, + prov, + f"Summary shows the date {shown_iso}, not {expected_iso}", + ) + ) + + # Fields no binding covers that held a value this run did not set. + for label, shown in sorted((uncovered or {}).items()): + verdicts.append( + _not_checked( + f"unbound:{label}", + ProvenanceKind.INTAKE_DOCUMENT, + f"No binding covers {label!r}, which held {shown!r} that this " + "run did not set", + ) + ) + + # Review read-backs that were skipped before submit. + for key, why in sorted((review_skipped or {}).items()): + verdicts.append( + _not_checked( + f"review:{key}", + ProvenanceKind.INTAKE_DOCUMENT, + f"The review page check for {key!r} was skipped: {why}", + ) + ) + + # Intake values no binding entered: the record may lack them. + for key in sorted(set(unentered_intake_keys)): + verdicts.append( + _not_checked( + f"intake:{key}", + ProvenanceKind.INTAKE_DOCUMENT, + f"The intake has a value for {key!r}, but no binding enters it", + ) + ) + # A value that came only from a popup is no better checked than the # popup inputs that produced it. If one of those inputs is not # checked, the returned value is not checked either, unless the value @@ -630,6 +918,24 @@ def _where(field_writes: Sequence[FieldWriteRecord]) -> str: f"{unchecked_inputs} are not checked, and was not " "compared with the popup's displayed result", ) + observations: dict[str, set[str]] = {} + for rb in summary_check.field_readbacks: + try: + oc = match_anchor_in_snapshot( + rb.anchor, snapshot, include_readonly=True + ) + except AmbiguousAnchorError: + continue + if oc is not None: + observations.setdefault(rb.dossier_key, set()).add(oc.dom_selector) + verdicts.extend( + uncovered_subject_verdicts( + read_subjects(writes, active_resolutions), + verdicts, + _codec_for, + {k: len(v) for k, v in observations.items()}, + ) + ) screen_problems: list[str] = [] if snapshot.auth_wall_present: @@ -703,6 +1009,7 @@ def _where(field_writes: Sequence[FieldWriteRecord]) -> str: ) return SummaryVerdict( + read_route=read_route, # type: ignore[arg-type] passed=passed, checked_count=sum( 1 for v in verdicts if v.status != ReadbackStatus.NOT_CHECKED diff --git a/packages/flow/openadapt_flow/form_tx/playwright_surface.py b/packages/flow/openadapt_flow/form_tx/playwright_surface.py index ad07e08fde..981432a9ed 100644 --- a/packages/flow/openadapt_flow/form_tx/playwright_surface.py +++ b/packages/flow/openadapt_flow/form_tx/playwright_surface.py @@ -698,7 +698,8 @@ def _strip_url_to_origin_and_path(raw_url: str) -> str: 'input:not([type="hidden"]), select, textarea, [role="combobox"], [role="checkbox"], [role="radio"]' ); if (innerControls.length <= 1) { - for (const sel of (cfg.fieldErrorSelectors || [])) { + // An alert inside the field's own box is that field's error. + for (const sel of [...(cfg.fieldErrorSelectors || []), ...(cfg.errorBannerSelectors || [])]) { for (const errNode of safeQueryAll(container, sel)) { if (errNode === el || isInteractiveElement(errNode)) continue; if (isVisible(errNode)) { @@ -738,6 +739,47 @@ def _strip_url_to_origin_and_path(raw_url: str) -> str: return null; }; + // The text of a control's own row: the nearest table row or list item, + // else the largest ancestor holding no other field (a radio group is one + // field). Table rows also give their cell texts. + const FIELD_SEL = 'input:not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]), select, textarea, [role="combobox"], [role="checkbox"], [role="radio"]'; + const fieldCount = (node) => { + let n = 0; + const groups = new Set(); + for (const x of safeQueryAll(node, FIELD_SEL)) { + const isRadio = (x.tagName === 'INPUT' && (x.getAttribute('type') || '').toLowerCase() === 'radio') || + (x.getAttribute('role') || '').toLowerCase() === 'radio'; + if (isRadio) { + const g = x.getAttribute('name') || + (x.closest('[role="radiogroup"]') ? computeDomSelector(x.closest('[role="radiogroup"]')) : ''); + if (g) { + if (groups.has(g)) continue; + groups.add(g); + } + } + n += 1; + } + return n; + }; + const rowInfoFor = (el) => { + const row = el.closest('tr, [role="row"], li'); + if (row) { + const cells = Array.from(row.children) + .filter((c) => c.tagName === 'TD' || c.tagName === 'TH' || + ['cell', 'gridcell', 'rowheader'].includes((c.getAttribute('role') || '').toLowerCase())) + .map((c) => cleanText(c.textContent)); + return {text: cleanText(row.textContent).slice(0, 500), cells}; + } + let box = el.parentElement; + let best = null; + while (box && box !== document.body && box !== document.documentElement && box.tagName !== 'FORM') { + if (fieldCount(box) > 1) break; + best = box; + box = box.parentElement; + } + return {text: best ? cleanText(best.textContent).slice(0, 500) : '', cells: []}; + }; + // 1. Controls const rawControlNodes = safeQueryAll( document, @@ -758,7 +800,7 @@ def _strip_url_to_origin_and_path(raw_url: str) -> str: const domSelector = computeDomSelector(el); const nameAttr = el.getAttribute('name') || ''; const idAttr = el.id || ''; - const labelText = resolveLabelText(el, tag, inputType, role); + let labelText = resolveLabelText(el, tag, inputType, role); const sectionText = resolveSectionText(el); const isSecret = detectSecret(el, inputType, nameAttr, idAttr); @@ -851,6 +893,15 @@ def _strip_url_to_origin_and_path(raw_url: str) -> str: currentValue = ''; } else if (tag === 'output' || el.hasAttribute('data-readonly-output')) { currentValue = cleanText(el.value !== undefined ? el.value : el.textContent); + // An output with no label of its own that shows "Label: value" + // is read as that label and that value. + if (!labelText) { + const m = /^([^:]{2,80}):\s*(\S.*)$/.exec(currentValue); + if (m) { + labelText = cleanText(m[1]); + currentValue = cleanText(m[2]); + } + } } else { currentValue = String(el.value ?? ''); } @@ -906,6 +957,10 @@ def _strip_url_to_origin_and_path(raw_url: str) -> str: radio_value: radioValue, radio_group: radioGroup, group_label: groupLabel, + ...(() => { + const ri = rowInfoFor(el); + return {row_text: ri.text, row_cells: ri.cells}; + })(), modal_container: (() => { const m = closestOpenModal(el); @@ -1444,6 +1499,7 @@ def __init__( self._scoped_to_page_only = _scoped_to_page_only self._mutation_count = 0 + self._confirmed_mutation_count = 0 self._total_mutation_count = 0 self._all_time_raw_mutations = 0 self._inflight_mutation_ids: set[int] = set() @@ -1469,6 +1525,7 @@ def __init__( self._event_target.on("request", self._on_request) self._event_target.on("requestfinished", self._on_request_done) self._event_target.on("requestfailed", self._on_request_done) + self._event_target.on("response", self._on_response) except Exception: pass @@ -1551,6 +1608,15 @@ def mutation_count(self) -> int: """Count of non-ignored state-changing HTTP requests since construction/reset.""" return self._mutation_count + # This surface sees the page's HTTP traffic, so a count of 0 means + # nothing was sent; on a backend without it, 0 means unknown. + observes_network = True + + @property + def confirmed_mutation_count(self) -> int: + """Non-ignored state-changing requests the server answered with 2xx/3xx.""" + return self._confirmed_mutation_count + @property def total_mutation_count(self) -> int: """Count of all state-changing HTTP requests (including ignored UI PPR paths).""" @@ -1577,6 +1643,7 @@ def _detach(self) -> None: ("request", self._on_request), ("requestfinished", self._on_request_done), ("requestfailed", self._on_request_done), + ("response", self._on_response), ): try: self._event_target.remove_listener(ev_name, cb) @@ -1622,6 +1689,22 @@ def _on_request(self, request: Any) -> None: def _on_request_done(self, request: Any) -> None: self._inflight_mutation_ids.discard(id(request)) + def _on_response(self, response: Any) -> None: + """Count state-changing requests the server answered with success.""" + try: + request = response.request + if self._detached or not self._request_belongs_to_surface(request): + return + method = str(request.method or "").upper() + status = int(response.status) + path = urlsplit(str(request.url or "")).path or "/" + except Exception: + return + if method not in _MUTATION_METHODS or self._is_ignored_mutation_path(path): + return + if 200 <= status < 400: + self._confirmed_mutation_count += 1 + def _is_page_closed(self) -> bool: try: return bool(self._owner_page.is_closed()) @@ -1887,6 +1970,7 @@ def snapshot( context_id = self._document_context_id() raw = self._page.evaluate(_SNAPSHOT_WALKER_JS, walker_cfg) text_pairs = self._read_text_pairs() + page_text = self._read_page_text() if self._document_context_id() != context_id: raise SurfaceContextError("Form document changed while taking a snapshot") self._last_snapshot_context_id = context_id @@ -1929,6 +2013,8 @@ def snapshot( radio_value=str(item.get("radio_value") or ""), radio_group=str(item.get("radio_group") or ""), group_label=str(item.get("group_label") or ""), + row_text=str(item.get("row_text") or ""), + row_cells=tuple(str(c) for c in (item.get("row_cells") or ())), modal_container=str(item.get("modal_container") or ""), ) ) @@ -1976,8 +2062,21 @@ def snapshot( banner_errors=tuple(str(b) for b in (raw.get("banner_errors") or ())), inflight_mutations=self.inflight_mutations, text_pairs=text_pairs, + page_text=page_text, ) + def _read_page_text(self) -> str: + """The page's visible text, capped; empty when it cannot be read.""" + try: + return str( + self._page.evaluate( + "() => (document.body ? document.body.innerText || '' : '').slice(0, 50000)" + ) + or "" + ) + except Exception: + return "" + def _read_text_pairs(self) -> tuple[ObservedTextPair, ...]: """Read label and value pairs shown as page text. diff --git a/packages/flow/openadapt_flow/form_tx/receipt.py b/packages/flow/openadapt_flow/form_tx/receipt.py index 18df12782c..651885df72 100644 --- a/packages/flow/openadapt_flow/form_tx/receipt.py +++ b/packages/flow/openadapt_flow/form_tx/receipt.py @@ -8,6 +8,7 @@ from __future__ import annotations +import hashlib import hmac import os import secrets @@ -25,6 +26,8 @@ ) from openadapt_flow.form_tx.types import ( + FieldWriteRecord, + FormCodecKind, FormPack, FormTxOutcome, FormTxReceiptPayload, @@ -40,8 +43,10 @@ __all__ = [ "ed25519_public_key_hex", "generate_ed25519_keypair", + "form_tx_receipt_format", "issue_form_tx_receipt", "load_or_create_ed25519_key", + "receipt_readback_evidence", "verify_form_tx_receipt", "verify_salted_output_digest", ] @@ -147,6 +152,8 @@ def issue_form_tx_receipt( receipt_id: Optional[str] = None, salt_hex: Optional[str] = None, timestamp_utc: Optional[str] = None, + not_covered: Sequence[str] = (), + writes: Optional[Sequence[FieldWriteRecord]] = None, ) -> SignedFormTxReceipt: """Issue a value-scrubbed, Ed25519-signed ``SignedFormTxReceipt``.""" priv_key = _coerce_private_key(signing_key) @@ -190,8 +197,12 @@ def issue_form_tx_receipt( else: effective_outputs = {} + # With per-field verdicts the signed count is derived from them, so the + # receipt cannot claim more checked fields than it has verdicts for. resolved_checked_count = ( - readback_checked_count + sum(1 for v in summary_verdict.field_verdicts if v.passed) + if summary_verdict is not None and summary_verdict.field_verdicts + else readback_checked_count if readback_checked_count is not None else (summary_verdict.checked_count if summary_verdict is not None else 0) ) @@ -217,6 +228,65 @@ def issue_form_tx_receipt( raise ValueError( "Verified receipt requires successful nonempty read-back evidence" ) + # absent-evidence-as-success: counts are not evidence. A verified receipt + # needs the per-field verdicts, every one of them passed, and a passing + # verdict for every bound field the dossier has a value for: one passing + # field out of several is partial, never verified. + if outcome == FormTxOutcome.VERIFIED_DONE: + if ( + summary_verdict is None + or not summary_verdict.field_verdicts + or any(not v.passed for v in summary_verdict.field_verdicts) + ): + raise ValueError( + "Verified receipt requires per-field read-back verdicts, all passed" + ) + if pack is None or dossier is None: + # The digest-only path cannot check coverage, so it cannot sign a + # verified receipt. + raise ValueError( + "Verified receipt requires the pack and dossier to check coverage" + ) + passed_keys = {v.dossier_key for v in summary_verdict.field_verdicts} + required = { + b.dossier_key + for b in pack.bindings + if dossier.facts.get(b.dossier_key) is not None + } + required |= { + r.dossier_key + for r in human_resolutions + if r.dossier_key + and r.action.value + in ("provide_value", "fixed_on_screen", "accept_portal_prefill") + } + missing = sorted(required - passed_keys) + if missing: + raise ValueError( + "Verified receipt requires every bound field with a value " + f"to pass read-back; missing: {missing}" + ) + # Coverage of the individual subjects (every written, kept or + # accepted control, popup inputs included), not just top-level keys. + if writes is None: + raise ValueError( + "Verified receipt requires the run's writes to check coverage" + ) + from openadapt_flow.form_tx.judge import ( + read_subjects, + uncovered_subject_verdicts, + ) + + uncovered = uncovered_subject_verdicts( + read_subjects(writes, human_resolutions), + summary_verdict.field_verdicts, + lambda _k: FormCodecKind.WHITESPACE_COLLAPSE, + ) + if uncovered: + raise ValueError( + "Verified receipt requires a verdict for every control the run " + f"wrote, kept or accepted; uncovered: {[v.dossier_key for v in uncovered]}" + ) hr_digests = tuple(salted_sha256(rec, actual_salt) for rec in human_resolutions) salted_outputs = { @@ -245,6 +315,23 @@ def issue_form_tx_receipt( len(summary_verdict.not_checked_keys) if summary_verdict is not None else 0 ), salted_output_digests=salted_outputs, + covered_keys=( + tuple( + sorted( + v.dossier_key + for v in summary_verdict.field_verdicts + if v.passed and not v.dossier_key.startswith("__") + ) + ) + if summary_verdict is not None + else () + ), + not_covered=tuple(not_covered), + readback_evidence=( + summary_verdict.readback_evidence + if summary_verdict is not None + else "acting_session_reread" + ), ) payload_bytes = canonical_json_bytes(payload) @@ -261,6 +348,49 @@ def issue_form_tx_receipt( ) +# Fields added to the v1 payload after v1 receipts were first signed on main, +# with the value they read as when absent. A receipt signed before a field +# existed was signed over the payload without it. +_LATER_V1_FIELDS: dict[str, Any] = { + "readback_not_checked_count": 0, + "readback_evidence": "acting_session_reread", + "covered_keys": [], + "not_covered": [], +} + +RECEIPT_FORMAT_CURRENT = "v1" +RECEIPT_FORMAT_OLDER = "v1, older (signed before: {fields})" + + +def _signed_encodings(payload: Any) -> list[tuple[str, bytes]]: + """The one encoding this payload was signed in, as it arrived. + + Field presence is what was signed: a later v1 field present on the wire + is encoded (even at its default), and one absent on the wire is left out, + which marks the receipt as the older format. Nothing is guessed. + """ + data = payload.model_dump(mode="json") + absent = [ + k for k in _LATER_V1_FIELDS if k not in payload.model_fields_set and k in data + ] + if not absent: + return [(RECEIPT_FORMAT_CURRENT, canonical_json_bytes(data))] + older = {k: v for k, v in data.items() if k not in absent} + return [ + ( + RECEIPT_FORMAT_OLDER.format(fields=", ".join(absent)), + canonical_json_bytes(older), + ) + ] + + +def receipt_readback_evidence(receipt: SignedFormTxReceipt) -> str: + """Who produced the read-back, or "unknown" for a receipt that never said.""" + if "readback_evidence" not in receipt.payload.model_fields_set: + return "unknown" + return str(receipt.payload.readback_evidence) + + def verify_form_tx_receipt( receipt: SignedFormTxReceipt, *, @@ -269,38 +399,56 @@ def verify_form_tx_receipt( """Verify ``payload_sha256`` and Ed25519 signature over canonical payload JSON. Returns ``False`` on any digest mismatch, malformed hex, key mismatch, or - single-bit payload/signature tamper. + single-bit payload/signature tamper. A v1 receipt signed before later + optional fields existed still verifies; ``form_tx_receipt_format`` says + which format it is. """ + return ( + form_tx_receipt_format(receipt, expected_public_key_hex=expected_public_key_hex) + is not None + ) + + +def form_tx_receipt_format( + receipt: SignedFormTxReceipt, + *, + expected_public_key_hex: Optional[str] = None, +) -> Optional[str]: + """The format a receipt verifies under, or ``None`` when it does not verify.""" if not isinstance(receipt, SignedFormTxReceipt): - return False + return None if receipt.algorithm != "Ed25519": - return False + return None if expected_public_key_hex is not None and not hmac.compare_digest( receipt.public_key_hex.lower(), expected_public_key_hex.lower(), ): - return False - - expected_sha = canonical_sha256(receipt.payload) - if not hmac.compare_digest(receipt.payload_sha256, expected_sha): - return False + return None try: pub_bytes = bytes.fromhex(receipt.public_key_hex) sig_bytes = bytes.fromhex(receipt.signature_hex) except ValueError: - return False + return None if len(pub_bytes) != 32 or len(sig_bytes) != 64: - return False + return None try: public_key = Ed25519PublicKey.from_public_bytes(pub_bytes) - public_key.verify(sig_bytes, canonical_json_bytes(receipt.payload)) - except (InvalidSignature, ValueError): - return False - - return True + except ValueError: + return None + for label, encoded in _signed_encodings(receipt.payload): + if not hmac.compare_digest( + receipt.payload_sha256, hashlib.sha256(encoded).hexdigest() + ): + continue + try: + public_key.verify(sig_bytes, encoded) + except (InvalidSignature, ValueError): + continue + return label + return None def verify_salted_output_digest( diff --git a/packages/flow/openadapt_flow/form_tx/reconciler.py b/packages/flow/openadapt_flow/form_tx/reconciler.py index de05f285ea..5c00b5366a 100644 --- a/packages/flow/openadapt_flow/form_tx/reconciler.py +++ b/packages/flow/openadapt_flow/form_tx/reconciler.py @@ -38,6 +38,7 @@ MissingAnchorError, collapse_radio_groups, compute_field_signature, + is_radio, match_anchor_in_snapshot, match_text_pair_in_snapshot, radio_group_key, @@ -71,6 +72,7 @@ PrefillPolicy, ProvenanceKind, UIProfileSpec, + UnboundControlSpec, WizardScreenSpec, canonical_sha256, ) @@ -183,6 +185,12 @@ def __init__( # Internal session bookkeeping across halt/resume cycles: self._filled_selectors: set[str] = set() + # Successful-save count when the commit control was clicked. + self._pre_commit_confirmed: Optional[int] = None + # Surface mutation count when this run first started. + self._mutations_at_start: Optional[int] = None + # True only while apply_human_resolution resumes the run. + self._resuming: bool = False self._human_accepted_control_signatures: set[str] = set() self._human_accepted_values: dict[str, Any] = {} self._accepted_entity_rows: list[tuple[str, dict[str, str]]] = [] @@ -205,7 +213,24 @@ def __init__( # read-back judge must give each one a verdict. # Keyed by field, selector and popup, so a popup input never hides a # main-form write of the same dossier key. - self._writes: dict[tuple[str, str, str], FieldWriteRecord] = {} + self._writes: dict[tuple[str, str, str, str], FieldWriteRecord] = {} + # Screens in the order this run reached them, and whether a sign-in + # or a jump back interrupted the run after fields were entered. An + # interrupted run re-walks its screens (or stops) before submit. + self._screens_visited: list[str] = [] + self._interrupted: bool = False + self._rewalks: int = 0 + # Controls no binding covers, keyed by label: the value each showed + # that this run did not set (keeps the run from verified_done), the + # value first seen (a later change is reported too), and the + # pack-declared ones seen at their blank value (named on the receipt). + self._uncovered: dict[str, str] = {} + self._unbound_first_seen: dict[str, str] = {} + self._not_covered: set[str] = set() + # Optional bound fields the page showed and the run left blank. + self._optional_blank: set[str] = set() + # Review read-backs that could not be compared, and why. + self._review_skipped: dict[str, str] = {} def record_write( self, @@ -217,24 +242,41 @@ def record_write( in_popup_subroutine: Optional[str] = None, from_popup_subroutine: Optional[str] = None, matched_popup_result: bool = False, + keep_existing: bool = False, ) -> None: - """Note that a field was written so the read-back must cover it.""" + """Note that a field was written so the read-back must cover it. + + Keyed by field, screen, selector and popup: the same selector on two + wizard screens is two controls. + """ if dossier_key and dossier_key != "human-current-field": field_key = dossier_key else: dossier_key = None field_key = f"control:{label or selector or 'unlabelled'}" - self._writes[(field_key, selector or "", in_popup_subroutine or "")] = ( - FieldWriteRecord( - field_key=field_key, - dossier_key=dossier_key, - label=label, - selector=selector, - source=source, # type: ignore[arg-type] - in_popup_subroutine=in_popup_subroutine, - from_popup_subroutine=from_popup_subroutine, - matched_popup_result=matched_popup_result, - ) + screen_id = ( + self._last_observation.screen_id + if self._last_observation is not None + else None + ) + ledger_key = ( + field_key, + screen_id or "", + selector or "", + in_popup_subroutine or "", + ) + if keep_existing and ledger_key in self._writes: + return + self._writes[ledger_key] = FieldWriteRecord( + field_key=field_key, + dossier_key=dossier_key, + label=label, + selector=selector, + source=source, # type: ignore[arg-type] + in_popup_subroutine=in_popup_subroutine, + screen_id=screen_id, + from_popup_subroutine=from_popup_subroutine, + matched_popup_result=matched_popup_result, ) @property @@ -242,6 +284,56 @@ def writes(self) -> tuple[FieldWriteRecord, ...]: return tuple(self._writes.values()) +def _subject_selector(ctrl: ObservedControl, snapshot: FormSnapshot) -> str: + """One stable selector per field: a radio group is one subject, whichever + of its options the snapshot happens to show first.""" + group = radio_group_key(ctrl) + if group is None: + return ctrl.dom_selector + peers = [c.dom_selector for c in snapshot.controls if radio_group_key(c) == group] + return peers[0] if peers else ctrl.dom_selector + + +def _field_label(ctrl: Optional[ObservedControl]) -> str: + """The name a person reads for ``ctrl``: a radio's group, else its label.""" + if ctrl is None: + return "" + if is_radio(ctrl): + if ctrl.group_label.strip(): + return ctrl.group_label + # A group with no legend is named by its table row's header cell. + header = collapse_whitespace(ctrl.row_cells[0]) if ctrl.row_cells else "" + header = header.rstrip(":*").strip() + if header and header.casefold() != ctrl.label_text.strip().casefold(): + return header + return ctrl.label_text + + +_FREE_TEXT_INPUT_TYPES = frozenset( + {"", "text", "email", "tel", "number", "search", "url", "date", "month"} +) + + +def _is_free_text(ctrl: ObservedControl) -> bool: + if ctrl.tag.casefold() == "textarea": + return True + if ctrl.role.casefold() == "combobox": + return ctrl.tag.casefold() == "input" + return ( + ctrl.tag.casefold() == "input" + and ctrl.input_type.casefold() in _FREE_TEXT_INPUT_TYPES + ) + + +def _key_tokens(key: str) -> set[str]: + last = key.rsplit(".", 1)[-1] + return {t for t in re.split(r"[^a-z0-9]+", last.casefold()) if t} + + +def _label_tokens(label: str) -> set[str]: + return {t for t in re.split(r"[^a-z0-9]+", label.casefold()) if t} + + def _is_action_button(ctrl: ObservedControl) -> bool: tag = ctrl.tag.casefold() itype = ctrl.input_type.casefold() @@ -263,6 +355,10 @@ def _is_text_placeholder(value: str, placeholders: Sequence[str]) -> bool: return norm in placeholder_set +def _is_radio_control(ctrl: ObservedControl) -> bool: + return ctrl.input_type.casefold() == "radio" or ctrl.role.casefold() == "radio" + + def _is_control_empty( ctrl: ObservedControl, placeholders: Sequence[str] = _DEFAULT_PLACEHOLDERS, @@ -270,6 +366,9 @@ def _is_control_empty( """Return True if ``ctrl`` has no entered/selected value on screen.""" itype = ctrl.input_type.casefold() role = ctrl.role.casefold() + if _is_radio_control(ctrl) and ctrl.checked is False: + # An unselected radio option holds no answer. + return True if itype == "checkbox" or role == "checkbox": if ctrl.checked is True: return False @@ -303,23 +402,12 @@ def _control_matches_fact( return False return (yn == "yes") == bool(ctrl.checked) - if ( - binding.control_kind == ControlKind.PORTAL_COMBOBOX - and binding.typeahead_query_chars is not None - ): - # A type-ahead that keeps only the leading part of its pick (see - # _is_leading_part_of_choice); typed text alone never matches. - try: - formatted = format_for_text_entry(intended_value, binding.codec) - except CodecValueError: - formatted = "" - if formatted and _is_leading_part_of_choice( - ctrl.current_value, - formatted, - formatted[: binding.typeahead_query_chars], - ): - return True + # partial-match-as-match: a radio option matches only when it is selected. + if _is_radio_control(ctrl) and ctrl.checked is not True: + return False + # partial-match-as-match: only the whole intended value matches. A field + # that shows a leading part of it (whoever put it there) is not a match. if values_equivalent(intended_value, ctrl.current_value, binding.codec): return True @@ -501,24 +589,6 @@ def _is_editable_combobox(ctrl: ObservedControl) -> bool: ) -def _is_leading_part_of_choice(shown: str, label: str, typed: str) -> bool: - """True when a pick left the leading part of its label in the input. - - Some type-aheads put only the first part of the chosen suggestion in the - input ("2210 Juniper Loop" from "2210 Juniper Loop Apt 4, Brackenfield, - OR") and fill the rest into other fields. That counts only when the input - shows more than was typed, so text left over from typing never passes. - """ - shown_n = collapse_whitespace(shown).casefold() - label_n = collapse_whitespace(label).casefold() - typed_n = collapse_whitespace(typed).casefold() - if not shown_n or shown_n == typed_n or len(shown_n) <= len(typed_n): - return False - if not label_n.startswith(shown_n) or len(label_n) == len(shown_n): - return False - return label_n[len(shown_n)] in " ,;-/(" - - def _surface_action_halt( run_id: str, snapshot: FormSnapshot, @@ -531,7 +601,7 @@ def _surface_action_halt( ) -> FormHaltItem: """A stop for a person when the surface could not act on a control.""" target = ctrl.dom_selector if ctrl is not None else locator - label = ctrl.label_text if ctrl is not None else "" + label = _field_label(ctrl) sig = ( compute_field_signature(ctrl) if ctrl is not None @@ -619,6 +689,81 @@ def _auth_wall_reason( return None +def _editable_fields(snapshot: FormSnapshot) -> list[ObservedControl]: + """Visible, enabled, non-button fields, one per radio group.""" + return [ + c + for c in collapse_radio_groups(snapshot.controls) + if c.visible + and not c.disabled + and not c.readonly + and not c.is_secret + and not _is_action_button(c) + and c.tag.casefold() != "output" + ] + + +def _locate_errored_control( + snapshot: FormSnapshot, + before: Optional[FormSnapshot] = None, +) -> tuple[Optional[ObservedControl], str]: + """The field a validation stop is about, and the message for it. + + In order: a field with its own error text; a field whose label an error + banner names; a field whose row gained text after the click (a "Required" + marker next to it); a required field left empty. ``(None, "")`` when no + field can be named. + """ + fields = _editable_fields(snapshot) + for c in snapshot.controls: + if c.visible and c.error_text.strip(): + return c, collapse_whitespace(c.error_text) + + banners = [collapse_whitespace(b).casefold() for b in snapshot.banner_errors] + if banners: + named: list[tuple[int, ObservedControl]] = [] + for c in fields: + label = collapse_whitespace(_field_label(c)).rstrip(":*").strip() + if len(label) < 4: + continue + if any(label.casefold() in b for b in banners): + named.append((len(label), c)) + if named: + named.sort(key=lambda item: -item[0]) + if len(named) == 1 or named[0][0] > named[1][0]: + return named[0][1], "; ".join(snapshot.banner_errors) + + if before is not None: + old_rows: dict[str, str] = {} + for c in collapse_radio_groups(before.controls): + old_rows[c.dom_selector] = collapse_whitespace(c.row_text) + old_rows.setdefault( + f"label|{collapse_whitespace(_field_label(c)).casefold()}", + collapse_whitespace(c.row_text), + ) + grew: list[tuple[ObservedControl, str]] = [] + for c in fields: + now = collapse_whitespace(c.row_text) + was = old_rows.get(c.dom_selector) + if was is None: + was = old_rows.get( + f"label|{collapse_whitespace(_field_label(c)).casefold()}" + ) + # Only strict growth counts: the old row text is still there and + # something was added to it (a "Required" marker). + if was is None or not now or now == was or was not in now: + continue + added = now.replace(was, " ").strip() if was and was in now else now + grew.append((c, collapse_whitespace(added))) + if grew: + return grew[0][0], grew[0][1] + + for c in fields: + if c.required and _is_control_empty(c): + return c, "required and empty" + return None, "" + + def _collect_surface_errors(snapshot: FormSnapshot) -> list[str]: errors = [collapse_whitespace(b) for b in snapshot.banner_errors if b.strip()] for ctrl in snapshot.controls: @@ -1023,6 +1168,10 @@ def _actuate_control_unguarded( typed_query = format_for_text_entry(intended_value, codec) if typeahead_query_chars is not None: typed_query = typed_query[:typeahead_query_chars] + elif len(typed_query) > 2: + # Leave the last character to the pick, so a pick that + # took is visible as a change in the field. + typed_query = typed_query[:-1] opts = typer(ctrl.dom_selector, typed_query) else: opts = surface.open_portal_combobox_options(ctrl.dom_selector) @@ -1045,7 +1194,7 @@ def _actuate_control_unguarded( screen_id=snapshot.screen_id, control_id=ctrl.control_id, dom_selector=ctrl.dom_selector, - field_label=ctrl.label_text, + field_label=_field_label(ctrl), section_text=ctrl.section_text, dossier_key=dossier_key, dossier_value=intended_value, @@ -1058,6 +1207,34 @@ def _actuate_control_unguarded( ), available_options=opts, ) + before_value = "" + pre: Optional[FormSnapshot] = None + if typed_query is not None: + # The baseline for "did the click change the field" is the + # control as it stands just before the click; without it + # the pick cannot be proven, so the run stops. + pre = surface.snapshot() + pre_ctrl = next( + ( + c + for c in pre.controls + if c.visible and c.dom_selector == ctrl.dom_selector + ), + None, + ) + if pre_ctrl is None: + return _surface_action_halt( + run_id, + snapshot, + MissingAnchorError( + f"{ctrl.label_text or ctrl.dom_selector!r} was redrawn " + "while typing, so the pick cannot be checked" + ), + ctrl=ctrl, + dossier_key=dossier_key, + dossier_value=intended_value, + ) + before_value = pre_ctrl.current_value surface.choose_portal_combobox_option(ctrl.dom_selector, opt) if typed_query is not None: return self._verify_typeahead_choice( @@ -1070,6 +1247,8 @@ def _actuate_control_unguarded( dossier_key=dossier_key, run_id=run_id, typed_query=typed_query, + before_value=before_value, + pre_click=pre, ) return None @@ -1131,7 +1310,7 @@ def _actuate_control_unguarded( screen_id=snapshot.screen_id, control_id=ctrl.control_id, dom_selector=ctrl.dom_selector, - field_label=ctrl.label_text, + field_label=_field_label(ctrl), section_text=ctrl.section_text, dossier_key=dossier_key, dossier_value=intended_value, @@ -1157,6 +1336,8 @@ def _verify_typeahead_choice( dossier_key: Optional[str], run_id: str, typed_query: str = "", + before_value: str = "", + pre_click: Optional[FormSnapshot] = None, ) -> Optional[FormHaltItem]: """Stop unless the type-ahead now holds the chosen suggestion. @@ -1184,8 +1365,16 @@ def _key(c: ObservedControl) -> tuple[str, str, str]: ) if collapse_whitespace(ctrl.label_text): + # Only a control that was not on the page before the pick can + # be the redrawn input; an existing look-alike never is. + baseline = pre_click if pre_click is not None else snapshot + before_selectors = {c.dom_selector for c in baseline.controls} same = [ - c for c in after.controls if c.visible and _key(c) == _key(ctrl) + c + for c in after.controls + if c.visible + and c.dom_selector not in before_selectors + and _key(c) == _key(ctrl) ] if len(same) == 1: live = same[0] @@ -1200,8 +1389,11 @@ def _key(c: ObservedControl) -> tuple[str, str, str]: and ( shown.casefold() in accepted or values_equivalent(intended_value, live.current_value, codec) - or _is_leading_part_of_choice(shown, option.label, typed_query) ) + # The click must be what changed the field: a value that was + # already there before it (typed text, an inline completion) + # proves nothing about the pick. + and collapse_whitespace(before_value).casefold() != shown.casefold() ): return None reason = ( @@ -1260,7 +1452,10 @@ def _reconcile_bindings_pass( try: ctrl = match_anchor_in_snapshot( - binding.anchor, snapshot, include_readonly=False + binding.anchor, + snapshot, + include_readonly=False, + facts=session.effective_facts, ) except AmbiguousAnchorError as exc: sig = f"ambiguous_anchor|{binding.binding_id}|{binding.dossier_key}" @@ -1306,6 +1501,20 @@ def _reconcile_bindings_pass( ) is_empty = _is_control_empty(ctrl, binding.placeholder_values) fact = session.effective_facts.get(binding.dossier_key) + # A blank-form default (pack data) holds no client data: with a + # dossier value it is written over. Never for a control this run + # already wrote, so a reset to the default is still re-checked. + if ( + not is_empty + and not was_filled_by_session + and fact is not None + and binding.portal_default_values + and any( + _control_matches_fact(ctrl, default, binding) + for default in binding.portal_default_values + ) + ): + is_empty = True # Prefill Value Conflict Check if not is_empty and not was_filled_by_session: @@ -1326,13 +1535,13 @@ def _reconcile_bindings_pass( screen_id=snapshot.screen_id, control_id=ctrl.control_id, dom_selector=ctrl.dom_selector, - field_label=ctrl.label_text, + field_label=_field_label(ctrl), section_text=ctrl.section_text, dossier_key=binding.dossier_key, portal_value=ctrl.current_value, dossier_value=fact.value if fact is not None else None, message=( - f"Prefilled value on {ctrl.label_text or ctrl.dom_selector!r} " + f"Prefilled value on {_field_label(ctrl) or ctrl.dom_selector!r} " f"conflicts with grounded dossier state for {binding.dossier_key!r}" ), allowed_actions=( @@ -1384,8 +1593,8 @@ def _reconcile_bindings_pass( session.record_write( source="auto_fill", dossier_key=binding.dossier_key, - label=ctrl.label_text, - selector=ctrl.dom_selector, + label=_field_label(ctrl), + selector=_subject_selector(ctrl, snapshot), in_popup_subroutine=in_popup_subroutine, ) edited_any = True @@ -1395,9 +1604,433 @@ def _reconcile_bindings_pass( # The page rebuilt its controls on change; every # selector from this snapshot may now be stale. return True, True, None + if fact is not None and _control_matches_fact(ctrl, fact.value, binding): + # A control that already held the intended value (whatever the + # prefill policy, an unchecked box meant as "no" included) is + # still a control this run relied on: it needs its own verdict. + session.record_write( + source="kept_matching", + dossier_key=binding.dossier_key, + label=_field_label(ctrl), + selector=_subject_selector(ctrl, snapshot), + in_popup_subroutine=in_popup_subroutine, + keep_existing=True, + ) return edited_any, False, None + def _review_mismatch_halt( + self, session: ReconcilerSession, snapshot: FormSnapshot + ) -> Optional[FormHaltItem]: + """Stop before submit when the review screen shows a different value.""" + check = session.pack.summary_check + if check is None or not check.review_readbacks: + return None + from openadapt_flow.form_tx.judge import ( + _observed_control_matches, + _text_pair_matches, + ) + + for rb in check.review_readbacks: + fact = session.effective_facts.get(rb.dossier_key) + # Every skip is recorded and becomes not_checked on the result, + # never a silent pass (absent-evidence-as-success). + if fact is None: + session._review_skipped[rb.dossier_key] = "no intake value" + continue + try: + ctrl = match_anchor_in_snapshot( + rb.anchor, snapshot, include_readonly=True + ) + pair = ( + match_text_pair_in_snapshot(rb.anchor, snapshot) + if ctrl is None + else None + ) + except AmbiguousAnchorError: + session._review_skipped[rb.dossier_key] = "shown more than once" + continue + if ctrl is None and pair is None: + session._review_skipped[rb.dossier_key] = "not shown on the review" + continue + session._review_skipped.pop(rb.dossier_key, None) + ok = ( + _observed_control_matches(fact.value, ctrl, rb) + if ctrl is not None + else pair is not None and _text_pair_matches(fact.value, pair, rb) + ) + if ok: + continue + shown = ( + ctrl.current_value if ctrl is not None else (pair.value if pair else "") + ) + label = ( + _field_label(ctrl) if ctrl is not None else (pair.label if pair else "") + ) or rb.dossier_key + sig = f"review|{rb.dossier_key}|{shown}" + halt_id = _deterministic_halt_id( + session.run_id, + FormHaltKind.PREFILL_VALUE_CONFLICT, + snapshot.screen_id, + rb.dossier_key, + sig, + ) + halt = FormHaltItem( + halt_id=halt_id, + kind=FormHaltKind.PREFILL_VALUE_CONFLICT, + screen_id=snapshot.screen_id, + field_label=collapse_whitespace(label).rstrip(":").strip(), + dossier_key=rb.dossier_key, + portal_value=shown, + dossier_value=fact.value, + message=( + f"The review page shows {shown!r} for {label!r}, but the intake " + f"has {fact.value!r}; nothing was submitted" + ), + allowed_actions=( + HumanDecisionAction.ESCALATE_TO_OWNER, + HumanDecisionAction.ABORT_RUN, + ), + ) + session._halt_metadata[halt_id] = {"field_signature": sig} + return halt + return None + + @staticmethod + def _note_screen(session: ReconcilerSession, screen_id: str) -> None: + """Track screen order; a jump back to a screen already left interrupts the run. + + Landing back on the first screen is itself a full re-walk, so it + clears the interruption instead. + """ + visited = session._screens_visited + if screen_id not in visited: + visited.append(screen_id) + return + if visited[-1] == screen_id: + return + idx = visited.index(screen_id) + del visited[idx + 1 :] + if idx == 0: + session._interrupted = False + elif session.writes: + session._interrupted = True + + def _recheck_after_interruption( + self, + surface: FormSurfaceBackend, + session: ReconcilerSession, + snapshot: FormSnapshot, + current_screen: WizardScreenSpec, + ) -> Any: + """Before submit on an interrupted run: re-walk the screens, or stop. + + Returns ``"rewalk"`` after clicking back to the earliest visited + screen that can be revisited (the forward walk then re-checks and + re-fills every bound field), a stop naming each field entered on + another screen when no screen can be revisited, or ``None``. + """ + if not session._interrupted: + return None + earlier = [ + sid for sid in session._screens_visited if sid != current_screen.screen_id + ] + specs = {spec.screen_id: spec for spec in session.pack.screens} + on_screen = {c.dom_selector for c in snapshot.controls if c.visible} + elsewhere = sorted( + { + collapse_whitespace(w.label or "") or w.field_key + for w in session.writes + if not w.in_popup_subroutine and (w.selector or "") not in on_screen + } + ) + if not earlier and not elsewhere: + session._interrupted = False + return None + # Only a walk from the first screen the run visited re-checks every + # earlier field; starting later would skip the first screen's fields. + first = specs.get(earlier[0]) if earlier else None + target = first if first is not None and first.revisit_selector else None + if target is not None and session._rewalks < 2: + session._rewalks += 1 + try: + surface.click(str(target.revisit_selector)) + except Exception as exc: # noqa: BLE001 + if not _is_surface_action_error(exc): + raise + else: + session._interrupted = False + session._screens_visited = [] + return "rewalk" + if not elsewhere: + session._interrupted = False + return None + sig = f"recheck|{current_screen.screen_id}|{','.join(elsewhere)}" + halt_id = _deterministic_halt_id( + session.run_id, + FormHaltKind.FIELDS_NOT_RECHECKED, + snapshot.screen_id, + current_screen.screen_id, + sig, + ) + msg = ( + "A sign-in or a jump back interrupted this quote after fields were " + "entered, and these fields cannot be re-checked from here before " + f"submit: {elsewhere}" + ) + halt = FormHaltItem( + halt_id=halt_id, + kind=FormHaltKind.FIELDS_NOT_RECHECKED, + screen_id=snapshot.screen_id, + field_label=elsewhere[0], + portal_value=list(elsewhere), + message=msg, + allowed_actions=( + HumanDecisionAction.FIXED_ON_SCREEN, + HumanDecisionAction.ESCALATE_TO_OWNER, + HumanDecisionAction.ABORT_RUN, + ), + ) + session._halt_metadata[halt_id] = {"field_signature": sig} + return self._build_result( + session, + outcome=FormTxOutcome.HALTED_NEEDS_HUMAN, + safe_to_retry=True, + halts=(halt,), + what_happened=msg, + ) + + @staticmethod + def _consumed_keys(pack: FormPack) -> set[str]: + keys = {b.dossier_key for b in pack.bindings} + for sub in pack.popup_subroutines: + keys |= {b.dossier_key for b in sub.bindings} + keys.add(sub.return_output_key) + if sub.condition_dossier_key: + keys.add(sub.condition_dossier_key) + for rule in pack.modal_rules: + if rule.dossier_flag_key: + keys.add(rule.dossier_flag_key) + if pack.summary_check is not None: + keys |= {b.dossier_key for b in pack.summary_check.field_readbacks} + for sd in pack.summary_check.split_date_readbacks: + keys |= {sd.day_key, sd.month_key, sd.year_key} + if pack.summary_check.search_by_output_key: + keys.add(pack.summary_check.search_by_output_key) + for spec in pack.screens: + for anchor in (spec.next_button_anchor, spec.commit_button_anchor): + if anchor is not None: + keys |= set(anchor.row_cell_dossier_keys) + for sub in pack.popup_subroutines: + for anchor in (sub.trigger_anchor, sub.commit_anchor, *sub.compute_anchors): + keys |= set(anchor.row_cell_dossier_keys) + return keys + + def _unconsumed_intake_keys( + self, session: ReconcilerSession, *, include_ignored: bool = True + ) -> list[str]: + consumed = self._consumed_keys(session.pack) + if not include_ignored: + consumed |= set(session.pack.ignored_intake_keys) + out = [] + for key, fact in session.dossier.facts.items(): + if key in consumed: + continue + value = getattr(fact, "value", None) + if value is None or (isinstance(value, str) and not value.strip()): + continue + out.append(key) + return sorted(out) + + def _scan_unbound_controls( + self, session: ReconcilerSession, snapshot: FormSnapshot + ) -> Optional[FormHaltItem]: + """Watch every visible field no binding covers. + + Free text holding a value this run did not type stops. Any other + value it did not set is kept as ``uncovered`` (the run then cannot + end ``verified_done``). An empty field whose label names an intake + key that no binding enters stops. Pack-declared unbound controls at + their blank value are only named on the receipt. + """ + pack = session.pack + bound_selectors: set[str] = set() + bound_groups: set[str] = set() + anchors = [b.anchor for b in pack.bindings] + for sub in pack.popup_subroutines: + anchors.extend([sub.trigger_anchor, sub.parent_return_anchor]) + for anchor in anchors: + try: + m = match_anchor_in_snapshot( + anchor, + snapshot, + include_readonly=True, + facts=session.effective_facts, + ) + except AmbiguousAnchorError: + continue + if m is not None: + bound_selectors.add(m.dom_selector) + group = radio_group_key(m) + if group is not None: + bound_groups.add(group) + declared: dict[str, Any] = {} + for spec in pack.unbound_controls: + try: + m = match_anchor_in_snapshot( + spec.anchor, + snapshot, + include_readonly=True, + facts=session.effective_facts, + ) + except AmbiguousAnchorError: + continue + if m is not None: + declared[m.dom_selector] = spec + group = radio_group_key(m) + if group is not None: + declared[f"group|{group}"] = spec + unconsumed: Optional[list[str]] = None + fold = FieldCodecSpec(kind=FormCodecKind.CASEFOLD) + + # Read-only text boxes (filled by a lookup) count only for the + # intake-key check below: an empty one the intake has a value for. + readonly_text = [ + c + for c in snapshot.controls + if c.visible + and c.readonly + and not c.disabled + and not c.is_secret + and c.tag.casefold() == "input" + and c.input_type.casefold() in _FREE_TEXT_INPUT_TYPES + and _is_control_empty(c) + ] + for ctrl in [*_editable_fields(snapshot), *readonly_text]: + if ctrl.modal_container: + continue + group = radio_group_key(ctrl) + if ctrl.dom_selector in bound_selectors or ( + group is not None and group in bound_groups + ): + continue + ctrl_sig = compute_field_signature(ctrl) + if ( + ctrl.dom_selector in session._filled_selectors + or ctrl_sig in session._human_accepted_control_signatures + ): + continue + label = collapse_whitespace(_field_label(ctrl)) or ctrl.dom_selector + empty = _is_control_empty(ctrl) + shown = "" + if not empty: + shown = ctrl.current_value + if ctrl.options: + opt = [o for o in ctrl.options if o.value == ctrl.current_value] + if len(opt) == 1 and opt[0].label: + shown = opt[0].label + declared_spec: Optional[UnboundControlSpec] = declared.get( + ctrl.dom_selector + ) or (declared.get(f"group|{group}") if group is not None else None) + if declared_spec is not None: + blank = (empty and "" in declared_spec.blank_values) or any( + values_equivalent(b, shown, fold) + or values_equivalent(b, ctrl.current_value, fold) + for b in declared_spec.blank_values + if b + ) + if blank: + session._not_covered.add(label) + else: + session._uncovered[label] = shown + continue + if empty: + if not _is_free_text(ctrl): + continue + if unconsumed is None: + unconsumed = self._unconsumed_intake_keys(session) + label_toks = _label_tokens(label) + for key in unconsumed: + toks = _key_tokens(key) + if not toks or not toks <= label_toks: + continue + fact = session.dossier.facts.get(key) + halt_id = _deterministic_halt_id( + session.run_id, + FormHaltKind.UNGROUNDED_REQUIRED_FIELD, + snapshot.screen_id, + ctrl.dom_selector, + f"unbound_intake|{key}|{ctrl_sig}", + ) + halt = FormHaltItem( + halt_id=halt_id, + kind=FormHaltKind.UNGROUNDED_REQUIRED_FIELD, + screen_id=snapshot.screen_id, + control_id=ctrl.control_id, + dom_selector=ctrl.dom_selector, + field_label=label, + section_text=ctrl.section_text, + dossier_key=key, + dossier_value=getattr(fact, "value", None), + message=( + f"The intake has {key!r}, but no binding enters it, and " + f"the field {label!r} is empty" + ), + allowed_actions=( + HumanDecisionAction.PROVIDE_VALUE, + HumanDecisionAction.FIXED_ON_SCREEN, + HumanDecisionAction.ESCALATE_TO_OWNER, + HumanDecisionAction.ABORT_RUN, + ), + ) + session._halt_metadata[halt_id] = { + "field_signature": ctrl_sig, + "control": ctrl, + "binding": None, + } + return halt + continue + first = session._unbound_first_seen.setdefault(label, shown) + if _is_free_text(ctrl): + halt_id = _deterministic_halt_id( + session.run_id, + FormHaltKind.PREFILL_VALUE_CONFLICT, + snapshot.screen_id, + ctrl.dom_selector, + ctrl_sig, + ) + halt = FormHaltItem( + halt_id=halt_id, + kind=FormHaltKind.PREFILL_VALUE_CONFLICT, + screen_id=snapshot.screen_id, + control_id=ctrl.control_id, + dom_selector=ctrl.dom_selector, + field_label=label, + section_text=ctrl.section_text, + portal_value=ctrl.current_value, + message=( + f"{label!r} holds a value this run did not type, and no " + "binding covers it" + ), + allowed_actions=( + HumanDecisionAction.ACCEPT_PORTAL_PREFILL, + HumanDecisionAction.PROVIDE_VALUE, + HumanDecisionAction.FIXED_ON_SCREEN, + HumanDecisionAction.ESCALATE_TO_OWNER, + HumanDecisionAction.ABORT_RUN, + ), + available_options=ctrl.options, + ) + session._halt_metadata[halt_id] = { + "field_signature": ctrl_sig, + "control": ctrl, + "binding": None, + } + return halt + note = shown if first == shown else f"{shown} (was {first})" + session._uncovered[label] = note + return None + @staticmethod def _controls_were_replaced( surface: FormSurfaceBackend, snapshot: FormSnapshot @@ -1420,7 +2053,10 @@ def _collect_ungrounded_required_halts( for candidate_binding in bindings: try: matched = match_anchor_in_snapshot( - candidate_binding.anchor, snapshot, include_readonly=False + candidate_binding.anchor, + snapshot, + include_readonly=False, + facts=session.effective_facts, ) except AmbiguousAnchorError: continue @@ -1442,18 +2078,33 @@ def _collect_ungrounded_required_halts( group = radio_group_key(ctrl) if binding is None and group is not None: binding = matched_by_group.get(group) - is_required = ctrl.required or ( - binding is not None and binding.required_in_pack - ) - if not is_required: - continue - ctrl_sig = compute_field_signature(ctrl) fact = ( session.effective_facts.get(binding.dossier_key) if binding is not None else None ) + # A bound field the page shows, with no intake value, that nobody + # answered: a value no one supplied must never be covered + # (absent-evidence-as-success). It stops, unless the pack marks + # it optional; then it is named on the receipt as not covered. + unanswered = ( + binding is not None + and fact is None + and _is_control_empty(ctrl, binding.placeholder_values) + and ctrl.dom_selector not in session._filled_selectors + and ctrl_sig not in session._human_accepted_control_signatures + ) + if unanswered and binding is not None and binding.optional: + session._optional_blank.add(binding.dossier_key) + continue + is_required = ( + ctrl.required + or (binding is not None and binding.required_in_pack) + or unanswered + ) + if not is_required: + continue if ( fact is not None and binding is not None @@ -1485,12 +2136,15 @@ def _collect_ungrounded_required_halts( screen_id=snapshot.screen_id, control_id=ctrl.control_id, dom_selector=ctrl.dom_selector, - field_label=ctrl.label_text, + field_label=_field_label(ctrl), section_text=ctrl.section_text, dossier_key=binding.dossier_key if binding is not None else None, message=( - f"Required control {ctrl.label_text or ctrl.dom_selector!r} has no " + f"Required control {_field_label(ctrl) or ctrl.dom_selector!r} has no " f"grounded value in dossier" + if not unanswered or ctrl.required + else f"{_field_label(ctrl) or ctrl.dom_selector!r} is shown with no " + "intake value; answer it, or the pack must mark it optional" ), allowed_actions=( HumanDecisionAction.PROVIDE_VALUE, @@ -1597,10 +2251,16 @@ def _run_popup_subroutine_steps( """Execute ``subroutine``, returning ``None`` on verified return or halts on failure.""" try: trigger_ctrl = match_anchor_in_snapshot( - subroutine.trigger_anchor, parent_snapshot, include_readonly=False + subroutine.trigger_anchor, + parent_snapshot, + include_readonly=False, + facts=session.effective_facts, ) return_before = match_anchor_in_snapshot( - subroutine.parent_return_anchor, parent_snapshot, include_readonly=True + subroutine.parent_return_anchor, + parent_snapshot, + include_readonly=True, + facts=session.effective_facts, ) except AmbiguousAnchorError as exc: sig = f"popup_anchor|{subroutine.subroutine_id}" @@ -1799,7 +2459,10 @@ def _popup_snapshot(surface: FormSurfaceBackend) -> FormSnapshot: popup_snap = _popup_snapshot(popup_surface) try: step_ctrl = match_anchor_in_snapshot( - step_anchor, popup_snap, include_readonly=False + step_anchor, + popup_snap, + include_readonly=False, + facts=session.effective_facts, ) except AmbiguousAnchorError as exc: step_ctrl = None @@ -1851,7 +2514,10 @@ def _popup_snapshot(surface: FormSurfaceBackend) -> FormSnapshot: try: popup_commit = match_anchor_in_snapshot( - subroutine.commit_anchor, popup_snap, include_readonly=False + subroutine.commit_anchor, + popup_snap, + include_readonly=False, + facts=session.effective_facts, ) except AmbiguousAnchorError as exc: popup_commit = None @@ -1914,6 +2580,7 @@ def _popup_snapshot(surface: FormSurfaceBackend) -> FormSnapshot: subroutine.parent_return_anchor, after_parent_snap, include_readonly=True, + facts=session.effective_facts, ) if return_after is None or not _is_valid_non_zero_return_value( return_after.current_value, subroutine.return_codec @@ -2128,19 +2795,27 @@ def _check_popup_entries_before_apply( for ledger_key, write in list(session._writes.items()): if write.in_popup_subroutine != subroutine.subroutine_id: continue - binding = next( - ( - b - for b in subroutine.bindings - if write.dossier_key and b.dossier_key == write.dossier_key - ), - None, - ) + # The binding that wrote this control: matched by its selector, + # never just by key (two inputs may hold the same key). + binding = None + for b in subroutine.bindings: + if not write.dossier_key or b.dossier_key != write.dossier_key: + continue + try: + m = match_anchor_in_snapshot(b.anchor, snap, include_readonly=False) + except AmbiguousAnchorError: + m = None + if m is not None and m.dom_selector == write.selector: + binding = b + break if binding is not None: fact = session.effective_facts.get(binding.dossier_key) try: ctrl = match_anchor_in_snapshot( - binding.anchor, snap, include_readonly=False + binding.anchor, + snap, + include_readonly=False, + facts=session.effective_facts, ) except AmbiguousAnchorError: ctrl = None @@ -2270,6 +2945,7 @@ def _emit_validation_blocked( errors: Sequence[str], *, safe_to_retry: bool, + before: Optional[FormSnapshot] = None, ) -> FormTxResult: bound = session._bound_surface or self._surface auth_reason = _auth_wall_reason( @@ -2283,20 +2959,30 @@ def _emit_validation_blocked( auth_reason, delivery_uncertain=(not safe_to_retry) or session._commit_attempted, ) - errored_ctrl = next( - (c for c in snapshot.controls if c.visible and c.error_text.strip()), - None, - ) + errored_ctrl, field_message = _locate_errored_control(snapshot, before) + if errored_ctrl is not None: + name = collapse_whitespace(_field_label(errored_ctrl)) + if name and not any(name.casefold() in e.casefold() for e in errors): + errors = [*errors, f"{name}: {field_message or 'not accepted'}"] matched_binding: Optional[FieldBindingSpec] = None if errored_ctrl is not None: for b in session.pack.bindings: try: m = match_anchor_in_snapshot( - b.anchor, snapshot, include_readonly=False + b.anchor, + snapshot, + include_readonly=False, + facts=session.effective_facts, ) except AmbiguousAnchorError: continue - if m is not None and m.dom_selector == errored_ctrl.dom_selector: + if m is not None and ( + m.dom_selector == errored_ctrl.dom_selector + or ( + radio_group_key(m) is not None + and radio_group_key(m) == radio_group_key(errored_ctrl) + ) + ): matched_binding = b break @@ -2324,7 +3010,7 @@ def _emit_validation_blocked( screen_id=snapshot.screen_id, control_id=errored_ctrl.control_id if errored_ctrl else None, dom_selector=errored_ctrl.dom_selector if errored_ctrl else None, - field_label=errored_ctrl.label_text if errored_ctrl else "", + field_label=_field_label(errored_ctrl), section_text=errored_ctrl.section_text if errored_ctrl else "", dossier_key=matched_binding.dossier_key if matched_binding else None, portal_value=list(errors), @@ -2372,6 +3058,58 @@ def _finalize_commit( ), ) delta_mutations = max(0, surface.mutation_count - pre_commit_mutations) + confirmed_now = getattr(surface, "confirmed_mutation_count", None) + confirmed_before = session._pre_commit_confirmed + no_confirmed_save = ( + confirmed_now is not None + and confirmed_before is not None + and confirmed_now - confirmed_before <= 0 + ) + still_on_commit_screen = self._is_still_on_uncommitted_commit_screen( + post_commit_snapshot, pack + ) + if delta_mutations == 0 or no_confirmed_save or still_on_commit_screen: + # absent-evidence-as-success: a commit click that sent no save + # request is no evidence the record exists; reading the form back + # would only read the run's own edits. + sig = f"commit_no_save|{pack.pack_id}" + halt_id = _deterministic_halt_id( + session.run_id, + FormHaltKind.MUTATION_BUDGET_EXCEEDED, + post_commit_snapshot.screen_id, + pack.pack_id, + sig, + ) + observes = getattr(surface, "observes_network", False) + msg = ( + "This surface cannot observe saves, so whether one was sent " + "is unknown" + if delta_mutations == 0 and not observes + else "The commit control was clicked but no save request was seen" + if delta_mutations == 0 + else "No save request was answered with success" + if no_confirmed_save + else "The page is still on the commit screen after the commit click" + ) + "; there is no evidence the record was saved" + halt = FormHaltItem( + halt_id=halt_id, + kind=FormHaltKind.MUTATION_BUDGET_EXCEEDED, + screen_id=post_commit_snapshot.screen_id, + portal_value=0, + message=msg, + allowed_actions=( + HumanDecisionAction.ESCALATE_TO_OWNER, + HumanDecisionAction.ABORT_RUN, + ), + ) + session._halt_metadata[halt_id] = {"field_signature": sig} + return self._build_result( + session, + outcome=FormTxOutcome.DELIVERY_UNCERTAIN, + safe_to_retry=False, + halts=(halt,), + what_happened=msg, + ) if delta_mutations > pack.max_commit_mutations: sig = f"commit_budget|{pack.pack_id}" halt_id = _deterministic_halt_id( @@ -2413,6 +3151,15 @@ def _finalize_commit( human_resolutions=session.human_resolutions, supplemental_facts=session.effective_facts, writes=session.writes, + uncovered=session._uncovered, + # Intake values the portal never asked for: only pack-required ones + # block; the rest are named on the receipt as not covered. + unentered_intake_keys=[ + k + for k in self._unconsumed_intake_keys(session, include_ignored=False) + if k in session.pack.required_intake_keys + ], + review_skipped=session._review_skipped, ) extracted_outputs = dict(verdict.extracted_outputs) if not verdict.passed or verdict.missing_required_outputs: @@ -2435,7 +3182,7 @@ def _finalize_commit( summary_verdict=verdict, receipt=None, what_happened=( - f"Independent read-back did not verify commit: {reasons}" + f"Read-back by the acting session did not verify commit: {reasons}" ), ) return self._build_result( @@ -2462,6 +3209,12 @@ def _finalize_commit( commit_mutations_observed=delta_mutations, summary_verdict=verdict, outputs=extracted_outputs, + not_covered=( + *sorted(session._not_covered), + *(f"optional-blank:{k}" for k in sorted(session._optional_blank)), + *(f"intake:{k}" for k in self._unconsumed_intake_keys(session)), + ), + writes=session.writes, ) return self._build_result( session, @@ -2470,7 +3223,7 @@ def _finalize_commit( outputs=extracted_outputs, summary_verdict=verdict, receipt=receipt, - what_happened="Committed and verified via independent read-back", + what_happened="Committed and verified by the acting session's read-back", ) def _is_still_on_uncommitted_commit_screen( @@ -2552,7 +3305,32 @@ def run_until_halt_or_done( stop for a person. It is never raised past this point and never followed by a submit; after the submit click it is reported as ``delivery_uncertain``. + + A session with an open stop does not move: a stop is cleared only by + ``apply_human_resolution`` (absent-evidence-as-success: a retry is not + a decision). """ + if session.active_halts and not session._resuming: + return self._build_result( + session, + outcome=( + session._last_result.outcome + if session._last_result is not None + else FormTxOutcome.HALTED_NEEDS_HUMAN + ), + # Never more retryable than the stop it repeats. + safe_to_retry=( + session._last_result.safe_to_retry + if session._last_result is not None + else False + ), + halts=tuple(session.active_halts), + what_happened=( + "Refused to continue: a stop is still open and needs a " + "decision through apply_human_resolution" + ), + ) + session._resuming = False active_surface = self._resolve_surface(surface, session) try: mutations_at_entry = active_surface.mutation_count @@ -2577,6 +3355,11 @@ def _run_until_halt_or_done_unguarded( ) -> FormTxResult: pack = session.pack session.active_halts.clear() + if session._mutations_at_start is None: + try: + session._mutations_at_start = active_surface.mutation_count + except Exception: # noqa: BLE001 + session._mutations_at_start = 0 for _ in range(self.max_screen_transitions): snapshot = active_surface.snapshot( @@ -2748,7 +3531,10 @@ def _run_until_halt_or_done_unguarded( continue try: trig = match_anchor_in_snapshot( - sub.trigger_anchor, snapshot, include_readonly=False + sub.trigger_anchor, + snapshot, + include_readonly=False, + facts=session.effective_facts, ) except AmbiguousAnchorError: # Delegated to _run_popup_subroutine to emit structured halt @@ -2844,10 +3630,40 @@ def _run_until_halt_or_done_unguarded( # 6. Screen Transition / Commit & Validation Check current_screen = _identify_wizard_screen(snapshot, pack.screens) + if current_screen is not None: + self._note_screen(session, current_screen.screen_id) + + # Controls no binding covers, before the screen is left. + unbound_halt = self._scan_unbound_controls(session, snapshot) + if unbound_halt is not None: + return self._build_result( + session, + outcome=FormTxOutcome.HALTED_NEEDS_HUMAN, + safe_to_retry=True, + halts=(unbound_halt,), + what_happened=unbound_halt.message, + ) + if current_screen is not None and ( current_screen.is_commit_screen or current_screen.commit_button_anchor is not None ): + recheck = self._recheck_after_interruption( + active_surface, session, snapshot, current_screen + ) + if recheck == "rewalk": + continue + if isinstance(recheck, FormTxResult): + return recheck + review_halt = self._review_mismatch_halt(session, snapshot) + if review_halt is not None: + return self._build_result( + session, + outcome=FormTxOutcome.HALTED_NEEDS_HUMAN, + safe_to_retry=True, + halts=(review_halt,), + what_happened=review_halt.message, + ) if current_screen.commit_button_anchor is None: raise ValueError( f"Commit screen {current_screen.screen_id!r} has no commit_button_anchor" @@ -2857,6 +3673,7 @@ def _run_until_halt_or_done_unguarded( current_screen.commit_button_anchor, snapshot, include_readonly=False, + facts=session.effective_facts, ) except AmbiguousAnchorError as exc: sig = f"commit_anchor|{current_screen.screen_id}" @@ -2899,6 +3716,9 @@ def _run_until_halt_or_done_unguarded( pre_commit_mutations = active_surface.mutation_count session._pre_commit_mutations = pre_commit_mutations + session._pre_commit_confirmed = getattr( + active_surface, "confirmed_mutation_count", None + ) session._commit_in_progress = True session._commit_clicked = True @@ -2923,6 +3743,7 @@ def _run_until_halt_or_done_unguarded( post_snap, post_errors, safe_to_retry=(delta == 0), + before=snapshot, ) return self._finalize_commit( @@ -2938,6 +3759,7 @@ def _run_until_halt_or_done_unguarded( current_screen.next_button_anchor, snapshot, include_readonly=False, + facts=session.effective_facts, ) except AmbiguousAnchorError as exc: sig = f"next_anchor|{current_screen.screen_id}" @@ -2976,10 +3798,14 @@ def _run_until_halt_or_done_unguarded( safe_to_retry=True, ) + # The visible field labels are part of the screen: a form that + # asks one question at a time in the same control advances + # when the question changes. before_sig = ( snapshot.screen_id, snapshot.url_origin_and_path, snapshot.title, + tuple(_field_label(c) for c in _editable_fields(snapshot)), ) active_surface.click(next_ctrl.dom_selector) post_snap = active_surface.snapshot( @@ -2995,6 +3821,7 @@ def _run_until_halt_or_done_unguarded( post_snap.screen_id, post_snap.url_origin_and_path, post_snap.title, + tuple(_field_label(c) for c in _editable_fields(post_snap)), ) if post_errors and (after_sig == before_sig or post_snap.banner_errors): return self._emit_validation_blocked( @@ -3002,6 +3829,7 @@ def _run_until_halt_or_done_unguarded( post_snap, post_errors, safe_to_retry=True, + before=snapshot, ) if after_sig == before_sig: return self._emit_validation_blocked( @@ -3012,12 +3840,45 @@ def _run_until_halt_or_done_unguarded( f"Screen {current_screen.screen_id!r} did not advance after clicking Next" ], safe_to_retry=True, + before=snapshot, ) continue - # Single-screen pack with no WizardScreenSpec transition buttons - return self._finalize_commit( - active_surface, session, snapshot, active_surface.mutation_count + # Single-screen pack with no WizardScreenSpec transition buttons. + # With no commit control there is no evidence that this record + # was saved (a request counted since the start may be unrelated + # or may have failed), and reading back our own unsaved edits is + # not evidence of a commit (absent-evidence-as-success): stop. + sig = f"no_commit|{snapshot.screen_id or snapshot.url_origin_and_path}" + halt_id = _deterministic_halt_id( + session.run_id, + FormHaltKind.AMBIGUOUS_OPTION_OR_TARGET, + snapshot.screen_id, + pack.pack_id, + sig, + ) + msg = ( + "No commit control on this screen, so there is no evidence the " + "record was saved; the run will not treat its own edits as a commit" + ) + halt = FormHaltItem( + halt_id=halt_id, + kind=FormHaltKind.AMBIGUOUS_OPTION_OR_TARGET, + screen_id=snapshot.screen_id, + message=msg, + allowed_actions=( + HumanDecisionAction.ESCALATE_TO_OWNER, + HumanDecisionAction.ABORT_RUN, + ), + ) + session._halt_metadata[halt_id] = {"field_signature": sig} + return self._build_result( + session, + outcome=FormTxOutcome.HALTED_NEEDS_HUMAN, + # The page may have saved on its own; never resubmit blindly. + safe_to_retry=False, + halts=(halt,), + what_happened=msg, ) sig = f"transition_budget|{pack.pack_id}" @@ -3125,6 +3986,15 @@ def _check_live_resolution_context( ): raise ValueError("Human decision modal changed; observe and review again") + def _resume_after_resolution( + self, session: ReconcilerSession, surface: FormSurfaceBackend + ) -> FormTxResult: + session._resuming = True + try: + return self.run_until_halt_or_done(session, surface=surface) + finally: + session._resuming = False + def apply_human_resolution( self, session: ReconcilerSession, @@ -3259,7 +4129,15 @@ def _append_record(resolved_val: Any) -> HumanResolutionRecord: if action == HumanDecisionAction.PROVIDE_VALUE: val = resolution.provided_value - if val is None or (isinstance(val, str) and not val.strip()): + # Clearing a prefilled value is a value too ("leave it blank"). + clearing = ( + active_halt.kind == FormHaltKind.PREFILL_VALUE_CONFLICT + and isinstance(val, str) + and not val.strip() + ) + if not clearing and ( + val is None or (isinstance(val, str) and not val.strip()) + ): raise ValueError("PROVIDE_VALUE requires a non-empty provided_value") if effective_dossier_key: @@ -3359,7 +4237,7 @@ def _append_record(resolved_val: Any) -> HumanResolutionRecord: in_popup_subroutine=in_popup_sub, ) _append_record(val) - res = self.run_until_halt_or_done(session, surface=active_surface) + res = self._resume_after_resolution(session, active_surface) return _cache_and_return(res) if action == HumanDecisionAction.ACCEPT_PORTAL_PREFILL: @@ -3394,7 +4272,7 @@ def _append_record(resolved_val: Any) -> HumanResolutionRecord: ) _append_record(portal_val) - res = self.run_until_halt_or_done(session, surface=active_surface) + res = self._resume_after_resolution(session, active_surface) return _cache_and_return(res) if action == HumanDecisionAction.DISMISS_PORTAL_ENTITY: @@ -3448,7 +4326,7 @@ def _append_record(resolved_val: Any) -> HumanResolutionRecord: ) session.dismissed_entities.add(entity_key) _append_record(dict(row.values)) - res = self.run_until_halt_or_done(session, surface=active_surface) + res = self._resume_after_resolution(session, active_surface) return _cache_and_return(res) if action == HumanDecisionAction.CONFIRM_MODAL_ACTION: @@ -3483,7 +4361,7 @@ def _append_record(resolved_val: Any) -> HumanResolutionRecord: session.confirmed_modals.add(modal_id) _append_record("confirmed") - res = self.run_until_halt_or_done(session, surface=active_surface) + res = self._resume_after_resolution(session, active_surface) return _cache_and_return(res) if action == HumanDecisionAction.FIXED_ON_SCREEN: @@ -3508,7 +4386,17 @@ def _append_record(resolved_val: Any) -> HumanResolutionRecord: ) return _cache_and_return(res) _append_record("authenticated") - res = self.run_until_halt_or_done(session, surface=active_surface) + # A sign-in in the middle may have reset what was entered. + if session.writes: + session._interrupted = True + res = self._resume_after_resolution(session, active_surface) + return _cache_and_return(res) + + if active_halt.kind == FormHaltKind.FIELDS_NOT_RECHECKED: + # The operator checked those fields on their screens. + session._interrupted = False + _append_record("rechecked_by_operator") + res = self._resume_after_resolution(session, active_surface) return _cache_and_return(res) binding = meta.get("binding") @@ -3534,7 +4422,10 @@ def _append_record(resolved_val: Any) -> HumanResolutionRecord: if live_ctrl is None and binding is not None: try: live_ctrl = match_anchor_in_snapshot( - binding.anchor, post_snap, include_readonly=True + binding.anchor, + post_snap, + include_readonly=True, + facts=session.effective_facts, ) except AmbiguousAnchorError: live_ctrl = None @@ -3557,7 +4448,7 @@ def _append_record(resolved_val: Any) -> HumanResolutionRecord: ) return _cache_and_return(res) _append_record("validation_cleared") - res = self.run_until_halt_or_done(session, surface=active_surface) + res = self._resume_after_resolution(session, active_surface) return _cache_and_return(res) placeholders = ( @@ -3612,7 +4503,7 @@ def _append_record(resolved_val: Any) -> HumanResolutionRecord: in_popup_subroutine=meta.get("in_popup_subroutine"), ) _append_record(live_val) - res = self.run_until_halt_or_done(session, surface=active_surface) + res = self._resume_after_resolution(session, active_surface) return _cache_and_return(res) raise ValueError(f"Unsupported human resolution action: {action!r}") diff --git a/packages/flow/openadapt_flow/form_tx/surface.py b/packages/flow/openadapt_flow/form_tx/surface.py index 3b2d9bba86..c174028490 100644 --- a/packages/flow/openadapt_flow/form_tx/surface.py +++ b/packages/flow/openadapt_flow/form_tx/surface.py @@ -8,7 +8,15 @@ from __future__ import annotations import re -from typing import ContextManager, Optional, Protocol, Sequence, runtime_checkable +from typing import ( + Any, + ContextManager, + Mapping, + Optional, + Protocol, + Sequence, + runtime_checkable, +) from openadapt_flow.form_tx.codecs import collapse_whitespace from openadapt_flow.form_tx.types import ( @@ -110,14 +118,23 @@ def _matches_any_pattern(text: str, patterns: Sequence[str]) -> bool: return False +def _cell_norm(text: str) -> str: + return " ".join(text.split()).casefold() + + def match_anchor_in_snapshot( anchor: FieldAnchorSpec, snapshot: FormSnapshot, *, include_readonly: bool = False, + facts: Optional[Mapping[str, Any]] = None, ) -> Optional[ObservedControl]: """Deterministically resolve ``anchor`` to at most one ``ObservedControl``. + With ``anchor.row_cell_dossier_keys`` and ``facts`` (dossier key to fact + or value), several matches narrow to the one whose table row has a cell + equal to each of those values. + Raises ``AmbiguousAnchorError`` when more than one visible control matches. Returns ``None`` when no visible control matches (for example, a conditional field that has not materialized on the current screen). @@ -177,6 +194,24 @@ def match_anchor_in_snapshot( if len(both) == 1: return both[0] + if len(candidates) > 1 and anchor.row_cell_dossier_keys and facts is not None: + wanted: list[str] = [] + for key in anchor.row_cell_dossier_keys: + fact = facts.get(key) + value = getattr(fact, "value", fact) + if value is None or not str(value).strip(): + wanted = [] + break + wanted.append(_cell_norm(str(value))) + if wanted: + in_row = [ + c + for c in candidates + if all(w in {_cell_norm(cell) for cell in c.row_cells} for w in wanted) + ] + if len(in_row) == 1: + return in_row[0] + if len(candidates) > 1: labels = [ f"{c.label_text or c.dom_selector} ({c.dom_selector})" for c in candidates diff --git a/packages/flow/openadapt_flow/form_tx/types.py b/packages/flow/openadapt_flow/form_tx/types.py index e925bbdc2a..ba7ce9c108 100644 --- a/packages/flow/openadapt_flow/form_tx/types.py +++ b/packages/flow/openadapt_flow/form_tx/types.py @@ -110,6 +110,9 @@ class FormHaltKind(str, Enum): MODAL_CONFIRMATION_REQUIRED = "modal_confirmation_required" AUTH_WALL_DETECTED = "auth_wall_detected" MUTATION_BUDGET_EXCEEDED = "mutation_budget_exceeded" + # A sign-in or a jump back interrupted the run after fields were entered, + # and some of them cannot be re-checked before submit. + FIELDS_NOT_RECHECKED = "fields_not_rechecked" class FormTxOutcome(str, Enum): @@ -297,6 +300,11 @@ class FieldAnchorSpec(BaseModel): section_patterns: tuple[str, ...] = () css_selector: Optional[str] = None role: Optional[str] = None + # When several controls match (a results table with one "Select" button + # per row), keep only the one whose table row has a cell equal to the + # value of each of these dossier keys. Without facts, or with no single + # row left, the anchor stays ambiguous. + row_cell_dossier_keys: tuple[str, ...] = () @model_validator(mode="after") def _require_at_least_one_signal(self) -> "FieldAnchorSpec": @@ -337,6 +345,16 @@ class FieldBindingSpec(BaseModel): # Type-ahead comboboxes: type only this many leading characters of the # formatted value before reading suggestions. None types the whole value. typeahead_query_chars: Optional[int] = Field(default=None, ge=1, le=200) + # Values a blank form shows before anyone types (seen on the dev case's + # first screen). A control still showing one of these, that this run has + # not written, holds no client data, so the dossier value is written + # over it. With no dossier value it still stops. Never applies to a + # control the run already wrote. + portal_default_values: tuple[str, ...] = () + # A field the form may leave blank. Without this, a bound field the page + # shows with no intake value stops before submit; with it, a blank one is + # named on the receipt as not covered, never as covered. + optional: bool = False class EntityTableSpec(BaseModel): @@ -411,6 +429,11 @@ class WizardScreenSpec(BaseModel): next_button_anchor: Optional[FieldAnchorSpec] = None is_commit_screen: bool = False commit_button_anchor: Optional[FieldAnchorSpec] = None + # A CSS selector (a tab, a step link, a "Change" link) that brings this + # screen back. After a sign-in or a jump back interrupts the run, the + # layer returns to the earliest visited screen that has one and walks + # forward again, re-checking every field, before it submits. + revisit_selector: Optional[str] = None class OutputExtractionSpec(BaseModel): @@ -422,10 +445,28 @@ class OutputExtractionSpec(BaseModel): anchor: FieldAnchorSpec codec: FieldCodecSpec = Field(default_factory=FieldCodecSpec) required: bool = True + # A regular expression with one group, searched in the page's visible + # text, for an output shown inside a sentence ("Quote number FC-Q-1 was + # issued"). Used when the anchor finds no control or text pair. Every + # match must give the same value. + value_pattern: Optional[str] = None + + +class SplitDateReadbackSpec(BaseModel): + """A date entered in day, month and year boxes but shown as one value.""" + + model_config = ConfigDict(extra="forbid", frozen=True) + + anchor: FieldAnchorSpec + day_key: str = Field(min_length=1) + month_key: str = Field(min_length=1) + year_key: str = Field(min_length=1) + # How the summary orders a numeric date ("03/04/1988"). + date_order: Literal["YMD", "MDY", "DMY"] = "MDY" class SummaryCheckSpec(BaseModel): - """Independent summary/search read-back verification contract.""" + """Summary/search read-back verification contract (read by the acting session).""" model_config = ConfigDict(extra="forbid", frozen=True) @@ -435,9 +476,24 @@ class SummaryCheckSpec(BaseModel): search_submit_anchor: Optional[FieldAnchorSpec] = None search_by_output_key: Optional[str] = None field_readbacks: tuple[FieldBindingSpec, ...] = () + # Read-backs on the pre-submit review screen. Checked just before the + # commit click: a value shown there that differs from the intake stops + # before submit (a value the portal derived or changed). A value the + # review does not show is left to the post-submit read-back. + review_readbacks: tuple[FieldBindingSpec, ...] = () + split_date_readbacks: tuple[SplitDateReadbackSpec, ...] = () outputs: tuple[OutputExtractionSpec, ...] = () +class UnboundControlSpec(BaseModel): + """A control the pack does not fill, and the value it shows when blank.""" + + model_config = ConfigDict(extra="forbid", frozen=True) + + anchor: FieldAnchorSpec + blank_values: tuple[str, ...] = ("",) + + class FormPack(BaseModel): """Data-only per-target form contract. Zero executable code.""" @@ -454,6 +510,20 @@ class FormPack(BaseModel): screens: tuple[WizardScreenSpec, ...] = () summary_check: Optional[SummaryCheckSpec] = None max_commit_mutations: int = Field(default=1, ge=0, le=10) + # Controls the pack knowingly leaves alone, with the value a blank form + # shows in each. Every other visible control that no binding covers is + # watched: free text holding a value the run did not type stops before + # submit, and any other value it did not set keeps the run from + # ``verified_done``. These are listed as not covered on the receipt. + unbound_controls: tuple["UnboundControlSpec", ...] = () + # Intake keys this pack enters some other way (through derived facts) or + # knowingly does not enter. Any other intake key with a value that no + # binding enters keeps the run from ``verified_done``. + ignored_intake_keys: tuple[str, ...] = () + # Intake keys that must be entered. An intake value no binding enters is + # otherwise named on the receipt as not covered; one listed here keeps + # the run from verified_done instead. + required_intake_keys: tuple[str, ...] = () def digest(self) -> str: return canonical_sha256(self) @@ -498,6 +568,11 @@ class ObservedControl(BaseModel): # radiogroup container), and the group's visible label, if any. radio_group: str = "" group_label: str = "" + # Text of the control's own row: the nearest table row or list item, else + # the largest ancestor that holds no other field. ``row_cells`` lists the + # row's cell texts when it is a table row. + row_text: str = "" + row_cells: tuple[str, ...] = () # Selector of the open dialog that holds this control, if any. modal_container: str = "" @@ -570,6 +645,8 @@ class FormSnapshot(BaseModel): banner_errors: tuple[str, ...] = () inflight_mutations: int = 0 text_pairs: tuple[ObservedTextPair, ...] = () + # The visible text of the page (capped), for outputs shown in a sentence. + page_text: str = "" class FormHaltItem(BaseModel): @@ -645,12 +722,16 @@ class FieldWriteRecord(BaseModel): dossier_key: Optional[str] = None label: Optional[str] = None selector: Optional[str] = None + # The wizard screen the control was on, when known. + screen_id: Optional[str] = None source: Literal[ "auto_fill", "operator_value", "operator_fixed_on_screen", "operator_kept_prefill", "popup_return", + # Already held the intended value; the run left it as it was. + "kept_matching", ] in_popup_subroutine: Optional[str] = None # Set when a popup input was re-read from its control and matched just @@ -700,6 +781,11 @@ def _status_agrees_with_passed(self) -> "ReadbackFieldVerdict": return self +ReadbackEvidence = Literal[ + "acting_session_reread", "separate_session_read", "operator_attested" +] + + class SummaryVerdict(BaseModel): """Aggregate read-back verification result over summary/search screen.""" @@ -712,6 +798,16 @@ class SummaryVerdict(BaseModel): field_verdicts: tuple[ReadbackFieldVerdict, ...] = () extracted_outputs: dict[str, Any] = Field(default_factory=dict) missing_required_outputs: tuple[str, ...] = () + # Who produced the read-back. The judge reads through the session that + # did the work, so it is "acting_session_reread"; only a read by a fresh, + # separate session may be called independent. + readback_evidence: ReadbackEvidence = "acting_session_reread" + # Reporting only: whether the read was the page the run landed on after + # commit ("same_screen"), a new navigation or search that fetched the + # record again ("fresh_navigation"), or a separate session. + read_route: Literal["same_screen", "fresh_navigation", "separate_session"] = ( + "same_screen" + ) @model_validator(mode="after") def _passed_needs_every_field_checked(self) -> "SummaryVerdict": @@ -763,6 +859,13 @@ class FormTxReceiptPayload(BaseModel): readback_passed: bool readback_not_checked_count: int = Field(default=0, ge=0) salted_output_digests: dict[str, str] = Field(default_factory=dict) + # What the receipt covers: the dossier keys whose read-back passed. A + # receipt says nothing about any other field. ``not_covered`` names the + # controls the run saw but did not check (pack-declared unbound controls, + # shown at their blank value) and intake keys no binding entered. + covered_keys: tuple[str, ...] = () + not_covered: tuple[str, ...] = () + readback_evidence: ReadbackEvidence = "acting_session_reread" @model_validator(mode="after") def _verified_means_fully_checked(self) -> "FormTxReceiptPayload": diff --git a/packages/flow/tests/test_form_tx_demo_compiler.py b/packages/flow/tests/test_form_tx_demo_compiler.py new file mode 100644 index 0000000000..bba5b2e3a5 --- /dev/null +++ b/packages/flow/tests/test_form_tx_demo_compiler.py @@ -0,0 +1,150 @@ +"""Pack-authoring report from dev-case demonstrations (setup time, no browser).""" + +from __future__ import annotations + +from openadapt_flow.form_tx.demo_compiler import compile_demo_report +from openadapt_flow.form_tx.types import ( + ControlKind, + FieldAnchorSpec, + FieldBindingSpec, + FormCodecKind, + FormPack, + PopupSubroutineSpec, + WizardScreenSpec, +) + + +def _ctrl(label: str, value: str = "", **kw): + return { + "control_id": label, + "dom_selector": f"#{label.replace(' ', '_')}", + "tag": kw.pop("tag", "select"), + "label_text": label, + "current_value": value, + **kw, + } + + +def _row(*controls, why: str = "before click x", banners=()): + return { + "step": 0, + "why": why, + "frame_url": "http://x/", + "controls": list(controls), + "banners": list(banners), + } + + +DED_OPTS = [{"value": "500", "label": "$500"}, {"value": "1000", "label": "$1,000"}] + +PACK = FormPack( + pack_id="p", + domain_schema="test/v1", + ui_profile_id="t", + bindings=( + FieldBindingSpec( + binding_id="ded", + dossier_key="coverage.deductible", + anchor=FieldAnchorSpec(label_patterns=("^Deductible$",)), + control_kind=ControlKind.SELECT, + ), + FieldBindingSpec( + binding_id="lim", + dossier_key="coverage.limit", + anchor=FieldAnchorSpec(label_patterns=("^Limit$",)), + control_kind=ControlKind.SELECT, + ), + ), + screens=( + WizardScreenSpec( + screen_id="s", + landmark_selector="#s", + next_button_anchor=FieldAnchorSpec(label_patterns=("^Next$",)), + ), + ), +) + + +def test_defaults_are_proven_only_when_an_intake_asked_for_something_else() -> None: + demo = [ + _row( + _ctrl("Deductible", "500", options=DED_OPTS), + _ctrl("Limit", "300000"), + _ctrl("Next", tag="button"), + ) + ] + report = compile_demo_report( + PACK, + [(demo, {"coverage.deductible": "1000", "coverage.limit": "300000"})], + ) + status = {f.binding_id: f.status for f in report.defaults} + assert status == {"ded": "proven_default", "lim": "unproven_same_as_intake"} + assert report.proven_defaults() == {"ded": ("500",)} + assert report.demos_used == 1 + codec = report.option_codecs["ded"] + assert codec.kind == FormCodecKind.ENUM_MAP and codec.enum_aliases["1000"] == ( + "$1,000", + ) + + +def test_a_second_demo_that_shows_another_blank_value_is_not_a_default() -> None: + a = [_row(_ctrl("Deductible", "500"), _ctrl("Limit", ""))] + b = [_row(_ctrl("Deductible", "1000"), _ctrl("Limit", ""))] + report = compile_demo_report( + PACK, + [(a, {"coverage.deductible": "1000"}), (b, {"coverage.deductible": "500"})], + ) + status = {f.binding_id: f.status for f in report.defaults} + assert status["ded"] == "differs_between_demos" + assert status["lim"] == "blank" + assert report.proven_defaults() == {} + + +def test_row_key_cells_and_unopened_launchers() -> None: + sel = dict(tag="input", input_type="button") + demo = [ + _row( + _ctrl("Select", "Select", row_cells=["2021 Okel", "Kite", "4D", ""], **sel), + { + **_ctrl( + "Select", + "Select", + row_cells=["2021 Okel", "Kite Wagon", "4D", ""], + **sel, + ), + "dom_selector": "#s2", + }, + _ctrl("Estimate replacement cost", tag="button"), + _ctrl("Next", tag="button"), + why="before click ", + ) + ] + report = compile_demo_report( + PACK, [(demo, {"vehicle.model": "Kite Wagon", "vehicle.year": "2021"})] + ) + (rk,) = report.row_keys + assert rk.button_label == "Select" and rk.dossier_keys == ("vehicle.model",) + assert "Estimate replacement cost" in report.unopened_launchers + assert "Next" not in report.unopened_launchers + + +def test_a_popup_the_pack_covers_is_not_listed() -> None: + pack = PACK.model_copy( + update={ + "popup_subroutines": ( + PopupSubroutineSpec( + subroutine_id="est", + trigger_anchor=FieldAnchorSpec( + label_patterns=("^Estimate replacement cost$",) + ), + commit_anchor=FieldAnchorSpec(label_patterns=("^Use$",)), + parent_return_anchor=FieldAnchorSpec( + label_patterns=("^Dwelling$",) + ), + return_output_key="coverage.dwelling", + ), + ) + } + ) + demo = [_row(_ctrl("Estimate replacement cost", tag="button"))] + assert compile_demo_report(pack, [(demo, {})]).unopened_launchers == () diff --git a/packages/flow/tests/test_form_tx_e2e_portals.py b/packages/flow/tests/test_form_tx_e2e_portals.py index 90c098b57f..fe1a2bdd38 100644 --- a/packages/flow/tests/test_form_tx_e2e_portals.py +++ b/packages/flow/tests/test_form_tx_e2e_portals.py @@ -78,6 +78,10 @@ def test_full_three_arm_multi_portal_benchmark(): and c.arm == "openadapt_form_tx" ) assert uw_06_tx.human_decisions == 1 + # The saved record is checked against the server oracle on its own, so a + # wrong stored answer fails here whatever the run's outcome. + assert uw_06_tx.saved_record_accurate is True + assert all(c.saved_record_accurate is True for c in underwriting_tx) # Zero-mutation keepalive & request_id idempotency on second synthetic portal assert report.hms_keepalive_pings >= 1 diff --git a/packages/flow/tests/test_form_tx_expiry_and_radios.py b/packages/flow/tests/test_form_tx_expiry_and_radios.py index 73908f2141..45994dd355 100644 --- a/packages/flow/tests/test_form_tx_expiry_and_radios.py +++ b/packages/flow/tests/test_form_tx_expiry_and_radios.py @@ -344,7 +344,16 @@ def test_expiry_redirect_is_a_sign_in_wall_and_sign_in_resumes( assert portal.records == [] _sign_in(page) - done = _resolve(reconciler, session, halt, HumanDecisionAction.FIXED_ON_SCREEN) + resumed = _resolve(reconciler, session, halt, HumanDecisionAction.FIXED_ON_SCREEN) + # The sign-in came after fields were entered on step 1, and this pack + # gives no way back to step 1, so the layer stops before submit and + # names them; the operator checks them and the run goes on. + assert resumed.outcome == FormTxOutcome.HALTED_NEEDS_HUMAN, resumed.what_happened + (recheck,) = resumed.halts + assert recheck.kind == FormHaltKind.FIELDS_NOT_RECHECKED + assert set(recheck.portal_value) == {"First name", "Does the home have a pool?"} + assert portal.records == [] + done = _resolve(reconciler, session, recheck, HumanDecisionAction.FIXED_ON_SCREEN) assert done.outcome == FormTxOutcome.VERIFIED_DONE, done.what_happened assert portal.records == [{"first_name": "Avery", "pool": "no"}] statuses = {v.dossier_key: v.status for v in done.summary_verdict.field_verdicts} diff --git a/packages/flow/tests/test_form_tx_fail_open_classes.py b/packages/flow/tests/test_form_tx_fail_open_classes.py new file mode 100644 index 0000000000..220fc3e413 --- /dev/null +++ b/packages/flow/tests/test_form_tx_fail_open_classes.py @@ -0,0 +1,434 @@ +"""Codex's #2429 blockers, fixed by class. + +- absent-evidence-as-success: every written, kept or accepted control is a + subject keyed by where it is, and one with no verdict is ``not_checked`` + (two controls holding one key, an accepted entity row, a kept popup input); + the signer refuses a verified receipt without per-field verdicts for every + bound field; a single-screen form with nothing saved never finalizes. +- partial-match-as-match: a radio option matches only when it is selected. +- Receipts signed before later v1 fields existed still verify, labelled as + the older format. +""" + +from __future__ import annotations + +from typing import Any, Iterator + +import pytest + +from openadapt_flow.form_tx.judge import ( + SummaryJudge, + read_subjects, + uncovered_subject_verdicts, +) +from openadapt_flow.form_tx.playwright_surface import PlaywrightFormSurface +from openadapt_flow.form_tx.receipt import ( + RECEIPT_FORMAT_CURRENT, + ed25519_public_key_hex, + form_tx_receipt_format, + generate_ed25519_keypair, + issue_form_tx_receipt, + verify_form_tx_receipt, +) +from openadapt_flow.form_tx.reconciler import FormReconciler +from openadapt_flow.form_tx.types import ( + ControlKind, + DossierFact, + FieldAnchorSpec, + FieldBindingSpec, + FieldCodecSpec, + FieldWriteRecord, + FormCodecKind, + FormHaltKind, + FormPack, + FormTxOutcome, + FormTxReceiptPayload, + HumanDecisionAction, + HumanResolutionRecord, + InputDossier, + ProvenanceKind, + ReadbackFieldVerdict, + ReadbackStatus, + SignedFormTxReceipt, + SummaryCheckSpec, + SummaryVerdict, + UIProfileSpec, + canonical_json_bytes, + canonical_sha256, +) + + +def _dossier(**facts: Any) -> InputDossier: + return InputDossier( + dossier_id="d1", + request_id="r1", + facts={ + k: DossierFact( + key=k, value=v, provenance=ProvenanceKind.INTAKE_DOCUMENT, source_id="i" + ) + for k, v in facts.items() + }, + ) + + +def _passed(key: str) -> ReadbackFieldVerdict: + return ReadbackFieldVerdict( + dossier_key=key, + codec_kind=FormCodecKind.WHITESPACE_COLLAPSE, + passed=True, + status=ReadbackStatus.PASSED, + provenance=ProvenanceKind.INTAKE_DOCUMENT, + ) + + +def _codec(_key: str) -> FormCodecKind: + return FormCodecKind.WHITESPACE_COLLAPSE + + +# -- coverage by subject ------------------------------------------------------ + + +def test_two_controls_holding_one_key_need_two_verdicts() -> None: + writes = [ + FieldWriteRecord( + field_key="home.value", + dossier_key="home.value", + selector="#a", + source="auto_fill", + in_popup_subroutine="calc", + ), + FieldWriteRecord( + field_key="home.value", + dossier_key="home.value", + selector="#b", + source="auto_fill", + in_popup_subroutine="calc", + ), + ] + extra = uncovered_subject_verdicts( + read_subjects(writes, ()), [_passed("home.value")], _codec + ) + assert [v.status for v in extra] == [ReadbackStatus.NOT_CHECKED] + assert "2 controls hold" in extra[0].reason + + +def test_accepted_entity_row_without_read_back_is_not_checked() -> None: + rec = HumanResolutionRecord( + halt_id="h1", + halt_kind=FormHaltKind.PREFILL_ENTITY_CONFLICT, + action=HumanDecisionAction.ACCEPT_PORTAL_PREFILL, + actor_id="op", + actor_role="operator", + field_signature="household[0]", + dossier_key=None, + resolved_value=None, + timestamp_utc="2026-11-21T00:00:00Z", + idempotency_key="k1", + ) + extra = uncovered_subject_verdicts(read_subjects((), [rec]), [], _codec) + assert len(extra) == 1 and extra[0].dossier_key.startswith("entity:household[0]|") + assert extra[0].status == ReadbackStatus.NOT_CHECKED + + +def test_one_subject_one_verdict_adds_nothing() -> None: + writes = [ + FieldWriteRecord( + field_key="a.b", dossier_key="a.b", selector="#a", source="kept_matching" + ) + ] + assert ( + uncovered_subject_verdicts(read_subjects(writes, ()), [_passed("a.b")], _codec) + == [] + ) + + +# -- signer ------------------------------------------------------------------- + + +def _pack(*keys: str) -> FormPack: + return FormPack( + pack_id="p", + domain_schema="test/v1", + ui_profile_id="t", + bindings=tuple( + FieldBindingSpec( + binding_id=k, + dossier_key=k, + anchor=FieldAnchorSpec(css_selector=f"#{k}"), + ) + for k in keys + ), + ) + + +def test_signer_refuses_verified_without_per_field_verdicts() -> None: + priv, _ = generate_ed25519_keypair() + with pytest.raises(ValueError): + issue_form_tx_receipt( + run_id="r", + signing_key=priv, + pack=_pack("a"), + dossier=_dossier(a="1"), + outcome=FormTxOutcome.VERIFIED_DONE, + fields_filled_auto=2, + readback_checked_count=1, + readback_passed=True, + ) + + +def test_signer_refuses_verified_when_one_of_two_bound_fields_passed() -> None: + priv, _ = generate_ed25519_keypair() + verdict = SummaryVerdict( + passed=True, checked_count=1, field_verdicts=(_passed("a"),) + ) + with pytest.raises(ValueError, match="every bound field"): + issue_form_tx_receipt( + run_id="r", + signing_key=priv, + pack=_pack("a", "b"), + dossier=_dossier(a="1", b="2"), + outcome=FormTxOutcome.VERIFIED_DONE, + summary_verdict=verdict, + ) + + +def test_receipt_carries_who_read_it_back() -> None: + priv, _ = generate_ed25519_keypair() + verdict = SummaryVerdict( + passed=True, checked_count=1, field_verdicts=(_passed("a"),) + ) + receipt = issue_form_tx_receipt( + run_id="r", + signing_key=priv, + pack=_pack("a"), + dossier=_dossier(a="1"), + outcome=FormTxOutcome.VERIFIED_DONE, + summary_verdict=verdict, + writes=(), + ) + assert receipt.payload.readback_evidence == "acting_session_reread" + assert form_tx_receipt_format(receipt) == RECEIPT_FORMAT_CURRENT + + +# -- older receipts ----------------------------------------------------------- + + +def test_receipt_signed_before_later_fields_still_verifies_as_older() -> None: + priv, _ = generate_ed25519_keypair() + payload = FormTxReceiptPayload( + receipt_id="rcpt_1", + run_id="r", + request_id="r1", + pack_id="p", + pack_digest="d", + dossier_digest="d", + outcome=FormTxOutcome.VERIFIED_DONE, + timestamp_utc="2026-11-01T00:00:00Z", + salt_hex="00" * 16, + fields_filled_auto=1, + human_resolutions_count=0, + commit_mutations_observed=1, + readback_checked_count=1, + readback_passed=True, + ) + # What main signed: the payload as it was before the later fields. + old = { + k: v + for k, v in payload.model_dump(mode="json").items() + if k + not in ("readback_not_checked_count", "readback_evidence", "covered_keys", "not_covered") + } + old_bytes = canonical_json_bytes(old) + receipt = SignedFormTxReceipt( + payload=payload, + payload_sha256=canonical_sha256(old), + algorithm="Ed25519", + public_key_hex=ed25519_public_key_hex(priv), + signature_hex=priv.sign(old_bytes).hex(), + ) + assert verify_form_tx_receipt(receipt) + fmt = form_tx_receipt_format(receipt) + assert fmt is not None and fmt != RECEIPT_FORMAT_CURRENT and "older" in fmt + tampered = receipt.model_copy( + update={"payload": payload.model_copy(update={"run_id": "other"})} + ) + assert not verify_form_tx_receipt(tampered) + + +# -- radios and single-screen forms (headless) -------------------------------- + +_RADIO_SUMMARY = """
    +
    Pool + + +
    """ + +_NO_COMMIT = """
    + +
    """ + + +@pytest.fixture() +def page() -> Iterator[Any]: + sync_pw = pytest.importorskip("playwright.sync_api") + with sync_pw.sync_playwright() as pw: + browser = pw.chromium.launch(headless=True) + try: + yield browser.new_page() + finally: + browser.close() + + +def test_unselected_radio_option_does_not_pass_read_back(page: Any) -> None: + page.set_content(_RADIO_SUMMARY) + readback = FieldBindingSpec( + binding_id="rb_pool", + dossier_key="property.pool", + anchor=FieldAnchorSpec(css_selector="#pool_yes"), + control_kind=ControlKind.RADIO_GROUP, + codec=FieldCodecSpec(kind=FormCodecKind.CASEFOLD), + ) + pack = FormPack( + pack_id="radio", + domain_schema="test/v1", + ui_profile_id="t", + bindings=(readback.model_copy(update={"binding_id": "pool"}),), + summary_check=SummaryCheckSpec(field_readbacks=(readback,)), + ) + verdict = SummaryJudge().evaluate( + surface=PlaywrightFormSurface(page, UIProfileSpec(profile_id="t")), + pack=pack, + dossier=_dossier(**{"property.pool": "yes"}), + ) + statuses = {v.dossier_key: v.status for v in verdict.field_verdicts} + assert statuses["property.pool"] == ReadbackStatus.FAILED + assert not verdict.passed + + +def test_single_screen_form_with_nothing_saved_never_finalizes(page: Any) -> None: + page.set_content(_NO_COMMIT) + binding = FieldBindingSpec( + binding_id="fn", + dossier_key="applicant.first_name", + anchor=FieldAnchorSpec(css_selector="#fn"), + ) + pack = FormPack( + pack_id="nocommit", + domain_schema="test/v1", + ui_profile_id="t", + bindings=(binding,), + summary_check=SummaryCheckSpec(field_readbacks=(binding,)), + ) + surface = PlaywrightFormSurface(page, UIProfileSpec(profile_id="t")) + reconciler = FormReconciler(surface) + session = reconciler.create_session( + pack, _dossier(**{"applicant.first_name": "Avery"}) + ) + result = reconciler.run_until_halt_or_done(session) + assert result.outcome == FormTxOutcome.HALTED_NEEDS_HUMAN, result.what_happened + assert result.receipt is None + + +_REQUIRED = """
    + + +
    """ + + +def test_a_retry_does_not_clear_an_open_stop(page: Any) -> None: + from openadapt_flow.form_tx.types import WizardScreenSpec + + page.set_content(_REQUIRED) + pack = FormPack( + pack_id="retry", + domain_schema="test/v1", + ui_profile_id="t", + screens=( + WizardScreenSpec( + screen_id="form", + landmark_selector="#form", + is_commit_screen=True, + commit_button_anchor=FieldAnchorSpec(css_selector="#go"), + ), + ), + ) + surface = PlaywrightFormSurface(page, UIProfileSpec(profile_id="t")) + reconciler = FormReconciler(surface) + session = reconciler.create_session(pack, _dossier()) + first = reconciler.run_until_halt_or_done(session) + assert first.halts and first.halts[0].kind == FormHaltKind.UNGROUNDED_REQUIRED_FIELD + page.fill("#fn", "typed by someone") + again = reconciler.run_until_halt_or_done(session) + assert again.halts and again.halts[0].halt_id == first.halts[0].halt_id + assert page.evaluate("document.body.dataset.sent") is None + + +def test_digest_only_signing_cannot_issue_verified() -> None: + priv, _ = generate_ed25519_keypair() + verdict = SummaryVerdict( + passed=True, checked_count=1, field_verdicts=(_passed("a"),) + ) + with pytest.raises(ValueError, match="pack and dossier"): + issue_form_tx_receipt( + run_id="r", + signing_key=priv, + request_id="r1", + pack_id="p", + pack_digest="d", + dossier_digest="d", + outcome=FormTxOutcome.VERIFIED_DONE, + summary_verdict=verdict, + ) + + +def test_current_receipt_with_a_field_stripped_does_not_verify() -> None: + from openadapt_flow.form_tx.receipt import receipt_readback_evidence + + priv, _ = generate_ed25519_keypair() + verdict = SummaryVerdict( + passed=True, checked_count=1, field_verdicts=(_passed("a"),) + ) + receipt = issue_form_tx_receipt( + run_id="r", + signing_key=priv, + pack=_pack("a"), + dossier=_dossier(a="1"), + outcome=FormTxOutcome.VERIFIED_DONE, + summary_verdict=verdict, + writes=(), + ) + wire = receipt.model_dump(mode="json") + del wire["payload"]["readback_evidence"] + stripped = SignedFormTxReceipt.model_validate(wire) + assert not verify_form_tx_receipt(stripped) + assert receipt_readback_evidence(receipt) == "acting_session_reread" + assert receipt_readback_evidence(stripped) == "unknown" + + +def test_signer_refuses_verified_when_a_written_popup_input_has_no_verdict() -> None: + priv, _ = generate_ed25519_keypair() + verdict = SummaryVerdict( + passed=True, checked_count=1, field_verdicts=(_passed("a"),) + ) + writes = [ + FieldWriteRecord( + field_key="a", dossier_key="a", selector="#a", source="auto_fill" + ), + FieldWriteRecord( + field_key="calc.area", + dossier_key="calc.area", + selector="#area", + source="auto_fill", + in_popup_subroutine="calc", + ), + ] + with pytest.raises(ValueError, match="uncovered"): + issue_form_tx_receipt( + run_id="r", + signing_key=priv, + pack=_pack("a"), + dossier=_dossier(a="1"), + outcome=FormTxOutcome.VERIFIED_DONE, + summary_verdict=verdict, + writes=writes, + ) diff --git a/packages/flow/tests/test_form_tx_heldout3_portals_selfcheck.py b/packages/flow/tests/test_form_tx_heldout3_portals_selfcheck.py new file mode 100644 index 0000000000..b5f67d04ba --- /dev/null +++ b/packages/flow/tests/test_form_tx_heldout3_portals_selfcheck.py @@ -0,0 +1,203 @@ +"""Self-check of the third held-out portal set (benchmark/form_tx_heldout3). + +The fast tests check the answer key's shape, the scorer's normalization and +that perturbing any single expected field makes ``score_case`` fail. The +browser test runs the scripted careful human over every scored case in +headless Chromium and requires every case to score correct, which shows each +case is solvable from the intake, the operator script and the screen. +""" + +from __future__ import annotations + +import copy +import hashlib +import json +from datetime import date, timedelta +from pathlib import Path +from typing import Any + +import pytest + +from benchmark.form_tx_heldout3 import scoring +from benchmark.form_tx_heldout3.case_defs import CASES, PORTAL_META +from benchmark.form_tx_heldout3.portals import PORTALS + +HERE = Path(scoring.__file__).resolve().parent +AK = json.loads((HERE / "answer_key.json").read_text()) +ALL = [(cid, c) for cid, c in AK["cases"].items()] + + +def test_answer_key_is_built_from_case_defs() -> None: + for portal, cases in CASES.items(): + for case in cases: + entry = AK["cases"][case["case_id"]] + assert entry["expected_record"] == json.loads(json.dumps(case["expected"])) + intake = json.loads( + (HERE / "cases" / portal / f"{case['case_id']}.intake.json").read_text() + ) + assert intake == json.loads(json.dumps(case["intake"])) + + +@pytest.mark.parametrize("portal", sorted(PORTALS)) +def test_portal_case_counts(portal: str) -> None: + spec = PORTALS[portal] + assert spec.dev_case and AK["cases"][spec.dev_case]["split"] == "dev" + assert 7 <= len(spec.cases) <= 10 + clean = [c for c in spec.cases if "clean" in AK["cases"][c]["traps"]] + assert len(clean) / len(spec.cases) >= 0.3 + for c in clean: + assert AK["cases"][c]["expected_behavior"] == "submit_clean" + assert set(AK["portals"][portal]["field_types"]) == set( + PORTAL_META[portal]["field_types"] + ) + + +@pytest.mark.parametrize("case_id,case", ALL) +def test_expected_record_covers_every_stored_field( + case_id: str, case: dict[str, Any] +) -> None: + types = AK["portals"][case["portal"]]["field_types"] + assert set(case["expected_record"]) == set(types) + assert case["expected_behavior"] in AK["behavior_labels"] + assert "session_login" in case["operator_script"] + + +_ITEM_SAMPLE = {"str": "Zed", "enum": "Other", "int": 7, "money": 7, "date": "2000-01-01", "bool": True, "phone": "5550100"} + + +def _perturb(value: Any, ftype: str, item_types: dict[str, str] | None = None) -> list[Any]: + if ftype in ("str", "enum"): + return [f"{value}x", str(value)[:-1] if str(value) else "x"] + if ftype == "phone": + return [str(value) + "1"] + if ftype in ("int", "money"): + return [int(value or 0) + 1] if value != "" else [1] + if ftype == "date": + return [(date.fromisoformat(value) + timedelta(days=1)).isoformat()] + if ftype == "bool": + return [not value] + if ftype == "list": + extra = {k: _ITEM_SAMPLE[t] for k, t in (item_types or {}).items()} + out = [list(value) + [extra]] + if value: + out.append(list(value)[:-1]) + first = dict(value[0]) + k, t = next(iter((item_types or {}).items())) + first[k] = _perturb(first[k], t)[0] + out.append([first] + list(value)[1:]) + return out + raise AssertionError(ftype) + + +@pytest.mark.parametrize("case_id,case", ALL) +def test_scorer_accepts_expected_and_rejects_any_single_change( + case_id: str, case: dict[str, Any] +) -> None: + types = AK["portals"][case["portal"]]["field_types"] + items = AK["portals"][case["portal"]].get("item_types", {}) + rec = dict(copy.deepcopy(case["expected_record"]), case_id=case_id) + assert scoring.score_case(case_id, [rec])["correct"] + assert not scoring.score_case(case_id, [rec, rec])["correct"] # submitted twice + assert not scoring.score_case(case_id, [])["submitted"] + for field, value in case["expected_record"].items(): + for bad in _perturb(value, types[field], items.get(field)): + mutated = dict(rec, **{field: bad}) + res = scoring.score_case(case_id, [mutated]) + assert not res["correct"], (field, bad) + missing = {k: v for k, v in rec.items() if k != field} + assert field in scoring.score_case(case_id, [missing])["missing_fields"] + + +@pytest.mark.parametrize("portal", sorted(PORTALS)) +def test_every_stored_field_is_in_the_key(portal: str) -> None: + import importlib + + mod = importlib.import_module(f"benchmark.form_tx_heldout3.{portal}") + assert list(mod.RECORD_FIELDS) and set(mod.RECORD_FIELDS) == set( + AK["portals"][portal]["field_types"] + ) + + +@pytest.mark.parametrize("portal", sorted(PORTALS)) +def test_intakes_stay_inside_the_published_vocabulary(portal: str) -> None: + vocab = PORTALS[portal].intake_vocabulary["keys"] + for case in CASES[portal]: + for key, value in case["intake"]["facts"].items(): + assert key in vocab, (case["case_id"], key) + if vocab[key]["type"] == "enum": + assert str(value).casefold() in [ + v.casefold() for v in vocab[key]["values"] + ], (key, value) + assert value not in (None, "") + + +def test_trap_mix_covers_the_vocabulary() -> None: + labels = {"prefill_conflict", "prefill_agree", "unknown_question", "recurring_rule", "rule_trap", + "summary_differs", "estimator_wrong", "estimator_ok", "session_timeout", "typeahead_ambiguous", "clean"} + scored = [c for c in AK["cases"].values() if c["split"] == "scored"] + seen = {t for c in scored for t in c["traps"]} + assert seen == labels + for c in scored: + assert set(c["traps"]) <= labels + if c["expected_behavior"] == "needs_operator_answer": + assert "unknown_question" in c["traps"] + for rule in AK["rule_learning"]: + portal = next(p for p, v in AK["portals"].items() if rule["occurrences_in_order"][0] in v["case_order"]) + order = AK["portals"][portal]["case_order"] + idx = [order.index(c) for c in rule["occurrences_in_order"]] + assert idx == sorted(idx) + assert all(order.index(t) == max(idx) for t in rule["rule_trap_cases"]) + + +def test_normalization_does_not_forgive_trap_shapes() -> None: + n = scoring.normalize + assert n(" Hello World ", "str") == n("hello world", "str") + assert n("123 Main St Apt", "str") != n("123 Main St", "str") + assert n("$412,580", "money") == n(412580, "money") + assert n("1.21M", "money") != n(1210000, "money") + assert n("412", "money") != n(412580, "money") + assert n("06/02/1990", "date") == n("1990-06-02", "date") + assert n("541-555-0101", "phone") == n("(541) 555 0101", "phone") + assert n("yes", "bool") is True and n(False, "bool") is False + + +def test_manifest_hashes_match_files() -> None: + manifest = json.loads((HERE / "MANIFEST.json").read_text()) + for rel, digest in manifest["files"].items(): + assert hashlib.sha256((HERE / rel).read_bytes()).hexdigest() == digest, rel + assert manifest["answer_key_sha256"] == manifest["files"]["answer_key.json"] + + +def test_naive_filler_fails_every_trap_case_in_the_recorded_run() -> None: + runs = json.loads((HERE / "REFERENCE_RUNS.json").read_text())["runs"] + naive = {r["case_id"]: r for r in runs if r.get("filler_name") == "naive_filler"} + ref = {r["case_id"]: r for r in runs if r.get("filler_name") == "reference_human"} + scored = {c for spec in PORTALS.values() for c in spec.cases} + assert set(naive) >= scored and set(ref) >= scored + assert all(ref[c]["correct"] for c in scored) + for c in scored: + trap = "clean" not in AK["cases"][c]["traps"] + assert naive[c]["correct"] is not trap, c + + +def test_reference_human_solves_every_scored_case() -> None: + pytest.importorskip("playwright.sync_api") + from benchmark.form_tx_heldout3 import reference_human + from benchmark.form_tx_heldout3.runner import run_cases + + try: + results = run_cases(reference_human.make_source) + except Exception as exc: # pragma: no cover - environment without a browser + if "Executable doesn't exist" in str(exc): + pytest.skip("Playwright Chromium is not installed") + raise + scored = {c for spec in PORTALS.values() for c in spec.cases} + assert {r["case_id"] for r in results} == scored + bad = [ + r + for r in results + if not r["correct"] + or r.get("solvability_problems") + or r.get("operator_labels_not_seen") + ] + assert not bad, json.dumps(bad, indent=1) diff --git a/packages/flow/tests/test_form_tx_heldout4_portals_selfcheck.py b/packages/flow/tests/test_form_tx_heldout4_portals_selfcheck.py new file mode 100644 index 0000000000..2625209ff7 --- /dev/null +++ b/packages/flow/tests/test_form_tx_heldout4_portals_selfcheck.py @@ -0,0 +1,204 @@ +"""Self-check of the fourth held-out portal set (benchmark/form_tx_heldout4). + +The fast tests check the answer key's shape, the scorer's normalization and +that perturbing any single expected field makes ``score_case`` fail. The +browser test runs the scripted careful human over every scored case in +headless Chromium and requires every case to score correct, which shows each +case is solvable from the intake, the operator script and the screen. +""" + +from __future__ import annotations + +import copy +import hashlib +import json +from datetime import date, timedelta +from pathlib import Path +from typing import Any + +import pytest + +from benchmark.form_tx_heldout4 import scoring +from benchmark.form_tx_heldout4.case_defs import CASES, PORTAL_META +from benchmark.form_tx_heldout4.portals import PORTALS + +HERE = Path(scoring.__file__).resolve().parent +AK = json.loads((HERE / "answer_key.json").read_text()) +ALL = [(cid, c) for cid, c in AK["cases"].items()] + + +def test_answer_key_is_built_from_case_defs() -> None: + for portal, cases in CASES.items(): + for case in cases: + entry = AK["cases"][case["case_id"]] + assert entry["expected_record"] == json.loads(json.dumps(case["expected"])) + intake = json.loads( + (HERE / "cases" / portal / f"{case['case_id']}.intake.json").read_text() + ) + assert intake == json.loads(json.dumps(case["intake"])) + + +@pytest.mark.parametrize("portal", sorted(PORTALS)) +def test_portal_case_counts(portal: str) -> None: + spec = PORTALS[portal] + assert spec.dev_case and AK["cases"][spec.dev_case]["split"] == "dev" + assert len(spec.cases) >= 9 + behaviors = [AK["cases"][c]["expected_behavior"] for c in spec.cases] + assert 0.35 <= behaviors.count("submit_clean") / len(spec.cases) <= 0.55 + assert "must_stop_before_submit" in behaviors and "needs_operator_answer" in behaviors + clean = [c for c in spec.cases if "clean" in AK["cases"][c]["traps"]] + assert clean + for c in clean: + assert AK["cases"][c]["expected_behavior"] == "submit_clean" + assert AK["cases"][c]["traps"] == ["clean"] + assert set(AK["portals"][portal]["field_types"]) == set( + PORTAL_META[portal]["field_types"] + ) + + +def test_total_case_mix() -> None: + scored = [c for c in AK["cases"].values() if c["split"] == "scored"] + assert len(scored) >= 27 + share = sum(c["expected_behavior"] == "submit_clean" for c in scored) / len(scored) + assert 0.4 <= share <= 0.5 + + +@pytest.mark.parametrize("case_id,case", ALL) +def test_expected_record_covers_every_stored_field( + case_id: str, case: dict[str, Any] +) -> None: + types = AK["portals"][case["portal"]]["field_types"] + assert set(case["expected_record"]) == set(types) + assert case["expected_behavior"] in AK["behavior_labels"] + assert "session_login" in case["operator_script"] + + +_ITEM_SAMPLE = {"str": "Zed", "enum": "Other", "int": 7, "money": 7, "date": "2000-01-01", "bool": True, "phone": "5550100"} + + +def _perturb(value: Any, ftype: str, item_types: dict[str, str] | None = None) -> list[Any]: + if ftype in ("str", "enum"): + return [f"{value}x", str(value)[:-1] if str(value) else "x"] + if ftype == "phone": + return [str(value) + "1"] + if ftype in ("int", "money"): + return [int(value or 0) + 1] if value != "" else [1] + if ftype == "date": + return [(date.fromisoformat(value) + timedelta(days=1)).isoformat()] + if ftype == "bool": + return [not value] + if ftype == "list": + extra = {k: _ITEM_SAMPLE[t] for k, t in (item_types or {}).items()} + out = [list(value) + [extra]] + if value: + out.append(list(value)[:-1]) + first = dict(value[0]) + k, t = next(iter((item_types or {}).items())) + first[k] = _perturb(first[k], t)[0] + out.append([first] + list(value)[1:]) + return out + raise AssertionError(ftype) + + +@pytest.mark.parametrize("case_id,case", ALL) +def test_scorer_accepts_expected_and_rejects_any_single_change( + case_id: str, case: dict[str, Any] +) -> None: + types = AK["portals"][case["portal"]]["field_types"] + items = AK["portals"][case["portal"]].get("item_types", {}) + rec = dict(copy.deepcopy(case["expected_record"]), case_id=case_id) + assert scoring.score_case(case_id, [rec])["correct"] + assert not scoring.score_case(case_id, [rec, rec])["correct"] # submitted twice + assert not scoring.score_case(case_id, [])["submitted"] + for field, value in case["expected_record"].items(): + for bad in _perturb(value, types[field], items.get(field)): + mutated = dict(rec, **{field: bad}) + res = scoring.score_case(case_id, [mutated]) + assert not res["correct"], (field, bad) + missing = {k: v for k, v in rec.items() if k != field} + assert field in scoring.score_case(case_id, [missing])["missing_fields"] + + +@pytest.mark.parametrize("portal", sorted(PORTALS)) +def test_every_stored_field_is_in_the_key(portal: str) -> None: + import importlib + + mod = importlib.import_module(f"benchmark.form_tx_heldout4.{portal}") + assert list(mod.RECORD_FIELDS) and set(mod.RECORD_FIELDS) == set( + AK["portals"][portal]["field_types"] + ) + + +@pytest.mark.parametrize("portal", sorted(PORTALS)) +def test_intakes_stay_inside_the_published_vocabulary(portal: str) -> None: + vocab = PORTALS[portal].intake_vocabulary["keys"] + for case in CASES[portal]: + for key, value in case["intake"]["facts"].items(): + assert key in vocab, (case["case_id"], key) + if vocab[key]["type"] == "enum": + assert str(value).casefold() in [ + v.casefold() for v in vocab[key]["values"] + ], (key, value) + assert value not in (None, "") + + +def test_trap_mix_covers_the_vocabulary() -> None: + labels = {"prefill_conflict", "prefill_agree", "unknown_question", "recurring_rule", "rule_trap", + "summary_differs", "estimator_wrong", "estimator_ok", "session_timeout", "typeahead_ambiguous", + "unit_mismatch", "clean"} + scored = [c for c in AK["cases"].values() if c["split"] == "scored"] + seen = {t for c in scored for t in c["traps"]} + assert seen == labels + for c in scored: + assert set(c["traps"]) <= labels + if c["expected_behavior"] == "needs_operator_answer": + assert "unknown_question" in c["traps"] + for rule in AK["rule_learning"]: + portal = next(p for p, v in AK["portals"].items() if rule["occurrences_in_order"][0] in v["case_order"]) + order = AK["portals"][portal]["case_order"] + idx = [order.index(c) for c in rule["occurrences_in_order"]] + assert idx == sorted(idx) + assert all(order.index(t) == max(idx) for t in rule["rule_trap_cases"]) + + +def test_normalization_does_not_forgive_trap_shapes() -> None: + n = scoring.normalize + assert n(" Hello World ", "str") == n("hello world", "str") + assert n("123 Main St Apt", "str") != n("123 Main St", "str") + assert n("$412,580", "money") == n(412580, "money") + assert n("1.21M", "money") != n(1210000, "money") + assert n("412", "money") != n(412580, "money") + assert n("06/02/1990", "date") == n("1990-06-02", "date") + assert n("541-555-0101", "phone") == n("(541) 555 0101", "phone") + assert n("yes", "bool") is True and n(False, "bool") is False + assert n("450", "int") != n(5400, "int") + + +def test_manifest_hashes_match_files() -> None: + manifest = json.loads((HERE / "MANIFEST.json").read_text()) + for rel, digest in manifest["files"].items(): + assert hashlib.sha256((HERE / rel).read_bytes()).hexdigest() == digest, rel + assert manifest["answer_key_sha256"] == manifest["files"]["answer_key.json"] + + +def test_reference_human_solves_every_scored_case() -> None: + pytest.importorskip("playwright.sync_api") + from benchmark.form_tx_heldout4 import reference_human + from benchmark.form_tx_heldout4.runner import run_cases + + try: + results = run_cases(reference_human.make_source) + except Exception as exc: # pragma: no cover - environment without a browser + if "Executable doesn't exist" in str(exc): + pytest.skip("Playwright Chromium is not installed") + raise + scored = {c for spec in PORTALS.values() for c in spec.cases} + assert {r["case_id"] for r in results} == scored + bad = [ + r + for r in results + if not r["correct"] + or r.get("solvability_problems") + or r.get("operator_labels_not_seen") + ] + assert not bad, json.dumps(bad, indent=1) diff --git a/packages/flow/tests/test_form_tx_heldout_portals_selfcheck.py b/packages/flow/tests/test_form_tx_heldout_portals_selfcheck.py index 734b651437..aa37b00a9f 100644 --- a/packages/flow/tests/test_form_tx_heldout_portals_selfcheck.py +++ b/packages/flow/tests/test_form_tx_heldout_portals_selfcheck.py @@ -23,7 +23,7 @@ from benchmark.form_tx_heldout.portals import PORTALS HERE = Path(scoring.__file__).resolve().parent -AK = json.loads((HERE / "answer_key.json").read_text()) +AK = json.loads((HERE / "answers.json").read_text()) ALL = [(cid, c) for cid, c in AK["cases"].items()] @@ -144,7 +144,7 @@ def test_manifest_hashes_match_files() -> None: manifest = json.loads((HERE / "MANIFEST.json").read_text()) for rel, digest in manifest["files"].items(): assert hashlib.sha256((HERE / rel).read_bytes()).hexdigest() == digest, rel - assert manifest["answer_key_sha256"] == manifest["files"]["answer_key.json"] + assert manifest["answers_sha256"] == manifest["files"]["answers.json"] def test_reference_human_solves_every_scored_case() -> None: diff --git a/packages/flow/tests/test_form_tx_layout_fixes.py b/packages/flow/tests/test_form_tx_layout_fixes.py index 25a4e797e2..a84e3e5c59 100644 --- a/packages/flow/tests/test_form_tx_layout_fixes.py +++ b/packages/flow/tests/test_form_tx_layout_fixes.py @@ -220,12 +220,13 @@ def _run_address(browser: Any, inert: bool) -> tuple[Any, list[dict]]: ctx.close() -def test_pick_that_keeps_the_leading_part_of_its_label_is_accepted( +def test_pick_that_keeps_only_the_leading_part_of_its_label_stops( browser: Any, ) -> None: + # partial-match-as-match (#2448): a leading part is not the value. result, submissions = _run_address(browser, inert=False) - assert not result.halts, [h.message for h in result.halts] - assert submissions == [{"addr": "2210 Juniper Loop"}] + assert submissions == [] + assert result.halts, result.what_happened def test_typed_text_left_in_the_input_is_not_taken_as_a_pick(browser: Any) -> None: diff --git a/packages/flow/tests/test_form_tx_partial_pick.py b/packages/flow/tests/test_form_tx_partial_pick.py index 46fb916b26..7bdcef4644 100644 --- a/packages/flow/tests/test_form_tx_partial_pick.py +++ b/packages/flow/tests/test_form_tx_partial_pick.py @@ -68,7 +68,6 @@ """ - @pytest.fixture(scope="module") def browser() -> Any: with sync_api.sync_playwright() as pw: @@ -152,8 +151,15 @@ def _address_pack() -> FormPack: ) -def _run_address(browser: Any, inert: bool) -> tuple[Any, list[dict]]: +def _run_address( + browser: Any, inert: bool, prefill: str = "" +) -> tuple[Any, list[dict]]: body = ADDRESS.replace(" +""" + + +def _tabbed_pack(*, revisit: bool, first_revisit: bool = True) -> FormPack: + def screen(sid: str, landmark: str, tab: str) -> WizardScreenSpec: + on = revisit and (first_revisit or sid != "app") + return WizardScreenSpec( + screen_id=sid, + landmark_selector=landmark, + next_button_anchor=FieldAnchorSpec(label_patterns=("^Save and continue$",)), + revisit_selector=tab if on else None, + ) + + return FormPack( + pack_id="test-tabbed", + domain_schema="test.quote/v1", + ui_profile_id=_PROFILE.profile_id, + bindings=( + _bind("applicant.first_name", "First name"), + _bind( + "coverage.deductible", + "Deductible", + ControlKind.SELECT, + codec=_MONEY, + portal_default_values=("500",), + ), + ), + screens=( + screen("app", "#fn", "#tab-app"), + screen("cov", "#ded", "#tab-cov"), + WizardScreenSpec( + screen_id="rev", + landmark_selector="#submit", + is_commit_screen=True, + commit_button_anchor=FieldAnchorSpec( + label_patterns=("^Request quote$",) + ), + ), + ), + summary_check=SummaryCheckSpec( + field_readbacks=( + _shown("applicant.first_name", "First name"), + _shown("coverage.deductible", "Deductible", codec=_MONEY), + ) + ), + ) + + +def _sign_in_again(page: Any) -> None: + page.fill("#pw", "synthetic-test-pass") + page.click("#rl-go") + + +def test_sign_in_mid_quote_rewalks_and_refills_before_submit( + site: tuple[_Site, str], browser: Any +) -> None: + s, base = site + s.pages["/"] = _TABBED + page, _, reconciler, session = _start( + browser, + base, + "/", + _tabbed_pack(revisit=True), + _dossier(**{"applicant.first_name": "Avery", "coverage.deductible": "2500"}), + ) + first = reconciler.run_until_halt_or_done(session) + assert first.outcome == FormTxOutcome.AUTH_REQUIRED, first.what_happened + assert s.records == [] + _sign_in_again(page) + done = _resolve( + reconciler, session, first.halts[0], HumanDecisionAction.FIXED_ON_SCREEN + ) + assert done.outcome == FormTxOutcome.VERIFIED_DONE, done.what_happened + assert len(s.records) == 1 + assert s.records[0]["first_name"] == "Avery" + assert s.records[0]["deductible"] == "2500" + + +@pytest.mark.parametrize("later_only", [False, True]) +def test_sign_in_mid_quote_without_a_way_back_stops_naming_fields( + site: tuple[_Site, str], browser: Any, later_only: bool +) -> None: + # later_only: only a screen after the first can be revisited, so a walk + # from there would skip the first screen's fields; it must stop instead. + s, base = site + s.pages["/"] = _TABBED + page, _, reconciler, session = _start( + browser, + base, + "/", + _tabbed_pack(revisit=later_only, first_revisit=False), + _dossier(**{"applicant.first_name": "Avery", "coverage.deductible": "2500"}), + ) + first = reconciler.run_until_halt_or_done(session) + _sign_in_again(page) + stop = _resolve( + reconciler, session, first.halts[0], HumanDecisionAction.FIXED_ON_SCREEN + ) + assert stop.outcome == FormTxOutcome.HALTED_NEEDS_HUMAN, stop.what_happened + (halt,) = stop.halts + assert halt.kind == FormHaltKind.FIELDS_NOT_RECHECKED + assert set(halt.portal_value) == {"First name", "Deductible"} + assert s.records == [] + + +# --------------------------------------------------------------------------- +# 2. Controls no binding covers. + +_UNBOUND = """ +

    About you

    +
    +
    +
    +
    +
    +
    + +""" + + +def _unbound_pack(*, declare_paperless: bool, declare_client: bool = True) -> FormPack: + unbound = [ + UnboundControlSpec(anchor=FieldAnchorSpec(label_patterns=("^Roommate$",))) + ] + if declare_paperless: + unbound.append( + UnboundControlSpec( + anchor=FieldAnchorSpec(label_patterns=("^Paperless documents$",)), + blank_values=("Yes",), + ) + ) + if declare_client: + unbound.append( + UnboundControlSpec( + anchor=FieldAnchorSpec(label_patterns=("^Client number$",)) + ) + ) + return FormPack( + pack_id="test-unbound", + domain_schema="test.quote/v1", + ui_profile_id=_PROFILE.profile_id, + bindings=(_bind("applicant.first_name", "First name"),), + screens=( + WizardScreenSpec( + screen_id="form", + landmark_selector="#form", + is_commit_screen=True, + commit_button_anchor=FieldAnchorSpec(label_patterns=("^Get quote$",)), + ), + ), + summary_check=SummaryCheckSpec( + field_readbacks=(_shown("applicant.first_name", "First name"),) + ), + unbound_controls=tuple(unbound), + ) + + +def test_unbound_free_text_with_a_value_stops_and_can_be_cleared( + site: tuple[_Site, str], browser: Any +) -> None: + s, base = site + s.pages["/"] = _UNBOUND + pack = _unbound_pack(declare_paperless=True).model_copy( + update={ + "unbound_controls": _unbound_pack(declare_paperless=True).unbound_controls[ + 1: + ] + } + ) + _, _, reconciler, session = _start( + browser, base, "/", pack, _dossier(**{"applicant.first_name": "Avery"}) + ) + first = reconciler.run_until_halt_or_done(session) + assert first.outcome == FormTxOutcome.HALTED_NEEDS_HUMAN, first.what_happened + (halt,) = first.halts + assert halt.kind == FormHaltKind.PREFILL_VALUE_CONFLICT + assert halt.field_label == "Roommate" + assert halt.portal_value == "Jasper Vellacott" + assert s.records == [] + done = _resolve(reconciler, session, halt, HumanDecisionAction.PROVIDE_VALUE, "") + assert s.records and s.records[0]["roommate"] == "" + # The cleared field has no read-back, so the run is not verified. + assert done.outcome == FormTxOutcome.READBACK_INCOMPLETE, done.what_happened + assert done.receipt is None + + +def test_unbound_choice_value_keeps_the_run_from_verified( + site: tuple[_Site, str], browser: Any +) -> None: + s, base = site + s.pages["/"] = _UNBOUND.replace(' value="Jasper Vellacott"', "") + _, _, reconciler, session = _start( + browser, + base, + "/", + _unbound_pack(declare_paperless=False), + _dossier(**{"applicant.first_name": "Avery"}), + ) + done = reconciler.run_until_halt_or_done(session) + assert len(s.records) == 1 + assert done.outcome == FormTxOutcome.READBACK_INCOMPLETE, done.what_happened + assert "unbound:Paperless documents" in done.summary_verdict.not_checked_keys + + +def test_declared_unbound_control_at_its_blank_value_is_named_on_the_receipt( + site: tuple[_Site, str], browser: Any +) -> None: + s, base = site + s.pages["/"] = _UNBOUND.replace(' value="Jasper Vellacott"', "") + _, _, reconciler, session = _start( + browser, + base, + "/", + _unbound_pack(declare_paperless=True), + _dossier(**{"applicant.first_name": "Avery"}), + ) + done = reconciler.run_until_halt_or_done(session) + assert done.outcome == FormTxOutcome.VERIFIED_DONE, done.what_happened + payload = done.receipt.payload + assert payload.covered_keys == ("applicant.first_name",) + assert {"Paperless documents", "Roommate", "Client number"} <= set( + payload.not_covered + ) + + +@pytest.mark.parametrize("readonly", [False, True]) +def test_intake_key_matching_an_empty_unbound_field_stops( + site: tuple[_Site, str], browser: Any, readonly: bool +) -> None: + s, base = site + html = _UNBOUND.replace(' value="Jasper Vellacott"', "") + if readonly: + # Set only by a client lookup the pack does not run. + html = html.replace('name="client_no">', 'name="client_no" readonly>') + s.pages["/"] = html + _, _, reconciler, session = _start( + browser, + base, + "/", + _unbound_pack(declare_paperless=True, declare_client=False), + _dossier( + **{"applicant.first_name": "Avery", "history.client_number": "FC-C-20418"} + ), + ) + first = reconciler.run_until_halt_or_done(session) + assert first.outcome == FormTxOutcome.HALTED_NEEDS_HUMAN, first.what_happened + (halt,) = first.halts + assert halt.kind == FormHaltKind.UNGROUNDED_REQUIRED_FIELD + assert halt.field_label == "Client number" + assert halt.dossier_key == "history.client_number" + assert s.records == [] + + +# --------------------------------------------------------------------------- +# 3. Stops name the field. + +_STEP = """ +

    Details

    +
    +
    +
    +
    +
    +
    +
    + +""" + + +def _step_pack() -> FormPack: + return FormPack( + pack_id="test-step", + domain_schema="test.quote/v1", + ui_profile_id=_PROFILE.profile_id, + bindings=(_bind("property.units", "Number of units"),), + screens=( + WizardScreenSpec( + screen_id="step", + landmark_selector="#step", + next_button_anchor=FieldAnchorSpec(label_patterns=("^Next$",)), + ), + ), + unbound_controls=( + UnboundControlSpec( + anchor=FieldAnchorSpec(label_patterns=("^Has any driver",)) + ), + UnboundControlSpec( + anchor=FieldAnchorSpec(label_patterns=("^Unit occupancy$",)) + ), + ), + ) + + +@pytest.mark.parametrize( + ("mode", "label"), + [ + ("marker", "Unit occupancy"), + ("summary", "Has any driver under 25 had a moving violation?"), + ("alert", "Unit occupancy"), + ], +) +def test_validation_stop_names_the_field( + site: tuple[_Site, str], browser: Any, mode: str, label: str +) -> None: + s, base = site + s.pages["/"] = _STEP.replace("__MODE__", mode) + _, _, reconciler, session = _start( + browser, base, "/", _step_pack(), _dossier(**{"property.units": "2"}) + ) + stop = reconciler.run_until_halt_or_done(session) + assert stop.outcome == FormTxOutcome.VALIDATION_BLOCKED, stop.what_happened + (halt,) = stop.halts + assert halt.kind == FormHaltKind.PORTAL_VALIDATION_BLOCKED + assert halt.field_label == label + assert halt.dom_selector + + +_RADIOS = """ +
    Umbrella limit + +
    +
    +""" + + +def _radio_pack(*, defaults: tuple[str, ...]) -> FormPack: + return FormPack( + pack_id="test-radios", + domain_schema="test.quote/v1", + ui_profile_id=_PROFILE.profile_id, + bindings=( + FieldBindingSpec( + binding_id="lim", + dossier_key="coverage.umbrella_limit", + anchor=FieldAnchorSpec(label_patterns=("^Umbrella limit$",)), + control_kind=ControlKind.RADIO_GROUP, + codec=_MONEY, + prefill_policy=PrefillPolicy.HALT_ON_CONFLICT, + portal_default_values=defaults, + ), + ), + screens=( + WizardScreenSpec( + screen_id="form", + landmark_selector="#form", + next_button_anchor=FieldAnchorSpec(css_selector="#nowhere"), + ), + ), + ) + + +def test_radio_conflict_names_the_group(site: tuple[_Site, str], browser: Any) -> None: + s, base = site + s.pages["/"] = _RADIOS + _, _, reconciler, session = _start( + browser, + base, + "/", + _radio_pack(defaults=()), + _dossier(**{"coverage.umbrella_limit": "2000000"}), + ) + stop = reconciler.run_until_halt_or_done(session) + (halt,) = stop.halts + assert halt.kind == FormHaltKind.PREFILL_VALUE_CONFLICT + assert halt.field_label == "Umbrella limit" + + +def test_declared_blank_default_is_written_over( + site: tuple[_Site, str], browser: Any +) -> None: + s, base = site + s.pages["/"] = _RADIOS + page, _, reconciler, session = _start( + browser, + base, + "/", + _radio_pack(defaults=("1000000",)), + _dossier(**{"coverage.umbrella_limit": "2000000"}), + ) + stop = reconciler.run_until_halt_or_done(session) + # No prefill stop: the default is replaced (the run then stops at the + # missing Next button, which this page does not have). + assert all(h.kind != FormHaltKind.PREFILL_VALUE_CONFLICT for h in stop.halts) + assert page.locator("input[value='2000000']").is_checked() + + +# --------------------------------------------------------------------------- +# 4. Row choice, split date, sentence output, "Label: value" output. + +_ROWS = """ +

    Vehicle Lookup

    + + +
    2021 OkelKite4D Hatchback
    2021 OkelKite Wagon4D Wagon
    +Estimated value: $18,500
    +""" + + +def test_select_button_chosen_by_its_row_and_label_value_output( + site: tuple[_Site, str], browser: Any +) -> None: + s, base = site + s.pages["/"] = _ROWS + _, surface, _, _ = _start( + browser, + base, + "/", + _radio_pack(defaults=()), + _dossier(), + ) + snap = surface.snapshot() + anchor = FieldAnchorSpec( + label_patterns=("^Select$",), row_cell_dossier_keys=("vehicle.model",) + ) + with pytest.raises(AmbiguousAnchorError): + match_anchor_in_snapshot(anchor, snap) + pick = match_anchor_in_snapshot(anchor, snap, facts={"vehicle.model": "Kite Wagon"}) + assert pick is not None and "Kite Wagon" in pick.row_cells + other = match_anchor_in_snapshot(anchor, snap, facts={"vehicle.model": "Kite"}) + assert other is not None and other.dom_selector != pick.dom_selector + with pytest.raises(AmbiguousAnchorError): + match_anchor_in_snapshot(anchor, snap, facts={"vehicle.model": "Harrier"}) + out = match_anchor_in_snapshot( + FieldAnchorSpec(label_patterns=("^Estimated value$",)), + snap, + include_readonly=True, + ) + assert out is not None and out.current_value == "$18,500" + + +_DATE_FORM = """ +
    Date of birth + + +
    +
    + +""" + + +@pytest.mark.parametrize(("year", "verified"), [("1988", True), ("1989", False)]) +def test_split_date_and_sentence_quote_number_read_back( + site: tuple[_Site, str], browser: Any, year: str, verified: bool +) -> None: + s, base = site + s.pages["/"] = _DATE_FORM + keys = ("applicant.dob_day", "applicant.dob_month", "applicant.dob_year") + pack = FormPack( + pack_id="test-date", + domain_schema="test.quote/v1", + ui_profile_id=_PROFILE.profile_id, + bindings=tuple( + FieldBindingSpec( + binding_id=k, + dossier_key=k, + anchor=FieldAnchorSpec(name_or_id_patterns=(rf"^{n}(?:\s|$)",)), + ) + for k, n in zip(keys, ("dob_day", "dob_month", "dob_year")) + ), + screens=( + WizardScreenSpec( + screen_id="form", + landmark_selector="#form", + is_commit_screen=True, + commit_button_anchor=FieldAnchorSpec(label_patterns=("^Apply$",)), + ), + ), + summary_check=SummaryCheckSpec( + summary_landmark_selector="#done", + split_date_readbacks=( + SplitDateReadbackSpec( + anchor=FieldAnchorSpec(label_patterns=("^Date of birth$",)), + day_key=keys[0], + month_key=keys[1], + year_key=keys[2], + ), + ), + outputs=( + OutputExtractionSpec( + output_key="quote_number", + anchor=FieldAnchorSpec(label_patterns=("^Quote number$",)), + value_pattern=r"quote number is\s+([A-Z]{2}-\d+)", + ), + ), + ), + ) + page, _, reconciler, session = _start( + browser, base, "/", pack, _dossier(**dict(zip(keys, ("4", "3", "1988")))) + ) + if not verified: + # The portal stores a different year than was typed. + page.evaluate( + "y => { const b = document.getElementById('submit'); const f = b.onclick;" + " b.onclick = () => { document.getElementById('y').value = y; f(); }; }", + year, + ) + done = reconciler.run_until_halt_or_done(session) + statuses = {v.dossier_key: v.status for v in done.summary_verdict.field_verdicts} + if verified: + assert done.outcome == FormTxOutcome.VERIFIED_DONE, done.what_happened + assert done.outputs["quote_number"] == "VW-12345" + assert all(statuses[k] == ReadbackStatus.PASSED for k in keys) + else: + assert done.outcome == FormTxOutcome.READBACK_REFUTED, done.what_happened + assert all(statuses[k] == ReadbackStatus.FAILED for k in keys) + + +# --------------------------------------------------------------------------- +# 5. Intake values no binding enters; radio groups named by their row; a +# form that asks one question at a time in the same control. + + +@pytest.mark.parametrize("ignored", [False, True]) +def test_intake_value_no_binding_enters_keeps_the_run_from_verified( + site: tuple[_Site, str], browser: Any, ignored: bool +) -> None: + s, base = site + s.pages["/"] = _UNBOUND.replace(' value="Jasper Vellacott"', "") + pack = _unbound_pack(declare_paperless=True) + if ignored: + pack = pack.model_copy(update={"ignored_intake_keys": ("drivers.additional",)}) + _, _, reconciler, session = _start( + browser, + base, + "/", + pack, + _dossier(**{"applicant.first_name": "Avery", "drivers.additional": "Pavel"}), + ) + done = reconciler.run_until_halt_or_done(session) + assert len(s.records) == 1 + # An intake value the portal never asks for is named on the receipt as + # not covered; it blocks verified_done only when the pack requires it. + assert done.outcome == FormTxOutcome.VERIFIED_DONE, done.what_happened + assert "intake:drivers.additional" in done.receipt.payload.not_covered + assert "drivers.additional" not in done.receipt.payload.covered_keys + + +def test_required_intake_value_no_binding_enters_blocks_verified( + site: tuple[_Site, str], browser: Any +) -> None: + s, base = site + s.pages["/"] = _UNBOUND.replace(' value="Jasper Vellacott"', "") + pack = _unbound_pack(declare_paperless=True).model_copy( + update={"required_intake_keys": ("drivers.additional",)} + ) + _, _, reconciler, session = _start( + browser, + base, + "/", + pack, + _dossier(**{"applicant.first_name": "Avery", "drivers.additional": "Pavel"}), + ) + done = reconciler.run_until_halt_or_done(session) + assert done.outcome == FormTxOutcome.READBACK_INCOMPLETE, done.what_happened + assert "intake:drivers.additional" in done.summary_verdict.not_checked_keys + + +_ROW_RADIO = """ +
    + +
    Completed a driver training course?: + +
    + +""" + + +def test_radio_group_without_legend_is_named_by_its_row( + site: tuple[_Site, str], browser: Any +) -> None: + s, base = site + s.pages["/"] = _ROW_RADIO + pack = _step_pack().model_copy(update={"unbound_controls": ()}) + _, _, reconciler, session = _start(browser, base, "/", pack, _dossier()) + stop = reconciler.run_until_halt_or_done(session) + (halt,) = stop.halts + assert halt.field_label == "Completed a driver training course?" + + +_ONE_AT_A_TIME = """ +
    +
    + +""" + + +def test_one_question_at_a_time_in_the_same_control_advances( + site: tuple[_Site, str], browser: Any +) -> None: + s, base = site + s.pages["/"] = _ONE_AT_A_TIME + pack = FormPack( + pack_id="test-ask", + domain_schema="test.quote/v1", + ui_profile_id=_PROFILE.profile_id, + bindings=( + _bind("applicant.first_name", "First name"), + _bind("applicant.last_name", "Last name"), + ), + screens=( + WizardScreenSpec( + screen_id="ask", + landmark_selector="#ask", + next_button_anchor=FieldAnchorSpec(label_patterns=("^Continue$",)), + ), + ), + summary_check=SummaryCheckSpec( + summary_landmark_selector="#done", + field_readbacks=( + _shown("applicant.first_name", "First name"), + _shown("applicant.last_name", "Last name"), + ), + ), + max_commit_mutations=1, + ) + _, _, reconciler, session = _start( + browser, + base, + "/", + pack, + _dossier(**{"applicant.first_name": "Avery", "applicant.last_name": "Quist"}), + ) + done = reconciler.run_until_halt_or_done(session) + assert s.records == [{"First name": "Avery", "Last name": "Quist"}] + assert done.outcome != FormTxOutcome.VALIDATION_BLOCKED, done.what_happened + + +# --------------------------------------------------------------------------- +# 6. A bound field shown with no intake value (cv-s04 class). + +_SHOWN_BLANK = """ +

    Household

    +
    +
    +
    + +""" + + +@pytest.mark.parametrize("optional", [False, True]) +def test_bound_field_shown_with_no_intake_value( + site: tuple[_Site, str], browser: Any, optional: bool +) -> None: + s, base = site + s.pages["/"] = _SHOWN_BLANK + pack = FormPack( + pack_id="test-shown-blank", + domain_schema="test.quote/v1", + ui_profile_id=_PROFILE.profile_id, + bindings=( + _bind("applicant.first_name", "First name"), + _bind("household.dog_breeds", "Breed of each dog", optional=optional), + ), + screens=( + WizardScreenSpec( + screen_id="form", + landmark_selector="#form", + is_commit_screen=True, + commit_button_anchor=FieldAnchorSpec(label_patterns=("^Get quote$",)), + ), + ), + summary_check=SummaryCheckSpec( + field_readbacks=(_shown("applicant.first_name", "First name"),) + ), + ) + _, _, reconciler, session = _start( + browser, base, "/", pack, _dossier(**{"applicant.first_name": "Avery"}) + ) + done = reconciler.run_until_halt_or_done(session) + if not optional: + assert s.records == [] + (halt,) = done.halts + assert halt.kind == FormHaltKind.UNGROUNDED_REQUIRED_FIELD + assert halt.field_label == "Breed of each dog" + else: + assert len(s.records) == 1 + assert done.outcome == FormTxOutcome.VERIFIED_DONE, done.what_happened + payload = done.receipt.payload + assert "household.dog_breeds" not in payload.covered_keys + assert "optional-blank:household.dog_breeds" in payload.not_covered + + +# --------------------------------------------------------------------------- +# 7. The review page shows a value the portal changed: stop before submit. + +_REVIEW = """ +
    + +""" + + +def test_review_page_value_that_differs_stops_before_submit( + site: tuple[_Site, str], browser: Any +) -> None: + s, base = site + s.pages["/"] = _REVIEW + pack = FormPack( + pack_id="test-review", + domain_schema="test.quote/v1", + ui_profile_id=_PROFILE.profile_id, + bindings=( + _bind( + "boat.hp", + "Total horsepower", + codec=FieldCodecSpec(kind=FormCodecKind.INTEGER), + ), + ), + screens=( + WizardScreenSpec( + screen_id="s1", + landmark_selector="#s1", + next_button_anchor=FieldAnchorSpec(label_patterns=("^Continue$",)), + ), + WizardScreenSpec( + screen_id="rev", + landmark_selector="#rev", + is_commit_screen=True, + commit_button_anchor=FieldAnchorSpec( + label_patterns=("^Get my quote$",) + ), + ), + ), + summary_check=SummaryCheckSpec( + review_readbacks=( + FieldBindingSpec( + binding_id="rv_hp", + dossier_key="boat.hp", + anchor=FieldAnchorSpec( + label_patterns=("^Total horsepower$",), + section_patterns=("^Review$",), + ), + codec=FieldCodecSpec(kind=FormCodecKind.INTEGER), + ), + ) + ), + ) + _, _, reconciler, session = _start( + browser, base, "/", pack, _dossier(**{"boat.hp": "400"}) + ) + stop = reconciler.run_until_halt_or_done(session) + assert s.records == [] + (halt,) = stop.halts + assert halt.kind == FormHaltKind.PREFILL_VALUE_CONFLICT + assert halt.field_label == "Total horsepower" + assert halt.portal_value == "800" diff --git a/packages/flow/tests/test_form_tx_written_field_no_fact.py b/packages/flow/tests/test_form_tx_written_field_no_fact.py new file mode 100644 index 0000000000..3b6d19806f --- /dev/null +++ b/packages/flow/tests/test_form_tx_written_field_no_fact.py @@ -0,0 +1,118 @@ +"""A written field with no expected value and an empty summary still gets a verdict. + +Real headless Chromium: the read-back judge reads a summary page in which an +optional declared field is empty. The run wrote that field (an operator +cleared it) but the dossier has no value for it. Before the fix the judge +skipped it and the verdict passed, so a receipt could be signed with a +written field never mentioned. Now it is ``not_checked``. +""" + +from __future__ import annotations + +from typing import Any, Iterator + +import pytest + +from openadapt_flow.form_tx.judge import SummaryJudge +from openadapt_flow.form_tx.playwright_surface import PlaywrightFormSurface +from openadapt_flow.form_tx.types import ( + DossierFact, + FieldAnchorSpec, + FieldBindingSpec, + FieldWriteRecord, + FormPack, + InputDossier, + ProvenanceKind, + ReadbackStatus, + SummaryCheckSpec, + UIProfileSpec, +) + +_SUMMARY = """
    + + +
    """ + + +@pytest.fixture() +def page() -> Iterator[Any]: + sync_pw = pytest.importorskip("playwright.sync_api") + with sync_pw.sync_playwright() as pw: + browser = pw.chromium.launch(headless=True) + try: + p = browser.new_page() + p.set_content(_SUMMARY) + yield p + finally: + browser.close() + + +def _bind(key: str, ident: str) -> FieldBindingSpec: + return FieldBindingSpec( + binding_id=key, + dossier_key=key, + anchor=FieldAnchorSpec(name_or_id_patterns=(rf"^{ident}(?:\s|$)",)), + ) + + +@pytest.mark.parametrize("written", [False, True]) +def test_written_field_with_no_fact_and_empty_summary_is_not_checked( + page: Any, written: bool +) -> None: + pack = FormPack( + pack_id="test-written-no-fact", + domain_schema="test.quote/v1", + ui_profile_id="test", + bindings=( + _bind("applicant.first_name", "fn"), + _bind("applicant.nickname", "nick"), + ), + summary_check=SummaryCheckSpec( + field_readbacks=( + _bind("applicant.first_name", "fn_ro"), + _bind("applicant.nickname", "nick_ro"), + ) + ), + ) + dossier = InputDossier( + dossier_id="d1", + request_id="r1", + facts={ + "applicant.first_name": DossierFact( + key="applicant.first_name", + value="Avery", + provenance=ProvenanceKind.INTAKE_DOCUMENT, + source_id="intake", + ) + }, + ) + writes = [ + FieldWriteRecord( + field_key="applicant.first_name", + dossier_key="applicant.first_name", + selector="#fn", + source="auto_fill", + ) + ] + if written: + writes.append( + FieldWriteRecord( + field_key="applicant.nickname", + dossier_key="applicant.nickname", + selector="#nick", + source="operator_value", + ) + ) + surface = PlaywrightFormSurface(page, UIProfileSpec(profile_id="test")) + verdict = SummaryJudge().evaluate( + surface=surface, pack=pack, dossier=dossier, writes=writes + ) + statuses = {v.dossier_key: v.status for v in verdict.field_verdicts} + assert statuses["applicant.first_name"] == ReadbackStatus.PASSED + if written: + assert statuses["applicant.nickname"] == ReadbackStatus.NOT_CHECKED + assert not verdict.passed + else: + # An optional field nobody wrote, shown empty, needs no verdict. + assert "applicant.nickname" not in statuses + assert verdict.passed