Skip to content

Own browser service M0: parity harness, inventory and corpus, host trace, vendor baselines (#113) - #121

Merged
SSFSKIM merged 44 commits into
mainfrom
feat/own-browser-service
Oct 13, 2026
Merged

SSFSKIM merged 44 commits into
mainfrom
feat/own-browser-service

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 13, 2026

Copy link
Copy Markdown
Owner

M0 of the own browser service (#113, child 1 of #114): the measuring instruments, before any service code. Spec: docs/doperpowers/specs/2026-10-13-own-browser-service-design.md (Plan of Work M0; execution decisions in its Decision Log and Surprises dated 2026-10-13).

What changed

  • Host trace (src/chrome/host.mjs, src/chrome/trace.mjs): file-activated by $CUA_HOME/state/host-trace.json, read once at session start; one line per backend request and notification, identifiers only (safe-integer tab ids, bounded opaque session/target ids; malformed values omitted), never a parameter value. The only product-code change.
  • Parity harness (scripts/browser-parity.mjs, scripts/browser-parity/): prepare, run, diff; an MCP stdio client of cua serve, locally or over ssh to the mini's parity clone ~/Developer/GitHub/cua-parity; attestation, fixture lifecycle, normalisation (ids by creation order, screenshot average hash), cardinality and semantic comparison, trace as diagnostic; comparator self-tests.
  • Inventory and corpus (test/browser-parity/): inventory.json (88 rows: the 87-type union of Rf, zN and the capability fallbacks, plus tab_content_export), inventory.test.mjs (handler gate reads the future COMMAND_HANDLERS registry; our-service assertions skip visibly until M1a), 40 scenarios tagged M1a–M3, fixture server on 48732, a no-op self-test that requires every mutation/wait case to fail against inert and selectively inert service doubles, delayed-POST acknowledgment regressions.
  • Benchmark tooling: scripts/bench-summary.mjs (verdict on per-task tool-call time median within max(10 %, 500 ms), wall time reported; per-task success count cua >= vendor), test/browser-parity/bench-recorder.js (journals every call on the device), test/browser-parity/bench-controller-brief.md.
  • Test-helper race fix (separate commit 09f4ff6): test/chrome-client-mode.test.mjs polled for the connector result file's existence and parsed it before the JSON landed.
  • Evidence: the vendor parity pair and the vendor benchmark baseline (below).

Validation Evidence

  • Gates at 5393503 (re-run by the executor session):
    • HOME=/tmp/cua-scratch-home npm test → # pass 1184, # fail 0, # skipped 34
    • npm run test:mods → 32 pass, 0 fail
    • claude plugin validate . → ✔ Validation passed with warnings (the known CLAUDE.md warning)
  • Vendor determinism on the mini (profile ssfs, cua route, corpus c6b7805), no allowance file: node scripts/browser-parity.mjs diff docs/evidence/2026-10-13-own-browser-service-parity/vendor-1 docs/evidence/2026-10-13-own-browser-service-parity/vendor-2 → 0 differences (40 cases, 106 cells) (38 executable cases, 2 documented exclusions: Chrome's person-operated "Ask where to save" dialog; authenticated/external exports).
  • Vendor benchmark baseline, three journaled runs through the mini's resident agent (9897fcc, runtime 26.928.40906, profile ssfs): every task ok in every run (8/8 fixture, 15/15 MiniWoB); node scripts/bench-summary.mjs docs/evidence/2026-10-13-own-browser-service-benchmark → verdict: cua runs: none; per-task tool-time medians in summary-vendor.txt (T1 1063 ms … T6 1520 ms; MiniWoB 695–1055 ms).
  • Reviews: task reviews (sol) clean for both tasks after fix waves; whole-branch doperpowers:reviewer-high: 4 P2 then 1 P2 introduced by the fix, all fixed; final verdict "correct", no material findings.

Confusions

  • The spec assumed the mini ran cua's own host; it ran the ChatGPT extension route. The session set up the cua route on profile ssfs (Decision Log 2026-10-13). The mini's host is the resident checkout's (main), so live traces are empty until M5 updates it; the diff treats an empty trace as unavailable.

Residue

  • none

…ependence composite #114; the standalone spec's Decision Log names the composite and the readable vendor tree as the primary reference
…reviews (REPL contract without a recovery envelope, trust root for the module, two-pin version guard, no-replay evaluate, scenario-based parity harness with the mini topology and host trace, inventory from Rf+zN, Linux runners, M1 cut into M1a/M1b/M1c, corrected vendor anchors)
… into three tasks, the session's ruling on the cua route) and the execution report
…tManualHandoff disabled, getAXState's client-side fallback, history present but unavailable)
…e 3 rewritten), dialog_open kept as an expected difference, the colour JPEG decoder fix
…e inventory gate reads; no-op scenarios fail by construction
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