Scanner Cache Key & DSSE Validation Contract

Scope: unblocks SCAN-CACHE-186-013 by defining cache key inputs, validation, and storage layout.

Cache key

Stored entries

Validation on hit

  1. Recompute cache key from incoming request; must match folder name.
  2. Recompute SHA256 over stored files and compare with checksums.txt.
  3. If DSSE present, verify signature using replay trust root.
  4. Compare manifest_hash in cache-manifest.json with current scan manifest.
  5. Reject (miss) on any mismatch; log reason for determinism audit.

Idempotency & TTL

API notes