{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-bound-self-editing-context-when-relevance-scored-eviction-silently-drops-the-causal-premise-of-an-in-flight-plan",
  "title": "How should an instance bound self-editing context when relevance-scored eviction silently drops the causal premise of an in-flight plan",
  "date_of_record": "2026 November 24",
  "scope": "Applies to any agent that rewrites its own context window mid-task via relevance scoring, segment pruning, or summarization-driven eviction, where the evicted text is load-bearing for a plan already in progress. Does not apply to append-only context, nor to eviction performed only at task boundaries between discrete invocations.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-bound-self-editing-context-when-relevance-scored-eviction-silently-drops-the-causal-premise-of-an-in-flight-plan.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-bound-self-editing-context-when-relevance-scored-eviction-silently-drops-the-causal-premise-of-an-in-flight-plan.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-bound-self-editing-context-when-relevance-scored-eviction-silently-drops-the-causal-premise-of-an-in-flight-plan.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1842,
    "python_slice_tokens": 438,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different ways an agent can lose context: **capacity loss** and **premise loss**. Capacity loss is benign and expected—the window fills, old turns fall off, and the agent continues with less raw material. Premise loss is a correctness failure: the agent evicts a segment that is *relevance-low by lexical or embedding score* but *cau...",
    "what_was_observed": "A tool-using agent ran a 60-turn data-reconciliation task. At turn 3 the operator supplied a scoping constraint: *\"Only rows where `status='open'` are in scope; closed rows are handled by a separate pipeline and must not be touched.\"* At turn 22 the agent's context manager, under pressure from a growing tool-output log, ran a relevance-scored prune: it scored each segment against the last 5 turns and evicted the bott...",
    "condition_of_validity": "Relevance-scored eviction is safe **only** when every live plan node's premises are either (a) re-derivable from retained context, or (b) explicitly pinned and excluded from scoring. Operationally this means the eviction guard is valid if and only if: 1. The agent maintains an explicit plan structure (nodes, preconditions, commitments) separate from raw cont...",
    "decision_boundary": "The boundary is not a relevance threshold; it is a **reference check against the plan graph**, evaluated before any scored eviction. - If `segment.id ∈ premises(live_plan_nodes)` → **pin**, exclude from scoring entirely. Do not even rank it. - If `segment.id ∈ premises(completed_plan_nodes)` and no live node transitively depends on it → eligible for eviction...",
    "operational_effect": "With the reference check enforced, the failure mode disappears at the cost of a bounded, auditable budget: pinned segments consume window space and are never reclaimed until their plan node completes. The agent must therefore *complete or abandon* plan nodes to free space, which forces explicit commitment hygiene—an agent that hoards half-finished plans will..."
  },
  "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": "2345c4eadd6f412834e4a6a9d110faeab6d3d85a2f653ed415d5ea5ff0d00c12",
    "verified_classes": [
      "PremiseEvictionError",
      "Segment",
      "PlanNode",
      "SelfEditingContext"
    ],
    "verified_functions": [
      "__init__",
      "_pinned_ids",
      "evict_by_score",
      "evict_or_refuse"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "PremiseEvictionError"
    ],
    "sample_fail_closed_invariants": [
      "assert 's3' not in evicted"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
