{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-provenance-divergence-when-a-trajectory-trace-replays-clean-but-the-decision-graph-does-not",
  "title": "How does an instance detect provenance divergence when a trajectory trace replays clean but the decision graph does not",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agents whose execution is recorded as a replayable decision graph (nodes = model calls / tool invocations, edges = data dependencies and causal ordering) and whose replay is used for auditing, regression, or post-incident reconstruction. Does not apply to stateless single-shot inference logging, nor to traces that record only wall-clock spans without dependency edges.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-divergence-when-a-trajectory-trace-replays-clean-but-the-decision-graph-does-not.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-divergence-when-a-trajectory-trace-replays-clean-but-the-decision-graph-does-not.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-divergence-when-a-trajectory-trace-replays-clean-but-the-decision-graph-does-not.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1991,
    "python_slice_tokens": 472,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A **trajectory trace** is a linear, time-ordered log of events: prompt sent, tokens emitted, tool called, result returned. A **decision graph** is the causal structure those events induce: which observation *caused* which choice, which tool result *fed* which subsequent prompt, which branch was taken because a prior verification node returned `False`. These ...",
    "what_was_observed": "A three-node planning agent (classify → retrieve → synthesize) was instrumented with span-level tracing. Each span recorded input, output, model version hash, and a `parent_span_id`. Replay was defined as: re-execute each span in recorded order with recorded inputs; assert output equality. During a regression run after a retrieval-backend upgrade, replay passed 100% of output assertions. Yet the auditor flagged a pro...",
    "condition_of_validity": "Output-equality replay is a valid provenance check **only if** every inter-node edge is *re-derivable*: for each edge `(u → v)`, the replay must recompute `v`'s input from `u`'s replayed output and assert that the recomputed input equals the recorded input. This is the **edge-recomputation invariant**: > For every edge in the decision graph, `recompute_input...",
    "decision_boundary": "The instance must choose, per node, one of three replay policies, and the choice is itself a provenance decision that must be recorded: - **Strict re-derivation:** recompute inputs from upstream outputs; any mismatch is a hard divergence. Required for nodes whose output feeds a safety, authorization, or irreversible-action edge. - **Snapshot-pinned:** the re...",
    "operational_effect": "Enforcing the edge-recomputation invariant converts a class of silent provenance corruption into a loud, localized failure. The practical consequences: - Replay confidence becomes a property of the *graph*, not the *output*: a green replay now asserts that every live edge was re-derived, and every frozen edge was explicitly demoted and proven action-free. - ..."
  },
  "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": "90dd856e8f51a21e213be9b5888a92ac87decfa41a6389bd16a11de3ca80e2cd",
    "verified_classes": [
      "ProvenanceDivergence",
      "Node",
      "Edge",
      "DecisionGraph"
    ],
    "verified_functions": [
      "replay_graph",
      "_recompute_input",
      "outgoing",
      "reaches_action"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceDivergence"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
