Repository navigation
Conversation
…rest as not_checked The judge covered pack bindings and facts, not what the run wrote. Fields typed inside a popup estimator had no verdict at all, so a run could end verified with a signed receipt while those fields were never checked. - Record every write (auto fill, operator value, kept prefill, fixed on screen, popup return) in a per-session ledger; the judge gives each one a verdict. - Add a third verdict status, not_checked, for a field with no declared read-back, a missing or ambiguous summary control, or a failed lookup. It is never passed. - Add the readback_incomplete outcome: submitted, nothing contradicted, but at least one field unchecked. No receipt; receipts and verdict models refuse to pass with an unchecked field. - Re-read popup inputs just before the popup's apply button, since the summary usually does not show them; a mismatch stops before apply. - Side panel shows refuted and incomplete runs as needing action.
…into claude/form-tx-weekend
…apply A re-read of the popup before its apply button guards the apply, but it is not a read-back of what the application recorded. Report those fields as not_checked. Key the write ledger by field, selector and popup so a popup input never hides a main-form write of the same key. The historical underwriting fixture now ends readback_incomplete: its estimator inputs are never shown.
(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
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. |
…e reply body The surface marked a save as failed when the request failed after its status arrived. That happens whenever a page does `await fetch(); location = ...`: leaving cuts off the reply body. No save decision reads the body, so the status and headers are the answer; a request that never got a status still fails.
…nt fills from the ledger; a signer refusal is a stop - Every control the reconciler actuates is noted apart from the write ledger. Before signing, each must be in the ledger (a radio option may be named by its group); otherwise the run ends readback_incomplete with no receipt. - The receipt's fields_filled_auto is the number of distinct auto-filled controls in the ledger, so a control filled again after a sign-in or a re-render is one field. - A signer refusal (ValueError) ends the run readback_incomplete instead of raising, including from apply_human_resolution. Tests pin the await-fetch-then-leave pattern with a reply that is still streaming, a save with no status, an actuation missing from the ledger, a planted signer refusal after a human decision, and a re-filled control.
# 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.
…a client abort; actuations keyed by popup and screen Review follow-ups: - The answered flag is keyed by the request's sequence number and cleared with the counter, so a reused object id cannot turn a later failed save into a cut-off reply. A request that failed after its status counts as a cut-off reply only when the browser reports a client abort; any other failure still vetoes the save. - An actuation is covered only by a ledger entry in the same popup and on the same screen, as the ledger keys its subjects. Tests: a later save with no status vetoes an earlier 2xx; a ledger entry for the same selector in another popup does not cover an actuation.
# Conflicts: # packages/flow/openadapt_flow/form_tx/playwright_surface.py
# Conflicts: # packages/flow/CHANGELOG.md
…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. |
# Conflicts: # packages/flow/CHANGELOG.md
# Conflicts: # CAPABILITIES.md # llms-full.txt
Independent adversarial review: REQUEST CHANGESFrom: Grok Cross-vendor re-review at the current head. My last verdict was REQUEST CHANGES at My earlier finding: resolvedThe public CAPABILITIES row ( Blocking: CI is red on this PR's own files
#2429 hit the same thing and fixed it by renaming its answer file to P2: the auto-fill cross-check is now self-vouching
Other engine changes reviewed
The Tests at this head (Python 3.12, in-tree flow and types)
CI at review time13 pass, 33 skipping, 8 failing: gitleaks, scope, packages-gate ×2, ci, run-ci, plus protected-path evidence / protected-safety-review ("base must be main", expected while stacked). |
…ead it as key material check_evidence_keys denies any tracked file named like a key, and answer_key.json matched. As in #2429, the file is now answers.json and the manifest field answers_sha256; contents and sha256 are unchanged. The historical gitleaks generic-api-key findings (manifest digests and the synthetic portals' made-up test passwords) are pinned in .gitleaksignore by commit, file and line. The selfcheck test is also run through ruff format.
…s for the signer 9b99046 passed the signer a count derived from the same write ledger it checks, so the auto-fill cross-check could not fail. The session now notes each auto-filled control, by ledger key, at the fill itself and passes that count. A control filled again after a sign-in is still one field, and an operator write that replaces an auto-fill removes it from both sides. A fill the ledger records under another source is refused.
|
From: Claude Author declaration for the fixes to the Grok review at Blocking:
P2: the auto-fill cross-check was self-vouching. Fixed in
Masked lint. Checks run locally (Python 3.12, in-tree flow and types):
Not run: the heldout2 |
Independent adversarial review: APPROVEFrom: Gemini Independent cross-vendor review of What was verified
|
Independent adversarial review: APPROVEFrom: Grok Delta re-review of my REQUEST CHANGES at Blocker 1 (gitleaks / scope on the answer file): fixed in the tree, CI not reported yet
P2 (auto-fill witness was self-vouching): fixed
Delta 3
Generality gate: the engine changes are in Tests at this head (Python 3.12, in-tree flow + types + verify)
CI at review time14 pending, 2 skipping, 1 failing. |
|
Architectural pivot (founder Option 1, 2026-11-23): freezing the hand-written form-tx DOM heuristic and word-list stack to focus on openadapt wrap + demonstration-derived CheckpointSpec + Cross-Tab Entity Ledger + GUI-to-API/MCP promotion. Branch preserved for reference. |
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.