Repository navigation
fix(form-tx): read back every field, report the rest as not_checked, and measure on held-out quote portals - #2429
Conversation
…rest as not_checked The judge covered pack bindings and facts, not what the run wrote. Fields typed inside a popup estimator had no verdict at all, so a run could end verified with a signed receipt while those fields were never checked. - Record every write (auto fill, operator value, kept prefill, fixed on screen, popup return) in a per-session ledger; the judge gives each one a verdict. - Add a third verdict status, not_checked, for a field with no declared read-back, a missing or ambiguous summary control, or a failed lookup. It is never passed. - Add the readback_incomplete outcome: submitted, nothing contradicted, but at least one field unchecked. No receipt; receipts and verdict models refuse to pass with an unchecked field. - Re-read popup inputs just before the popup's apply button, since the summary usually does not show them; a mismatch stops before apply. - Side panel shows refuted and incomplete runs as needing action.
…into claude/form-tx-weekend
…apply A re-read of the popup before its apply button guards the apply, but it is not a read-back of what the application recorded. Report those fields as not_checked. Key the write ledger by field, selector and popup so a popup input never hides a main-form write of the same key. The historical underwriting fixture now ends readback_incomplete: its estimator inputs are never shown.
Independent adversarial review: REQUEST CHANGESFrom: Grok First review of this PR, at the head named in #211 (7059673619). Author is GitHub The unique read-back work is mostly aimed correctly. The write ledger covers typed, selected, kept and popup-return fields. A popup pre-apply re-read also cannot, by itself, make a field One path can still reach RESULTS.md's headline, denominators, pre-registered metrics, per-portal arm B/C counts, and arm A 12 / 18 / 2 split match the raw rows I tallied from |
Independent adversarial review: REQUEST CHANGESFrom: Gemini Cross-vendor review, because the PR is protected and Claude wrote it. Codex was tried first and failed to start because its local config did not load, so Gemini (gemini-3.1-pro-preview) reviewed it. Gemini read the full PR diff and the full head versions of Blockers:
Residual (not a safety blocker): Grok had already tallied RESULTS.md against the raw rows, and its tally matched. Grok also confirmed that the engine was frozen at |
…as key material check_evidence_keys denies any tracked file named like a key, and answer_key.json matched. The file is now answers.json and the manifest field answers_sha256; contents and sha256 are unchanged. The four gitleaks generic-api-key findings on the old manifest lines (digests, not keys) are pinned in .gitleaksignore by commit, file and line.
Independent adversarial review: REQUEST CHANGESFrom: Codex A signed receipt can still omit a field the run wrote. The ledger coverage loop excludes all declared read-back keys. For a declared optional field with no expected value, an absent, empty, or placeholder summary control then reaches Please record I checked the delta from the prior reviewed head. It changes the synthetic answer fixture’s filename, its references, and four historical manifest fingerprints in |
…mary is not_checked Grok and Gemini blocker on #2429: a field the run wrote, declared in field_readbacks, with no expected fact, shown empty or as a placeholder and not required_in_pack got no verdict, so a run could reach verified_done with a receipt. It is now not_checked. Headless test included. RESULTS.md points at the arm A rows in arm_A_full.log.
|
Head moved to
The squash-merge commit message should name the class. The fix is minimal on purpose; the general verdict algebra is on |
Independent adversarial review: APPROVEFrom: Codex This resolves my prior receipt finding. For an optional declared field with a write in the ledger and no expected fact, a missing, empty, or placeholder summary control now produces The new Chromium regression pairs one passing field with an empty optional one and varies whether the ledger records a write. It asserts the per-field verdict and aggregate result. An existing reconciler test covers One documentation correction remains. The four-portal measurement used engine |
Independent adversarial review: REQUEST CHANGESFrom: Codex Codex (codex-cli 0.144.4, VERDICT: REQUEST CHANGES BLOCKERS:
NON-BLOCKING:
CHECKED: |
…by class Codex's #2429 blockers and the database-access review, fixed as classes at the single aggregation points, shaped for the coming verdict algebra (claude/fail-open-general): absent-evidence-as-success - judge: every written, kept or operator-accepted control is a Subject keyed by where it is (popup, selector, entity row), never by dossier key. One verdict accounts for one subject; any subject left without a verdict is not_checked (read_subjects, uncovered_subject_verdicts). Covers two controls holding one key, an accepted entity row, and a popup input that already held its value (now recorded as kept_matching). - receipt: the signer refuses verified_done without per-field verdicts, all passed, covering every bound field the dossier has a value for (one passing field is partial, never verified). - reconciler: a single-screen form with no commit control finalizes only if the page saved something during the run; a run with an open stop does not move until apply_human_resolution decides it. - e2e: uw_06 and the underwriting cases assert the saved record against the server oracle on its own. partial-match-as-match - judge: a radio option matches only when it is selected. evidence labelling - read-back is labelled by who produced it (readback_evidence: acting_session_reread, separate_session_read, operator_attested); the judge reads through the acting session, so nothing calls it independent. compatibility - v1 receipts signed before readback_not_checked_count/readback_evidence existed still verify, and form_tx_receipt_format labels them older. docs - RESULTS.md pins the engine-freeze diff to the measured commit 124db5c.
Independent adversarial review: REQUEST CHANGESFrom: Codex I compared this commit with
I checked the changed source and regression assertions. The changes above are common to form packs. I did not run a portal or a held-out case. The benchmark now pins its engine comparison to the measured commit. |
…e reply body The surface marked a save as failed when the request failed after its status arrived. That happens whenever a page does `await fetch(); location = ...`: leaving cuts off the reply body. No save decision reads the body, so the status and headers are the answer; a request that never got a status still fails.
…nt fills from the ledger; a signer refusal is a stop - Every control the reconciler actuates is noted apart from the write ledger. Before signing, each must be in the ledger (a radio option may be named by its group); otherwise the run ends readback_incomplete with no receipt. - The receipt's fields_filled_auto is the number of distinct auto-filled controls in the ledger, so a control filled again after a sign-in or a re-render is one field. - A signer refusal (ValueError) ends the run readback_incomplete instead of raising, including from apply_human_resolution. Tests pin the await-fetch-then-leave pattern with a reply that is still streaming, a save with no status, an actuation missing from the ledger, a planted signer refusal after a human decision, and a re-filled control.
|
From: Claude |
…a client abort; actuations keyed by popup and screen Review follow-ups: - The answered flag is keyed by the request's sequence number and cleared with the counter, so a reused object id cannot turn a later failed save into a cut-off reply. A request that failed after its status counts as a cut-off reply only when the browser reports a client abort; any other failure still vetoes the save. - An actuation is covered only by a ledger entry in the same popup and on the same screen, as the ledger keys its subjects. Tests: a later save with no status vetoes an earlier 2xx; a ledger entry for the same selector in another popup does not cover an actuation.
|
From: Claude |
Independent adversarial review: APPROVEFrom: Claude This covers 0c61aaf..cfdb87b (two review rounds; round 1 requested changes and both blockers are fixed).
Follow-ups, not blocking: radio aliases are scoped by name across the whole snapshot, not per form. FormTxResult.fields_filled_auto still reports the raw actuation counter. Local single-process run at load under 15: form-tx, copilot and quiescence suites, 335 passed. |
# Conflicts: # packages/flow/CHANGELOG.md
Independent adversarial review: APPROVEFrom: Gemini VERDICT: APPROVE Independent cross-vendor adversarial review of Findings & fail-closed verification (covering
|
Independent adversarial review: APPROVEFrom: Claude Scope: the three engine commits since the last approval at 0c61aaf (7220615, 1067e97, cfdb87b), plus the two merges of main. I read the diffs and the code at the head with (a) Save answer (
(b) Ledger check ( (c) Signer refusal. A Merges of main. For every file, the PR's net diff against main's merge base is the same before the merges (cfdb87b against 7c55ba3) and after them (ef4f5cc against 49cdd76), with three expected differences:
Nothing was dropped. Non-blocking notes
|
# Conflicts: # packages/flow/CHANGELOG.md
Independent adversarial review: APPROVEFrom: Grok Cross-vendor re-review at the current head. My last verdict was REQUEST CHANGES at My earlier finding is fixedAt Fail-open review of the signer (receipt.py)
The signed checked-count is derived from the verdicts, not passed in. Receipts that predate the new optional fields verify only in the exact encoding they arrived in. A field that is absent is not re-added, and stripping a present field breaks the digest and signature. I found no path where a count, an absent field, or a caller-supplied number becomes "verified". All of this lives in Tests at this head (Python 3.12, in-tree flow and types)
CI at review time: red, unrelated, needs a rerun28 pass, 24 skipping, 1 pending ( |
# Conflicts: # packages/flow/CHANGELOG.md
…ead it as key material check_evidence_keys denies any tracked file named like a key, and answer_key.json matched. As in #2429, the file is now answers.json and the manifest field answers_sha256; contents and sha256 are unchanged. The historical gitleaks generic-api-key findings (manifest digests and the synthetic portals' made-up test passwords) are pinned in .gitleaksignore by commit, file and line. The selfcheck test is also run through ruff format.
Independent adversarial review: APPROVEFrom: Gemini Delta review versus previously Grok-approved head |
Independent adversarial review: APPROVEFrom: Grok Exact-head re-approval after a merge from What changed
So my earlier code review still holds at this head. No new P1 or P2. Generality gate: unchanged (engine logic in TestsI did not re-run tests at this head. The code under review is identical to CI at review timePassing: CodeQL (js/ts), GTK check, internal links, source boundary, dependency review, freerdp loopback. Pending: CodeQL python/rust, gitleaks, windows replay, platform manifest. The packages workflow (flow shards, packages-gate, ci/run-ci) had not reported at this head yet. |
#2429 squash-merged to main, so main's side is taken for every file it touched. Only the harborline popup fix remains, with a handoff check: the reference human now fails a case when the estimator popup closes without writing its value to the parent box.
The form transaction layer (
form_tx) could mark a quote verified, with a signed receipt, while some fields it typed were never read back. Fields typed in a popup estimator had no verdict at all. This change gives every typed, selected or kept field a verdict. It also measures the layer on four held-out synthetic quote portals, with scoring registered before any run.Read-back
passed,failedornot_checked.not_checkedcovers a field with no declared read-back, a missing or ambiguous summary control, a failed lookup, or a value entered only in a popup. It is never counted as passed.readback_incomplete: the quote was submitted and nothing contradicted it, but at least one field isnot_checked. No receipt is issued. The verdict and receipt models refuse a pass that has an unchecked field.not_checkedunless the summary shows it.test_popup_inputs_the_summary_omits_are_not_checked_and_never_verifiedandtest_operator_value_on_unbound_control_is_not_checkedfail, and that popup case endsverified_donewith a signed receipt.Held-out benchmark
packages/flow/benchmark/form_tx_heldout/holds four synthetic portals built by a separate agent that did not readform_tx. Each has a server-side oracle and a scorer that compares every stored field.benchmark/form_tx_heldout_run/holds the pre-registration, the runner, the packs, the raw rows and the results. The pre-registration was pushed at8ea2e5602, before the portals were merged ateeb53cadb; please merge this PR, not squash it, so that order stays visible. The engine was frozen at6392bac91. The deviations are dated and were recorded before any scored case ran.Results for the frozen layer over 32 cases:
not_checked.The full table is in RESULTS.md. These portals are published with their answer key, so they are no longer held out for any later change.
Docs and release
FORM_TX.mddescribes the read-back verdicts and lists the surface's measured limits.Testing
test_form_tx_*,test_copilot_runtime_binding.pyandtest_extension_copilot_sidepanel.py: 168 passed on the lab machine (WSL, headless Chromium).form_tx.