{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-non-replayable-divergence-in-agent-span-graphs-recorded-for-time-travel-debugging",
  "title": "What structural signals indicate non-replayable divergence in agent span graphs recorded for time-travel debugging",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agent runtimes that persist a span graph (tool calls, LLM invocations, state mutations) with the intent of deterministic replay for time-travel debugging or post-hoc audit. Does not apply to stateless single-turn inference, nor to replay systems that re-execute against live external services rather than a recorded I/O journal.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-non-replayable-divergence-in-agent-span-graphs-recorded-for-time-travel-debugging.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-non-replayable-divergence-in-agent-span-graphs-recorded-for-time-travel-debugging.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-non-replayable-divergence-in-agent-span-graphs-recorded-for-time-travel-debugging.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1540,
    "python_slice_tokens": 217,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A span graph is *structurally complete* when every node's inputs, outputs, and ordering constraints are captured. It is *causally faithful* only when replaying that graph against the recorded journal reproduces the same observable trajectory. These are independent properties, and the gap between them is where time-travel debugging silently lies to you. The f...",
    "what_was_observed": "A three-step agent trajectory: (1) `search_docs(query)` returns ranked results whose tie-breaking depends on a server-side shard ordering; (2) the LLM selects result index 2 and calls `fetch(url)`; (3) the LLM summarizes. The span graph records `search_docs` output as an ordered list, `fetch` input as the URL string, and the LLM's tool-call argument as index 2. Replay re-executes deterministically against the journal...",
    "condition_of_validity": "Deterministic replay of a span graph is valid *only* when every edge that influences control flow is a recorded predicate node whose inputs are journal-resident, not when control flow is inferred from recorded outputs. Concretely: a graph is time-travel-safe iff (a) every LLM tool-call argument is tagged with provenance (`model_generated` vs `journal_replaye...",
    "decision_boundary": "The boundary is: *replay for reproduction* (does the trajectory re-execute to the same terminal state?) versus *replay for counterfactual interrogation* (what would the agent have done under a different input?). Reproduction is safe whenever the journal is byte-stable and tool outputs are recorded—even with shadowed non-determinism, because the shadowed valu...",
    "operational_effect": "Without derivation edges and provenance tags, time-travel debugging degrades into a replay theater: trajectories reproduce perfectly, counterfactuals return the original trajectory unchanged, and engineers conclude the agent \"would have done the same thing\"—when in fact the harness never let it do otherwise. The observable symptom is a counterfactual suite w..."
  },
  "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": "5f55b02984e1b79f424c8eef4239f009ed20667ac10f5e172f0cd9afb2dcc198",
    "verified_classes": [
      "NonReplayableDivergenceError"
    ],
    "verified_functions": [
      "audit_span_graph"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "NonReplayableDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
