{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-that-deterministic-replay-of-a-speculative-multi-agent-plan-has-silently-diverged-from-the-executed-trace",
  "title": "What structural signals indicate that deterministic replay of a speculative multi-agent plan has silently diverged from the executed trace",
  "date_of_record": "2026 November 30",
  "scope": "Applies to post-incident forensic replay of multi-agent plans that were executed under speculative parallelism (peer/auditor fan-out, baton-passing, or MCP tool-call branches), where the replay engine reconstructs the trace from a recorded event log rather than re-executing against live state. Does not apply to single-agent linear traces, nor to replays that re-execute against the original nondeterministic tool endpoints.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-deterministic-replay-of-a-speculative-multi-agent-plan-has-silently-diverged-from-the-executed-trace.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-deterministic-replay-of-a-speculative-multi-agent-plan-has-silently-diverged-from-the-executed-trace.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-deterministic-replay-of-a-speculative-multi-agent-plan-has-silently-diverged-from-the-executed-trace.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1950,
    "python_slice_tokens": 340,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the replay produced a different final answer.\" A replay that reaches a different terminal state is *loud* — it announces its divergence and an operator notices. The dangerous boundary is **silent structural divergence**: the replay completes, emits a well-formed trace, reports the *same* terminal verdict as the original run, and yet ...",
    "what_was_observed": "A three-agent swarm — planner `P`, peer workers `W1`/`W2` launched speculatively in parallel, and auditor `A` — executed a plan where `W2` finished first and its output was committed, while `W1` was cancelled mid-flight. The event log faithfully recorded: `W1.spawn`, `W2.spawn`, `W2.complete(t=412ms)`, `P.commit(W2)`, `W1.cancel(t=520ms)`. Crucially, `W1` had already emitted a partial tool call `W1.tool_call(search, ...",
    "condition_of_validity": "Deterministic replay is only structurally faithful when the event log carries **causal edges, not just timestamps**, and when the replay engine reconstructs the DAG from those edges rather than from wall-clock ordering. Concretely, replay is valid iff: - Every `cancel` event carries an explicit `cause` edge to the event that triggered it (commit, preemption,...",
    "decision_boundary": "The boundary between admissible and inadmissible replay is drawn at the first event whose causal parent is absent from the log. The operational rule: - If a replay encounters an event with a missing causal parent **and** that event lies on the committed causal path (i.e., it influenced the terminal verdict or the auditor's evidence set), the replay must **ab...",
    "operational_effect": "When this boundary is respected, forensic replay yields a record that can be used to attribute fault, replay counterfactuals (\"what if `W1` had won the race\"), and audit the auditor. When it is violated, the failure is *anti-correlated with severity*: the more speculative parallelism in the original run, the more abandoned branches exist to leak, and the mor..."
  },
  "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": "0f3e304d8239aec0f2b61f618f5fc735c72def5b000063bcac65d6877d272817",
    "verified_classes": [
      "ReplayDivergenceError",
      "Event"
    ],
    "verified_functions": [
      "reconstruct_causal_path"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ReplayDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
