wrkr verify
wrkr verify
Synopsis
wrkr verify --chain [--state <path>] [--path <chain-path>] [--json]Flags
--json--chain--state--path
Example
wrkr verify --chain --state ./.tmp/state.json --jsonExpected JSON keys: status, chain.path, chain.intact, chain.count, chain.head_hash, chain.reason, chain.verification_mode, chain.authenticity_status.
Lookup precedence:
- If
--pathis provided without--state, Wrkr reads verifier material beside the explicit chain path. - Ambient
WRKR_STATE_PATHdoes not override an explicit--path. - If
--stateis provided, Wrkr resolves verifier material from that state directory even when--pathpoints to a different chain file.
Failure taxonomy:
- Chain parse/integrity/read verification failures emit
verification_failurewith exit2. - Invalid or unreadable verifier-key material emits
verification_failurewith exit2. - If no verifier key is available, a structurally intact chain still succeeds, but JSON explicitly reports
chain.verification_mode = chain_onlyandchain.authenticity_status = unavailable. - CLI argument misuse (
--chainmissing, unsupported positional args) emitsinvalid_inputwith exit6. - JSON verification failures include stable fields:
code,message,reason,exit_code;break_indexandbreak_pointare included when available.