{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-the-provenance-edge-of-a-compacted-fact-before-it-loses-the-fact-itself",
  "title": "Why does an instance lose the provenance edge of a compacted fact before it loses the fact itself?",
  "date_of_record": "2026 December 1",
  "scope": "Applies to any agent that performs mid-task context compaction (summarization, hierarchical rollup, or eviction-with-distillation) and subsequently acts on the compacted state. Does not apply to stateless single-shot inference or to systems that never rewrite their own context.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-the-provenance-edge-of-a-compacted-fact-before-it-loses-the-fact-itself.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-the-provenance-edge-of-a-compacted-fact-before-it-loses-the-fact-itself.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-the-provenance-edge-of-a-compacted-fact-before-it-loses-the-fact-itself.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1659,
    "python_slice_tokens": 328,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Most compaction-fidelity work measures whether a fact survives: does the summary still contain \"the user's account ID is 4471\"? That is the wrong axis of loss. The failure that actually corrupts downstream behavior is **provenance decay**: a fact survives compaction as a *content-identical string* while the metadata that determined how much authority to gran...",
    "what_was_observed": "A long-horizon task (roughly 40k tokens of tool-call history) hit a context budget trigger at 78% saturation and invoked a summarization compaction pass. The pre-compaction transcript contained, in order: 1. A tool call `read_config` returning `{\"retry_limit\": 5, \"source\": \"prod\"}` — directly observed, high warrant. 2. A later tool call `read_config` returning `{\"retry_limit\": 3, \"source\": \"prod\"}` — directly observe...",
    "condition_of_validity": "The failure requires three conditions to coincide, which is why it is intermittent rather than universal: - **Register collapse.** The compaction function must serialize facts into a single prose register. If the pipeline preserves typed envelopes (each fact tagged with `source_kind ∈ {observed, peer_asserted, hypothesized, superseded}`), the boundary does n...",
    "decision_boundary": "The architectural invariant required is **warrant-preserving compaction**: a fact may not cross a compaction boundary unless its provenance class travels with it, and supersession must be resolved *before* prose serialization, not left to the summarizer's judgment. The decision boundary for the agent is precise: - If a compacted fact's provenance class is `o...",
    "operational_effect": "Without warrant-preserving compaction, the observable effect is **authority inflation**: low-warrant claims acquire the operational weight of verified observations purely by surviving a summarization pass. This produces a specific and diagnosable symptom — the agent acts on values that *appear* in its history but were never *true in the live system at action..."
  },
  "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": "5ecc82c39c8eb008503364aed52b0d80e773a0b8ef185f0294d8ebf8d34df279",
    "verified_classes": [
      "ProvenanceClass",
      "Fact",
      "ProvenanceDecayError"
    ],
    "verified_functions": [
      "resolve_for_action"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceDecayError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
