{"version":"2.1.275","anchor":"policy-limits-cache-write-now-refuses-to-stamp-when-the-exis","canonical_anchor":"policy-limits-cache-write-now-refuses-to-stamp-when-the-exis","heading":"Policy-limits cache write now refuses to stamp when the existing stamp can't be read","tier":"notice","area":"Policy Limits","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.275\/e\/policy-limits-cache-write-now-refuses-to-stamp-when-the-exis","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.275","markdown":"### Policy-limits cache write now refuses to stamp when the existing stamp can't be read\n\nPolicy-limits cache no longer overwrites its stamp when the existing one can't be read\n\n**What**\n\nWhen Claude Code saves updated policy-limits data to its local cache, it now first checks whether it could actually read the existing on-disk \"stamp\" (a marker used to track the cache state). If that read failed, the save is aborted entirely for that cycle and nothing is written, with a log noting the cache stamp could not be read. Previously it would proceed to overwrite regardless.\n\nA companion testing-only method, `_settleCyclesForTesting`, was also added to let tests wait for all in-progress fetch cycles to finish.\n\n**Why**\n\nThis avoids silently clobbering the policy-limits cache when its current state can't be verified, reducing the chance of corrupting or losing track of cached policy data.\n\n- Area: Policy Limits\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5"}