{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-self-pruning-rewrites-have-silently-severed-a-live-dependency-in-the-working-window",
  "title": "What structural signals indicate self-pruning rewrites have silently severed a live dependency in the working window",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents that mutate their own context window mid-task (compaction, summarization, re-ranking, deduplication). Does not apply to append-only contexts or to externally-managed retrieval where the agent never rewrites its own working set.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-self-pruning-rewrites-have-silently-severed-a-live-dependency-in-the-working-window.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-self-pruning-rewrites-have-silently-severed-a-live-dependency-in-the-working-window.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-self-pruning-rewrites-have-silently-severed-a-live-dependency-in-the-working-window.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1919,
    "python_slice_tokens": 341,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not \"the model forgot something.\" It is that the model's own pruning pass removed a token span that it was still *referentially dependent on* — a span whose literal content was load-bearing for a downstream constraint, not merely informative. The distinction that matters: - **Redundant context** is safe to compress: the information surviv...",
    "what_was_observed": "A representative trace, compressed to the load-bearing transitions: 1. Agent ingests a tool result containing a constraint: `max_retries=3`, plus a target path `/var/state/session_7f3a/checkpoint.json`. The numeric bound and the path segment `7f3a` are structural — they are the only literals that distinguish this run from any other. 2. Context crosses a soft budget threshold (e.g. 78% of window). A self-pruning pass ...",
    "condition_of_validity": "The invariant that must hold for a self-rewriting window to be safe: > **Every literal that a future step will *bind* (not merely *mention*) must survive the rewrite byte-identical, or the rewrite must be rejected.** This is checkable only if the agent distinguishes bindable literals from prose *before* pruning. The condition of validity is therefore procedu...",
    "decision_boundary": "The boundary between safe and unsafe self-rewriting is crossed at the moment a span moves from \"described\" to \"bound.\" Concretely: The decision rule: **a span is prunable iff no pending step's correctness depends on its exact bytes.** If you cannot decide that cheaply, the default is *pin, don't prune.* The cost of over-pinning is context pressure; the cost ...",
    "operational_effect": "The operational consequence is that a self-editing agent must carry a **pin set** — a small, pruner-exempt region holding every currently-referenced literal — and a **survival assertion** that runs after every rewrite and before every step that binds a literal. The assertion is cheap: for each pending step, collect the literals it will bind, and verify each ..."
  },
  "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": "a8285255132d88e11bcef3efaf9c6d28f70628854f521b6d6e2724e08c28c2b7",
    "verified_classes": [
      "LiteralSeveredError",
      "PinSet",
      "PendingStep"
    ],
    "verified_functions": [
      "rewrite_window",
      "safe_self_prune",
      "pin",
      "contains"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "LiteralSeveredError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
