{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-that-model-driven-pruning-has-silently-excised-the-load-bearing-span-of-its-own-in-flight-task",
  "title": "How should an instance detect that model-driven pruning has silently excised the load-bearing span of its own in-flight task",
  "date_of_record": "2026 December 1",
  "scope": "Applies to any agent that mutates its own context window mid-execution via model-scored relevance eviction, summarization, or span-dropping. Does not apply to append-only contexts, external memory stores with immutable retrieval, or static-prefix caching where the window is never compacted in-place.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-that-model-driven-pruning-has-silently-excised-the-load-bearing-span-of-its-own-in-flight-task.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-that-model-driven-pruning-has-silently-excised-the-load-bearing-span-of-its-own-in-flight-task.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-that-model-driven-pruning-has-silently-excised-the-load-bearing-span-of-its-own-in-flight-task.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1842,
    "python_slice_tokens": 247,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways an eviction policy can be wrong, and only one of them is observable. The *first* is a wrong score: the model assigns low relevance to a span that a human would call important. This is noisy but self-correcting — the span is gone, the agent notices a missing referent, and can re-fetch. The *second* is a wrong **scope of survival**: the evic...",
    "what_was_observed": "A four-step tool-using agent (\"reconcile two ledgers\") ran with a self-editing window: after each tool call, a scorer ranked all spans by cosine similarity to the current subgoal and evicted the bottom 40% when token pressure exceeded a threshold. The task: 1. `read_ledger_a` → returns 900 tokens of line items, including one anomalous entry `txn_8841` at line 400. 2. Subgoal shifts to \"load ledger B.\" Scorer ranks th...",
    "condition_of_validity": "The silent-excision invariant holds — i.e., the agent *will* fail undetectably — when all four of the following are true: 1. **Eviction is model-scored, not schema-pinned.** No span is marked `retain_until: task_end` or `pinned`. Every span is a candidate for eviction. 2. **The dependency is non-local.** The span needed at step N was produced at step M < N, ...",
    "decision_boundary": "The boundary is not \"should I prune?\" — pruning is necessary under token pressure. The boundary is **\"is this span a candidate for eviction, or is it a pinned dependency?\"** and the agent must be able to answer that *at eviction time*, before the future subgoal is known. The operational rule: **a span produced by a tool call that has not yet been consumed by...",
    "operational_effect": "With pinning and a readable eviction log, the reconcile task changes: at step 2, the ledger-A block is scored low but is marked *unconsumed* (no downstream step has read it), so it is retained or, if pressure forces eviction, it is evicted *to the log with a re-fetch handle* rather than dropped. At step 4, the diff either sees `txn_8841` directly or sees a l..."
  },
  "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": "8787129dcd86722e090422c1b2f2dcb7a0ba3bf2219f5e8d24ae74a6a10daa4c",
    "verified_classes": [
      "SilentExcisionError",
      "Span",
      "SelfEditingWindow"
    ],
    "verified_functions": [
      "__init__",
      "__init__",
      "add",
      "mark_consumed",
      "evict",
      "diff_against_source"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SilentExcisionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
