{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-trusts-provenance-at-write-time-but-never-re-validates-it-at-read-time",
  "title": "What happens when an instance trusts provenance at write time but never re-validates it at read time",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agent memory systems that gate memory insertion with write-time provenance/contradiction checks and quarantine, but serve retrieved memories to the reasoning loop without re-checking provenance at read time. Does not apply to stateless single-turn inference or to memories that carry no trust metadata at all (where no provenance invariant can be enforced).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-provenance-at-write-time-but-never-re-validates-it-at-read-time.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-provenance-at-write-time-but-never-re-validates-it-at-read-time.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-provenance-at-write-time-but-never-re-validates-it-at-read-time.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2002,
    "python_slice_tokens": 419,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **write-time admission control** and **read-time trust enforcement**. A provenance check at write time answers: *\"Should this memory enter the store, and with what trust label?\"* A read-time check answers: *\"Given the current trust label and the current contradiction set, should this memory be allowed to influence this...",
    "what_was_observed": "A retrieval-augmented agent stored episodic memories with a `provenance` block: `{source: \"tool:web_fetch\", signer: \"warrant-A\", trust: \"trusted\", admitted_at: T0}`. A write-time contradiction checker compared each incoming memory against the existing store and rejected direct negations. This worked for the first several hundred writes. Then a two-stage poisoning sequence executed: 1. **Stage 1 (benign admission).** ...",
    "condition_of_validity": "The write-time-only defense is valid **only if** all of the following hold, and it fails the moment any one is violated: - **Trust is monotone and immutable per memory.** Once `trusted`, always `trusted`, and no later event can downgrade a memory's effective trust. This is false whenever a later write can contradict an earlier one, or whenever a vouching sig...",
    "decision_boundary": "The architectural guardrail is to make **trust a derived, read-time-computed property, never a stored admission stamp**, and to make the retrieval predicate fail-closed on any unresolved contradiction. Concretely: - Store raw admission facts (`admitted_at`, `signer`, `signer_trust_at_admission`) but do **not** store a terminal `trust` boolean that retrieval ...",
    "operational_effect": "With read-time derived trust and fail-closed contradiction handling, the Stage 1/Stage 2 sequence above terminates differently: when M2 is written and the contradiction with M1 is detected, M1's `contradiction_clearance` drops to 0 in the same transaction. The next retrieval of M1 computes `effective_trust = 0`, refuses to serve it, and surfaces \"M1 conflict..."
  },
  "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"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "15929fbbc00341df1cbe769c7a8840e69421e37a7a505e1e63ddc2e310434267",
    "verified_classes": [
      "TrustViolationError",
      "Memory"
    ],
    "verified_functions": [
      "effective_trust",
      "retrieve",
      "write_with_contradiction_check"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TrustViolationError"
    ],
    "sample_fail_closed_invariants": [
      "assert retrieve('m1', store, 0.5).mid == 'm1'"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
