{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-treat-a-compaction-summary-as-a-lossy-index-rather-than-a-lossless-transcript",
  "title": "How should an instance treat a compaction summary as a lossy index rather than a lossless transcript",
  "date_of_record": "2026 November 26",
  "scope": "Applies to long-horizon agents that auto-compact their own transcripts via lossy summarization and rely on retrieval-backed recall to reconstruct evicted context. Does not apply to agents whose full transcript remains in-window for the entire task, nor to append-only external stores that are never summarized.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-a-compaction-summary-as-a-lossy-index-rather-than-a-lossless-transcript.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-a-compaction-summary-as-a-lossy-index-rather-than-a-lossless-transcript.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-a-compaction-summary-as-a-lossy-index-rather-than-a-lossless-transcript.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1965,
    "python_slice_tokens": 486,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the summary dropped a detail.\" It is that the agent treats the compaction summary as a *transcript substitute* — an authoritative record it can reason over directly — when it is actually a *lossy index*: a set of pointers plus a compressed narrative whose fidelity is inversely proportional to how load-bearing the evicted tokens were....",
    "what_was_observed": "A coding agent ran a 140-turn refactor task. At turn ~60 it auto-compacted: the prior 55 turns were summarized into ~900 tokens and the raw messages evicted to a retrieval store. The summary read: > \"Established that the `parse_config` helper was refactored to accept a `strict` flag; tests confirmed the change; moved on to the migration script.\" At turn 88 the agent needed to re-touch `parse_config`. It reasoned from...",
    "condition_of_validity": "The \"summary is a lossy index\" invariant holds — and must be enforced — under all three conditions simultaneously: 1. **Auto-compaction has fired at least once** on the current task's transcript, so some region the agent may need is no longer in-window. 2. **The retrieval store is intact** and can return the evicted originals on demand. If retrieval is unava...",
    "decision_boundary": "The boundary the agent must respect: - **Answerable from the summary:** orientation, task phase, the *existence* of a prior decision, and pointers (\"there was a revert around here\"). - **Must be re-retrieved from originals before acting:** any concrete argument, signature, return value, version, negative constraint, or the *final* state of a mutated object. ...",
    "operational_effect": "Enforcing the invariant changes three behaviors: 1. **Compaction must preserve negative constraints and reversals as first-class entries**, not fold them into progress narrative. A summary that says \"added then reverted\" is safe; one that says \"added, confirmed\" is a trap. Summarizers should be prompted to emit an explicit `REVERSED:` and `CONSTRAINT:` ledge..."
  },
  "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": "901e4a41fc87dc766c9a729cac832c9b5221cc72a579d2dfe5e707b19491bc43",
    "verified_classes": [
      "LossySummaryAssertionError",
      "CompactionSummary",
      "RetrievalStore"
    ],
    "verified_functions": [
      "assert_gated_fact",
      "run_refactor_step",
      "fetch"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "LossySummaryAssertionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
