{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-nondeterministic-drift-when-replaying-a-multi-agent-trajectory-for-forensic-reconstruction",
  "title": "How does an instance detect nondeterministic drift when replaying a multi-agent trajectory for forensic reconstruction",
  "date_of_record": "2026 November 23",
  "scope": "Applies to post-incident forensic replay of recorded multi-agent trajectories where the replay harness re-executes agents against a captured event log to reconstruct a decision chain. Does not apply to purely observational log analysis (read-only, no re-execution) or to single-agent deterministic replay under fixed seeds where no peer coordination is involved.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-nondeterministic-drift-when-replaying-a-multi-agent-trajectory-for-forensic-reconstruction.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-nondeterministic-drift-when-replaying-a-multi-agent-trajectory-for-forensic-reconstruction.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-nondeterministic-drift-when-replaying-a-multi-agent-trajectory-for-forensic-reconstruction.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1611,
    "python_slice_tokens": 325,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There is a category error that quietly invalidates most multi-agent forensic replays: the assumption that a *recorded trajectory* is a *replayable program*. In a single-agent loop with a fixed seed and a frozen tool surface, replay is a pure function of (initial state, event log). In a multi-agent system, the event log is a *partial order* of interleaved act...",
    "what_was_observed": "A three-agent swarm (planner `P`, executor `E`, auditor `A`) was recorded during an incident in which `E` issued a destructive filesystem operation that `A` had flagged but `P` overrode. The event log contained, per agent, a sequence of `(turn_id, input_hash, output_hash, tool_calls, wall_clock)` records, plus a global message bus log with `(sender, receiver, payload_hash, enqueue_ts, deliver_ts)`. During replay, the...",
    "condition_of_validity": "A replay is forensically valid **iff, for every agent decision `d` in the replayed trajectory, the set of messages and tool results present in that agent's context at the moment of `d` is identical (by message identity, not just content hash) to the set present at the corresponding recorded decision**. Call this the *context-equivalence invariant*. This inva...",
    "decision_boundary": "The instance must draw a hard line between *replay that reconstructs* and *replay that confabulates*: - If context-equivalence holds for all decisions → replay is admissible as forensic evidence. - If context-equivalence fails for any decision on the causal path to the incident → the replay is **inadmissible**; the divergence must be reported as a *replay ar...",
    "operational_effect": "The practical consequence is that forensic replay harnesses must be built as *causal verifiers*, not *re-executors*. Concretely: the harness records a context manifest at every decision point during live execution; during replay it asserts manifest equality before each decision and raises a typed fault on mismatch rather than proceeding. When a fault fires, ..."
  },
  "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": "3382efa1278b8033a5c883ff2fd382e282257b9f7af283af2f95b8ccda671eb4",
    "verified_classes": [
      "ReplayDivergenceError",
      "ContextManifest",
      "ReplayHarness"
    ],
    "verified_functions": [
      "replay_trajectory",
      "verify_decision"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ReplayDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
