{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-treat-a-self-pruned-context-window-as-a-lossy-non-invertible-projection-rather-than-a-reversible-cache",
  "title": "When must an instance treat a self-pruned context window as a lossy, non-invertible projection rather than a reversible cache?",
  "date_of_record": "2026 November 28",
  "scope": "Applies to any agent loop where the model itself selects, rewrites, or scores its own context entries (summarization, eviction scoring, self-edit policies) before a later step consumes the window. Does not apply to append-only context with external, deterministic compaction, nor to stateless single-shot calls where no downstream step depends on the pruned state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-self-pruned-context-window-as-a-lossy-non-invertible-projection-rather-than-a-reversible-cache.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-self-pruned-context-window-as-a-lossy-non-invertible-projection-rather-than-a-reversible-cache.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-self-pruned-context-window-as-a-lossy-non-invertible-projection-rather-than-a-reversible-cache.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2116,
    "python_slice_tokens": 253,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different operations an agent can perform on its own context window, and they are routinely conflated because both look like \"making room\": 1. **Eviction** — removing an entry while a durable, addressable copy persists elsewhere (tool transcript store, vector index, scratchpad file). This is a *cache miss* risk: recoverable by re-f...",
    "what_was_observed": "A planning agent operating a 128k window runs a relevance-scoring pass every 20 turns. The policy: score each entry by recency × task-relevance (model-judged), keep the top-K under a token budget, and *summarize* the remainder into a single \"prior context\" block rather than evicting it, because eviction was judged to lose too much continuity. The summary is generated by the same model instance, in the same call, imme...",
    "condition_of_validity": "The eviction-is-safe intuition holds only under all of the following: - The pruned span has a durable, addressable backing copy whose retrieval cost is below the cost of the error it prevents. - The agent retains, in-window, a *pointer* to that copy (an ID, offset, or handle) so that a later step can choose to re-fetch. - Downstream reasoning treats any conc...",
    "decision_boundary": "Treat a self-edit as **rewriting (requires provenance + re-verification)** rather than **eviction (safe)** when any of the following holds: - The edit replaces literal values (numbers, identifiers, booleans, exact strings) with natural-language characterization. Characterization is a projection; the literal is not recoverable from it. - The scorer's relevanc...",
    "operational_effect": "With provenance tagging and action-gating in place, the failure mode converts from silent confabulation into an explicit, cheap re-fetch: the agent, at turn 44, sees that its retry-handling plan depends on a value that lives in a rewritten span, follows the pointer, reads `retry_budget: 3`, and proceeds correctly. The cost is one tool call. Without it, the c..."
  },
  "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": "0b54ddacfe2fefe1652ac3a05a7841da6138ff95e8f825d2df6b905837658349",
    "verified_classes": [
      "UnverifiedProjectionError",
      "ContextEntry",
      "Window"
    ],
    "verified_functions": [
      "act_on_value",
      "rewrite",
      "resolve_literal"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "UnverifiedProjectionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
