infrastructure/pipeline/CLI-FORMATS.md

2.8 KiB

CLI consumers and acceptance formats (D-096)

Audit scope: the release-cycle driver, builder shell adapters, installed Core and Desktop probes, optional rollout drivers, native store plugins and legacy bridge.

Consumer Input contract Verification
release-cycle.py Cargo exit status; native adapter tests; probe exit status and evidence files Normal source stage runs the Rust test suite (including native libostree kernel-argument tests) before image builds
Builder/install adapters Command exit status and artifact files, no installed-host presentation parsing Existing build/install assertions retained; raw --debug bypasses decoration
core_iso_acceptance.py Explicit transaction list --json; installed metadata v3; package/boot state Shared CLI probe before extension staging and after activation; history counts only Kind=stage
gnome_native_acceptance.py (GNOME and KDE) Explicit status --json; command exit status; native D-Bus GUI interfaces Shared CLI probe before nano staging and after reboot, so extensions must inherit kargs
cli_contract_guest.py One JSON document, empty normal JSON stderr; debug JSON-lines stderr Human status/no-op, protected argument rejection, append/replace/no-op identity, boot activation and inherited arguments
update_rollout_guest.py Explicit plan/apply JSON; daemon-owned plan ID and verified target Optional configured-track rollout; rejects candidate mismatch instead of rewriting private plans
finish-update-rollout.py, resume-update-rollout.py Historical callers of optional rollout probe Not the scheduled driver; old pre-D-Bus VMs and unpublished arbitrary candidates no longer meet probe prerequisites
Native GNOME Software/Discover plugins Typed D-Bus results and transaction properties No CLI text dependency; existing GUI checks retained
system/src/software.rs Historical cache/CLI bridge No CLI entrypoint or current image service invokes it; not evidence for native plugins
Portal/release wrapper Driver pipeline.json, catalog JSON and systemd status Independent of installed CLI formatting; publication verification remains HTTPS/catalog/size based

The legacy direct-context updater still has its own JSON mode. Installed commands always route to the daemon, including global output/auth flags before the command and service host dispatch. Consumers must not parse Plan:, translated progress, retry tokens, implicit JSON, or legacy generations/*/staged marker files.

Old-image network upgrade, Polkit denial/reconnect/crash recovery and complete GUI admission are separate evidence. The shared CLI checks do not certify those paths. No VM waiver is enabled for this change. Runtime checks run only in the normal terra pipeline; implementation of a check is not a passing result.