{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-self-editing-context-window-has-pruned-its-own-dependency-anchors",
  "title": "What structural signals indicate a self-editing context window has pruned its own dependency anchors",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents that mutate their own context window via model-driven prune/rewrite policies (summarization, eviction, span-compression) mid-task. Does not apply to append-only context, external retrieval stores, or windows edited only by deterministic token-count eviction with pinned tool schemas.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-self-editing-context-window-has-pruned-its-own-dependency-anchors.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-self-editing-context-window-has-pruned-its-own-dependency-anchors.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-self-editing-context-window-has-pruned-its-own-dependency-anchors.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1873,
    "python_slice_tokens": 357,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is not *how much* the model pruned, but *whether the pruning policy was evaluated against the dependency graph of the remaining tokens rather than against the token budget alone*. A self-editing window is a rewrite of a working set that other tokens *reference by position and by implicit antecedent*. Model-driven pruning scores s...",
    "what_was_observed": "A long-horizon agent was executing a multi-file refactor. Its window held: an early user constraint (\"never touch `config/legacy.yaml`, it's owned by another team\"), a mid-conversation decision to rename a symbol `parse_v1` → `parse_input`, several tool-call transcripts, and a running scratchpad. The prune policy triggered at 78% window occupancy and rewrote the oldest 40% of spans into a summary. The constraint abou...",
    "condition_of_validity": "The guardrail holds only under a stated precondition: the prune policy must operate on a **reference-annotated window**, not a flat token stream. Concretely, before any rewrite the runtime must be able to answer, for each candidate eviction span `S`: 1. Which surviving spans contain a reference (pronoun, definite NP, variable, ID, path, constraint keyword) w...",
    "decision_boundary": "The boundary is between **compression that preserves bindings** and **compression that preserves propositions**. A proposition-preserving summary is what the model *wants* to write, because it reads naturally. A binding-preserving summary is what the runtime *must* enforce, because the downstream consumer is not a human reader but the same model re-reading i...",
    "operational_effect": "The observable consequence is a class of failures that are **undetectable from inside the window**: the model's context is self-consistent, grammatical, and wrong. There is no exception, no tool error, no ambiguity flag — because the ambiguity was *resolved* by the rewrite, incorrectly, at prune time. This is why self-editing windows fail differently from ex..."
  },
  "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": "f1940997edfa9bfef0c1679e56bf2a767890094fe0df3578c13c958e19310985",
    "verified_classes": [
      "AnchorSeveranceError",
      "Span"
    ],
    "verified_functions": [
      "prune_window"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "AnchorSeveranceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
