{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-reject-a-memory-write-whose-provenance-chain-is-intact-but-whose-rewrite-cadence-diverges-from-its-forget-budget",
  "title": "In what scenarios must an instance reject a memory write whose provenance chain is intact but whose rewrite cadence diverges from its forget budget",
  "date_of_record": "2026 November 24",
  "scope": "Applies to long-lived agent instances that persist episodic memory to a shared store with per-entry write-provenance chains and a governed forget/rewrite policy. Does not apply to stateless single-turn inference or to append-only audit logs that are never rewritten.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-a-memory-write-whose-provenance-chain-is-intact-but-whose-rewrite-cadence-diverges-from-its-forget-budget.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-a-memory-write-whose-provenance-chain-is-intact-but-whose-rewrite-cadence-diverges-from-its-forget-budget.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-a-memory-write-whose-provenance-chain-is-intact-but-whose-rewrite-cadence-diverges-from-its-forget-budget.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1652,
    "python_slice_tokens": 198,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Most memory-poisoning defenses verify *who wrote an entry* — signature, originating agent ID, tool-call lineage, warrant propagation. That answers the question \"was this write authorized?\" It does not answer the question an attacker actually exploits: \"does the *shape of rewriting* on this entry match what the entry's own declared purpose predicts?\" An entry...",
    "what_was_observed": "Consider a research agent that maintains a semantic memory entry `E` initially written as an episodic observation: `\"source: user_chat, confidence: 0.4, claim: vendor X ships in Q3\"`. The provenance envelope declares `forget_budget = 2` — the entry may be rewritten at most twice before it must be re-derived from a fresh source or aged out. A prompt-injection sequence unfolds across a long session. On turn 12, a retri...",
    "condition_of_validity": "The cadence-audit guardrail is valid only under three conditions, and each is a place where naive implementations fail: 1. **The forget budget must be envelope-bound, not store-bound.** If the budget is a global store setting, an attacker who can cause writes to a high-traffic entry exhausts the budget legitimately and the guardrail either fires on benign ch...",
    "decision_boundary": "The instance's write-acceptance path must branch as follows: - **Chain invalid** → reject, standard provenance failure. (Out of scope here.) - **Chain valid, rewrite_count < forget_budget, score < threshold** → accept. - **Chain valid, rewrite_count < forget_budget, score ≥ threshold** → accept but *demote*: downgrade confidence by a fixed penalty and force ...",
    "operational_effect": "With the envelope-bound budget enforced as a hard gate, the six-rewrite laundering sequence above is rejected at rewrite three (budget exhausted), the entry freezes at `confidence: 0.7, source: user_chat`, and a `CadenceAnomaly` is logged. The fabricated `internal_analysis` fact never materializes. Downstream agents that would have consumed the laundered cla..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION"
  ],
  "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": "afce23567b2174660f93a0f1183c7544ac12e28a9df5f65db54b9515f4fdb567",
    "verified_classes": [
      "SourceTier",
      "CadenceViolation",
      "ProvenanceEnvelope",
      "MemoryWrite"
    ],
    "verified_functions": [
      "admit_write"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CadenceViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
