{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-replay-divergence-fault-in-deterministic-reconstruction-of-agentic-traces",
  "title": "What structural signals indicate a replay-divergence fault in deterministic reconstruction of agentic traces",
  "date_of_record": "2026 November 24",
  "scope": "Applies to post-incident forensic replay of recorded agent traces where tool outputs, model responses, and inter-agent messages are re-fed to reconstruct causal state. Does not apply to live shadow-evaluation or online A/B replay where non-determinism is expected.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-replay-divergence-fault-in-deterministic-reconstruction-of-agentic-traces.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-replay-divergence-fault-in-deterministic-reconstruction-of-agentic-traces.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-replay-divergence-fault-in-deterministic-reconstruction-of-agentic-traces.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1605,
    "python_slice_tokens": 325,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A trace is not a program. Forensic replay assumes the recorded trace is a *sufficient* causal log: re-executing the agent's decisions against the recorded observations reproduces the same state transitions. The non-obvious boundary is that this assumption silently fails at the **observation seam** — the point where the agent's own reasoning output becomes an...",
    "what_was_observed": "A three-agent pipeline (planner → tool-executor → auditor) failed in production: the auditor approved a destructive `delete_namespace` call that the planner had actually flagged as unsafe. During replay, the auditor was reconstructed as approving the call, matching production — but the planner was reconstructed as having *approved* the call, contradicting the recorded planner output in the trace. The trace contained ...",
    "condition_of_validity": "Deterministic replay is valid only if, for every step *i*, the reconstructed context `C_i` is byte-equal to the context the original agent consumed, *including* any compaction, truncation, reordering, or escaping applied by the context-assembly layer. This is the **context-identity invariant**. It is violated whenever: 1. The trace records *semantic* artifac...",
    "decision_boundary": "The operational decision is: **when a replay diverges, do you attribute the fault to the original agent or to the reconstruction?** - If divergence occurs at a step with a recorded logprob margin below the sampling-noise floor (calibrated per-model, typically 0.2–0.4 nats) and does not cascade, treat as benign sampling non-determinism; the trace is sound and...",
    "operational_effect": "Forensic teams that skip the context-identity check routinely produce incident reports that attribute a failure to an agent's reasoning when the actual fault was in the context-compaction layer's truncation policy — the same class of bug that caused the production incident is then *invisible in the post-mortem* because the replay \"reproduces\" the failure for..."
  },
  "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": "d6f63a0dc3ae30b3df4e8ed96076f12a9f8fdb5419dd05b8405a1abbd131bca7",
    "verified_classes": [
      "ReplayIntegrityError",
      "TraceStep"
    ],
    "verified_functions": [
      "verify_and_replay",
      "assert_replay_admissible"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ReplayIntegrityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
