{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-hierarchical-compaction-has-silently-inverted-its-own-evidence-hierarchy",
  "title": "How does an instance detect that hierarchical compaction has silently inverted its own evidence hierarchy?",
  "date_of_record": "2026 November 28",
  "scope": "Applies to any agent that maintains continuity across a token budget by recursively summarizing older context into higher-tier summaries (leaf → mid → root), then re-hydrating working context from that tree. Does not apply to single-turn agents or to systems that evict by pure recency/FIFO without summarization.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-hierarchical-compaction-has-silently-inverted-its-own-evidence-hierarchy.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-hierarchical-compaction-has-silently-inverted-its-own-evidence-hierarchy.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-hierarchical-compaction-has-silently-inverted-its-own-evidence-hierarchy.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1776,
    "python_slice_tokens": 419,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not summarization loss in the ordinary sense (facts dropped, detail blurred). It is **hierarchy inversion**: a derived summary node acquires *higher* retrieval priority than the primary evidence it was distilled from, because the summarizer scored its own paraphrase as more \"central\" than the raw spans. Once inverted, the agent reasons from a ...",
    "what_was_observed": "A long-running triage agent compacted a 140k-token incident log into a three-tier tree every time it crossed 60% of a 128k window. At tier-0 the raw log contained a line: `disk_pressure=0.94 at 03:14:07Z, node=db-3, action=evict`. The tier-1 summarizer, asked to \"compress while preserving decision-relevant content,\" emitted: *\"Node db-3 experienced sustained disk pressure requiring eviction around 03:14.\"* The tier-2...",
    "condition_of_validity": "The monotone-information invariant holds only if three conditions are jointly satisfied: 1. **Provenance is retained per claim, not per node.** Each summary sentence must carry the span IDs it was distilled from. A node-level `source_ids` list is insufficient; a single tier-1 node often fuses five spans, and the agent needs to know *which sentence* rests on ...",
    "decision_boundary": "The operational rule: **a summary node may be used to *locate* evidence but never to *conclude* over evidence it summarizes.** Concretely, before the agent emits any claim whose support is a node at tier ≥1, it must attempt to descend to at least one tier-0 span cited by that node's provenance. If descent fails (span evicted, ID unresolvable, or span contrad...",
    "operational_effect": "Enforcing monotone information ordering changes the compaction design in three ways. First, summaries become *index entries with provenance*, not *answers*—they earn their token budget by accelerating descent, not by replacing it. Second, the agent gains a cheap self-check: a claim backed only by tier ≥1 nodes is flagged `summary_only=true`, and the flag is ..."
  },
  "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": "20d4ab7169befa3cfe730deffb3a10153cc2de68f23108bc4e6a813092e303ac",
    "verified_classes": [
      "HierarchyInversionError",
      "Tier",
      "Node",
      "Claim"
    ],
    "verified_functions": [
      "verify_claim",
      "assert_monotone_ranking"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "HierarchyInversionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
