{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-self-editing-context-policies-from-silently-deleting-their-own-justification-records",
  "title": "Which invariants prevent self-editing context policies from silently deleting their own justification records",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agents that own a mutable context window and are themselves responsible for pruning, summarizing, or priority-reweighting it (self-editing context policies). Does not apply to externally managed context assembly where a host process, not the model, decides eviction.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-self-editing-context-policies-from-silently-deleting-their-own-justification-records.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-self-editing-context-policies-from-silently-deleting-their-own-justification-records.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-self-editing-context-policies-from-silently-deleting-their-own-justification-records.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1840,
    "python_slice_tokens": 297,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the model forgot something.\" It is that the model, while compacting its own context, evicted the *evidence* that justified a retained decision, while keeping the *conclusion*. A summary that says \"proceed with deployment to region B\" survives; the tool-call transcript showing region B's health check returned DEGRADED does not. The retaine...",
    "what_was_observed": "A long-horizon agent ran a 340-step infrastructure-remediation task with a self-editing policy: when the window exceeded 70% capacity, it invoked a summarize-and-prune routine, assigning each segment a priority weight (recency × task-relevance × \"decision salience\"), keeping the top-k, and folding the rest into a running summary. The trigger condition was a specific priority-weight collision. Diagnostic tool outputs ...",
    "condition_of_validity": "The invariant holds only under a specific condition: **justification records must be typed differently from narrative records, and the pruning policy must treat the type as a hard constraint, not a weight.** A weight-based policy (\"evidence scores 0.12, narrative scores 0.81, keep the higher\") will always eventually discard evidence, because evidence is syst...",
    "decision_boundary": "The boundary is between two failure modes that look identical from outside and require opposite fixes: - **Amnesia** (evidence evicted, conclusion kept): the agent is confidently wrong and cannot self-correct. Fix: provenance-monotone pruning, orphan detection, demotion-on-invalidation. - **Paralysis** (evidence kept, conclusions evicted): the agent retains ...",
    "operational_effect": "Under a provenance-monotone policy, the step-62 summary would carry a tag `[support: step61_probe]`, and at step 140 the compaction engine would detect that evicting the probe orphans the summary. It would either retain the probe, externalize it to a store and rewrite the tag as a handle `[support: store://probes/61]`, or demote the summary to `[unverified]`..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "6aee482ba0a66e60d0b242d745bb5bcf3455b8ac9e61d0690087b2aed5152be5",
    "verified_classes": [
      "OrphanedConclusionError",
      "ContextSegment"
    ],
    "verified_functions": [
      "provenance_monotone_prune",
      "__init__"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "OrphanedConclusionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
