Repository navigation
Own REPL host (#116) M5: supported sessions default to cua's own host on a managed Node 24; final acceptance - #149
Merged
Merged
Conversation
…lt to the own host where Node 24 resolves (own_host_node_unavailable otherwise); doctor warns; agent install persists an explicit CUA_NODE; host 0.5.0, plugin 0.12.0; package-contents check
…hrough the selection
…re they test its launch, and cover the own host's Linux default and trusted roots
… CUA_NODE that is not an absolute path whatever the selection, as serve refuses it; the healthy Linux doctor test gives its own host a Node 24
…regression runs on its no-registration home, which reads vendor_browser_route
…e own host (owner direction)
…icial Node 24 (v24.22.0) for the own host under $CUA_HOME/node; resolution tries it after CUA_NODE; doctor names cua install
…ected from scoped writes on either host; its install record binds bin/node's SHA-256 and size, and nothing that does not match is reused or run; the pointer is checked and staged before an install is published, with classified failures and rollback
…install verifies the runtime and the Node before placing them, is protected from scoped writes on either host
…_REPL_HOST at its refusal boundary and evaluates every row serve refuses an invalid value at start (settingsFrom, invalid_setting); the profile listing and doctor refuse it at selection (replHostFor, invalid_repl_host). The table now expects each boundary's code and the exact sentence 'CUA_REPL_HOST must be cua or vendor', from the real call and from doctor's sentence for the row's own lane; the serve and listing observation frames carry the sentence. The lane evaluates all 260 rows and the cache and job checks whatever an earlier one did, records every failure by row and case, and exits nonzero naming each; a failure restoring the managed Node still stops the lane. Diagnostic: ddc7427.
…lerance (89496dd): 0 unexpected against each of the three vendor controls
…ost sentence with its on-Node clause doctor words an own selection 'cua host (REASON) on Node PATH: ...', which the oracle's 'HOST host (REASON):' prefix refused for every live own success. The lane sentence is now parsed at its anchored opening: host and reason compared exactly, and for managed rows the clause's path must equal the managed Node that answered, never a path found elsewhere in the row. Regressions grade doctor's actual output (inspectRuntime with stubbed inspections) for both lanes, Linux and the managed fifth case, and reject wrong host, reason and path.
…-cua green on the mini runner (38936813609, fake host), live probe PASS on the own host at 8a134ab with the managed Node under a fresh scratch home, Electron quit cleanly
…dor, own x3, fresh managed homes): 800x600 in 6/6, all PASS; attempt 1's 800x500 never recurred, an environmental/MAWS flake
…ws pass; 22 MAWS-plus-cua-registration rows fail the oracle's /MAWS/ route check, and the cache check reads no handshake record
…econd run and the a27ea84 preparations
…oute by the documented precedence The oracle required MAWS in doctor's route words whenever MAWS client mode was configured, so the 22 MAWS rows whose home carries an active cua registration failed at e63daa1 although doctor named the registration that decides. The oracle now restates the order independently (explicit CUA_BROWSER_SERVICE, then an active cua registration, then MAWS client mode, then the ChatGPT extension route by its registration or by default), expects the deciding source's words in the row's Browser route, and MAWS only where MAWS decides. Replaying e63daa1's 260 rows: 0 failing (22 before). Regressions grade doctor's actual row for every non-refused darwin row and reject another source's route words.
…ws, cache and job checks pass (product e24a1cd)
…3cb6db: compare FAIL on method.typeText's outcome only (one vendor sample's os error 11 against NoReply); every latency row passes
…L kept beside the ruling
…s 0 differences, the Linux vendor confirms the provisional over-limit refusal; three runners PASS, Linux lifeline 251/223 ms, native-pipe tests, selection 260/260, doctor; --suite all held by the 120 s boundary-probe bound
…ration-owned archive cache Preparation fetches the pinned vendor archive and Node tarball once into the prepared home (scripts/repl-parity/archive-cache.mjs: the installer's own download and length/SHA-256 verification), installs the prepared home from them, and every managed fixture's fresh scratch install runs cua install --archive <vendor> --node-archive <node> from those copies. A fixture never downloads: an absent, short or refused cache fails with cleanup-prepared + prepare again. Removing the prepared home removes the cache. The 120 s boundary-probe and 150 s request bounds are unchanged and now pinned by test/repl-parity/fixture-bounds.test.mjs.
…a-remote skill flow (observe/act/verify, js_reset, task_open refusal, end_task, switch local), kill-client count 1, cua-repl-host 0.5.0 on the managed Node attested at the endpoint; resident mini vendor-routed; elicitation not reachable on this route
…browser-only endpoint: tool time within bound on all 23 judged tasks; summarizer verdict regression on outcomes (T2, drag-box, drag-items cua 2/3, controller misses); endpoint-level host attestation
…p, so it exits while a FIFO writer stays open
…-1 vs own 0 differences over 490 cases (1,394 cells); cached fixture installs 22-24 s; trailing vendor control owed (two diagnostics); paused for the VM resize
… trailing vendor control on the resized VM (2 vCPU / 4 GB), own vs vendor-4 0 differences, vendor pair 0, no OOM
…er) at fabfb11: own host attested on the managed Node, plugin-tool observe/act/verify on gedit and a page, js_reset, task_open refusal, end_task, kill-client count 1; endpoint and both preparations cleaned up
…diff over the identical case set (session ruling)
…ed declaration (session ruling)
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.
M5 of #116, the last milestone. This PR makes cua's own REPL host the default for the sessions it supports, ships a managed Node 24 for that host, and records the final acceptance evidence.
Closes #116
What changes for users
Which host runs
cua profiles list). Doctor reports the reason aslinuxorbrowser_only.computersurface, until Independence 4: cua's own native accessibility engine (replace sky) measured against a native baseline #117 (macos_native_peer_requires_vendor);vendor_browser_route).CUA_REPL_HOST=cua|vendor, withvendoras the rollback.agent installsaves an explicit value in the job; an unset one is resolved again at each launch.Node for the own host
cua installinstalls a pinned, verified official Node 24.22.0 under$CUA_HOME/nodefor the own host.$CUA_HOME/nodeand$CUA_HOME/stagingare protected from scoped-sandbox writes.CUA_NODE, then the managed Node, then the node running cua, then PATH.own_host_node_unavailable, and doctor shows a newwarnstatus with the remedies. An explicitCUA_REPL_HOST=cuais refused withrepl_host_node; it is never downgraded.^22.14 || >=23.7).nativePipe
native pipe path unavailable: …/stat failed/not a socket/file name is too long. The order and wording were taken from the vendor binary.sun_path:SUN_LENsentence.Versions and docs
0.5.0, plugin0.12.0.Validation Evidence
Every recording below ran on one product tree,
e24a1cd.git diff e24a1cd HEAD -- src bin runtime package.json .claude-pluginis empty.Gates
ci-gateGREEN at every reviewed head; at the PR head 45389c0: GREEN, https://github.com/SSFSKIM/cua/actions/runs/38997844524 (test 4m02s, plugin pass).claude plugin validate .: "Validation passed with warnings". The warnings are the known rootCLAUDE.mdnotice and the./mods/register.tsxinformational lines.0.11.0→0.12.0, one minor above main.npm pack --dry-run --jsoncontains the owned docs, the Meriyah/zod assets and the Node pins (m5/mini/package/check.json,ok:true).Reviews
doperpowers:reviewer-highover56ea8c3..e9007ba(code): correct, no material findings; delta re-reviewe9007ba..4a33237: correct.Acceptance 1–4 and 6, mini (
docs/evidence/2026-10-14-own-repl-host-parity/m5/mini/)repl-parity diff all-vendor-2 all-cua --through M5 --expected …gives 479 cases, 1,380 cells, 0 unexpected. The expected set is 1,367 identity slots only. The inventory gate covers 542/542.stat-missingcell and the 192-byteconnect-over-limitcell, which has a peer-side witness.cua-repl-host 0.5.0on the managed Node from a freshcua install; CUA_NODE was never used.Acceptance 1–6, Linux (
m5/linux/)through: M4pending declaration and were diffed with their own comparator.through: M5(8c23f3d) governs future runs.linux-native,linux-chromeandlinux-chrome-featuresprintstatus: PASSon the own host.Acceptance 5: the Linux native route through the owned worker passes, via the runners and the
--suite allnative cases above.Acceptance 7
m5/mini/maws/).e2e:browser-cuais green on the mini runner (MAWS run 38936813609, 7 passed). It is a fake-host regression, not host proof.task_openrefusal. Kill-client counts exactly 1 with no replay (m5/remote/,m5/linux/remote/).createElicitation, and secrets are off. It is proven bytest/mcp-devices.test.mjsand the services suite's accept/decline/cancel cases.Acceptance 8
regression, kept as recorded. The session ruled it not a host regression: two misses are controller mistakes, and the third is a single miss whose scripted counterpart passes 3/3.cua-bench, with vendor and own triples in one sitting (docs/evidence/2026-10-14-own-repl-host-native/m5-cua-bench/):compareprints FAIL, kept as recorded, onmethod.typeText's crash sentence only. Both hosts crash in 6/6 samples, and the vendor emits both sentences within one sitting. The session ruled this vendor spread (Browser benchmark: scripted-outcome parity in place of the success-count rule #130).Acceptance 9
Installed-agent rollback on the mini: the session's step, done after review.
Confusions
through: M5made the comparator at HEAD refuse the Linux recordings made under the M4 declaration. That refusal is correct. Per the session's ruling, the Linux M5 completeness diffs therefore ran with the recordings' own comparator,--through M4, which selects the same case set on Linux.Unresolved Review Findings
test/repl-host/native-pipe-long-path.test.mjs:322readssocket.destroyedafterrelay.closeAll(), so that one assertion can't tell expiry-driven destruction apart from cleanup. The timeout-reply assertion still holds. Test-only.docs/evidence/…/m5/mini/maws/README.mdsays the MAWS browser implementation is unchanged since M3. The reviewer could not establish that, because GitHub's compare hit its 300-file limit. The live PASS results don't depend on it.ci-gate-e2e-browser-cua.txttranscript keeps job statuses only. The job log also has a pnpm config warning and two SQLite ExperimentalWarnings, which are upstream MAWS noise.token. They are scratch-ownership cleanup nonces for directories that no longer exist, not credentials, and were dismissed in review.node --versionprobes (accepted by the spec). Doctor's--jsonhas a newwarnstatus value, which external parsers may not expect.sun_path) macOS nativePipe connection costs one Node connector process, 60–100 ms to start, absorbed by the 1,000 ms connect budget.Residue
CUA_DEVICE_Vu5kX8vUd7cYoR6CwjG__wandCUA_DEVICE_92mj0CikRSA_BrFOBRkfMA, to remove through the secret UI. No ticket needed.typeTextsentence and the model benchmark outcomes, suggest thatcompareandbench-summaryshould absorb outcome and sentence spread derived in advance from vendor-vs-vendor runs, or treat scripted outcomes as the verdict. Comments are on Browser benchmark: scripted-outcome parity in place of the success-count rule #130.