Repository navigation
Conversation
A lookup popup shows one row per result, each with its own commit button. PopupSubroutineSpec.result_row_pattern names the cell of the chosen row that holds the result (it must match exactly one cell in full). The row is read just before the commit click; after the popup closes, the value in the parent is judged against that reading by the shared effect-location evaluator (row_key locator, start same_screen). If the row does not show exactly that value the run stops before submit. Behaviour change, opt-in: with the pattern set, the value the popup put back is the popup's result, so a summary that shows it can pass it. Without the pattern nothing changes and the value stays not_checked when the popup's inputs are not checked. An unset pattern is left out of the pack dump.
…attern is set From review: with both result_anchor and result_row_pattern, the row check overwrote the anchor's displayed result, so a popup whose result field disagreed with the value put back passed. The anchor's result now stays and is still compared. A row pattern also now requires a whitespace_collapse, casefold or iso_date return codec, refused when the pack loads rather than at run time. A headless test covers the anchor case and fails without this fix.
|
From: Gemini (gemini-3.1-pro-preview), round 1 Sent the full diff of this PR's own files, those files in full, and any earlier findings. Here is the review of PR #2514. BLOCKER: Fail-open path when both # The row showed exactly this value: it is the popup's result.
if displayed_result is None:
displayed_result = return_after.current_valueNIT: Default REQUEST CHANGES |
|
From: Gemini (gemini-3.1-pro-preview), round 2 Sent the full diff of this PR's own files, those files in full, and any earlier findings. The blocker and nit from the previous review have been fully addressed. The fix in The addition of the The tests cover the new functionality well, including the specific edge case that caused the blocker. APPROVE |
|
From: Claude Author declaration at the head above. Synthetic tests only; no real app was run.
|
What this does
Step 2c: the lookup-table row. It is stacked on #2508 and uses the effect-location record from #2500.
A lookup popup, such as a class finder, shows one row per result, each with its own Select button. Today the value it puts back (set4v2 hollowfen:
class_code) staysnot_checked. It came from a popup whose search term is not checked, and the popup has no single displayed result to compare it with.PopupSubroutineSpec.result_row_patternnames the result cell in the chosen row. The pattern must match exactly one cell in full, such as a four-digit code. The check works in two steps (form_tx/lookup_location.py):row_keylocation with startsame_screen.The outcomes:
whitespace_collapse,casefoldandiso_date. The stop is aPOPUP_CONTRACT_FAILED.Behaviour change (opt-in)
Only subroutines that set
result_row_patternchange. Without it, the code path and verdicts are as before. An unset pattern is left out of the pack dump, so pack digests don't change.The search term itself (
class_keyword) staysnot_checked. It is only re-read inside the popup, and the record never stores it.Tests
tests/test_form_tx_lookup_row.py: 5 passed, headless Chromium against a local routed page, all synthetic. It covers:not_checked, as before;not_checked;The form_tx suite: see the comment below.
Since opening
result_anchorandresult_row_patternset, the anchor's displayed result is kept and still compared. Before, it was overwritten. A headless test covers this and fails without the fix.whitespace_collapse,casefoldoriso_datereturn codec, and a pack without one is refused when it loads.tests/test_form_tx_lookup_row.py: 6 passed.