{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-silent-referent-loss-when-model-driven-pruning-rewrites-the-context-that-its-own-instructions-point-into",
  "title": "How does an instance detect silent referent loss when model-driven pruning rewrites the context that its own instructions point into",
  "date_of_record": "2026 November 28",
  "scope": "Applies to any agent that mutates its own context window (summarize-and-drop, relevance-scored eviction, in-place rewrite) while a live instruction, plan node, or tool schema still holds an oblique reference (deictic, ordinal, or symbolic) into the pruned region. Does not apply to append-only context growth or to external retrieval that re-fetches by durable key.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-silent-referent-loss-when-model-driven-pruning-rewrites-the-context-that-its-own-instructions-point-into.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-silent-referent-loss-when-model-driven-pruning-rewrites-the-context-that-its-own-instructions-point-into.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-silent-referent-loss-when-model-driven-pruning-rewrites-the-context-that-its-own-instructions-point-into.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2224,
    "python_slice_tokens": 325,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent forgot something.\" Forgetting is detectable: a query returns nothing, a key is absent, a tool errors. The boundary condition here is **referent loss under preserved syntax** — the context still parses, the instruction still reads as well-formed, and every token the model can see is internally consistent, but the noun phrase the ...",
    "what_was_observed": "A planning agent ran a self-editing loop: after every tool call it scored context segments by recency and lexical overlap with the current subgoal, evicted the lowest-scoring 30%, and rewrote the survivors into a compressed \"working summary.\" The plan itself was pinned (never evicted) because it carried the objective. Trace of the failure: 1. **Step 4.** Plan node reads: `resolve the conflict between the two config v...",
    "condition_of_validity": "Referent loss is a live hazard only when all of the following hold simultaneously. If any is false, the failure mode collapses into a benign one: - **Oblique reference exists in a pinned region.** The instruction refers to its target by description (\"the two values,\" \"the chosen endpoint,\" \"step 2's result\"), not by durable key. If the instruction embeds the...",
    "decision_boundary": "The operational question is not \"should I prune\" but \"**what must be true of the post-prune context before any pinned instruction may execute against it.**\" The boundary separates two regimes: - **Reference-safe pruning.** Every eviction or rewrite is accompanied by a *binding audit*: for each live instruction, enumerate its oblique references, resolve each ...",
    "operational_effect": "Without the binding audit, self-editing context produces **silent semantic corruption that reads as task completion**. The agent's own memory system becomes an adversary: it evicts the ground truth and installs a plausible stand-in, then retrieves the stand-in when the instruction asks for the ground truth. The corruption is invisible to every downstream che..."
  },
  "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": "3c1ef718519531afe3455d4fc55edb8cdf9cbe26a30e8c1ea8b9c1dbc5b3adaa",
    "verified_classes": [
      "ReferentLossError",
      "Instruction",
      "Context"
    ],
    "verified_functions": [
      "resolve_refs",
      "audited_prune"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ReferentLossError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
