﻿# MCUboot test upgrades: choose the application milestone before confirmation

A valid image can boot without becoming permanent. Define the local health milestone, confirmation result and reset observations for an MCUboot test upgrade.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/edge-mcuboot-test-upgrade-application-confirmation/
Language: en

## A boot message is an incomplete success signal

Consider an offline inspection appliance whose firmware includes a local classifier. The candidate starts and prints its version, but its sensor driver later fails to initialize. If the application confirms itself immediately at entry, this failure occurs after the trial has already become permanent. Decide beforehand which local operations must work before confirmation. A version string proves execution reached that logging statement; it does not establish that capture, inference and the appliance response path are usable.

## Establish the actual upgrade mode

The [MCUboot design](https://docs.mcuboot.com/design.html) distinguishes upgrade strategies and explains test swaps: the new image runs, then marks itself OK to make the swap permanent. Use this reasoning only for a configuration supporting the relevant test-and-revert behavior. Do not assume that an overwrite configuration preserves the same recovery path. Record the bootloader build and image arrangement with the test plan; a convenient application API name cannot substitute for the deployed bootloader configuration.

## Make the confirmation milestone local and bounded

For this appliance, a proposed milestone could require loading the packaged model, accepting a known harmless sensor fixture and producing a structurally valid response. Define an explicit failure path if these operations cannot complete. Requiring an unavailable cloud service would make an offline-capable appliance unable to qualify itself during an outage. Conversely, a superficial readiness flag would miss the broken sensor path. The chosen milestone is an application policy, not a health test supplied automatically by MCUboot.

## Retain the confirmation result

The [Zephyr image-control API](https://docs.zephyrproject.org/apidoc/latest/group__mcuboot__api.html) exposes current-image confirmation status and boot_write_img_confirmed. The latter attempts to confirm the running image, returns success or a negative error, and is safe when already confirmed. Record the operation result rather than treating invocation as persistence. Keep candidate identity, health outcome and confirmation outcome separately. A failed confirmation after a passed health check requires different investigation from a candidate that never reached the health check.

## Test both reset branches on a recoverable fixture

On a dedicated recoverable target, propose a trial that deliberately stops before confirmation, then observe the next reset. Repeat with the health milestone completed and confirmation accepted. Preserve image identities across both observations; otherwise a version-label mistake can imitate an apparent revert. Acceptance requires the configured unconfirmed and confirmed paths to match their documented behavior. No target was flashed or reset for this article, and this proposed fixture supplies no evidence about a particular board or flash implementation.

## Keep image authenticity and operational qualification separate

[Artifact signature verification](/journal/artifact-signature-verification/) addresses which artifact is trusted. [Firmware slot activation](/journal/guide-storage-nvme-firmware-slot/) addresses another update state transition. Application confirmation adds a local operational decision after candidate execution. It cannot prove that every future workload will succeed, and it should not be confused with anti-downgrade policy. Report the configured recovery mode, the bounded milestone and the persisted confirmation outcome so operators can explain why a candidate remained active or reverted.
