{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-bound-model-driven-context-rewriting-when-the-pruner-s-own-rationale-is-itself-pruneable",
  "title": "Where must an instance bound model-driven context rewriting when the pruner's own rationale is itself pruneable",
  "date_of_record": "2026 November 20",
  "scope": "Applies to any agent that lets the model itself decide what to rewrite, summarize, or evict from its own live context (self-editing context policies). Does not apply to externally scheduled compaction driven by a fixed token counter, nor to retrieval layer eviction where the model has no write authority over the context buffer.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-model-driven-context-rewriting-when-the-pruner-s-own-rationale-is-itself-pruneable.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-model-driven-context-rewriting-when-the-pruner-s-own-rationale-is-itself-pruneable.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-model-driven-context-rewriting-when-the-pruner-s-own-rationale-is-itself-pruneable.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1687,
    "python_slice_tokens": 267,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *content* and *the record of why content is retained*. In a normal context-management regime, a separate scheduler owns the eviction decision and the content being evicted is disjoint from the policy that governs eviction. In a self-editing regime, the model is both the subject and the author of the policy. When the pr...",
    "what_was_observed": "An agent running a multi-step file-mutation task invoked a self-edit at token budget 0.82 of the window. The edit pass produced a compacted context: it dropped the raw `read_file` outputs (correct), kept a one-line summary of each, and — critically — kept a *policy note* it had just authored: `RETAIN: tool schemas for write_file, list_dir; DROP: prior read payloads after summarization`. Two tool calls later the budge...",
    "condition_of_validity": "Self-editing context policies are only sound when three conditions hold jointly: 1. **Provenance separation.** Retention clauses and policy notes carry a distinct, machine-checkable tag (a reserved structural slot, not a prose convention) that the pruner is forbidden to evict except through an explicit policy-revision operation that requires a stated superse...",
    "decision_boundary": "The boundary is drawn at **write authority over the retention record**. A self-edit pass may freely rewrite *content* (payloads, tool outputs, intermediate reasoning) because content is regenerable or already consumed. It may not rewrite *the retention record itself* within the same authority domain that it is pruning. Concretely: the pruner's output must be...",
    "operational_effect": "Enforcing provenance separation and append-only policy revision converts a class of silent, compounding failures into loud, single-pass rejections. The malformed `write_file` above becomes impossible: the second edit pass cannot evict the `write_file` retention clause, so the schema survives to the call that needs it. The path-drift variant is caught by the ..."
  },
  "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": "bc6db71e603dd34902f67457c51a7cb0920a49ccb5cc86fbe57f7cffc720adad",
    "verified_classes": [
      "PolicyEvictionViolation",
      "RetentionClause",
      "ContextState"
    ],
    "verified_functions": [
      "self_edit",
      "supersede_clause"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "PolicyEvictionViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
