Repository navigation
Conversation
…ect location A summary row such as "Ada Byron (01/31/1990)" shows two intake values. SummaryCheckSpec.row_readbacks declares such a row: an anchor, a pattern that must match the whole text, and one part per intake key with its codec. The summary judge turns each row into an openadapt.effect-location/v1 template location and judges it with the shared evaluator, so each key gets its own verdict: a wrong date refutes the date and still checks the name. Behaviour change: keys a pack covers with row_readbacks now get passed, failed or not_checked verdicts of their own, where before they could only be not_checked (or checked through a derived string). Packs without row_readbacks are unchanged; an empty list is left out of the pack dump, so their digests are unchanged too.
…e with no intake From review: keys checked only through row_readbacks were also judged as undeclared, so they could never pass. They are now declared. And, like a field read-back, a row part with no intake value that the summary shows non-empty is refuted (a portal prefill). An end-to-end headless test runs a form whose summary shows name and date of birth in one row: both pass, and a stored wrong date fails the date alone; it 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. This PR elegantly solves the problem of reading back multiple values from a single summary row by leveraging the shared However, there is a critical bug in how the judge determines which keys are "declared" for read-back, which will cause runs to fail if they rely solely on BLOCKERKeys checked only via Fix: Add the keys from for row in summary_check.row_readbacks:
for part in row.parts:
declared_keys.add(part.dossier_key)SHOULD-FIXUngrounded values shown in summary rows are silently ignored. NITMinor reporting inaccuracy for part = next(p for r in rows for p in r.parts if p.dossier_key == key)If a key happens to be checked in multiple rows using different codecs (e.g., Verdict: 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 updates in this round look great. Both the BLOCKER and the SHOULD-FIX from the previous review have been elegantly addressed. The fix to There are no fail-open paths or correctness bugs remaining. I have just two minor nits. NITMinor reporting inaccuracy for Unhandled group = fits.group(part.group) if fits else NoneIf a pack author makes a mistake and specifies a Verdict: APPROVE WITH NITS |
|
From: Claude Author declaration at the head above. Synthetic tests only; no real app was run.
|
What this does
Step 2b: the combined summary row. It is stacked on #2508 and uses the effect-location record from #2500.
A summary often shows two intake values in one row. For example, "Ada Byron (01/31/1990)" holds a traveller's name and date of birth. Until now a pack could not read such a row as two values. Both keys ended
not_checked(set4v2 larkspan:traveller_1_nameandtraveller_1_dob), or the pack checked a derived string built from both, which says nothing about either key alone.SummaryCheckSpec.row_readbacksdeclares such a row:patternthat must match the whole shown text;SummaryRowPartSpecper intake key, each giving a named group, the key and its codec.The summary judge turns each row into an
openadapt.effect-location/v1templatelocation with startsame_screen, and the shared evaluator judges it (form_tx/row_location.py). The judge grows by about 50 lines.Each key gets its own verdict:
not_checked;not_checked;not_checked.Codecs. The shared codec reads the displayed text. form_tx's codec reads the intake value, so intake formats stay as they are. Three part codecs are supported:
whitespace_collapse,casefoldandiso_datein the part'sdate_order. Any other codec leaves the rownot_checked.Behaviour change
For keys a pack covers with
row_readbacks, the judge now gives each key a verdict of its own: passed, failed ornot_checked. Before, such keys could only benot_checked.Packs without
row_readbacksare unchanged. An empty list is left out of the pack dump, so their digests don't change either; a test checks this.This PR doesn't change any benchmark pack. Switching larkspan from
travellers_shownto a row read-back is a pack change for the benchmark owner.Tests
All synthetic.
tests/test_form_tx_row_location.py: 14 passed. It covers both values held, each part refuted alone, the cases that can't be read, an intake value the codec can't read, an unsupported codec, a key with no intake value, the judge's verdict mapping, an unchanged digest and a refused pattern.Since opening
row_readbacksare now counted as declared. Before, they could never pass.tests/test_form_tx_row_location_e2e.pyruns headless Chromium with name and date of birth in one summary row. Both values pass and the run endsVERIFIED_DONE. A stored wrong date fails only the date. Both tests fail without the fix.