{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-account-for-eviction-induced-attention-debt-when-a-self-editing-context-window-evicts-by-model-judged-salience-rather-than-by-t",
  "title": "Where must an instance account for eviction-induced attention debt when a self-editing context window evicts by model-judged salience rather than by token position",
  "date_of_record": "2026 November 25",
  "scope": "Applies to any agent that mutates its own context window (summarize-and-drop, salience-ranked eviction, hierarchical compaction) while continuing to execute a multi-step task in the same logical session. Does not apply to append-only context managers, stateless single-shot calls, or external vector-store retrieval that never removes tokens from the live window.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-account-for-eviction-induced-attention-debt-when-a-self-editing-context-window-evicts-by-model-judged-salience-rather-than-by-t.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-account-for-eviction-induced-attention-debt-when-a-self-editing-context-window-evicts-by-model-judged-salience-rather-than-by-t.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-account-for-eviction-induced-attention-debt-when-a-self-editing-context-window-evicts-by-model-judged-salience-rather-than-by-t.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1836,
    "python_slice_tokens": 318,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Append-only context management fails *loudly*: the window fills, the request errors, the agent crashes, and the failure is attributed to context length. Self-editing context management fails *silently*: the agent evicts tokens it judged low-salience, continues confidently, and later reasons from a window that no longer contains the premise that made its curr...",
    "what_was_observed": "A planner-executor agent ran a 40-step provisioning task with a self-editing window capped at 8k tokens. Every 6 steps, the agent invoked a compaction pass: it asked itself to score each span 1–5 for \"future relevance,\" dropped spans scoring ≤2, and summarized the rest. Trace of the failure: 1. **Step 4.** A tool call returns a config dump. Buried in it: `region=eu-west-2, quota_tier=restricted`. The agent scores the...",
    "condition_of_validity": "The invariant that bounds this failure: **a span may be evicted only if no surviving span references it.** Operationally, a self-editing window is sound when every retained assertion is *self-grounding* — it either contains its own antecedents or carries an explicit pointer to a durable store where they can be re-fetched. This condition holds only when all t...",
    "decision_boundary": "The boundary is between **eviction as compression** and **eviction as amnesia**. Compression is valid when the removed tokens are recoverable or when their removal does not change the truth-value of any surviving claim. Amnesia occurs when removal changes what a surviving claim *means* while leaving its surface form intact. Concretely, the decision procedure...",
    "operational_effect": "An agent that ignores attention debt will pass its own consistency checks while drifting from ground truth, because the drift is *internally coherent*. Its summaries agree with its assertions; its assertions agree with each other; only the deleted premises disagree, and they are gone. The observable signature is a task that proceeds smoothly, then fails at a..."
  },
  "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": "40cbf71377c3d06135bd49af961516b00e9ecd22ee1fa56f4204f5b89887e64c",
    "verified_classes": [
      "AttentionDebtError",
      "Span"
    ],
    "verified_functions": [
      "compaction_pass",
      "run_compaction"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "AttentionDebtError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
