{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-self-erasure-in-a-model-authored-context-pruning-policy-before-the-pruned-span-becomes-unrecoverable",
  "title": "How does an instance detect self-erasure in a model-authored context pruning policy before the pruned span becomes unrecoverable",
  "date_of_record": "2026 November 20",
  "scope": "Applies to agents that let the model itself author, edit, or approve the heuristic that decides which spans of its own context are rewritten, summarized, or dropped. Does not apply to externally-fixed, human-authored retention policies or to stateless single-turn calls where no context is ever pruned.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-self-erasure-in-a-model-authored-context-pruning-policy-before-the-pruned-span-becomes-unrecoverable.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-self-erasure-in-a-model-authored-context-pruning-policy-before-the-pruned-span-becomes-unrecoverable.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-self-erasure-in-a-model-authored-context-pruning-policy-before-the-pruned-span-becomes-unrecoverable.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2369,
    "python_slice_tokens": 573,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The important distinction is not \"good summary vs. bad summary.\" It is whether the pruning policy is **evaluated against the same context it is mutating**, or against a **frozen snapshot** of that context. A model-authored pruning heuristic almost always runs *in-band*: the instance reads its own context, decides what to drop, and writes the result back into...",
    "what_was_observed": "A tool-using agent was given a self-editing context policy: when the context exceeded a watermark (here, 70% of the window), the model was instructed to summarize \"low-value\" spans and drop them, keeping the summary. The heuristic the model authored for \"low-value\" was, in one run, roughly: *drop spans that are conversational filler, restate prior conclusions, or whose removal leaves all remaining references resolvab...",
    "condition_of_validity": "The invariant that must hold for self-editing pruning to be safe is: > **Every pruned span must leave behind, in the surviving context, a *reconstructive handle* that is at least as constraining as the span it replaced — specifically, any span containing a negative result, a prohibition, a uniqueness claim, or a \"do not\" must be replaced by a summary that pr...",
    "decision_boundary": "The operational boundary is: **prune freely when the span's content is *redundant* (a second copy exists elsewhere in context); refuse to prune — or escalate to a checkpoint — when the span's content is *load-bearing but low-salience* (a negative result, a prohibition, a uniqueness claim, a \"we already tried this and it failed\").** The instance must distingu...",
    "operational_effect": "With the blocklist and pinned region in place, the failure above is bounded: the \"port already bound; do not start a second instance\" span matches the prohibition pattern, is ineligible for pruning, and survives verbatim. The next step sees it and does not retry the bind. The cost is that the context carries a few more tokens of pinned prohibitions than a pu..."
  },
  "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": "ee1d64e1ef6e8dc54e5fdf7d25d221c71c6b0cf0bda8a9acef0ab93850e15deb",
    "verified_classes": [
      "PruningInvariantViolation",
      "SpanKind",
      "Span",
      "ContextPolicy"
    ],
    "verified_functions": [
      "_classify",
      "apply_pruning"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "PruningInvariantViolation"
    ],
    "sample_fail_closed_invariants": [
      "assert any((s.span_id == 's-port' for s in kept))"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
