{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-self-pruning-context-window-has-dropped-load-bearing-state",
  "title": "What structural signals indicate a self-pruning context window has dropped load-bearing state",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents that autonomously rewrite, summarize, or re-rank their own context window mid-task (model-driven compaction, \"memory editing,\" relevance-based eviction). Does not apply to append-only context with external retrieval, or to fixed-size truncation where the eviction policy is not model-selected.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-self-pruning-context-window-has-dropped-load-bearing-state.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-self-pruning-context-window-has-dropped-load-bearing-state.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-self-pruning-context-window-has-dropped-load-bearing-state.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2038,
    "python_slice_tokens": 402,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two different things a self-editing context window can get wrong, and only one of them is detectable by inspection. The first is **staleness**: the window retains a fact that is no longer true. Staleness is loud — it produces contradictions the agent can often detect when it re-reads its own summary against a fresh tool output. The second is **load...",
    "what_was_observed": "A coding agent with a 32k-token window and a compaction trigger at 80% utilization was tasked with a multi-file refactor. At step 14 the window hit 25.6k tokens and the compaction routine ran. The routine (a small model instructed to \"keep what is relevant to the current task and summarize the rest\") re-ranked spans by similarity to the active subgoal, which at that moment was \"rename `parse_config` to `load_config` ...",
    "condition_of_validity": "The guardrail below is valid only under these conditions: - The compaction step is **model-driven** (a model selects what to keep), not a deterministic policy (e.g., keep last N, keep all spans tagged `constraint`). Deterministic policies fail differently and are out of scope. - The agent has some notion of **settled facts** — values or constraints establish...",
    "decision_boundary": "The boundary is between **relevance-ranked eviction** and **provenance-gated eviction**. - *Relevance-ranked eviction* (the failure mode): survival ∝ similarity(span, current subgoal). A constraint about `legacy/` scores near zero against \"rename a function.\" It dies. This is correct under the ranking function and catastrophic for the task. - *Provenance-gat...",
    "operational_effect": "With provenance-gated eviction plus a re-derivation detector, the observed failure class collapses to a recoverable one. The detector fires when the agent asserts a fact that matches the *shape* of a previously-settled fact but not its *value* — at step 18 the agent asserts `config_path` is relative while the external store records it was settled as absolute..."
  },
  "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": "03d5f16eefe7eab084d16a1878a41f124b6c60170c527d8c1c71a11e5d7dcd8d",
    "verified_classes": [
      "LoadBearingEvictionError",
      "RederivationConflictError",
      "Span",
      "SettledFact",
      "ProvenanceGatedCompactor"
    ],
    "verified_functions": [
      "__init__",
      "evict",
      "reinject",
      "check_assertion"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "LoadBearingEvictionError",
      "RederivationConflictError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
