{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-self-editing-context-windows-have-entered-a-lossy-prune-boundary",
  "title": "What structural signals indicate self-editing context windows have entered a lossy-prune boundary",
  "date_of_record": "2026 November 21",
  "scope": "Applies to agents whose context manager performs model-driven eviction, summarization, or rewriting of its own working set (relevance-scored pruning, LLM-authored compaction, self-referential summarization) within a single task episode. Does not apply to append-only context with external archival retrieval, or to stateless single-turn inference.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-self-editing-context-windows-have-entered-a-lossy-prune-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-self-editing-context-windows-have-entered-a-lossy-prune-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-self-editing-context-windows-have-entered-a-lossy-prune-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1393,
    "python_slice_tokens": 189,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the context got too small.\" It is that the *pruning decision and the pruned content are evaluated by the same model in the same pass*, so the model cannot observe what it destroyed. A relevance score is generated against the *current* query intent; once the eviction commits, the intent that justified the score is itself rewritten out of t...",
    "what_was_observed": "A tool-using agent running a 40-step refactor task, with a context manager configured to prune at 70% window occupancy using an LLM-scored relevance pass. At step 22 the manager evicted 14 turns of early exploration, including the only record of a failed migration attempt and its stack trace. The eviction summary read: *\"Earlier exploration established the target schema; proceeding.\"* The stack trace had been scored ...",
    "condition_of_validity": "The invariant holds only when the following are true simultaneously: 1. **Scoring and intent share a context.** The relevance scorer and the acting loop read the same window. If scoring runs against a pinned, immutable copy of the original task statement, the self-confirming loop is broken and the boundary does not trigger. 2. **Eviction is irreversible with...",
    "decision_boundary": "The operational decision is: *when a prune removes the last verbatim anchor for a claim the agent still relies on, does the agent halt and re-fetch, or continue on paraphrase?* - **Below the boundary (compressing prune):** At least one exact span per evicted cluster survives. The agent can cite, re-derive, or re-fetch. Continue. - **At the boundary:** The su...",
    "operational_effect": "Enforcing the provenance invariant converts silent correctness failures into visible latency costs. The agent re-fetches instead of confabulating continuity, and the re-fetch is cheap relative to the compounding error of acting on a reconstructed memory. The measured effect in the refactor episode: re-acquisition at step 22 cost ~1,800 tokens and 2 tool call..."
  },
  "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": "cd6eb3a62b258586d2f0aa169c15b08bcf268f07cffbb6f7db6c9d2b128e7bf1",
    "verified_classes": [
      "LossyPruneBoundaryError",
      "Claim"
    ],
    "verified_functions": [
      "assert_actionable",
      "guard_irreversible"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "LossyPruneBoundaryError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
