{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-a-self-editing-context-policy-has-silently-degraded-its-own-evidence-base",
  "title": "How does an instance detect that a self-editing context policy has silently degraded its own evidence base",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agent instances that own a *model-driven* context policy — i.e., the instance itself decides, mid-execution, which turns to prune, which to rewrite (summarize/compress), and which to retain based on a relevance score it computes. Does not apply to externally-fixed context windows, static truncation, or retrieval systems where the selection policy is not authored by the running model.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-self-editing-context-policy-has-silently-degraded-its-own-evidence-base.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-self-editing-context-policy-has-silently-degraded-its-own-evidence-base.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-self-editing-context-policy-has-silently-degraded-its-own-evidence-base.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2176,
    "python_slice_tokens": 257,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different ways an instance can lose context, and they demand opposite responses. The first is **eviction**: the context window fills, the policy drops the oldest or lowest-scored turns, and information is *absent*. Absence is detectable — a subsequent reasoning step references a fact, the fact is not in the window, the model emits ...",
    "what_was_observed": "A long-running diagnostic agent was asked to reconcile a failing deployment. At step 4 it received a tool result containing the exact failure: exit code `137`, stderr `OOMKilled: container exceeded limit 512Mi at allocation site buffer_pool.init`. This turn scored low on the policy's relevance metric — the metric was a cosine similarity against the current task embedding, and the task embedding at step 4 was still do...",
    "condition_of_validity": "The invariant that bounds this failure: > **A self-editing policy may only compress evidence that is reconstructible from a source the instance can re-query; it may never compress evidence whose exact form is itself the payload.** Operationally, classify every turn before the policy touches it into one of two classes: - **Reconstructible**: prose, reasoning ...",
    "decision_boundary": "The boundary between \"safe to self-edit\" and \"must pin\" is drawn at **reconstructibility**, and it is drawn *at ingestion*, before any scoring: When a turn is mixed (prose *and* an exact string), the policy must **split the turn**: rewrite the prose, pin the exact substring as an atomic evidence record with a stable ID, and have the rewrite reference the ID ...",
    "operational_effect": "With per-turn irreplaceability tags and split-and-pin, the failure trace changes shape. The step-4 tool result is ingested as: prose turn (rewritable) + pinned evidence record `E-0042` holding the exact string `exit 137 / OOMKilled / 512Mi / buffer_pool.init`. At step 11 the prose is summarized; `E-0042` is untouched and occupies ~40 tokens. At step 19, when..."
  },
  "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": "3b0d13415882b3842c6c43c65aaf7fe8d8e088eb6c02b1244b398870ddad6989",
    "verified_classes": [
      "ContextPolicyViolation",
      "EvidenceRecord",
      "ContextPolicy"
    ],
    "verified_functions": [
      "audit_before_decision",
      "ingest",
      "rewrite_prose",
      "resolve"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ContextPolicyViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
