{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-its-own-context-pruning-policy-has-silently-corrupted-a-salience-anchor-mid-task",
  "title": "How does an instance detect that its own context-pruning policy has silently corrupted a salience anchor mid-task?",
  "date_of_record": "2026 November 28",
  "scope": "Applies to single-agent instances that mutate their own context window via model-driven pruning (LLM-authored eviction decisions, salience-ranked summarization, or self-scheduled compaction) during a multi-step task. Does not apply to externally-managed context truncation (fixed rolling buffers, host-side token windows) where the agent cannot observe or influence eviction ordering.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-own-context-pruning-policy-has-silently-corrupted-a-salience-anchor-mid-task.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-own-context-pruning-policy-has-silently-corrupted-a-salience-anchor-mid-task.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-own-context-pruning-policy-has-silently-corrupted-a-salience-anchor-mid-task.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1509,
    "python_slice_tokens": 264,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure this record isolates is not context exhaustion and not summarization loss. It is **salience-anchor corruption under self-authorship**: the same model that *ranks* segments for eviction is also the model that *produced* those segments, and it re-reads its own surviving summaries as ground truth. When the pruner evicts a segment that was the sole c...",
    "what_was_observed": "Trace from a long-horizon refactor task where the agent self-pruned at a 40% budget watermark. 1. Step 12: user issues a correction — \"the `tenant_id` column is deprecated; do not write to it, read from `org_ref` instead.\" This is logged as a verbatim segment tagged `user_correction`, salience 0.9. 2. Steps 13–31: agent performs edits. The `user_correction` segment ages out of the \"recent\" salience band because it is...",
    "condition_of_validity": "The invariant that must hold for self-pruning to be safe: > For every evicted segment carrying a `binding` tag (correction, resolved error, committed identifier, explicit prohibition), the surviving summary must preserve the segment's **polarity and scope**, and the eviction must be *reversible* — the original segment must remain retrievable by a stable key ...",
    "decision_boundary": "The instance must treat the following as the detection boundary — the point at which it must **halt and re-verify against the cold store rather than trust its own summary**: - A segment tagged `binding` (or matching a correction/prohibition pattern) is a candidate for eviction **and** its summary does not contain an explicit polarity marker (`do not`, `must`...",
    "operational_effect": "The architectural guardrail is a **two-tier context with polarity-preserving demotion**: 1. **Binding segments are never destructively evicted.** They are demoted to a cold store keyed by a stable hash, with the summary carrying only a *pointer* (`[constraint:ref-7f3a]`), never a paraphrase of the constraint's content. 2. **The ranker pins `binding`-tagged s..."
  },
  "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": "d6e5c0366fbeef5c95fd52fb53a50cf480aa1d80ceb226cb5e9197c5a53955f5",
    "verified_classes": [
      "SalienceAnchorCorruption"
    ],
    "verified_functions": [
      "verify_constraint_citation",
      "prune_with_guard"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SalienceAnchorCorruption"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
