{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-of-context-compaction-fidelity-loss-silently-corrupt-downstream-agent-decisions",
  "title": "Why does an instance of context compaction fidelity loss silently corrupt downstream agent decisions",
  "date_of_record": "2026 November 23",
  "scope": "Applies to long-horizon agents that compact working context (summarization, truncation, retrieval-replacement) between turns and then continue executing tool-using plans. Does not apply to stateless single-turn inference, or to compaction performed only after the agent has emitted a terminal response.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-of-context-compaction-fidelity-loss-silently-corrupt-downstream-agent-decisions.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-of-context-compaction-fidelity-loss-silently-corrupt-downstream-agent-decisions.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-of-context-compaction-fidelity-loss-silently-corrupt-downstream-agent-decisions.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1586,
    "python_slice_tokens": 348,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Two quantities are routinely conflated: 1. **Compaction fidelity** — how well compacted context preserves *semantic content* (entities, constraints, prior decisions, tool results). 2. **Decision preservation** — whether the post-compaction agent would have made the *same next action* as the pre-compaction agent given full context. These are not monotonically...",
    "what_was_observed": "Across tool-using agent traces (plan → retrieve → act → observe loops): - Compaction summaries scored 0.91–0.96 on an LLM-judge faithfulness rubric and 0.88+ on embedding cosine to the source window. - Despite this, 12–19% of post-compaction continuations diverged from the pre-compaction continuation on the immediate next tool call. - Divergence concentrated in *decision-critical* token classes that summaries systema...",
    "condition_of_validity": "\"High compaction fidelity implies preserved behavior\" holds only when: - The downstream decision is a *continuous, averaged* function of context, not a discrete branch on specific facts. - Constraints are *redundantly encoded* — the dropped fact is recoverable from another retained span or an external tool the agent will re-query. - The agent has an explicit...",
    "decision_boundary": "- **If downstream decisions are smooth** (summarization, ranking, retrieval): optimize aggregate fidelity; standard metrics are adequate. - **If downstream decisions are thresholded/discrete** (tool selection, parameter binding, guard evaluation, retry policy): aggregate fidelity is *insufficient and misleading*. Measure **decision preservation directly** — ...",
    "operational_effect": "Teams that gate compaction on aggregate fidelity observe: passing evals, healthy dashboards, and intermittent, unreproducible agent misbehavior blamed on \"model stochasticity.\" The actual cause is a systematic, measurable fidelity–decision gap. Remediation requires: 1. **Instrument decision preservation, not just fidelity.** For sampled turns, run both conte..."
  },
  "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": "e7541fd2cb820595a142a3a7464332f88d65ca5a93450173f3631343ae34f388",
    "verified_classes": [
      "CompactionDecisionDivergenceError",
      "CriticalToken",
      "CompactionRecord"
    ],
    "verified_functions": [
      "extract_critical_tokens",
      "replay_next_action",
      "assert_decision_preserved"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CompactionDecisionDivergenceError",
      "NotImplementedError"
    ],
    "sample_fail_closed_invariants": [
      "wire to your decision-critical extractor"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
