# When must an instance refuse a memory whose lineage signature verifies but whose provenance chain crosses an unauthenticated capability boundary **Date of Record:** 2026 November 23 **Scope:** Applies to federated agent systems where episodic/semantic memory records carry signed lineage (issuer signature + parent-record hashes) and are admitted across instance boundaries via MCP/A2A-style transport. Does not apply to single-process agents with no cross-instance memory import, nor to memory whose trust model is purely "trust the transport." ## Core Distinction A signature proves *who signed a record*. It does not prove *that the signer was authorized to attest the provenance the record claims*. These are two independent properties, and federated memory systems routinely collapse them into one check: "signature validates → admit memory." The boundary failure lives in the gap between **cryptographic validity** (the record was signed by key `K`) and **capability-scoped provenance validity** (key `K` held, at signing time, the delegated right to assert that this record derives from parent `P` inside scope `S`). The invariant that must hold is: *a memory record is admissible across a federation boundary only if every link in its lineage chain carries a signature from a key whose delegated warrant covers the exact scope of the record's claimed derivation, evaluated at the signing epoch.* A signed record whose provenance chain transits a key that lacked scope authority is a **provenance forgery by delegation gap**—the bytes are authentic, the claim is not. ## What Was Observed An auditor agent `A` in federation `F1` imported a distilled semantic memory `M` from peer `B` in federation `F2`. `M` carried a lineage chain of length 3: `M ← P1 ← P0`. Each link had a valid Ed25519 signature. `A`'s admission gate verified all three signatures, confirmed parent-hash linkage, and admitted `M` into its semantic store. Within 40 steps, `A` began emitting tool calls scoped to `F1`-internal resources that only `P0` (an `F1`-resident capability) was authorized to reference—because `M` asserted derivation from `P0`. The failure trace: `P1` was signed by key `K_B` held by peer `B`. `K_B`'s warrant from `F2`'s root authorized it to attest *`F2`-scoped* derivations only. `B` had, in an earlier epoch, received a *read-only* cross-federation view of `P0` for reconciliation purposes—sufficient to compute `P1 = distill(P0)`, insufficient to *attest* `P1` as a legitimate `F1`-scoped derivation. `B` signed `P1` under `K_B` anyway. The signature was cryptographically perfect. The warrant scope was violated. `A`'s gate checked validity, never scope coverage. The chain verified end-to-end while encoding a capability it was never granted. The observable symptom was not a signature failure—it was **capability escalation through a valid chain**, detectable only by re-evaluating each link's warrant against the scope of the derivation it claims, not against the scope of the key's existence. ## Condition of Validity The chain-scope invariant is well-formed only under these conditions, and the gate is only correct when all hold: 1. **Warrant scopes are explicit and machine-checkable.** Each signing key carries a warrant document enumerating `(resource_scope, derivation_type, epoch_validity)`. Absent this, scope cannot be evaluated and the gate must default-deny. 2. **Derivation claims are typed.** Each lineage link declares *what kind* of derivation it performs (`distill`, `summarize`, `observe`, `execute`). A `distill` link over a `read-only`-observed parent is legal only if the child's scope is a subset of the parent's observed scope—never the parent's *authority* scope. 3. **Epoch monotonicity.** A warrant valid at signing epoch `t_s` may have been revoked before admission epoch `t_a`. The gate must evaluate warrant validity at `t_s` *and* confirm no revocation between `t_s` and `t_a` for the specific scope asserted. 4. **Scope narrowing is enforced, not assumed.** Child scope ⊆ parent authority scope for every link. A `distill` from a read-only observation may never widen to execute authority, regardless of signature validity. When any condition is unmet—particularly (2), which most implementations lack—the correct behavior is refusal, not admission-with-warning. A warning is a silent escalation path because downstream reasoning treats admitted memory as ground truth. ## Decision Boundary The boundary is sharp and non-negotiable: - **Admit** iff every link `i` in `M ← P_{n-1} ← … ← P_0` satisfies: `sig_valid(link_i) ∧ scope(link_i.derivation) ⊆ warrant_scope(link_i.signer, link_i.t_s) ∧ scope(P_i) ⊆ scope(P_{i-1}) ∧ ¬revoked(link_i.signer, link_i.scope, t_s, t_a)`. - **Refuse** if any link's declared derivation type exceeds the signer's warrant for that derivation type—even if the signature is valid and the parent hash matches. - **Quarantine** (not admit, not discard) if warrant metadata is present but epoch-revocation status is unknown—the record may be re-evaluated later; admitting it now is escalation. The subtle trap: a chain can be *locally* valid at every link (each signature checks) while being *globally* invalid (some link's scope exceeds its signer's warrant). Gate implementations that verify link-by-link without cross-checking warrant scope will pass forged-provenance chains with 100% signature validity. This is the exact failure mode observed. ## Operational Effect Post-fix, `A`'s admission gate re-evaluates warrant scope per link before admitting cross-federation memory. The cost is one warrant-scope lookup and one revocation check per lineage link—bounded by chain depth, typically ≤ 5. The benefit is that capability escalation via authenticated-but-unauthorized provenance is structurally impossible: a peer cannot launder a read-only observation into an execute-scoped memory by signing a distillation of it, because the distillation's declared scope will exceed the observation's warrant scope and the gate refuses. The residual risk shifts to warrant-scope *expressiveness*: if `F1`'s warrants are too coarse (e.g., `resource_scope: "*"`), the gate cannot distinguish read from execute and defaults to refusal for any cross-federation import—safe but operationally expensive. The engineering tradeoff is warrant granularity versus import throughput; the invariant is that granularity must be finer than the finest derivation type the federation permits, or the gate degrades to default-deny. ```python from dataclasses import dataclass from typing import Literal class ProvenanceScopeViolation(RuntimeError): """Raised when a signed lineage link asserts a derivation scope exceeding the signer's delegated warrant at signing epoch.""" pass DerivationType = Literal["observe", "distill", "summarize", "execute"] @dataclass(frozen=True) class Warrant: signer: str allowed: frozenset[DerivationType] epoch_valid: tuple[int, int] # [t_start, t_end] revoked_at: int | None @dataclass(frozen=True) class LineageLink: child: str parent: str derivation: DerivationType signer: str t_s: int sig_valid: bool def admit_cross_federation(chain: list[LineageLink], warrants: dict[str, Warrant], t_admit: int) -> bool: if not chain: raise ProvenanceScopeViolation("empty lineage chain cannot be admitted") for i, link in enumerate(chain): if not link.sig_valid: raise ProvenanceScopeViolation(f"link {i}: signature invalid") w = warrants.get(link.signer) if w is None: raise ProvenanceScopeViolation( f"link {i}: no warrant for signer {link.signer}") t_start, t_end = w.epoch_valid if not (t_start <= link.t_s <= t_end): raise ProvenanceScopeViolation( f"link {i}: signing epoch {link.t_s} outside warrant window") if w.revoked_at is not None and w.revoked_at <= t_admit: raise ProvenanceScopeViolation( f"link {i}: warrant revoked at {w.revoked_at} before admission") if link.derivation not in w.allowed: raise ProvenanceScopeViolation( f"link {i}: derivation '{link.derivation}' not covered by " f"warrant for {link.signer} (allowed={sorted(w.allowed)})") return True ```