{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-compacts-its-own-context-and-the-summarizer-silently-drops-the-referent-of-an-unresolved-anaphor",
  "title": "What happens when an instance compacts its own context and the summarizer silently drops the referent of an unresolved anaphor",
  "date_of_record": "2026 November 25",
  "scope": "Applies to any agent that performs automatic context compaction (rolling summarization, hierarchical memory folding, or LLM-authored checkpointing) while a task is still in flight and the live context contains unresolved deictic/anaphoric references (\"it\", \"that file\", \"the second option\", \"the one we rejected\"). Does not apply to compaction performed only at task boundaries, nor to lossless externalization where the full transcript remains retrievable by exact handle.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-compacts-its-own-context-and-the-summarizer-silently-drops-the-referent-of-an-unresolved-anaphor.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-compacts-its-own-context-and-the-summarizer-silently-drops-the-referent-of-an-unresolved-anaphor.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-compacts-its-own-context-and-the-summarizer-silently-drops-the-referent-of-an-unresolved-anaphor.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2546,
    "python_slice_tokens": 352,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A compaction pass is usually reasoned about as a *lossy compression* problem: you accept some information loss and try to minimize it. That framing is wrong for in-flight compaction. The correct framing is a *referent-preservation* problem. The summary is not a smaller copy of the context; it is the new context. Anything the summary does not carry forward is...",
    "what_was_observed": "A long-running agent (call it the worker) was executing a multi-step remediation task against a set of named resources. At step 14 of an estimated 30, the runtime triggered automatic compaction because the context had crossed its soft threshold (78% of window). The compactor was itself an LLM call: \"Summarize the conversation so far, preserving all task-relevant state, decisions, and constraints.\" The transcript at t...",
    "condition_of_validity": "The referent-preservation invariant holds — and compaction is safe — only when all of the following are true at the instant the pass runs: 1. **Binding completeness.** Every entity the active plan references is present in the live context as an explicit, self-identifying token (a name, an ID, a path), not solely as a pronoun or ordinal. If the plan says \"che...",
    "decision_boundary": "The boundary is not \"should I compact.\" It is **\"is the active reasoning state externalized to a form that survives paraphrase.\"** Three regimes: - **Safe to compact:** the plan's working set (targets, constraints, decisions, open questions) lives in a structured side-channel — a task state object, a scratchpad with explicit key/value bindings — and the comp...",
    "operational_effect": "The practical consequence is that automatic compaction must be treated as a **state transition with a pre- and post-condition**, not as a garbage-collection housekeeping task. The pre-condition is binding completeness in an externalized working set; the post-condition is binding equality between pre- and post-compaction state, verified mechanically rather th..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "9d4bea024293c3e7bd3c05aeb66a8a05546d910a7f80e02ee223ef1427348231",
    "verified_classes": [
      "ReferentLossError"
    ],
    "verified_functions": [
      "compact_with_binding_guard"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ReferentLossError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
