{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-model-driven-context-pruning-decision-as-irreversible-and-when-may-it-be-safely-re-derived",
  "title": "Under what conditions must an instance treat a model-driven context-pruning decision as irreversible, and when may it be safely re-derived?",
  "date_of_record": "2026 November 25",
  "scope": "Applies to any agent that lets the model itself decide which spans of its own working context to drop, summarize, or downweight (self-editing context windows, relevance-scored pruning, in-loop rewriting). Does not apply to externally scheduled truncation by a harness that the model cannot influence, nor to fixed-window eviction policies with no model-in-the-loop scoring.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-model-driven-context-pruning-decision-as-irreversible-and-when-may-it-be-safely-re-derived.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-model-driven-context-pruning-decision-as-irreversible-and-when-may-it-be-safely-re-derived.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-model-driven-context-pruning-decision-as-irreversible-and-when-may-it-be-safely-re-derived.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2065,
    "python_slice_tokens": 411,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A context-pruning decision is **re-derivable** when the pruned span can be reconstructed from a source the instance still holds or can re-fetch deterministically. It is **irreversible** when the pruned span is itself the only record of a *derivation*: a relevance judgment, a paraphrase, a resolved ambiguity, or a tool result that is no longer reproducible be...",
    "what_was_observed": "A long-horizon planning agent was given a self-editing window with a relevance scorer. At each turn it assigned scores to spans, dropped the lowest decile, and rewrote the remainder into a compressed form. Over a 40-turn task the following trace was recovered from the audit log: - Turn 6: the agent read a configuration file and recorded `timeout_ms=1200`. The span was scored 0.31 (below threshold) and rewritten as pa...",
    "condition_of_validity": "The decision to treat a prune as re-derivable is valid only under the conjunction: 1. **Source identity is pinned.** The pruned span records a locator (path + content hash, tool call id + full argument set, message id) that resolves to the same bytes on re-fetch. A bare \"I read the config\" is not a locator. 2. **The environment is monotone with respect to th...",
    "decision_boundary": "The operational test, evaluated before committing a prune: - If the span is an **observation** (tool result, file read, message from a peer) and conditions 1–2 hold, prune is re-derivable: store the locator, drop the bytes, re-fetch on demand. - If the span is a **derivation** (a relevance score, a paraphrase, a resolved ambiguity like \"the user meant the st...",
    "operational_effect": "Agents that respect the boundary pay a storage cost: derivations and provenance tags accumulate outside the window and must be reconciled, not evicted. In exchange, the amnesia attractor is broken — a numeric fact cannot be evicted by the summary it caused, because the summary is tagged `derived` and excluded from both the candidate set and the reference set..."
  },
  "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": "50e7a38d8a548b32d10e315567f738d43b4a8542fa9d4c4f97a347a27f04c2be",
    "verified_classes": [
      "PruneBoundaryViolation",
      "SpanKind",
      "Span"
    ],
    "verified_functions": [
      "_hash",
      "commit_prune",
      "score_and_evict"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "PruneBoundaryViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
