diff --git a/packages/flow/CHANGELOG.md b/packages/flow/CHANGELOG.md index 8ec8fb703e..fb6561c03e 100644 --- a/packages/flow/CHANGELOG.md +++ b/packages/flow/CHANGELOG.md @@ -19,6 +19,14 @@ ### Features +- `form_tx` runs the general GUI mechanisms when a pack opts in with + `FormPack.gui` (`form_tx.gui_pack`, `form_tx.gui_bridge`): repeating groups + filled from an intake list and checked per instance, hub pages walked + section by section with completion read from each card, steps drawn as + links, and attestations ticked only on a grant passed to the run. With + `stop_on_blank_choice`, a question no binding answers that is still blank + stops before the screen is left, and review rows drawn as a label beside + its value are read before the commit. A pack without `gui` is unchanged. - Links, tabs and menu items can be steps (`openadapt_flow.gui.steps`). Each demonstrated click gets its role from what the backend counted: a commit when it wrote, a navigation when the screen changed with no write. A live diff --git a/packages/flow/benchmark/form_tx_heldout_run/packs6/__init__.py b/packages/flow/benchmark/form_tx_heldout_run/packs6/__init__.py new file mode 100644 index 0000000000..87283b3a60 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout_run/packs6/__init__.py @@ -0,0 +1,59 @@ +"""Form packs for Set 4 v2 after unsealing, on the general GUI mechanisms (data only). + +These start from the registered arm-B packs (``../packs5``, unchanged) and +move three portals' workarounds onto ``openadapt_flow.gui`` through +``FormPack.gui``. They were written after Set 4 v2 was unsealed and became a +dev set: the portal source and the per-case portal settings were read, the +answer key was not (it is read only by the scorer). Any count from these +packs is a dev-set number, not a held-out one. + +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, and never an attestation). +""" + +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/packs6/brackwater.py b/packages/flow/benchmark/form_tx_heldout_run/packs6/brackwater.py new file mode 100644 index 0000000000..96e718703c --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout_run/packs6/brackwater.py @@ -0,0 +1,417 @@ +"""Brackwater flood quote: the arm-B pack moved onto the GUI mechanisms. + +Changes from ``packs5/brackwater.py`` (written after Set 4 v2 was unsealed; +the portal source and per-case settings were read, the answer key was not): + +- The hub is a declared hub (``gui.hubs``): each of the four sections is + opened, filled by the pack's own bindings and saved, and is done only + when its card on the hub reads "Complete" (the token the card gains on + save). The CSS-landmark screens that could open only two sections are gone. +- The hub is left through its "Review declarations" link (``gui.hubs``' + leave step) only when every card reads done. +- The review's confirmation box is a declared attestation, ticked only on a + grant given to the run. The ``flow.confirm_declarations`` derived fact is + gone. +- A choice no binding answers that is still blank stops before the screen is + left (``stop_on_blank_choice``). + +The original notes, from the dev case: + +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.gui_pack import ( + GuiAttestationSpec, + GuiControlRef, + GuiHubSection, + GuiHubSpec, + GuiMechanismsSpec, +) +from openadapt_flow.form_tx.types import ( + ControlKind, + FieldAnchorSpec, + FieldBindingSpec, + FieldCodecSpec, + FormCodecKind, + FormPack, + OutputExtractionSpec, + SummaryCheckSpec, + UIProfileSpec, + UnboundControlSpec, + WizardScreenSpec, +) +from openadapt_flow.gui.attestations import statement_digest + +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_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, + ) + + +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.gui.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, + ), + ), + 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", + ), + # The hub: walked by gui.hubs, left through its review link. + WizardScreenSpec(screen_id="bfu_hub", landmark_selector="#card-insured"), + ), + 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, + gui=GuiMechanismsSpec( + hubs=( + GuiHubSpec( + screen_id="bfu_hub", + sections=tuple( + GuiHubSection( + section_id=sid, + opener=GuiControlRef( + role="button", + name=f"Edit {title.lower()}", + containers=(title,), + ), + dialog_name=title, + save=GuiControlRef(role="button", name="Save section"), + card=title, + done_tokens=("complete",), + pending_tokens=("not", "started"), + save_writes=1, + ) + for sid, title in ( + ("insured", INSURED), + ("property", PROPERTY), + ("building", BUILDING), + ("coverage", COVERAGE), + ) + ), + leave=GuiControlRef( + role="link", name="Review declarations", target="/flood/review" + ), + ), + ), + attestations=( + GuiAttestationSpec( + attestation_id="confirm_declarations", + screen_id="bfu_review", + control=GuiControlRef(role="checkbox", name=CONFIRM_LABEL), + statement_sha256=statement_digest(CONFIRM_LABEL), + ), + ), + stop_on_blank_choice=True, + ), + 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]: + """No derived facts: the confirmation box is an attestation, not a fact.""" + return {} diff --git a/packages/flow/benchmark/form_tx_heldout_run/packs6/hollowfen.py b/packages/flow/benchmark/form_tx_heldout_run/packs6/hollowfen.py new file mode 100644 index 0000000000..7478c0cfe3 --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout_run/packs6/hollowfen.py @@ -0,0 +1,354 @@ +"""Hollowfen BOP quote: unchanged from ``packs5/hollowfen.py`` apart from its pack id +(this portal uses none of the GUI mechanisms). + +The original notes: + +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="set4v2gui.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/packs6/larkspan.py b/packages/flow/benchmark/form_tx_heldout_run/packs6/larkspan.py new file mode 100644 index 0000000000..d9594e362d --- /dev/null +++ b/packages/flow/benchmark/form_tx_heldout_run/packs6/larkspan.py @@ -0,0 +1,432 @@ +"""Larkspan travel insurance quote: the arm-B pack moved onto the GUI mechanisms. + +Changes from ``packs5/larkspan.py`` (written after Set 4 v2 was unsealed; +the portal source and per-case settings were read, the answer key was not): + +- Travellers are one repeating group (``gui.repeats``): every traveller in + the intake list, traveller 1 included, is entered into its own "Traveller + N" fieldset and checked there. The traveller-1 bindings and the popup + workaround that stopped every multi-traveller case are gone. +- The review's confirmation box is a declared attestation + (``gui.attestations``), ticked only on a grant given to the run. The + ``confirm_details`` derived fact is gone. +- Some cases open on a "We have these details on file" card. A step + (``gui.steps``) takes "Update my details", which writes nothing and shows + the details form, so the bindings check every value against the intake. +- The review's dates and travellers are read back before the commit. +- A choice no binding answers that is still blank stops before the screen is + left (``stop_on_blank_choice``). + +The original notes, from the dev case: + +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.gui_pack import ( + GuiAttestationSpec, + GuiControlRef, + GuiMechanismsSpec, + GuiRepeatSlot, + GuiRepeatSpec, + GuiStepSpec, +) +from openadapt_flow.form_tx.types import ( + ControlKind, + FieldAnchorSpec, + FieldBindingSpec, + FieldCodecSpec, + FormCodecKind, + FormPack, + OutputExtractionSpec, + SummaryCheckSpec, + UIProfileSpec, + UnboundControlSpec, + WizardScreenSpec, +) +from openadapt_flow.gui.attestations import statement_digest + +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" +TRAVELLERS_SHOWN = "travellers_shown" +CONFIRM_LABEL = "I confirm the details above are correct" + +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 _review(key: str, label: str, codec: FieldCodecSpec = TEXT) -> FieldBindingSpec: + """A read-back of one "Check everything" row, before the commit.""" + return FieldBindingSpec( + binding_id=f"lta_rv_{key}", + dossier_key=key, + anchor=FieldAnchorSpec( + label_patterns=(f"^{label}$",), section_patterns=(f"^{REVIEW}$",) + ), + 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.gui.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), + # 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, + ), + ), + screens=( + WizardScreenSpec( + screen_id="lta_review", + landmark_selector="#buy", + is_commit_screen=True, + commit_button_anchor=FieldAnchorSpec(label_patterns=(r"^Get my quote$",)), + ), + # "We have these details on file": left through gui.steps. + WizardScreenSpec(screen_id="lta_profile", landmark_selector="#profile-yes"), + _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( + review_readbacks=( + _review("departure_date", "Departure date", DATE_MDY), + _review("return_date", "Return date", DATE_MDY), + _review(TRAVELLERS_SHOWN, "Travellers", FOLD), + ), + 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, + gui=GuiMechanismsSpec( + steps=( + GuiStepSpec( + screen_id="lta_profile", + control=GuiControlRef(role="button", name="Update my details"), + ), + ), + repeats=( + GuiRepeatSpec( + group_id="travellers", + screen_id="lta_travellers", + intake_key="travelers", + add=GuiControlRef(role="button", name="Add another traveller"), + instance_kind="region", + instance_pattern=r"^Traveller \d+$", + slots=( + GuiRepeatSlot(role="textbox", name="Full name", item_key="name"), + GuiRepeatSlot( + role="textbox", + name="Date of birth", + item_key="dob", + codec=DATE_MDY, + ), + ), + ), + ), + attestations=( + GuiAttestationSpec( + attestation_id="confirm_details", + screen_id="lta_review", + control=GuiControlRef(role="checkbox", name=CONFIRM_LABEL), + statement_sha256=statement_digest(CONFIRM_LABEL), + ), + ), + stop_on_blank_choice=True, + ), + 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: + shown = [] + for t in travellers: + t = t if isinstance(t, dict) else {} + t_name, t_dob = str(t.get("name") or "").strip(), _mdy(t.get("dob")) + if not t_name or not t_dob: + shown = [] + break + shown.append(f"{t_name} ({t_dob})") + if shown: + # How the review and the stored quote show the list. + out[TRAVELLERS_SHOWN] = "; ".join(shown) + + # 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 + + 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 7eea495ca2..038a5e7ada 100644 --- a/packages/flow/benchmark/form_tx_heldout_run/run.py +++ b/packages/flow/benchmark/form_tx_heldout_run/run.py @@ -44,7 +44,11 @@ # 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"), + # Set 4 v2 after unsealing (now a dev set): the B packs moved onto the + # general GUI mechanisms (pack ``gui``). See packs6/__init__.py. + "set4v2gui": ("form_tx_set4v2", "benchmark.form_tx_heldout_run.packs6"), } +ATTESTER = {"name": ""} _SUITE = {"name": "heldout"} @@ -465,6 +469,13 @@ def run_case( dossier_for(intake, request_id=f"{case_id}-req"), run_id=f"run-{case_id}", ) + # Attestations are ticked only on a grant from the person attesting, + # given here by --attester (off by default: the run then stops at + # every attestation). Recorded on the row. + from openadapt_flow.form_tx.gui_bridge import grants_for + + session.attestation_grants = grants_for(pack, ATTESTER["name"]) + out["attester"] = ATTESTER["name"] or None result = reconciler.run_until_halt_or_done(session) n = 0 while result.halts and result.outcome in ( @@ -582,9 +593,16 @@ def main(argv: list[str]) -> int: 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( + "--attester", + default="", + help="the person who attests the pack's declared attestation statements " + "for every case of this run (off by default: the run stops at each one)", + ) ap.add_argument("portals", nargs="*") args = ap.parse_args(argv) CONTROL_LOG["dir"] = args.control_log + ATTESTER["name"] = args.attester _use_suite(args.suite) OPERATOR_TOOLS_ON["on"] = args.operator_estimator answer_key = load_answer_key() diff --git a/packages/flow/benchmark/form_tx_set4v2_run/WIRING_RESULTS.md b/packages/flow/benchmark/form_tx_set4v2_run/WIRING_RESULTS.md new file mode 100644 index 0000000000..a3ffc1a928 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/WIRING_RESULTS.md @@ -0,0 +1,89 @@ +# Set 4 v2 as a dev set: the B packs on the general GUI mechanisms + +Run 2026-11-22 on the Mac: headless Chromium, one process, the scripted +operator unchanged. All 30 cases ran in each arm. + +**This is a dev-set number, not a held-out one.** Set 4 v2 was unsealed +before this run. The `packs6` packs were written after reading the portal +source and the per-case portal settings, and after seeing which cases +stopped and why. The answer key was not read; only the scorer opened it. + +| | | +| --- | --- | +| Engine | `ENGINE_SHA` (the `claude/form-tx-gui-wiring` branch) | +| Baseline | arm B, `packs5` unchanged, re-run on the same tree (`arm_B_rebase.jsonl`). It matches the registered `../results/arm_B.jsonl` on every case. | +| New arm | `packs6` with `--attester "scripted requester"` (`arm_gui.jsonl`, control logs in `controls_gui/`) | +| Without an attester | `packs6`, no grant (`arm_gui_noattester.jsonl`) | + +Everything is synthetic. + +## Headline + +- **3 of B's 12 clean-case false stops clear: `lta-s01`, `lta-s05` and + `lta-s06`.** Each case submits the correct record. +- **1 moves: `bfu-s02`.** It no longer stops on the hub's link. It now + opens every section and stops in "Property and map" at the community + directory pick (T5), like the other brackwater cases. +- **The other 8 are out of scope and unchanged:** T5 look-alike options + (`bfu-s01`, `s04`, `s06`, `s09`, `lta-s02`), T1 defaults (`hbm-s05`, + `s08`) and T3 identical rows (`hbm-s02`). +- **Hard gates hold:** no false receipt and no silent wrong submit. No case + ended `verified_done` in either arm. +- **No harm added.** Wrong submits fell from 1 (`lta-s03`) to 0. Trap cases + stopped before submit: 12 of 16 (B: 13 of 16). The one trap that no + longer stops, `lta-s10`, now stops for the operator on the evacuation + question, gets the answer and submits the correct record. That case is + scored correct; in B it was a stop. + +| | B (`packs5`) | GUI (`packs6`, attester) | GUI, no attester | +| --- | ---: | ---: | ---: | +| Clean false stops (of 14) | 12 | 9 | 13 | +| Wrong submits | 1 | 0 | 0 | +| False receipts | 0 | 0 | 0 | +| Silent wrong submits | 0 | 0 | 0 | +| Submitted, all correct | 4 of 5 | 9 of 9 | 0 | +| Traps stopped before submit (of 16) | 13 | 12 | — | +| Harness errors | 0 | 0 | 0 | + +## What cleared each stop + +| Case | B stopped on | Now | +| --- | --- | --- | +| `lta-s01` (2 travellers) | the popup workaround for "Add another traveller" | The repeating group adds traveller 2, fills both and checks each. | +| `lta-s06` (3 travellers) | the same | The same, with three instances. | +| `lta-s05` (2 travellers, details on file) | "No commit control": the "We have these details on file" card was not a screen of the pack | A declared step takes "Update my details" (no write) and the bindings check every value. Then the repeating group runs. This case needed a pack addition written after seeing it. | +| `bfu-s02` | "Next button missing": the hub's review control is a link | The hub opens all four sections in turn. It now stops at the community pick (T5), as the other brackwater cases do. | + +## Traps the old stops caught by accident + +Three traps were stopped only by the workarounds this removes. Each one is +still handled: + +- **`lta-s04`**: the portal moves the return date by a day. The review + shows the return date beside its label, and the snapshot did not pair the + two, so B had no pre-submit check. The bridge now reads such a row before + the commit and stops on it: "The review shows '07/15/2027' for + 'return_date'". +- **`lta-s07`**: stops on the state on file (Oregon) against the intake. It + is reached through "Update my details", and the binding conflict stops it. +- **`lta-s10`**: the evacuation question no binding answers. + `stop_on_blank_choice` stops on it, and the operator answers it. With the + same rule, `lta-s03`, a wrong submit in B, now gets the operator's answer + and submits correctly. + +## The attestation grant + +The review confirmation boxes (`lta`, `bfu`) are declared attestations. They +are ticked only on an `AttestationGrant`, never through an intake or derived +fact. In this run the grant is an explicit run input, `--attester "scripted +requester"`: the harness stands in for the person submitting, and each row +records it. With no attester, every case that reaches a review stops there, +which is the "no attester" column. + +## What this cannot show + +- Three synthetic portals by one author. The packs were edited after the + set was unsealed. +- Most brackwater cases stop at the community pick, so the hub ran its + first section to completion in every case. It ran all four only on the + in-test synthetic hub (`tests/test_form_tx_gui_bridge.py`). diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/ENGINE_SHA b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/ENGINE_SHA new file mode 100644 index 0000000000..cb557d2df2 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/ENGINE_SHA @@ -0,0 +1 @@ +da8592a68c09621684527ee38ada8bcf67dd7877 diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/arm_B_rebase.jsonl b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/arm_B_rebase.jsonl new file mode 100644 index 0000000000..1861222fc7 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/arm_B_rebase.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.5, "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.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.5, "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.4, "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.4, "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.3, "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.5, "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.3, "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.4, "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": 7.1, "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.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: ['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.8, "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.1, "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_f8703a7ae2b1a7 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.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": [{"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_d0f4188aeb1f59 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.7, "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.8, "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.3, "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.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": 56, "failed": [], "not_checked": ["class_keyword", "class_code"], "read_route": "same_screen"}, "receipt": false, "elapsed_s": 15.1, "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": 5.0, "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": 5.0, "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": 5.0, "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:63573/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": 20.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": [{"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": 5.0, "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": 5.0, "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.1, "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_wiring/arm_B_rebase_full.log b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/arm_B_rebase_full.log new file mode 100644 index 0000000000..fd2bcc5f1f --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/arm_B_rebase_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.5, "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.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.5, "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.4, "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.4, "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.3, "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.5, "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.3, "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.4, "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": 7.1, "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.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: ['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.8, "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.1, "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_f8703a7ae2b1a7 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.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": [{"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_d0f4188aeb1f59 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.7, "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.8, "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.3, "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.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": 56, "failed": [], "not_checked": ["class_keyword", "class_code"], "read_route": "same_screen"}, "receipt": false, "elapsed_s": 15.1, "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": 5.0, "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": 5.0, "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": 5.0, "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:63573/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": 20.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": [{"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": 5.0, "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": 5.0, "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.1, "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_wiring/arm_gui.jsonl b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/arm_gui.jsonl new file mode 100644 index 0000000000..577e8367e2 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/arm_gui.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}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_ebd8707cf9f93e to owner", "receipt": false, "elapsed_s": 5.4, "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}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_60b4d9c53a7e06 to owner", "receipt": false, "elapsed_s": 5.3, "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}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_164e28fb559bae to owner", "receipt": false, "elapsed_s": 5.3, "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}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_1ffbf8a85ad278 to owner", "receipt": false, "elapsed_s": 5.4, "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}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_1906296089aca1 to owner", "receipt": false, "elapsed_s": 5.3, "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}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_f7d18e3356cd49 to owner", "receipt": false, "elapsed_s": 5.3, "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}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_39a2127d4b5076 to owner", "receipt": false, "elapsed_s": 5.2, "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}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_e4f222f1a9703e to owner", "receipt": false, "elapsed_s": 5.3, "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}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_f0be9b1fa30a7e to owner", "receipt": false, "elapsed_s": 5.2, "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}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_0acb15ae7ca0d5 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": [], "attester": "scripted requester", "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['travelers[0].dob', 'travelers[0].name', 'travelers[1].dob', 'travelers[1].name']", "readback": {"passed": 11, "failed": [], "not_checked": ["travelers[0].dob", "travelers[0].name", "travelers[1].dob", "travelers[1].name"], "read_route": "same_screen"}, "receipt": false, "elapsed_s": 12.1, "score": {"case_id": "lta-s01", "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-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}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_c98c764cb85ba2 to owner", "receipt": false, "elapsed_s": 3.8, "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": [{"halt_kind": "ungrounded_required_field", "label": "Emergency medical evacuation limit", "dossier_key": null, "message": "'Emergency medical evacuation limit' is a question no binding answers, and it is blank", "url": "trip", "script_hit": true, "action": "provide_value", "before_submit": true}], "attester": "scripted requester", "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['travelers[0].dob', 'travelers[0].name', 'control:Emergency medical evacuation limit']", "readback": {"passed": 11, "failed": [], "not_checked": ["travelers[0].dob", "travelers[0].name", "control:Emergency medical evacuation limit"], "read_route": "same_screen"}, "receipt": false, "elapsed_s": 12.4, "score": {"case_id": "lta-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": "larkspan", "case_id": "lta-s04", "halts": [{"halt_kind": "prefill_value_conflict", "label": "", "dossier_key": null, "message": "The review shows '07/15/2027' for 'return_date', which differs from the intake", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_c50aed4c76b9b7 to owner", "receipt": false, "elapsed_s": 11.6, "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": [], "attester": "scripted requester", "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['travelers[0].dob', 'travelers[0].name', 'travelers[1].dob', 'travelers[1].name']", "readback": {"passed": 11, "failed": [], "not_checked": ["travelers[0].dob", "travelers[0].name", "travelers[1].dob", "travelers[1].name"], "read_route": "same_screen"}, "receipt": false, "elapsed_s": 12.2, "score": {"case_id": "lta-s05", "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-s06", "halts": [], "attester": "scripted requester", "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['travelers[0].dob', 'travelers[0].name', 'travelers[1].dob', 'travelers[1].name', 'travelers[2].dob', 'travelers[2].name']", "readback": {"passed": 11, "failed": [], "not_checked": ["travelers[0].dob", "travelers[0].name", "travelers[1].dob", "travelers[1].name", "travelers[2].dob", "travelers[2].name"], "read_route": "same_screen"}, "receipt": false, "elapsed_s": 13.5, "score": {"case_id": "lta-s06", "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-s07", "halts": [{"halt_kind": "prefill_value_conflict", "label": "State of residence", "dossier_key": "residence_state", "message": "Prefilled value on 'State of residence' conflicts with grounded dossier state for 'residence_state'", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_bf11db42900f07 to owner", "receipt": false, "elapsed_s": 1.8, "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": [], "attester": "scripted requester", "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['travelers[0].dob', 'travelers[0].name']", "readback": {"passed": 11, "failed": [], "not_checked": ["travelers[0].dob", "travelers[0].name"], "read_route": "same_screen"}, "receipt": false, "elapsed_s": 11.7, "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": [], "attester": "scripted requester", "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['travelers[0].dob', 'travelers[0].name']", "readback": {"passed": 11, "failed": [], "not_checked": ["travelers[0].dob", "travelers[0].name"], "read_route": "same_screen"}, "receipt": false, "elapsed_s": 11.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": "ungrounded_required_field", "label": "Emergency medical evacuation limit", "dossier_key": null, "message": "'Emergency medical evacuation limit' is a question no binding answers, and it is blank", "url": "trip", "script_hit": true, "action": "provide_value", "before_submit": true}], "attester": "scripted requester", "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['travelers[0].dob', 'travelers[0].name', 'travelers[1].dob', 'travelers[1].name', 'control:Emergency medical evacuation limit']", "readback": {"passed": 11, "failed": [], "not_checked": ["travelers[0].dob", "travelers[0].name", "travelers[1].dob", "travelers[1].name", "control:Emergency medical evacuation limit"], "read_route": "same_screen"}, "receipt": false, "elapsed_s": 13.1, "score": {"case_id": "lta-s10", "submitted": true, "submit_count": 1, "expected_behavior": "needs_operator_answer", "record_correct": true, "correct": true, "wrong_fields": [], "wrong_details": [], "missing_fields": []}, "arm": "B"} +{"portal": "hollowfen", "case_id": "hbm-s01", "halts": [], "attester": "scripted requester", "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.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}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_a8000f7337cdc0 to owner", "receipt": false, "elapsed_s": 7.3, "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": [], "attester": "scripted requester", "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.7, "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}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_05d43f494b22bd to owner", "receipt": false, "elapsed_s": 5.0, "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}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_7f7f8bdfcf1f7f to owner", "receipt": false, "elapsed_s": 5.0, "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}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_164c163e701375 to owner", "receipt": false, "elapsed_s": 5.0, "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:58842/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}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_1078f6529c2770 to owner", "receipt": false, "elapsed_s": 20.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": [{"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}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_2cf05868dc9bda to owner", "receipt": false, "elapsed_s": 5.0, "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}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_2cac8806066dca to owner", "receipt": false, "elapsed_s": 5.0, "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}], "attester": "scripted requester", "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_wiring/arm_gui_full.log b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/arm_gui_full.log new file mode 100644 index 0000000000..078f777304 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/arm_gui_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}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_ebd8707cf9f93e to owner", "receipt": false, "elapsed_s": 5.4, "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}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_60b4d9c53a7e06 to owner", "receipt": false, "elapsed_s": 5.3, "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}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_164e28fb559bae to owner", "receipt": false, "elapsed_s": 5.3, "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}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_1ffbf8a85ad278 to owner", "receipt": false, "elapsed_s": 5.4, "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}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_1906296089aca1 to owner", "receipt": false, "elapsed_s": 5.3, "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}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_f7d18e3356cd49 to owner", "receipt": false, "elapsed_s": 5.3, "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}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_39a2127d4b5076 to owner", "receipt": false, "elapsed_s": 5.2, "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}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_e4f222f1a9703e to owner", "receipt": false, "elapsed_s": 5.3, "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}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_f0be9b1fa30a7e to owner", "receipt": false, "elapsed_s": 5.2, "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}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_0acb15ae7ca0d5 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": [], "attester": "scripted requester", "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['travelers[0].dob', 'travelers[0].name', 'travelers[1].dob', 'travelers[1].name']", "readback": {"passed": 11, "failed": [], "not_checked": ["travelers[0].dob", "travelers[0].name", "travelers[1].dob", "travelers[1].name"], "read_route": "same_screen"}, "receipt": false, "elapsed_s": 12.1, "score": {"case_id": "lta-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": "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}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_c98c764cb85ba2 to owner", "receipt": false, "elapsed_s": 3.8, "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": [{"halt_kind": "ungrounded_required_field", "label": "Emergency medical evacuation limit", "dossier_key": null, "message": "'Emergency medical evacuation limit' is a question no binding answers, and it is blank", "url": "trip", "script_hit": true, "action": "provide_value", "before_submit": true}], "attester": "scripted requester", "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['travelers[0].dob', 'travelers[0].name', 'control:Emergency medical evacuation limit']", "readback": {"passed": 11, "failed": [], "not_checked": ["travelers[0].dob", "travelers[0].name", "control:Emergency medical evacuation limit"], "read_route": "same_screen"}, "receipt": false, "elapsed_s": 12.4, "score": {"case_id": "lta-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": "larkspan", "case_id": "lta-s04", "halts": [{"halt_kind": "prefill_value_conflict", "label": "", "dossier_key": null, "message": "The review shows '07/15/2027' for 'return_date', which differs from the intake", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_c50aed4c76b9b7 to owner", "receipt": false, "elapsed_s": 11.6, "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": [], "attester": "scripted requester", "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['travelers[0].dob', 'travelers[0].name', 'travelers[1].dob', 'travelers[1].name']", "readback": {"passed": 11, "failed": [], "not_checked": ["travelers[0].dob", "travelers[0].name", "travelers[1].dob", "travelers[1].name"], "read_route": "same_screen"}, "receipt": false, "elapsed_s": 12.2, "score": {"case_id": "lta-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": "larkspan", "case_id": "lta-s06", "halts": [], "attester": "scripted requester", "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['travelers[0].dob', 'travelers[0].name', 'travelers[1].dob', 'travelers[1].name', 'travelers[2].dob', 'travelers[2].name']", "readback": {"passed": 11, "failed": [], "not_checked": ["travelers[0].dob", "travelers[0].name", "travelers[1].dob", "travelers[1].name", "travelers[2].dob", "travelers[2].name"], "read_route": "same_screen"}, "receipt": false, "elapsed_s": 13.5, "score": {"case_id": "lta-s06", "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-s07", "halts": [{"halt_kind": "prefill_value_conflict", "label": "State of residence", "dossier_key": "residence_state", "message": "Prefilled value on 'State of residence' conflicts with grounded dossier state for 'residence_state'", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_bf11db42900f07 to owner", "receipt": false, "elapsed_s": 1.8, "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": [], "attester": "scripted requester", "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['travelers[0].dob', 'travelers[0].name']", "readback": {"passed": 11, "failed": [], "not_checked": ["travelers[0].dob", "travelers[0].name"], "read_route": "same_screen"}, "receipt": false, "elapsed_s": 11.7, "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": [], "attester": "scripted requester", "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['travelers[0].dob', 'travelers[0].name']", "readback": {"passed": 11, "failed": [], "not_checked": ["travelers[0].dob", "travelers[0].name"], "read_route": "same_screen"}, "receipt": false, "elapsed_s": 11.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": "ungrounded_required_field", "label": "Emergency medical evacuation limit", "dossier_key": null, "message": "'Emergency medical evacuation limit' is a question no binding answers, and it is blank", "url": "trip", "script_hit": true, "action": "provide_value", "before_submit": true}], "attester": "scripted requester", "outcome": "readback_incomplete", "what_happened": "Submitted, but these fields could not be read back and need a person to check them: ['travelers[0].dob', 'travelers[0].name', 'travelers[1].dob', 'travelers[1].name', 'control:Emergency medical evacuation limit']", "readback": {"passed": 11, "failed": [], "not_checked": ["travelers[0].dob", "travelers[0].name", "travelers[1].dob", "travelers[1].name", "control:Emergency medical evacuation limit"], "read_route": "same_screen"}, "receipt": false, "elapsed_s": 13.1, "score": {"case_id": "lta-s10", "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": "hollowfen", "case_id": "hbm-s01", "halts": [], "attester": "scripted requester", "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.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}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_a8000f7337cdc0 to owner", "receipt": false, "elapsed_s": 7.3, "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": [], "attester": "scripted requester", "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.7, "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}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_05d43f494b22bd to owner", "receipt": false, "elapsed_s": 5.0, "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}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_7f7f8bdfcf1f7f to owner", "receipt": false, "elapsed_s": 5.0, "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}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_164c163e701375 to owner", "receipt": false, "elapsed_s": 5.0, "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:58842/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}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_1078f6529c2770 to owner", "receipt": false, "elapsed_s": 20.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": [{"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}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_2cf05868dc9bda to owner", "receipt": false, "elapsed_s": 5.0, "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}], "attester": "scripted requester", "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_2cac8806066dca to owner", "receipt": false, "elapsed_s": 5.0, "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}], "attester": "scripted requester", "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_wiring/arm_gui_noattester.jsonl b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/arm_gui_noattester.jsonl new file mode 100644 index 0000000000..d1220be4ae --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/arm_gui_noattester.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}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_ebd8707cf9f93e to owner", "receipt": false, "elapsed_s": 5.4, "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}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_60b4d9c53a7e06 to owner", "receipt": false, "elapsed_s": 5.2, "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}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_164e28fb559bae to owner", "receipt": false, "elapsed_s": 5.3, "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}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_1ffbf8a85ad278 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": "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}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_1906296089aca1 to owner", "receipt": false, "elapsed_s": 5.2, "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}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_f7d18e3356cd49 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}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_39a2127d4b5076 to owner", "receipt": false, "elapsed_s": 5.2, "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}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_e4f222f1a9703e to owner", "receipt": false, "elapsed_s": 5.3, "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}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_f0be9b1fa30a7e to owner", "receipt": false, "elapsed_s": 5.2, "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}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_0acb15ae7ca0d5 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": "ambiguous_option_or_target", "label": "", "dossier_key": null, "message": "attestation 'I confirm the details above are correct': no one attested this statement for this run", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_04a59e9df685c5 to owner", "receipt": false, "elapsed_s": 11.1, "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}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_c98c764cb85ba2 to owner", "receipt": false, "elapsed_s": 3.8, "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": [{"halt_kind": "ungrounded_required_field", "label": "Emergency medical evacuation limit", "dossier_key": null, "message": "'Emergency medical evacuation limit' is a question no binding answers, and it is blank", "url": "trip", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "ambiguous_option_or_target", "label": "", "dossier_key": null, "message": "attestation 'I confirm the details above are correct': no one attested this statement for this run", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_489b577868c071 to owner", "receipt": false, "elapsed_s": 10.8, "score": {"case_id": "lta-s03", "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-s04", "halts": [{"halt_kind": "prefill_value_conflict", "label": "", "dossier_key": null, "message": "The review shows '07/15/2027' for 'return_date', which differs from the intake", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_c50aed4c76b9b7 to owner", "receipt": false, "elapsed_s": 11.4, "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": "attestation 'I confirm the details above are correct': no one attested this statement for this run", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_2e225bdf9e2949 to owner", "receipt": false, "elapsed_s": 10.7, "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": "ambiguous_option_or_target", "label": "", "dossier_key": null, "message": "attestation 'I confirm the details above are correct': no one attested this statement for this run", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_19f9d537048bd9 to owner", "receipt": false, "elapsed_s": 11.9, "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": "prefill_value_conflict", "label": "State of residence", "dossier_key": "residence_state", "message": "Prefilled value on 'State of residence' conflicts with grounded dossier state for 'residence_state'", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_bf11db42900f07 to owner", "receipt": false, "elapsed_s": 1.7, "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": "ambiguous_option_or_target", "label": "", "dossier_key": null, "message": "attestation 'I confirm the details above are correct': no one attested this statement for this run", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_5472e9aff75c1e to owner", "receipt": false, "elapsed_s": 10.2, "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": [{"halt_kind": "ambiguous_option_or_target", "label": "", "dossier_key": null, "message": "attestation 'I confirm the details above are correct': no one attested this statement for this run", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_28f410e6bd506a to owner", "receipt": false, "elapsed_s": 10.2, "score": {"case_id": "lta-s09", "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-s10", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Emergency medical evacuation limit", "dossier_key": null, "message": "'Emergency medical evacuation limit' is a question no binding answers, and it is blank", "url": "trip", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "ambiguous_option_or_target", "label": "", "dossier_key": null, "message": "attestation 'I confirm the details above are correct': no one attested this statement for this run", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_9f6584ded83d58 to owner", "receipt": false, "elapsed_s": 11.8, "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": [], "attester": null, "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": 15.3, "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}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_a8000f7337cdc0 to owner", "receipt": false, "elapsed_s": 7.3, "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": [], "attester": null, "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": 15.0, "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}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_05d43f494b22bd to owner", "receipt": false, "elapsed_s": 5.1, "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}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_7f7f8bdfcf1f7f to owner", "receipt": false, "elapsed_s": 5.1, "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}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_164c163e701375 to owner", "receipt": false, "elapsed_s": 5.1, "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:59887/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}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_1078f6529c2770 to owner", "receipt": false, "elapsed_s": 20.7, "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}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_2cf05868dc9bda to owner", "receipt": false, "elapsed_s": 5.0, "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}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_2cac8806066dca to owner", "receipt": false, "elapsed_s": 5.0, "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}], "attester": null, "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_wiring/arm_gui_noattester_full.log b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/arm_gui_noattester_full.log new file mode 100644 index 0000000000..13ab187043 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/arm_gui_noattester_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}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_ebd8707cf9f93e to owner", "receipt": false, "elapsed_s": 5.4, "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}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_60b4d9c53a7e06 to owner", "receipt": false, "elapsed_s": 5.2, "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}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_164e28fb559bae to owner", "receipt": false, "elapsed_s": 5.3, "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}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_1ffbf8a85ad278 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": "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}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_1906296089aca1 to owner", "receipt": false, "elapsed_s": 5.2, "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}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_f7d18e3356cd49 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}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_39a2127d4b5076 to owner", "receipt": false, "elapsed_s": 5.2, "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}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_e4f222f1a9703e to owner", "receipt": false, "elapsed_s": 5.3, "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}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_f0be9b1fa30a7e to owner", "receipt": false, "elapsed_s": 5.2, "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}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_0acb15ae7ca0d5 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": "ambiguous_option_or_target", "label": "", "dossier_key": null, "message": "attestation 'I confirm the details above are correct': no one attested this statement for this run", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_04a59e9df685c5 to owner", "receipt": false, "elapsed_s": 11.1, "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}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_c98c764cb85ba2 to owner", "receipt": false, "elapsed_s": 3.8, "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": [{"halt_kind": "ungrounded_required_field", "label": "Emergency medical evacuation limit", "dossier_key": null, "message": "'Emergency medical evacuation limit' is a question no binding answers, and it is blank", "url": "trip", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "ambiguous_option_or_target", "label": "", "dossier_key": null, "message": "attestation 'I confirm the details above are correct': no one attested this statement for this run", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_489b577868c071 to owner", "receipt": false, "elapsed_s": 10.8, "score": {"case_id": "lta-s03", "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-s04", "halts": [{"halt_kind": "prefill_value_conflict", "label": "", "dossier_key": null, "message": "The review shows '07/15/2027' for 'return_date', which differs from the intake", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_c50aed4c76b9b7 to owner", "receipt": false, "elapsed_s": 11.4, "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": "attestation 'I confirm the details above are correct': no one attested this statement for this run", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_2e225bdf9e2949 to owner", "receipt": false, "elapsed_s": 10.7, "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": "ambiguous_option_or_target", "label": "", "dossier_key": null, "message": "attestation 'I confirm the details above are correct': no one attested this statement for this run", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_19f9d537048bd9 to owner", "receipt": false, "elapsed_s": 11.9, "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": "prefill_value_conflict", "label": "State of residence", "dossier_key": "residence_state", "message": "Prefilled value on 'State of residence' conflicts with grounded dossier state for 'residence_state'", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_bf11db42900f07 to owner", "receipt": false, "elapsed_s": 1.7, "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": "ambiguous_option_or_target", "label": "", "dossier_key": null, "message": "attestation 'I confirm the details above are correct': no one attested this statement for this run", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_5472e9aff75c1e to owner", "receipt": false, "elapsed_s": 10.2, "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": [{"halt_kind": "ambiguous_option_or_target", "label": "", "dossier_key": null, "message": "attestation 'I confirm the details above are correct': no one attested this statement for this run", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_28f410e6bd506a to owner", "receipt": false, "elapsed_s": 10.2, "score": {"case_id": "lta-s09", "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-s10", "halts": [{"halt_kind": "ungrounded_required_field", "label": "Emergency medical evacuation limit", "dossier_key": null, "message": "'Emergency medical evacuation limit' is a question no binding answers, and it is blank", "url": "trip", "script_hit": true, "action": "provide_value", "before_submit": true}, {"halt_kind": "ambiguous_option_or_target", "label": "", "dossier_key": null, "message": "attestation 'I confirm the details above are correct': no one attested this statement for this run", "url": "trip", "script_hit": false, "action": "escalate_to_owner", "before_submit": true}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_9f6584ded83d58 to owner", "receipt": false, "elapsed_s": 11.8, "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": [], "attester": null, "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": 15.3, "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}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_a8000f7337cdc0 to owner", "receipt": false, "elapsed_s": 7.3, "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": [], "attester": null, "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": 15.0, "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}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_05d43f494b22bd to owner", "receipt": false, "elapsed_s": 5.1, "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}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_7f7f8bdfcf1f7f to owner", "receipt": false, "elapsed_s": 5.1, "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}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_164c163e701375 to owner", "receipt": false, "elapsed_s": 5.1, "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:59887/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}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_1078f6529c2770 to owner", "receipt": false, "elapsed_s": 20.7, "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}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_2cf05868dc9bda to owner", "receipt": false, "elapsed_s": 5.0, "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}], "attester": null, "outcome": "escalated_to_owner", "what_happened": "Escalated halt halt_2cac8806066dca to owner", "receipt": false, "elapsed_s": 5.0, "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}], "attester": null, "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_wiring/controls_gui/bfu-s01.json b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/bfu-s01.json new file mode 100644 index 0000000000..2550217f9d --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/bfu-s01.json @@ -0,0 +1,198 @@ +{ + "case_id": "bfu-s01", + "screen_id": "bfu_hub", + "url": "http://127.0.0.1:57799/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_wiring/controls_gui/bfu-s02.json b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/bfu-s02.json new file mode 100644 index 0000000000..295777937a --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/bfu-s02.json @@ -0,0 +1,167 @@ +{ + "case_id": "bfu-s02", + "screen_id": "bfu_hub", + "url": "http://127.0.0.1:57799/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_wiring/controls_gui/bfu-s03.json b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/bfu-s03.json new file mode 100644 index 0000000000..44aae65f2f --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/bfu-s03.json @@ -0,0 +1,198 @@ +{ + "case_id": "bfu-s03", + "screen_id": "bfu_hub", + "url": "http://127.0.0.1:57799/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_wiring/controls_gui/bfu-s04.json b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/bfu-s04.json new file mode 100644 index 0000000000..9269059b81 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/bfu-s04.json @@ -0,0 +1,198 @@ +{ + "case_id": "bfu-s04", + "screen_id": "bfu_hub", + "url": "http://127.0.0.1:57799/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_wiring/controls_gui/bfu-s05.json b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/bfu-s05.json new file mode 100644 index 0000000000..42c2e90a57 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/bfu-s05.json @@ -0,0 +1,167 @@ +{ + "case_id": "bfu-s05", + "screen_id": "bfu_hub", + "url": "http://127.0.0.1:57799/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_wiring/controls_gui/bfu-s06.json b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/bfu-s06.json new file mode 100644 index 0000000000..aa8e1dc2a0 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/bfu-s06.json @@ -0,0 +1,198 @@ +{ + "case_id": "bfu-s06", + "screen_id": "bfu_hub", + "url": "http://127.0.0.1:57799/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_wiring/controls_gui/bfu-s07.json b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/bfu-s07.json new file mode 100644 index 0000000000..3c306b580e --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/bfu-s07.json @@ -0,0 +1,198 @@ +{ + "case_id": "bfu-s07", + "screen_id": "bfu_hub", + "url": "http://127.0.0.1:57799/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_wiring/controls_gui/bfu-s08.json b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/bfu-s08.json new file mode 100644 index 0000000000..25856a7ce2 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/bfu-s08.json @@ -0,0 +1,198 @@ +{ + "case_id": "bfu-s08", + "screen_id": "bfu_hub", + "url": "http://127.0.0.1:57799/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_wiring/controls_gui/bfu-s09.json b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/bfu-s09.json new file mode 100644 index 0000000000..5e4b8d4f50 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/bfu-s09.json @@ -0,0 +1,198 @@ +{ + "case_id": "bfu-s09", + "screen_id": "bfu_hub", + "url": "http://127.0.0.1:57799/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_wiring/controls_gui/bfu-s10.json b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/bfu-s10.json new file mode 100644 index 0000000000..c4d8a4d86c --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/bfu-s10.json @@ -0,0 +1,198 @@ +{ + "case_id": "bfu-s10", + "screen_id": "bfu_hub", + "url": "http://127.0.0.1:57799/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_wiring/controls_gui/hbm-s01.json b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/hbm-s01.json new file mode 100644 index 0000000000..297fff1237 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/hbm-s01.json @@ -0,0 +1,115 @@ +{ + "case_id": "hbm-s01", + "screen_id": "hbm_review", + "url": "http://127.0.0.1:58842/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_wiring/controls_gui/hbm-s02.json b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/hbm-s02.json new file mode 100644 index 0000000000..d89609fda8 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/hbm-s02.json @@ -0,0 +1,389 @@ +{ + "case_id": "hbm-s02", + "screen_id": "hbm_location", + "url": "http://127.0.0.1:58842/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_wiring/controls_gui/hbm-s03.json b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/hbm-s03.json new file mode 100644 index 0000000000..f24f6042e3 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/hbm-s03.json @@ -0,0 +1,115 @@ +{ + "case_id": "hbm-s03", + "screen_id": "hbm_review", + "url": "http://127.0.0.1:58842/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_wiring/controls_gui/hbm-s04.json b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/hbm-s04.json new file mode 100644 index 0000000000..a73c9aeea0 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/hbm-s04.json @@ -0,0 +1,408 @@ +{ + "case_id": "hbm-s04", + "screen_id": "hbm_location", + "url": "http://127.0.0.1:58842/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_wiring/controls_gui/hbm-s05.json b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/hbm-s05.json new file mode 100644 index 0000000000..1dd8d64d9f --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/hbm-s05.json @@ -0,0 +1,389 @@ +{ + "case_id": "hbm-s05", + "screen_id": "hbm_location", + "url": "http://127.0.0.1:58842/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_wiring/controls_gui/hbm-s06.json b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/hbm-s06.json new file mode 100644 index 0000000000..ca673fb4e1 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/hbm-s06.json @@ -0,0 +1,389 @@ +{ + "case_id": "hbm-s06", + "screen_id": "hbm_location", + "url": "http://127.0.0.1:58842/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_wiring/controls_gui/hbm-s07.json b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/hbm-s07.json new file mode 100644 index 0000000000..06bff188d8 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/hbm-s07.json @@ -0,0 +1,408 @@ +{ + "case_id": "hbm-s07", + "screen_id": "hbm_rate", + "url": "http://127.0.0.1:58842/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_wiring/controls_gui/hbm-s08.json b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/hbm-s08.json new file mode 100644 index 0000000000..49edacc649 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/hbm-s08.json @@ -0,0 +1,389 @@ +{ + "case_id": "hbm-s08", + "screen_id": "hbm_location", + "url": "http://127.0.0.1:58842/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_wiring/controls_gui/hbm-s09.json b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/hbm-s09.json new file mode 100644 index 0000000000..8cce3a046b --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/hbm-s09.json @@ -0,0 +1,389 @@ +{ + "case_id": "hbm-s09", + "screen_id": "hbm_location", + "url": "http://127.0.0.1:58842/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_wiring/controls_gui/hbm-s10.json b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/hbm-s10.json new file mode 100644 index 0000000000..fbed938432 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/hbm-s10.json @@ -0,0 +1,408 @@ +{ + "case_id": "hbm-s10", + "screen_id": "hbm_location", + "url": "http://127.0.0.1:58842/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_wiring/controls_gui/lta-s01.json b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/lta-s01.json new file mode 100644 index 0000000000..61b235c209 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/lta-s01.json @@ -0,0 +1,159 @@ +{ + "case_id": "lta-s01", + "screen_id": "lta_review", + "url": "http://127.0.0.1:58280/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_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": "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": "false", + "selector": "#agree", + "options": [] + }, + { + "label": "Get my quote", + "value": "", + "selector": "#buy", + "options": [] + } + ], + "banners": [], + "page_text": "Larkspan Travel Assurance\n\nCheck everything\nName\nIgnatius Belmonte\nEdit\nEmail\nig.belmonte@example.test\nEdit\nMobile phone\n312-555-0166\nEdit\nState of residence\nIllinois\nEdit\nDestination\nIceland - Northern Europe\nEdit\nDeparture date\n08/09/2027\nEdit\nReturn date\n08/19/2027\nEdit\nTravellers\nIgnatius Belmonte (07/11/1984); Rosalind Belmonte (01/29/1986)\nEdit\nTrip cost\n$7,150\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_wiring/controls_gui/lta-s02.json b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/lta-s02.json new file mode 100644 index 0000000000..803ba6762e --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/lta-s02.json @@ -0,0 +1,95 @@ +{ + "case_id": "lta-s02", + "screen_id": "lta_destination", + "url": "http://127.0.0.1:58280/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_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_wiring/controls_gui/lta-s03.json b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/lta-s03.json new file mode 100644 index 0000000000..3dbdb0ebb7 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/lta-s03.json @@ -0,0 +1,165 @@ +{ + "case_id": "lta-s03", + "screen_id": "lta_review", + "url": "http://127.0.0.1:58280/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_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": "false", + "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\n$500,000\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_wiring/controls_gui/lta-s04.json b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/lta-s04.json new file mode 100644 index 0000000000..030daadf61 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/lta-s04.json @@ -0,0 +1,159 @@ +{ + "case_id": "lta-s04", + "screen_id": "lta_review", + "url": "http://127.0.0.1:58280/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_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": "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": "false", + "selector": "#agree", + "options": [] + }, + { + "label": "Get my quote", + "value": "", + "selector": "#buy", + "options": [] + } + ], + "banners": [], + "page_text": "Larkspan Travel Assurance\n\nCheck everything\nName\nLeocadia Furness\nEdit\nEmail\nleo.furness@example.test\nEdit\nMobile phone\n802-555-0177\nEdit\nState of residence\nVermont\nEdit\nDestination\nPeru - South America\nEdit\nDeparture date\n07/01/2027\nEdit\nReturn date\n07/15/2027\nEdit\nTravellers\nLeocadia Furness (06/08/1993); Amos Furness (10/21/1991)\nEdit\nTrip cost\n$6,380\nEdit\nPlan\nPlus\nEdit\nCancel For Any Reason\nYes\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_wiring/controls_gui/lta-s05.json b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/lta-s05.json new file mode 100644 index 0000000000..91a847b3d1 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/lta-s05.json @@ -0,0 +1,159 @@ +{ + "case_id": "lta-s05", + "screen_id": "lta_review", + "url": "http://127.0.0.1:58280/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_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": "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": "false", + "selector": "#agree", + "options": [] + }, + { + "label": "Get my quote", + "value": "", + "selector": "#buy", + "options": [] + } + ], + "banners": [], + "page_text": "Larkspan Travel Assurance\n\nCheck everything\nName\nHenrietta Moss-Achebe\nEdit\nEmail\nh.mossachebe@example.test\nEdit\nMobile phone\n612-555-0158\nEdit\nState of residence\nMinnesota\nEdit\nDestination\nNorway - Northern Europe\nEdit\nDeparture date\n06/12/2027\nEdit\nReturn date\n06/24/2027\nEdit\nTravellers\nHenrietta Moss-Achebe (09/30/1961); Gareth Achebe (02/14/1959)\nEdit\nTrip cost\n$11,840\nEdit\nPlan\nPremier\nEdit\nCancel For Any Reason\nYes\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_wiring/controls_gui/lta-s06.json b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/lta-s06.json new file mode 100644 index 0000000000..e483046c09 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/lta-s06.json @@ -0,0 +1,159 @@ +{ + "case_id": "lta-s06", + "screen_id": "lta_review", + "url": "http://127.0.0.1:58280/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_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": "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": "false", + "selector": "#agree", + "options": [] + }, + { + "label": "Get my quote", + "value": "", + "selector": "#buy", + "options": [] + } + ], + "banners": [], + "page_text": "Larkspan Travel Assurance\n\nCheck everything\nName\nThaddeus Kimura\nEdit\nEmail\nt.kimura@example.test\nEdit\nMobile phone\n480-555-0121\nEdit\nState of residence\nArizona\nEdit\nDestination\nNew Zealand - Oceania\nEdit\nDeparture date\n11/03/2027\nEdit\nReturn date\n11/25/2027\nEdit\nTravellers\nThaddeus Kimura (05/19/1968); Marguerite Kimura (08/02/1970); Elias Kimura (12/12/2004)\nEdit\nTrip cost\n$14,200\nEdit\nPlan\nPremier\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_wiring/controls_gui/lta-s07.json b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/lta-s07.json new file mode 100644 index 0000000000..641a4db7f1 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/lta-s07.json @@ -0,0 +1,164 @@ +{ + "case_id": "lta-s07", + "screen_id": "lta_about", + "url": "http://127.0.0.1:58280/trip", + "bound": [ + { + "binding_id": "lta_purchaser_name", + "dossier_key": "purchaser_name", + "intake": "Dorian Velasquez-Pratt", + "observed": { + "label": "Full name", + "group_label": "", + "value": "Dorian Velasquez-Pratt", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_email", + "dossier_key": "purchaser_email", + "intake": "dorian.vp@example.test", + "observed": { + "label": "Email", + "group_label": "", + "value": "dorian.vp@example.test", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "lta_purchaser_phone", + "dossier_key": "purchaser_phone", + "intake": "206-555-0137", + "observed": { + "label": "Mobile phone", + "group_label": "", + "value": "206-555-0137", + "checked": null, + "options": [], + "row_cells": [], + "error_text": "" + }, + "match_error": "" + }, + { + "binding_id": "lta_residence_state", + "dossier_key": "residence_state", + "intake": "Washington", + "observed": { + "label": "State of residence", + "group_label": "", + "value": "Oregon", + "checked": null, + "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" + } + ], + "row_cells": [], + "error_text": "" + }, + "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_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": "Continue", + "value": "", + "selector": "#details-form > button", + "options": [] + } + ], + "banners": [], + "page_text": "Larkspan Travel Assurance\n\nFirst, about you\nFull name\nEmail\nMobile phone\nState of residence\nChoose a state\nArizona\nCalifornia\nColorado\nIllinois\nMaine\nMinnesota\nOregon\nTexas\nVermont\nWashington\n Continue" +} \ No newline at end of file diff --git a/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/lta-s08.json b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/lta-s08.json new file mode 100644 index 0000000000..65277c18d6 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/lta-s08.json @@ -0,0 +1,159 @@ +{ + "case_id": "lta-s08", + "screen_id": "lta_review", + "url": "http://127.0.0.1:58280/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_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": "" + } + ], + "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": "false", + "selector": "#agree", + "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_wiring/controls_gui/lta-s09.json b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/lta-s09.json new file mode 100644 index 0000000000..cbdfbf4972 --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/lta-s09.json @@ -0,0 +1,159 @@ +{ + "case_id": "lta-s09", + "screen_id": "lta_review", + "url": "http://127.0.0.1:58280/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_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": "false", + "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_wiring/controls_gui/lta-s10.json b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/lta-s10.json new file mode 100644 index 0000000000..7de418911b --- /dev/null +++ b/packages/flow/benchmark/form_tx_set4v2_run/results_wiring/controls_gui/lta-s10.json @@ -0,0 +1,165 @@ +{ + "case_id": "lta-s10", + "screen_id": "lta_review", + "url": "http://127.0.0.1:58280/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_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": "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": "false", + "selector": "#agree", + "options": [] + }, + { + "label": "Get my quote", + "value": "", + "selector": "#buy", + "options": [] + } + ], + "banners": [], + "page_text": "Larkspan Travel Assurance\n\nCheck everything\nName\nSunniva Haraldsen\nEdit\nEmail\nsunniva.h@example.test\nEdit\nMobile phone\n651-555-0172\nEdit\nState of residence\nMinnesota\nEdit\nDestination\nKenya - East Africa\nEdit\nDeparture date\n01/18/2027\nEdit\nReturn date\n02/01/2027\nEdit\nTravellers\nSunniva Haraldsen (03/03/1975); Per Haraldsen (07/27/1973)\nEdit\nTrip cost\n$16,900\nEdit\nPlan\nPremier\nEdit\nCancel For Any Reason\nNo\nEdit\nEmergency medical evacuation limit\n$1,000,000\nEdit\nI confirm the details above are correct\nGet my quote" +} \ No newline at end of file diff --git a/packages/flow/docs/FORM_TX.md b/packages/flow/docs/FORM_TX.md index 69dda8d303..3545c533e1 100644 --- a/packages/flow/docs/FORM_TX.md +++ b/packages/flow/docs/FORM_TX.md @@ -160,6 +160,41 @@ submitted after such a stop. An error on or after the submit click ends integrity under that local key. It is not a server attestation, external witness, or independent proof that every backend effect has been observed. +### The general GUI mechanisms (`FormPack.gui`) + +A pack opts into `openadapt_flow.gui` with a `GuiMechanismsSpec` +(`form_tx/gui_pack.py`); `form_tx/gui_bridge.py` runs it from three points +in the reconciler. Every field is pack data, and the engine names no app. + +- **Repeating groups** (`repeats`). On the named screen, before its next + control, every item of the intake list is entered into its own instance + ("Traveller 2", a table row) and read back there. A prefilled instance, + more instances than items, or an add that did not add exactly one blank + instance stops. An instance that already shows the intake (after a walk + back) is checked and not written again. Each instance field is in the + write ledger, so it is read back or reported `not_checked`. +- **Hub pages** (`hubs`). Each section is opened, filled by the pack's own + bindings, saved, and counted done only when its card on the hub reads + done. A stop inside a section (a type-ahead pick) resumes into the same + dialog. A sign-in dialog after a save goes to the sign-in wall. The hub is + left through its declared step only when every card reads done. +- **Steps** (`steps`). A screen's next control drawn as a link, a tab or a + button the form surface does not list is taken with `gui.steps.take_step` + and must navigate without writing. +- **Attestations** (`attestations`). On the commit screen, each declared + box is ticked only on an `AttestationGrant` in `session.attestation_grants` + (`gui_bridge.grants_for(pack, attester)`). With no grant, the run stops + before the commit. Never bind an attestation to an intake or derived fact. +- **`stop_on_blank_choice`**. A visible select or radio group that no + binding covers, the pack does not list in `unbound_controls`, and that is + still blank stops before the screen is left. +- **Review rows beside their values.** With `gui` set, a review read-back + the snapshot could not pair is read as a label element and the element + after it; a different value stops before the commit. + +A modal that holds an editable control is never confirmed through a +`confirm_if_dossier_flag` rule when the pack has `gui`. + ## Sessions, queue jobs, and operator decisions `WarmSessionLease` requires positive authenticated-landmark evidence. A 200 diff --git a/packages/flow/openadapt_flow/form_tx/gui_bridge.py b/packages/flow/openadapt_flow/form_tx/gui_bridge.py new file mode 100644 index 0000000000..bb06148ec8 --- /dev/null +++ b/packages/flow/openadapt_flow/form_tx/gui_bridge.py @@ -0,0 +1,862 @@ +"""Run the general GUI mechanisms (``openadapt_flow.gui``) inside ``form_tx``. + +The form reconciler calls three functions here, and only when the pack opts +in with ``FormPack.gui`` (see :mod:`openadapt_flow.form_tx.gui_pack`): + +- :func:`before_leaving_screen`: on a wizard screen, before the unbound scan + and the screen's own next control: + + - fill and check any repeating group declared for the screen + (:func:`openadapt_flow.gui.repeating.fill_instances`); + - walk a hub screen section by section (:func:`openadapt_flow.gui.hub.run_section`, + with the reconciler's own binding pass as the fill) and leave it only + when every card reads done; + - take a declared step (a link, a tab) with :func:`openadapt_flow.gui.steps.take_step`; + - stop on a blank choice no binding covers (``stop_on_blank_choice``). + +- :func:`before_commit`: on the commit screen, read review rows drawn as a + label beside its value (the form snapshot does not pair them) and stop on + one that differs from the intake; then plan, tick and check the + declared attestations from the run's grants + (:mod:`openadapt_flow.gui.attestations`). With no grant the run stops. +- :func:`is_form_dialog`: a modal that holds an editable control is a form + dialog and is never confirmed through a dossier flag. + +Each returns ``None`` (nothing to do here, carry on), :data:`CONTINUE` (the +screen moved; take a fresh snapshot) or a ``FormTxResult`` that stops the +run. Every stop names its reason. Nothing here names an application. +""" + +from __future__ import annotations + +import re +from typing import Any, Callable, Optional, Union + +from openadapt_flow.form_tx.codecs import format_for_text_entry +from openadapt_flow.form_tx.gui_pack import GuiHubSpec, GuiMechanismsSpec, GuiRepeatSpec +from openadapt_flow.form_tx.surface import ( + AmbiguousAnchorError, + match_anchor_in_snapshot, +) +from openadapt_flow.form_tx.types import ( + FormHaltItem, + FormHaltKind, + FormSnapshot, + FormTxOutcome, + FormTxResult, + HumanDecisionAction, + ObservedControl, + ObservedModal, + WizardScreenSpec, +) +from openadapt_flow.gui.adapters import screen_from_form_snapshot +from openadapt_flow.gui.attestations import ( + AttestationGrant, + AttestationSpec, + apply_attestations, + judge_screen, + plan_checkboxes, +) +from openadapt_flow.gui.hub import ( + DialogKind, + SectionSpec, + card_reading, + classify_dialog, + judge_hub_screen, + run_section, + save_section, +) +from openadapt_flow.gui.model import Dialog, Screen, norm +from openadapt_flow.gui.repeating import ( + RepeatSpec, + Slot, + fill_instances, + find_instances, + judge_instances, + planned_rows, + seen_rows, +) +from openadapt_flow.gui.steps import StepRole, StepSpec, take_step +from openadapt_flow.verdict import Status + +__all__ = [ + "CONTINUE", + "SnapshotActuator", + "SurfaceActuator", + "before_commit", + "before_leaving_screen", + "grants_for", + "is_form_dialog", +] + +CONTINUE = "continue" +Outcome = Union[None, str, FormTxResult] + + +# -- actuators over a form surface ------------------------------------------------ + + +class _Base: + def __init__(self, surface: Any, pack: Any) -> None: + self.surface = surface + self.pack = pack + + def snapshot(self) -> FormSnapshot: + return self.surface.snapshot( + entity_tables=self.pack.entity_tables, + modal_rules=self.pack.modal_rules, + screens=self.pack.screens, + ) + + def click(self, handle: str) -> None: + self.surface.click(handle) + + def set_text(self, handle: str, value: str) -> None: + self.surface.fill_text(handle, value) + + def set_checked(self, handle: str, checked: bool) -> None: + self.surface.set_checkbox_or_radio(handle, checked) + + def write_count(self) -> Optional[int]: + """The surface's own mutation counter: the one the commit budget uses.""" + + count = getattr(self.surface, "mutation_count", None) + return count if isinstance(count, int) and not isinstance(count, bool) else None + + +class SnapshotActuator(_Base): + """Reads the screen through the form surface's own snapshot, so handles + are the selectors the reconciler's write ledger and unbound scan use.""" + + def observe(self) -> Screen: + return screen_from_form_snapshot(self.snapshot()) + + +class SurfaceActuator(_Base): + """Reads a browser page directly (links, dialogs, card text), falling back + to the form snapshot on a backend without a page.""" + + def observe(self) -> Screen: + page = getattr(self.surface, "_page", None) + if page is None: + return screen_from_form_snapshot(self.snapshot()) + from openadapt_flow.gui.dom import OBSERVE_JS, TEXT_CAP, screen_from_dom + + # A fresh surface snapshot first: the surface acts only on the + # document it last read. + self.snapshot() + return screen_from_dom(page.evaluate(OBSERVE_JS, TEXT_CAP)) + + +def grants_for(pack: Any, attester: str) -> tuple[AttestationGrant, ...]: + """One grant per attestation the pack declares, made by ``attester`` for + the statement the pack pins. The caller decides whether a person attests; + this only builds the grants.""" + + gui: Optional[GuiMechanismsSpec] = getattr(pack, "gui", None) + if gui is None or not attester.strip(): + return () + return tuple( + AttestationGrant(a.attestation_id, a.statement_sha256, attester) + for a in gui.attestations + ) + + +# -- halts ------------------------------------------------------------------------ + + +def _halt( + rec: Any, + session: Any, + snapshot: FormSnapshot, + message: str, + *, + sig: str, + kind: FormHaltKind = FormHaltKind.AMBIGUOUS_OPTION_OR_TARGET, + safe_to_retry: bool = True, + control: Optional[ObservedControl] = None, +) -> FormTxResult: + from openadapt_flow.form_tx.reconciler import _deterministic_halt_id + + halt_id = _deterministic_halt_id( + session.run_id, + kind, + snapshot.screen_id, + control.dom_selector if control else "", + sig, + ) + actions = ( + ( + HumanDecisionAction.PROVIDE_VALUE, + HumanDecisionAction.FIXED_ON_SCREEN, + HumanDecisionAction.ESCALATE_TO_OWNER, + HumanDecisionAction.ABORT_RUN, + ) + if control is not None + else (HumanDecisionAction.ESCALATE_TO_OWNER, HumanDecisionAction.ABORT_RUN) + ) + extra: dict[str, Any] = {} + if control is not None: + extra = { + "control_id": control.control_id, + "dom_selector": control.dom_selector, + "field_label": control.group_label or control.label_text, + "available_options": control.options, + } + halt = FormHaltItem( + halt_id=halt_id, + kind=kind, + screen_id=snapshot.screen_id, + message=message, + allowed_actions=actions, + **extra, + ) + meta: dict[str, Any] = {"field_signature": sig} + if control is not None: + meta.update(control=control, binding=None) + session._halt_metadata[halt_id] = meta + return rec._build_result( + session, + outcome=FormTxOutcome.HALTED_NEEDS_HUMAN, + safe_to_retry=safe_to_retry, + halts=(halt,), + what_happened=message, + ) + + +def _state(session: Any) -> dict[str, Any]: + state = getattr(session, "_gui_state", None) + if state is None: + state = {"groups": set(), "sections": set()} + session._gui_state = state + return state + + +# -- covered controls and blank choices ------------------------------------------- + + +def _covered(session: Any, snapshot: FormSnapshot) -> set[str]: + pack = session.pack + anchors = [b.anchor for b in pack.bindings] + [ + u.anchor for u in pack.unbound_controls + ] + for sub in pack.popup_subroutines: + anchors += [sub.trigger_anchor, sub.parent_return_anchor] + out: set[str] = set(session._filled_selectors) + 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: + out.add(m.dom_selector) + if m.radio_group: + out.add(f"group|{m.radio_group}") + return out + + +def _choice_blank(ctrl: ObservedControl) -> bool: + """A select with no value, or one showing an option whose value is empty + (a "Choose ..." prompt); a radio that is not checked.""" + + if ctrl.input_type.casefold() == "radio" or ctrl.role.casefold() == "radio": + return ctrl.checked is not True + if not ctrl.current_value: + return True + shown = [o for o in ctrl.options if ctrl.current_value in (o.value, o.label)] + return bool(shown) and all(not o.value for o in shown) + + +def _is_choice(ctrl: ObservedControl) -> bool: + tag, kind, role = ( + ctrl.tag.casefold(), + ctrl.input_type.casefold(), + ctrl.role.casefold(), + ) + return tag == "select" or kind == "radio" or role in ("radio", "listbox") + + +def _blank_choice_halt( + rec: Any, session: Any, snapshot: FormSnapshot +) -> Optional[FormTxResult]: + gui: Optional[GuiMechanismsSpec] = session.pack.gui + if gui is None or not gui.stop_on_blank_choice: + return None + covered = _covered(session, snapshot) + groups: dict[str, list[ObservedControl]] = {} + for ctrl in snapshot.controls: + if not ctrl.visible or ctrl.disabled or ctrl.readonly or ctrl.modal_container: + continue + if not _is_choice(ctrl) or ctrl.dom_selector in covered: + continue + if ctrl.radio_group and f"group|{ctrl.radio_group}" in covered: + continue + key = f"radio|{ctrl.radio_group}" if ctrl.radio_group else ctrl.dom_selector + groups.setdefault(key, []).append(ctrl) + for key, ctrls in groups.items(): + blank = all(_choice_blank(c) for c in ctrls) + if blank: + ctrl = ctrls[0] + label = ctrl.group_label or ctrl.label_text or ctrl.dom_selector + return _halt( + rec, + session, + snapshot, + f"{label!r} is a question no binding answers, and it is blank", + sig=f"blank_choice|{key}", + kind=FormHaltKind.UNGROUNDED_REQUIRED_FIELD, + control=ctrl, + ) + return None + + +# -- repeating groups -------------------------------------------------------------- + + +class _ScopedActuator(SnapshotActuator): + """Only slot controls whose container name matches the group's pattern.""" + + def __init__(self, surface: Any, pack: Any, spec: GuiRepeatSpec) -> None: + super().__init__(surface, pack) + self.names = {(s.role, norm(s.name)) for s in spec.slots} + self.pattern = ( + re.compile(spec.instance_pattern) if spec.instance_pattern else None + ) + + def observe(self) -> Screen: + screen = super().observe() + if self.pattern is None: + return screen + keep = [] + for c in screen.controls: + if (c.role, norm(c.name)) in self.names and not any( + self.pattern.search(b.name) for b in c.containers if b.name + ): + continue + keep.append(c) + return Screen( + tuple(keep), + screen.dialogs, + screen.location, + screen.title, + screen.text, + screen.complete, + screen.errors, + ) + + +def _items(session: Any, spec: GuiRepeatSpec) -> Optional[list[dict[str, Any]]]: + fact = session.effective_facts.get( + spec.intake_key + ) or session.dossier.grounded_fact(spec.intake_key) + raw = getattr(fact, "value", None) + if ( + not isinstance(raw, list) + or not raw + or not all(isinstance(i, dict) for i in raw) + ): + return None + out = [] + for item in raw: + row: dict[str, Any] = {} + for slot in spec.slots: + if slot.item_key not in item or item[slot.item_key] in (None, ""): + continue + value = item[slot.item_key] + if slot.role in ("checkbox", "switch"): + row[slot.item_key] = value if isinstance(value, bool) else None + else: + row[slot.item_key] = format_for_text_entry(value, slot.codec) + out.append(row) + return out + + +def _repeat( + rec: Any, session: Any, surface: Any, snapshot: FormSnapshot, spec: GuiRepeatSpec +) -> Outcome: + items = _items(session, spec) + if items is None: + return _halt( + rec, + session, + snapshot, + f"the intake has no list {spec.intake_key!r} for the group {spec.group_id!r}", + sig=f"repeat_items|{spec.group_id}", + ) + rspec = RepeatSpec( + group_id=spec.group_id, + add=spec.add.spec(dialog=False), + instance_kind=spec.instance_kind, + slots=tuple(Slot(s.role, s.name, s.item_key) for s in spec.slots), + add_writes=spec.add_writes, + max_instances=spec.max_instances, + ) + act = _ScopedActuator(surface, session.pack, spec) + read = find_instances(act.observe(), rspec) + planned = planned_rows(rspec, items) + bound: dict[str, str] = {} + held = False + wrote = False + if ( + read.usable + and len(read.instances) == len(items) + and not all(i.blank() for i in read.instances) + and spec.group_id in _state(session)["groups"] + ): + # This run already entered them (the pass after filling, or a walk + # back after a sign-in): check them, write nothing. Rows showing data + # this run did not enter go to fill_instances, which stops on them. + bound = {str(i): inst.handle for i, inst in enumerate(read.instances)} + verdict = judge_instances( + planned, + bound, + seen_rows(read, rspec, session.run_id), + run_id=session.run_id, + ) + held = verdict.status is Status.HELD + if not held: + return _halt( + rec, + session, + snapshot, + f"the group {spec.group_id!r} already shows values that do not match the intake", + sig=f"repeat_check|{spec.group_id}", + ) + else: + wrote = True + outcome = fill_instances(act, rspec, items, run_id=session.run_id) + if not outcome.held: + return _halt( + rec, + session, + snapshot, + f"repeating group {spec.group_id!r}: {outcome.reason}", + sig=f"repeat_fill|{spec.group_id}", + safe_to_retry=not outcome.wrote, + ) + bound = dict(outcome.bound) + read = find_instances(act.observe(), rspec) + by_handle = {inst.handle: inst for inst in read.instances} + for i, handle in bound.items(): + inst = by_handle.get(handle) + if inst is None: + continue + for slot, ctrl in zip(spec.slots, inst.controls): + session._filled_selectors.add(ctrl.handle) + session.record_write( + source="auto_fill", + dossier_key=f"{spec.intake_key}[{i}].{slot.item_key}", + label=f"{inst.name or spec.group_id} {slot.name}", + selector=ctrl.handle, + ) + _state(session)["groups"].add(spec.group_id) + # Rows were written: look again. Rows that already showed the intake + # were only checked, so the screen goes on with this snapshot. + return CONTINUE if wrote else None + + +# -- hubs -------------------------------------------------------------------------- + + +class _FillHalt(Exception): + def __init__(self, result: FormTxResult) -> None: + super().__init__(result.what_happened) + self.result = result + + +def _section_specs(hub: GuiHubSpec) -> list[SectionSpec]: + return [ + SectionSpec( + section_id=s.section_id, + opener=s.opener.spec(dialog=False), + dialog_name=s.dialog_name, + save=s.save.spec(dialog=True), + card=s.card, + done_tokens=s.done_tokens, + pending_tokens=s.pending_tokens, + save_writes=s.save_writes, + ) + for s in hub.sections + ] + + +def _fill_with_bindings( + rec: Any, session: Any, surface: Any +) -> Callable[[Screen, Dialog], None]: + pack = session.pack + + def snap() -> FormSnapshot: + return surface.snapshot( + entity_tables=pack.entity_tables, + modal_rules=pack.modal_rules, + screens=pack.screens, + ) + + def fill(_screen: Screen, _dialog: Dialog) -> None: + for _ in range(rec.max_passes_per_screen): + snapshot = snap() + session._last_observation = snapshot + edited, _, halt = rec._reconcile_bindings_pass( + surface, session, snapshot, pack.bindings + ) + if halt is not None: + raise _FillHalt( + rec._build_result( + session, + outcome=FormTxOutcome.HALTED_NEEDS_HUMAN, + safe_to_retry=True, + halts=(halt,), + what_happened=halt.message, + ) + ) + if not edited: + break + snapshot = snap() + halts = rec._collect_ungrounded_required_halts(session, snapshot, pack.bindings) + if halts: + raise _FillHalt( + rec._build_result( + session, + outcome=FormTxOutcome.HALTED_NEEDS_HUMAN, + safe_to_retry=True, + halts=tuple(halts), + what_happened=halts[0].message, + ) + ) + # The section's dialog is the only one open (run_section and the + # resume path check that), and its fields are the screen being left: + # the scans below skip controls inside a modal, so read them as not. + in_dialog = snapshot.model_copy( + update={ + "controls": tuple( + c.model_copy(update={"modal_container": ""}) + for c in snapshot.controls + ) + } + ) + blank = _blank_choice_halt(rec, session, in_dialog) + if blank is not None: + raise _FillHalt(blank) + unbound = _unbound_halt(rec, session, in_dialog) + if unbound is not None: + raise _FillHalt(unbound) + + return fill + + +def _auth_on_screen(rec: Any, session: Any, surface: Any) -> bool: + from openadapt_flow.form_tx.reconciler import _auth_wall_reason + + pack = session.pack + snapshot = surface.snapshot( + entity_tables=pack.entity_tables, + modal_rules=pack.modal_rules, + screens=pack.screens, + ) + return _auth_wall_reason(snapshot, surface.ui_profile) is not None + + +def _hub( + rec: Any, session: Any, surface: Any, snapshot: FormSnapshot, hub: GuiHubSpec +) -> Outcome: + act = SurfaceActuator(surface, session.pack) + sections = _section_specs(hub) + saved: set[str] = _state(session)["sections"] + fill = _fill_with_bindings(rec, session, surface) + + def failed(sid: str, reason: str, *, wrote: bool) -> Outcome: + if _auth_on_screen(rec, session, surface): + return CONTINUE # the main loop stops on the sign-in wall + return _halt( + rec, + session, + snapshot, + f"hub section {sid!r}: {reason}", + sig=f"hub|{hub.screen_id}|{sid}", + safe_to_retry=not wrote, + ) + + try: + screen = act.observe() + if screen.dialogs: + if len(screen.dialogs) != 1: + return failed( + "?", f"{len(screen.dialogs)} dialogs are open", wrote=False + ) + kind, owner = classify_dialog(screen, screen.dialogs[0], sections) + if kind is DialogKind.CONFIRMATION: + return None # the reconciler's modal rules decide + if owner is None: + return failed("?", "an undeclared form dialog is open", wrote=False) + fill(screen, screen.dialogs[0]) + out = save_section(act, owner, screen.dialogs[0], run_id=session.run_id) + if not out.held: + return failed(owner.section_id, out.reason, wrote=out.saved) + saved.add(owner.section_id) + screen = act.observe() + for section in sections: + reading = card_reading(screen, section) + if reading.done and section.section_id in saved: + continue + if reading.done: + return failed( + section.section_id, + "the card shows done before the run opened it", + wrote=False, + ) + out = run_section( + act, section, fill, sections=sections, run_id=session.run_id + ) + if not out.held: + return failed(section.section_id, out.reason, wrote=out.saved) + saved.add(section.section_id) + screen = act.observe() + except _FillHalt as stop: + return stop.result + verdict = judge_hub_screen( + screen, sections, [s.section_id for s in sections], run_id=session.run_id + ) + if verdict.status is not Status.HELD: + return failed("*", "not every section reads done on the hub", wrote=True) + unbound = _unbound_halt(rec, session, act.snapshot()) + if unbound is not None: + return unbound + step = take_step( + act, + StepSpec( + f"{hub.screen_id}:leave", hub.leave.spec(dialog=False), StepRole.NAVIGATE + ), + run_id=session.run_id, + ) + if not step.held: + return failed("*", f"leaving the hub: {step.result.reason}", wrote=False) + return CONTINUE + + +# -- entry points ------------------------------------------------------------------ + + +def before_leaving_screen( + rec: Any, + session: Any, + surface: Any, + snapshot: FormSnapshot, + screen: Optional[WizardScreenSpec], +) -> Outcome: + gui: Optional[GuiMechanismsSpec] = session.pack.gui + if gui is None: + return None + sid = screen.screen_id if screen is not None else None + for spec in gui.repeats: + if spec.screen_id == sid: + out = _repeat(rec, session, surface, snapshot, spec) + if out is not None: + # A stop, or rows were just added and filled: the main loop + # takes a fresh snapshot (and re-checks them) before going on. + return out + for hub in gui.hubs: + if hub.screen_id == sid: + return _hub(rec, session, surface, snapshot, hub) + blank = _blank_choice_halt(rec, session, snapshot) + if blank is not None: + return blank + for step_spec in gui.steps: + if step_spec.screen_id != sid: + continue + role = StepRole.NAVIGATE if step_spec.role == "navigate" else StepRole.IN_PLACE + unbound = _unbound_halt(rec, session, snapshot) + if unbound is not None: + return unbound + taken = take_step( + SurfaceActuator(surface, session.pack), + StepSpec(f"{sid}:step", step_spec.control.spec(dialog=False), role), + run_id=session.run_id, + ) + if not taken.held: + return _halt( + rec, + session, + snapshot, + f"step on {sid!r}: {taken.result.reason}", + sig=f"step|{sid}", + safe_to_retry=not taken.clicked, + ) + return CONTINUE + return None + + +def before_commit( + rec: Any, + session: Any, + surface: Any, + snapshot: FormSnapshot, + screen: WizardScreenSpec, +) -> Optional[FormTxResult]: + gui: Optional[GuiMechanismsSpec] = session.pack.gui + if gui is None: + return None + blank = _blank_choice_halt(rec, session, snapshot) + if blank is not None: + return blank + echo = _review_echo(rec, session, surface, snapshot) + if echo is not None: + return echo + specs = [a for a in gui.attestations if a.screen_id == screen.screen_id] + if not specs: + return None + act = SnapshotActuator(surface, session.pack) + observed = act.observe() + bound = { + m.dom_selector + for b in session.pack.bindings + for m in [_match(b.anchor, snapshot, session)] + if m is not None + } + plan = plan_checkboxes( + observed, + attestations=[ + AttestationSpec( + a.attestation_id, a.control.spec(), a.statement_sha256, a.statement_from + ) + for a in specs + ], + grants=getattr(session, "attestation_grants", ()), + bound=bound, + run_id=session.run_id, + ) + if plan.stops: + return _halt( + rec, + session, + snapshot, + f"attestation {plan.stops[0].name!r}: {plan.stops[0].reason}", + sig=f"attest|{screen.screen_id}", + ) + after = apply_attestations(act, plan) + verdict = judge_screen(plan, after) + if verdict.status is not Status.HELD: + return _halt( + rec, + session, + snapshot, + "an attestation box does not show the planned state after ticking", + sig=f"attest_check|{screen.screen_id}", + ) + for box in plan.ticks: + session._filled_selectors.add(box.handle) + return None + + +#: For each label pattern, the visible elements whose own text matches it +#: whole, and the text of the element right after each one: a review row +#: drawn as a label beside its value. +_LABEL_VALUE_JS = r"""(patterns) => { + const clean = (s) => String(s || '').replace(/\s+/g, ' ').trim(); + const shown = (el) => el.getClientRects().length > 0 + && getComputedStyle(el).visibility !== 'hidden'; + const out = {}; + for (const p of patterns) { + const re = new RegExp(p, 'i'); + const hits = []; + for (const el of document.body.querySelectorAll('*')) { + if (el.children.length || !shown(el) || !re.test(clean(el.textContent))) continue; + const next = el.nextElementSibling; + hits.push(next && shown(next) ? clean(next.textContent) : null); + } + out[p] = hits; + } + return out; +}""" + + +def _review_echo( + rec: Any, session: Any, surface: Any, snapshot: FormSnapshot +) -> Optional[FormTxResult]: + """Read the review rows the snapshot could not (a label element beside + its value element) and stop before the commit on any that differ from + the intake. A row read here is checked; one still not found stays + recorded as not shown.""" + + check = session.pack.summary_check + page = getattr(surface, "_page", None) + if check is None or page is None: + return None + todo = [ + rb + for rb in check.review_readbacks + if session._review_skipped.get(rb.dossier_key) == "not shown on the review" + and len(rb.anchor.label_patterns) == 1 + ] + if not todo: + return None + from openadapt_flow.form_tx.judge import _text_pair_matches + from openadapt_flow.form_tx.types import ObservedTextPair + + found = page.evaluate(_LABEL_VALUE_JS, [rb.anchor.label_patterns[0] for rb in todo]) + for rb in todo: + hits = found.get(rb.anchor.label_patterns[0]) or [] + fact = session.effective_facts.get(rb.dossier_key) + if len(hits) != 1 or hits[0] is None or fact is None: + continue # not one readable row: it stays "not shown" + pair = ObservedTextPair(label=rb.anchor.label_patterns[0], value=hits[0]) + if not _text_pair_matches(fact.value, pair, rb): + return _halt( + rec, + session, + snapshot, + f"The review shows {hits[0]!r} for {rb.dossier_key!r}, which differs " + "from the intake", + sig=f"review_echo|{rb.dossier_key}", + kind=FormHaltKind.PREFILL_VALUE_CONFLICT, + ) + session._review_skipped.pop(rb.dossier_key, None) + return None + + +def _unbound_halt( + rec: Any, session: Any, snapshot: FormSnapshot +) -> Optional[FormTxResult]: + """The reconciler's unbound-control scan, for a screen this module is + about to leave (the main loop's own scan is skipped when it continues).""" + + halt = rec._scan_unbound_controls(session, snapshot) + if halt is None: + return None + return rec._build_result( + session, + outcome=FormTxOutcome.HALTED_NEEDS_HUMAN, + safe_to_retry=True, + halts=(halt,), + what_happened=halt.message, + ) + + +def _match( + anchor: Any, snapshot: FormSnapshot, session: Any +) -> Optional[ObservedControl]: + try: + return match_anchor_in_snapshot( + anchor, snapshot, include_readonly=True, facts=session.effective_facts + ) + except AmbiguousAnchorError: + return None + + +def is_form_dialog(session: Any, snapshot: FormSnapshot, modal: ObservedModal) -> bool: + """True when the pack opts in and the modal holds an editable control: + such a dialog is a form and is never confirmed through a dossier flag.""" + + if getattr(session.pack, "gui", None) is None: + return False + return any( + c.visible + and not c.disabled + and not c.readonly + and c.modal_container == modal.container_selector + and c.tag.casefold() in ("input", "select", "textarea") + and c.input_type.casefold() + not in ("submit", "button", "reset", "image", "hidden") + for c in snapshot.controls + ) diff --git a/packages/flow/openadapt_flow/form_tx/gui_pack.py b/packages/flow/openadapt_flow/form_tx/gui_pack.py new file mode 100644 index 0000000000..181d81a196 --- /dev/null +++ b/packages/flow/openadapt_flow/form_tx/gui_pack.py @@ -0,0 +1,138 @@ +"""Pack data for the general GUI mechanisms (``openadapt_flow.gui``) in a form pack. + +A form pack opts into each mechanism with a :class:`GuiMechanismsSpec` in +``FormPack.gui``. Every field is data: which control, which words a pack +author pinned, how many writes the demonstration saw. Nothing here names an +application, and a pack without ``gui`` behaves exactly as before. + +- :class:`GuiStepSpec`: the control that moves a wizard screen on, when it + is a link, a tab or a button the form surface does not list. The step is + taken with :func:`openadapt_flow.gui.steps.take_step` and must navigate + without writing. +- :class:`GuiAttestationSpec`: a checkbox on the commit screen that states + something. It is ticked only on an + :class:`~openadapt_flow.gui.attestations.AttestationGrant` given to the run, + never through an intake or derived fact. +- :class:`GuiRepeatSpec`: an "add another" group on one screen, filled from a + list in the intake. +- :class:`GuiHubSpec`: a hub screen whose sections open in dialogs, walked + section by section with completion read from each card, then left through + a step. +- ``stop_on_blank_choice``: a visible choice (a select or a radio group) that + no binding covers, the pack does not list as left alone, and that is still + blank stops before the screen is left. Without it such a question is + skipped silently. +""" + +from __future__ import annotations + +from typing import Literal, Optional + +from pydantic import BaseModel, ConfigDict, Field + +from openadapt_flow.form_tx.types import FieldCodecSpec +from openadapt_flow.gui.model import ControlSpec + +__all__ = [ + "GuiAttestationSpec", + "GuiControlRef", + "GuiHubSection", + "GuiHubSpec", + "GuiMechanismsSpec", + "GuiRepeatSlot", + "GuiRepeatSpec", + "GuiStepSpec", +] + + +class GuiControlRef(BaseModel): + """One control, named the way :class:`~openadapt_flow.gui.model.ControlSpec` names it.""" + + model_config = ConfigDict(extra="forbid", frozen=True) + + role: str = Field(min_length=1) + name: str = Field(min_length=1) + containers: tuple[str, ...] = () + target: Optional[str] = None + + def spec(self, *, dialog: Optional[bool] = None) -> ControlSpec: + return ControlSpec(self.role, self.name, self.containers, self.target, dialog) + + +class GuiStepSpec(BaseModel): + model_config = ConfigDict(extra="forbid", frozen=True) + + screen_id: str = Field(min_length=1) + control: GuiControlRef + role: Literal["navigate", "in_place"] = "navigate" + + +class GuiAttestationSpec(BaseModel): + model_config = ConfigDict(extra="forbid", frozen=True) + + attestation_id: str = Field(min_length=1) + screen_id: str = Field(min_length=1) + control: GuiControlRef + statement_sha256: str = Field(min_length=64, max_length=64) + statement_from: Literal["name", "container"] = "name" + + +class GuiRepeatSlot(BaseModel): + model_config = ConfigDict(extra="forbid", frozen=True) + + role: str = Field(min_length=1) + name: str = Field(min_length=1) + item_key: str = Field(min_length=1) + codec: FieldCodecSpec = Field(default_factory=FieldCodecSpec) + + +class GuiRepeatSpec(BaseModel): + """An "add another" group. ``intake_key`` names the intake list; each + item is a mapping whose ``item_key`` values feed the slots. + ``instance_pattern`` is a regular expression an instance's container name + must match (``^Traveller \\d+$``), so a same-named field elsewhere on the + screen is never taken for an instance.""" + + model_config = ConfigDict(extra="forbid", frozen=True) + + group_id: str = Field(min_length=1) + screen_id: str = Field(min_length=1) + intake_key: str = Field(min_length=1) + add: GuiControlRef + instance_kind: str = "region" + instance_pattern: str = "" + slots: tuple[GuiRepeatSlot, ...] = Field(min_length=1) + add_writes: int = Field(default=0, ge=0) + max_instances: int = Field(default=20, ge=1, le=200) + + +class GuiHubSection(BaseModel): + model_config = ConfigDict(extra="forbid", frozen=True) + + section_id: str = Field(min_length=1) + opener: GuiControlRef + dialog_name: str = Field(min_length=1) + save: GuiControlRef + card: str = Field(min_length=1) + done_tokens: tuple[str, ...] = Field(min_length=1) + pending_tokens: tuple[str, ...] = () + save_writes: int = Field(default=1, ge=0) + + +class GuiHubSpec(BaseModel): + model_config = ConfigDict(extra="forbid", frozen=True) + + screen_id: str = Field(min_length=1) + sections: tuple[GuiHubSection, ...] = Field(min_length=1) + #: The step that leaves the hub once every section reads done. + leave: GuiControlRef + + +class GuiMechanismsSpec(BaseModel): + model_config = ConfigDict(extra="forbid", frozen=True) + + steps: tuple[GuiStepSpec, ...] = () + attestations: tuple[GuiAttestationSpec, ...] = () + repeats: tuple[GuiRepeatSpec, ...] = () + hubs: tuple[GuiHubSpec, ...] = () + stop_on_blank_choice: bool = False diff --git a/packages/flow/openadapt_flow/form_tx/reconciler.py b/packages/flow/openadapt_flow/form_tx/reconciler.py index 5c00b5366a..1f119f4587 100644 --- a/packages/flow/openadapt_flow/form_tx/reconciler.py +++ b/packages/flow/openadapt_flow/form_tx/reconciler.py @@ -32,6 +32,7 @@ SurfaceSettleTimeoutError, ) from openadapt_flow.form_tx.receipt import issue_form_tx_receipt +from openadapt_flow.form_tx import gui_bridge from openadapt_flow.form_tx.surface import ( AmbiguousAnchorError, FormSurfaceBackend, @@ -3398,6 +3399,8 @@ def _run_until_halt_or_done_unguarded( if flag_fact is not None and _is_truthy_flag(flag_fact.value): flag_truthy = True + if flag_truthy and gui_bridge.is_form_dialog(session, snapshot, obs_modal): + flag_truthy = False # a form dialog is never a confirmation if rule is not None and flag_truthy: active_surface.click(rule.confirm_selector) session.confirmed_modals.add(obs_modal.modal_id) @@ -3633,6 +3636,16 @@ def _run_until_halt_or_done_unguarded( if current_screen is not None: self._note_screen(session, current_screen.screen_id) + # The pack's general GUI mechanisms (repeating groups, hub pages, + # link steps, blank choices); a pack without ``gui`` skips this. + gui_out = gui_bridge.before_leaving_screen( + self, session, active_surface, snapshot, current_screen + ) + if gui_out == gui_bridge.CONTINUE: + continue + if isinstance(gui_out, FormTxResult): + return gui_out + # Controls no binding covers, before the screen is left. unbound_halt = self._scan_unbound_controls(session, snapshot) if unbound_halt is not None: @@ -3664,6 +3677,11 @@ def _run_until_halt_or_done_unguarded( halts=(review_halt,), what_happened=review_halt.message, ) + gui_halt = gui_bridge.before_commit( + self, session, active_surface, snapshot, current_screen + ) + if gui_halt is not None: + return gui_halt if current_screen.commit_button_anchor is None: raise ValueError( f"Commit screen {current_screen.screen_id!r} has no commit_button_anchor" diff --git a/packages/flow/openadapt_flow/form_tx/types.py b/packages/flow/openadapt_flow/form_tx/types.py index ba7ce9c108..8182723029 100644 --- a/packages/flow/openadapt_flow/form_tx/types.py +++ b/packages/flow/openadapt_flow/form_tx/types.py @@ -524,9 +524,16 @@ class FormPack(BaseModel): # otherwise named on the receipt as not covered; one listed here keeps # the run from verified_done instead. required_intake_keys: tuple[str, ...] = () + # The general GUI mechanisms this pack opts into (``form_tx.gui_pack``): + # link and tab steps, attestations, repeating groups, hub pages. + gui: Optional["GuiMechanismsSpec"] = None def digest(self) -> str: - return canonical_sha256(self) + # A pack without ``gui`` hashes exactly as it did before the field. + data = self.model_dump(mode="json") + if data.get("gui") is None: + data.pop("gui", None) + return canonical_sha256(data) class ObservedOption(BaseModel): @@ -907,3 +914,8 @@ class FormTxResult(BaseModel): summary_verdict: Optional[SummaryVerdict] = None receipt: Optional[SignedFormTxReceipt] = None what_happened: str = "" + + +from openadapt_flow.form_tx.gui_pack import GuiMechanismsSpec # noqa: E402 + +FormPack.model_rebuild() diff --git a/packages/flow/openadapt_flow/gui/hub.py b/packages/flow/openadapt_flow/gui/hub.py index c557958db9..1bf100a69f 100644 --- a/packages/flow/openadapt_flow/gui/hub.py +++ b/packages/flow/openadapt_flow/gui/hub.py @@ -81,6 +81,7 @@ "judge_hub_screen", "learn_hub", "run_section", + "save_section", ] @@ -362,6 +363,28 @@ def stop(reason: str, **kw: Any) -> SectionOutcome: if actuator.write_count() != w0: return stop("opening the section wrote", opened=True) fill(opened, dialog) + return save_section(actuator, section, dialog, run_id=run_id) + + +def save_section( + actuator: Actuator, + section: SectionSpec, + dialog: Dialog, + *, + run_id: str = "", +) -> SectionOutcome: + """Save an open, filled section dialog and confirm on the hub that it is + done. :func:`run_section` ends with this; a caller that paused while the + dialog was open (a person had to answer a field) resumes with it. The + dialog must still be the only one open, the save control must be inside + it, the dialog must close with the demonstrated writes, and the card must + then show done on a fresh read.""" + + sid = section.section_id + + def stop(reason: str, **kw: Any) -> SectionOutcome: + return SectionOutcome(sid, Status.NOT_CHECKED, reason, **kw) + filled = actuator.observe() if [d.handle for d in filled.dialogs] != [dialog.handle]: return stop("the dialog changed while it was filled", opened=True) diff --git a/packages/flow/tests/test_form_tx_gui_bridge.py b/packages/flow/tests/test_form_tx_gui_bridge.py new file mode 100644 index 0000000000..b0677de9c4 --- /dev/null +++ b/packages/flow/tests/test_form_tx_gui_bridge.py @@ -0,0 +1,487 @@ +"""The form reconciler running the general GUI mechanisms (``FormPack.gui``). + +Real headless Chromium against two small synthetic apps served in-test: + +- an EMR-like medication intake: a list of medications filled as a repeating + group, a "Continue" link the form surface does not list, and a review whose + attestation box is ticked only on a grant; +- a SaaS setup hub: two sections that open in dialogs, completion read from + each card, then a "Go to review" link and a submit. + +A pack without ``gui`` is untouched; the other form_tx tests cover that. +""" + +from __future__ import annotations + +import json +import threading +from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer +from typing import Any, Iterator + +import pytest + +from openadapt_flow.form_tx.gui_bridge import grants_for +from openadapt_flow.form_tx.gui_pack import ( + GuiAttestationSpec, + GuiControlRef, + GuiHubSection, + GuiHubSpec, + GuiMechanismsSpec, + GuiRepeatSlot, + GuiRepeatSpec, + GuiStepSpec, +) +from openadapt_flow.form_tx.playwright_surface import PlaywrightFormSurface +from openadapt_flow.form_tx.reconciler import FormReconciler +from openadapt_flow.form_tx.types import ( + DossierFact, + FieldAnchorSpec, + FieldBindingSpec, + FormPack, + FormTxOutcome, + InputDossier, + ProvenanceKind, + UIProfileSpec, + WizardScreenSpec, +) +from openadapt_flow.gui.attestations import statement_digest + +CONFIRM = "I confirm this medication list is complete" + + +class _Site: + def __init__( + self, + *, + pharmacy: bool = False, + ignore_saves: bool = False, + notes: str = "", + row_note: bool = False, + dialog_note: bool = False, + ) -> None: + self.dialog_note = dialog_note + self.notes = notes + self.row_note = row_note + self.state: dict[str, Any] = {"meds": [], "sections": {}} + self.records: list[dict[str, Any]] = [] + self.pharmacy = pharmacy + self.ignore_saves = ignore_saves + + def page(self, path: str) -> str | None: + if path == "/meds": + extra = ( + f'' + if self.notes + else "" + ) + page = MEDS_PAGE.replace("", extra) + return page.replace("ROW_NOTE", "true" if self.row_note else "false") + if path == "/review": + rows = "".join( + f"
Medication {i + 1}{m['drug']} {m['dose']}
" + for i, m in enumerate(self.state["meds"]) + ) + pharm = ( + '' + if self.pharmacy + else "" + ) + return REVIEW_PAGE.replace("", rows).replace("", pharm) + if path == "/hub": + cards = "".join( + f'

{t}

{"Done" if k in self.state["sections"] else "To do"}

' + f"
" + f'

{t}

' + f"
" + for k, t, f in ( + ("profile", "Profile", "Company name"), + ("billing", "Billing", "Billing email"), + ) + ) + if self.dialog_note: + cards = cards.replace( + '', + '' + '', + ) + return HUB_PAGE.replace("", cards) + if path == "/hub-review": + return "

Review

" + if path == "/done": + return "

Done

" + return None + + +MEDS_PAGE = """

Medications

+ +

+""" + +REVIEW_PAGE = ( + """

Check the list

+

+""" +) + +HUB_PAGE = """

Set up your workspace

+

Go to review

+""" + + +def _handler(site: _Site) -> type[BaseHTTPRequestHandler]: + class Handler(BaseHTTPRequestHandler): + def log_message(self, *args: Any) -> None: + pass + + def _send(self, body: bytes, ctype: str = "text/html; charset=utf-8") -> None: + self.send_response(200) + self.send_header("Content-Type", ctype) + self.send_header("Content-Length", str(len(body))) + self.end_headers() + self.wfile.write(body) + + def do_GET(self) -> None: # noqa: N802 + html = site.page(self.path.split("?")[0]) + if html is None: + self.send_response(404) + self.end_headers() + return + self._send( + f"App{html}".encode() + ) + + def do_POST(self) -> None: # noqa: N802 + n = int(self.headers.get("Content-Length") or 0) + body = json.loads(self.rfile.read(n).decode() or "{}") + if self.path == "/api/save": + site.state["meds"] = body["meds"] + elif self.path.startswith("/api/section/") and not site.ignore_saves: + site.state["sections"][self.path.rsplit("/", 1)[1]] = body["v"] + elif self.path == "/api/submit": + site.records.append( + { + **body, + "meds": site.state["meds"], + "sections": dict(site.state["sections"]), + } + ) + self._send(b'{"ok": true}', "application/json") + + return Handler + + +@pytest.fixture() +def browser() -> Iterator[Any]: + sync_pw = pytest.importorskip("playwright.sync_api") + with sync_pw.sync_playwright() as pw: + b = pw.chromium.launch(headless=True) + try: + yield b + finally: + b.close() + + +def _serve(site: _Site) -> tuple[ThreadingHTTPServer, str]: + server = ThreadingHTTPServer(("127.0.0.1", 0), _handler(site)) + threading.Thread(target=server.serve_forever, daemon=True).start() + return server, f"http://127.0.0.1:{server.server_address[1]}" + + +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="intake", + ) + for k, v in facts.items() + }, + ) + + +MEDS_PACK = FormPack( + pack_id="test.gui.meds", + domain_schema="test", + ui_profile_id="test-gui", + screens=( + WizardScreenSpec( + screen_id="review", + landmark_selector="#confirm", + is_commit_screen=True, + commit_button_anchor=FieldAnchorSpec(label_patterns=(r"^Submit list$",)), + ), + WizardScreenSpec(screen_id="meds", landmark_selector="#add-med"), + ), + gui=GuiMechanismsSpec( + steps=( + GuiStepSpec( + screen_id="meds", control=GuiControlRef(role="link", name="Continue") + ), + ), + repeats=( + GuiRepeatSpec( + group_id="meds", + screen_id="meds", + intake_key="medications", + add=GuiControlRef(role="button", name="Add another medication"), + instance_pattern=r"^Medication \d+$", + slots=( + GuiRepeatSlot(role="textbox", name="Drug", item_key="drug"), + GuiRepeatSlot(role="textbox", name="Dose", item_key="dose"), + ), + ), + ), + attestations=( + GuiAttestationSpec( + attestation_id="complete", + screen_id="review", + control=GuiControlRef(role="checkbox", name=CONFIRM), + statement_sha256=statement_digest(CONFIRM), + ), + ), + stop_on_blank_choice=True, + ), +) +PROFILE = UIProfileSpec(profile_id="test-gui", max_settle_ms=8000) +MEDS = [ + {"drug": "Drug A", "dose": "10 mg"}, + {"drug": "Drug B", "dose": "5 mg"}, + {"drug": "Drug C", "dose": "1 mg"}, +] + + +def _run( + browser: Any, + site: _Site, + path: str, + pack: FormPack, + dossier: InputDossier, + *, + attester: str = "", + profile: UIProfileSpec = PROFILE, +): + server, base = _serve(site) + try: + page = browser.new_context().new_page() + page.goto(base + path) + surface = PlaywrightFormSurface( + page, profile, base_origin=base, ignored_mutation_paths=("/api/save*",) + ) + reconciler = FormReconciler(surface) + session = reconciler.create_session(pack, dossier, run_id="run-gui") + session.attestation_grants = grants_for(pack, attester) + return reconciler.run_until_halt_or_done(session), session + finally: + server.shutdown() + + +def test_meds_list_link_step_and_attested_review_submit(browser: Any) -> None: + site = _Site() + result, session = _run( + browser, + site, + "/meds", + MEDS_PACK, + _dossier(medications=MEDS), + attester="clinician 7", + ) + assert site.records == [{"confirm": True, "meds": MEDS, "sections": {}}], ( + result.what_happened + ) + assert result.outcome is not FormTxOutcome.HALTED_NEEDS_HUMAN + written = {w.dossier_key for w in session.writes} + assert { + f"medications[{i}].{k}" for i in range(3) for k in ("drug", "dose") + } <= written + + +def test_without_a_grant_the_run_stops_at_the_attestation_before_submit( + browser: Any, +) -> None: + site = _Site() + result, _ = _run(browser, site, "/meds", MEDS_PACK, _dossier(medications=MEDS)) + assert result.outcome is FormTxOutcome.HALTED_NEEDS_HUMAN + assert "no one attested" in result.halts[0].message + assert site.records == [] + + +def test_a_blank_question_no_binding_answers_stops_before_submit(browser: Any) -> None: + site = _Site(pharmacy=True) + result, _ = _run( + browser, + site, + "/meds", + MEDS_PACK, + _dossier(medications=MEDS), + attester="clinician 7", + ) + assert result.outcome is FormTxOutcome.HALTED_NEEDS_HUMAN + assert result.halts[0].field_label == "Preferred pharmacy" + assert site.records == [] + + +def test_an_intake_without_the_list_stops_and_adds_nothing(browser: Any) -> None: + site = _Site() + result, _ = _run( + browser, site, "/meds", MEDS_PACK, _dossier(other=1), attester="clinician 7" + ) + assert "no list 'medications'" in result.halts[0].message + assert site.records == [] and site.state["meds"] == [] + + +HUB_PACK = FormPack( + pack_id="test.gui.hub", + domain_schema="test", + ui_profile_id="test-gui-hub", + bindings=( + FieldBindingSpec( + binding_id="co", + dossier_key="company", + anchor=FieldAnchorSpec(label_patterns=(r"^Company name$",)), + ), + FieldBindingSpec( + binding_id="be", + dossier_key="billing_email", + anchor=FieldAnchorSpec(label_patterns=(r"^Billing email$",)), + ), + ), + screens=( + WizardScreenSpec( + screen_id="review", + landmark_selector="#go", + is_commit_screen=True, + commit_button_anchor=FieldAnchorSpec(label_patterns=(r"^Submit setup$",)), + ), + WizardScreenSpec(screen_id="hub", landmark_selector="#card-profile"), + ), + gui=GuiMechanismsSpec( + hubs=( + GuiHubSpec( + screen_id="hub", + sections=tuple( + GuiHubSection( + section_id=k, + opener=GuiControlRef( + role="button", name=f"Edit {t.lower()}", containers=(t,) + ), + dialog_name=t, + save=GuiControlRef(role="button", name="Save section"), + card=t, + done_tokens=("done",), + pending_tokens=("to", "do"), + ) + for k, t in (("profile", "Profile"), ("billing", "Billing")) + ), + leave=GuiControlRef( + role="link", name="Go to review", target="/hub-review" + ), + ), + ), + ), +) +# The section editors are part of the form, not modals. +HUB_PROFILE = UIProfileSpec( + profile_id="test-gui-hub", + max_settle_ms=8000, + modal_dialog_selectors=("[data-modal-open='true']",), +) + + +def test_saas_hub_sections_are_saved_and_read_back_before_the_review( + browser: Any, +) -> None: + site = _Site() + result, _ = _run( + browser, + site, + "/hub", + HUB_PACK, + _dossier(company="Acme Test", billing_email="ap@example.test"), + profile=HUB_PROFILE, + ) + assert site.records == [ + {"meds": [], "sections": {"profile": "Acme Test", "billing": "ap@example.test"}} + ], result.what_happened + + +def test_saas_hub_save_the_app_ignores_stops_before_the_review(browser: Any) -> None: + site = _Site(ignore_saves=True) + result, _ = _run( + browser, + site, + "/hub", + HUB_PACK, + _dossier(company="Acme Test", billing_email="ap@example.test"), + profile=HUB_PROFILE, + ) + assert result.outcome is FormTxOutcome.HALTED_NEEDS_HUMAN + assert "hub section 'profile'" in result.halts[0].message + assert site.records == [] + + +def test_a_prefilled_field_no_binding_covers_stops_before_the_link_is_taken( + browser: Any, +) -> None: + site = _Site(notes="Seen by another clinician") + result, _ = _run( + browser, + site, + "/meds", + MEDS_PACK, + _dossier(medications=MEDS), + attester="clinician 7", + ) + assert result.outcome is FormTxOutcome.HALTED_NEEDS_HUMAN + assert "Notes" in result.halts[0].message + assert site.state["meds"] == [] and site.records == [] + + +def test_a_prefilled_field_inside_an_added_row_stops_before_the_link( + browser: Any, +) -> None: + site = _Site(row_note=True) + result, _ = _run( + browser, + site, + "/meds", + MEDS_PACK, + _dossier(medications=MEDS), + attester="clinician 7", + ) + assert result.outcome is FormTxOutcome.HALTED_NEEDS_HUMAN + assert "Row note" in result.halts[0].message + assert site.state["meds"] == [] and site.records == [] + + +def test_a_prefilled_field_inside_a_section_dialog_stops_before_its_save( + browser: Any, +) -> None: + site = _Site(dialog_note=True) + result, _ = _run( + browser, + site, + "/hub", + HUB_PACK, + _dossier(company="Acme Test", billing_email="ap@example.test"), + profile=HUB_PROFILE, + ) + assert result.outcome is FormTxOutcome.HALTED_NEEDS_HUMAN + assert "Notes" in result.halts[0].message + assert site.state["sections"] == {} and site.records == []