## Summary Install, upgrade, and uninstall must be safe to repeat and must never touch cloud resources. ## Requirements - **REQ-LIFE-001** Install MUST create plugin tables with Cacti's tracked table API and register hooks and realms. - **REQ-LIFE-002** Upgrade MUST run each migration once, in order, and record the new version only after every migration succeeds. - **REQ-LIFE-003** A repeated or interrupted upgrade MUST leave the schema usable and complete on the next run. - **REQ-LIFE-004** Disable MUST stop collection without deleting data. - **REQ-LIFE-005** Uninstall MUST ask before dropping plugin tables or deleting plugin-created devices. - **REQ-LIFE-006** No lifecycle step MAY call a provider API. ## Acceptance criteria - [ ] Fresh install and upgrade from each prior schema at 1.2.31 and current 1.2.x. - [ ] Upgrade interrupted after each migration completes on rerun. ## References - [Plan: Storage, jobs, upgrades, and recovery](https://github.com/somethingwithproof/plugin_cloud/blob/main/docs/PLAN.md#storage-jobs-upgrades-and-recovery) ## Dependencies - Part of #2.
Activity