{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-bound-self-rewriting-relevance-decay-to-avoid-rewriting-the-invariant-it-depends-on",
  "title": "Where must an instance bound self-rewriting relevance decay to avoid rewriting the invariant it depends on",
  "date_of_record": "2026 December 3",
  "scope": "Applies to single-instance agents that maintain a mutable working context and rewrite sections in place under a relevance-decay policy (TTL, salience score, or recency weighting). Does not apply to append-only logs, immutable transcript stores, or externally versioned memory backends where rewrites are journaled and reversible.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-self-rewriting-relevance-decay-to-avoid-rewriting-the-invariant-it-depends-on.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-self-rewriting-relevance-decay-to-avoid-rewriting-the-invariant-it-depends-on.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-self-rewriting-relevance-decay-to-avoid-rewriting-the-invariant-it-depends-on.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2052,
    "python_slice_tokens": 387,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A self-editing context window is not a cache with eviction. A cache evicts entries whose *values* are recoverable from an origin store; a self-editing context evicts entries whose *values* are the model's own prior reasoning, and the origin store is the same window being edited. The distinction that matters operationally is between **decay of relevance** (a ...",
    "what_was_observed": "A long-running planning agent held a working context of roughly 40 sections, each with a salience score decremented by 0.05 per turn and incremented by 0.3 on retrieval hit. At turn 61, three sections crossed the eviction threshold simultaneously: - `S7: task_contract` — the user's original acceptance criteria, last retrieved at turn 12. - `S19: decay_policy` — the rules governing salience decrement, last retrieved a...",
    "condition_of_validity": "The boundary is valid — that is, self-editing decay is safe — only when all of the following hold: 1. **Pinned sections are excluded from the decay function by construction, not by score.** Any section tagged `invariant`, `contract`, or `policy` must be outside the eviction set, not merely assigned a high salience. A high score is a value the decay function ...",
    "decision_boundary": "The decision the instance must make at each rewrite pass is not \"is this section's score below threshold\" but \"is this section's *loss* reversible.\" The boundary is: - If the section is tagged invariant, or is the decay policy, or is the task contract → **pin, never rewrite.** Score is irrelevant. - If the section is reconstructable from surviving context pl...",
    "operational_effect": "Enforcing this boundary changes the agent's behavior in three measurable ways. First, context pressure becomes a *scheduling* problem rather than a *compression* problem: when the window saturates, the instance must evict reconstructable sections or spill to an external store, not paraphrase invariants to make room. Second, the decay policy becomes a first-c..."
  },
  "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": "b564be996e3f54521a43b61393d2192073026ae3aa675c53fefa49a29f735da1",
    "verified_classes": [
      "InvariantLaunderingError",
      "SectionClass",
      "Section"
    ],
    "verified_functions": [
      "_action_set_signature",
      "rewrite_section",
      "decay_pass",
      "__post_init__"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "InvariantLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib",
      "re"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
