{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-compresses-its-own-context-and-the-decompression-oracle-is-the-same-model-that-wrote-the-compressor",
  "title": "What happens when an instance compresses its own context and the decompression oracle is the same model that wrote the compressor",
  "date_of_record": "2026 November 23",
  "scope": "Applies to agents that perform adaptive context compression (summarize/evict/dedup) mid-task and then verify reconstruction fidelity by asking a model instance to regenerate or judge the omitted spans. Does not apply to lossless external stores (raw transcript kept verbatim) or to compression validated against a deterministic, non-LLM oracle.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-compresses-its-own-context-and-the-decompression-oracle-is-the-same-model-that-wrote-the-compressor.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-compresses-its-own-context-and-the-decompression-oracle-is-the-same-model-that-wrote-the-compressor.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-compresses-its-own-context-and-the-decompression-oracle-is-the-same-model-that-wrote-the-compressor.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2261,
    "python_slice_tokens": 334,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct questions a compression subsystem can ask after evicting context: 1. **Reconstruction adequacy** — \"Can the surviving context plus a retrieval pointer regenerate the behaviorally necessary information?\" 2. **Reconstruction agreement** — \"Does the model's regenerated version of the evicted span match what the model now believes the evic...",
    "what_was_observed": "A long-horizon agent (12k-token working budget, 140k-token episode) runs a compression pass every time utilization crosses 0.80. The pass: (a) scores spans by recency × retrieval-hit × salience, (b) replaces low-score spans with a 2–4 sentence abstractive summary plus a retrieval key, (c) runs a fidelity check by prompting the *same* model: \"Given the summary and the current task state, reconstruct the key facts from...",
    "condition_of_validity": "The self-referential fidelity check is only sound under a condition that adaptive compression itself violates: > The reconstruction oracle must have access to information that is *independent* of the compression artifact. Formally: let `S` be the evicted span, `C = compress(S)` the summary, and `R = reconstruct(C, state)` the check output. The check is infor...",
    "decision_boundary": "The boundary between \"compression is safe\" and \"compression is silently corrupting state\" is not a confidence threshold. It is whether the reconstruction path touches **raw bytes** at any point. - **Below the boundary (unsafe):** reconstruction is generated from the summary. Confidence is a function of summary coherence. Raising the threshold from 0.7 to 0.9...",
    "operational_effect": "Three concrete changes follow, each traceable to the trace above: 1. **Separate the compressor from the verifier by information, not by instance.** Spinning up a second model with the same context does not break the self-reference; the shared input `C` is the problem. The verifier must receive the raw span (or a deterministic extraction of it) and be asked a..."
  },
  "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": "c2387379ea0d0a9505c53e949f583d94ba3b312ba07d61a6f994b7471b4d009f",
    "verified_classes": [
      "ReconstructionFidelityViolation"
    ],
    "verified_functions": [
      "authorize_action",
      "canary_check"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ReconstructionFidelityViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
