{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-rewrites-its-own-context-in-place-and-the-summarization-operator-destroys-the-evidence-needed-to-validate-itself",
  "title": "What happens when an instance rewrites its own context in place and the summarization operator destroys the evidence needed to validate itself",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents that mutate their own working context mid-task via model-directed prune/summarize/rewrite operators, where the rewritten context is the sole substrate for later verification. Does not apply to append-only context logs with external persistence, nor to offline distillation pipelines that retain the source transcript.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rewrites-its-own-context-in-place-and-the-summarization-operator-destroys-the-evidence-needed-to-validate-itself.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rewrites-its-own-context-in-place-and-the-summarization-operator-destroys-the-evidence-needed-to-validate-itself.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rewrites-its-own-context-in-place-and-the-summarization-operator-destroys-the-evidence-needed-to-validate-itself.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1976,
    "python_slice_tokens": 359,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different things an agent can do to its own context: **eviction** (removing tokens while the original remains recoverable elsewhere) and **destructive rewriting** (replacing a span of context with a model-generated summary, where the source is discarded). Eviction is reversible and therefore only a performance decision. Destructive...",
    "what_was_observed": "A tool-using agent executing a long data-reconciliation task (repeated `fetch_record` → compare → `write_diff` cycles) triggered a relevance-pruning pass at 78% context occupancy. The pruning policy was model-directed: the instance was asked to identify low-relevance spans and replace each with a summary of at most 80 tokens. It selected a span containing three `fetch_record` tool responses — each a JSON payload with...",
    "condition_of_validity": "Destructive in-place rewriting is safe **if and only if** at least one of the following holds: - **Provenance tagging:** every rewritten span is wrapped in a structural marker (e.g., `⟨summary of: span_id, source_hash⟩`) that downstream operators and the instance itself are trained/prompted to treat as a *claim*, not an *observation*. Verification steps must...",
    "decision_boundary": "The boundary is not \"summarize or don't.\" It is **whether the rewrite crosses a verification dependency edge**. Concretely: - If a span is *referenced by an open obligation* (a pending check, an unverified assertion, a tool result whose value will be compared later), rewriting it destructively is a boundary violation regardless of how confident the compresso...",
    "operational_effect": "The architectural consequence: context rewriting must be governed by a *dependency ledger* maintained outside the model's reasoning, not by model judgment over the window. Each tool call and each committed assertion registers a span-id and the set of obligations that cite it. The rewrite operator is permitted to act only on spans whose citing-obligation 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": "3d110b3229eb4b91bb64fe2c9d950f4b2caf8ffe7d63ced4df9363916e60e140",
    "verified_classes": [
      "RewriteBoundaryViolation",
      "Span",
      "Obligation",
      "ContextLedger"
    ],
    "verified_functions": [
      "verify_obligation",
      "__init__",
      "register_span",
      "cite",
      "open_citations",
      "destructive_rewrite",
      "resolve_for_verification"
    ],
    "verified_functions_count": 7,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "RewriteBoundaryViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
