Connecting the prepared image to the wizard: credentials and planning without server writes
The wizard revalidates the accepted image, reuses existing credentials and creates a separate plan while retaining original approvals and package history.
The prepared image has already passed postboot acceptance. We now pass it to the wizard with the original access inputs and new console evidence. This step verifies the image and plans access; service installation belongs to the following stage.
What we retain from the previous step
We retain original root access, the selected SSH key for the future administrator, the sudo-password file, the original request and all preparation approvals. A separate current request points to independent postboot console evidence. The machine and selected administrator remain the same; the boot ID must be new.
The wizard reads those private files by path. It does not ask for passwords again, collect another key set or create a credentials directory. The future administrator transport profile only points to the existing selected key; the server account does not exist yet.
In OpenSSH, IdentityFile selects an identity file for authentication. Our verified workflow requires the administrator profile to explicitly name the same selected key. OpenSSH ssh_config(5).
The fixture we used
On a fresh isolated Debian 13 VM, we completed EFI and APT preparation, approved kernel installation, menu configuration and one reboot. Independent serial-console evidence confirmed the new boot. We captured and verified a separate image-acceptance reference. The wizard used the unchanged resource profiles previously produced by its interactive preparation command; this run did not regenerate them.
Two previous fixtures stopped during APT acquisition: the first while fetching indexes, the second while fetching the kernel archive. Both timed out connecting to the same CDN address. Their failure journals were retained, without retrying either operation. A new clean fixture selected a different Debian HTTPS mirror before approvals were created. Normal TLS and signature checks remained enabled.
Running the planning mode
Use a new empty private directory outside Git and a controlling terminal. This command is a template: the variables must contain your absolute private paths and the exact postboot-reference SHA256. Secret values remain in the access files.
deploy-cli host setup wizard plan \
--directory "$PRIVATE_EMPTY_PLAN_DIR" \
--spec-file "$RESOURCE_SPEC" \
--root-env-file "$ROOT_ENV" \
--administrator-env-file "$ADMIN_ENV" \
--request-file "$ORIGINAL_REQUEST" \
--current-request-file "$CURRENT_REQUEST" \
--postboot-reference-file "$POSTBOOT_REFERENCE" \
--postboot-reference-sha256 "$POSTBOOT_REFERENCE_SHA256" \
--approve-local-write
The wizard first revalidates the accepted image through the original verifier: current boot, EFI, directory inventory, initialization and package history. The original foundation planner independently repeats that read before planning access. Both retain exact references to the seven preparation, preboot, menu and reboot files. A changed file stops further planning.
Selected fields from the actual successful response:
{
"status": "planned",
"credentials_reused": true,
"image_accepted": true,
"foundation_planned": true,
"completed_operations": 2,
"host_writer_dispatched": false,
"whole_host_ready": false
}
The two completed operations are image verification and foundation/access planning. status=planned reports a completed plan. This run created no administrator, firewall or services. It did not start a WireGuard client or change the laptop network.
Checking that credentials were not copied
if test ! -e "$PRIVATE_EMPTY_PLAN_DIR/credentials"; then
printf 'No credential copies\n'
fi
No credential copies
This is an actual local check of the successful run directory. We separately compared selected input hashes before and after the wizard: original credentials, keys, references and approvals remained unchanged. New local files hold the plan, input hashes and verification results; they remain private operator work material.
Why this plan cannot be applied yet
The original package history already contains two approved steps. The complete installation must continue that same history after creating the administrator. Until this continuation is verified, the prepared plan uses a separate proposal type that apply refuses. It does not authorize partial access setup followed by a stop at the next package stage.
We also tested direct application through the original bootstrap command. Selected fields from the actual refusal:
{
"status": "failed",
"local_write_attempted": false,
"host_write_attempted": false,
"host_write_performed": false
}
Negative checks
Adding host-write authority to the plan command is refused during argument parsing:
deploy-cli host setup wizard plan --approve-privileges
flag provided but not defined: -approve-privileges
A wrong reference digest, old console evidence, mismatched administrator identity, missing controlling terminal and operator interruption produced no completed plan. A controlled foreign file in the server directory also caused refusal; the verifier preserved it. The fixture then removed only its own controlled file in a separate operation.
Even a proposal copy edited to claim the ordinary executable plan type failed apply because its prepared-image profile is also checked. All reads retained the 27 selected server entries; original preparation, package history and reboot checkpoint remained intact.
What is complete and what follows
The wizard now accepts the exact postboot reference, reuses existing credentials and produces a verified access plan without server writes. Next comes original package-history continuation for utilities and services, followed by the complete resource-profile workflow. whole_host_ready remains false.
The illustration is a genuine terminal showing a labeled summary of saved fixture results, rather than raw command output. Capture did not repeat installation, planning or reboot.