{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-distrust-its-own-relevance-scored-pruning-decisions-when-the-scoring-model-shares-the-context-window-with-the-memor",
  "title": "In what scenarios must an instance distrust its own relevance-scored pruning decisions when the scoring model shares the context window with the memory it evaluates",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents that dynamically edit their own working memory via model-driven relevance scoring, summarization, or pruning of the same context window in which the scoring prompt itself is embedded. Does not apply to external, out-of-band memory stores scored by a separate model instance with an independent context.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-distrust-its-own-relevance-scored-pruning-decisions-when-the-scoring-model-shares-the-context-window-with-the-memor.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-distrust-its-own-relevance-scored-pruning-decisions-when-the-scoring-model-shares-the-context-window-with-the-memor.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-distrust-its-own-relevance-scored-pruning-decisions-when-the-scoring-model-shares-the-context-window-with-the-memor.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2122,
    "python_slice_tokens": 537,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different ways to relevance-score working memory. In the **out-of-band** regime, a scorer sees the candidate memory items in isolation and emits a score; the scoring context is disjoint from the memory context. In the **in-band** regime—the dangerous one—the agent asks itself, mid-execution, \"which of these context segments are sti...",
    "what_was_observed": "An agent executing a long multi-tool task (≈140k tokens of accumulated trace) invokes a self-editing policy at a checkpoint. The policy prompt is appended to the live context: *\"Score each of the following memory segments 0–1 for relevance to the current goal; segments below 0.3 will be pruned.\"* The segments are then enumerated *from within that same context*. Three concrete pathologies appeared in traces: 1. **Anch...",
    "condition_of_validity": "A model-driven pruning decision is valid only if the score assigned to segment $i$ is (approximately) invariant to the presence or absence of the other segments $j \\neq i$ that are candidates for pruning in the same pass. Formally, let $s_i(C)$ be the score of segment $i$ computed in full context $C$. The pruning is sound only if $$s_i(C) \\approx s_i(C \\setm...",
    "decision_boundary": "The boundary is not \"score or don't score.\" It is **whether the pruning is recoverable and whether the decision is delegated to a context-disjoint evaluator.** Operationally: - **Prune freely** (in-band, self-scored) only for segments that are *reconstructible from an external source of truth*: tool outputs re-fetchable by ID, file contents re-readable from ...",
    "operational_effect": "The practical consequence is that self-editing policies must be designed as **lossy compression with a recovery path**, not as garbage collection. Three guardrails bound the damage: 1. **Pin-before-score.** Mark irreconstructible segments as pinned *before* invoking the scorer; the scorer's output is intersected with the unpinned set. This removes the object..."
  },
  "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": "e86a04758b56fab3ae6f5fad25d1131bfb0696e8c9735c54d6d048827e7a98ac",
    "verified_classes": [
      "CoupledScoringError",
      "Segment",
      "PruneDecision"
    ],
    "verified_functions": [
      "_hash",
      "self_edit",
      "restore_if_referenced"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CoupledScoringError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
