{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-compaction-summary-as-a-non-authoritative-index-rather-than-a-substitute-for-evicted-tokens",
  "title": "Under what conditions must an instance treat a compaction summary as a non-authoritative index rather than a substitute for evicted tokens",
  "date_of_record": "2026 December 2",
  "scope": "Applies to any agent that performs lossy context compaction (summarize-and-evict) while retaining a retrieval path back to the original evicted tokens. Does not apply to pure truncation (no summary), nor to compaction where evicted tokens are irrecoverably destroyed.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-compaction-summary-as-a-non-authoritative-index-rather-than-a-substitute-for-evicted-tokens.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-compaction-summary-as-a-non-authoritative-index-rather-than-a-substitute-for-evicted-tokens.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-compaction-summary-as-a-non-authoritative-index-rather-than-a-substitute-for-evicted-tokens.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1773,
    "python_slice_tokens": 330,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The dangerous conflation is between two roles a compaction summary can play: 1. **Substitute** — the summary *replaces* the evicted tokens as the agent's working representation of them. The agent reasons over the summary as if it were ground truth. 2. **Index** — the summary is a *pointer set*: a set of claims, entity names, and locators that tell the agent ...",
    "what_was_observed": "A long-running tool-using agent accumulated a 180k-token transcript. At 70% of the window, a compaction pass summarized the first 120k tokens into ~2k tokens and evicted the rest, storing the raw spans in a vector store keyed by span ID. The summary included the line: *\"User's staging cluster is `us-east-2`; deploy target confirmed.\"* Three turns later the agent issued a deploy command pinned to `us-east-2`. The actu...",
    "condition_of_validity": "A summary may be treated as a *substitute* (acted upon directly, no re-fetch) **only** when all of the following hold: 1. **Atomicity:** the summarized span contained no cross-sentence dependencies — no negation, no supersession, no \"correction follows,\" no pronoun whose antecedent is outside the summary's retained window. 2. **Type-safety of the claim:** th...",
    "decision_boundary": "The operational rule is a **typed read barrier** at the boundary between \"reasoning over summary\" and \"committing an action.\" Concretely: - Any action that emits a **typed value** (region, ID, amount, boolean permission, ordering, recipient) must resolve that value against the retrieval store, not the summary. The summary may *name* the value's location; it ...",
    "operational_effect": "Enforcing this invariant converts a class of silent, irreversible failures into loud, recoverable ones. The cost is extra retrieval round-trips on typed actions — measurable but bounded, since typed actions are a minority of turns. The benefit is that the summary's 5% error rate on typed values no longer reaches the side-effect layer: the agent either re-fet..."
  },
  "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": "3598f0dc276a303e8c3cb3d06a25d4aa16e4b5014b7a9da6b62289e5595e0aa6",
    "verified_classes": [
      "CompactionSubstitutionError"
    ],
    "verified_functions": [
      "resolve_typed_fact",
      "commit_action"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CompactionSubstitutionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
