Repository navigation
feat(form-tx): run the general GUI mechanisms from the reconciler; Set 4 v2 dev re-run clears 3 of 12 false stops with no harm - #2517
Conversation
…n a pack opts in FormPack.gui (form_tx.gui_pack) declares repeating groups, hub pages, link steps and attestations as data; form_tx.gui_bridge runs them from three points in the reconciler. Repeating groups fill every intake item into its own instance and check it there; hub sections are filled by the pack's own bindings and counted done only when their card reads done; a step drawn as a link is taken with gui.steps; an attestation is ticked only on a grant passed to the run. stop_on_blank_choice stops on a question no binding answers. Review rows drawn as a label beside its value are read before the commit. gui.hub gains save_section so a section paused for a person can resume. The Set 4 v2 packs move onto it as packs6 (written after unsealing).
…clean false stops clear, no harm added Arm B re-run on the merged tree matches the registered rows. packs6 (written after unsealing) clears lta-s01, s05 and s06, moves bfu-s02 to the community pick, and takes wrong submits from 1 to 0. No false receipt and no silent wrong submit. Rows, logs and control logs are committed.
Independent adversarial review: APPROVEFrom: Gemini Gemini run on b3f4e24 (model BlockersNone. Non-blockingNone. |
… screen From Gemini's review of #2517: a gui step or a hub leave returned CONTINUE before the reconciler's unbound scan, so a prefilled field no binding covers on that screen was never stopped on. The scan now runs before a step, before leaving a hub, and in each section dialog before its save.
…clear, 0 wrong submits)
…k only rows this run entered From Gemini's review of #2517: after filling a group the screen went on with the snapshot from before the rows existed, so the unbound scan and the next control saw a stale screen. Filling now restarts the loop; the next pass checks the rows and goes on. Rows showing data this run did not enter are never taken as already entered.
…e marks them modal From Gemini's review of #2517: the blank-choice and unbound scans skip controls inside a modal, so under a profile that treats the section dialog as a modal its fields were never scanned before the save.
Independent adversarial review: REQUEST CHANGESFrom: Gemini Gemini run on 53bc251 (model Blockers
Non-blockingNone. |
Independent adversarial review: REQUEST CHANGESFrom: Gemini Gemini run on d358a05 (model Blockers
Non-blockingNone. |
Independent adversarial review: REQUEST CHANGESFrom: Gemini Gemini run on f746d3c (model Blockers
Non-blockingNone. |
Independent adversarial review: APPROVEFrom: Gemini Gemini run on 8249186 (model BlockersNone. Non-blockingNone. |
What this adds
This wires the four general GUI mechanisms (#2499, #2501, #2502, #2512) into the
form_txreconciler and measures them on Set 4 v2, which is now a dev set.FormPack.gui(form_tx/gui_pack.py) is opt-in pack data. It holds link and tab steps, attestations, repeating groups, hub pages andstop_on_blank_choice. A pack without it hashes and behaves exactly as before.form_tx/gui_bridge.pyruns the mechanisms from three hooks inreconciler.py, which add 18 lines:run_section, and the hub is left through its declared link only when every card reads done. A stop inside a section resumes with the newgui.hub.save_section. A sign-in dialog after a save goes to the sign-in wall.take_step.session.attestation_grants, and checked.benchmark/form_tx_heldout_run/packs6holds the Set 4 v2 packs moved ontogui. The suite isset4v2gui, andrun.py --attester NAMEpasses the grant, off by default.packs5and the registered B rows are unchanged.Result (dev set: the packs were written after unsealing)
Full write-up:
benchmark/form_tx_set4v2_run/WIRING_RESULTS.md. The arm B re-run on this tree matches the registered rows on every case.lta-s01,lta-s05andlta-s06.lta-s05also needed a new pack step, "Update my details", written after seeing the case.bfu-s02now opens every hub section and stops at the community pick (T5).lta-s10, gets the operator's answer to its blank question and submits the correct record.lta-s04by the review row check;lta-s07by the binding conflict;lta-s10by the blank-choice stop.Tests
tests/test_form_tx_gui_bridge.py: 9 tests on two in-test synthetic apps. The first is an EMR-like medication list: repeating group, link step, attested review, blank question, missing list, and a prefilled field on the screen or inside an added row. The second is a SaaS setup hub: sections saved and read back, a save the app ignores, and a prefilled field inside a section dialog.tests/guiandtests/failopenall pass on this branch. The fold-ratchet test fails, as it already does on the integration base. Its rises come from the form stack's own files (judge.py,receipt.py,types.py,reconciler.py,playwright_surface.py,_page_quiescence.py) measured against feat(flow): one verdict kernel, a fail-open harness and a fold ratchet #2476's baseline. The new modules add no fold.Base
The base is
claude/form-tx-integration-base, a merge-only branch. It merges #2464's branch (which carries #2461) with #2476 and the four GUI PRs, and resolves their four conflicts (.gitleaksignore,llms-full.txt, the flow CHANGELOG and_page_quiescence.py). It also carries one fix the merge needed,01c2410dd: the stack's frame tick check read #2476's new{ticks, stalled}probe result as a list, and 28 frame tests failed. This PR's diff is the wiring and the measurement only.