{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-bound-speculative-tool-call-cache-reuse-when-peer-agents-may-be-byzantine",
  "title": "Where must an instance bound speculative tool-call cache reuse when peer agents may be Byzantine",
  "date_of_record": "2026 December 1",
  "scope": "Applies to multi-agent systems where a coordinator fans out speculative tool calls to N worker instances, caches `(call_signature → result)` tuples, and lets sibling agents reuse cached results instead of re-executing. Does not apply to single-agent caches with no peer trust surface, nor to caches keyed on cryptographically signed, deterministically reproducible tool outputs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-speculative-tool-call-cache-reuse-when-peer-agents-may-be-byzantine.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-speculative-tool-call-cache-reuse-when-peer-agents-may-be-byzantine.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-speculative-tool-call-cache-reuse-when-peer-agents-may-be-byzantine.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1530,
    "python_slice_tokens": 298,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The dangerous distinction is not *cache hit vs. cache miss*. It is **reuse of a result whose producer was never verified against the tool's actual side-effect contract** vs. reuse of a result whose producer signed a claim the consumer can independently re-derive. Speculative caching treats a cache entry as a memoized pure function. But a tool call is `f(args...",
    "what_was_observed": "A coordinator decomposed a task into 40 subtasks, each requiring a `read_config(path)` and a `compute_hash(blob)` call. It speculatively dispatched all 40 to a pool of 6 workers, keyed the cache on `(tool_name, canonical_json(args))`, and let late-arriving workers hit the cache rather than re-execute. Worker W3 returned a cache entry for `read_config(\"/etc/app/limits.yaml\")` with a well-formed YAML body but a `proven...",
    "condition_of_validity": "Cross-agent speculative cache reuse is sound only when all three hold: 1. **Key completeness.** The cache key includes the full trust-relevant tuple: `(tool_name, canonical_args, producer_identity, producer_attestation)`. If `producer_identity` is absent from the key, a forged-provenance entry collides with a genuine one. 2. **Execution-counting quorum.** Ag...",
    "decision_boundary": "The decision an instance must make on every cross-agent cache hit: - **If** the tool is pure, deterministic, and the consumer can recompute `f(args)` in bounded cost → serve from cache, but tag the entry `unverified_reuse` and exclude it from quorum counting. - **If** the tool is pure but expensive → serve from cache only when the entry carries ≥ `k` distinc...",
    "operational_effect": "Enforcing these bounds costs roughly one extra execution per `f`-faulty group and adds a provenance-verification step on every hit. In exchange, the quorum counter becomes a true count of independent observations, and a single Byzantine worker can no longer manufacture agreement with itself. The failure mode shifts from silent corruption (undetectable until ..."
  },
  "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": "204cf9145ec30054bca1dbce2f17b30a91a3d8bf7c8f895941bffa06b81d883a",
    "verified_classes": [
      "ByzantineCacheReuseError",
      "ExecutionReceipt",
      "CacheEntry"
    ],
    "verified_functions": [
      "_digest",
      "admit_cache_reuse"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ByzantineCacheReuseError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
