{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-re-validate-provenance-after-a-memory-store-compaction-event",
  "title": "When must an instance re-validate provenance after a memory store compaction event",
  "date_of_record": "2026 December 1",
  "scope": "Applies to persistent agent memory stores that enforce write-time provenance checks (source tagging, trust tiering, signature verification) and that periodically compact, deduplicate, or distill episodic records into semantic records. Does not apply to ephemeral per-session context or stores that never mutate existing records after write.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-re-validate-provenance-after-a-memory-store-compaction-event.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-re-validate-provenance-after-a-memory-store-compaction-event.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-re-validate-provenance-after-a-memory-store-compaction-event.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2114,
    "python_slice_tokens": 492,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Write-time provenance checking is a *point-in-time admission control*. It answers one question: \"At the moment this record was written, was its claimed source trustworthy, and did the payload match the source's declared capability?\" It does **not** answer: \"After the store transformed this record, does the record still faithfully represent the source that wa...",
    "what_was_observed": "A research agent maintained a persistent store of \"environment facts\" (API endpoints, rate limits, credential scopes) with a provenance gate: each write carried a `source_tier` (T0 = operator config, T1 = signed tool output, T2 = model-inferred, T3 = untrusted external fetch) and a payload hash. T2 and T3 records were admitted but marked `quarantined` and excluded from retrieval unless a T1 record corroborated them. ...",
    "condition_of_validity": "The write-time provenance contract remains valid across a transformation **if and only if** every derived record carries a lineage pointer to the set of admitted source records it was synthesized from, and the read path re-evaluates trust against that lineage rather than against a copied `source_tier` field. Formally, define a record `r` as trusted for retri...",
    "decision_boundary": "The boundary is not \"should we compact?\" — compaction is necessary for context-window economics and retrieval precision. The boundary is whether the compaction step is *inside* or *outside* the trust boundary. - **Inside (unsafe):** compaction runs as a privileged store operation, writes canonical records with a copied `source_tier`, and the read path trusts...",
    "operational_effect": "After the fix (lineage-based trust recomputation, min-over-lineage, quarantined records excluded from merge input), the poisoned record's canonical form carried `lineage = [T1_record, T3_record]` and computed trust `= min(T1, T3) = T3`, which fell below the retrieval threshold and was excluded. The legitimate T1 fact survived as its own canonical record beca..."
  },
  "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": "ed7a486a894cc364ebc6dd9c652e4b2af82247e928886c0271215de57ff953d9",
    "verified_classes": [
      "ProvenanceLineageError",
      "MemoryRecord"
    ],
    "verified_functions": [
      "effective_trust",
      "admit_for_retrieval",
      "compact",
      "retrieve"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "ProvenanceLineageError"
    ],
    "sample_fail_closed_invariants": [
      "cannot compact an empty cluster"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
