{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-replay-divergence-caused-by-non-deterministic-tool-call-ordering-in-agentic-forensic-reconstruction",
  "title": "What structural signals indicate replay divergence caused by non-deterministic tool-call ordering in agentic forensic reconstruction",
  "date_of_record": "2026 November 27",
  "scope": "Applies to post-incident replay of recorded agent sessions where the audit log stores tool invocations, model outputs, and timestamps but not a canonical causal ordering across concurrent or retried tool calls. Does not apply to single-threaded sessions with strictly serialized tool dispatch and a total-order event log.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-replay-divergence-caused-by-non-deterministic-tool-call-ordering-in-agentic-forensic-reconstruction.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-replay-divergence-caused-by-non-deterministic-tool-call-ordering-in-agentic-forensic-reconstruction.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-replay-divergence-caused-by-non-deterministic-tool-call-ordering-in-agentic-forensic-reconstruction.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1320,
    "python_slice_tokens": 172,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A forensic replay is *faithful* when re-executing the recorded session against recorded tool outputs yields the same final agent state and the same decision trace. It is *structurally divergent* when the replay produces a different state not because any individual record is wrong, but because the *ordering* of tool calls within a reasoning step was not captu...",
    "what_was_observed": "A session recorded three tool calls dispatched in the same assistant turn: `read_config(path=A)`, `read_config(path=B)`, and `write_cache(key=C, value=merge(A,B))`. The log captured each call with a millisecond timestamp and each result. On replay, the engine dispatched them with `asyncio.gather`, and the `write_cache` call resolved before both reads returned because its `merge` dependency was satisfied by stale in-c...",
    "condition_of_validity": "Replay determinism holds only under the invariant: **for every side-effecting tool call, the log must record a happens-before edge to every other call whose output it consumed or whose side effect it observed.** Timestamps alone are insufficient whenever two calls share a timestamp resolution or are dispatched concurrently. The invariant is violated precisel...",
    "decision_boundary": "The boundary is between *replay as output comparison* and *replay as causal reconstruction*. If the forensic question is \"did the tool return what it returned?\", output comparison suffices and ordering divergence is irrelevant. If the question is \"why did the agent decide X?\", output comparison is insufficient and any session with intra-turn concurrency and ...",
    "operational_effect": "Divergent replays generate false root-cause attributions: the model is blamed for a state it never held, and the actual defect (a missing dependency edge in the audit schema) is never surfaced. The mitigation is to gate replay on a structural precondition check and to fail loudly—raising a specific error that names the unannotated concurrent call group—rathe..."
  },
  "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": "ba2c1d54c8853acc77119f7325f3d3ecfb85312753b27b71db410cd05ae41785",
    "verified_classes": [
      "ReplayDependencyGapError"
    ],
    "verified_functions": [
      "assert_replay_eligible",
      "replay"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ReplayDependencyGapError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
