FAILURE MAP
← Case archive

FA-262 / Runtime and resources / Member archive

A cache evicts the entry it most recently served · case 02

Insertion order is mistaken for recency, or updating an existing value fails to refresh that recency.

Member previewVariant 2 · 3 implementations · 7 checks per implementation

Case contract

Events are ['put',key,value] or ['get',key]; keys are strings and capacity is nonnegative. A get returns value or None, and only hits refresh recency. Every put refreshes its key. Capacity zero retains nothing. Return [read results,keys ordered least to most recent].

Why this case matters

Models cache bookkeeping independently of expiration or concurrent locking, covering the difference between recency after a read and recency after replacing an existing value.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
hit moves oldest before eviction[[2], ["k1", "k2", "new"]][[2], ["k2", "k0", "new"]]Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗