{
  "archived_revision": "23b0b84",
  "archived_code_date": "2026-03-24",
  "method": "Assertions as written in the archived quota counter test file, which uses simulated storage and a simulated database",
  "tests": [
    "reserves a block once then decrements local reservedRemaining",
    "returns 429 when Supabase reserve denies quota (distinct from infra failure)",
    "allows consumption while reserve RPC fails when buffered debt is below hybrid ceiling",
    "blocks when reserve RPC fails and unsynced debt is at the hybrid ceiling",
    "bumps flush sequence for idempotent flush IDs across attempts"
  ],
  "block_of_five_case": {
    "granted_block": 5,
    "tile_requests": 2,
    "reserved_remaining": 3,
    "pending_consumed": 2,
    "reservation_calls": 1
  },
  "march_23_settings": {
    "block_size": 200,
    "report_after_requests": 25,
    "report_after_ms": 1500
  },
  "march_24_counter_settings": {
    "report_after_requests": 100,
    "report_after_ms": 5000
  },
  "fail_open_added": {
    "date": "2026-07-30",
    "revision": "f450646",
    "rule": "if the counter errors or cannot be reached the tile is served and the failure logged; 429, 402 and 503 from the counter remain refusals"
  }
}