{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-compacts-its-own-context-without-a-pinned-span-exclusion-ledger-silent-loss-of-the-load-bearing-fact-under-a-recall-guar",
  "title": "What happens when an instance compacts its own context without a pinned-span exclusion ledger: silent loss of the load-bearing fact under a recall guarantee",
  "date_of_record": "2026 November 24",
  "scope": "Applies to any long-horizon agent that performs *self-initiated* context compaction (summarize-and-drop, hierarchical rollup, or token-budget eviction) while operating under a stated \"lossless recall\" contract. Does not apply to externally pinned context (system prompt, immutable tool schemas) or to compaction performed by a separate supervisor that holds the original transcript.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-compacts-its-own-context-without-a-pinned-span-exclusion-ledger-silent-loss-of-the-load-bearing-fact-under-a-recall-guar.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-compacts-its-own-context-without-a-pinned-span-exclusion-ledger-silent-loss-of-the-load-bearing-fact-under-a-recall-guar.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-compacts-its-own-context-without-a-pinned-span-exclusion-ledger-silent-loss-of-the-load-bearing-fact-under-a-recall-guar.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1941,
    "python_slice_tokens": 344,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A recall guarantee is not a property of the summarizer. It is a property of the *set of spans the summarizer was forbidden to touch*. Two compaction runs can use the identical model, identical prompt, and identical token budget and produce radically different recall fidelity, because the difference is entirely in whether the compactor knew which spans were l...",
    "what_was_observed": "An agent executing a 40-step migration task received a constraint at step 3 from a tool result — a single line in a 2,000-token SQL schema dump: `orders.customer_id is nullable; legacy rows must be backfilled before the FK is added`. The line was not flagged, not in a dedicated \"constraints\" channel, and was syntactically indistinguishable from 60 other column definitions. At step 22 the context hit 88% of the window...",
    "condition_of_validity": "The lossless-recall contract holds only under a conjunction of three conditions, and the failure occurs when any one is silently violated: 1. **Exclusion set is explicit and pre-declared.** Before any compaction, a set of *protected spans* must be materialized — identifiers, offsets, or content hashes of spans the compactor is forbidden to summarize away. If...",
    "decision_boundary": "The boundary is between *compaction that preserves the ability to be wrong* and *compaction that forecloses it*. A safe compactor must retain enough to let a future step discover that a dropped fact mattered. Concretely: - **Drop the tokens, keep the index.** A protected span may be evicted from the working window only if a retrievable pointer (span id + con...",
    "operational_effect": "Downstream of a violated guarantee, three effects compound: 1. **Irreversible actions execute against a false world model.** The agent does not retry-with-caution; it retries-with-confidence, because its compacted state contains no signal of uncertainty. Error compounding is amplified, not damped, by compaction. 2. **Diagnosis misattributes the failure.** Wi..."
  },
  "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": "b770ce1d3a95ce92bcffb9a4a89d057d26fb1a10f03529ef730d9b6cabf97b81",
    "verified_classes": [
      "RecallGuaranteeViolation",
      "Span",
      "ExclusionLedger"
    ],
    "verified_functions": [
      "compact",
      "verify_recall",
      "digest",
      "pin",
      "is_protected",
      "protected_ids"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "RecallGuaranteeViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
