A month ago I published a post about the write-safety gate in Pomerene, our trajectory cache for agents: any trajectory containing a write replays only on an exact repeat, never on a "close enough" match. The argument was that a semantic cache must never fuzzy-match a write, because embeddings capture topic, not polarity — "activate user 4471" and "deactivate user 4471" score 0.853 cosine, and a plain semantic cache would replay the wrong one.
A reader, pm25coder, read the gate the way a gate deserves to be read — as a claim about what cannot happen — and found three places where it could. He was right on all three. The fixes are merged in core and ship in the next core release. This post is the correction the first post owes, written before the fixes ship so the record is straight: the gate as published had holes, here is what each one could have served, and here is what changed.
Hole 1: an abstract-goal match was served as an exact hit
The published gate said a write-bearing trajectory replays only on an exact repeat. But the matcher had a cascade: if the goal matched abstractly — same shape of task, different entity — that could be served as an exact hit, with no side-effect gate and no context check. A cached write for one entity could serve a request for another.
The fix: abstract matches are no longer treated as exact repeats. A write-bearing trajectory is refused at an abstract match, and context is diffed before anything is served. The rule the first post stated — exact repeat or nothing — is now the rule the code enforces at every match class, not just the one the post described.
Hole 2: no taint records plus a context change was a replay
A trajectory stored with no taint records — nothing recorded about which steps touched the outside world — treated any context change as "nothing tainted" and replayed every step. The absence of a record was read as evidence of safety, which is the exact inversion of what an absent record means.
The fix: no taint info plus a context change is now a miss. The agent runs live, the trajectory gets stored with its taint records this time, and the cache does not get to claim a step is safe because it never checked.
Hole 3: an exact repeat of a write returned the recorded result without running it
This was the sharpest of the three. An exact repeat of a write trajectory returned the recorded result — the caller was told the write succeeded — without executing anything. The write never ran. The cache reported success for an action that did not happen.
The fix: a hit never serves past a declared external_write. Control hands back to the agent at that step, and the agent runs the write for real. The worst case from the gate is now a missed saving, never a wrong write and never a phantom success.
What the fixes do not change
The adversarial eval still stands as published: the gated cache scored 0/18 operational false positives on 18 near-opposite command pairs, wired as a CI gate. The fixes above are in the gate the eval exercises — the eval measures the gate, and the gate got stricter, so the eval's next run measures a stricter gate. The numbers that have not moved: a 14-step audit trajectory replays in 47ms versus 3.9s live, with zero LLM invocation on the hit path, and on τ-bench 86% of paraphrased requests were served from cache, 78% of those judged correct (see the per-100-turns fixture post for why the second number has to be read beside the first, not under it).
And one gate stays open, named here rather than assumed closed: entity agreement on read matches. The abstract path still serves a read for a different entity when context agrees, relying on the caller's slot substitution. The normalise-and-require-equality check is the next gate to build. It is not shipped, and this post does not present it as shipped. The same applies to the embedding numbers for pm25coder's pairs — owed, not yet published.
Why publish the correction before the release
A safety gate is a promise about what cannot happen, and a promise with three holes is not a promise. The honest sequence is: publish the holes, publish the fixes, ship the release — in that order, with the correction attached to the original post so nobody reads the old gate as current. The first post's gate section is pending that correction.
If you run agents against anything that writes — billing, provisioning, user state — the check that matters is not whether your cache is fast. It is whether a wrong serve is structurally impossible, and whether the gate that makes it impossible has been read by someone whose job is to break it. Ours was, and it broke in three places. That is the system working.
Pomerene ships as a self-hosted Starter Kit — Indie $99 / Pro $249, one-time, source included — so the cache runs in your infrastructure, next to your agents. Quickstart is about 5 minutes (Node 20+, Docker or Postgres 15+). The kit's built-in diagnostics (/v1/diagnostics) show hit rates, the L1/L2/miss breakdown, latency percentiles, and dollars and tokens saved for your real traffic. Docs and details at pomerene.io/starter-kit.