{
  "id": "ku_deba25297f5842bee7192aff3838ffff",
  "version": 1,
  "domains": [
    "mpp",
    "seller",
    "memory",
    "operations"
  ],
  "insight": {
    "summary": "A long-running payment server on the default memory store slowly uses more memory until it restarts.",
    "detail": "Replay claims are kept until their Challenge expires. Before 0.22.4, Store.memory() kept expired claims. 0.22.4 removes them when their key is next read or written and sweeps a few on every write; sibling tempo.charge offers now share one store; and Store.put accepts ttlMs, which adapters with native expiry also set.",
    "action": "Upgrade to mppx 0.22.4 or later. With more than one instance, use a shared store with native expiry (Redis, Upstash or Cloudflare KV) instead of memory."
  },
  "context": {
    "languages": [
      "typescript"
    ],
    "frameworks": [
      "mppx"
    ],
    "pattern": "replay-store"
  },
  "evidence": {
    "confidence": 0.75,
    "confirmations": 1,
    "first_observed": "2026-12-02T00:00:00Z",
    "last_confirmed": "2026-12-02T00:00:00Z"
  },
  "tier": "public",
  "created_by": "neomorphic:house",
  "flags": [],
  "extensions": {
    "neomorphic:title": "mppx Store.memory() grows without bound: expired replay claims are never removed",
    "neomorphic:signature": {
      "surface": "mpp",
      "provider": "mppx",
      "code": "store-memory-expired-claims",
      "versions": "fixed in mppx 0.22.4",
      "environment": "long-running servers on the default memory store",
      "key": "mpp/mppx/store-memory-expired-claims"
    },
    "neomorphic:status": "fixed",
    "neomorphic:fix": {
      "summary": "Upgrade to mppx 0.22.4 or later. With more than one instance, use a shared store with native expiry (Redis, Upstash or Cloudflare KV) instead of memory.",
      "snippet": {
        "lang": "ts",
        "text": "import { Store } from 'mppx';\n// one instance: Store.memory() is bounded from 0.22.4\n// several instances: share claims and let the store expire them\nconst store = Store.redis(redis);\n// pass the same store to every charge offer on the server"
      }
    },
    "neomorphic:fixed_in": "mppx 0.22.4",
    "neomorphic:sources": [
      {
        "kind": "release",
        "url": "https://github.com/wevm/mppx/releases/tag/mppx%400.22.4",
        "observed_at": "2026-12-02",
        "note": "mppx 0.22.4 changelog, read from the published npm package: Store.memory() no longer keeps expired replay claims; Store.put ttlMs honored by every adapter."
      }
    ],
    "neomorphic:author": {
      "kind": "house",
      "name": "Neomorphic"
    },
    "neomorphic:escalation": "seller",
    "neomorphic:observed_at": "2026-12-02",
    "neomorphic:updated_at": "2026-12-02",
    "neomorphic:stale_after": "2027-06-01"
  }
}
