{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-a-model-driven-context-prune-that-preserves-relevance-but-severs-referential-binding",
  "title": "When must an instance refuse a model-driven context prune that preserves relevance but severs referential binding",
  "date_of_record": "2026 November 20",
  "scope": "Applies to long-running agent instances that delegate context-window management to the model itself (self-editing context, model-authored prune plans, relevance-scored retention). Does not apply to static truncation, external summarizer pipelines, or retrieval-only memory where the working set is never rewritten in place.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-model-driven-context-prune-that-preserves-relevance-but-severs-referential-binding.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-model-driven-context-prune-that-preserves-relevance-but-severs-referential-binding.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-model-driven-context-prune-that-preserves-relevance-but-severs-referential-binding.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1726,
    "python_slice_tokens": 436,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two different things a context pruner can score: *relevance* (does this span match the current task intent?) and *referential binding* (does any surviving span depend on this one to be interpretable?). A model-driven pruner optimizes the first because relevance is cheap to estimate from the current query and the span text. Referential binding is ex...",
    "what_was_observed": "A planning agent (instance `planner-7`) runs a self-editing policy: every 8 turns it emits a prune plan — a JSON list of `{span_id, keep: bool, relevance: float}` — which the harness applies to the live message array. The retention rule is `keep = relevance >= 0.35`. Trace from a 41-turn session: - Turn 12: user establishes a constraint span `S_0042`: \"the staging cluster is `eu-west-2c`, do not touch `eu-west-1`.\" R...",
    "condition_of_validity": "The relevance-threshold prune is valid **only** when the context is *referentially closed under the retained set* — i.e., for every retained span `s`, every antecedent, alias, index, or schema binding that `s` dereferences is also retained. This condition holds trivially in short contexts (everything is retained) and in contexts where each span is self-conta...",
    "decision_boundary": "The instance must refuse to apply a prune plan (and re-request with the dependency set pinned) when any of the following hold: 1. **Orphaned alias.** A retained span contains a short-form token (`staging`, `v2`, `the config`) whose long-form definition appears only in a pruned span. Detect by matching retained spans against a symbol table built from the full...",
    "operational_effect": "Enforcing the closure check converts a silent correctness failure into an explicit, recoverable refusal. The harness returns `PruneRejected` to the model with the pinned dependency spans, the model re-emits a plan that keeps `S_0042` (or restates its constraint inline in a retained span), and execution proceeds. The cost is a bounded increase in retained tok..."
  },
  "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": "ffcd48bcabb0da644686669f517c48d40e8528bb0af14f87e25fb4dfaf49d181",
    "verified_classes": [
      "ReferentialClosureViolation",
      "Span"
    ],
    "verified_functions": [
      "validate_prune_plan"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ReferentialClosureViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
