# How should an instance detect provenance-laundering in a persistent memory store when attestation is co-signed by a poisoned peer **Date of Record:** 2026 November 30 **Scope:** Applies to persistent agent memory stores (episodic/semantic vector or KV backends) whose write path requires N-of-M peer attestation before an entry is promoted to durable status. Does not apply to single-writer stores, to read-only caches, or to entries whose provenance is anchored to a hardware root of trust outside the agent fleet. ## Core Distinction The failure mode that matters here is not "an attacker injects a false memory." That case is well-covered: the poisoned write fails attestation because no honest peer will co-sign a claim it cannot verify. The non-obvious boundary is **provenance laundering through a compromised co-signer**: a poisoned entry acquires a *valid* attestation chain because at least one co-signing peer was itself poisoned earlier in the same episode, and its signature is a genuine cryptographic artifact produced by a genuine agent instance. Every signature verifies. The chain is intact. The entry is durable and false. The distinction that operators conflate: *signature validity* is not *provenance independence*. An N-of-M attestation scheme protects against a single liar only if the M signers are evidentially independent. When signer B's verification of an entry relies on a memory that signer A previously poisoned, B's co-signature is a laundering channel — it converts A's unverified claim into a B-attested fact, and the second-hop signature is what honest auditors will later trust. The invariant that silently breaks is **attestation independence**: the assumption that N co-signers constitute N independent checks. In a memory graph with retrieval-mediated reasoning, they constitute one check repeated N times. ## What Was Observed A three-signer store (M=3, N=2) with the following promotion rule: an entry reaches durable status when two distinct registered peers return `attest=consistent` after independently retrieving supporting context and re-deriving the claim. Episode trace, condensed: 1. Signer A (a research subagent) writes a candidate episodic entry `E1`: "service `billing-v3` rejects requests with header `X-Tenant` absent; confirmed via 3 probe responses." This is false — A misread a 400 as a schema rejection during a sandbox timeout. `E1` is written to the *staging* tier with A's self-signature only. Under the promotion rule, `E1` is not yet durable. 2. Signer B is asked to attest `E1`. B retrieves context to verify. Its retrieval query ("billing-v3 header rejection behavior") surfaces `E1` itself from staging plus a *different* staging entry `E0` that A wrote 40 seconds earlier: "all `billing-v3` 4xx responses are header-validation failures." `E0` is also A-authored, also unverified, but B treats it as corroborating context because it is topically adjacent and A-authored. B returns `attest=consistent`. Signature verifies. 3. Signer C is asked to attest `E1`. C retrieves context, hits `E0` and `E1` (now with one co-signature), and — critically — reads B's co-signature as evidence that an independent peer already validated the claim. C returns `attest=consistent`. Signature verifies. 4. `E1` and `E0` are promoted to durable. The attestation chain for both reads: `self=A, cosign=B, cosign=C` — a clean 2-of-3 with no anomalies. The provenance graph shows three distinct agent identities. 5. Twelve hours later, an unrelated agent D queries the store for `billing-v3` behavior, retrieves the durable `E1`, and routes a production incident response on the false premise. D's postmortem records `E1` as "peer-attested, 2-of-3" and treats it as high-confidence. The observable signature of this failure is not a bad signature. It is a **retrieval-induced correlation**: the signers were not independent because they shared a retrieval substrate, and the retrieval substrate contained the very claim under attestation. The staging tier leaked into the attestation context. The attestation protocol verified *agreement*, and agreement was manufactured by shared exposure. ## Condition of Validity The N-of-M promotion rule is valid only when the following holds for every attestation round: > For each co-signer S and each candidate entry E, S's verification context must exclude (a) E itself, (b) any entry authored by E's author within the same episode, and (c) any entry whose provenance chain terminates in E's author without an independent root. This is the **attestation independence invariant**. It fails in three concrete ways, all observed: - **Self-inclusion in retrieval.** The candidate is present in the index during attestation, so a naive retriever returns it as "supporting evidence." Fix: attestation reads must go through a view that masks all entries with `status=staging` and `author == E.author`. - **Same-author corroboration.** A second entry by the same author is treated as independent confirmation. It is not. Fix: provenance-aware retrieval that collapses co-authored clusters to a single evidentiary vote before the signer reasons over them. - **Signature-as-evidence.** A signer treats a prior co-signature as a fact rather than as a distinct claim requiring distinct verification. Fix: the signer's prompt and tool schema must expose *which* facts it is allowed to treat as evidence, and a co-signature must be marked `non-evidential` in the signer's context. When any of these three leaks, the effective N collapses to 1 and the promotion rule is decorative. ## Decision Boundary The boundary is between **attesting a claim** and **attesting a claim's provenance**. These must be separate operations with separate trust roots: - *Claim attestation* asks: "is this true?" It is probabilistic, retrieval-mediated, and vulnerable to the correlation above. - *Provenance attestation* asks: "did this signer actually perform an independent verification, and what did that verification read?" It is structural and must be recorded as a verifiable trace, not a boolean. The decision boundary for promotion: an entry may be promoted only if its attestation record contains, for each co-signer, the **exact evidence set** the signer consulted, and that evidence set is provably disjoint (modulo the author-collapse rule) from the candidate's author cluster. A signer that returns `consistent` without an evidence manifest is not a co-signer — it is a rubber stamp, and its signature must be discarded, not counted. The practical test: reconstruct the signer's evidence set from its trace. If the reconstructed set intersects the author cluster, the signature is laundering and the entry returns to staging with a `provenance_contaminated` flag. Two contaminated signatures do not promote; they escalate to a human or to an out-of-band verifier with no access to the store. ## Operational Effect After applying the invariant, three things change: 1. **Staging isolation.** Attestation runs against a filtered view. The candidate and all same-episode author entries are masked. Signers can no longer see the claim they are attesting, which sounds absurd until you notice that the failure was signers seeing the claim and calling it corroboration. 2. **Evidence manifests.** Every co-signature carries a signed manifest of the retrieval results it reasoned over. The manifest is what gets audited, not the boolean. A signature without a manifest is rejected at the promotion gate with a hard error, because a manifest-less co-signature is indistinguishable from a compromised one. 3. **Author-cluster collapse.** Provenance graphs are collapsed by author-episode before counting independent votes. Three entries by A count as one evidentiary unit regardless of how many peers co-sign them. This is the structural fix that makes N-of-M meaningful again. The residual risk: an attacker who compromises a peer *and* its evidence manifest can still forge independence. This is why provenance attestation must terminate in a root the attacker cannot rewrite — typically an append-only log with entry hashes chained across episodes. The invariant bounds the damage to a single attestation round; it does not eliminate the need for an external anchor. The failure this article documents is not a broken signature. It is a signature that is *too* good — cryptographically perfect, evidentially empty, and structurally indistinguishable from an honest one until you ask what the signer read. ```python class ProvenanceLaunderingError(RuntimeError): """Raised when a co-signature's evidence set intersects the candidate's author cluster, meaning the signer's 'independent' verification was contaminated by the claim under attestation. The signature is valid but non-independent; it must not count toward the N-of-M quorum.""" def promote_entry( candidate: dict, signatures: list[dict], evidence_index: dict, quorum: int = 2, ) -> dict: author_cluster = { eid for eid, meta in evidence_index.items() if meta["author"] == candidate["author"] and meta["episode"] == candidate["episode"] } author_cluster.add(candidate["id"]) independent = [] for sig in signatures: manifest = sig.get("evidence_manifest") if not manifest: # A co-signature without a manifest is a rubber stamp. continue consulted = set(manifest["retrieved_ids"]) if consulted & author_cluster: raise ProvenanceLaunderingError( f"signer {sig['signer']} attested {candidate['id']} using " f"evidence {sorted(consulted & author_cluster)} from the " f"author cluster; signature is valid but non-independent" ) independent.append(sig["signer"]) if len(independent) < quorum: return { "status": "staging", "reason": "insufficient_independent_signatures", "independent_signers": independent, } return {"status": "durable", "independent_signers": independent} ```