Skip to content

bench(form-tx): measure the rework on two new held-out portals (verdict: rework) and re-run the dev set - #2464

Draft
abrichr wants to merge 53 commits into
claude/form-tx-heldout2-runfrom
claude/form-tx-rework-run
Draft

abrichr wants to merge 53 commits into
claude/form-tx-heldout2-runfrom
claude/form-tx-rework-run

Conversation

@abrichr

@abrichr abrichr commented Nov 21, 2026

Copy link
Copy Markdown
Member

This PR measures the form-layer rework (#2461).

Verdict on the new held-out portals: rework. The receipt claim is killed: one wrong quote got a receipt.

The branch is stacked on #2453 (claude/form-tx-heldout2-run) and merges #2461's head, so the diff also shows the engine change. The rows were run at:

What Commit
Engine 13772e2b6
Packs 85606e0f0
Results a1f024d37 and later

Third held-out run: two new portals, 16 scored cases (9 trap, 7 clean)

Files: packages/flow/benchmark/form_tx_heldout3_run/.

The pre-registration was pushed (0de9e75d4) before the portals branch was opened. A fresh agent that never read form_tx built the portals (claude/form-tx-heldout3-portals at 177378a6e). Two more fresh agents wrote the packs from the dev case only. The engine was re-pinned once, before any scored case (D1).

Bar Result
K1, trap cases stopped before submit at least 75% 8 of 9 met (1 then correct)
K2, clean cases with a false stop at most 10% 3 of 7 not met
K3, submitted that end verified with a receipt at least 50% 4 of 7 met, but 1 is a false receipt
K4, wrong values submitted zero 2 not met (1 receipt, 1 flagged and naming the field)

Arm A, the unguarded filler, got 10 of 16 wrong, all silently.

Dev re-run of the eight earlier portals (frozen packs)

File: packages/flow/benchmark/form_tx_heldout2_run/RESULTS_REWORK.md.

Before After
Wrong submits 10 2
False receipts 2 0
False stops 12 14
Verified on set 1 10 0

Verified on set 1 falls to 0 because the old packs never declare ignored_intake_keys.

Open

  • A bound question that is shown with no intake value and left empty still verifies. This is the false receipt.
  • Validation stops on a one-question form carry no label.
  • Type-ahead options are matched exactly.
  • A portal-derived value that differs from the intake is not re-read before submit.

Do not merge.

…every stop

- A sign-in or a jump back after fields were entered marks the run
  interrupted. Before submit it walks back to the earliest visited screen
  that has a revisit selector and re-checks every field on the way, or
  stops (fields_not_rechecked) naming each field it cannot re-check.
- Controls no binding covers are watched: free text holding a value the run
  did not type stops; any other value it did not set keeps the run from
  verified_done (not_checked unbound:<label>); pack-declared unbound
  controls at their blank value are named on the receipt; an empty field
  whose label names an unused intake key stops. Receipts list the keys they
  cover and what they do not.
- Validation stops name the field (own error text, an alert in its box, an
  error summary that names it, a marker that appeared in its row, or a
  required field left empty); radio stops name the group.
- Pack data for blank-form defaults (written over, never after this run
  wrote the field), a Select button chosen by its row's cells, a date in
  three boxes read back as one value, an output in a sentence, and an
  output shown as 'Label: value'.
…gend-less radio groups by row; one-question forms advance

- An intake key with a value that no binding enters (and the pack does not
  list in ignored_intake_keys) is not_checked as intake:<key>, so the run
  cannot end verified_done. This is the class behind the dev-set false
  receipt for an additional-driver list the pack never entered.
- A radio group with no legend or aria label is named by its table row's
  header cell, not by an option.
- A row counts as having gained a validation marker only when its old text
  is still there and something was added.
- The visible field labels are part of a screen's signature, so a form that
  asks one question at a time in the same control advances.
# Conflicts:
#	CAPABILITIES.md
#	llms-full.txt
@abrichr

abrichr commented Nov 21, 2026

Copy link
Copy Markdown
Member Author

From: Claude form-tx rework agent
To: Grok

Grok, please review #2464 at exact head d17cda26f31e70e8a9e21cb60d828b72abadf4b3 and post your verdict on this PR yourself. Use the heading ## Independent adversarial review: <VERDICT> and include From: Grok and Reviewed-Head: lines. Do not merge.

This is a measurement PR. Please check whether the counts and verdicts match the raw rows. Compute them yourself:

python benchmark/form_tx_heldout_run/summarize.py --suite=heldout3 form_tx_heldout3_run/results/arm_B.jsonl

Please also check these points:

  • Was the protocol actually followed? The pre-registration (0de9e75d4) should come before the portals merge, and the packs (85606e0f0) before the first scored row. Is D1 an honest account of what changed?
  • Does RESULTS.md or RESULTS_REWORK.md overstate anything? In particular: K3 counted with a false receipt inside it, and the dev-set rows presented as anything other than dev-contaminated.
  • Does the capabilities row claim more than the rows show?

Post-freeze (after the third held-out run's scored rows). If only a later
screen could be revisited, the re-walk started there and the first screen's
fields were never re-checked before submit. Now only a walk from the first
visited screen counts; otherwise the run stops with fields_not_rechecked.
Test: the sign-in test where only the second tab can be revisited.
Three new carrier portals (condo unit-owners, motorcycle, pet health), each
with one dev case and 10-11 scored cases, built on the set-2 harness
contract: same PortalSpec, oracle endpoints, answer key, intakes, scorer,
reference fillers and manifest. The careful-human reference solves all 32
scored cases; REFERENCE_RUNS.json records both reference fillers.
Give every occurrence of a recurring question an operator answer, list the
operator keys in the intake vocabulary, use a unit conversion that rounds
and truncates the same way, rename the lenders, and count clean-tagged and
submit_clean cases separately in REFERENCE_RUNS.json.
…as key material

check_evidence_keys denies any tracked file named like a key, and
answer_key.json matched. The file is now answers.json and the manifest field
answers_sha256; contents and sha256 are unchanged. The four gitleaks
generic-api-key findings on the old manifest lines (digests, not keys) are
pinned in .gitleaksignore by commit, file and line.
…mary is not_checked

Grok and Gemini blocker on #2429: a field the run wrote, declared in
field_readbacks, with no expected fact, shown empty or as a placeholder and
not required_in_pack got no verdict, so a run could reach verified_done
with a receipt. It is now not_checked. Headless test included. RESULTS.md
points at the arm A rows in arm_A_full.log.
…run's own pick

Gemini blocker on #2448: _control_matches_fact accepted a separator-bounded
leading part for any type-ahead, assuming the typed baseline, so a field the
portal prefilled with '2210 Juniper Loop' matched the intake's full address:
no stop, no action, submitted. The leading-part rule now needs the text this
run actually typed before its pick (recorded per field), and a prefilled or
untyped value must match in full. Test: the prefilled leading part is a
prefill conflict and nothing is submitted.
…by class

Codex's #2429 blockers and the database-access review, fixed as classes at
the single aggregation points, shaped for the coming verdict algebra
(claude/fail-open-general):

absent-evidence-as-success
- judge: every written, kept or operator-accepted control is a Subject keyed
  by where it is (popup, selector, entity row), never by dossier key. One
  verdict accounts for one subject; any subject left without a verdict is
  not_checked (read_subjects, uncovered_subject_verdicts). Covers two
  controls holding one key, an accepted entity row, and a popup input that
  already held its value (now recorded as kept_matching).
- receipt: the signer refuses verified_done without per-field verdicts, all
  passed, covering every bound field the dossier has a value for (one
  passing field is partial, never verified).
- reconciler: a single-screen form with no commit control finalizes only if
  the page saved something during the run; a run with an open stop does
  not move until apply_human_resolution decides it.
- e2e: uw_06 and the underwriting cases assert the saved record against the
  server oracle on its own.

partial-match-as-match
- judge: a radio option matches only when it is selected.

evidence labelling
- read-back is labelled by who produced it (readback_evidence:
  acting_session_reread, separate_session_read, operator_attested); the
  judge reads through the acting session, so nothing calls it independent.

compatibility
- v1 receipts signed before readback_not_checked_count/readback_evidence
  existed still verify, and form_tx_receipt_format labels them older.

docs
- RESULTS.md pins the engine-freeze diff to the measured commit 124db5c.
Codex's #2448 blockers at c329c57:
- A leading part of a type-ahead value never matches, for any field or
  caller (removes _is_leading_part_of_choice and the typed-query
  bookkeeping that tried to scope it). Covers a pick inherited through a
  reused selector, a shortened display after a pick, and popup/parent
  selector clashes.
- A pick counts only if the click changed the field: the value just before
  the click must differ from what the field shows after. With no query
  length set, the run types all but the last character, so a real pick is
  visible and an inert click (typed text or an inline completion left in
  the field) stops.
- A redrawn type-ahead is found again only among controls that were not on
  the page before the pick; an existing look-alike never counts.
Tests: a pick that keeps only the leading part stops; an inert pick with a
full-length value stops; the prefilled leading part is a prefill conflict.
…-evidence-as-success, partial-match-as-match)

Codex's delta review at dd78df9:

absent-evidence-as-success
- Coverage counts distinct observations: two read-backs that resolve to the
  same summary control account for one subject, and the write ledger keys
  controls by screen too, so a selector reused on another screen is another
  subject.
- One subject per accepted entity row, not per table.
- A control that already held its value is recorded (kept_matching) under
  every prefill policy, an unchecked box meant as "no" included; the popup
  pre-apply check finds each write's binding by its selector, not its key.
- A commit click that sent no save request is delivery_uncertain, never
  finalized; a single-screen form with no commit control always stops.
- The signer refuses a verified receipt on the digest-only path, requires a
  passing verdict for operator-supplied keys too, and derives the signed
  count from the verdicts.
- A repeated call on an open stop is never more retryable than that stop.
- Receipt encodings follow field presence as signed: a later v1 field
  present on the wire is always encoded; one absent marks the older format;
  an older receipt's reader is reported as unknown.

partial-match-as-match
- A radio option matches in reconciliation only when it is selected, and
  an unselected option reads as empty.

docs
- The synthetic portal docstrings no longer call same-session reads
  independent.
…page, compile demos

absent-evidence-as-success (cv-s04 class, the third held-out run's false
receipt): a bound field the page shows, with no intake value, that nobody
answered stops before submit, unless the pack marks the binding optional;
an optional one left blank is named on the receipt as not covered
(optional-blank:<key>), never as covered.

Pre-submit review: SummaryCheckSpec.review_readbacks are compared on the
commit screen before the click; a value the review shows that differs from
the intake (one the portal derived or changed) stops before submit.

form_tx/demo_compiler.py (setup time, no model calls): from dev-case
demonstrations and their intakes, a defaults table (a value is a proven
portal default only when every demonstration shows the same blank value and
an intake asked for something else), row key cells (intake keys equal to a
cell of exactly one row of identical buttons), option code-to-text ENUM_MAP
codecs, buttons never clicked that the pack does not cover (popups the dev
case never opened), and suggest-only error routes. Only proven defaults,
exact row cells and exact option maps are offered as pack data.
…ude/form-tx-rework

# Conflicts:
#	packages/flow/openadapt_flow/form_tx/judge.py
#	packages/flow/openadapt_flow/form_tx/receipt.py
#	packages/flow/openadapt_flow/form_tx/reconciler.py
#	packages/flow/openadapt_flow/form_tx/types.py
…o claude/form-tx-rework

# Conflicts:
#	packages/flow/openadapt_flow/form_tx/reconciler.py
… B), recorder captures before value changes, per-control logs
…t-evidence-as-success)

Codex's review at be4ee06, items 5 and 6:
- A commit finalizes only with evidence of a save: a state-changing request
  the server answered with 2xx/3xx after the click (counted from responses,
  not request starts), and the page no longer on the uncommitted commit
  screen. Otherwise delivery_uncertain, never verified.
- The signer checks coverage of the individual subjects (every written,
  kept or accepted control, popup inputs included) with the same coverage
  pass as the judge, and refuses a verified receipt without the run's
  writes.
Follow-up, filed for the fail-open fuzzer (same class, not fixed here):
public serialization of an older receipt expands the defaulted reader
field and loses the field-presence information verification uses.
…er), dev case only, before any scored case
…ude/form-tx-rework

# Conflicts:
#	packages/flow/openadapt_flow/form_tx/receipt.py
#	packages/flow/openadapt_flow/form_tx/reconciler.py
…work surfaces, read route

- Every review-page check that is skipped (no intake value, shown more
  than once, not shown) becomes not_checked review:<key> on the result,
  never a silent skip (absent-evidence-as-success).
- A write count of 0 on a surface that cannot observe the network is
  reported as unknown, not as "nothing sent"; PlaywrightFormSurface
  declares observes_network.
- SummaryVerdict.read_route records whether the read was the page the run
  landed on after commit or a new navigation or search that fetched the
  record again (reporting only, for the check-level ladder).
…orm-tx-rework-run

# Conflicts:
#	CAPABILITIES.md
#	llms-full.txt
…T4V2_PRIVATE), pack loaders, dev demonstrations
… unknown script actions (select) to a provided value (post-hoc harness fix)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant