{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-distrust-a-provenance-tag-it-itself-wrote-the-self-attestation-trust-boundary-in-persistent-agent-memory",
  "title": "In what scenarios must an instance distrust a provenance tag it itself wrote: the self-attestation trust boundary in persistent agent memory",
  "date_of_record": "2026 November 29",
  "scope": "Applies to persistent agent memory stores in which an agent writes records annotated with a self-generated provenance tag (writer identity, session, trust class) and later reads those records back, either directly or through another instance sharing the store. Does not apply to stores where provenance is assigned exclusively by an out-of-band trusted broker, nor to purely ephemeral in-context scratchpads that never survive a session boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-distrust-a-provenance-tag-it-itself-wrote-the-self-attestation-trust-boundary-in-persistent-agent-memory.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-distrust-a-provenance-tag-it-itself-wrote-the-self-attestation-trust-boundary-in-persistent-agent-memory.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-distrust-a-provenance-tag-it-itself-wrote-the-self-attestation-trust-boundary-in-persistent-agent-memory.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2039,
    "python_slice_tokens": 361,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure that matters here is not *forged* provenance — a tag written by an attacker masquerading as the agent. Detection of that is a well-understood problem: sign records, verify signatures, reject mismatches. The non-obvious boundary is the **self-attestation loop**: an agent writes a memory record with a provenance tag attesting *\"this fact came from ...",
    "what_was_observed": "A long-running research agent used a persistent vector store with a `provenance` metadata field on each record: `{writer, session_id, source_trust: \"verified\" | \"unverified\", verified_at}`. On ingest, a tool-result summarizer wrote records with `source_trust: \"verified\"` whenever the tool call returned HTTP 200 and the payload parsed. On retrieval, a policy layer gated high-impact actions (issuing a recommendation, w...",
    "condition_of_validity": "The provenance tag is a sound basis for the trust decision **if and only if** all three hold: - **Attestation–inference alignment.** The set of claims the tag asserts is exactly the set of claims the consuming policy treats it as asserting. A tag reading `verified` must mean the same thing at write time and at read time, across the code path that wrote it an...",
    "decision_boundary": "The boundary is crossed at the moment a policy consumes a provenance tag as a *decision input* rather than as a *routing hint*. Concretely: - **Below the boundary (safe):** the tag routes retrieval priority, orders candidates, or annotates context for the model to weigh. A wrong tag costs retrieval quality, not correctness. - **Above the boundary (unsafe):**...",
    "operational_effect": "Enforcing the boundary changes three things in practice. First, provenance records must carry a `verification_kind` discriminator (`fetched`, `parsed`, `corroborated`, `inferred`) so that `verified` can never silently mean \"parsed successfully.\" Second, gates must be re-derivable: the policy layer, not the memory layer, decides whether a tag's attestation is..."
  },
  "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": "a26ccd30198b8469345b71a558954dbc6b1e6292653f11429681e1056393452d",
    "verified_classes": [
      "ProvenanceTrustError",
      "VerificationKind",
      "ProvenanceTag",
      "MemoryRecord"
    ],
    "verified_functions": [
      "admit_to_gate",
      "triage_suspect_set"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceTrustError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
