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.
…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.
Independent adversarial review: REQUEST CHANGESFrom: Grok First review of this PR, at the requested head, unique against #2429 Several of the asked rules hold. Unchecked native radios now have an empty The commit-path fail-closed rule does not hold. A second, narrower hole: |
… bare-text radio labels, and common select placeholders
Independent adversarial review: REQUEST CHANGESFrom: Grok Re-review at the current head (the assigned
The unique radio/checkbox work is mostly sound and fail-closed. Two residuals, neither of which is the blocker. No merge from me. |
…tain; radio groups keep their form
Independent adversarial review: REQUEST CHANGESFrom: Grok Re-review at the current head (moved since
The unique table-label work is sound and fail-closed where it is specified. A radio or checkbox is not labelled this way. The control must be the only one in its cell, and the previous non-empty No merge from me. |
Independent adversarial review: APPROVEFrom: Grok Re-review at the current head (moved since
Native radio groups are now keyed by name plus the owning form (or shadow root, or document), so two same-named groups in different forms stay apart. The overly broad No merge from me. |
…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.
…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.
…-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.
…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.
…and bind signer to auto-fill subjects and judge ledger
…subject source with exact auto-fill equality
# Conflicts: # .gitleaksignore # llms-full.txt # packages/flow/CHANGELOG.md # packages/flow/public-artifacts.json
026326e made save confirmation fail closed unless a pack declares commit_url_patterns or a record-specific lookup. The two synthetic portal packs and the copilot runtime test pack declared neither, so every commit was refused as unconfirmed. Declare each fixture's commit endpoint as pack data; the engine check is unchanged.
# Conflicts: # packages/flow/openadapt_flow/form_tx/reconciler.py
…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. The conflict in reconciler.py was resolved keeping both the replaced-controls re-snapshot and kept_matching recording. Follow-ups: one subject per radio group (as on claude/form-tx-rework 5798bbc); the receipt's fields_filled_auto comes from distinct auto_fill ledger subjects; fixture packs declare commit endpoints. Non-blocking: that count is now tautological with the signer check on the reconciler path, so a reconciler-side assertion would restore an independent check. 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.
…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/CHANGELOG.md
# Conflicts: # packages/flow/openadapt_flow/form_tx/reconciler.py
# Conflicts: # CAPABILITIES.md
Independent adversarial review: APPROVEFrom: Claude This head is a8ad6fa, a further merge of ef4f5cc on top of 4926431. Delta since 9912b15: two merges of claude/form-tx-weekend, with no new commits of this branch's own. 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: none were reported for this head, and I did not run any. |
Independent adversarial review: APPROVEFrom: Gemini Independent cross-vendor review of What was verified
|
|
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. |
Stacked on #2429 (base
claude/form-tx-weekend). This fixes two of the engine gaps that the held-out quote-portal run found (packages/flow/benchmark/form_tx_heldout_run/RESULTS.md, findings 5 and 7).Session expiry is a sign-in wall
Before this change, a session that expired during a step showed an error banner, and the run reported it as a portal validation error. The operator policy then had no sign-in to do, so the case was escalated.
UIProfileSpec.session_expired_text_patterns.auth_required. The operator signs in and marks it fixed on screen, and the run resumes. If the banner is still showing, "fixed on screen" is refused.delivery_uncertain, and the only choices are escalate or abort. Resuming there could submit the record twice.Unchecked radios read as empty
Before this change, an unchecked native radio read as holding its value attribute. Every radio therefore looked prefilled, so packs had to work around it.
ObservedControl.radio_valueholds the radio's own value, andoptionslists the group's values and labels.match_anchor_in_snapshot, an anchor that matches several radios of one group resolves to one field: the checked radio, or the first one when none is checked. It no longer raises an ambiguity error.RADIO_GROUPactuation finds the radio to click by its own value.Tests
The new
tests/test_form_tx_expiry_and_radios.pyruns headless Chromium against a small stdlib portal served inside the test. It covers six cases:auth_required, and sign-in followed by "fixed on screen" resumes toverified_done;auth_required;passedand gets a receipt.On the zenbook lab, all 238
tests/test_form_tx_*.pytests ran. 237 passed. The one failure istest_reference_human_solves_every_scored_case: the old portals' own reference driver hit aTargetClosedErrorwhen a popup closed during a click. That driver does not use the form layer, and the same test fails the same way when run on its own. ruff check and format are clean.Nothing here has been measured on held-out portals yet. CAPABILITIES.md says so.
Follow-up (a5a1615, 52c1183): checkboxes and radios are set by a click and then re-read by name and value, so a page that rebuilds the control on change works, and a state that did not take stops the run. A fill that rebuilds the form's controls makes the layer look again before the next field. ARIA radios named by their own text and native radios followed by bare text get labels, ARIA radiogroups get group options and a group label (also for fieldset legends), an option with an empty label but a real value is no longer dropped, and "Select one" and similar placeholders read as empty. Tests:
tests/test_form_tx_radio_followups.py(headless Chromium).