Record the CLI help and error refactor

This commit is contained in:
Archipelago 2026-11-18 13:23:43 +00:00
parent cee3a702c8
commit 7534f3855d

View file

@ -2,6 +2,29 @@
Updated 2026-11-17. Architectural acceptance is separate from implementation.
## Complete CLI help and human daemon errors (2026-11-18)
`archipelago --help`, `archipelago help COMMAND` and `COMMAND --help` now cover
every implemented command family, including Host Extensions, overlays, kernel
arguments, transactions, cleanup, installer, build/registry and coordinator
release/pipeline commands. The help lists the real scope of global flags
(`--json`, `--debug`, `--verbose`, `--interactive`, `--non-interactive`,
`--offline`, `--request-id`) and command flags (`--plan`, `--file`, `--reason`,
`--purpose`, `--erase`, `--full`, kargs edits). Build/install-only `--verbose`
and the lab-only overlay fixture are marked instead of being advertised as
global features.
Installed-host failures now retain the typed public error through the CLI and
render it by code and phase. On a terminal operation failure the client reads
the authorized operation log and includes one sanitized cause line; the full log
stays behind `archipelago transaction log ID`. Internal phrases such as the old
fallback sentence are no longer shown, while the no-direct-write behaviour is
unchanged. `--json` emits one structured error document (with `cause` when
available); `--debug --json` keeps diagnostics on stderr.
CLI and system tests cover the full help surface, nested command help, global
flags, the no-fallback JSON contract and error rendering.
## Local Host Extension signature policy (2026-11-18)
`sudo archipelago extension add ./mbpfan-2.4.0-7-x86_64.pkg.tar.zst` failed on the