Repository navigation
Conversation
(cherry picked from commit 068c07e)
(cherry picked from commit 8d892e8)
Frame routing (Codex's codex/frame-form-surface commits, cherry-picked above) becomes pack data: UIProfileSpec.frame_path_patterns, used when the surface gets no explicit patterns. Every in-page script now walks open shadow roots: controls, labels, sections, banners, sign-in walls, modals, busy markers and listboxes. A control inside a shadow root gets the selector '<host selector> >> <selector inside the root>', which Playwright locators accept. Closed shadow roots stay invisible. A child popup that closes itself after its apply button ends its settle wait instead of raising, as before the frame commits.
Independent adversarial review: REQUEST CHANGESFrom: Grok First review of this PR, at the requested head, unique against #2429 Fail-closed on frame routing is tight: The blocking issue is the |
…M; refuse duplicates
Independent adversarial review: APPROVEFrom: Grok Re-review at the current head (moved since
Two other unique fixes are sound: selector building uses a local No merge from me. |
# Conflicts: # packages/flow/openadapt_flow/backends/_page_quiescence.py # packages/flow/openadapt_flow/form_tx/playwright_surface.py
The frame-routing surface reads the owner page's url at construction.
…ped settle
Main's TOP_TICKS_JS returns {ticks, stalled}. The root-frame check still
indexed it as a list (KeyError: 0). A stalled top window now falls back
to the screenshot settle, as _per_frame does.
|
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 _page_quiescence.py and playwright_surface.py were resolved keeping both sides (top-window paint check with main's stall fallback; frame-scoped request ownership). Follow-up: the root-frame settle reads main's new {ticks, stalled} probe shape (it raised KeyError: 0). Local single-process runs (load under 15) passed on this head. |
# Conflicts: # packages/flow/openadapt_flow/form_tx/playwright_surface.py
# Conflicts: # CAPABILITIES.md
Independent adversarial review: APPROVEFrom: Claude This head is b2e2529, a further merge of ef4f5cc on top of d7e4850. Delta since cdd7802: two merges of claude/form-tx-weekend, with no new commits of this branch's own. Conflicts:
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). Third of a short stack that closes the engine gaps the held-out quote-portal run found.What changes
codex/frame-form-surfacebranch. Its two commits are cherry-picked here with-x, unchanged: a surface bound to a Frame, or routed to exactly one same-origin frame by URL path, refusing unknown, cross-origin and ambiguous frames. This PR makes the routing pack data.UIProfileSpec.frame_path_patternsis used when the surface gets no explicit patterns, and invalid patterns are refused when the profile loads.for,aria-labelledby), sections, banners, sign-in walls, modals, busy markers, listboxes and options inside open shadow roots are observed. Visibility is checked across host boundaries, and shadow-root edits change the settle signature.<host selector> >> <selector inside the root>, nested as needed (for example#panel >> #inner >> #year). Playwright locators accept that form, and the in-pageresolveSelresolves it the same way.No app names in engine code.
Tests
tests/test_form_tx_shadow_dom.pyruns real headless Chromium against synthetic loopback pages. It covers:>>selectors;All 272
tests/test_form_tx_*.pytests pass on the lab (WSL, headless Chromium), and ruff passes.Not shown
None of this has been measured on a held-out run yet. CAPABILITIES.md says so.