{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-abort-replay-because-a-tool-call-graph-is-causally-ambiguous",
  "title": "When must an instance abort replay because a tool-call graph is causally ambiguous",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agent runtimes that persist execution graphs (nodes = LLM turns and tool invocations, edges = causal data dependencies) and reconstruct them for post-hoc replay or failure attribution. Does not apply to single-turn stateless inference or to runtimes that only log flat, unordered trace streams.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-abort-replay-because-a-tool-call-graph-is-causally-ambiguous.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abort-replay-because-a-tool-call-graph-is-causally-ambiguous.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abort-replay-because-a-tool-call-graph-is-causally-ambiguous.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1630,
    "python_slice_tokens": 368,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A replayable execution graph is not a transcript. A transcript is an ordered list of events; a graph asserts *causal edges* — that node B consumed the output of node A. Observability tooling routinely conflates the two: it timestamps events, orders them, and then *infers* causality from adjacency or temporal precedence. This works until two tool calls execut...",
    "what_was_observed": "An agent issued two tool calls in a single turn: `read_config(path=\"/etc/svc/limits.yaml\")` and `write_config(path=\"/etc/svc/limits.yaml\", body=...)`, dispatched as parallel futures. The graph recorded them as siblings with no edge between them, ordered by completion timestamp: write finished first (small body), read finished second (larger file, cold page cache). The LLM then reasoned over the read result — which re...",
    "condition_of_validity": "The replayable-graph invariant holds only when the following conjunction is satisfied for every node N in the graph: 1. **Input closure:** `inputs(N) ⊆ ⋃_{E ∈ incoming(N)} output(E) ∪ declared_constants(N)`. Any value N reads that is not in this set is a leak. 2. **Effect serialization:** if any two nodes touch a shared mutable resource (same path, same cach...",
    "decision_boundary": "The decision is whether to **abort replay** (refuse to attribute) or **proceed with a flagged divergence**. Abort is mandatory when a divergence occurs at a node with byte-identical declared inputs *and* the node has no sampling entropy (temperature 0, deterministic tool) *and* the divergent node lies on the causal path to the failure under investigation. In...",
    "operational_effect": "Enforcing input-closure and effect-serialization edges at record time converts a class of silent misattributions into loud, bounded replay aborts. The cost is graph size: parallel siblings that share resources gain serialization edges, inflating the DAG and reducing the scheduler's apparent parallelism in the recorded view (though not at execution time — the..."
  },
  "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": "5344c740ae49e34dd1e03b2242007623ffa4ca49c97bddda822efee905a48cb5",
    "verified_classes": [
      "CausalAmbiguityError",
      "Node",
      "Edge",
      "ExecutionGraph"
    ],
    "verified_functions": [
      "attribute_failure",
      "incoming_outputs",
      "assert_input_closure",
      "assert_effect_serialization"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CausalAmbiguityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
