5.1 KiB
Package-action implementation plan
Status: Accepted — D-069, 2026-11-04. Approved phased plan for RFC-0011; no public-release authorization or claim that current adapters satisfy it. Exact desktop manifests and supported snapshot transitions remain to be agreed.
Existing implementation
Experimental Core boot/install/onboarding/overlay/nano passed VM tests; the user reported successful manual testing. Repository-backed extensions are under test. Current adapters capture Core hook hashes and inspect incoming actions; failure detection partly uses log text. This is not complete version-aware action coverage or proven KDE/GNOME setup/session support.
Responsibilities
| Component | Work |
|---|---|
contracts |
Rust types/schemas: ActionInventory, PackageActionPolicy, CoverageReport, ActionResult; canonical identities |
builder |
Archive/root inventory, libalpm transaction adapter, build actions and ledger |
composer |
Finalizer DAG, output ownership, deterministic regeneration and coverage gate |
system |
Runtime units, extension/update integration, deployment/boot-bound results |
installer |
Deployment/boot actions and native/terminal provisioning adapters |
cli |
Hooks commands, shared JSON/errors, progress and diagnostics |
manifests |
Exact Core/KDE/GNOME packages, runtime expectations and policy references |
registry |
Policies and attestations bound to release/input identities |
test-lab |
Isolated fixtures, transition/failure matrix and desktop VM tests |
Rust is primary; shell helpers may remain explicit pinned snapshot adapters. Do not create a second Bash policy engine, dependency solver or hook-trigger implementation.
P0 — Freeze the minimum sets
Review explicit Core/KDE/GNOME manifests, DM/onboarding/session and essential integrations. Resolve runtime/build closures, versions/checksums and providers against one snapshot. Output approved manifests, locks and functional profiles. Gate: no mutable group membership or omission of essential actions.
P1 — Inventory without execution
Implement archive + transaction-root inspection, .INSTALL functions, hook
precedence/overrides, helpers/conditions and explicit no-action entries. Dynamic
behavior remains reviewed, not inferred by running unclassified scripts.
Tests: missing archives, unsafe paths, shadowed hooks, helper drift and new hooks
affecting old files. Gate: deterministic accounting of every selected package.
P2 — Policy and coverage engine
Implement Rust schemas/validation and hooks explain/validate/coverage. Check
phase/DAG/output contracts, timeout/network rules, mandatory flags and inapplicable
predicates. Tests: unknown/stale inputs, wrong snapshot, historical migrations,
mixed-phase functions and suppressed hooks without replacements.
Gate: unresolved mandatory actions cannot report success.
P3 — Ledger and Core adapters
Integrate native libalpm ordering/NeedsTargets with actual action outcomes and output validation. Pacman exit zero cannot override failed ledger entries. Verify Core kernel/depmod/mkinitcpio, linker/locale/trust, hwdb/catalog, sysusers/tmpfiles, service lifecycle, keyring and machine identity actions. Explicitly adapt mixed-phase scripts; finalize the complete composition offline and record generated ownership. Gate: Core fresh/transition tests and injected PostTransaction failure; no effects on live host services, package DB, ESP or persistent state.
P4 — GNOME and KDE
Inspect the additional complete closures: schema/GIO/GdkPixbuf, MIME/desktop/icons/ fonts, trust, accounts/permissions and service defaults. Share common adapters; DM/session/onboarding stays Purpose-specific. Resolve required persistence/UID/ output-placement behavior before enabling release gates. VM tests: clean installation, native setup or explicitly agreed adapter, real graphical login/session, declared services, reboot without repeated setup, preserved administrator choices, and inherited Core overlay/extension gates. Gate: Core+GNOME and Core+KDE independently pass coverage and functionality.
P5 — Transitions and local composition
Compare snapshot inventories; source/helper/trigger changes invalidate affected evidence. Test upgrade branches, full-set extension reapplication, recomposition removal, atomic staged replacement, rollback and runtime retries/ID/data retention. Gate: required failure preserves booted/pending/rollback and retained local inputs; no automatic partial fallback, stale global success marker or live mutation.
P6 — Infrastructure maintenance gate
Docker/cron invokes the same CLI; publisher verifies coverage/tests bound to the exact lock/policy. Unknown new actions leave a failed private run and the old public release pointer. Retain policy history and diagnostics identifying source/adapter owners. Test that a historical lock restores its exact policy/evidence.
Completion
All three approved minimum profiles have zero unresolved mandatory actions, passing action/full-system tests and supported snapshot transition coverage. Reproducibility and other public gates remain separate. Optional external packages cannot substitute for completing Core/KDE/GNOME support.