Documentation
¶
Overview ¶
Command refusal-codes-sync writes the committed ledger of refusal codes, .abcd/development/release/refusal-codes.json, from the registry in internal/core/refusal (itd-2610301428378830, spc-2610301431108175 step 1). The release guard reads the ledger at the last release tag and refuses a cut in which a code that ledger lists is missing (adr-2610301638558260), so the ledger is the record of every code a release has carried. Codes are added, and retired, in the registry, never in the file.
It mirrors command-facts-sync, run by hand via `make refusal-codes-sync`. Nothing in CI invokes it: the drift is gated by TestCommittedLedgerMatchesTheRegistry in internal/core/refusal, which fails when the committed ledger differs from the registry's.
Exit codes: 0 nothing to do (or, with no -check, the ledger was written); 1 a fault; 3 with -check, the ledger is out of date and nothing was written.