3.4 KiB
3.4 KiB
Status: linux-system-updater
- Gate 1 — Spec & Product: APPROVED 2026-10-02
- Gate 2 — Architecture: APPROVED 2026-10-02
- Gate 3 — Program Design: APPROVED 2026-10-02
- Gate 4 — Slice Plan: APPROVED 2026-10-02
Slices
- Slice 1 — tracer bullet: minimal end-to-end wire (CLI + detector + tests)
- Slice 2 — pre-flight health & auto-remediation engine
- Slice 3 — package managers (apt, dnf, pacman) & routine updates
- Slice 4 — major release upgrade & configuration engine
- Slice 5 — packaging & distribution (.tar.gz, .deb, .rpm)
- Slice 6 — documentation (man page, README, user/admin/developer guides)
- Slice 7 — safety guardrails: root privilege check on mutating commands & singleton concurrency flock
- Slice 8 — upgrade dependency auto-installation (ELevate/Leapp/dnf-plugins-core) & container test suites (AlmaLinux 9, Arch Linux)
v2.0.0 Slices (Enterprise Modernization)
- Slice 9 — Shell tab completion: static Bash & Zsh completions, generator command
linux-updater completion [bash|zsh], and package deployment - Slice 10 — Package filtering & Security-only updates:
--exclude(patterns/pins) and--securityflag across apt, dnf, pacman - Slice 11 — Pre-flight package DB consistency:
check_package_dbhealth check with automated transaction repair (dpkg --configure -a) - Slice 12 — Flatpak support & Logrotate: optional
--flatpakpost-update trigger and/etc/logrotate.d/linux-updaterconfiguration - Slice 13 — Version bump to 2.0.0, documentation update (guides, man page Section 8), and package rebuild (.deb, .rpm, .tar.gz)
Notes for a fresh session
- Project: Multi-distribution Linux system updater in Python.
- Process: Software Factory 4-gate workflow.
- All 4 Gates APPROVED on 2026-10-02. Slices 1–8 fully implemented, tested, and verified.
- Scope: Debian/Ubuntu, RHEL 8/9/Fedora/CentOS/Rocky/AlmaLinux, Arch Linux. Pre-flight health checks with auto-remediation. Routine update + major release-upgrade. Selective package updates (--packages) + target release upgrade (--target-release). Pure Python standard library (compatible with Python >= 3.6). Packaging for .tar.gz, .deb, and .rpm. MAN page (Section 8) + user, admin, developer documentation.
- Safety: Root privilege checks on mutating operations (
update,release-upgrade,clean), while non-root is allowed for inspection (health,check,--dry-run). Advisory flock singleton lock (/var/run/linux-updater.pidwith fallback to/tmp/linux-updater-<uid>.pid). Automatic dependency management for major upgrades (ELevateleapp-upgradeon AlmaLinux/Rocky,dnf-plugins-coreon Fedora) with clear English error reporting and troubleshooting guidance. - Test suites: 47 local unit tests pass (100%). Podman container integration test suite (
tests/containers/run_tests.sh) successfully verified across Debian 12, Ubuntu 22.04, Fedora 40, AlmaLinux 8, AlmaLinux 9, and Arch Linux. - Physical VM Testbed: 100% verified across 5 full Proxmox VE KVM virtual machines (
alma-crash,arch-crash,debian-crash,fedora-crash,ubuntu-crash). All targets completed package installation (.deb, .rpm, .tar.gz), pre-flight health checks, live system updates, physical KVM reboots, post-reboot health verification, and clean rollback to baseline snapshots. - Gitea Repository:
https://gitea.wired.synology.me/soda64/linux-updater.giton branchmain.