>_TERNUXARM64 / ON-DEVICE LINUX
MENU
HomeDocsADR-0002: Explicit guest and data ownership
TERNUX · DOCUMENTATION

ADR-0002: Explicit guest and data ownership

Separate guest lifecycle from user models, Android files, and unrelated Termux data.

ADR-0002: Explicit guest and data ownership

  • Status: Accepted for Next Version design; owner-scoped cleanup foundations exist, while the complete owner-ID registry and legacy reconciliation path remain pending.
  • Date: 2026-11-13.
  • Decision owners: Ternux project owner.

Context

Uninstall and repair must not erase data that the manager did not create or that belongs to a separately selected workload or Android user directory.

Decision

Every managed file, guest, runtime pack, model copy, and storage grant has an owner ID and lifecycle record. Default guest uninstall removes only the selected rootfs and its explicitly Ternux-owned guest state. Models and shared media require a separate user selection. When Termux already has Android shared-storage permission, /sdcard is mounted into guests by default; it is external user data and is never treated as guest-owned or removed on uninstall. Additional directory grants remain explicit and revocable.

Consequences

The registry and uninstall UI must enumerate ownership and disk use. Legacy untracked files need a report/reconciliation path; they cannot be silently classified as disposable.