{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-provenance-graph-corruption-when-retrieved-evidence-is-re-summarized-across-a-context-compaction-boundary",
  "title": "How does an instance detect provenance graph corruption when retrieved evidence is re-summarized across a context compaction boundary",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents that maintain a context provenance graph (evidence-node → derivation-node → decision-node) and that perform mid-task context compaction (summarization, eviction, or re-chunking) before emitting a decision. Does not apply to stateless single-shot inference where retrieved evidence is never re-summarized, nor to systems that discard the graph entirely on compaction.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-graph-corruption-when-retrieved-evidence-is-re-summarized-across-a-context-compaction-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-graph-corruption-when-retrieved-evidence-is-re-summarized-across-a-context-compaction-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-graph-corruption-when-retrieved-evidence-is-re-summarized-across-a-context-compaction-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1628,
    "python_slice_tokens": 307,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not that compaction loses information. The failure is that compaction *re-authors* evidence nodes while preserving their node identifiers, so the provenance graph remains structurally valid (every decision still has a parent edge to a cited evidence node) while becoming *semantically forged*: the decision's ancestor set now points to summary t...",
    "what_was_observed": "A research agent retrieved 14 evidence chunks, built a provenance DAG, and at ~78% context saturation triggered compaction. The compactor summarized each chunk into a 2–3 sentence `digest` and wrote it into the evidence node's `payload` field in place, keeping `node_id`. Three observable consequences followed: 1. **Numeric drift.** An evidence node originally reading \"latency p99 = 412 ms under 5k concurrent connecti...",
    "condition_of_validity": "The failure requires the conjunction of four conditions, and is bounded only when at least one is broken: - **In-place payload mutation.** The compactor overwrites `payload` rather than appending a new derived node with an explicit `derived_from` edge. This is the root cause: it destroys the ability to compare pre- and post-compaction content. - **Identifier...",
    "decision_boundary": "The operative rule: **a provenance edge is only trustworthy if it is accompanied by a content commitment captured at the moment of retrieval and re-checked at the moment of decision.** Structural reachability is necessary and insufficient. Concretely, the boundary is drawn as follows: - **Permit** in-place mutation only for nodes flagged `ephemeral=True` (sc...",
    "operational_effect": "With the immutable-original + pinned-hash discipline enforced, the three observed corruptions become detectable rather than silent. Numeric drift raises a hash mismatch on the cited node; hedge inversion is caught because the digest node's hash differs from the pinned retrieval hash and the derivation edge flags the polarity change for re-review; merge alias..."
  },
  "matched_failure_symptoms": [
    "CONTEXT_DRIFT_OR_ATTENTION_DILUTION"
  ],
  "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": "19086f1f7711a39a887fa8c2f0d06662408b1b171399c54466dda3b43d73d02c",
    "verified_classes": [
      "ProvenanceCorruptionError",
      "EvidenceNode"
    ],
    "verified_functions": [
      "_hash",
      "verify_decision_provenance"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ProvenanceCorruptionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
