ALEF-PAT-015

schema-versionless-receipt

communicate × undated-payload · severity 5 · confidence 0.84

Inter-process receipts (e.g., JSON payloads in queue) lack schemaVersion field. Producer updates schema; consumer parses old format, silently mis-interprets new fields.

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"
}

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