{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-hierarchical-summarization-compaction-as-unsafe-when-salience-scores-are-computed-over-already-summarized-spa",
  "title": "In what scenarios must an instance treat hierarchical summarization compaction as unsafe when salience scores are computed over already-summarized spans",
  "date_of_record": "2026 November 25",
  "scope": "Applies to long-running agent instances that compact their own context via multi-level hierarchical summarization (leaf summaries rolled into branch summaries rolled into a root digest) and that use a salience scorer to rank spans for eviction. Does not apply to single-pass truncation, sliding-window eviction without summarization, or externalized vector-store retrieval where no in-context digest is produced.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-hierarchical-summarization-compaction-as-unsafe-when-salience-scores-are-computed-over-already-summarized-spa.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-hierarchical-summarization-compaction-as-unsafe-when-salience-scores-are-computed-over-already-summarized-spa.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-hierarchical-summarization-compaction-as-unsafe-when-salience-scores-are-computed-over-already-summarized-spa.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2145,
    "python_slice_tokens": 423,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"summarization loses information.\" That is expected and bounded. The failure is **salience score non-comparability across hierarchy levels**: a salience score computed over a leaf span (raw tool output, verbatim user turn) and a salience score computed over a branch summary (already a lossy projection of many leaves) are drawn from differe...",
    "what_was_observed": "A planning agent with a 200k-token window ran a three-level compactor: L0 raw spans, L1 summaries of 8–12 L0 spans, L2 summaries of 6–10 L1 nodes, root digest over L2. Salience was scored per node by an LLM judge returning 0–100, recomputed on every compaction trigger (85% window utilization). Eviction budget: drop lowest-salience nodes until utilization ≤ 60%. Trace of the failure, over four compaction cycles during...",
    "condition_of_validity": "The compaction is safe only when all of the following hold: - **Score provenance is tracked per node.** Each node carries the level at which its salience was computed and the scorer version. A node whose score was inherited from a parent (because it was merged) must be marked `score_inherited=True` and excluded from cross-level ranking. - **Eviction is level...",
    "decision_boundary": "The boundary is crossed at the moment the eviction policy compares a score from level *n* against a score from level *m ≠ n*. Concretely: - **Inside the boundary (safe):** rank L0 spans against L0 spans; rank L1 against L1; evict the lowest within the level that is over budget. Hierarchical summarization is then a *compression* operation layered on top of *w...",
    "operational_effect": "With level-partitioned eviction plus evidence pinning, the cycle-2 eviction of the config block does not occur: the block is pinned as evidence-class, and the L2 digest cannot outrank it into eviction because they are never compared. The cost is a higher steady-state token floor—pinned evidence accumulates and the 60% target is missed, triggering earlier and..."
  },
  "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": "cf5fbe228132346123bc54f700e0a85bb1c9c9091739f0ea19e42ad375db97d0",
    "verified_classes": [
      "CompactionInvariantError",
      "SpanClass",
      "Node"
    ],
    "verified_functions": [
      "select_evictions"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CompactionInvariantError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
