Skip to content

cua install on Linux: an opt-in removal of the retired vendor tree that cua placed #586

Backlog

Description

@SSFSKIM

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):

  1. Prove ownership of the exact tree, not just the record.
    • The old installer's install.json records 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.
  2. 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.
  3. Never remove a runtime still in use.

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.

Relates #171 (M6b; ruling 1216), #135, #115.

Activity

  1. added
    enhancement
    status:ready-for-architect
    priority:P3
    on Nov 24, 2026
  2. added 4 commits that reference this issue on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpriority:P3status:ready-for-architect

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions