Repository navigation
#171 M6b: retire the vendor's Linux package (cua 0.30.0) - #594
Merged
Merged
Conversation
The plan a later build follows, from reading the code at 84216c0: every place that reads, names, installs, checks or tests the vendor's Linux package, each deleted, moved or kept; the refusals and the doctor rows as they will read (1193 (c), 1212); the removal in install (1193 (b)); the provenance move and its unreachability test (1193 (a)); acceptance 13 on x64 and hosted arm64, with what reruns and what is cited; the tasks; and eleven forks to rule. No code was run. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…93 (b)); source-aware refusals (1215) The pre-flight's adversarial review found three P1s in the planned removal; the design session chose to report the tree instead. The entry also records the refusal sentences' form and the other forks' rulings. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
… the pre-flight branch Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…oved (1216); source-aware refusals (1215) Folds the adversarial review of dac5508 and the design session's rulings. - 1216 (b'): install and doctor name a recorded vendor release with its path and size, and delete nothing. The removal protocol, its tests and forks F3 and F4 are gone; an opt-in removal is #586. - 1215, 1216: every engine refusal gives its source's prerequisite, then one install command; 0.30.0 lands on the branch before the freeze; install under a vendor selection runs every step and exits engine_retired. - F5: the provenance records keep a validated lockfile member, proved end to end through the new reader. F7: the gate takes the comparator from a hash-checked fixture, and two steps run on it alone. - The review's other findings: the Node record's read gets launch's boundary, with the linked fixtures replayed through doctor and install; the cloud template's bootstrap (update.sh) and the old scripts' tests; items 2 to 8 cited cell by cell and bridged to H, with FB and the host lanes rerun; R1's own verdict; checkEnginePair's two kinds; the real gate names and engine-linux by name; the size's method and measured figure. - Section 7.2 lists nine choices for the design session to confirm. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
… 1217 - A linked staging/ is refused before any acquiring lane writes; full installs with the link present and parts missing, with a negative control (3.4). - The report's sentence keeps the path and size, says only that this version no longer uses the tree for sessions, and hands the person the check for older consumers and added files (3.3). - The second selector's read of engine.json is bounded: a regular file outside the tree, optional on any failure; install's sentence promises no readiness (2.1, 2.2). - The bootstrap resolves one commit, checks that the VM's source can give it before replacing the script or conf, pins the conf to it and checks the checkout afterwards; a bundle recovery (3.6). - Each fixture is compared once with its authenticated deb before its manifest is pinned; the arm64 binary matches the counted digest in scene-ended.mjs (4.4). - E3 allows exactly the override's version probe; the fixture cell binds the events step to two vendor binaries and FB to the fixture's JavaScript and the pinned cua engine (5.2). - 1217: the second fixture copy on the owner's MacBook, the fixtures never in the repository, N1 to N9 as ruled, and the rule for a failure in #558's or #565's first counted runs. 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)
…has its name The pre-flight's T1 (docs/doperpowers/specs/2026-10-28-own-linux-engine-m6b-preflight.md §2, §3.5's flags, last line and exit status; rulings 1212, 1215, 1216, 1217, 1218): - CUA_NATIVE_ENGINE=vendor, "engine": "vendor" in engine.json, or both are refused on Linux as engine_retired, first, whatever the home holds. The sentence names each source in precedence order, its prerequisite, then the one command; the second look at engine.json is bounded (outside the vendor's tree, a regular file by lstat, at most 64 KiB, O_NOFOLLOW|O_NONBLOCK, fstat), and any failure names the variable alone. - Every engine refusal on Linux ends with `node <checkout>/bin/cua.mjs install --engine` after its source's prerequisite, and carries ENGINE_HINT, which holds no command: no cua engine build, no cargo, no vendor engine. - launch: the vendor branch goes; a Linux computer launch requires cua's `bin`. - install: no vendor lane, no other engine in the last line; --archive and --release are usage errors on Linux; under a vendor selection every step runs, then exit 1 engine_retired, ending "; the install otherwise completed". - doctor: runtime.vendor goes; engine and repl.host fail with the selection's sentence and hint. - the js rules on Linux are cua's engine's alone; the selection oracle refuses vendor in every Linux row. - `cua runtime use <vendor release>` is unknown_release, its hint naming no engine. - 0.30.0: VENDOR_ENGINE_RETIRED_IN, and both plugin manifests. - The Linux test fixtures hold cua's own parts: the installed home, and the native runtime with an engine double behind cua's real service. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…riable's or engine.json's Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…look opens the path the guard resolved - A relative CUA_LINUX_ENGINE_BIN is refused in §2.1's form: the source, the unset, then the one command, with the engine hint; the refusal sweep covers it. - engineFileSetting resolves engine.json's directory through outsideVendorTree and lstat-s and opens the file there, never the spelling again, so a directory link swapped after the check cannot redirect the read; a link at engine.json itself is still no second source. A test records that the open names the resolved path. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…override's capability failure takes §2.1's form - The vendor-selected engine row says what the home holds as facts (linuxHeldFacts), so the selection's sentence is its one remedy: no second installer, no cua engine build, whatever the home holds or the pin. - A capability failure of a CUA_LINUX_ENGINE_BIN engine reads 'unset CUA_LINUX_ENGINE_BIN, then run <installer> --engine'; the service's own sentence (N5) is unchanged. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…e a common blocker When a common lane fails under a vendor selection, the failed lane's error is still the install's, and the last line keeps the shared blocker and names the retired selection besides (§2.2). Tested under each vendor source with a fresh home's module tree down. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…one remedy On a capability read that fails as a session's start would, what the home holds is said as facts alone (linuxHeldFacts), and the row composes one remedy after the applicable prerequisite. Where the client's own sentence already names the installer (N5, unchanged), the row adds only the override's prerequisite, or the environment rows' note. A test counts the commands on the complete row across installed, local, missing, no pin and an unreadable pin, for an override and for the installed engine, with the client's sentence naming the installer and not. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…ngine setting When a common lane fails under a vendor selection, the last line's note on the retired engine is built from the known engine setting (retiredEngine), not a second selector call, so CUA_REPL_HOST=vendor's guard, which refuses a session first, no longer takes its place. The session's blocker and the failed lane's error are unchanged; the common-lane test covers each vendor source with and without CUA_REPL_HOST=vendor. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…d 0.30.0 has its name The version takes T1's 0.30.0 over main's 0.29.22 (#584); the coordinator allocates the final number at merge. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…eir own reads and writes out of it The report (pre-flight §3.1-3.3, ruling 1216). src/runtime/retired-tree.mjs names a vendor's Linux release only where the install record an older cua's install wrote there says it placed that release's archive (the two archives are the module's own constants, tied to the provenance records by test). It gives the path, the size by an lstat walk that follows nothing, and one sentence that claims only what the record shows and hands the person the two checks before deleting it by hand. A linked runtimes/ or release is neither followed nor named, and runtimes/ is never listed (N3). `cua install` prints the sentence after the engine's line and reports `retired`; doctor's `runtime.retired` row carries it as an informational `skip`, present only for a recorded release (N2), and the report lists it. The boundary (§3.4). Install's and doctor's own reads of the managed Node go through the guard launch's lookup uses (managed-node.mjs managedNodeIntoVendorTree, one helper for the three callers): a link into the tree is refused by install and named by doctor's runtime.node, nothing there read. The helper's installed file is read only once shown to lie outside the tree. Every acquiring lane (the module tree, the helper, Node, the engine, a local build's placing) refuses a staging/ that is a link before its first access (vendor-tree.mjs stagingOutsideVendorTree), and Node creates staging/ only when it acquires. The replay of the linked fixtures through the whole of doctor found one more read: the sandbox row resolved the home's own directories by their real paths, through a link into the tree; it now names such a link, as a launch's preflight does. The deb's code leaves install.mjs (its tools, its unpacking, the activate option), and Linux's leftovers scan looks inside no release (N4): no vendor pin is read on Linux by install or doctor. test/runtime-linux-install.test.mjs goes with its subject. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…home, each compared with its deb The differential harness and the gate still compare cua's engine with the vendor's builds, given by path, but no cua home holds the vendor's Linux release for them after M6b (the pre-flight's §4.4, F7). A development-only fixture takes its place: - scripts/linux-engine-diff/vendor-fixture.mjs checks a fixture directory (the release tree's tar, its tree list) against the repository's manifest, extracts the tar beside it on first use, and checks every extracted file against the list before every use. A mismatch refuses; nothing fetches. - scripts/linux-engine-gate/vendor-fixture-pin.mjs, the one-time tool: matches the deb to its pin through modules-pin.mjs's own matcher (now exported, with its ar reader), compares the deb's cua_node payload with the fixture's by names, types, link targets and bytes (cua's install.json alone set aside), checks the list against the tar, and only then writes that architecture's manifest entry. - scripts/linux-engine-gate/vendor-fixture.json: hashes only. Both fixtures equal their pinned debs' payloads: docs/evidence/2026-10-28-own-linux-engine/m6b/ fixture-identity.txt. No fixture byte is in the repository (ruling 1217, N7). - The harness's source checks know `tar` as a tool that reaches no display. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…pin; macOS's doctor never asks for the report The Linux install test now counts calls of the pins seam (at the base it read them, and passed through vendorPinsOf), and the macOS doctor test hands a report that fails if it is called. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
… builds from the fixture alone The pre-flight's §1.3 (finding 11) and §4.4: - R1 is repl-parity's native suite on the cua lane alone. Its verdict is its own (scripts/linux-engine-gate/parity-verdict.mjs): the run's exit status, the native suite's 34 cases complete and covered, both text cases positive, and the engine the home's cua-engine (or the named candidate) under the trusted worker behind cua's service. The cleanup runs whatever the verdict says, and a failed cleanup fails the part too. The vendor lane and the diff are gone from suites.sh. - R2 (compare --engines of a vendor lane and a cua lane) leaves the gate, and the baseline part leaves suites.sh with it; gate.mjs stops reading its lists. - gate.mjs takes the pinned vendor build and the vendor's client from the comparator fixture alone: --vendor-fixture, else this architecture's directory. defaultsFor takes no cua home, --vendor and --vendor-js are gone, and a step that runs either is refused unless the fixture checks; the step's record names what was checked. launch-plan.mjs's dry plan names the paths unchecked. - Tests: R1's verdict red for a failed lane with a clean cleanup (the negative control), 33 cases, a text case not positive, another engine under the worker, an engine no home installed, a clean lane with a failed cleanup; green only with all right. The stored M6a cua lane is the fixture (parity-run-fixture.mjs). Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…r judges of stored runs stay The pre-flight's §1.3 rows for repl-parity, native-baseline and the shared install sites (F6): - On Linux `--engine vendor` is refused by repl-parity (its selection, its native command, serve-native.mjs) and by native-baseline, each sentence naming cua 0.30.0 and where that lane's last runs are stored, which `repl-parity.mjs diff` and `native-baseline.mjs compare --engines` still judge. macOS's lanes are untouched. - checkEnginePair takes two kinds of pair: a stored pair with a vendor lane keeps today's checks, vendor releases included; a cua and cua pair needs one device, commit, controller commit, runtime and case set and each lane's engine evidence, takes no declarations and asks no vendor release. - engine-answered.mjs loses the vendor lane's expectation (and vendorLinuxRuntime); engineKind and serviceKind stay, so a sky_linux under the worker still fails a cua lane. - A Linux run records no vendor release (provenance.mjs, repl-parity.mjs), and the parity cache holds no vendor archive and passes no --archive on Linux. - The four shared install sites (remote-device.mjs, selection-device.mjs, native-baseline/prepare.mjs, capability-home.mjs) select the vendor engine on macOS only; on Linux the install names no engine, an ambient one included. - native-baseline's helper listing lists cua-engine by the run home's engine, and a sky_linux seen as foreign; probe/lib.mjs's socket step names cua-engine. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…d acceptance 12's vendor cells leave its driver - The fallback part's judges (linux-selection.mjs refusedSelectionProblem and refusedOpenProblem) now also require doctor's engine row and the serve's refusal to give `: run \`<installer> --engine\`` as their one remedy, and fail one that offers the vendor engine, `cua engine build`, cargo, or a second command. - Acceptance 12's driver loses its vendor cells (E4, E5, U4), the rollback fixture (linux-text.mjs --read-only), vendorEngineProblems and every vendorLinuxRuntime lookup: the vendor tree's boundary and the older cua's module base are read by plain lstat of the recorded release (recordedTree). T6 makes the driver acceptance 13's. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…dence stays (F8) scripts/sandbox-probe/linux-probes.mjs, #115 M0c's probes, had no caller and read the vendor runtime's codexCli and skyLinuxBin. It goes with its test. Its evidence stays where it is; tech-debt-tracker.md's #570 line is removed at close-out (T9). Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…ld comes from The comparator fixture's paragraph, and R2's unjudged list gone with R2. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…t build a flag gave it The first fixture runs showed the step's README command without --vendor-fixture and --newest, so it would not rerun the same step. A named one is now spelled out; the defaults are not. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…records, Node's order, the walk's bound, real dates 1. Doctor's sandbox row walks every path of the home it resolves by its real path through the guard first, before the deny list or the protected paths are normalized, in scoped and default alike: the five a launch's preflight refuses, state/, state/codex, remote/, chrome/ and run/ with the session directory. 2. The run/ sweep reads a session record only from a regular file, opened no-follow and non-blocking, to a bound: a linked *.pid is no record, and what it leads to is never opened. 3. On Linux a fresh Node lane refuses a linked staging/ before it creates node/ or staging/. The helper, the engine, the module tree and the local build already checked it before their first creation. 4. The retired tree's walk reads each directory's entries one at a time (opendir), so its bound stops the enumeration. 5. A record's installedAt must round-trip through toISOString, as the old writer produced it: 2026-02-30 is no date. The replay adds the six home paths, and a full install with every part missing leaves nothing of its own in the home. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…ack part, E1 and FB on the fixture alone R1 passes by its own verdict (34 of 34, both text cases positive, each case's home engine under the worker), the fallback part 5 of 5 under 1212's judges, and E1 and FB pass on the comparator fixture with no home's runtimes/ in reach; their file traces name no path under any runtimes/. docs/evidence/2026-10-28-own-linux-engine/m6b/t3/. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
… one directory On hosted macOS the release fixture's directories were listed in another order, and the end of each directory read before many/ pushed the count past 30. The release now holds its record and many/ alone, so the count is 22 on any filesystem. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…y spelling and on disk - remap.mjs leaves `//` only as jq's operator or a URL's authority (a scheme right before it), so `//opt/cua` is refused, and refuses any path with a `..` segment, which, prefixed with the root, could climb back out of it. - contained() walks the destination's existing components below the root with lstat and refuses a link, since cp follows one; the scp stub copies nothing through it. - Tests: pure string cases for both remap forms; a scratch-only case with links inside the root to a scratch directory outside it, as a directory on the way and as the file, refused with nothing written there. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…y; jq's // only in its quoted filter - contained() refuses a destination that is a directory (an existing one, or one spelled with a trailing slash): cp would add the source's name, a component no guard saw, and could write through a link there. update.sh always names the exact file. - A bare `//` is left only inside a single-quoted span (the scripts' jq filters); `ls //` is refused. - remap.mjs's header states its scope: this fixture's own scripts and their known shell syntax, not arbitrary shell. - Tests: a scratch-only regression where the source's basename under a destination directory is a link to an outside marker (refused, marker untouched), and `ls //` beside jq's `// empty` and `//=`. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
… bound to one commit by update.sh T5's head 0fe0327 was reviewed clean after three fix waves. The fake VM's guard was tightened to the scope ruled for it: the fixture's own scripts and their known shell syntax. ci-gate test-1,test-2,plugin,sandbox-live GREEN at the head (run 46043587458). Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…loud VM upgrades with update.sh README: on Linux cua install downloads no OpenAI package; CUA_NATIVE_ENGINE=vendor or an engine.json naming vendor is refused as engine_retired with one remedy, install --engine; an older cua's vendor tree is reported with its path and size (runtime.retired, informational) and never deleted; the vendor engine's deb, tools, rows and typing caveats are gone from the Linux sections; cua engine build stays in the engine section for people building from source. deploy/cloud-vm/README.md: no --deb, CUA_DEB or deb tools; update.sh and the old provisioners' fate. The cua-remote skill, CLAUDE.md, package.json and the plugin's descriptions say macOS's vendor runtime and Linux's own apart. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…erstated it The vendor selection is "in effect" (a valid variable wins over engine.json); browser-only sessions are not promised; the provisioner guard compares bytes, and the old provisioners' outcomes are stated once, in the cloud-vm README; the engine's refusal prerequisite for a link into the vendor tree, install's failed-step precedence, the size that may be unavailable, "M6a up to 0.30.0", the sessions' not loading or running the retired runtime, the M6a R1 citation and the prune-leftovers condition. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
… engine selection; engine_unrecorded and the old script's pin request are stated as they are Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…retired, and the cloud VM upgrades with update.sh T7's head 60022c5 was reviewed clean after two fix waves. ci-gate plugin,test-1 GREEN at the head (run 46051333002). Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…rries what it left The Decision Log records ruling 1218 (revision 2 accepted, its stop rules), C12's narrowing of 1216's sentence, and the calls tasks 166 to 172 and the controller made. Surprises & Discoveries gains M6b's observations. "Retirement (M6b)", the M6b plan entry, acceptance 13 (N2: no vendor row that checks a runtime; runtime.retired is an informational skip), the selection, facade-suite, Concrete Steps and Interfaces sentences M6b made false are rewritten as built at H = 3722f28. The tracker drops #570 (linux-probes.mjs is gone) and adds the first engine.json read, doctor's remote/device.json read and CUA_DEB_WAIT's name. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…ld at 34 by test Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…s it Selection and Interfaces give Linux's own default, launch variables and refusals, with the pre-M3 path in the past. Retirement's refusal is a vendor setting in effect that reaches the engine selector, the open's and the install's sentences apart; the boundary claim is limited to the managed paths, naming the two tracked reads. Concrete Steps keep the historical commands as they ran and add what runs at H. The build-log rules, the facade suites' case count, the Touches' CLI files and the tree size's attribution are stated as they are. The tracker gains accept-lib's tree-snapshot flake. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
… selection's refusal boundaries are stated The From M6b block points to the gate's E1, FB and R1 steps on a pinned run home (--pilot for a development run), in a fresh output root whose parity parent exists before the cua runs. Selection states that an invalid variable is refused without reading engine.json and that a set override is never replaced by the installed engine; the M6b summary qualifies install's ending. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…, as the gate prints them The From M6b block runs each of E1, FB and R1 by the lock-wrapped command gate.mjs --list prints (gate.mjs run takes no lock), holds the same lock across the install and the cua/cua sitting, says only E1's and FB's records carry vendor_fixture, and names the steps as the pre-flight does rather than asserting T8's runs. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…l passing on three legs At H = 3722f28 (plugin 0.30.0), the older cua at main 854103a: - E0 to E3 and U0 to U5 pass by the driver's own judge on x64 here, on hosted arm64 and on the hosted x64 control (run 46052854181). Every traced run used strace --seccomp-bpf, and each leg's traces.txt keeps its process-path witness beside its counts. - x64 regression, counted: R1's cua lane 34/34 with both text cases positive and a clean cleanup; R3 by default and with CUA_NATIVE_ENGINE=cua; R4; the fallback part 5/5. - The differential harness on the verified fixture alone, through gate.mjs --pinned: E1 and FB pass plain and traced, and 0 trace lines name a runtimes/ path. - ci-gate by its own selection is GREEN (46052942014), with test-1, test-2 and sandbox-live among the gates. ci-gate --gates engine-linux is GREEN (46056294731). - The credit check passes (credit.txt): each of the 33 files is assigned to a bridge row. The provenance proof was run again at H with the same bytes. - First answer, H minus the older cua: x64 -14 ms, arm64 +26 ms, hosted x64 +2 ms. The pilot's +55 on arm64 did not hold. Evidence only, under docs/evidence/2026-10-28-own-linux-engine/m6b/. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…heck against the commit, E3's row, chain.sh The review's three fixes, evidence only (H does not move): - The repository ignores *.log, so c9eb8cf left out the regression, chain and ci-gate logs the README links. They are committed as *.log.txt, scanned first (no token, auth line or secret value; nothing redacted). The first pass's setup-failure logs are added under x64/setup-fail-1/. - cites.mjs reads the README from a commit and checks each target in that commit's tree, never the working tree. Against c9eb8cf it reports the four missing links (cites-c9eb8cf79.txt, the negative control). - E3's row says what the driver did: open and doctor refused under all four selectors; one install, under CUA_NATIVE_ENGINE=vendor, refused after placing every part. - chain.sh builds xprobe in its default sequence, runs no regression or fixture phase without it, and exits nonzero when a phase fails or is skipped. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…targets, 0 missing from that commit's tree Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…ted arm64 and the hosted x64 control Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…3 with their witnesses; arm64's FB is in the evidence Progress ticks M6b. Outcomes gives what shipped, acceptance 13's counted result on x64, hosted arm64 and the hosted x64 control at H, what §5.3 cites, what is left, and one table of items 1 to 13, each with the head that counted it and a witness path that exists. Task 165's arm64 FB evidence is copied by path, byte for byte, from m6b-fb-arm64 (f18235d) into m6b/fb-arm64/, and T8's README gives its verdict. The standalone cua/cua sitting returns cleanup's status when both lanes pass, as suites.sh does. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
U3's tree equality is across its reinstall, R1's per-case binding is for its 20 native cases, items 6, 10 and 12 link H's reruns, the refusal is phase A's narrower rule, and the arm64 first answer is stated per run and baseline. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…files are not its commit's The desktop user owns /opt/cua, so an edit to a tracked file survives `git checkout --detach` and, when HEAD is already the commit, no checkout runs at all; update.sh then reported success after code other than the commit ran (finding 6 of the whole-branch review). Before the checkout moves, and so before npm ci and cua install, the provisioner now runs `git status --porcelain --untracked-files=no` as the user and refuses on any output, listing the paths and how to see them and set them aside; it discards nothing. An untracked file does not count. update.sh's success rests on this: the run's exit 0 and HEAD at C. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…review findings tracked; two Outcomes Minors The whole-branch review's findings 1 to 5 (a store's projects/ child, a default-mode kernel/, install's readiness, doctor's scoped check of a dangling link, the size walk's race) are tracker lines, each pre-existing behaviour the new guards don't cover or a rare race. "Retirement (M6b)"'s Reported names the paths the guards cover and points to the tracker; Outcomes' Left open does too. Outcomes: install, if it otherwise completed, ends engine_retired naming what to undo; U2's baseline is taken after the driver's fixture entries and before either install. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
A relocated runtimes/ lets a confined profile listing proceed past the secret-tier gap (finding 1). Launch's scoped preflight shares doctor's dangling-link gap (finding 4). Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
Summary
#171 M6b retires OpenAI's Linux package from cua. With this release, cua 0.30.0, nothing of the vendor's Linux package is fetched, placed, pinned or selectable on Linux.
cua installinstalls cua's own runtime and engine and downloads no ChatGPT deb.--archiveand--releaseare usage errors on Linux.<home>/runtimes/26.928.40906-linux-<arch>, about 211 MB) is reported and left in place. cua never deletes it; an opt-in removal is cua install on Linux: an opt-in removal of the retired vendor tree that cua placed #586.retired.runtime.retiredrow (skip), and only when a cua install's own record shows that cua placed it.CUA_NATIVE_ENGINE=vendor, or"engine": "vendor"inengine.json, is refused asengine_retiredonce a session reaches engine selection.node <this checkout>/bin/cua.mjs install --engine.cua engine buildor the vendor's engine.runtime/provenance/. They are trimmed, kept out of the npm package, and only the pin-time toolscripts/modules-pin.mjsreads them. A test holds that nothing install, doctor or launch reaches can read them.deploy/cloud-vm/update.sh.scripts/sandbox-probe/linux-probes.mjsis deleted.It was built to the M6b pre-flight (
docs/doperpowers/specs/2026-10-28-own-linux-engine-m6b-preflight.md, ruling 1218) in seven tasks, each reviewed clean. The head was frozen at H = 3722f28, and acceptance 13 was counted there on three legs. The spec,docs/doperpowers/specs/2026-10-28-own-linux-engine-design.md, is folded: "Retirement (M6b)", the Decision Log, Surprises & Discoveries, Progress, and an Outcomes entry with a table of acceptance items 1 to 13 and their witnesses.Closes #570
Closes #589
Refs #171 #586 #574
macOS-visible changes
The list was checked against
git diff origin/main...HEAD. origin/main is e54eab4, which this branch contains: 78 files outsidedocs/evidence/andtest/.cua installof the pinned release,cua doctor's rows, the engine selection, thejstool's rules and the vendor host behave as on main.test/runtime-launch.test.mjs,runtime-install.test.mjs,runtime-doctor.test.mjs,doctor-engine.test.mjsandcli.test.mjspass unchanged. They run intest-1andtest-2on hosted macOS, GREEN at H (46052942014) and at this head (below)..claude-plugin/plugin.jsonandmarketplace.jsongo to 0.30.0, a minor bump.package.json's description andCLAUDE.mdnow say the vendor runtime is macOS's.usageFor('darwin')gives 70 lines on both. I compared it against a clean checkout of 854103a, since e54eab4 changes no file it depends on. Only the Linux usage text changed.CUA_REPL_HOST=vendorrollback are unchanged.src/runtime/install.mjs). It loses only the deb's branches and theactivate/toolsoptions, which only Linux passed.installRuntimeis macOS's zip install and always activates, as macOS's calls already asked. The new staging and helper guards are in Linux-only lanes.node-install.mjsguards onhost.platform === 'linux'and keeps macOS's up-frontstaging/.src/runtime/doctor.mjs,checks.mjs).runtime.retiredandreport.retiredexist on Linux only.src/runtime/launch.mjs,src/mcp/connection.mjs,src/profiles/inventory.mjs). The run-directory guard and the guarded deny list run only on Linux:if (linux)at launch.mjs L301–305, and ahost.platform === 'linux'or manifest platform check in the other two. macOS keepsrealDenyListandnativeEngineFor's darwin branch as on main.src/runtime/run-dir.mjs). It is shared by doctor and serve on both platforms, and it is the one shared behaviour that changed./^[1-9][0-9]*\n$/). A linked or partial*.pidis left alone as unowned and never acted on.${pid}\n, so a normal macOS home sees no difference.src/runtime/manifest.mjs).parsePinkeeps the darwin schema and returns the same object for the darwin pin.loadPinsfinds no Linux file to load.selectPinreturns the same darwin pin.installHint()andrecoveryHint()lost a platform parameter, and their macOS text is the same.src/mcp/surface.mjs). macOS's two rule sets are unchanged.selectPin'sunsupported_platformfor a host with no pin interpolates "pinned runtimes exist only for …", andfindPin'sunknown_releasehint interpolates "pinned releases: …" (src/runtime/manifest.mjsL188–190, L197). Both now list the darwin pin alone, without the two Linux releases.--debis gone.deploy/cloud-vm/render.shandcreate-hetzner.sh, which an operator runs from a Mac, refuse--debwith one sentence and exit 2 (render.shL29,create-hetzner.shL28). A Mac operator's template commands that passed--debstop there.deploy/cloud-vm/update.shis new, and it runs from the operator's Mac. It was fixed for macOS's bash 3.2, which test-1 caught on hosted macOS.The homes that selected
vendorNo home is known to select the vendor engine on Linux: the soak's record says none needed it. dc-linux171-1e68's
~/.config/cua/holds onlydevices.json. A home that still does meets the following once a session reaches engine selection:engine_retired. For the variable the sentence reads: "CUA_NATIVE_ENGINE=vendor selects the vendor's engine, which cua 0.30.0 removed from Linux, where cua's own engine (CUA_NATIVE_ENGINE=cua, the default) is the only one: unset CUA_NATIVE_ENGINE, then runnode <checkout>/bin/cua.mjs install --engine".engine.jsonthe instruction is to remove"engine"from it.cua installruns every step under the setting. If the install otherwise completed, it exits nonzeroengine_retiredwith "…unset CUA_NATIVE_ENGINE; the install otherwise completed". A step that failed is reported first.repl.hostandenginerows fail with the same sentence.E3 checked all of this on three legs (below).
What install and doctor report now
arandxznever run. Step 8 is the Codex CLI leftovers, instate/codexonly.--jsongivesretired: [{release, path, bytes, installedAt, source}]:runtime.vendorrow. A recorded release addsruntime.retired, askipcarrying the same sentence, andreport.retired. Nothing is named for a tree without a valid record (U4, U5).staging/keep out of the retired tree, as launch does. So do launch's deny-list roots in the home and a connection'srun/(Linux session launch: the sandbox deny list resolves home paths through a link before refusing it #589), and doctor's sandbox row resolves those roots by the same guard. The guards cover these paths only. What lies past them is tracked intech-debt-tracker.md: two pre-existing reads (engine.json's first read, doctor'sremote/device.jsonread) and the whole-branch review's findings 1 to 5 (Unresolved Review Findings, below).The cloud template: upgrading a VM
The upgrade command, run from the operator's checkout:
It resolves the ref once to a commit, checks that the VM's source can give that commit, and installs that commit's provisioner. It then sets
CUA_REFto the commit, runs the provisioner, and requires the checkout'sHEADto be that commit.A checkout with local edits is refused (the whole-branch review's finding 6). The desktop user owns
/opt/cua, so an edit to a tracked file could survivegit checkout --detach, and whenHEADwas already the commit no checkout ran at all.update.shthen reported success after running code that differed from the commit.npm ciandcua install, the provisioner runsgit status --porcelain --untracked-files=noas the desktop user (cua-provision.shL308–319).git -C /opt/cua status,git diff HEAD) and how to set them aside (git stash push), and discards nothing. An untracked file doesn't count.update.sh's success rests on that check: the run's exit 0 andHEADat the commit together mean the commit's own files ran.update.shat the same commit, which now exits 1.The repair at the same commit stays
ssh root@<vm> /usr/local/sbin/cua-provision.sh.The provisioner fetches no deb. A conf that still sets a nonempty
CUA_DEBgets one log line. It provisions only refs from 0.30.0 on, and runs only as its own checkout's provisioner.From cua 0.30.0, a template must be rendered from the ref it provisions (N6).
An older provisioner on a 0.30.0 checkout meets two sentences that name
update.sh:selectPin'sunsupported_platform, and install's--archiveusage error.#589, folded in
#589 is launch's deny list following home-path links into the retired tree. It was folded into T4, with the coordinator's leave, by reusing T2's guard.
run/is guarded before a session is claimed, inconnection.mjsandinventory.mjs.state/,remote/,chrome/,run/, and the secret store and project tier where they lie in the home) are resolved by the guard's own walk beforedenyListFordiscovers anything.layout_invalidforrun/,sandbox_conflictfor the others. Doctor's sandbox row says the same.test/runtime-linux-no-vendor-read.test.mjs.Validation Evidence
The evidence is under
docs/evidence/2026-10-28-own-linux-engine/m6b/, with the README atm6b/README.md. H = 3722f28; the older cua is 854103a.scripts/accept/linux-runtime.mjsinsidelinux-runtime-env.sh,--phases E,U). E0–E3 and U0–U5 pass, 10 of 10, on each leg, each{pass, scope: full, acceptance: true}:locked.sh t173, 18:58–19:17Z (m6b/x64/runtime.json).ubuntu-24.04-arm, run https://github.com/SSFSKIM/cua/actions/runs/46052854181 (m6b/arm64/runtime.json).m6b/x64-hosted/runtime.json).strace -f --seccomp-bpf, and the process-path witness intraces.txt.suites.sh(m6b/x64/regression/):cua-engine, andcleanup exit 0(logs/r1.log.txt).CUA_NATIVE_ENGINE=cua12 of 12.2e620986…5914and its list7886c5dc…b54f. Thengate.mjs run <step> --pinned <home> --vendor-fixture … --newest …ran each step (m6b/x64/fixture/):runtimes/path: 0 of 225,615 lines and 0 of 160,247.m6b/fb-arm64/):VERDICT: every step passes, thenacceptance on the pinned release: FB exit 0, 10 of 10. The facade and host are tied to H by the credit check.ci-gateat H, by its own selection: GREEN, https://github.com/SSFSKIM/cua/actions/runs/46052942014. The gates were harness-dbus, plugin, sandbox-live, engine-swift, parity-browser, test-1, test-2 and sandbox-denials (m6b/ci-gate-default.log.txt).ci-gate --gates engine-linuxat H: GREEN, https://github.com/SSFSKIM/cua/actions/runs/46056294731 (m6b/ci-gate-engine-linux.log.txt).ci-gateat 00dc5b4, by its own selection (the head after the final fix; 76bced0 on top only corrects two tracker lines): https://github.com/SSFSKIM/cua/actions/runs/46072228763. harness-dbus, plugin, sandbox-live, engine-swift, test-1, test-2 and sandbox-denials PASS. parity-browser failed on two CDPRuntime.evaluatetimeouts, one locator cell in each host lane (vendorapi/browser-playwrightlocator/click, cuaapi/browser-playwrightlocator/getattribute). These are the racy parity cells the repository's CLAUDE.md names, in code this head doesn't touch. Rerun alone at the same commit, parity-browser was GREEN: https://github.com/SSFSKIM/cua/actions/runs/46075275586. The previous head, 48a1185, was GREEN on every gate: https://github.com/SSFSKIM/cua/actions/runs/46067618385.git diff --stat 3722f2826 00dc5b43d -- . ':!docs'lists onlydeploy/cloud-vm/README.md,deploy/cloud-vm/cua-provision.sh,deploy/cloud-vm/update.sh,test/deploy-cloud-vm.test.mjsandtech-debt-tracker.md. The provisioner and update.sh run only on a cloud VM, and their test only on the fake VM. No counted cell, regression step or fixture step runs them: the cells run cua's CLI, serve and engine on a home. The rest is docs: the spec's Outcomes Minors and boundary sentence, and the tracker. So nothing any cell reaches differs from H.m6b/credit.txt) ends "# Credit: PASS":git diff --stat linux-engine-v0.4.5 H -- native/linux-engineprints nothing;gh release view linux-engine-v0.4.5's asset digests;docs/cua-apifrom 854103a to H is empty;m6b/provenance.txt).scripts/modules-pin.mjson both real debs givesprovenance.json's bytes (9f18d46c…), andgit diff --exit-codeprints nothing, at T4's head and again at H.install.jsonset aside (m6b/fixture-identity.txt).repl-parity.mjs diffon M6a's x64 R1 and M5's x64 and arm64 R1: each"ok": true, with 3 declarations;native-baseline.mjs compare --engineson M5's x64 R2:VERDICT: PASS;Unresolved Review Findings
Each row below was a Minor or deferred finding, and none of them is fixed in this PR. The whole-branch review's (reviewer-high, e54eab4..48a1185, 2026-11-27) six findings were P2s. Finding 6 is fixed (the cloud template, above); findings 1 to 5 follow, each pre-existing behaviour the new guards don't cover or a rare race.
PromiseRejectionHandledWarnings in the suites' outputnpm testoutputremote/device.jsonthrough a link into the treesrc/runtime/doctor.mjsL417 →src/remote/device.mjsL51–53goldens-device.test.mjsL722's/999/matches a random UUID, about 1 run in 300test/native-matrix/goldens-device.test.mjs$varthat could expand to..at run timetest/fixtures/cloud-vm/remap.mjsrender.shdoesn't check that the script it embeds is the one at--refdeploy/cloud-vm/render.shupdate.shis the fixupdate.shleavesCUA_DEBin the confdeploy/cloud-vm/update.shCUA_DEB_WAITkeeps a deb-era namedeploy/cloud-vm/cua-provision.shL10, L86, L279–280projects/child:denyListForlists aprojects/that links into the retired release beforelinuxDenyListrefuses itsrc/runtime/launch.mjsL302–305;src/sandbox/policy.mjsL51–52, L111–113runtimes/itself links to another volume, the tier's physical path takeslinuxDenyList's unguardedrealishbranch and a confined profile listing can proceed. Tracker linecreateLaunchDirsmakes<session>/tmpunder akernel/that links into an old release; the new guard checksrun/onlysrc/runtime/launch.mjsL301, L378–383kernel/predates M6b, and no cua layout makes that link. Tracker lineremote/orrun/linked into the retired tree it says sessions opensrc/runtime/linux-install.mjsL187–192layout_invalidorsandbox_conflict) in a sentence naming the link and the remedy. Tracker linelead: a dangling link whose missing component is followed by../runtimes/…reachesrealish, which collapses it lexically, and when that target overlaps no session write root (astaging/link, say) neither reports a conflictsrc/runtime/doctor.mjsL346–352; launch'sassertHomeRootsOutsideVendorTree;src/runtime/sandbox.mjsL66treeBytesopens a queued directory by name after itslstat, so a directory swapped for a link mid-walk can misattribute bytessrc/runtime/retired-tree.mjsL86–105T6's last re-review approved with no findings open.
Residue
engine.jsonfollows a link, reads whole, and can wait on a FIFO. Only the second look, for a vendor selection's sentence, is bounded. It is tracked intech-debt-tracker.md, and macOS shares the read.remote/device.jsonread can follow a linkedremote/into a retired tree. It is pre-existing and tracked.CUA_DEB_WAITnames the uploaded bundle's wait. It is tracked; rename it, keeping a fallback for old confs.step.jsonnames the lock by$HOME/.local/share/cua-171/locked.sh. That path is wrong under a scratchHOME, though the step ran under the real lock. It is cosmetic (T8's discovery).Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)