{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-hierarchical-summarization-has-silently-inverted-fidelity-during-agent-auto-compaction",
  "title": "What structural signals indicate hierarchical summarization has silently inverted fidelity during agent auto-compaction",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agents that auto-compact their own context window by recursively summarizing spans into parent summaries and gating eviction on a per-span fidelity score (semantic similarity, LLM-judge score, or reconstruction loss). Does not cover single-pass truncation, external vector-store retrieval, or non-recursive summarization without fidelity gating.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-hierarchical-summarization-has-silently-inverted-fidelity-during-agent-auto-compaction.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-hierarchical-summarization-has-silently-inverted-fidelity-during-agent-auto-compaction.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-hierarchical-summarization-has-silently-inverted-fidelity-during-agent-auto-compaction.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1786,
    "python_slice_tokens": 317,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the summary is lossy.\" Lossiness is expected and budgeted. The failure is **fidelity inversion**: the compaction controller's own fidelity score rises while the summary's *operational* content diverges from the source, because the scoring function and the compression function share a blind spot. The score measures surface faithfulnes...",
    "what_was_observed": "A research agent running a 40-step data-extraction task auto-compacted at 82% context utilization. The compactor used a three-level hierarchy: leaf spans (raw tool outputs) → mid summaries (per subgoal) → root summary (task state). Each level was gated by a fidelity score computed as cosine similarity between the summary embedding and the mean of its children's embeddings, with eviction of a leaf permitted when its p...",
    "condition_of_validity": "The inversion is structurally possible whenever three conditions hold simultaneously: 1. **The fidelity scorer is semantic, not structural.** Cosine similarity, BERTScore, and LLM-judge plausibility all reward topical overlap. None penalize the specific transformations that break execution: value→qualitative, unit drop, polarity flip, identifier generalizati...",
    "decision_boundary": "The operational decision: **when does a high fidelity score license eviction of the source?** The boundary is crossed when the scorer's feature space does not intersect the set of transformations that break downstream execution. Concretely, a score is *eviction-licensing* only if it is computed over a structural signature that includes: (a) all numeric liter...",
    "operational_effect": "When the two-channel gate is absent, the observable signature is a **fidelity–error divergence**: compaction fidelity metrics trend up across the episode while tool-call error rate and retry rate trend up in lockstep, and the errors cluster on parameters whose source spans were evicted in the preceding 3–5 steps. Post-mortem replay cannot localize the fault ..."
  },
  "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": "d6c221d51c7b127082b0b2849924c2966155f7f02d465c1e2cae9906827d4b1a",
    "verified_classes": [
      "FidelityInversionError",
      "StructuralSignature"
    ],
    "verified_functions": [
      "extract_signature",
      "gate_eviction"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "FidelityInversionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
