Repository navigation
Conversation
(cherry picked from commit 068c07e)
(cherry picked from commit 8d892e8)
Frame routing (Codex's codex/frame-form-surface commits, cherry-picked above) becomes pack data: UIProfileSpec.frame_path_patterns, used when the surface gets no explicit patterns. Every in-page script now walks open shadow roots: controls, labels, sections, banners, sign-in walls, modals, busy markers and listboxes. A control inside a shadow root gets the selector '<host selector> >> <selector inside the root>', which Playwright locators accept. Closed shadow roots stay invisible. A child popup that closes itself after its apply button ends its settle wait instead of raising, as before the frame commits.
A popup routine can now list compute_anchors, buttons clicked in order before its apply button (Calculate, then Use This Value), and can run as a dialog in the same page (popup_mode: in_page). Popup inputs are re-read before the first step and again before apply, and still stay not_checked unless the stored record shows them. An estimator result that differs from a value the intake already gives now stops before submit instead of being kept. A popup that will not open, a missing or ambiguous button, or a popup that never settles becomes a POPUP_CONTRACT_FAILED stop instead of an exception out of the run.
A portal combobox that is a text input is now filled by typing, so suggestions that load only after typed text appear. A suggestion is chosen only when exactly one matches under the codec, and the choice is checked afterwards. A control the surface cannot act on stops for an operator instead of raising out of the run; after the submit click it ends delivery_uncertain.
…dios as empty An error banner or dialog whose text says the session ended is now a sign-in wall (auth_required), checked before any error is read as a validation failure, on every post-action path. After a submit request went out it is delivery_uncertain and cannot resume. Patterns are UI-profile data (session_expired_text_patterns) with generic English defaults. Native radios sharing a name are one field: an unchecked radio reads as empty, keeps its own value in radio_value and lists its group in options; an anchor matching a group resolves to the checked radio; a required group with no intake value stops once.
A confirmation page that shows the stored quote as text, not in form controls, left every field not_checked. The snapshot now also collects label and value pairs from definition lists, two-cell table rows, one-row header tables and "Label: value" text, including inside open shadow roots. They are kept out of the controls, so nothing fills or halts on them. When a read-back anchor finds no control, the judge falls back to these pairs by label: a label shown twice is not_checked, an empty or different value is failed, the same value is passed. Outputs such as a quote number are read the same way. Popup inputs re-read before apply stay not_checked.
… into claude/form-gaps-integration
…o claude/form-gaps-integration # Conflicts: # CAPABILITIES.md
… into claude/form-gaps-integration # Conflicts: # CAPABILITIES.md # packages/flow/openadapt_flow/form_tx/playwright_surface.py
…nto claude/form-gaps-integration # Conflicts: # CAPABILITIES.md # packages/flow/docs/FORM_TX.md
… into claude/form-gaps-integration # Conflicts: # CAPABILITIES.md # packages/flow/openadapt_flow/form_tx/reconciler.py # packages/flow/openadapt_flow/form_tx/surface.py
… bare-text radio labels, and common select placeholders
… into claude/form-gaps-integration # Conflicts: # packages/flow/openadapt_flow/form_tx/reconciler.py
…nto claude/form-gaps-integration # Conflicts: # packages/flow/openadapt_flow/form_tx/playwright_surface.py # packages/flow/openadapt_flow/form_tx/reconciler.py # packages/flow/openadapt_flow/form_tx/types.py
…to claude/form-tx-heldout2-run
Independent adversarial review: REQUEST CHANGESFrom: Grok This is a first review of the second held-out results PR (verdict: rework). The raw numbers, order of record, and integration glue check out. The public CAPABILITIES row does not state all three required caveats plainly.
Order of record holds: The integration glue outside the five fix PRs is sound and fail-closed: RESULTS.md already states all three caveats: K1 is met only through escalations (a person then had to finish), the dev set has 2 false receipts, and two of the five wrong quotes are flagged for other fields, not the wrong one. The CAPABILITIES row states the 2 false receipts and that none of the 15 stopped traps then ended correct, but it does not say that K1 was met only through escalations, and it does not say that two wrong quotes were flagged on other fields rather than the wrong one. Please put those two facts in the CAPABILITIES row as plainly as RESULTS does, so the public row cannot be read as a stronger claim than the run supports. No merge from me. |
Independent adversarial review: REQUEST CHANGESFrom: Gemini Reviewer: gemini-3.1-pro-preview, given the full diff against the merge base with What it checked:
New blockers: none. Grok's earlier blocker on this head (the CAPABILITIES row):
No merge from this review. |
Independent adversarial review: APPROVEFrom: Codex Codex run on 7fbb893, scoped to the delta since f3fdcc2. The delta changes one benchmark row in Blockers None. Earlier blockers
Out of scope (follow-up) None. |
# Conflicts: # packages/flow/openadapt_flow/backends/_page_quiescence.py # packages/flow/openadapt_flow/form_tx/judge.py # packages/flow/openadapt_flow/form_tx/playwright_surface.py # packages/flow/openadapt_flow/form_tx/reconciler.py
The frame-routing surface reads the owner page's url at construction.
…ped settle
Main's TOP_TICKS_JS returns {ticks, stalled}. The root-frame check still
indexed it as a list (KeyError: 0). A stalled top window now falls back
to the screenshot settle, as _per_frame does.
…ct coverage The coverage check credits each subject only with a distinct observation. Values shown as page text (not in a control) were never counted, so every text read-back became not_checked. Two read-backs on the same shown pair still count once; an ambiguous pair counts none.
…o-filled controls from the ledger A radio group got one ledger subject per option it touched, leaving one uncovered. Use the group's first option as its selector (as on claude/form-tx-rework, 5798bbc). The signer requires fields_filled_auto to equal the distinct auto_fill subjects; a control filled again after a sign-in counted twice and made the signer raise. Derive the count from the same ledger.
…s read their reply The weekend branch requires a pack to declare commit_url_patterns (or a record lookup) before a save counts as confirmed. Fixture submit handlers that navigated without reading the reply aborted the request after its 2xx, which the surface records as a failed save.
|
From: Claude |
Independent adversarial review: APPROVEFrom: Claude Delta check of the merge of claude/form-tx-weekend 0c61aaf and its follow-ups: OK. All conflicts were resolved keeping both sides; nothing fail-closed was dropped. It carries the follow-ups from 2440, 2447 and 2449, and the fixtures declare commit endpoints. Finding (non-blocking): a 2xx save whose request is then aborted by navigation is recorded as failed, so a common Local single-process runs (load under 15) passed on this head. |
# Conflicts: # packages/flow/openadapt_flow/form_tx/reconciler.py
…ly again The surface now takes a 2xx status as the save answer even when leaving the page cuts the reply body off, so the fixtures go back to the common `await fetch(); location = ...` pattern they were written with.
# Conflicts: # packages/flow/openadapt_flow/form_tx/playwright_surface.py
…wrapper The actuation note added on claude/form-tx-weekend wraps _actuate_control; the type-ahead pick's typeahead_query_chars argument must reach the inner actuation.
Independent adversarial review: APPROVEFrom: Claude Delta since 6db50ad: the merges of 1067e97 and cfdb87b, 89eed39 (test only: two fixtures go back to Conflicts:
Since the last approval, this head carries the #2429 engine commits (the 2xx save answer, the ledger check before signing, a signer refusal as a stop, and keying by sequence, popup and screen). Every Own changes preserved: Tests: 136 passed on the targeted form_tx files. The run went through cpu-slots with a non-monorepo interpreter, with this branch's code first on PYTHONPATH. I did not run them myself. |
Measures the form layer, with the five gap fixes, on four new held-out synthetic quote portals. Verdict: rework.
Stacked on #2429. It merges the five fix PRs (#2449, #2448, #2440, #2441, #2447) plus a little integration glue, so merge it after them.
Results
New portals, held out, arm B, 33 cases:
The unguarded filler got 21 of 33 wrong, with no flag.
Old four portals, now a dev set, same engine: 20 of 32 correct (the first run got 6), 10 verified (the first run got 0), and no crashes (the first run had 8). It also issued 2 receipts for wrong quotes: the wrong field was a driver list that the pack never bound.
Main causes, in
RESULTS.md:What's here
packages/flow/benchmark/form_tx_heldout2/: the new portals and answer key. A separate agent built them without reading the form layer.packages/flow/benchmark/form_tx_heldout2_run/:ENGINE_SHA;--suite, operator sign-in, and the by-hand estimator now off by default.llms-full.txt.Everything is synthetic.