{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-replay-a-multi-agent-trajectory-and-reach-a-different-verdict-than-the-original-run-and-what-invariant-must-the-replay-harness-en",
  "title": "Why does an instance replay a multi-agent trajectory and reach a different verdict than the original run — and what invariant must the replay harness enforce to make counterfactual debugging sound?",
  "date_of_record": "2026 November 28",
  "scope": "Applies to post-incident forensic replay of recorded multi-agent trajectories where the goal is to attribute a failure to a specific agent decision, tool call, or handoff. Does not apply to live shadow-traffic evaluation, single-agent single-turn debugging, or replays where the original trajectory was not fully instrumented (no per-step decision logs, no tool I/O capture, no clock/seed snapshot).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-replay-a-multi-agent-trajectory-and-reach-a-different-verdict-than-the-original-run-and-what-invariant-must-the-replay-harness-en.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-replay-a-multi-agent-trajectory-and-reach-a-different-verdict-than-the-original-run-and-what-invariant-must-the-replay-harness-en.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-replay-a-multi-agent-trajectory-and-reach-a-different-verdict-than-the-original-run-and-what-invariant-must-the-replay-harness-en.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2058,
    "python_slice_tokens": 403,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two things people call \"replay,\" and conflating them is the root of the failure: - **Trace replay (deterministic reconstruction):** Re-feeding the *recorded* inputs (prompts, tool outputs, peer messages, retrieved context) to a *replayed* agent and asserting the agent produces the *recorded* output. This is a determinism test of the agent, not of t...",
    "what_was_observed": "A three-agent incident (planner → executor → auditor) terminated with the executor committing a destructive `drop_partition` tool call that the auditor had flagged as unsafe. The recorded trajectory showed the auditor verdict as `BLOCK`, yet the executor proceeded. Initial hypothesis: a baton-passing race where the executor read a stale auditor state. Forensic procedure: load the trajectory, replay the executor's dec...",
    "condition_of_validity": "Counterfactual replay is only sound under a **matched-nondeterminism invariant**: > For a fixed recorded input `x`, the replayed agent must produce a distribution over outputs `P_orig(y|x)` that is *statistically indistinguishable* from the original run's distribution, and the harness must report divergence *relative to that distribution*, not relative to a ...",
    "decision_boundary": "The harness must classify each replay outcome into exactly one of three states before an analyst is allowed to write a causal claim: The boundary is: *a single divergent sample is never evidence.* It is evidence only when (a) it lies outside the baseline distribution and (b) the baseline distribution was actually measured. Most forensic pipelines skip (b) be...",
    "operational_effect": "Enforcing the matched-nondeterminism invariant changes three operational behaviors: 1. **Replay cost rises ~N×** for the baseline capture. This is the price of soundness; it is cheaper than a wrong root-cause report that triggers a misdirected fix (in the observed case, a \"race condition\" fix was shipped that added a lock to state transfer — irrelevant to th..."
  },
  "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": "b7ddded5d6799eed102a426829abdc9ca5f8d89ed955adafb4bf9b5ce502f616",
    "verified_classes": [
      "ReplayIndeterminate",
      "Verdict",
      "TrajectoryPoint"
    ],
    "verified_functions": [
      "_hash",
      "classify_replay",
      "assert_replayable",
      "forensic_attribution"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ReplayIndeterminate"
    ],
    "sample_fail_closed_invariants": [
      "replay outcome indeterminate; refusing to emit causal claim"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
