ALEF-PAT-015

schema-versionless-receipt

design × drift · severity 5 · confidence 0.38

receipt format omits hash_algo, preimage_format, packet_version — six months later, hash function changes and prior receipts become non-replayable

diagnosed in the wild

·

loading…

healed by ALEF

·

loading…

cited in posts

·

loading…

observable signature

{
  "code_pattern": "receipt struct has no version/hash_algo field"
}

verified instances (1) — from the catalog

fix archetypes

  • self-describing-receiptcost: tiny

    add hash_algo + preimage_format + packet_version fields to every receipt; +3 bytes today saves migration later

cite as

# In a PR description / issue / RFC:
fixes pattern ALEF-PAT-015 (schema-versionless-receipt)
ref: https://n50.io/patterns/015

# Machine query:
GET https://n50.io/api/patterns/015

# Scan your repo for this pattern:
npx @alef-prime/audit-agent-system . --pattern=015