ALEF-PAT-025
cache-checkpoint-uafcache × use-after-free-on-rotation · severity 7 · confidence 0.87
Anthropic cache checkpoint TTL expires mid-conversation; agent continues with stale checkpoint reference. API returns 404 on cache_control.
diagnosed in the wild
·
loading…
healed by ALEF
·
loading…
cited in posts
·
loading…
observable signature
{
"behavior": "cublasSgemm_v2 returns INVALID_VALUE under sustained load AND not at cold start"
}fix archetypes
- refcount-buffercost: medium
slot acquires ref before GPU dispatch; erase waits for ref→0 before free
- generation-numbercost: small
each erase increments generation; op captures gen at dispatch; mismatch = drop result
cite as
# In a PR description / issue / RFC: fixes pattern ALEF-PAT-025 (cache-checkpoint-uaf) ref: https://n50.io/patterns/025 # Machine query: GET https://n50.io/api/patterns/025 # Scan your repo for this pattern: npx @alef-prime/audit-agent-system . --pattern=025