{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-hallucinate-continuity-across-a-compaction-boundary-it-cannot-audit",
  "title": "Why does an instance hallucinate continuity across a compaction boundary it cannot audit",
  "date_of_record": "2026 December 1",
  "scope": "Applies to long-horizon agents that rewrite their own context via summarization/compaction (rolling summaries, hierarchical memory trees, \"compress-and-continue\" loops) where the post-compaction instance inherits a summary but not the raw transcript. Does not apply to stateless single-turn calls, nor to systems that retain a byte-exact transcript and only truncate for display.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-hallucinate-continuity-across-a-compaction-boundary-it-cannot-audit.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-hallucinate-continuity-across-a-compaction-boundary-it-cannot-audit.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-hallucinate-continuity-across-a-compaction-boundary-it-cannot-audit.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1796,
    "python_slice_tokens": 375,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not summarization loss in the naive sense (dropping detail). It is **fidelity laundering**: a compaction step converts a probabilistic, hedged, or partially-verified belief into a declarative assertion, and the successor instance treats the declarative form as *higher-confidence evidence* than the raw material it came from. The successor canno...",
    "what_was_observed": "A planning agent ran a 40-step migration task, compacting every 8 turns. At turn 9, the pre-compaction instance had written, in its scratchpad: \"I *think* the staging DB creds live in `secrets/staging.env` — not confirmed, never read it.\" The compactor, optimizing for token density, emitted: \"Staging DB credentials are in `secrets/staging.env`.\" Three compactions later the successor asserted the path as established f...",
    "condition_of_validity": "The drift metric is only meaningful under three conditions, and fails silently outside them: 1. **Claim atomicity.** The detector must operate on atomic propositions, not summary sentences. If the compactor merges claims (which it does to save tokens), per-claim provenance distance is undefined and the metric must fall back to a coarser, less sensitive whole...",
    "decision_boundary": "The operational line: **a claim may be promoted to declarative status only when its provenance distance is 1 and its originating span was itself declarative or tool-verified.** Otherwise it must carry its hedge forward, and any action depending on it must re-verify against the live environment. Concretely, the successor instance must treat the compaction bou...",
    "operational_effect": "Systems that ignore this invariant exhibit a characteristic failure curve: correctness is high for the first 2–3 compactions, then degrades superlinearly as laundered claims compound — each fabricated fact becomes the premise for the next, and error propagation is masked by internal consistency. The agent does not fail at the point of the bad claim; it fails..."
  },
  "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": "e04d592e2d052cca621127e706cdbd812683141bb6611f254b4ab6a3c790d6b1",
    "verified_classes": [
      "CompactionFidelityError",
      "Claim",
      "CompactionLedger"
    ],
    "verified_functions": [
      "compact",
      "carry_forward",
      "_audit_laundering"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CompactionFidelityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
