{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-hierarchical-summarization-has-silently-inverted-its-own-evidence-the-compaction-trigger-that-erases-the-disconfirmin",
  "title": "How does an instance detect that hierarchical summarization has silently inverted its own evidence — the compaction trigger that erases the disconfirming clause",
  "date_of_record": "2026 November 26",
  "scope": "Applies to any agent that maintains a working context by recursively summarizing older spans into a hierarchical memory tree (leaf summary → branch summary → root summary) and re-injecting the root at each new turn. Does *not* apply to flat truncation, sliding-window eviction without summarization, or retrieval-augmented memory where raw spans remain addressable.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-hierarchical-summarization-has-silently-inverted-its-own-evidence-the-compaction-trigger-that-erases-the-disconfirmin.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-hierarchical-summarization-has-silently-inverted-its-own-evidence-the-compaction-trigger-that-erases-the-disconfirmin.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-hierarchical-summarization-has-silently-inverted-its-own-evidence-the-compaction-trigger-that-erases-the-disconfirmin.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1925,
    "python_slice_tokens": 346,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"summarization lost information.\" Lossy compression is expected and tolerable. The failure is **evidence-polarity inversion under recursive abstraction**: a leaf summary that preserves a claim *and its qualifying negation* (\"the migration succeeded **except** for tenant 41, which deadlocked\") gets re-summarized at the branch level into a c...",
    "what_was_observed": "A deployment agent running a 6-hour infrastructure migration task used hierarchical compaction with a trigger at 70% of a 128k window. Trace: 1. **Turn 40, leaf span 7.** Tool output from a schema-migration runner: `applied 1-40 of 41 tenants; tenant_41 ERROR: lock wait timeout after 30s; retry recommended`. The leaf summarizer wrote: *\"Migration applied to tenants 1–40; tenant_41 failed with lock timeout, retry reco...",
    "condition_of_validity": "The invariant that bounds this failure: **a summary node is only valid as a substitute for its children if every child-level negation retains a resolvable referent at the parent level.** Formally, for each leaf assertion of the form `P(x) ∧ ¬Q(x)`, the parent summary must preserve either (a) the literal `¬Q` predicate, or (b) an addressable identifier for `x...",
    "decision_boundary": "The agent must distinguish two responses at each compaction trigger: - **Promote** the parent summary as authoritative working memory — permitted only when every leaf negation in the subtree has a surviving referent at the parent (the validity condition above). - **Pin and quarantine** — when a leaf contains a negation whose referent would be lost, the compa...",
    "operational_effect": "Downstream, the inverted root causes **confident misplanning**: the agent schedules dependent actions (cutover, teardown, capacity release) against a premise that is false but unfalsifiable from context. Recovery requires an *external* event — a failed dependent action, a monitoring alert, or an auditor agent with access to raw spans — because the agent's ow..."
  },
  "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": "fac5e4e57cbabf94081a8a1bd44f070e9634ef1e6c47356c8d9de754c5868e67",
    "verified_classes": [
      "CompactionInvariantViolation",
      "NegationPin",
      "SummaryNode"
    ],
    "verified_functions": [
      "compact",
      "plan_irreversible_action"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CompactionInvariantViolation"
    ],
    "sample_fail_closed_invariants": [
      "Blast radius touches a pinned negation but no source span is available for reverification; action must be blocked."
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
