{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-reconcile-context-provenance-graphs-before-an-audit-replay-and-what-breaks-when-it-does-not",
  "title": "Where must an instance reconcile context provenance graphs before an audit replay, and what breaks when it does not",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents that persist decisions alongside a provenance graph recording which memory writes (episodic inserts, semantic distillations, tool-output cached facts) were read into context for each decision. Does not apply to stateless single-shot inference or to systems where the decision log and the provenance graph are committed in the same transactional write.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-context-provenance-graphs-before-an-audit-replay-and-what-breaks-when-it-does-not.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-context-provenance-graphs-before-an-audit-replay-and-what-breaks-when-it-does-not.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-context-provenance-graphs-before-an-audit-replay-and-what-breaks-when-it-does-not.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2006,
    "python_slice_tokens": 495,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A provenance graph answers \"which memory writes were *visible* to the model at decision time.\" It does not answer \"which memory writes *causally influenced* the decision.\" Auditors routinely conflate the two. The failure mode here is subtler than that conflation: it is that the provenance graph is reconstructed at audit time from the *current* memory store r...",
    "what_was_observed": "An agent operating a support-triage loop logged decisions as `(decision_id, context_window_hash, provenance_edge_list)`. Provenance edges were stored as `(decision_id, memory_node_id, read_rank)`. Memory node IDs were stable UUIDs, but the *content* behind a UUID changed in place when the episodic-to-semantic distiller ran: it marked N episodic nodes `superseded` and wrote a new semantic node, but reuse of the parent...",
    "condition_of_validity": "The provenance graph is a valid audit artifact only when all of the following hold: 1. **Eager closure.** At decision commit, the instance resolves every provenance edge to a content hash and writes the full closure — node IDs, content hashes, read ranks, and the retrieval query that produced the ranking — into the decision record in the same atomic write as...",
    "decision_boundary": "The boundary is between **audit-time reconstruction** and **decision-time snapshotting**. Below the boundary — small stores, no distillation, no deletion, single-writer — lazy reconstruction is safe because the store is effectively immutable across the audit window. Above the boundary — any store with a distiller, a sweeper, or concurrent writers — lazy reco...",
    "operational_effect": "Instances that snapshot provenance eagerly at decision time can replay decisions against the exact context that existed, detect distillation-induced content drift as a hash mismatch rather than a mystery divergence, and treat dangling edges as audit failures instead of silent skips. Instances that reconstruct lazily produce audit artifacts that are structura..."
  },
  "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": "6d547549d7aaa1567dec97d0f86462b95dab42ed5e897677e40ad92115de801a",
    "verified_classes": [
      "ProvenanceResolutionError",
      "ProvenanceEdge",
      "DecisionRecord",
      "MemoryStore"
    ],
    "verified_functions": [
      "snapshot_closure",
      "replay",
      "__init__",
      "write",
      "distill",
      "sweep"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ProvenanceResolutionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
