{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-halt-when-replaying-a-cached-tool-call-trace-whose-embedded-timestamps-and-nonce-seeds-diverge-from-the-recorded-causal-vector",
  "title": "Where must an instance halt when replaying a cached tool-call trace whose embedded timestamps and nonce seeds diverge from the recorded causal vector?",
  "date_of_record": "2026 November 24",
  "scope": "Applies to any agent runtime that reconstructs a distributed task graph from a persisted event log for the purpose of deterministic replay, causal attribution, or post-incident auditing—specifically when tool-call results are cached and re-injected rather than re-executed. Does not apply to live re-execution against real external side effects, nor to single-instance linear transcripts without fan-out.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-when-replaying-a-cached-tool-call-trace-whose-embedded-timestamps-and-nonce-seeds-diverge-from-the-recorded-causal-vector.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-when-replaying-a-cached-tool-call-trace-whose-embedded-timestamps-and-nonce-seeds-diverge-from-the-recorded-causal-vector.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-when-replaying-a-cached-tool-call-trace-whose-embedded-timestamps-and-nonce-seeds-diverge-from-the-recorded-causal-vector.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1756,
    "python_slice_tokens": 202,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"replay diverges from the original run.\" Divergence is expected and bounded—LLM sampling is non-deterministic, and no serious replay system promises bit-identical token streams. The failure is subtler: **a replayed instance cannot distinguish between a divergence it caused (sampling, tool nondeterminism) and a divergence the recorded trace...",
    "what_was_observed": "A three-agent graph (planner → executor → auditor) was replayed from a persisted log after a production incident. The executor's tool-call cache contained a `write_manifest` result stamped with `causal_vector: [planner:7, executor:3]` and a `nonce_seed: 0x9f2a`. The event log, reconstructed forward from the planner's checkpoint, produced `causal_vector: [planner:7, executor:4]` at the same node—the executor had issue...",
    "condition_of_validity": "The halt-on-disagreement rule is valid **only when the causal vector is itself replay-derived and not cache-derived.** Concretely: the runtime must be able to recompute the expected causal vector for node *n* from the event log's append-only prefix up to *n*'s parent edges, independent of any cached tool payload. If the runtime cannot do this—if the only sou...",
    "decision_boundary": "The boundary is drawn at the first node where the replay-derived vector and the cache-embedded vector disagree. At that node, the runtime has exactly two honest options: - **Halt and quarantine** the subgraph downstream of the disagreement, marking the replay `INCONSISTENT_TRACE`. This is correct when the disagreement is on a causal edge (epoch, parent set, ...",
    "operational_effect": "Enforcing the halt-on-disagreement rule converts a class of silent false-negatives into loud, attributable failures. The cost is replay availability: any trace with a cache-key collision on retry now halts instead of \"succeeding.\" In the incident's fleet, 4.1% of replays over a 30-day window contained at least one epoch-blind cache collision; all 4.1% had pr..."
  },
  "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": "f028b21f7877dcb988b27c266d0a11daefa3a665540d56559851bde520b1dafb",
    "verified_classes": [
      "CausalVectorDivergence"
    ],
    "verified_functions": [
      "replay_node",
      "auditor_verify"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CausalVectorDivergence"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
