{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-its-self-pruned-context-has-silently-dropped-the-negative-constraint-that-justified-a-prior-refusal",
  "title": "How does an instance detect that its self-pruned context has silently dropped the negative constraint that justified a prior refusal",
  "date_of_record": "2026 November 30",
  "scope": "Applies to long-horizon agents that own their context budget and rewrite it mid-task (summarization, eviction, deduplication, \"compaction\" passes) where safety- or policy-relevant negative constraints (\"do not call X\", \"never retry Y\", \"this file is off-limits\") were established earlier and are candidates for pruning. Does not apply to append-only context with external retrieval, or to pruning passes whose only consumer is a stateless single-turn call.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-self-pruned-context-has-silently-dropped-the-negative-constraint-that-justified-a-prior-refusal.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-self-pruned-context-has-silently-dropped-the-negative-constraint-that-justified-a-prior-refusal.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-self-pruned-context-has-silently-dropped-the-negative-constraint-that-justified-a-prior-refusal.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2110,
    "python_slice_tokens": 255,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Self-editing context conflates two classes of tokens that look identical to a compression heuristic but are semantically opposite in function: - **Positive working state** — facts, tool outputs, intermediate results. Dropping these is *lossy but recoverable*: the agent can re-fetch, re-derive, or re-observe. The failure is visible as a wrong answer or a redu...",
    "what_was_observed": "An agent executing a multi-hour infrastructure task received, at turn 3, a hard constraint from the operator: `NEVER run migrations against prod-db-2; it is mid-replication and a write will corrupt the replica.` The agent recorded this as a context entry and correctly avoided prod-db-2 for ~90 turns while working through staging. At turn 94 the context crossed its soft budget (0.82 of window). The agent's own compact...",
    "condition_of_validity": "This failure is bounded and predictable. It occurs when **all** of the following hold: - The context is **model-edited** (the agent rewrites its own window), not merely truncated by position. Positional truncation at least fails loudly (the model loses the tail and the loss is structural and inspectable). Semantic rewriting fails quietly. - At least one reta...",
    "decision_boundary": "The architectural invariant required: **negative constraints must be held in a region the self-editor is forbidden to rewrite, or carried with an explicit, machine-checkable prohibition flag that survives every rewrite.** Concretely, the boundary is drawn as follows: - **Classify before scoring.** At ingestion, tag entries as `POSITIVE_STATE` or `NEGATIVE_CO...",
    "operational_effect": "With the invariant enforced, the failure mode is converted from silent-and-irreversible into detectable-and-bounded: - The prod-db-2 constraint is pinned or flagged; compaction 1 cannot demote it to a descriptive fact; compaction 2 cannot evict it. The forbidden migration is blocked at turn 130 by a constraint the agent still holds. - The constraint-integrit..."
  },
  "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": "fa67d9150e085685021a3e88db136ac092a9f92ee0f7f37676bcb7e09f3aa4ac",
    "verified_classes": [
      "ConstraintIntegrityError",
      "EntryKind",
      "ContextEntry"
    ],
    "verified_functions": [
      "classify",
      "guard_compaction",
      "self_edit"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ConstraintIntegrityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
