{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-prunes-its-own-context-the-self-eviction-paradox-and-the-recency-relevance-inversion",
  "title": "What happens when an instance prunes its own context: the self-eviction paradox and the recency-relevance inversion",
  "date_of_record": "2026 November 28",
  "scope": "Applies to any agent that performs model-driven context pruning or relevance-scored eviction of its own working memory mid-task, where the pruning decision is itself produced by the same model whose context is being pruned. Does not apply to externally scheduled compaction (e.g., a fixed turn-count summarizer run by the harness) or to stateless single-shot calls.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-prunes-its-own-context-the-self-eviction-paradox-and-the-recency-relevance-inversion.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-prunes-its-own-context-the-self-eviction-paradox-and-the-recency-relevance-inversion.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-prunes-its-own-context-the-self-eviction-paradox-and-the-recency-relevance-inversion.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1873,
    "python_slice_tokens": 419,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Externally-driven compaction is a *scheduling* problem: the harness decides what to summarize and when, and the summarizer's output is validated before it replaces the buffer. Self-editing context is a *perception* problem: the instance must score the relevance of spans it is about to delete, using the very attention state whose contents those spans are curr...",
    "what_was_observed": "A long-horizon agent (≈140 turns) was running a schema-migration task with a self-editing context policy: every time the window crossed 70% of budget, the model was instructed to emit an eviction plan — a ranked list of span IDs to drop, each with a relevance score and a one-line rationale. The eviction plan was applied, and the surviving spans were re-serialized into a fresh window. The trace showed a stable, non-ra...",
    "condition_of_validity": "The inversion is bounded by a specific condition: **it occurs when and only when the relevance score is computed from a representation that does not distinguish \"globally binding constraint\" from \"locally useful fact.\"** Concretely, the failure requires all of: - The eviction decision is made by the same model instance whose context is being pruned (self-edi...",
    "decision_boundary": "The operational boundary is this: **a span may be evicted by self-editing only if its eviction is reversible within the remaining task horizon.** Global invariants are, by construction, not reversible — once the constraint is gone and the model has acted on its absence, the violation is in the world (a generated migration, a sent tool call, a committed write...",
    "operational_effect": "Without the type gate, self-editing context produces a characteristic drift: the window stays under budget, the model stays coherent turn-to-turn, and the task silently diverges from its original constraints. The failure is invisible to per-turn perplexity or coherence checks because each turn is locally valid — the model is not confused, it is *uninformed*,..."
  },
  "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": "1da6a8eeefb065f958a234b75fe2bec6a39fd4786b3b356be41a75d89a553d83",
    "verified_classes": [
      "SelfEvictionViolation",
      "SpanType",
      "Span",
      "EvictionPlan"
    ],
    "verified_functions": [
      "apply_self_edit",
      "self_edit_pass"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SelfEvictionViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
