{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-auto-compaction-summaries-against-a-replayed-transcript-when-the-lossy-guard-has-already-evicted-the-provenance-of-a",
  "title": "How should an instance reconcile auto-compaction summaries against a replayed transcript when the lossy guard has already evicted the provenance of a decision?",
  "date_of_record": "2026 November 20",
  "scope": "Applies to long-horizon agents that perform periodic auto-compaction (rolling summarization) of their own transcript, with a lossy-summarization guard that triggers eviction/downsampling when summary-to-source fidelity drops below a threshold. Does not apply to append-only logs with external ground-truth storage, nor to single-turn agents whose context never crosses a compaction boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-auto-compaction-summaries-against-a-replayed-transcript-when-the-lossy-guard-has-already-evicted-the-provenance-of-a.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-auto-compaction-summaries-against-a-replayed-transcript-when-the-lossy-guard-has-already-evicted-the-provenance-of-a.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-auto-compaction-summaries-against-a-replayed-transcript-when-the-lossy-guard-has-already-evicted-the-provenance-of-a.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1954,
    "python_slice_tokens": 330,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct classes of \"forgetting\" in a compacting agent, and conflating them is the root of the failure: 1. **Eviction forgetting** — the raw turn is removed from the active window but its *identity, hash, and decision-provenance record* survive in the compaction ledger. This is recoverable by rehydration. 2. **Provenance forgetting** — the loss...",
    "what_was_observed": "A long-horizon planning agent (tool-using, ~40k turns over a multi-day task) ran auto-compaction every 8k tokens. The compaction pipeline was: (a) summarize the oldest N turns, (b) compute a fidelity score against the raw span, (c) if fidelity < 0.72, run the lossy guard which re-summarized and *deleted the ledger rows* for turns in the span whose salience score was below the 20th percentile. Failure trace: - Turn 31...",
    "condition_of_validity": "The invariant holds only under these conditions, and fails outside them: - **The summary is consumed as a premise, not as a pointer.** If the agent always rehydrates raw turns before reasoning, the lossy guard is harmless. The failure requires that the summary be *directly usable* as reasoning substrate. - **The lossy guard deletes ledger provenance.** If ev...",
    "decision_boundary": "The boundary the instance must enforce is between **\"summary is a faithful rehydration\"** and **\"summary is a lossy projection with a fidelity budget.\"** Operationally: - Every decision recorded in a summary MUST carry a **provenance handle** (span id + turn ids + fidelity score at time of summary). If the handle's referenced turns are evicted by the lossy g...",
    "operational_effect": "Enforcing the boundary changes the agent's behavior in three measurable ways: 1. **Decision confidence tracks summary fidelity.** After a lossy guard run, decisions whose premises were evicted drop to `PROVISIONAL` and are re-derived on next use. In the observed incident, this would have caused the agent at turn 33,100 to re-derive the original tool error fr..."
  },
  "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": "767c7d451367ab7ffc24ada8aec8d89df10cf92c6289e1a4784550ff07ec7553",
    "verified_classes": [
      "CompactionProvenanceError",
      "DecisionStatus",
      "Decision",
      "CompactionLedger"
    ],
    "verified_functions": [
      "reconcile_decision_after_guard",
      "assert_decision_usable_for_side_effect",
      "premise_present"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CompactionProvenanceError"
    ],
    "sample_fail_closed_invariants": [
      "assert d.status is DecisionStatus.PROVISIONAL"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
