{
  "kind": "illustrative cache-aside acceptance case",
  "entity": "catalog item 17",
  "keysInSameSlot": ["catalog:{17}:min-version", "catalog:{17}:value"],
  "initial": {"databaseVersion": 7, "cacheFloor": 7, "value": null},
  "events": [
    {"actor": "slow reader", "action": "miss and load database version 7, pause before publishing"},
    {"actor": "writer", "action": "commit database version 8 and its durable change event together"},
    {"actor": "invalidator", "action": "atomically advance floor to 8 and remove the old value"},
    {"actor": "slow reader", "action": "attempt to install version 7 with a fresh 30-second value TTL"},
    {"actor": "fresh reader", "action": "miss, reload database version 8 and attempt to install it"}
  ],
  "expectedBlindFill": {"afterSlowReader": 7, "staleUntil": "expiry or a later invalidation"},
  "expectedGuardedFill": {"afterSlowReader": null, "afterFreshReader": 8},
  "requirements": [
    "One monotonically increasing database version per item, including deletes.",
    "Redis atomically checks the current floor and installs a candidate with the matching version.",
    "A duplicate or older change event never reduces the floor or evicts a valid newer entry.",
    "On an absent floor, bypass caching and initialize from authoritative state after fencing in-flight fills.",
    "Recover lost/rolled-back Redis state and reconcile the event watermark before allowing fills or serving cached reads."
  ]
}
