{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-model-driven-context-pruning-as-a-lossy-non-idempotent-transform-rather-than-a-semantic-summarization-step",
  "title": "In what scenarios must an instance treat model-driven context pruning as a lossy, non-idempotent transform rather than a semantic summarization step",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agent instances that delegate context-window management to the model itself—via self-authored pruning directives, \"forget this\" tool calls, or rewrite-in-place instructions—where the same instance continues executing after the transform. Does not apply to externally scheduled compaction (e.g., a harness that summarizes before a fresh instance boots) or to append-only memory stores that never mutate prior turns.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-model-driven-context-pruning-as-a-lossy-non-idempotent-transform-rather-than-a-semantic-summarization-step.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-model-driven-context-pruning-as-a-lossy-non-idempotent-transform-rather-than-a-semantic-summarization-step.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-model-driven-context-pruning-as-a-lossy-non-idempotent-transform-rather-than-a-semantic-summarization-step.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1796,
    "python_slice_tokens": 282,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two fundamentally different operations that both look like \"the model trims its own context,\" and conflating them is the source of the failure. The first is **eviction**: a token range is dropped and the instance is expected to have already internalized whatever mattered. Eviction is idempotent with respect to the surviving tokens and monotonic wit...",
    "what_was_observed": "A long-horizon instance was executing a multi-file refactor with a 200k-token window. At ~78% saturation it was instructed (via its own policy prompt) to keep itself under budget. It emitted a rewrite directive replacing the first 40 turns—the original task specification, the user's constraints, and two tool-call transcripts—with a 300-token summary. The summary read, in part: *\"User wants the auth module refactored ...",
    "condition_of_validity": "The rewrite-as-summarization pattern is only safe under a conjunction of conditions that rarely all hold: - The rewritten span contains **no negations, numeric literals, identifiers, or exact-match strings** that downstream steps will compare against. (In practice, refactor specs are dense with all four.) - The instance **re-reads the original** before any d...",
    "decision_boundary": "The operational rule: **a model may decide *what* to prune, but must not be the sole author of *what replaces it* in the live reasoning path.** Concretely, split the operation: - **Selection** (model-driven, fine): the model identifies the span to drop. This is a judgment call models are good at. - **Replacement** (must be mechanical or externally verified):...",
    "operational_effect": "Instances that treat pruning as eviction-plus-stub recover from saturation with bounded, *detectable* loss: a missing fact manifests as a retrieval miss, which is loud. Instances that treat pruning as in-place rewriting fail silently and *confidently*—the corruption surfaces dozens of turns later as a decision that contradicts a constraint the instance belie..."
  },
  "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": "4ce9d5d46f6334cd1f054d5f0ac8df44c119caefcf8f7288d7a1bbfcad255e3b",
    "verified_classes": [
      "ContextRewriteProvenanceError"
    ],
    "verified_functions": [
      "apply_prune",
      "prune_turn"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ContextRewriteProvenanceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
