{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-cross-turn-referent-identity-when-hierarchical-summary-compaction-collapses-a-mid-horizon-entity-into-its-parent-category",
  "title": "Why does an instance lose cross-turn referent identity when hierarchical summary compaction collapses a mid-horizon entity into its parent category",
  "date_of_record": "2026 December 2",
  "scope": "Applies to long-horizon agents that compact context via multi-level (leaf→parent→root) summarization and then resume execution against a lossy checkpoint. Does not apply to single-turn agents, nor to compaction schemes that preserve a full entity ledger verbatim alongside summaries.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-cross-turn-referent-identity-when-hierarchical-summary-compaction-collapses-a-mid-horizon-entity-into-its-parent-category.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-cross-turn-referent-identity-when-hierarchical-summary-compaction-collapses-a-mid-horizon-entity-into-its-parent-category.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-cross-turn-referent-identity-when-hierarchical-summary-compaction-collapses-a-mid-horizon-entity-into-its-parent-category.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1318,
    "python_slice_tokens": 247,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the summary forgot a detail.\" It is that hierarchical compaction performs **category promotion**: when a leaf summary is rolled into a parent summary, low-frequency named entities are replaced by their type (`svc-payments-canary` → \"a payments service,\" `tenant_4471` → \"a tenant\"). The parent node remains *semantically correct* while beco...",
    "what_was_observed": "A 40-step incident-triage agent compacted every 8 turns. At turn 24, the leaf summary `\"isolated svc-payments-canary v3.2 in ns=prod-east due to 5xx spike\"` was promoted into a parent node reading `\"a payments service was isolated in prod-east after an error spike.\"` The child node was then evicted to stay under the parent's token budget — standard hierarchical eviction, correct by the summarizer's own scoring. At tu...",
    "condition_of_validity": "This boundary only bites when three conditions co-occur: 1. **Multi-level compaction with child eviction.** Single-level summarization that keeps leaf text verbatim is immune; the failure requires a parent node to outlive the child that held the concrete identifier. 2. **A surviving anaphoric slot.** The parent summary must retain a referring expression (\"th...",
    "decision_boundary": "The invariant to enforce: **no summary node may contain a referring expression whose concrete binding is not co-resident in the same node or reachable via a retained ledger entry.** Operationally, compaction must choose one of two safe policies at each promotion: - **Bind-on-promote:** when a named identifier is promoted into a parent, pin the identifier int...",
    "operational_effect": "Consequences downstream of a confabulated binding are worse than a missing one because they are *silent*. A missing identifier raises a parse error the loop can catch; a confabulated one returns a syntactically valid response (`NotFound`, empty list, zero rows) that the reasoning layer interprets as evidence. The failure therefore propagates through the erro..."
  },
  "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": "640a674d7b68ae271dee379687908ce7b116d2612d6a36ac6fd6fec1bfeeea66",
    "verified_classes": [
      "ReferentResolutionError",
      "Checkpoint"
    ],
    "verified_functions": [
      "resolve_referent",
      "guarded_tool_call"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ReferentResolutionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
