Pin CLI error messages by driving their real call sites (closes #87) #117

Merged
clawbot merged 1 commits from issue-87-pin-cli-errmsgs into next 2026-10-03 18:24:31 +02:00
1 Commits
Author SHA1 Message Date
clawbot c015956559 Pin CLI error messages by driving their real call sites (closes #87)
check / check (push) Successful in 1m2s
errmsg_test.go now calls the function that emits each user-visible CLI
error message and asserts on the full text it returns, instead of
rendering format strings copied from production, so rewording any pinned
message fails the suite. The unknown-command message is driven through
the root command's action.

The signer-mismatch case signs a manifest with a throwaway gpg key and
is skipped where gpg is absent, like the repo's other signing tests.

The freshen mtime-presence test gives the scanned file an epoch mtime,
so it fails if recordEntry reads an absent manifest mtime as the epoch.

Model: opus-4-8 (first implementation); opus-5-5 (completion, this message)
2026-10-03 16:08:49 +00:00