Skip to content

Independence: clean-room rewrite of the ported browser service before distribution (removes the derivation from the readable vendor tree) #120

Open

Description

@SSFSKIM

Purpose

Child of the independence composite #114, gating distribution. #113 (cua's own browser service) ports the vendor's @oai/browser-desktop service class by class from the readable tree ~/codex-app-src/readable/chatgpt-26.928.40906/ (owner's ruling 2026-10-13: permitted for the internal research preview). Every ported file carries a provenance header naming the build and BS:<line> range it derives from. Before cua is distributed to other people, the ported code must be replaced by a clean-room implementation: written from the contracts and behaviour the spec and the parity harness define (the REPL contract, the host contract, the command corpus and expected results, the benchmark), by an author who has not read the vendor source for that file, with the provenance headers removed and the derivation gone.

Goal

git grep "Ported from readable" returns nothing under src/browser-service/; the parity harness (scripts/browser-parity.mjs --diff) still reports 0 unexpected differences against the last recorded vendor run; the benchmark comparison still shows no regression; README's licence note states that the browser service is cua's own code. The same discipline applies to #115, #116 and #117 if they port anything.

Approach (to design when opened)

File by file in the module table of the #113 spec, largest derivation first (locators.mjs, cdp.mjs, snapshot.mjs, downloads.mjs); the harness is the oracle; the author of each clean-room file is a fresh executor briefed with the spec, the harness and the vendor-free parts of the digest, and explicitly not with BS. Playwright's injected script stays (Apache-2.0, pinned); the QR decoder, if any, stays open-source.

Order

After #113's M5 lands and before any Store listing or release beyond the owner's machines (#78's listing is the extension only and is not gated by this).

Activity

  1. added
    enhancement
    status:deferred
    priority:P2
    on Oct 13, 2026
  2. SSFSKIM commented on Oct 13, 2026

    @SSFSKIM
    OwnerAuthor

    [board] deferred: Opens after #113 M5 lands; gates any distribution beyond the owner's machines. Owner 2026-10-13: porting permitted for the internal research preview only.

  3. added a commit that references this issue on Oct 15, 2026
  4. SSFSKIM commented on Oct 30, 2026

    @SSFSKIM
    OwnerAuthor

    Owner ruling, 2026-10-30, recorded by the #171/#235 design session (cua_repl#1ea561bc): #120 is not a concern for now. Capability comes first. Reading the vendor's code and translating parts of it into cua (the macOS engine #117, the Linux engine #171 and the agent cursor #235) is allowed wherever it makes cua more capable or faster. Translated code cites the vendor function it comes from. So no current work is held to clean-room, and this ticket's scope is not widened to the engines unless the owner reopens the question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpriority:P2status:deferred

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions