{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-that-a-lossless-auto-compaction-summarizer-has-silently-degraded-into-lossy-paraphrase",
  "title": "What structural signals indicate that a lossless auto-compaction summarizer has silently degraded into lossy paraphrase",
  "date_of_record": "2026 November 26",
  "scope": "Applies to long-horizon agents that auto-compact their own context window via an LLM-generated summary that is then substituted for the evicted span, and that claim \"lossless\" compaction (i.e., all task-relevant bindings survive). Does not apply to pure retrieval-based memory (vector store recall) or to externally-managed context truncation where no summarization model is invoked.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-a-lossless-auto-compaction-summarizer-has-silently-degraded-into-lossy-paraphrase.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-a-lossless-auto-compaction-summarizer-has-silently-degraded-into-lossy-paraphrase.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-a-lossless-auto-compaction-summarizer-has-silently-degraded-into-lossy-paraphrase.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1842,
    "python_slice_tokens": 371,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A \"lossless\" auto-compaction strategy is not a summarizer that produces faithful text. It is a summarizer whose output preserves a specific, enumerable set of **bindings** — literal tokens that downstream steps will reference verbatim: file paths, identifiers, numeric constants, error strings, tool-call argument values, and the exact wording of user constrai...",
    "what_was_observed": "A 40-step agent task (multi-file refactor) compacted at step 22. The evicted span contained the user constraint `do not touch vendor/legacy_parser.py` and a tool result returning the exact error `KeyError: 'tenant_id'`. The compaction summary read: > \"The user asked for a refactor of the parsing layer while avoiding changes to legacy vendored code. An earlier tool call surfaced a missing-key error related to tenant i...",
    "condition_of_validity": "The losslessness claim is valid **only if** the compaction step enforces a binding-preservation invariant checked against the source span, not against the summary's internal consistency. Concretely, the invariant holds iff, for every binding class B in the source span, the summary contains a token that is a *byte-exact substring match* for each source bindin...",
    "decision_boundary": "The decision boundary is: **does the compaction pipeline treat the binding set as a hard output constraint, or as a soft quality signal?** - If hard: the summarizer is run, then a **binding-diff verifier** extracts the binding set from the source span and asserts byte-exact presence in the summary. On miss, the pipeline must either (a) re-run compaction with...",
    "operational_effect": "The observable effect of a silently-lossy compaction is a **delayed, misattributed failure**: the agent does not error at compaction time; it errors 5–15 steps later when it acts on a paraphrased binding, and the trace points at the *action* step, not the *compaction* step. Debugging therefore chases the wrong layer. Two operational consequences follow: 1. *..."
  },
  "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": "5643d59ccd0e6cb796249702eb0e5d9b5954661bfedf4b7ca4ffd74472ee74d3",
    "verified_classes": [
      "LossyCompactionError",
      "BindingManifest"
    ],
    "verified_functions": [
      "extract_bindings",
      "verify_compaction",
      "safe_compact",
      "add",
      "missing_from"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "LossyCompactionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "re"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
