Record update-triggered object collection

This commit is contained in:
Archipelago 2026-11-18 10:19:05 +00:00
parent 50029a9ccb
commit 5ad4e698c2

View file

@ -2,6 +2,26 @@
Updated 2026-11-17. Architectural acceptance is separate from implementation.
## Automatic object collection after a successful Stage (2026-11-18)
OS updates and overlay/Host-Extension stages no longer need a separate cleanup
command to release superseded objects. The last step of the transaction calls the
same object-only collector while it still holds the shared sysroot lock. That call
is allowed to observe the pending deployment it has just written (D-120); the
pending commit, its Core/Purpose/base layers, overlay inputs, extension base and
active plan targets remain in the protected graph, while stale
`archipelago/keep/*` and `service/bases|overlays|overlay-builds` refs are expired
and `ostree prune --refs-only` runs.
The Stage/apply result now carries `cleanup` (`state: completed` with the byte
record, or `state: skipped` with the error). Collection is best-effort relative to
the update: a completed deployment stays successful even if pruning cannot run.
Manual `cleanup apply` and the boot/weekly timer remain fail-closed and still
refuse a pending deployment. CLI `archipelago update apply` prints the freed
bytes; the D-Bus transaction records the same result effect. System tests
(44 unit + 5 onboarding) cover the guard split; no image has been rebuilt with
this change yet.
## Version-independent Discover adapter (2026-11-17)
The ISO cycle `20261117T101510Z` failed at `building-discover-adapter`. The