Repository navigation
Own browser service M5: cua's own service by default, guidance and docs, benchmark and network proof (#113) - #129
Merged
Merged
Conversation
…cs and plugin 0.11.0 CUA_BROWSER_SERVICE unset or empty now selects cua's service: buildLaunch writes the selection into every browser-surface launch and trusts src/browser-service under it; the wrapper's own default agrees. vendor stays as the one-release rollback, validated by settingsFrom and carried into an agent job by `cua agent install` (a job's environment is fixed at install). The first-call documentation gains cua's own "cua-browser-service" guidance: the Chrome rules, budgets up to 120 s (0 is one attempt of at most 3 s), evaluate in the page's main world and never re-run, no approval prompts, and the errors as the kernel sees them (a plain Error with the sentence, each quoted sentence tested against the code). Vendor text that no longer holds is trimmed (history's approval prompt, the Codex app's tab-mention links, the download wait's permission prompts). profiles_list and js teach the selected service's rules; README's Chrome, network, limitations, operating guidance, configuration and MAWS text say what is true now, with a licences and sources section and the research note; the cua-remote skill says what a device's rules follow. Plugin 0.11.0; the standalone design spec's Decision Log records the default.
…extension route needs
…serAuth and history, driven through the real REPL client on both services (run --device local --backend capability-host)
…ua (0 unexpected, 5 expected) through the real REPL client
…rocess network attribution
…nloads consent: 0 unexpected differences (1 expected, two-tabs)
…or names it Controller ruling (spec Decision Log, M5 task 1): with CUA_BROWSER_SERVICE unset or empty a launch gets cua's service, except on a home registered for the ChatGPT extension route alone (a vendor record and no cua one), which gets the vendor's, since cua's service refuses that extension's backends. An explicit value always wins. browserServiceFor (src/runtime/launch.mjs) resolves it at every launch and buildLaunch writes the result; the connection teaches the rules of the service its planned launch resolved; cua agent install carries the variable only when given, never a resolved default. cua doctor gains a browser.service row naming the selection and why. README, the cua-remote skill and the standalone spec's Decision Log line say so.
… PASS, cua attested
…n registered or in MAWS, the vendor's otherwise Controller refinement of the route-aware default (spec Decision Log): a home with no registration is the ChatGPT extension route (the desktop app's host, as effectiveRoute reads it) and the cua route always has a cua record. So an explicit CUA_BROWSER_SERVICE wins; a cua record or MAWS client mode (CUA_BROWSER_BACKENDS listing a socket) gives cua; otherwise (no record, or a vendor record alone) vendor. cua doctor's browser.service row names each case and, for a vendor default, that `cua chrome register` switches the home to cua's own service. README, the cua-remote skill and the standalone spec's Decision Log line follow.
…; attestation shares the resolver; per-phase budgets documented
…o its oracle accepts one path or two (vendor-m5-1 gave two); cua must give two
…tion shares the resolver; per-phase budgets 1. browserServiceFor resolves an unset CUA_BROWSER_SERVICE from chromeRoute, the route backend discovery uses (the most recent registration), so the service and its sockets always agree: cua on the cua route or in MAWS client mode, the vendor's otherwise. Tests in route terms (none, vendor, cua, both in each order, MAWS, explicit) and an integrated both-records launch whose selection and backend paths agree. cua doctor's browser.service row names the active route and the registration that made it so (route.mjs registrationTimes), keeping the `cua chrome register` pointer on the vendor cases. 2. The live runners' attestation expects the service browserServiceFor resolves for their environment and CUA_HOME, tested for both route defaults. 3. timeoutMs is described as a per-phase budget (finding the element, then the action and the load it starts) in the first-call guidance, the API reference header, profiles_list/js and README, with the js cell sized for the whole awaited sequence.
…ult resolves to cua and passes; explicit vendor control passes
… 0 unexpected differences (59 cases, 151 cells, 14 expected)
…ownload re-runs, whole corpus at the M5 head)
… secrets off, no ambient MAWS backends or browser settings), never inherited
…ht from The whole-branch review's P2: the first lazy launch and any launch after an idle stop re-resolved the route, so registering the other route meanwhile switched the runtime's service while profiles_list and js still taught the old one. The connection now resolves the service once at its open and passes it explicitly to every launch; a new connection resolves again. Regression test in both directions (cua then vendor registered, vendor then cua).
…rve environment: vendor twice 0 differences, cua 0 unexpected (5 expected)
…d runs through the resident agent at 0b96351) and the six-run summary
…scripted-drag check
…a fixed rule, no model), --corpus bench in the parity harness, the scripted summary
…i with no TCP or UDP from the serve tree (its one outside peer the Chrome host's socket, state/codex/browser unchanged), acceptance 1 to 3 re-run, the gates
…th services (raw reward 1 every episode, no model in the loop)
…empty or one-sided directory exits 1)
… own rows (unresolved ones shown), checks its collector's coverage (ready before the serve, never exited or silent), runs nettop under a pty; the session's collector always settles; offline tests; session-3 on the fixed sampler, earlier runs qualified
…stry reaches launchd or a known outsider (process groups count as tree; a missing ancestor or a cycle stays unresolved with its connections); the partial-chain test; session-3 re-run under the rule
…, Progress and execution report
This was referenced Oct 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #113 (M5, the last milestone; the ticket transitions on the board).
M5 of the own browser service (#113, child 1 of #114): cua's own browser service becomes the default, with the final guidance and docs, the plugin bump, the cua benchmark, the live network and disk observation, and acceptance as written. Spec:
docs/doperpowers/specs/2026-10-13-own-browser-service-design.md(Plan of Work M5; Outcomes & Retrospective; rulings in its Decision Log dated 2026-10-14).What changed
CUA_BROWSER_SERVICEresolves to cua's own service on the cua Chrome route and in MAWS client mode, to the vendor's on the ChatGPT route (an explicit value wins; the vendor selection is the one-release rollback, removed by Independence 3: cua's own REPL host and a vendor-compatible cua JS API (replace @oai/cua, cua-repl, node_repl) #116). A connection keeps the service it resolved for every launch it makes.cua agent installcarries the variable only when it was given explicitly.cua doctorgains abrowser.servicerow naming the selection and the registration that made it active, and tells a ChatGPT-route home thatcua chrome registerswitches it to cua's own service.cua-browser-servicefirst-call document (Chrome rules, per-phase budgets 3 s default up to 120 s, main-worldevaluatewith no replay, no approval prompts, errors as the model sees them; a test checks every quoted sentence and limit against the code); README's Chrome, network-and-disk, configuration and new "Licences and sources" sections (Playwright's injected script Apache-2.0, markdown-it MIT, the Independence: clean-room rewrite of the ported browser service before distribution (removes the derivation from the readable vendor tree) #120 position);profiles_list/jstext and the cua-remote skill teach the selected service's rules; plugin 0.11.0; the standalone spec's Decision Log line.cdp,webmcp,browserAuth,history) driven through the real REPL client on both services; a bench corpus (--corpus bench) for scripted, model-free outcome checks.Validation Evidence
HOME=/tmp/cua-scratch-home npm test→# pass 1688,# fail 0,# skipped 8;npm run test:mods→32 pass;claude plugin validate .→✔ Validation passed with warnings(the known warning); plugin0.11.0against main's0.10.0.0 unexpected differences (59 cases, 151 cells, 14 expected)(m5-diff.txt); the three M3 download cases re-run →0 unexpected differences(m3-diff.txt); capability-host group → vendor/vendor0 differences, vendor/cua0 unexpected(5 expected, the auth handoff's QR cell: the vendor's flow needs OpenAI's broker).docs/evidence/2026-10-13-own-browser-service-benchmark/summary.txt, three journaled cua runs through the mini's resident agent at 0b96351, each attestingcua browser service 0.1.0, same sonnet controller and brief as the vendor baseline): tool-time medians within bound on all 23 judged tasks, cua faster on 22 (T1 1063 → 137 ms, T8 1216 → 228 ms, MiniWoB 695–1055 → 434–886 ms; T2 11 → 20 ms inside the 500 ms floor). The summariser's raw verdict isverdict: regressionon two single outcome misses (drag-box once: the controller never clicked Submit; drag-items once: a drop coordinate); scripted drags with no model (scripted/summary.txt) pass 5/5 on both services, so per the session's ruling: no regression — timing within bound on all 23 tasks, cua faster on 22; the two outcome misses are controller slips.node --test test/browser-service/no-network.test.mjs→ 3/3 (zero allowances); live session on the mini on the default selection (m5/network/session-3): a sampler with checked coverage (ready before the serve, 39 samples, longest silence 1,021 ms) saw no TCP or UDP from the serve process tree and no unresolved process; the tree's one outside peer is cua's Chrome host socket;state/codex/browser/unchanged (947 files).m5/acceptance/run-1): nytimes.com opens and an Opinion click reaches/section/opinion;#lateclicked at 8,457 ms withtimeoutMs: 15000;document.titleevaluate returns and reads backchanged; the context-loss evaluate returns the interruption sentence with the counter at 1.CUA_BROWSER_SERVICEunset (attesting cua) and with vendor explicit.doperpowers:reviewer-high(two P2, fixed) "correct"; final-deltadoperpowers:reviewer-high(five P2 in the observation drivers and the scripted summary, fixed) "correct", no material findings.Confusions
Residue
--corpus bench,scripts/bench-scripted-summary.mjs).