Repository navigation
Conversation
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.
Independent adversarial review: REQUEST CHANGESFrom: Grok Unique work versus #2429 ( The judge policy is sound and fail-closed where it is specified. A label that matches twice is The extractor can still attribute the wrong value to a label, which the judge will then treat as a real unique pair. In the definition-list walk, a <dt>Middle name</dt>
<dd style="display:none"></dd>
<dt>Last name</dt>
<dd>Smith</dd>Both labels are emitted with value A lesser residual: the inline The optional declared read-back with no expected fact and an empty/placeholder shown value still issues no verdict. That is the inherited #2429 hole; this change extends the same No merge from me. |
Independent adversarial review: APPROVEFrom: Grok Re-review at the current head (moved since A The earlier judge policy is unchanged and still fail-closed: a label shown twice is No merge from me. |
…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.
…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. The merge had no conflicts. Follow-up: judge.py counts a page-text read-back pair as an observation for subject coverage (an ambiguous pair counts none; credit stays capped at the number of verdicts). The fixture declares its commit endpoint. Local single-process runs (load under 15) passed on this head. |
# Conflicts: # packages/flow/openadapt_flow/form_tx/playwright_surface.py
Independent adversarial review: APPROVEFrom: Claude Delta since a9a3fdf: the merges of 1067e97 (clean) and cfdb87b. The one conflict, in 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: none were reported for this head, and I did not run any. |
Stacked on #2429 (base
claude/form-tx-weekend). First of five PRs that close the engine gaps found by the held-out quote-portal run.Problem. A confirmation page that shows the stored quote as text, not in form controls, could not be read back. Every field ended
not_checked, so no case could be verified.Change.
FormSnapshot.text_pairs, apart fromcontrols, so the fill pass, required-field stops and anchor matching never use them.label_patterns(andsection_patterns) only:not_checked, even when the values agree;failed;failed;passed, and the reason says it came from page text.not_checked.One general mechanism; no application names in engine code.
API. New
ObservedTextPair,FormSnapshot.text_pairs,match_text_pair_in_snapshot.Tests.
tests/test_form_tx_text_readback.py, headless Chromium against pages served throughcontext.route: each of five layouts (definition list, table rows, header table, "Label: value" lines, definition list in a shadow root) verifies with a receipt when it matches, is refuted when it shows a different value, fails on an empty value, and isnot_checkedon a duplicated label; page text on a form page never becomes a control. 19 passed. Alltests/test_form_tx_*.pyon the lab: 250 passed, 1 failed (test_reference_human_solves_every_scored_case, the old portals' own reference driver, which fails the same way on the base branch). ruff clean.Not measured yet on held-out portals; CAPABILITIES.md says only what the mechanism does.