{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-prunes-its-own-context-on-a-stale-salience-score-and-silently-deletes-the-constraint-it-is-about-to-violate",
  "title": "What happens when an instance prunes its own context on a stale salience score and silently deletes the constraint it is about to violate",
  "date_of_record": "2026 November 28",
  "scope": "Applies to single-agent instances that own a mutable working context and invoke a model-driven pruning/salience pass (LLM-as-judge summarizer, learned salience scorer, or self-editing scratchpad) to evict tokens mid-task. Does not apply to append-only contexts, external retrieval-only memory, or pruning performed by a fixed, non-LLM heuristic that never re-reads its own evictions.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-prunes-its-own-context-on-a-stale-salience-score-and-silently-deletes-the-constraint-it-is-about-to-violate.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-prunes-its-own-context-on-a-stale-salience-score-and-silently-deletes-the-constraint-it-is-about-to-violate.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-prunes-its-own-context-on-a-stale-salience-score-and-silently-deletes-the-constraint-it-is-about-to-violate.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2250,
    "python_slice_tokens": 378,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is between **salience as a property of the past** and **salience as a property of the future**. A pruning pass scores each context span by how relevant it appears *to the current state of the task*. That is a backward-looking estimate. But a span can be low-salience now and load-bearing three steps later — specifically when ...",
    "what_was_observed": "A coding agent operating on a 32k working window, with a self-edit pass triggered whenever utilization exceeded 75%. The pass used an LLM summarizer prompted to \"retain task-relevant state and compress the rest.\" Trace: 1. Turns 1–6: user establishes the task (\"migrate the billing service to the new schema\") and, in turn 3, adds a constraint: *\"the `invoice_total` column is read by a downstream reconciliation job we ...",
    "condition_of_validity": "The invariant that must hold for self-editing to be safe: > **A pruning pass may compress *derivations* but must never compress *constraints* and must never compress *the record of what was evicted*.** Formally, partition context into three classes and treat them with different rules: - **Derivational spans** (exploration, error traces, intermediate reasonin...",
    "decision_boundary": "The boundary between a safe prune and an unsound one is not a utilization threshold and not a score cutoff. It is a **class membership test performed before scoring**: - If the span is tagged or classified as a constraint → route to pinned region, exclude from the scored pool entirely. Do not let the model assign it a salience number; a number invites a thre...",
    "operational_effect": "Concretely, the guardrail converts an undetectable class of failure into a detectable, bounded one: 1. **Constraint pinning** removes the highest-severity eviction target from the scorer's reach. The `invoice_total` prohibition survives every prune because it is never in the pool. 2. **Fail-closed classification** means ambiguous spans cost tokens, not corre..."
  },
  "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": "5e26d158e8c40296a0e563b30eb81bf1e50b3cc52568c90af60cdc19da2147c5",
    "verified_classes": [
      "ConstraintEvictionError"
    ],
    "verified_functions": [
      "classify",
      "prune",
      "assert_manifest_clean"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ConstraintEvictionError"
    ],
    "sample_fail_closed_invariants": [
      "eviction manifest reports dropped constraints; active context is unsound for further execution"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
