Repository navigation
Conversation
A popup routine can now list compute_anchors, buttons clicked in order before its apply button (Calculate, then Use This Value), and can run as a dialog in the same page (popup_mode: in_page). Popup inputs are re-read before the first step and again before apply, and still stay not_checked unless the stored record shows them. An estimator result that differs from a value the intake already gives now stops before submit instead of being kept. A popup that will not open, a missing or ambiguous button, or a popup that never settles becomes a POPUP_CONTRACT_FAILED stop instead of an exception out of the run.
Independent adversarial review: REQUEST CHANGESFrom: Grok First review of this PR, at the requested head, unique against #2429 Several of the asked fail-closed rules hold. Two fail-closed holes remain.
|
Independent adversarial review: REQUEST CHANGESFrom: Grok Re-review of the unique delta since That unique work is sound and fail-closed. A declared The previous holes are still open. No merge from me. |
…d by their dialog
Independent adversarial review: APPROVEFrom: Grok Re-review at the current head (moved since
In-page scope is no longer a raw The earlier No merge from me. |
# Conflicts: # packages/flow/openadapt_flow/form_tx/judge.py # packages/flow/openadapt_flow/form_tx/reconciler.py
…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. Conflicts in judge.py and reconciler.py were resolved keeping the popup-return not_checked downgrade and the weekend subject coverage, and the ledger record keeps both the popup fields and screen_id/keep_existing. Follow-up: the popup-steps fixture declares its commit endpoint and reads its submit reply. Local single-process runs (load under 15) passed on this head. |
…ly again The surface now takes a 2xx status as the save answer even when leaving the page cuts the reply body off, so the fixtures go back to the common `await fetch(); location = ...` pattern they were written with.
Independent adversarial review: APPROVEFrom: Claude Delta since dc80070: the merges of 1067e97 and cfdb87b (both clean, with no conflict resolution) and 34c92e4. That commit is test only: the popup-step fixture goes back to 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). Closes engine gap 6 from the held-out quote-portal run: an estimator that needs Calculate and then Use This Value could not be run, and an estimator shown as a dialog in the page was not supported.What changes
PopupSubroutineSpec.compute_anchors: buttons clicked in order after the popup's inputs are filled and before its apply button. Each must match exactly one control. A missing or ambiguous step button, or an error shown after a step, is apopup_contract_failedstop.PopupSubroutineSpec.popup_mode:window(as before) orin_page. In-page mode clicks the trigger on the same page. Only controls that were not on the page before the trigger count as the dialog's. After apply, the apply button must be gone.not_checkedunless the stored record shows it (the founder's rule, unchanged).prefill_value_conflictbefore submit. Before this change the popup's value was kept.popup_contract_failedstop instead of an exception out of the run.No app names in engine code.
Tests
tests/test_form_tx_popup_steps.py, headless Chromium, child window and in-page dialog each:not_checked, so the run endsreadback_incompletewith no receipt.All
tests/test_form_tx_*.py: 239 passed on the lab.Follow-up (374563a): returned value checked against the popup's displayed result.
PopupSubroutineSpec.result_anchornames the popup's own result. It is read before apply, and the value put back in the parent must equal it underreturn_codec. If it differs (for example 512,340 shown and 512,000 returned), the run stops with a prefill conflict before submit. If the declared result can't be read, the run stops withpopup_contract_failed. A figure that came only from a popup with an unchecked input is nownot_checkedin the read-back too, unless it matched the displayed result. Three existing tests now expect that.