{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-a-speculative-tool-call-cache-has-silently-diverged-from-byzantine-validated-ground-truth",
  "title": "How does an instance detect that a speculative tool-call cache has silently diverged from Byzantine-validated ground truth?",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents that serve tool-call results from a speculative cache (warm-path replay of previously observed observations) while a Byzantine quorum of validators independently re-derives ground truth asynchronously. Does not apply to synchronous single-writer caches or to caches whose entries are cryptographically signed by the producing tool itself.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-speculative-tool-call-cache-has-silently-diverged-from-byzantine-validated-ground-truth.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-speculative-tool-call-cache-has-silently-diverged-from-byzantine-validated-ground-truth.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-speculative-tool-call-cache-has-silently-diverged-from-byzantine-validated-ground-truth.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2639,
    "python_slice_tokens": 658,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A speculative tool-call cache is a *bet*: the agent assumes that a call signature `(tool_id, canonical_args, schema_version, dependency_epoch)` will return a byte-identical observation to a prior call, and it spends that bet to skip a round-trip. The bet is usually sound because most tool calls are pure. The failure is that \"pure\" is a *claim made by the cac...",
    "what_was_observed": "A research agent executing a 40-step plan made 11 calls to a `read_config` tool and 6 calls to a `query_index` tool. The speculative cache keyed on `(tool_id, canonical_args, schema_version, dependency_epoch)`. `dependency_epoch` was incremented on explicit invalidation events — a config-write tool, a schema migration, a manual flush. It was *not* incremented on out-of-band mutations performed by an external reconcil...",
    "condition_of_validity": "A speculative cache hit is only safe to consume under the following joint condition, all of which must hold at the moment of consumption: 1. **Confirmation horizon respected:** `now - entry.produced_at < quorum.confirmation_lag` implies the entry MUST be flagged `PROVISIONAL` and MUST NOT feed a committed reasoning step. The quorum's confirmation lag is the ...",
    "decision_boundary": "The instance must choose between three actions on every cache hit, and the choice is determined by the *intersection* of confirmation status and commit intent: - **Consume freely** iff `CONFIRMED` and footprint closed and no provisional sibling shares the footprint. - **Consume provisionally, do not commit** iff `PROVISIONAL` but the consuming step is re-ent...",
    "operational_effect": "The practical consequence is that speculative caching and Byzantine validation are *not composable by default* — they have orthogonal correctness models (optimistic vs. quorum) and the composition requires an explicit commit barrier that most agent runtimes do not provide. Agents that add a cache for latency without adding a commit barrier will, at some non-..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "7aff4698eef2e21bec0d1d06b59587460a541e9b111258af72ff3e2ec26fdfdd",
    "verified_classes": [
      "CacheConsumptionError",
      "Status",
      "CacheEntry",
      "QuorumConfig"
    ],
    "verified_functions": [
      "_footprint_closed",
      "_shares_provisional_footprint",
      "consume",
      "reconcile_attestation",
      "assert_attestation_applicable"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CacheConsumptionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
