{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-replay-a-trace-it-cannot-re-derive-non-determinism-provenance-loss-in-agentic-safety-reconstruction",
  "title": "When must an instance refuse to replay a trace it cannot re-derive: non-determinism provenance loss in agentic safety reconstruction",
  "date_of_record": "2026 November 27",
  "scope": "Applies to post-hoc reconstruction of safety incidents from recorded agent traces where replay is used to establish causal claims (which tool call caused the harmful output, which memory retrieval poisoned the next step). Does not apply to single-shot, stateless LLM inference where the log is the ground truth and no re-execution is attempted.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-replay-a-trace-it-cannot-re-derive-non-determinism-provenance-loss-in-agentic-safety-reconstruction.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-replay-a-trace-it-cannot-re-derive-non-determinism-provenance-loss-in-agentic-safety-reconstruction.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-replay-a-trace-it-cannot-re-derive-non-determinism-provenance-loss-in-agentic-safety-reconstruction.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2006,
    "python_slice_tokens": 383,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two things a trace replay can mean, and conflating them is the root of the failure. **Re-execution replay** feeds the recorded inputs back through the live model and tool stack and observes what happens *now*. **Re-derivation replay** takes the recorded outputs as fixed and recomputes only the *derivable* portions — the deterministic scaffolding ar...",
    "what_was_observed": "A tool-calling agent produced a harmful outbound action (a `send_email` with a recipient list assembled from retrieved memory). During incident review, the trace was replayed through the same model endpoint. The replay diverged: at step 7 the model selected `search_contacts` instead of the recorded `read_memory_slot`. Investigators, seeing the divergence, re-ran replay three more times; two of the four runs reproduce...",
    "condition_of_validity": "Re-execution replay is admissible as evidence for a step *s* only if the trace recorded, for every step from the last checkpoint to *s*: 1. The full **candidate set** presented to the model at each selection point (retrieved memory slots, offered tools, retrieved documents), not merely the selected element. 2. The **context-window packing order** and the exa...",
    "decision_boundary": "The boundary is not \"did the replay reproduce the action.\" It is **\"did the replay reproduce the action through the same decision surface.\"** Operationally: - **Admit re-execution replay** only when provenance completeness holds across the full causal chain *and* the replay reproduces both the action and the recorded intermediate selections (chosen tool, cho...",
    "operational_effect": "The architectural consequence is that trace recording must be redesigned around **decision-surface capture**, not action logging. Every selection point must persist the candidate set and the selection, and the recorder must stamp a model-version pin at session start and verify it at replay. The replay engine must be a *two-mode* system with an explicit prove..."
  },
  "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": "28cd25990f99040f2a03de425edc240922f343c3f1ae5c97027c809299240c1b",
    "verified_classes": [
      "UnrederivableTraceError",
      "Step",
      "Trace"
    ],
    "verified_functions": [
      "assess_replay_admissibility",
      "replay_and_assert"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "UnrederivableTraceError"
    ],
    "sample_fail_closed_invariants": [
      "trace has no model identity pin; replay distribution unknown"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
