Skip to content

Own browser service M5: cua's own service by default, guidance and docs, benchmark and network proof (#113) - #129

Merged
SSFSKIM merged 34 commits into
mainfrom
feat/own-browser-service-m5
Oct 14, 2026
Merged

SSFSKIM merged 34 commits into
mainfrom
feat/own-browser-service-m5

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

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

  • Default: CUA_BROWSER_SERVICE resolves 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 install carries the variable only when it was given explicitly. cua doctor gains a browser.service row naming the selection and the registration that made it active, and tells a ChatGPT-route home that cua chrome register switches it to cua's own service.
  • Guidance and docs: a cua-browser-service first-call document (Chrome rules, per-phase budgets 3 s default up to 120 s, main-world evaluate with 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/js text and the cua-remote skill teach the selected service's rules; plugin 0.11.0; the standalone spec's Decision Log line.
  • Parity: a capability-host corpus group (cua's real host with a fake extension announcing cdp, webmcp, browserAuth, history) driven through the real REPL client on both services; a bench corpus (--corpus bench) for scripted, model-free outcome checks.
  • Evidence: the cua benchmark and six-run summary, the scripted drag check, the live network and disk observation (with its sampler and positive control), acceptance re-runs, the whole corpus at the M5 head, MAWS probe and Linux runners.

Validation Evidence

  • At 3b4f279 (re-run by the executor session): 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); plugin 0.11.0 against main's 0.10.0.
  • Acceptance 5: whole corpus at the M5 head on the mini against a fresh vendor run → 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/vendor 0 differences, vendor/cua 0 unexpected (5 expected, the auth handoff's QR cell: the vendor's flow needs OpenAI's broker).
  • Acceptance 6 (docs/evidence/2026-10-13-own-browser-service-benchmark/summary.txt, three journaled cua runs through the mini's resident agent at 0b96351, each attesting cua 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 is verdict: regression on 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.
  • Acceptance 7: 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).
  • Acceptance 1–3 at the M5 head on the default selection (m5/acceptance/run-1): nytimes.com opens and an Opinion click reaches /section/opinion; #late clicked at 8,457 ms with timeoutMs: 15000; document.title evaluate returns and reads back changed; the context-loss evaluate returns the interruption sentence with the counter at 1.
  • Acceptance 8 and 9: the MAWS live probe and the Linux runners pass with CUA_BROWSER_SERVICE unset (attesting cua) and with vendor explicit.
  • Reviews: task reviews (sol) clean after fix waves; pre-benchmark whole-branch doperpowers:reviewer-high (two P2, fixed) "correct"; final-delta doperpowers:reviewer-high (five P2 in the observation drivers and the scripted summary, fixed) "correct", no material findings.

Confusions

  • The benchmark's success-count rule cannot absorb one controller slip in three with a model controller (recorded in the spec's Surprises); a scripted-outcome parity check plus the tool-time rule is the candidate for the next benchmark, left for the owner.

Residue

  • Benchmark verdict rule: replace the per-task success-count outcome rule with a scripted-outcome parity check (the bench corpus already holds drag-items and drag-box) while keeping the tool-time rule, so a model controller's single slip cannot read as a service regression. The owner's decision; the tooling exists (--corpus bench, scripts/bench-scripted-summary.mjs).
  • Mid-connection route change: re-registering the other Chrome route during an open connection hands that connection's pinned service the other route's sockets until the next connection. Pinning the discovery route per connection too would close it; rare in practice.
  • No live host for raw CDP, WebMCP, auth handoff, history: proven through the real client against a test backend only; a host that announces them (a future MAWS capability) is where to prove them live.

…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.
…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
…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.
…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
…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)
… 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant