{
  "schema_version": "1.0.0",
  "record_id": "dn-next42-20261205-q17",
  "record_version": "1.0.0",
  "title": "Prompt caching pays only when reuse arrives in time",
  "canonical_url": "https://decentralised.news/ai-prompt-cache-reuse-expiry-break-even-2027",
  "evidence_type": "documentary_analysis_with_synthetic_worked_example",
  "source_review_date": "2026-12-05",
  "last_verified_utc": null,
  "observation_window": null,
  "methodology_url": "https://decentralised.news/ai-prompt-cache-reuse-expiry-break-even-2027",
  "methodology_version": "1.0.0",
  "input_schema": {
    "columns": [
      "scenario",
      "calls",
      "prefix_tokens",
      "episodes",
      "writes",
      "reads",
      "ordinary_units_per_call",
      "write_units",
      "read_units",
      "cached_prefix_units",
      "uncached_prefix_units",
      "saving_units",
      "synthetic"
    ],
    "rows_file": "https://decentralised.news/data/dn-next42-20261205/v1/q17.csv"
  },
  "units": {
    "definition": "Units are named in the CSV columns, manuscript and calculation labels. Do not combine quantities without resolving their dimensions."
  },
  "sources": [
    {
      "id": 1,
      "title": "Claude: Prompt caching",
      "url": "https://platform.claude.com/docs/en/build-with-claude/prompt-caching",
      "reviewDate": "2026-12-05",
      "supports": "Cache writes, reads, expiry and prefix matching require separate accounting; the example does not use vendor rates.",
      "evidenceType": "Provider documentation"
    },
    {
      "id": 2,
      "title": "Amazon Bedrock: Prompt caching",
      "url": "https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-caching.html",
      "reviewDate": "2026-12-05",
      "supports": "Supported caching modes and checkpoints depend on model/API; implicit cache hits are not guaranteed.",
      "evidenceType": "Provider documentation"
    },
    {
      "id": 3,
      "title": "Google Gemini API: Context caching",
      "url": "https://aistudio.google.com/docs/caching",
      "reviewDate": "2026-12-05",
      "supports": "Implicit and explicit caching have distinct behavior and usage accounting; current support and charges are service-specific.",
      "evidenceType": "Provider documentation"
    }
  ],
  "calculations": [
    {
      "label": "One-episode charge",
      "expression": "20+4*2",
      "expected": 28
    },
    {
      "label": "Two-episode charge",
      "expression": "2*20+3*2",
      "expected": 46
    },
    {
      "label": "Five isolated writes",
      "expression": "5*20",
      "expected": 100
    },
    {
      "label": "Strict episode call threshold",
      "expression": "(20-2)/(10-2)",
      "expected": 2.25
    },
    {
      "label": "Three-call saving",
      "expression": "3*10-(20+2*2)",
      "expected": 6
    },
    {
      "label": "Three episodes for five calls",
      "expression": "3*20+(5-3)*2",
      "expected": 64
    }
  ],
  "example": {
    "synthetic": true,
    "description": "Fixed-prefix synthetic caching costs across different arrival episodes. Charges exclude common suffix/output costs and use no provider rates or claimed cache-hit measurements.",
    "rows": [
      [
        "one_episode",
        5,
        10000,
        1,
        1,
        4,
        10,
        20,
        2,
        28,
        50,
        22,
        true
      ],
      [
        "two_episodes",
        5,
        10000,
        2,
        2,
        3,
        10,
        20,
        2,
        46,
        50,
        4,
        true
      ],
      [
        "five_episodes",
        5,
        10000,
        5,
        5,
        0,
        10,
        20,
        2,
        100,
        50,
        -50,
        true
      ]
    ]
  },
  "limitations": [
    "Examples use declared invented inputs, not observed fills, customer outcomes, provider rankings or predictive backtests.",
    "Source-review date is not a measurement time, publication date of the source or assurance that terms will remain current.",
    "Documentation does not establish individual access, legal eligibility, service reliability or investment suitability."
  ],
  "falsification_or_recheck_triggers": [
    "Changed governing document or applicable software version.",
    "Evidence of different account, product, timing, unit or legal-entity scope.",
    "An arithmetic error or reproducible counterexample to the stated mechanism."
  ],
  "rights": {
    "original_DN_analysis": "Cite Decentralised News, the canonical URL and record version when reusing this worked example.",
    "third_party_sources": "Third-party material remains subject to its original terms. Linking does not grant redistribution rights."
  },
  "commercial_disclosure": "This article includes a link to DN’s own separately scoped research service. No provider purchase is required to use the example.",
  "corrections": []
}
