You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Own browser service: replace the vendor browser-service with cua's (no OpenAI policy or telemetry, no 3 s locator cap, writable evaluate); step 1 of independence #113
Replace the vendor browser service (@oai/browser-desktop's browser-service.mjs, pinned inside the runtime, delegated to from src/services/browser.mjs) with cua's own browser service: the first step of independence from OpenAI. The backend side is already ours (cua's extension + host, #10/PR #80; MAWS's in-app browser in client mode, #13); the agent-facing service between the REPL's cua browser API and those backends is the vendor's, and with it the site_status policy that sends full URLs to OpenAI and ends sessions on blocked sites (#111), telemetry, the Codex identity path, the 3 s locator cap and the read-only evaluate.
Owner's answers (2026-10-13): independence is for distribution to others and for the owner's own use; lifting the 3 s locator cap and the read-only evaluate is in scope; a screenshot loop is only ever a fallback, the accessibility-based JS API is required; no regression from today's cua_repl GUI/browser performance (baseline: docs/evidence/2026-10-05-browser-route-benchmark).
Open at registration: whether the JS API surface the model learns may be redefined or must stay vendor-compatible; what of the vendor service's behaviour (permission prompts, handoff, downloads, dialogs, foreign-frame handling) is the service's and must be kept; whether any local site policy replaces the vendor's. The design lands as docs/doperpowers/specs/<date>-own-browser-service-design.md through brainstorming and execspec; sky, @oai/cua and the app-server stay vendor in this step.
Grill round 1 (owner, 2026-10-13): (1) distribution means other people installing on their own Macs, each fetching the OpenAI installer themselves as cua install does today; this step removes the browser policy, limits and account requirement, the remaining vendor pieces are later steps. (2) The JS API the model learns stays vendor-compatible, with the lifted limits (longer timeouts, writable evaluate) as behaviour extensions or added options on the same methods; @oai/cua's REPL-side client is not replaced in this step. (3) No site policy of our own; a local host denylist file is an option, off by default. (4) No regression means every item of docs/evidence/2026-10-05-browser-route-benchmark re-run against the replacement on the same Mac and pages is equal or better within measurement noise; one slower item fails acceptance. Round 2 waits on the research pass over the vendor service (process wiring, API surface and where each cap is enforced, backend protocol, policy and prompts, non-forwarding behaviours, dependencies).
Child 1 of the independence composite #114 (owner 2026-10-13: the phase's purpose is full independence from OpenAI with no performance regression). Siblings: #115 sandbox and app-server, #116 JS API and REPL (blocked by this ticket), #117 native engine.
Research landed 2026-10-13 (two static passes over the installed 26.928.40906 service plus cua's host, condensed to a 200-line design-input digest kept in the session's job dir as browser-service-digest.txt; every fact cited by function name or file:line). What binds the design:
Wiring: the vendor service is a module imported in node_repl's trusted worker behind nodeRepl.rpc('browser'); cua's src/services/browser.mjs already wraps it (createBrowserService/handleRpc). The REPL-side client (@oai/cua's browser-client.js) speaks setup → {apiManifest, disabledMemberIds, credentialRecoveryErrorVersion}, then execute/executeWithRecovery with flat typed commands (params.type: list_browsers, get_browser, create_tab, navigate_tab_, mark_tab, tab_screenshot, tab_get/handle_js_dialog, playwright_dom_snapshot, playwright_evaluate, playwright_locator_ (click, dblclick, fill, press, press_sequentially, select_option, set_checked, wait_for, download_media, count, text_content, inner_text, get_attribute, is_visible, is_enabled, all_text_contents, read_all), playwright_wait_for_url/load_state/timeout/download/file_chooser, playwright_download_path, playwright_file_chooser_set_files, cua_click/double_click/move/scroll/drag/keypress/type, dom_cua_, tab_ax_get_state/tab_ax_action, tab_content_export, tab_clipboard_, tab_dev_logs, capability commands browser_viewport_, browser_visibility_, tab_cdp_call/events, webmcp_). The first-use documentation text is generated by the service (nh.readBrowser → '# Selected Browser', '# API Reference'), so a cua service authors its own guidance.
Toward backends: the service↔host contract is getInfo, getTabs/createTab/getUserTabs/claimUserTab/getCommittedTabUrl, attach/detach(+Target), executeCdp, markTab, nameSession, moveMouse, turnEnded, executeUnhandledCommand (viewport only), notifications onCDPEvent/onCDPDetach/onDownloadChange/onPageEvent; the host translates to the 15 extension primitives (+ MAWS cursor.move, tabs.adopted). Tab ownership, turn fencing, foreign-frame guards, popup adoption and the download relay already live in cua's host/extension and survive a service swap.
Limits (service-side): qe() caps selector/evaluate phases at 3000 ms; pressSequentially 5 s; downloads and locator media 120 s; file chooser 3 s default/120 s max; waitForTimeout uncapped; back/forward load wait 10 s; dialogs 60 s. Read-only evaluate is an isolated world 'browser-use-readonly-js' with a frozen DOM membrane (mutation, fetch, XHR, cookie refused; scrolling allowed). Visible-DOM (dom_cua) capped at 20,000 chars/200 elements; Playwright snapshot uncapped; screenshots JPEG q80 at CSS scale. No vendor 60 s createBrowserTab cap exists (surface.mjs:88 is outer-cell guidance).
On the extension route Tab.ax is disabled by default (api.json: extension-disabled Tab.ax, Tabs.content, ContentAPI.export, BrowserUser.getTabContext), so the proprietary AX WASM (browser-accessibility.wasm, 20 MB decompressed) is not in today's Chrome path; tabs are DOM-only (Playwright locators + aria snapshot + cua pointer).
Engine: an embedded Playwright InjectedScript (~155 KB) under OpenAI's own CDP orchestration (~130 KB: frames/OOPIF, isolated worlds, pointer/keyboard state machines), own download interception (Fetch.requestPaused), dialog and file-chooser handling, screencast-based screenshots.
To drop: site_status, identity gate and background identity fetch, Statsig (ab.chatgpt.com), Sentry, OTEL audit records (with origin), configRequirements/config RPCs and CODEX_HOME/browser grants, Auto-review/elicitation prompts, the 16 reason codes (kept only as a sanitized error vocabulary), GaaS/cloud paths. Optional features to decide: GSuite export, YouTube transcript, page assets, WebMCP, bot-detection report, browser auth handoff, user history.
Benchmark: the 2026-10-05 archive is an end-to-end agent trial of the old ChatGPT-extension route versus the Playwright CLI (fixtures 8/8 each, MiniWoB 15/15 vs 13/15, 7:10 vs 13:38 with unequal contention), not a service microbenchmark; a fresh baseline on the current own extension + vendor service, same client/host/extension, must precede any replacement comparison.
Round 2 questions to the owner follow.
[board] in-progress: Spec committed on feat/own-browser-service; independent design and buildability reviews dispatched; plan-executor starts M0 (harness and baseline on the mini).
M1b merged: PR #124 → main af649ba (playwright-core 1.59.1 devDependency pin + extracted injected script, per-frame install in isolated world cua-browser-injected, selectors, reads, main-world evaluate under the no-replay rule, aria snapshot, visible-DOM listing; +13844/−25, 55 files). Whole-branch reviewer-high: round 1 P1 (evaluate result caps bypassable from the page's world → caps re-applied on the trusted side) + two P2 (unbounded collection reads → bounded reader; leaked visible-DOM exception object → released); session ruling: bare Attr projects in the vendor's makeReadonlyAttribute shape with a parity case; round 2 one P2 in the bounded reader fixed (f75d6da); verdict 'correct'. Live on the mini: vendor-m1b-2 vs cua-m1b-2 0 unexpected differences (20 cases, 70 cells, 7 expected); vendor control 0 diff; acceptance 3 passes with CUA_BROWSER_SERVICE=cua; multi-frame navigate cua 99 ms vs vendor 316 ms. Gates 1419/0/6. Open until later milestones: model-facing evaluate/budget text under cua (M1c), dense-page visible-DOM case (M3/M5), cua-linux VM must be up before M4.
M1c merged: PR #125 → main cfa4f63 (locator/coordinate/DOM-CUA actions, keyboard, paste typing with vendored markdown-it 14.1.1, clipboard store, cursor, screenshots, waits, corrected model-facing evaluate/budget text under cua; +12962/−52, 91 files). Whole-branch reviewer-high: 3 P1 + 4 P2, then 1 P2; all fixed except the same-document hit-test P1, withdrawn on vendor parity (vendor has no such check on this route; actions/overlay pins both). Departures in cua's favour, each with a corpus case and an expected-differences entry: concurrent fills land in their own fields (vendor races), cua_type into a focused cross-origin frame works (vendor pastes onto the parent), zero-budget waits succeed when the state already holds. Live on the mini: every M1c diff and the M1a/M1b regression 0 unexpected; acceptance 1 (nytimes Opinion; vendor refuses on site safety) and 2 (#late at ~8.5 s; vendor fails at 3 s) pass on cua; 56 K-char paste 517 ms cua vs 1,168 ms vendor. Gates 1515/0/6. Owed: whole-corpus fresh vendor run (M2), dense-page visible-DOM case (M3/M5), screenshot/modes 5,992 ms one-off (M5 watch), cua-linux VM before M4. Next: M2.
M2 merged: PR #126 → main ec576a8 (dialogs, downloads incl. download_media, file chooser, clipboard bridge + tab_clipboard_*, dev logs, viewport/visibility/management, raw CDP gated by the backend's announced cdp capability, cua_move; +5398/−65, 60 files). Whole-branch reviewer-high: two P2 (request-stage pauses of a raw-CDP caller released by the service; unrecovered media-interceptor removal) fixed in a0e50be, verdict 'correct'. Live on the mini: fresh whole-corpus vendor-m2-1 (56/56) vs cua-m2-2: 0 unexpected over the 51 landed cases (139 cells, 12 expected); the 5 remaining differences are the unimplemented M3 cases. Departure in cua's favour pinned (downloads/two-tabs: vendor hands one download to two waits). Document-response pause consequences pinned on both services; trace test proves pause/release recording for M5. Limits recorded: dialog-open release gap (cua's own dialog guard, kept as the vendor's gap, candidate lift for #116); raw Fetch patterns lost on Fetch.enable re-send (relevant only once a host announces cdp, M4). Gates 1581/0/8. Next: M3 (exports, page assets, WebMCP, bot-detection report, auth handoff form, history; dense visible-DOM page).
M3 merged: PR #127 → main 5f24301 (content exports fetched in the page with the person's session, page assets incl. cross-origin in page context, bot-detection report, user tab context, WebMCP with after-cell notifications, local auth handoff, history forwarded ungated, no-network proof with zero allowances, dense visible-DOM case; byte bounds at the vendor route's 64 MiB ceiling; +5317/−25, 67 files). Whole-branch reviewer-high 'correct'. Live on the mini: whole corpus 0 unexpected over 56 of 59 cases (143 cells, 12 expected). Open: downloads/chooser, downloads/media, downloads/two-tabs fail identically on both services because the mini's ssh session has a pending macOS Downloads-folder consent (even ls ~/Downloads hangs); M3 did not touch the download code and the three passed at M2; they re-run on both services at M4's head once the owner grants the consent. Unit-only success paths (WebMCP, auth handoff, history) get their first live host with M4's MAWS client mode. Next: M4.
M4 merged: PR #128 → main 16be010 (MAWS client mode and Linux runners; +1630/−9, 22 files). Acceptance 9 (Linux, cua-linux VM): linux-chrome and linux-chrome-features PASS under both services (Chrome there needs --disable-extensions-file-access-check for the file-chooser step). Acceptance 8 (MAWS): amended to a cua-side live probe against a real MAWS from a worktree, since the e2e group drives a fake host and never starts cua; probe PASS on both services (profileName MAWS, adopted popup tab, cursor follows clicks, takeover click succeeds on cua at 3,244 ms within a 15 s budget where the vendor fails at 3 s); e2e:browser-cua 7/7 stays MAWS's regression check. Live runners attest which service answered. Whole-branch reviewer-high: two P2 in the probe (no verdict, no signal cleanup) fixed in 874e59a, re-review 'correct'. Gates 1653/0/8. Gap carried to M5: raw CDP, WebMCP, auth handoff and history have no live host anywhere (MAWS client mode announces only viewport) → capability-announcing test backend as an M5 corpus group. The mini's Downloads consent is now granted (ls ~/Downloads over ssh answers), so the three download cases re-run at M5. Next: M5.
[board] done: M5 merged: PR #129 → main 018f3c6. All six milestones (M0–M5) landed: PRs #121#122#124#125#126#127#128#129. cua's own browser service (src/browser-service/, ported in the vendor's shape from readable chatgpt-26.928.40906 with provenance headers) is the default on the cua Chrome route and in MAWS client mode; vendor stays the default elsewhere until #79. Acceptance at the M5 head: parity 0 unexpected over the whole corpus (59 cases, 14 expected differences, every one a lift or a vendor defect); capability-host group 0 unexpected; benchmark tool time within bound on 23/23 tasks, cua faster on 22, two single outcome misses attributed to the sonnet controller by 5/5 scripted drags on both services (raw summariser verdict 'regression' kept visible); no TCP/UDP from the serve process tree, no app-server in the tree; MAWS probe and Linux runners pass attesting cua. Gates 1688/0/8, plugin 0.11.0. Residue registered: #130 (benchmark verdict rule, owner's call), #131 (pin discovery route per connection), #132 (live host for raw CDP/WebMCP/auth handoff/history). Mini resident agent updated to main.
Activity
SSFSKIM commentedon Oct 13, 2026
[board] in-design: Brainstorming opened 2026-10-13; research pass over the vendor service running; first grill round sent to the owner.
SSFSKIM commentedon Oct 13, 2026
Grill round 1 (owner, 2026-10-13): (1) distribution means other people installing on their own Macs, each fetching the OpenAI installer themselves as cua install does today; this step removes the browser policy, limits and account requirement, the remaining vendor pieces are later steps. (2) The JS API the model learns stays vendor-compatible, with the lifted limits (longer timeouts, writable evaluate) as behaviour extensions or added options on the same methods; @oai/cua's REPL-side client is not replaced in this step. (3) No site policy of our own; a local host denylist file is an option, off by default. (4) No regression means every item of docs/evidence/2026-10-05-browser-route-benchmark re-run against the replacement on the same Mac and pages is equal or better within measurement noise; one slower item fails acceptance. Round 2 waits on the research pass over the vendor service (process wiring, API surface and where each cap is enforced, backend protocol, policy and prompts, non-forwarding behaviours, dependencies).
SSFSKIM commentedon Oct 13, 2026
Child 1 of the independence composite #114 (owner 2026-10-13: the phase's purpose is full independence from OpenAI with no performance regression). Siblings: #115 sandbox and app-server, #116 JS API and REPL (blocked by this ticket), #117 native engine.
SSFSKIM commentedon Oct 13, 2026
Research landed 2026-10-13 (two static passes over the installed 26.928.40906 service plus cua's host, condensed to a 200-line design-input digest kept in the session's job dir as browser-service-digest.txt; every fact cited by function name or file:line). What binds the design:
Round 2 questions to the owner follow.
SSFSKIM commentedon Oct 13, 2026
[board] in-progress: Spec committed on feat/own-browser-service; independent design and buildability reviews dispatched; plan-executor starts M0 (harness and baseline on the mini).
7 remaining items
Merge pull request #124 from SSFSKIM/feat/own-browser-service-m1b
SSFSKIM commentedon Oct 14, 2026
M1b merged: PR #124 → main af649ba (playwright-core 1.59.1 devDependency pin + extracted injected script, per-frame install in isolated world cua-browser-injected, selectors, reads, main-world evaluate under the no-replay rule, aria snapshot, visible-DOM listing; +13844/−25, 55 files). Whole-branch reviewer-high: round 1 P1 (evaluate result caps bypassable from the page's world → caps re-applied on the trusted side) + two P2 (unbounded collection reads → bounded reader; leaked visible-DOM exception object → released); session ruling: bare Attr projects in the vendor's makeReadonlyAttribute shape with a parity case; round 2 one P2 in the bounded reader fixed (f75d6da); verdict 'correct'. Live on the mini: vendor-m1b-2 vs cua-m1b-2 0 unexpected differences (20 cases, 70 cells, 7 expected); vendor control 0 diff; acceptance 3 passes with CUA_BROWSER_SERVICE=cua; multi-frame navigate cua 99 ms vs vendor 316 ms. Gates 1419/0/6. Open until later milestones: model-facing evaluate/budget text under cua (M1c), dense-page visible-DOM case (M3/M5), cua-linux VM must be up before M4.
Merge pull request #125 from SSFSKIM/feat/own-browser-service-m1c
SSFSKIM commentedon Oct 14, 2026
M1c merged: PR #125 → main cfa4f63 (locator/coordinate/DOM-CUA actions, keyboard, paste typing with vendored markdown-it 14.1.1, clipboard store, cursor, screenshots, waits, corrected model-facing evaluate/budget text under cua; +12962/−52, 91 files). Whole-branch reviewer-high: 3 P1 + 4 P2, then 1 P2; all fixed except the same-document hit-test P1, withdrawn on vendor parity (vendor has no such check on this route; actions/overlay pins both). Departures in cua's favour, each with a corpus case and an expected-differences entry: concurrent fills land in their own fields (vendor races), cua_type into a focused cross-origin frame works (vendor pastes onto the parent), zero-budget waits succeed when the state already holds. Live on the mini: every M1c diff and the M1a/M1b regression 0 unexpected; acceptance 1 (nytimes Opinion; vendor refuses on site safety) and 2 (#late at ~8.5 s; vendor fails at 3 s) pass on cua; 56 K-char paste 517 ms cua vs 1,168 ms vendor. Gates 1515/0/6. Owed: whole-corpus fresh vendor run (M2), dense-page visible-DOM case (M3/M5), screenshot/modes 5,992 ms one-off (M5 watch), cua-linux VM before M4. Next: M2.
Merge pull request #126 from SSFSKIM/feat/own-browser-service-m2
SSFSKIM commentedon Oct 14, 2026
M2 merged: PR #126 → main ec576a8 (dialogs, downloads incl. download_media, file chooser, clipboard bridge + tab_clipboard_*, dev logs, viewport/visibility/management, raw CDP gated by the backend's announced cdp capability, cua_move; +5398/−65, 60 files). Whole-branch reviewer-high: two P2 (request-stage pauses of a raw-CDP caller released by the service; unrecovered media-interceptor removal) fixed in a0e50be, verdict 'correct'. Live on the mini: fresh whole-corpus vendor-m2-1 (56/56) vs cua-m2-2: 0 unexpected over the 51 landed cases (139 cells, 12 expected); the 5 remaining differences are the unimplemented M3 cases. Departure in cua's favour pinned (downloads/two-tabs: vendor hands one download to two waits). Document-response pause consequences pinned on both services; trace test proves pause/release recording for M5. Limits recorded: dialog-open release gap (cua's own dialog guard, kept as the vendor's gap, candidate lift for #116); raw Fetch patterns lost on Fetch.enable re-send (relevant only once a host announces cdp, M4). Gates 1581/0/8. Next: M3 (exports, page assets, WebMCP, bot-detection report, auth handoff form, history; dense visible-DOM page).
Merge pull request #127 from SSFSKIM/feat/own-browser-service-m3
SSFSKIM commentedon Oct 14, 2026
M3 merged: PR #127 → main 5f24301 (content exports fetched in the page with the person's session, page assets incl. cross-origin in page context, bot-detection report, user tab context, WebMCP with after-cell notifications, local auth handoff, history forwarded ungated, no-network proof with zero allowances, dense visible-DOM case; byte bounds at the vendor route's 64 MiB ceiling; +5317/−25, 67 files). Whole-branch reviewer-high 'correct'. Live on the mini: whole corpus 0 unexpected over 56 of 59 cases (143 cells, 12 expected). Open: downloads/chooser, downloads/media, downloads/two-tabs fail identically on both services because the mini's ssh session has a pending macOS Downloads-folder consent (even ls ~/Downloads hangs); M3 did not touch the download code and the three passed at M2; they re-run on both services at M4's head once the owner grants the consent. Unit-only success paths (WebMCP, auth handoff, history) get their first live host with M4's MAWS client mode. Next: M4.
Merge pull request #128 from SSFSKIM/feat/own-browser-service-m4
SSFSKIM commentedon Oct 14, 2026
M4 merged: PR #128 → main 16be010 (MAWS client mode and Linux runners; +1630/−9, 22 files). Acceptance 9 (Linux, cua-linux VM): linux-chrome and linux-chrome-features PASS under both services (Chrome there needs --disable-extensions-file-access-check for the file-chooser step). Acceptance 8 (MAWS): amended to a cua-side live probe against a real MAWS from a worktree, since the e2e group drives a fake host and never starts cua; probe PASS on both services (profileName MAWS, adopted popup tab, cursor follows clicks, takeover click succeeds on cua at 3,244 ms within a 15 s budget where the vendor fails at 3 s); e2e:browser-cua 7/7 stays MAWS's regression check. Live runners attest which service answered. Whole-branch reviewer-high: two P2 in the probe (no verdict, no signal cleanup) fixed in 874e59a, re-review 'correct'. Gates 1653/0/8. Gap carried to M5: raw CDP, WebMCP, auth handoff and history have no live host anywhere (MAWS client mode announces only viewport) → capability-announcing test backend as an M5 corpus group. The mini's Downloads consent is now granted (ls ~/Downloads over ssh answers), so the three download cases re-run at M5. Next: M5.
Merge pull request #129 from SSFSKIM/feat/own-browser-service-m5
SSFSKIM commentedon Oct 14, 2026
[board] done: M5 merged: PR #129 → main 018f3c6. All six milestones (M0–M5) landed: PRs #121 #122 #124 #125 #126 #127 #128 #129. cua's own browser service (src/browser-service/, ported in the vendor's shape from readable chatgpt-26.928.40906 with provenance headers) is the default on the cua Chrome route and in MAWS client mode; vendor stays the default elsewhere until #79. Acceptance at the M5 head: parity 0 unexpected over the whole corpus (59 cases, 14 expected differences, every one a lift or a vendor defect); capability-host group 0 unexpected; benchmark tool time within bound on 23/23 tasks, cua faster on 22, two single outcome misses attributed to the sonnet controller by 5/5 scripted drags on both services (raw summariser verdict 'regression' kept visible); no TCP/UDP from the serve process tree, no app-server in the tree; MAWS probe and Linux runners pass attesting cua. Gates 1688/0/8, plugin 0.11.0. Residue registered: #130 (benchmark verdict rule, owner's call), #131 (pin discovery route per connection), #132 (live host for raw CDP/WebMCP/auth handoff/history). Mini resident agent updated to main.