Skip to content

#171 M6a: Linux sessions run on cua's own runtime, with no vendor tree read - #568

Merged
SSFSKIM merged 76 commits into
mainfrom
feat/171-m6a
Nov 24, 2026
Merged

SSFSKIM merged 76 commits into
mainfrom
feat/171-m6a

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 24, 2026

Copy link
Copy Markdown
Owner

#171 M6a: a Linux session, computer or browser-only, now resolves and launches from cua's own parts, and reads nothing of the vendor's runtime tree. The exception is CUA_NATIVE_ENGINE=vendor, which keeps the vendor engine until M6b retires it after the soak.

Refs #171. M6b remains, so this does not close it.

What lands

  • The ModuleTree (src/runtime/module-tree.mjs, src/runtime/tarball.mjs, scripts/modules-pin.mjs, runtime/modules/):
  • The Linux runtime record and resolution (runtime/linux-runtime.json, src/runtime/manifest.mjs, src/runtime/installer.mjs):
    • the derived release name;
    • ownInstaller, so every Linux remedy names this checkout's own installer by absolute path, never a bare cua install.
  • Launch and selection (src/runtime/launch.mjs, src/runtime/vendor-tree.mjs, src/runtime/sandbox.mjs, src/mcp/connection.mjs):
    • one kernel-faithful resolution, used for every check, probe and launch, that refuses to enter runtimes/ before touching it;
    • per-part minimums;
    • the named overrides, never under runtimes/;
    • M5's fallback to the vendor engine is now a refusal.
  • Install, doctor and the provisioner (src/runtime/linux-install.mjs, src/runtime/doctor-linux-runtime.mjs, src/cli.mjs, deploy/cloud-vm/):
    • common parts first, then each lane on its own, with the exit status following the requested lane;
    • install reports what will open as the real serve selection resolves it;
    • every doctor remedy is one the installers accept;
    • the provisioner reaches a working device with no deb.
  • The engine service's remedy (src/services/engine/linux/client.mjs) names the same installer. That is a text-only change.
  • The harnesses follow (scripts/repl-parity, scripts/browser-parity/capability-home.mjs, scripts/native-baseline, scripts/linux-engine-gate).
  • Acceptance 12's driver and fixtures (scripts/accept/linux-*.mjs, .github/workflows/linux-runtime.yml, a dispatch-only workflow with hosted arm64 and x64 legs).
  • Docs: the README's Linux parts, the update step listing the Linux homes, deploy/cloud-vm/README.md, and the plugin and marketplace descriptions.
  • The spec: its Decision Log, Surprises, Progress (M6a ticked) and Outcomes; the ruled pre-flight; and Independence 4: cua's own native accessibility engine (replace sky) measured against a native baseline #117's line that the ModuleTree landed here, with its one departure from N L204 (cua's own fetch, not npm ci).

Every macOS-visible change

  • src/cli.mjs install: Own macOS engine M4: pending install, approve, permission flow, hosted gate and records (#505) #513's macOS install --engine and M6a's Linux install now share the dispatch. macOS's path is unchanged; the whole-branch review ran the 13 focused macOS engine-install tests and found no regression.
  • The plugin and marketplace descriptions now describe Linux on cua's own runtime.
  • CuaError gains an optional context, which only Linux sets.
  • Everything else Linux-specific branches on the platform, with macOS's rows and darwin tests unchanged.

For every Linux home: one install after this release

Each Linux home needs one install, and the README's update step lists them: devcloud VMs, Linux cua devices, and the cloud provisioner's devices. Until then, sessions are refused, and the refusal and cua doctor print the exact command to run:

node <this cua>/bin/cua.mjs install

The plugin runs no install itself.

Validation Evidence

Claim Command Result
Acceptance 12, counted, both arches scripts/accept/linux-runtime.mjs (the acceptance selection) at H = f41546d on x64; linux-runtime.yml dispatch for hosted arm64 and the x64 control (task 155) E0–E5 and U0–U5: 12 of 12 on each of the three legs, acceptance: true; run 45273664518. Evidence: docs/evidence/2026-10-28-own-linux-engine/m6a/
No regression on x64 R1 (repl-parity native, both engine lanes), R3, R4 and the fallback part at H R1: the cua lane 34/34, the vendor lane 34 with 3 declared defects, a diff of 0. R3 14/14. R4 20/20, with acceptance 6's string read back once in dedicated mode. Fallback 5/5, each refusing and naming the installer
Item 6's credit (F10) git diff --stat linux-engine-v0.4.3 linux-engine-v0.4.4 -- native/linux-engine; the pin hashes; git diff da7585c3 H -- src/services/engine/linux/ 0.4.4's diff touches only the drop path. H's engine tree equals the 0.4.4 tag, and the hashes equal the assets. The service differs only by MIN 0.4.4 and the remedy text (m6a/f10-credit.txt)
The ModuleTree matches the vendor's packages node scripts/modules-pin.mjs on both pinned debs x64 and arm64 both pass: 23 packages each by name, version and SHA-512, and provenance.json is reproducible byte for byte
The arm64 venue holds wave-0 pilot (task 143) Both hosted legs answer yes on all four questions: bubblewrap's userns (after the sysctl remedy), gedit's tree on a private bus, confinement with controls (EPERM ×4), and strace following the helper's children
The whole-branch review's fixes don't move acceptance an x64 re-pilot of every cell at the fix heads (task 156) 12/12, with every cell's path, E0's 26 doctor rows and the traced runtimes/ counts equal to T8's at H
Serve start unchanged median of 20, head minus the cua before M6a −41 ms (x64), +22 ms (arm64), +5 ms (hosted x64)
CI ci-gate GREEN, 7 of 7 gates at 4d1ae6b, the head after main 0e7f3de (#558) was merged: harness-dbus, plugin, sandbox-live, engine-swift, parity-browser, test (13m18s) and sandbox-denials. Run 45308087662

parity-browser-stress is red, and it predates M6a: #383. It runs only on dispatch, and ci-kit.yml calls its verdict evidence, never a gate on a change. It fails the same five assertions on both hosts (api/waitforevent, download/path, filechooser/ismultiple, filechooser/setfiles, locator/downloadmedia) on main cf02ca3 (run 45299488568), on M6a's d08d8c2 (45295566279), and on the gate's own first commit b99232d (45303267644). It has never been green; #564 was filed as a duplicate.

Unresolved Review Findings

Residue

  • scripts/sandbox-probe/linux-probes.mjs still reads the vendor tree through locateRuntime, and has no caller. It's on the tracker for M6b.
  • The helper installer's link read above deserves its own P3 ticket: refuse a helper path that leads into runtimes/ before reading it, with the move-aside remedy doctor already names.
  • M6b: delete the vendor's Linux package and the CUA_NATIVE_ENGINE=vendor lane after the soak.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)

The plan a later build follows, from reading the code at da7585c: the module inventory, the Linux runtime record, resolution and launch, install and migration, tests and acceptance 12, the tasks, and nine forks to rule. No code was run.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
… findings folded in

The pinned parts become the ordinary path, with named overrides ruled apart and the vendor's Node excluded (F2, F2a). Install runs the common parts first and each lane on its own, its exit status following the requested lane (F4). The refusal names this cua's own installer (F9). The lock is authenticated against the vendor archive's lockfile at pin time, the closure is what is reachable from the six roots, tarballs are read by cua with their members checked, and the payload is recorded and verified. Item 6 is a fork of its own (F10). The browser-only check calls the browser service and witnesses each import's real path. The hosted venue is plausible, not established, with a shared environment and positive controls. The provisioner needs no deb by default, and the capability home joins T5. No code was run.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
The engine lookup carries the Node lookup's exclusion: an override that is, or leads, under runtimes/ is refused before anything there is touched. The import witness names the six entries the kernel's resolver selects (three ES modules, three CommonJS) and requires each selected and opened. F2 now recommends a minimum for each part, the coordinator's view and mine, with what an open binds of the engine stated for both rulings: a compatible engine under the minimum, logged; an immutable directory per digest and two race tests under strict pins. sandbox.launcher is checked after each home's install, not before E0. No code was run.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
… the three additions folded in

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…r and dispatch workflow (task 143)

The wave-0 part of T6 (the M6a pre-flight §5.2, "The venue pilot"), on main's code:

- scripts/accept/linux-runtime-env.sh: the run's environment, the same on both venues (a home of the run's, a 0700
  XDG_RUNTIME_DIR, xvfb-run's private display with Openbox, a private dbus-run-session bus whose daemon logs to the run,
  accessibility on by doctor's A11Y_ENABLE_COMMAND, CUA_SHIM_SANDBOX refused).
- scripts/accept/linux-confinement.mjs: the confinement step the fixtures share. Its targets answer: the run's X socket,
  the bus's actual socket from DBUS_SESSION_BUS_ADDRESS, and a TCP and a Unix listener of the fixture's own. Positive
  controls first, then the kernel's cell, the listeners' counts, and the kernel's parents (the pinned helper, bwrap).
  linux-native.mjs runs it in place of its own socket checks (port 22, $XDG_RUNTIME_DIR/bus).
- scripts/accept/linux-trace.mjs: reads `strace -f --pidns-translation` and says whether it followed the helper's
  children into the kernel, which then went on calling.
- scripts/accept/linux-runtime-pilot.mjs: doctor's four environment rows, today's `cua install`, sandbox.launcher, the
  item 1 smoke plain and traced, and the four answers (userns, a11y, confinement, strace) as yes, no or unanswered.
- .github/workflows/linux-runtime.yml: dispatch-only, an arm64 leg on ubuntu-24.04-arm and an x64 control leg, the
  file's push registering it from the branch as linux-engine.yml's did.

Each judge's negative control is a test: a kernel that connects, a listener that accepted, a failed control, a kernel
outside the helper or bwrap, a trace without the kernel or with nothing after its exec, a warn on an environment row.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…he remedy instead of stopping on it (task 143)

The step's shell is bash -e, so the expected refusal ended the step on the first dispatch (run 45140841963, both legs).

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…import

The pin: runtime/modules/package.json names the six packages at exact versions and holds every
other package at the vendor lock's version with overrides; package-lock.json is npm's (version 3,
libc on the @img entries, every entry at its canonical registry URL); provenance.json is what
scripts/modules-pin.mjs wrote against both pinned vendor debs: each deb matched to its pin, only
.pnpm/lock.yaml taken out, and both architectures' closures equal to the vendor lockfile's own
closures by name, version and SHA-512, each tarball fetched, checked and read. 23 packages per
architecture; run twice, the same bytes.

src/runtime/module-tree.mjs: loadModuleLock, moduleClosure (reachable edges from the root,
optional branches pruned by os, cpu and libc), installModuleTree (fetch at the pinned length,
SHA-512 before any read, cua's reader, the payload recorded as written, one rename),
readModuleTree, checkModuleTree (the connection's stat) and verifyModuleTree (every digest,
nothing added). src/runtime/tarball.mjs reads gzip and tar itself and writes files and
directories only. verifyArchive takes a SHA-512 integrity; homeLayout gains modules.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…hosted arm64 runner and its x64 control (task 143)

Run 45141056542 at 6d39cb0: bubblewrap gets its user namespace after the remedy doctor names (restrict=1 refused it
before), gedit's tree is served as at_spi on the private bus, the four controls connect while the kernel gets EPERM on
each and the listeners saw only the controls, and strace -f --pidns-translation follows the helper's children into the
kernel. Measured: 103 calls under runtimes/ in the traced serve tree on main's code, the reads E1 will judge.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
The five Important findings of task 144's review, each test-first:

- The pin script snapshots each deb into private scratch and hashes, matches and reads that
  one copy, so a file replaced mid-run cannot pair a pinned hash with another lockfile.
- Module tarballs come from their canonical URL itself: both the pin script and the installer
  refuse redirects (the shared downloader keeps following them for every other asset), and the
  pin script streams each body under a 64 MiB bound.
- Damaged trees stay inside the real tree: modules/ and staging/ must be real directories,
  install.json a regular file, and every directory on the way to a checked file real; the full
  check reads each file once, by its walk, and never opens a link or a FIFO.
- A successful install means the recorded tree passes its checks: every package must carry its
  package.json, and the full check compares the complete native inventory with the record.
- The tar reader checks the whole structure before writing: the top directory's header once,
  two zero blocks with only zeros after them, and no NUL in a pax or GNU long name.

The pin-time run on both debs writes provenance.json byte-identical.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…usals, the answering kernel, the serve's trace, the vendor-tree counter, the run's isolation, the artifact list

The task review's seven Important findings and one Minor, each test-first:

1. The pilot exits 0 only when every mandatory step passed (MANDATORY_STEPS) and all four answers are yes
   (pilotVerdict); the accessibility answer is yes only for a typing step that passed.
2. A kernel's connect is refused only by an errno that proves it for its target (REFUSALS); a timeout, a generic error
   or a malformed value proves nothing.
3. The kernel is the one that answered: its cell reports its namespace pid and start time, a 50 ms sampler of /proc runs
   across the cell, and the one process under this serve with that identity is bound. Executables are read from /proc
   only: an unreadable one certifies nothing. The userns answer takes bwrap only above that kernel.
4. The trace judge requires the worker and the calling kernel to descend from the serve it judges.
5. The vendor-tree counter counts attempted execs, resolves relative paths against their -y-decoded base, the
   descriptor or the working directory (chdir, fchdir, AT_FDCWD), counts a returned descriptor's path, and reports
   itself incomplete when a base is unknown. strace runs with -y and traces fchdir.
6. The wrapper takes its homes from linux-runtime-env.mjs: app-env.mjs's lists unset (AT_SPI_BUS_ADDRESS and
   SESSION_MANAGER among them), a fresh user HOME and XDG_RUNTIME_DIR, a run-owned fresh CUA_HOME.
7. Raw streams stay in the run's scratch; the artifact is ARTIFACT_FILES (pilot.json and the two smoke projections),
   which the workflow uploads by name.
8. Openbox not up after 50 checks fails the setup with its log.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
- One npm-package step, readPackageTarball (src/runtime/tarball.mjs): a valid archive whose top
  directory holds a package.json file. The installer's unpack and the pin script both use it,
  so a shape the install would refuse can no longer reach provenance.json; it is refused before
  any write in either path.
- The FIFO checks run in a child the parent kills at a deadline, so a regression to a
  synchronous FIFO read fails at the named assertion instead of hanging the test file.
- modules/ is still refused as a link before the lookup; staging/ only on the new-install path,
  so a tree already installed and verified stays a no-op.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…scriptor that is no file is no path (task 143)

Run 45147992954 at 629b31d failed closed on both legs: a kernel cell has no process global, so the cell's identity read
threw and the step bound no kernel (confinement no, userns unanswered, exit 1). The pid now comes from the sandbox's
/proc/self/stat, as the start time does; checked live here (pid 2, bound under the serve through helper, bwrap, helper).
The same run's counter left one call unresolved: the trusted worker's open of /proc/self/fd/5, whose returned descriptor
-y decodes as pipe:[...]. A decoded pipe, socket or anonymous inode is no path, and no longer unresolved; the local trace
then counts 125 calls under runtimes/ with none unresolved.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…ed contract: verdict PASS, all four yes on both legs (task 143)

Run 45150450103 at 7dfc6af: every mandatory step passed and all four answers are yes on arm64 and x64. The kernel that
answered was bound by its identity under this serve, the trace's worker and kernel descend from the serve, and the
vendor-tree count is complete (125 calls, none unresolved). The files are the run's artifact as uploaded, exactly
ARTIFACT_FILES per leg.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
runtime/linux-runtime.json names cua's own four parts by their pins (the
module lock's SHA-256, the managed Node, the sandbox helper's tag, the
engine), parsed strictly and bound to each pin at load (manifest.mjs:
parseLinuxRuntime, loadLinuxRuntime). Its release name is derived from it
(linuxRelease), so a change to any part is a new release.

On a Linux host locateRuntime and resolveRuntime answer that record: the
module tree this lock names, installed by cua for this host, checked by
checkModuleTree at resolution. The pointer is not read there and nothing
under runtimes/ is touched. vendorLinuxRuntime finds the vendor tree by
its pin, for CUA_NATIVE_ENGINE=vendor only. Every Linux remedy names
ownInstaller's command, this cua's own bin/cua.mjs by its absolute path
(F9), the module tree's recovery hint and the vendor tree's install hint
included.

scripts/linux-engine-pin.mjs rewrites the record's engine version with
the pin, so an engine release stays one command and the merge that
brings engine 0.4.4 here is one run of it.

Until T3 and T4: buildLaunch finds the vendor tree by its pin for a
Linux session on the vendor's engine, and doctor's Linux runtime rows
read the vendor tree through vendorLinuxRuntime. fakeInstalledHome and
forgeActiveRuntime lay down the own module tree for a Linux host.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…ins off the Linux path

- locateRuntime and resolveRuntime read the archive pins only where they
  select (darwin): a bad vendor pin no longer blocks the own Linux runtime.
  The recorder test now rules out any read of runtime/releases/*.json,
  apart from the managed Node's pins, and counts the module lock read once.
- Linux resolution binds the record and reads the tree against one parsed
  module lock (loadLinuxRuntime takes `lock`).
- vendorLinuxRuntime tells an absent tree (release_not_installed) from one
  present but damaged (release_damaged: a file or a link at its path, a
  path that cannot be stat-ed, a record not the pin's, a layout file
  missing), and every refusal carries context {release, home, root};
  CuaError gains `context`.
- The module tree's structural check at resolution names the derived
  release in its recovery hint (F9).
- The pin script's merge test seeds its old engine version itself, so it
  holds once 0.4.4 is the checked-in pin.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…ands, CUA_HOME by its real path, the sampler stopped in finally (task 143)

1. The vendor-tree counter reads each traced syscall's pathname operands at their positions (OPERANDS): rename's and
   link's destinations, the at-forms' second pair, symlinkat's link name (a symlink's target is content). An absolute
   path stands whatever its descriptor decodes to. A NULL or empty path names its descriptor. A syscall form not
   listed, an operand strace did not print whole, or a relative path against a descriptor that is no directory is
   unresolved, so the count is incomplete, never zero. strace's padded return column no longer hides the arguments.
   The local x64 -y trace still counts 125 calls under runtimes/ with none unresolved.
2. The run and a named CUA_HOME are compared by their real paths (the nearest existing ancestor resolved), so a
   symlink in the run that leads out of it no longer carries CUA_HOME away; a run reached through a symlink spells its
   homes by its real path.
3. The confinement step stops its sampler in finally, so a rejected cell request leaves nothing sampling.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…: verdict PASS on both legs, the parser complete on arm64 (task 143)

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
The Linux Node is the managed one or CUA_NODE, never the node running cua or PATH's; the Node lookup and the engine
lookup refuse any path that is, or leads, under the vendor's tree before touching it. Either engine selection takes an
installed engine at or above MIN_ENGINE_VERSION by its record, or is refused at the open (M5's fallback is gone). The
vendor selection resolves its tree once and the launch takes it from there; the ModuleTree is the module base under
either engine, protected but not trusted. The recorder test shows no read under runtimes/ with the tree present.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
… lane on its own

The record first, then the module tree, the sandbox helper and Node, the pointer to the derived release once they are in
place, then cua's engine and the vendor's tree (installed without taking the pointer), every step attempted; the exit
status follows a failed common part or a failed lane the home asks for (F4). `cua runtime use` on Linux verifies this
cua's own runtime and records it; a vendor release is refused, naming CUA_NATIVE_ENGINE=vendor. A runtimes/ that is a
file is refused as what blocks the vendor's install.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…endor's tree is one row

platform names the release the record derives; runtime.installed the module tree and the pointer; runtime.modules the
tree's full check; runtime.node the managed Node against its pin; runtime.vendor folds runtime.files, vendor-manifest,
ipc and signatures, skipping an absent tree and failing a damaged one. The engine row fails every refusal of a
preference for cua's engine (F3) and a vendor selection whose tree is absent. Every fail, and every warn for a part
behind its pin, names this cua's own installer by its absolute path (ruling 1110), sandbox.launcher's too. A runtimes/
that is a file is named as what blocks the vendor's tree. The profile map's classic-level comes from the ModuleTree.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
CUA_DEB gains `none`, render.sh's default: the VM installs and registers cua's own runtime and fetches or waits for
nothing. `pin`, a URL or `upload` ask for the vendor's tree: the own runtime and its registration come first, as under
none, then the deb (unless cua install already placed the tree from the pin's URL) and `cua install --archive`; a deb
that cannot be had stops provisioning there, with the device working. The install block is functions the test runs
with stub cua and curl; cua install's summary is {ok, release, changed, sessions}.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
… opens follows the parts, not the pointer

The vendor's install refuses a runtimes/ only where it is not a directory (a file, or a link that leads to none), as
before for a link to one. The last line and `sessions` follow the parts alone, since the pointer selects nothing; the
engine's line names the home's setting as the vendor's does, and --no-node is told apart from no pinned Node.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…nux helper step follows cua's own runtime

The two vendor-first install tests run macOS's install wherever the suite runs; the Linux helper step is a common part
after the module tree, and its failure fails the install with this cua's own installer as the remedy, the lanes still
attempted.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
The linux-native sessions select the vendor's engine explicitly, its tree the fixture's; acceptance 9's fifth case
installs cua's engine and reads the Linux Node lookup on a Linux host.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
The engine row's tests take a pin above the minimum and the vendor's tree through the selection's own seam; the
default's refusals and the vendor's absent tree are the selection's, not injected. The engine row loses the branch
only M5's fallback reached. Doctor passes the host's platform and arch to replHostFor and ownHostNode. The install's
failure tests now see the default's own refusal of cua's engine and the vendor's engine_not_installed.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
… to its use

outsideVendorTree walks a path as the kernel does, `..` and relative link targets included, refusing entry into
runtimes/ before touching it, and its resolved path is the one metadata, the version probe and the launch use. The
managed Node's pointer, record and binary and the installed engine's record are guarded before they are read; the
managed Node must be executable; CUA_LINUX_ENGINE_BIN is held to the minimum at the open; override refusals name the
override's fix, then this checkout's installer. The Linux selection oracle judges the Node on the managed one or
CUA_NODE. The engine-swap test renames real executables; runtime-node's macOS lookup row is pinned to darwin.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…kout's installer

ownInstaller moves to src/runtime/installer.mjs, which depends on nothing of cua's; manifest.mjs re-exports it, and
src/sandbox/linux.mjs's verifyHelper names its absolute command in every remedy (F9, the pre-flight's C11).

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…ive cua's own runtime; an explicit deb source is honoured

A failed install of cua's own runtime stops before registration and exits nonzero, with the install's error and its
remedy in the checklist (stop_failed); only the vendor's deb, after registration, stops early with a working device. The
cua install of the pin's URL stands in for `CUA_DEB=pin` alone: a mirror or an upload is fetched and checked. (Review
items 1 and 2.)

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
… and name what to move aside

runtime.installed needs the module tree, the Node a session resolves and the helper (a disabled sandbox needs none);
runtime.node is the session's own Node lookup, its refusal and its correction; a module tree, a Node or a runtimes/ link
an installer will not replace is named to be moved aside before the installer and its release; a current.json that
cannot be read warns, naming it, and doctor goes on; vendor pins that cannot be loaded fail runtime.vendor alone; and
repl.host keeps its refusal's remedy. Tests for a changed JavaScript file and a removed, truncated or altered native file.
(Review items 3 to 7 for doctor, and c.)

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
… cannot read; every engine sighting recorded (task 152)

Pilot 3's three hosted failures were a short-lived cua-engine read alive in /proc/<pid>/stat and gone
by its /proc/<pid>/exe. The coordinator's ruling: when the executable cannot be read, the stat is read
again; a process gone (or its pid reused, by start time), exiting, a zombie or dead is skipped as
vanished, and one still alive keeps its unread executable, which fails. Each run's report now lists
every cua-engine the sampler saw: pid, start time, executable, and whether it was skipped and why.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…untime

README: the two engines without M5's fallback; a new "cua's own Linux runtime" part
(the four parts, their minimums and named stand-ins, the install's order and lanes,
an install during a session swapping the engine file, the @oai/@statsig/corepack
difference); doctor's Linux runtime rows; "Updating on Linux" in the plugin part,
naming the updated cua's own installer by absolute path and the three kinds of Linux
home that need one install; Requirements, Use and Configuration's Linux Node and
engine statements; the licence note for the module tree. deploy/cloud-vm/README.md:
--deb none by default, the own runtime first. The plugin and marketplace
descriptions. The pre-flight's §4.1 --json shape folded to what T4 built.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…d): every cell passes on x64 here, arm64 and the hosted x64 control; 4, 3 and 1 short-lived cua-engines skipped as vanished (task 152)

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…r (F9)

client.mjs's three refusals (could not be run, no version, older than the minimum)
now say `run \`node <this cua>/bin/cua.mjs install --engine\``, spelled as
src/runtime/installer.mjs's ownInstaller spells it, instead of a bare
`run cua install --engine`. Text only; nothing else in src/services/engine/linux/.

It is spelled in client.mjs, not imported: the service loads in the trusted worker,
which refuses any import outside the launch's trusted code paths, and on Linux
src/runtime is none of them. A static import of installer.mjs fails every live
computer session while every other unit test passes. New
test/services-engine-linux/trusted-load.test.mjs loads the service under a copy of
the worker's hook with a Linux launch's exact trusted paths (and a negative control),
and failed against that import. The service's tests hold the two spellings equal by
computing the expected sentence from ownInstaller. The README's quoted sentence follows.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
… new false greens closed, test-first (task 152)

1. A trace's pending scan reads unfinished execs too; an exit ends its thread alone, and a thread group
   ends by exit_group, a kill, or the exit of its last thread, so a leader's own exit no longer ends the
   rest.
2. The older cua's baseline is taken only from a successful reply whose base is its vendor module base
   (baselineOf), and this cua's base must be its module root; roots are set aside only at path
   boundaries; messages are kept and compared whole, cut only for display.
3. A refusal's reply is read from the whole transcript after stdout drained (initializeAnswered); every
   exec under runtimes/, done or attempted, whatever its name, is a launch (a stat there is not: the
   vendor selection looks for its own tree before it refuses).
4. Every Node a worker or kernel pid exec'd (trace) or was seen running (sampler) is judged, not only the
   last or the first.
5. Every cua-engine sighting counts for absence, one skipped as vanished included.
6. Playwright's require must expose chromium.launch beside its graph.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)

# Conflicts:
#	tech-debt-tracker.md
Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)

# Conflicts:
#	.claude-plugin/marketplace.json
#	.claude-plugin/plugin.json
…4 regression and F10's credit (task 155)

H = f41546d (feat/171-m6a). Every cell E0 to U5 passes on this VM's private display, on the hosted arm64 leg and on
the hosted x64 control (run 45273664518); each leg's verdict is acceptance: true. The x64 regression at H passes:
R1 (both lanes, diff ok with the 3 declarations), R3 and R4 in the default selection, and the fallback part's five
refusals. F10's credit holds: 0.4.4's engine diff leaves the text path untouched, the pin's hashes are the published
0.4.4 assets, and the service's diff from da7585c is only 0.4.4's MIN and F9's remedy. Serve start to first answer,
H minus the older cua: -41 ms (x64 VM), +22 ms (arm64), +5 ms (hosted x64).

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…ine that the ModuleTree landed here

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)

# Conflicts:
#	.claude-plugin/marketplace.json
#	.claude-plugin/plugin.json
…r tree read"

- The secret store's project lookup ran `git` through the caller's PATH, so a serve with the vendor tree's bin on PATH
  executed a git there. On Linux git is now looked up with every PATH entry that is, or leads, into <home>/runtimes/
  skipped, and run by the path checked (vendor-tree.mjs executableOutsideVendorTree; serve passes its home and env).
- The sandbox helper was read and run through its installed path, a link into the tree included. The launch names the
  helper by its guarded resolution, and the preflight, doctor's row and install's readiness refuse one that leads into
  the tree before reading it, naming the link to move aside (sandbox.mjs guardedLinuxHelper).
- The guard's roots now include where <home>/runtimes leads when it is itself a link, so a relocated tree is refused by
  its physical path too. A refusal carries the links it followed, for remedies to name.
- `cua runtime use` on Linux checks current.json with pointerObstruction before it reads or writes it (a link is not
  followed, a FIFO does not block), and reads the vendor's pins only to classify a name other than this cua's own.

The recorder (test/helpers/vendor-tree-recorder.mjs) now notes each path as the call reaches it (through links, and a
bare command through PATH), and runs at the real `cua serve` entry point through a preload.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…th its test

- An engine, its record or its directory linked into the vendor's tree: the session's refusal names the link to move
  aside before the installer, and the engine's install and local build refuse it the same way rather than reading or
  writing through it (linux-engine.mjs assertEnginePathsOutsideVendorTree).
- The module tree records each package.json's size at install and the connection's check compares it, as it does the
  native files'; a file or directory the full check cannot read is a verification failure naming the tree to move
  aside, never a raw error or an empty directory.
- Install's readiness applies serve's CUA_BROWSER_BACKENDS check to the browser-only session only.
- Doctor's runtime.node names the mode fix, or the version directory to move aside, for a managed bin/node that lost its
  execute bit, which node-install refuses to repair.
- The provisioner tells an M6a checkout from an older one by runtime/linux-runtime.json: own-first for M6a, and for an
  older checkout the supplied deb first, its failure failing the provisioning.
- linux-runtime-env.sh passes doctor's module path to node as an argument, imported by its file URL.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
… the home's listing, never by naming runtimes/

The x64 re-pilot of acceptance 12 failed E1 and E2: the guard's new root, where <home>/runtimes leads when it is a
link, was found by lstat-ing <home>/runtimes on every lookup, and the live judge counts a call naming the entry itself.
Whether the entry is a link now comes from the home's own listing, so an ordinary home has nothing at or under
runtimes/ named, and only a link is read. The unit recorder counts the entry itself too, as the live judge does, and
lets its lstat and readlink pass only for a relocated tree; it catches the regression (10 of 15 fail without the fix).

The provisioner's tests stub GNU's `sha256sum -c --status`, which macOS's sha256sum does not take.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)

# Conflicts:
#	.claude-plugin/marketplace.json
#	.claude-plugin/plugin.json
…e partials and three new findings

- The helper: a confined launch's construction refuses a helper path that leads into the vendor's tree, at every
  launch, since a connection's later launches repeat no preflight; and the scoped preflight walks each of the home's
  own protected directories (node, staging, sandbox, engine, modules) with the guard before it resolves any, so a
  <home>/sandbox (or staging, or engine) that is a link into the tree is refused, never resolved there.
- The relocated tree: a cua home that cannot be listed leaves the tree's boundary unknown, and is refused
  (layout_invalid) rather than read as "not a link"; an absent home has no tree.
- Install's last line says "no session opens" only when a shared prerequisite failed; a browser-only refusal of its
  own names the computer sessions that open.
- The module tree's full check compares each record's manifestSize with the package.json it walks, so what install
  calls verified the open accepts.
- The guarded git lookup keeps PATH's meaning: each candidate is spelled `<entry>/git` and walked with its own
  components (`..` after a link as the kernel takes it), and a relative entry is taken against the directory git runs in.
- Doctor's mode fix quotes the managed Node's path as one shell argument (installer.mjs shellWord).

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T02:21:38.760222Z 4d1ae6b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

The coordinator set the release version at merge (main is 0.29.17).

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
The coordinator corrected the version: #571 (#565) holds 0.29.18, so M6a takes 0.29.19.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
@SSFSKIM
SSFSKIM merged commit cb9973e into main Nov 24, 2026
10 checks passed
@SSFSKIM
SSFSKIM deleted the feat/171-m6a branch November 24, 2026 03:03
SSFSKIM added a commit that referenced this pull request Nov 24, 2026
…(refs #565)

Conflicts:
- .claude-plugin/plugin.json, marketplace.json: main's 0.29.19 and its
  rewritten descriptions taken; the branch bumps past it in its last
  commit.
- tech-debt-tracker.md: both sides' new Open entries kept (#565's
  reader-error entry, M6a's two).
src/mcp/server.mjs and src/services/engine/linux/client.mjs merged
cleanly; both keep the shared jsonl framing. M6a added no new JSON-lines
reader or writer under src, bin or verify.mjs.

Sminos-Session: cursor235#b93055dd (cua on macbook)
SSFSKIM added a commit that referenced this pull request Nov 24, 2026
…7-m5 (refs #506)

Conflicts resolved keeping both sides: README's engine and Node rows (main's Linux text, the branch's macOS minimum),
nativeEngineFor's signature and comment (main's Linux arch/vendor/probeTimeoutMs, the branch's pending/minimumVersion),
server.mjs's imports, tech-debt-tracker's two entries; runtime-launch.test.mjs's two MIN_ENGINE_VERSION imports renamed.

Sminos-Session: cursor235#b93055dd (cua on macbook)
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