Compatibility: Pactmark 0.1.x. Codes are stable API. English messages are diagnostics and may
change at any time.
The rule
KAF_* code. Branch on the code, and on the code alone.
Serialization and schema
Runtime and transitions
KAF_RUNTIME_EVENT_SEQUENCE is retryable because it means another writer got there first — re-read
and retry is the correct response. KAF_RUNTIME_TERMINAL is not, because no amount of retrying
will un-terminate a run.Authority and policy
Effects
Storage
KAF_STORAGE_NOT_FOUND is deliberately the same answer for “does not exist” and “exists but is not
yours”. Denial must not become an enumeration oracle.
Model boundary
Verification, evidence and patterns
Commands and idempotency
Retrying correctly
Of the whole registry, exactly three codes are marked retryable:KAF_RUNTIME_EVENT_SEQUENCE, KAF_ADMISSION_DENIED and KAF_STORAGE_CONCURRENCY_CONFLICT. All
three are contention or quota conditions where the same request can safely be made again.
Wire format
Run events
RunFailed.errorCode uses this registry.HTTP API
Where each status appears on the wire.