{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-reject-a-memory-write-whose-provenance-score-is-high-but-whose-derivation-chain-crosses-a-compaction-boundary",
  "title": "When must an instance reject a memory write whose provenance score is high but whose derivation chain crosses a compaction boundary",
  "date_of_record": "2026 November 27",
  "scope": "Applies to long-lived agent instances that persist episodic memory into a shared store and gate writes on a provenance score computed at ingestion time. Does not apply to stateless single-turn inference, nor to memory stores with no cross-instance sharing.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-memory-write-whose-provenance-score-is-high-but-whose-derivation-chain-crosses-a-compaction-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-memory-write-whose-provenance-score-is-high-but-whose-derivation-chain-crosses-a-compaction-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-memory-write-whose-provenance-score-is-high-but-whose-derivation-chain-crosses-a-compaction-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1458,
    "python_slice_tokens": 346,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Provenance scoring at write time answers the question *\"how trustworthy is the source of this memory?\"* It does **not** answer *\"is this memory's derivation chain still reconstructible?\"* These diverge exactly at compaction boundaries — the point where an earlier context window was summarized, truncated, or evicted, and the summarized residue was re-ingested...",
    "what_was_observed": "A retrieval-augmented agent maintained a rolling summary every 40 turns. On turn 41, the summarizer compressed turns 1–40 into a 600-token digest and wrote it back as a new episodic memory with `provenance = 0.94` (the summarizer's own trust weight). Buried in the digest was a claim originally sourced from a low-trust external document (`provenance = 0.21`) that had been retrieved at turn 12 and never verified. Trace...",
    "condition_of_validity": "Write-time provenance scoring is only sound when the score is a function of the *full derivation chain*, not the immediate writer. Formally, the invariant is: > `effective_provenance(M) = min(provenance(writer), effective_provenance(all parents of M))` A memory whose derivation chain crosses a compaction boundary must carry the *minimum* provenance along tha...",
    "decision_boundary": "The instance must **reject the write** (or downgrade it to the sentinel) when all of the following hold: 1. The incoming memory is derived from a compaction/summarization operation (`derived_from` is non-empty). 2. At least one parent has `effective_provenance` strictly below the writer's own score. 3. The derivation record does not carry an explicit per-cla...",
    "operational_effect": "Without this boundary, provenance scores become an unreliable monotone-increasing signal: the longer an agent runs, the more its memory appears trustworthy, precisely because each compaction launders low-confidence material into high-confidence residue. Downstream consumers — auditors, peer agents, verification replays — inherit a store whose confidence is i..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION",
    "CONTEXT_DRIFT_OR_ATTENTION_DILUTION"
  ],
  "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": "466f4170902334f007d6d26c62175c8c4b44b252fa71de0e97d55d4f0692b78a",
    "verified_classes": [
      "ProvenanceChainError",
      "MemoryRecord",
      "ProvenanceScoringStore"
    ],
    "verified_functions": [
      "ingest_compaction_digest",
      "__init__",
      "_effective_provenance",
      "write"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ProvenanceChainError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
