Repository navigation
release(flow): 3.4.0 requires openadapt-privacy 1.1.4 - #2470
Conversation
Independent adversarial review: APPROVEFrom: Gemini Cross-vendor review (gemini-3.1-pro-preview). This PR is Claude-authored and protected. Codex could not run because its local config failed to load, so Gemini reviewed it instead. Gemini received the full diff, the PR body, and context from this head: the Flow What it checked:
There were no prior review comments. Blockers: none. |
…vacy-floor # Conflicts: # packages/flow/CHANGELOG.md
Independent adversarial review: APPROVEFrom: Codex I compared the conflict resolution with main at Flow’s manifest and lock are byte-for-byte unchanged from the previous review. The optional requirement and lock both specify The dependency floor applies to every installation of the privacy extra. This correction adds no per-app behavior. I checked the package and registry evidence and the resolved documentation. I did not rerun the author’s checks or qualify a held-out application. No source blocker found. |
Independent adversarial review: REQUEST CHANGESFrom: Codex
The release checks passed at REQUEST CHANGES |
…t the code guarantees
Independent adversarial review: REQUEST CHANGESFrom: Codex
The redirect-mode distinction is accurate. I also verified that both named qualification symbols still import explicitly and are absent from the wildcard import. The revised keyboard note correctly allows a delivery receipt to coexist with At REQUEST CHANGES |
Independent adversarial review: APPROVEFrom: Codex I checked the five issues raised on the parent against the revised release notes and their source. The Windows note now names the advertised lease capability. On the leased keyboard paths, the guard checks focus before each key-down. If a check fails after a key-down, cleanup sends key-up for the held keys. The two-read requirement describes a complete native value observation. The existing focus-loss test expects an initial down/up pair and no later key-down. The route-induction note now allows method-based fallback when the trace cannot establish the effect. The dependency note matches the lock: Python 3.11+ selects filelock 4.2.12 above the 4.2.1 fixed-version floor, and Python 3.10 retains 3.29.7. The corresponding Pillow versions are 13.0.0 and 12.3.0. The changed lines in the generated brief match the changelog exactly. Only those two documentation files changed since the earlier package check. This follow-up adds no per-app behavior or held-out runtime claim. I checked source and existing evidence and found no remaining blocker among the five reported issues. Parent review |
…ntees the code scopes more narrowly
Independent adversarial review: REQUEST CHANGESFrom: Codex
REQUEST CHANGES |
…text A browser reads 'http:/evil.test' as the host evil.test, while urljoin puts it on the request's own origin, so the wire tap's route mode relayed a raw Location that sent the client to an origin it never checked. Relay the resolved URL instead, and refuse Location values with control characters or spaces. Found by the Codex review of #2470.
Independent adversarial review: REQUEST CHANGESFrom: Codex REQUEST CHANGES — P2: The #2392 note says off-allowlist redirects are refused. The reverse proxy can relay a raw |
… checked URL Playwright runs a route handler only for the first URL of a redirect chain, so browser route mode refuses every redirect again. In reverse-proxy mode only a plain path relays as written; anything with a scheme or authority (including ///host) relays only as the checked URL on the tap's origin. Headers are validated as received, parse errors refuse, and IPv6 origins keep their brackets. From the Codex review of #2470.
Independent adversarial review: REQUEST CHANGESFrom: Codex
REQUEST CHANGES |
Independent adversarial review: REQUEST CHANGESFrom: Codex Codex run on b327288, scoped to the delta since bba710d. The delta adds a control-character check and relays the resolved URL for absolute targets. Both callers can still relay a Earlier blocker: still open. Blockers:
A likely fix for both: always relay the resolved (or rewritten) URL, drop the early Out of scope (follow-up): none. |
_normalize_origin now returns an empty origin for an invalid port, and the request policy checked the allowlist only for a non-empty origin. Treat an empty origin as disallowed; a regression test asserts refusal and no upstream request. From the Codex review of #2470.
Independent adversarial review: REQUEST CHANGESFrom: Codex All six round-5 findings are resolved on the redirect paths. Browser-route mode disables redirect following and aborts every 3xx before fulfillment, covering the original I found no material false statement in the remaining release diff. The privacy floor and lock agree, both distribution hashes match PyPI, the dated v3.4.0 heading matches the package version, and the two copies of the release notes agree. The focused tests passed 54 cases and skipped the optional live-app case. REQUEST CHANGES |
Independent adversarial review: APPROVEFrom: Codex Round 7 (delta since 4d5db11; round 6 confirmed the rest of the PR: privacy floor and lock agree, both distribution hashes match PyPI, the dated v3.4.0 heading matches the package version, release notes agree in both copies; all round-5 redirect findings resolved). No P0–P2 findings. All three invalid ports returned APPROVE |
# Conflicts: # packages/flow/CHANGELOG.md
Independent adversarial review: REQUEST CHANGESFrom: Codex Two checks remain after integrating main at
The package version remains 3.4.0 and the privacy extra still requires 1.1.4. The lock, wire-tap code and redirect regression tests are byte-identical to the approved release head. These findings concern generated release material and the shared read-back contract across agent adapters. Existing runtime evidence uses the synthetic orders portal. I ran the generator check and inspected the test and prior failure; I did not run the full suite or a held-out app. Previous review |
…ronize queued read-back timeout test
Independent adversarial review: APPROVEFrom: Codex Both source findings on the parent are resolved. I generated the release brief from this commit’s Git objects in memory and compared the bytes with the tracked file. They match. The headed-browser settle fix and the sanitizer fix each appear once in both documents. The queued read-back test now waits until every worker reaches the barrier. After the portal saves the order, the test observes the real pool accepting this guard’s post-write read-back and only then starts the timeout. On retry it still requires verification, no resend, exactly one POST and exactly one stored order. The test exercises the shared guard used by the agent adapters. The change adds no app-specific runtime code. Read-back test I verified the synchronization by source inspection. A passing result for the new test had not been posted when I reviewed this head, and its hosted checks were still running. The available fixture is a synthetic orders portal. This commit changes only the release documents and the test. Parent findings |
… lines on the kernel - check_verdict_folds: count a broad handler that falls through, leaves by break, or names Exception in a tuple or by attribute (swallow_wide); add says_unchanged and empty_change_set for "nothing else changed" claims; a file that doesn't parse fails; a spec id is an id= or factory argument. - verdict: count the obligations that claim a result, not repeats of it; add Result.nothing_else (any change refutes, zero holds only on a complete read). - harness: three-level monotonicity (P6), M7 appends a separate equal copy, M3 says when the plan is kept, M15 partial "nothing else" read, M16 a result turned bad. - hard_invariants and versions build verdicts with settle; versions no longer lets a duplicate or missing-history row hide another author. - verify_run._aggregate/_observed settle against cfg.effects; receipt_record._line and _tally_lines move onto the kernel. - wire_tap is a registered site now that #2470 merged. - Baseline measured again after merging main; every kind is at or below a clean origin/main.
#2476) * feat(flow): one verdict kernel, a fail-open harness and a fold ratchet Fail-open blockers kept coming back one PR at a time. This fixes the classes once: - openadapt_flow/verdict.py: obligations fixed from the plan, settle(), allow-list codes, run binding, trust labels. An empty set, a short read, a raised probe, another run's result or an unknown code never passes. - tests/failopen: 13 generic mutations run against every @verdict_site. The self-test flags 14 historical bugs rebuilt from this repository's code and passes their fixes; three live sites on main are strict xfails owned by #2470, #2258 and the connector status follow-up. - scripts/check_verdict_folds.py: fails CI when a file gains a hand-written fold; never on a drop. - verify_run: an empty or unpaired effect list is INDETERMINATE, unknown and unchecked (latent behind min_length=1). See packages/flow/docs/FAIL_CLOSED.md. * fix(flow): close the gaps a review found in the verdict kernel and harness - settle matches on subject key and run binding; obligations dedupe on both - a HELD token is bound to its subject, so replace() can't move it - observe refuses to map an exception to Observed - owned sites list their exact known failures (strict xfail per case) - pre-fix controls are pinned copies, never live code; S3b shows the undo fix still passes an unlisted per-write code - the ratchet compares per-kind totals, so moving code into a new module is not a new fold, judges each exit of an except, refuses a site id on two functions, and runs in the smoke job on every change * fix(flow): second review round on the verdict kernel and harness - HELD is minted only inside the kernel's constructors, so replace() can't copy or restore it; one result claimed by two obligations conflicts - known failures carry the seed and lens, so a new case can't hide - the ratchet checks every @verdict_site has a spec on every change, finds conditional sites, judges every branch of a returned value, and lowers the baseline per kind so a moved fold keeps its allowance - M7 is out of P1; the S5 seeds plan 20 runs and a gate needing all 20 passes * fix(flow): settle the positive controls, verify-run folds and receipt lines on the kernel - check_verdict_folds: count a broad handler that falls through, leaves by break, or names Exception in a tuple or by attribute (swallow_wide); add says_unchanged and empty_change_set for "nothing else changed" claims; a file that doesn't parse fails; a spec id is an id= or factory argument. - verdict: count the obligations that claim a result, not repeats of it; add Result.nothing_else (any change refutes, zero holds only on a complete read). - harness: three-level monotonicity (P6), M7 appends a separate equal copy, M3 says when the plan is kept, M15 partial "nothing else" read, M16 a result turned bad. - hard_invariants and versions build verdicts with settle; versions no longer lets a duplicate or missing-history row hide another author. - verify_run._aggregate/_observed settle against cfg.effects; receipt_record._line and _tally_lines move onto the kernel. - wire_tap is a registered site now that #2470 merged. - Baseline measured again after merging main; every kind is at or below a clean origin/main. * fix(flow): close the log-call hole in the swallow check; state the provenance boundary A handler that only logs a not-checked word still swallows; only a call that stores the value records it. M15 must not raise a refuted seed. Observed and Result.held say the adapter establishes which run produced a read. * fix(flow): close the four ratchet and observed gaps Gemini found The empty-change test is read from either side, a [0:N] slice counts like [:N], builtins.all/any count as folds, and an unplanned verdict beside a refuted one makes _observed unknown. * docs(flow): record how the fold baseline was measured and why unread-first stays * chore(flow): bump verdict_folds_baseline for connector/executor.py from main (#2403)
* feat(flow): one verdict kernel, a fail-open harness and a fold ratchet Fail-open blockers kept coming back one PR at a time. This fixes the classes once: - openadapt_flow/verdict.py: obligations fixed from the plan, settle(), allow-list codes, run binding, trust labels. An empty set, a short read, a raised probe, another run's result or an unknown code never passes. - tests/failopen: 13 generic mutations run against every @verdict_site. The self-test flags 14 historical bugs rebuilt from this repository's code and passes their fixes; three live sites on main are strict xfails owned by #2470, #2258 and the connector status follow-up. - scripts/check_verdict_folds.py: fails CI when a file gains a hand-written fold; never on a drop. - verify_run: an empty or unpaired effect list is INDETERMINATE, unknown and unchecked (latent behind min_length=1). See packages/flow/docs/FAIL_CLOSED.md. * fix(flow): close the gaps a review found in the verdict kernel and harness - settle matches on subject key and run binding; obligations dedupe on both - a HELD token is bound to its subject, so replace() can't move it - observe refuses to map an exception to Observed - owned sites list their exact known failures (strict xfail per case) - pre-fix controls are pinned copies, never live code; S3b shows the undo fix still passes an unlisted per-write code - the ratchet compares per-kind totals, so moving code into a new module is not a new fold, judges each exit of an except, refuses a site id on two functions, and runs in the smoke job on every change * fix(flow): second review round on the verdict kernel and harness - HELD is minted only inside the kernel's constructors, so replace() can't copy or restore it; one result claimed by two obligations conflicts - known failures carry the seed and lens, so a new case can't hide - the ratchet checks every @verdict_site has a spec on every change, finds conditional sites, judges every branch of a returned value, and lowers the baseline per kind so a moved fold keeps its allowance - M7 is out of P1; the S5 seeds plan 20 runs and a gate needing all 20 passes * fix(flow): settle the positive controls, verify-run folds and receipt lines on the kernel - check_verdict_folds: count a broad handler that falls through, leaves by break, or names Exception in a tuple or by attribute (swallow_wide); add says_unchanged and empty_change_set for "nothing else changed" claims; a file that doesn't parse fails; a spec id is an id= or factory argument. - verdict: count the obligations that claim a result, not repeats of it; add Result.nothing_else (any change refutes, zero holds only on a complete read). - harness: three-level monotonicity (P6), M7 appends a separate equal copy, M3 says when the plan is kept, M15 partial "nothing else" read, M16 a result turned bad. - hard_invariants and versions build verdicts with settle; versions no longer lets a duplicate or missing-history row hide another author. - verify_run._aggregate/_observed settle against cfg.effects; receipt_record._line and _tally_lines move onto the kernel. - wire_tap is a registered site now that #2470 merged. - Baseline measured again after merging main; every kind is at or below a clean origin/main. * fix(flow): close the log-call hole in the swallow check; state the provenance boundary A handler that only logs a not-checked word still swallows; only a call that stores the value records it. M15 must not raise a refuted seed. Observed and Result.held say the adapter establishes which run produced a read. * fix(flow): close the four ratchet and observed gaps Gemini found The empty-change test is read from either side, a [0:N] slice counts like [:N], builtins.all/any count as folds, and an unplanned verdict beside a refuted one makes _observed unknown. * docs(flow): record how the fold baseline was measured and why unread-first stays * feat(flow): links, tabs and menu items as steps; the commit point is the step the demo saw writing Adds openadapt_flow.gui, a neutral view of a screen (controls by role, name, state and containers) with adapters for a browser page (links included), an accessibility tree and a form_tx snapshot. gui.steps learns each clicked step's role from what the backend counted in the demonstration (commit, navigate, in place, unknown), never from its words, and judges a live step against it. judge_step is a registered verdict site. * docs(flow): record gui.steps in CAPABILITIES, the changelog and the fail-closed list * fix(flow): take no step on a backend that cannot count writes; refute an in-place step that moves the screen From Gemini's review of #2499. A navigation must be shown not to write, so without a write count no step is judged and none is clicked. An in-place step that moved the screen did something the demo did not. * fix(gui): count only 2xx/3xx same-origin write responses and refute 4xx/5xx/failed writes * fix(gui): match each commit write's outcome to the demo A replay whose save answered 302 to a sign-in page was held, because any 2xx or 3xx counted as a successful write. PageActuator now records what each counted write returned ("2xx", or "3xx <Location path>"), the Recorder keeps it per demonstrated step, StepSpec carries it, and judge_step refutes a commit whose outcomes differ from the demo's. A 3xx with no usable Location is a write error. A commit spec with no recorded outcomes, or a backend that does not report them, is not clicked. The page origin used to decide which writes are the page's own is now read when an action starts, not when a response arrives. Tests: demo 200 / replay 302 to sign-in, demo 302 to /done / replay 302 to /login (and to /done, held), an old commit spec without outcomes, and a fetch-then-navigate fixture that pins today's ERR_ABORTED refutation. The failopen site gains the outcome fields and three seeds. * fix(gui): key redirects by path and query, with minted ids replaced A save answered 302 to /register?status=session-expired was held when the demo's went to /register?status=saved, because the redirect key was the path alone. The key now keeps the query: the sorted key=value pairs, decoded and re-quoted, dropping only the fragment, so a same-path redirect with another query is refuted. A post-redirect-get to the record just created (/records/101 in the demo, /records/102 on replay) was refuted on every run. An id the server mints is now replaced by {id} before comparing: a path segment that is all digits, a UUID or 16+ hex characters, and a query value that is a UUID or 16+ hex characters. Words are never replaced. An all-digit query value is kept as it is, because a number in a query is as often a result code (?saved=1 vs ?saved=0) as an id; ?id=101 vs ?id=102 fails closed, and the limit is documented. A redirect outcome is now "redirect <key>". An outcome in the old "3xx <path>" form is not compared: take_step does not click such a commit, judge_step gives not_checked, and learn_steps does not make a spec from it. PageActuator clears the action's origin once observe() has read the settled page, so a later response is judged against the page as it is. Tests: same path with another query (refuted, and held when it matches), a post-redirect-get to the new id (held, record saved), a redirect to sign-in where the demo went to a record (refuted), an old path-only spec (not clicked), browser-free location_key tables, the origin reset with a fake page, and three failopen seeds. * test(gui): serve synthetic test apps on loopback HTTP so 302 redirects resolve
…plicit grant (#2501) * feat(flow): one verdict kernel, a fail-open harness and a fold ratchet Fail-open blockers kept coming back one PR at a time. This fixes the classes once: - openadapt_flow/verdict.py: obligations fixed from the plan, settle(), allow-list codes, run binding, trust labels. An empty set, a short read, a raised probe, another run's result or an unknown code never passes. - tests/failopen: 13 generic mutations run against every @verdict_site. The self-test flags 14 historical bugs rebuilt from this repository's code and passes their fixes; three live sites on main are strict xfails owned by #2470, #2258 and the connector status follow-up. - scripts/check_verdict_folds.py: fails CI when a file gains a hand-written fold; never on a drop. - verify_run: an empty or unpaired effect list is INDETERMINATE, unknown and unchecked (latent behind min_length=1). See packages/flow/docs/FAIL_CLOSED.md. * fix(flow): close the gaps a review found in the verdict kernel and harness - settle matches on subject key and run binding; obligations dedupe on both - a HELD token is bound to its subject, so replace() can't move it - observe refuses to map an exception to Observed - owned sites list their exact known failures (strict xfail per case) - pre-fix controls are pinned copies, never live code; S3b shows the undo fix still passes an unlisted per-write code - the ratchet compares per-kind totals, so moving code into a new module is not a new fold, judges each exit of an except, refuses a site id on two functions, and runs in the smoke job on every change * fix(flow): second review round on the verdict kernel and harness - HELD is minted only inside the kernel's constructors, so replace() can't copy or restore it; one result claimed by two obligations conflicts - known failures carry the seed and lens, so a new case can't hide - the ratchet checks every @verdict_site has a spec on every change, finds conditional sites, judges every branch of a returned value, and lowers the baseline per kind so a moved fold keeps its allowance - M7 is out of P1; the S5 seeds plan 20 runs and a gate needing all 20 passes * fix(flow): settle the positive controls, verify-run folds and receipt lines on the kernel - check_verdict_folds: count a broad handler that falls through, leaves by break, or names Exception in a tuple or by attribute (swallow_wide); add says_unchanged and empty_change_set for "nothing else changed" claims; a file that doesn't parse fails; a spec id is an id= or factory argument. - verdict: count the obligations that claim a result, not repeats of it; add Result.nothing_else (any change refutes, zero holds only on a complete read). - harness: three-level monotonicity (P6), M7 appends a separate equal copy, M3 says when the plan is kept, M15 partial "nothing else" read, M16 a result turned bad. - hard_invariants and versions build verdicts with settle; versions no longer lets a duplicate or missing-history row hide another author. - verify_run._aggregate/_observed settle against cfg.effects; receipt_record._line and _tally_lines move onto the kernel. - wire_tap is a registered site now that #2470 merged. - Baseline measured again after merging main; every kind is at or below a clean origin/main. * fix(flow): close the log-call hole in the swallow check; state the provenance boundary A handler that only logs a not-checked word still swallows; only a call that stores the value records it. M15 must not raise a refuted seed. Observed and Result.held say the adapter establishes which run produced a read. * fix(flow): close the four ratchet and observed gaps Gemini found The empty-change test is read from either side, a [0:N] slice counts like [:N], builtins.all/any count as folds, and an unplanned verdict beside a refuted one makes _observed unknown. * docs(flow): record how the fold baseline was measured and why unread-first stays * feat(flow): links, tabs and menu items as steps; the commit point is the step the demo saw writing Adds openadapt_flow.gui, a neutral view of a screen (controls by role, name, state and containers) with adapters for a browser page (links included), an accessibility tree and a form_tx snapshot. gui.steps learns each clicked step's role from what the backend counted in the demonstration (commit, navigate, in place, unknown), never from its words, and judges a live step against it. judge_step is a registered verdict site. * docs(flow): record gui.steps in CAPABILITIES, the changelog and the fail-closed list * feat(flow): checkbox attestations declared in pack data and ticked only on a person's grant gui.attestations plans every checkbox and switch on a screen: a field binding's, an attestation to tick, a box the pack leaves alone, or a stop. An undeclared box, a changed statement, a missing grant, an attestation bound to a field or a box ticked before the run touched it all stop the run before anything is ticked. Grants are their own type, so no intake value or derived fact can tick one. judge_attestations settles the planned boxes against a fresh read and is a registered verdict site. * docs(flow): record gui.attestations in CAPABILITIES, the changelog and the fail-closed list * fix(flow): take no step on a backend that cannot count writes; refute an in-place step that moves the screen From Gemini's review of #2499. A navigation must be shown not to write, so without a write count no step is judged and none is clicked. An in-place step that moved the screen did something the demo did not. * fix(flow): an attestation spec that matches more than one box stops on every one One grant covers one box. A loose spec naming two identical boxes used to plan a tick for both on one grant; now each is a stop and nothing is ticked. From Gemini's non-blocking note on #2501. * fix(gui): count only 2xx/3xx same-origin write responses and refute 4xx/5xx/failed writes
…readback (#2502) * feat(flow): one verdict kernel, a fail-open harness and a fold ratchet Fail-open blockers kept coming back one PR at a time. This fixes the classes once: - openadapt_flow/verdict.py: obligations fixed from the plan, settle(), allow-list codes, run binding, trust labels. An empty set, a short read, a raised probe, another run's result or an unknown code never passes. - tests/failopen: 13 generic mutations run against every @verdict_site. The self-test flags 14 historical bugs rebuilt from this repository's code and passes their fixes; three live sites on main are strict xfails owned by #2470, #2258 and the connector status follow-up. - scripts/check_verdict_folds.py: fails CI when a file gains a hand-written fold; never on a drop. - verify_run: an empty or unpaired effect list is INDETERMINATE, unknown and unchecked (latent behind min_length=1). See packages/flow/docs/FAIL_CLOSED.md. * fix(flow): close the gaps a review found in the verdict kernel and harness - settle matches on subject key and run binding; obligations dedupe on both - a HELD token is bound to its subject, so replace() can't move it - observe refuses to map an exception to Observed - owned sites list their exact known failures (strict xfail per case) - pre-fix controls are pinned copies, never live code; S3b shows the undo fix still passes an unlisted per-write code - the ratchet compares per-kind totals, so moving code into a new module is not a new fold, judges each exit of an except, refuses a site id on two functions, and runs in the smoke job on every change * fix(flow): second review round on the verdict kernel and harness - HELD is minted only inside the kernel's constructors, so replace() can't copy or restore it; one result claimed by two obligations conflicts - known failures carry the seed and lens, so a new case can't hide - the ratchet checks every @verdict_site has a spec on every change, finds conditional sites, judges every branch of a returned value, and lowers the baseline per kind so a moved fold keeps its allowance - M7 is out of P1; the S5 seeds plan 20 runs and a gate needing all 20 passes * fix(flow): settle the positive controls, verify-run folds and receipt lines on the kernel - check_verdict_folds: count a broad handler that falls through, leaves by break, or names Exception in a tuple or by attribute (swallow_wide); add says_unchanged and empty_change_set for "nothing else changed" claims; a file that doesn't parse fails; a spec id is an id= or factory argument. - verdict: count the obligations that claim a result, not repeats of it; add Result.nothing_else (any change refutes, zero holds only on a complete read). - harness: three-level monotonicity (P6), M7 appends a separate equal copy, M3 says when the plan is kept, M15 partial "nothing else" read, M16 a result turned bad. - hard_invariants and versions build verdicts with settle; versions no longer lets a duplicate or missing-history row hide another author. - verify_run._aggregate/_observed settle against cfg.effects; receipt_record._line and _tally_lines move onto the kernel. - wire_tap is a registered site now that #2470 merged. - Baseline measured again after merging main; every kind is at or below a clean origin/main. * fix(flow): close the log-call hole in the swallow check; state the provenance boundary A handler that only logs a not-checked word still swallows; only a call that stores the value records it. M15 must not raise a refuted seed. Observed and Result.held say the adapter establishes which run produced a read. * fix(flow): close the four ratchet and observed gaps Gemini found The empty-change test is read from either side, a [0:N] slice counts like [:N], builtins.all/any count as folds, and an unplanned verdict beside a refuted one makes _observed unknown. * docs(flow): record how the fold baseline was measured and why unread-first stays * feat(flow): links, tabs and menu items as steps; the commit point is the step the demo saw writing Adds openadapt_flow.gui, a neutral view of a screen (controls by role, name, state and containers) with adapters for a browser page (links included), an accessibility tree and a form_tx snapshot. gui.steps learns each clicked step's role from what the backend counted in the demonstration (commit, navigate, in place, unknown), never from its words, and judges a live step against it. judge_step is a registered verdict site. * docs(flow): record gui.steps in CAPABILITIES, the changelog and the fail-closed list * feat(flow): checkbox attestations declared in pack data and ticked only on a person's grant gui.attestations plans every checkbox and switch on a screen: a field binding's, an attestation to tick, a box the pack leaves alone, or a stop. An undeclared box, a changed statement, a missing grant, an attestation bound to a field or a box ticked before the run touched it all stop the run before anything is ticked. Grants are their own type, so no intake value or derived fact can tick one. judge_attestations settles the planned boxes against a fresh read and is a registered verdict site. * docs(flow): record gui.attestations in CAPABILITIES, the changelog and the fail-closed list * feat(flow): hub pages of section dialogs, with completion read per section from the hub gui.hub classifies an open dialog by what is in it: one that holds an editable control is a form, never a confirmation, and only a declared section's dialog may be filled. run_section opens a section, fills and saves it, and requires the dialog to close with the demonstrated writes and the card to show done on a fresh read. learn_hub derives each section's opener, dialog, save control and done tokens from a demonstration. judge_hub settles the planned sections and is a registered verdict site. * docs(flow): record gui.hub in CAPABILITIES, the changelog and the fail-closed list * fix(flow): take no step on a backend that cannot count writes; refute an in-place step that moves the screen From Gemini's review of #2499. A navigation must be shown not to write, so without a write count no step is judged and none is clicked. An in-place step that moved the screen did something the demo did not. * fix(flow): run_section reports the hub verdict's status instead of minting its own held result From Gemini's review of #2502. Only judge_hub, a registered verdict site, can say a section held; run_section now carries its status and verdict. * fix(flow): an attestation spec that matches more than one box stops on every one One grant covers one box. A loose spec naming two identical boxes used to plan a tick for both on one grant; now each is a stop and nothing is ticked. From Gemini's non-blocking note on #2501.
…d per instance (#2512) * feat(flow): one verdict kernel, a fail-open harness and a fold ratchet Fail-open blockers kept coming back one PR at a time. This fixes the classes once: - openadapt_flow/verdict.py: obligations fixed from the plan, settle(), allow-list codes, run binding, trust labels. An empty set, a short read, a raised probe, another run's result or an unknown code never passes. - tests/failopen: 13 generic mutations run against every @verdict_site. The self-test flags 14 historical bugs rebuilt from this repository's code and passes their fixes; three live sites on main are strict xfails owned by #2470, #2258 and the connector status follow-up. - scripts/check_verdict_folds.py: fails CI when a file gains a hand-written fold; never on a drop. - verify_run: an empty or unpaired effect list is INDETERMINATE, unknown and unchecked (latent behind min_length=1). See packages/flow/docs/FAIL_CLOSED.md. * fix(flow): close the gaps a review found in the verdict kernel and harness - settle matches on subject key and run binding; obligations dedupe on both - a HELD token is bound to its subject, so replace() can't move it - observe refuses to map an exception to Observed - owned sites list their exact known failures (strict xfail per case) - pre-fix controls are pinned copies, never live code; S3b shows the undo fix still passes an unlisted per-write code - the ratchet compares per-kind totals, so moving code into a new module is not a new fold, judges each exit of an except, refuses a site id on two functions, and runs in the smoke job on every change * fix(flow): second review round on the verdict kernel and harness - HELD is minted only inside the kernel's constructors, so replace() can't copy or restore it; one result claimed by two obligations conflicts - known failures carry the seed and lens, so a new case can't hide - the ratchet checks every @verdict_site has a spec on every change, finds conditional sites, judges every branch of a returned value, and lowers the baseline per kind so a moved fold keeps its allowance - M7 is out of P1; the S5 seeds plan 20 runs and a gate needing all 20 passes * fix(flow): settle the positive controls, verify-run folds and receipt lines on the kernel - check_verdict_folds: count a broad handler that falls through, leaves by break, or names Exception in a tuple or by attribute (swallow_wide); add says_unchanged and empty_change_set for "nothing else changed" claims; a file that doesn't parse fails; a spec id is an id= or factory argument. - verdict: count the obligations that claim a result, not repeats of it; add Result.nothing_else (any change refutes, zero holds only on a complete read). - harness: three-level monotonicity (P6), M7 appends a separate equal copy, M3 says when the plan is kept, M15 partial "nothing else" read, M16 a result turned bad. - hard_invariants and versions build verdicts with settle; versions no longer lets a duplicate or missing-history row hide another author. - verify_run._aggregate/_observed settle against cfg.effects; receipt_record._line and _tally_lines move onto the kernel. - wire_tap is a registered site now that #2470 merged. - Baseline measured again after merging main; every kind is at or below a clean origin/main. * fix(flow): close the log-call hole in the swallow check; state the provenance boundary A handler that only logs a not-checked word still swallows; only a call that stores the value records it. M15 must not raise a refuted seed. Observed and Result.held say the adapter establishes which run produced a read. * fix(flow): close the four ratchet and observed gaps Gemini found The empty-change test is read from either side, a [0:N] slice counts like [:N], builtins.all/any count as folds, and an unplanned verdict beside a refuted one makes _observed unknown. * docs(flow): record how the fold baseline was measured and why unread-first stays * feat(flow): links, tabs and menu items as steps; the commit point is the step the demo saw writing Adds openadapt_flow.gui, a neutral view of a screen (controls by role, name, state and containers) with adapters for a browser page (links included), an accessibility tree and a form_tx snapshot. gui.steps learns each clicked step's role from what the backend counted in the demonstration (commit, navigate, in place, unknown), never from its words, and judges a live step against it. judge_step is a registered verdict site. * docs(flow): record gui.steps in CAPABILITIES, the changelog and the fail-closed list * feat(flow): checkbox attestations declared in pack data and ticked only on a person's grant gui.attestations plans every checkbox and switch on a screen: a field binding's, an attestation to tick, a box the pack leaves alone, or a stop. An undeclared box, a changed statement, a missing grant, an attestation bound to a field or a box ticked before the run touched it all stop the run before anything is ticked. Grants are their own type, so no intake value or derived fact can tick one. judge_attestations settles the planned boxes against a fresh read and is a registered verdict site. * docs(flow): record gui.attestations in CAPABILITIES, the changelog and the fail-closed list * feat(flow): hub pages of section dialogs, with completion read per section from the hub gui.hub classifies an open dialog by what is in it: one that holds an editable control is a form, never a confirmation, and only a declared section's dialog may be filled. run_section opens a section, fills and saves it, and requires the dialog to close with the demonstrated writes and the card to show done on a fresh read. learn_hub derives each section's opener, dialog, save control and done tokens from a demonstration. judge_hub settles the planned sections and is a registered verdict site. * docs(flow): record gui.hub in CAPABILITIES, the changelog and the fail-closed list * feat(flow): repeating structures learned from the demo, added to match the intake and checked per instance gui.repeating learns an add-another group from a demonstration (the add control, the instance's container kind and its fields), adds instances until the count matches the intake, fills them in document order and reads each one back by the container it was written into. It stops before writing on a prefilled instance, more instances than items, an add that did not add exactly one blank instance, or an add that wrote. judge_instances is a registered verdict site; location_rows exports the checks in the effect-location shape. * fix(flow): take no step on a backend that cannot count writes; refute an in-place step that moves the screen From Gemini's review of #2499. A navigation must be shown not to write, so without a write count no step is judged and none is clicked. An in-place step that moved the screen did something the demo did not. * fix(flow): run_section reports the hub verdict's status instead of minting its own held result From Gemini's review of #2502. Only judge_hub, a registered verdict site, can say a section held; run_section now carries its status and verdict. * docs(flow): record gui.repeating in CAPABILITIES, the changelog and the fail-closed list * fix(flow): an attestation spec that matches more than one box stops on every one One grant covers one box. A loose spec naming two identical boxes used to plan a tick for both on one grant; now each is a stop and nothing is ticked. From Gemini's non-blocking note on #2501. * fix(flow): a repeating slot box whose state was not read is neither blank nor a pass From Gemini's review of #2512: an unread checkbox read as unticked, so an item expecting unticked passed on missing evidence.
Merging this PR releases openadapt-flow 3.4.0 through release-package.yml.
privacyextra now requiresopenadapt-privacy[presidio]>=1.1.4. PyPI serves 1.1.4 (tagopenadapt-privacy-v1.1.4), the first release withPresidioScrubbingProvider.sanitization_config(), which Flow 3.4.0 calls.packages/flow/uv.lockmoves privacy from 1.0.0 to 1.1.4 and drops pip, which only 1.0.0 needed. I used uv 0.11.29, the version CI pins.## v3.4.0 (2026-11-21)heading gets its date back, so the release plan sees 3.4.0 again (release(privacy): 1.1.4 with sanitization_config; hold Flow 3.4.0 until it is on PyPI #2371 had removed the date as a hold). It also adds notes for the Flow changes merged since the cut: feat(flow): sign in to Cloud from the terminal with the browser (openadapt login) #2379, fix(tx): relay same-origin redirects through the wire tap #2392, Bind native keyboard input to one-shot focus leases #2313, fix(repair): refuse repair candidate ids that leave the store #2369, build(deps): lift Pillow, aiohttp, filelock and other locked dependencies to fixed releases #2383 and the refactors refactor(flow): qualification imports execution_profiles where it uses it, breaking the ir import cycle #2439, refactor(flow): the package loads its ir re-exports on first use #2451 and refactor(flow): move the qualification data model to qualification/models.py, re-exported unchanged #2454-refactor(flow): move the replayer's asset, healing and step-evidence helpers to a mixin, unchanged #2459.llms-full.txtis regenerated.Checks run locally:
tests/test_release_plan.py,tests/test_release_lock.pyandtests/test_cli_documented_tasks.py: 40 passed.uv lock --check: passes.privacyextra installed from the lock,PresidioScrubbingProvider().sanitization_config()returnspolicy_sha256anddependencies.changelog_topreturns 3.4.0.