Repository navigation
Description
Why this is open. M6b retires the vendor's Linux engine. Each home that ran it keeps the vendor release tree it placed (about 211 MB, <CUA_HOME>/runtimes/26.928.40906-linux-<arch>). By ruling 1216, M6b only reports that tree: cua install and doctor name it when its install record says cua placed it, with its path and size, and the person deletes it by hand. An automatic removal was dropped from M6b because its pre-flight review found three P1s. This ticket is the opt-in removal, should anyone want it, and those three are its requirements.
Requirements (each from the M6b pre-flight review):
- Prove ownership of the exact tree, not just the record.
- The old installer's
install.jsonrecords the archive's hash, not the extracted files or the directory's identity. A genuine install with a user's file added below it passes a record check, and so does a foreign tree with a copied record. - Derive a trusted per-file inventory of each historical payload at pin time, covering names, types, link targets and digests. Delete only a tree that matches it exactly, with nothing extra and no nested mount.
- Leave any ambiguous tree and report it; never accept weaker proof.
- The old installer's
- Make the protocol safe under retry and concurrency.
- A tombstone name and a copyable record don't prove an earlier step ran.
- Specify exclusive ownership of the cleanup, no-replace moves, and anchored no-follow traversal that doesn't cross mounts.
- Bind the recovery record to the tree's identity, so a rollback can never overwrite an intervening directory.
- Test concurrent installs, a foreign tombstone, descendants changed mid-removal, and an interruption after the last record unlink.
- Never remove a runtime still in use.
- Gate the removal on a successful install of cua's own runtime and the pointer's move to it. On a failed upgrade the pointer keeps naming the vendor release (linux-install.mjs's pointer step), and deleting the tree then would leave neither the old nor the new checkout working.
- Defer the removal on any evidence of legacy use. A rename doesn't stop a running pre-Independence 2: cua's own sandbox for node_repl cells; drop the Codex binary and app-server #115 host (Vendor node_repl on Linux runs cells unconfined when the sandbox launcher fails after preflight #135's hazard), so require, as codex-leftovers.mjs does for the Codex CLI prune, that every user of a shared home is upgraded first.
- Test a direct pre-M6a upgrade with a failed common part.
Done when: cua install --remove-retired-vendor (or a doctor-named command) removes such a tree only under 1–3, and otherwise leaves it and says why, with the tests above. The default stays report-only.
Activity
#171 M6b: the opt-in removal is #586 (Decision Log)
#171 M6b: merge feat/171-m6b's Decision Log entries (1216, #586) into…
#171 M6b pre-flight, revision 1: the vendor tree is reported, not rem…
#171 M6b: retire the vendor's Linux package (cua 0.30.0) (#594)