Repository navigation
Conversation
…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. |
# 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. |
# 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. |
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).