How the CLI verifies a completed package operation
Reading the actual head after refresh and utility installation. Verifying the exact approval, predecessor and current versions without writes, including empty plans and pending-state refusal.
Before its next package action, an automated wizard needs an exact reference to the previous result. An installation-complete message is insufficient: it must read the current immutable journal record and match it to the approved plan. We added a separate read command for that boundary.
What the command reads
Each package-history record is stored as an immutable object, a capsule. Its reference contains a SHA256 digest and exact byte size. We call the current record the head. The new reader returns the actual server reference after checking the original approval and predecessor. It installs no packages and creates no new history.
We tested on a fresh isolated Debian 13 VM. Initial image preparation, kernel installation and one controlled reboot produced new independent serial-console evidence. We then created the administrator and closed root SSH. All new reads used the selected administrator key, password-required sudo and a current-boot check.
Reading after index refresh
After the separately approved index refresh, we read its completion using the original plan and retained predecessor. Variables below represent private files and fingerprints already retained by the operator:
deploy-cli host packages continue head-read \
--env-file "$ADMIN_ENV" \
--request-file "$CURRENT_REQUEST" \
--plan-file "$REFRESH_PLAN" \
--plan-sha256 "$REFRESH_PLAN_SHA256" \
--predecessor-sha256 "$PREDECESSOR_SHA256" \
--predecessor-size "$PREDECESSOR_BYTES"
The fixture returned success without writes. This example replaces only the immutable object’s SHA256 value; the byte size and other fields match the saved response:
{
"schema_version": 1,
"status": "passed",
"write_performed": false,
"head": {
"capsule": {
"sha256": "<CAPSULE_SHA256>",
"size": 2264
},
"advanced": true
}
}
advanced: true means the head advanced to the record for this exact approved operation. The read used one administrator SSH connection. An independent journal observation also confirmed the actual reference and its byte size.
Utility installation has its own approval
We next approved and executed base-utility installation once. Its plan contained 19 new signed archives and replaced no installed packages. Verification now requires the installation plan, the predecessor produced by refresh and the complete original name selection.
deploy-cli host packages continue head-read \
--env-file "$ADMIN_ENV" \
--request-file "$CURRENT_REQUEST" \
--plan-file "$INSTALL_PLAN" \
--plan-sha256 "$INSTALL_PLAN_SHA256" \
--predecessor-sha256 "$PREDECESSOR_SHA256" \
--predecessor-size "$PREDECESSOR_BYTES" \
--package acl --package ca-certificates --package curl \
--package gnupg --package gpgv --package nftables \
--package openssl --package python3 --package python3-apt \
--package sudo --package wireguard-tools
The reader matches the approved action, predecessor, current package state and installed versions under the original APT locks. After installation, the fixture journal contained four records and the returned head matched an independent observation. This read also used one administrator SSH connection without writes.
When no installation is needed
After installation, we prepared another plan for the same names. Its change list was empty. Reading this plan confirmed the current versions and retained the same head reference. The object digest is redacted below:
{
"schema_version": 1,
"status": "passed",
"write_performed": false,
"head": {
"capsule": {
"sha256": "<CURRENT_CAPSULE_SHA256>",
"size": 2265
},
"advanced": false
}
}
advanced: false confirms that no new package record is needed. It proves current satisfaction of the empty plan, rather than a separate earlier invocation of a no-change installer. That invocation creates no record; the workflow retains its own invocation receipt where needed.
Refusal preserves the journal
We separately introduced a controlled pending record on the fixture. The reader refused with this response:
{
"schema_version": 1,
"status": "failed",
"write_performed": false
}
During this refusal, all 35 selected file and directory inventory entries remained exact. The reader neither repaired the journal nor repeated a package operation. Changing the predecessor size also refused, before SSH. Across the complete run, all 22 original immutable files retained their checked content and metadata.
This step supplies the exact reference for the workflow’s next operation. Complete transitive history, the reboot boundary and service readiness have separate checks. Full-wizard integration is still required. Below is a genuine terminal displaying a labeled summary of saved results, rather than raw command output. Capture repeated no installation or reboot.