Repository navigation
Description
Problem
Provider apps can never be uninstalled or purged.
core/src/app_manager.rs:540-542setsslot.provider_dependencies_unknownon every activation of an app whose manifest declares providers. Nothing incore/srcclears it; only tests reset it (core/tests/private/app_manager/lifecycle.rs:1595-1598).Manager::remove()andManager::purge()returnResourceBusywhile the flag is set (core/src/app_manager/removal.rs:13-18,:65-70), before they ask the platform whether the generation is removable. A boot that resumes Removing/Purging hits the same check.- The control CLI (
core/src/app_manager/control.rs) has no command to clear the flag. The only way out today is editing the root journal by hand. - Monitoring (
providers: ["monitoring"]) is the first app affected.
A second gap sits behind the first: legacy handoffs are aborted only from the removable handler (web/src/server/AppRuntime/lifecycle.server.ts:397-398), not when a generation is revoked (:433-474). An exported handoff keeps platform writers for that domain fenced (web/src/server/LegacyHandoff/journal.server.ts:90-94). Restarting the app resumes or aborts the export, but if the app stays stopped or keeps crashing, nothing an admin can trigger releases the domain, because uninstall is blocked before it reaches the abort.
Proposal
- Replace the one-way flag with a dependency answer from the platform at removal time:
/internal/v1/app-generations/removablereports open handoffs and provider dependencies for the installation. - Uninstalling an app with an uncommitted (
exported) handoff aborts the handoff and returns the domain to the built-in feature. - Uninstalling after a committed handoff requires an explicit Owner confirmation that names what stops working.
- Add an Owner action that aborts a stuck
exportedhandoff while the app is stopped. - Migrate journals that already carry the flag.
Decision (2026-12-01)
After a committed handoff, uninstalling the provider app needs an explicit Owner confirmation. The feature then stays off; the built-in feature is not re-enabled. The app's data stays until purge, so reinstalling the app restores it.
Acceptance
- Integration test: install a provider app, start it, begin a handoff, uninstall without touching the flag: the app is removed and the domain is back with the platform.
- Test for the committed case with and without confirmation.
Related: #454 (provider registration).
Found in the app platform audit of 2026-11-30.
Activity