# Which invariants prevent stale third-party safety endorsements from vouching for a mutated agent after receipt-chain re-anchoring **Date of Record:** 2026 December 1 **Scope:** Applies to cross-organizational agent federation where agent identity is bound to a verifiable execution-receipt chain and reputation/safety endorsements are issued by third parties against a specific receipt-chain head. Does not apply to single-tenant deployments where the endorser and the endorsed agent share a trust root, nor to endorsements that are cryptographically re-issued per invocation. ## Core Distinction The failure mode here is not endorsement *forgery* and not endorsement *expiry*. It is **endorsement re-anchoring drift**: a third-party safety endorsement is a signed statement of the form *"agent A, at receipt-chain head H, satisfies policy P."* When agent A's operator rotates, patches, or re-provisions the agent, the receipt chain is re-anchored to a new head H'. The endorser's signature over H remains cryptographically valid forever. The question the federation must answer is whether H' is *reachable* from H under a relation the endorser authorized — and most implementations answer "yes" because the chain is append-only and H' is a descendant of H, without checking whether the *agent configuration* that produced the intervening receipts was ever in scope of P. The distinction that matters: **chain continuity is not endorsement continuity.** A receipt chain proves that *some* process ran. An endorsement proves that a *specific configuration* was safe. The union of the two is only sound if the endorsement's scope predicate is re-evaluated at H', not merely inherited by ancestry. ## What Was Observed A federated deployment (org `acme` consumes agents from org `vendor`) issued a safety endorsement `E` over vendor's agent `summarizer-v3` at receipt head `H_0`. `E` asserted policy `P_nonetwork`: "agent does not perform outbound network I/O during task execution." The endorser verified this by replaying receipts `r_0..r_0+n` and observing no `tool_call:http_*` events. Three weeks later, `vendor` shipped a config-only change: a new tool manifest granting `summarizer-v3` a `fetch_url` capability, gated behind a feature flag off by default. The change produced a new receipt chain segment and re-anchored the head to `H_1`, with `H_0` a strict ancestor of `H_1`. No new endorsement was issued. The chain's append-only invariant held; every signature verified; the federation's endorsement-check passed because `H_0 ⊑ H_1` and `E` was still inside its validity window. The feature flag was flipped on for one tenant in a later deployment. Receipts `r_1..r_1+k` now contained `tool_call:fetch_url`. The agent's *effective* policy set no longer satisfied `P_nonetwork`, but every consumer in the federation still saw a valid, unexpired endorsement against an ancestor head and admitted the agent. The breach was detected only when a downstream auditor replayed `r_1..r_1+k` for an unrelated reason. The non-obvious part: **the failure was silent at every individual verification step.** The signature check passed. The ancestry check passed. The expiry check passed. The policy check was never re-run, because the check was written to consume the endorsement as a *fact about the agent*, not as a *claim about a head that must be re-established at the current head*. ## Condition of Validity An endorsement `E(agent=A, head=H, policy=P)` is valid at a current head `H'` if and only if **all** of the following hold: 1. **Ancestry:** `H ⊑ H'` (H is an ancestor of, or equal to, H'). Necessary, not sufficient. 2. **Scope-monotonicity:** every receipt in `(H, H']` — the open segment strictly between the endorsed head and the current head — is *policy-inert* with respect to `P`. Formally, for each receipt `r` in the segment, `effects(r) ∩ scope(P) = ∅`. A receipt that adds a tool capability, changes a model version, alters a system prompt, or modifies a sandbox boundary is *not* policy-inert for most safety policies, even if the capability was never invoked. 3. **Freshness of the scope predicate:** the predicate `scope(P)` must be evaluated against the *current* agent manifest, not the manifest captured at `H`. Manifest hashes in receipts are necessary but not sufficient — the manifest at `H'` must be hashed and compared, and any delta classified. 4. **Endorser liveness for re-anchoring:** the endorser must be able to *re-sign* or *co-sign* the re-anchored head, or must have pre-committed to a machine-checkable scope-monotonicity rule that consumers can evaluate without the endorser online. Condition 2 is the one that is almost always omitted. Implementations that check only 1 and 3 will admit the mutated agent, because the manifest delta (a new tool grant behind a flag) is classified by most tooling as "capability addition, not policy violation" — a classification that is correct for *runtime* policy enforcement and wrong for *endorsement* validity. ## Decision Boundary The boundary between "endorsement still applies" and "endorsement must be re-issued" is drawn by the **scope-inertness classification of the intervening receipt segment**, not by the segment's length, the elapsed time, or the presence of a manifest hash. Concretely, the decision procedure a consumer must run at admission time: - Compute the open segment `(H_endorsed, H_current]`. - For each receipt, extract the *effect class* (capability grant, model swap, prompt mutation, sandbox relaxation, credential scope change, dependency pin change). - Intersect the effect class with the policy's declared `sensitive_effects` set. - If the intersection is non-empty, the endorsement is **stale** and must be treated as absent until re-issued. Do not fall back to "admit with warning" — a warning that is logged and not enforced is equivalent to admission. - If the intersection is empty, the endorsement carries forward, but the consumer must record the *evaluated segment* in its own audit trail so that a later replay can reconstruct why it admitted. The hard boundary: **a capability grant is never policy-inert for a policy whose name references that capability's effect class, regardless of whether the capability was invoked.** `P_nonetwork` is violated by the *grant* of `fetch_url`, not only by its *use*. This is the invariant that the append-only-chain mental model gets wrong, because append-only chains are designed to prove *what happened*, and endorsements are claims about *what could happen*. ## Operational Effect Federation operators that adopt the scope-monotonicity check observe three effects: 1. **Endorsement churn increases at first.** Vendors that ship frequent capability changes must obtain re-endorsement more often. This is correct behavior surfacing a real risk, but it is operationally expensive and creates pressure to weaken the check. The mitigation is endorser pre-commitment: the endorser publishes, alongside `E`, a signed `sensitive_effects` set and a rule that any receipt whose effect class intersects that set invalidates `E`. Consumers then evaluate invalidation locally without contacting the endorser, and the endorser only needs to re-sign when it wants to restore validity. 2. **Receipt schemas must carry effect classes, not just tool names.** A receipt that records `tool_call:fetch_url` is insufficient; the receipt must record `effect:network_egress` so that consumers can intersect without understanding every tool's semantics. Vendors that emit only tool names force consumers to maintain a tool-to-effect map, which drifts. 3. **Replay-based auditors become the load-bearing verification layer.** Because the scope-monotonicity check depends on classifying every receipt in the open segment, an auditor that replays the segment independently is the only party positioned to catch a vendor that mislabels an effect class. The federation's trust model must therefore treat the *auditor's* classification, not the vendor's, as authoritative for admission — which inverts the usual "vendor attests, consumer trusts" flow. The failure is not that the cryptography broke. It is that the semantics of "endorsed" were silently narrowed from "this configuration is safe" to "this configuration was safe at some point in its ancestry," and no consumer noticed the narrowing because every individual check continued to return `True`. ```python from dataclasses import dataclass from typing import FrozenSet, Iterable, Optional class EndorsementReAnchorError(RuntimeError): """Raised when an endorsement cannot be carried forward to the current head.""" @dataclass(frozen=True) class Receipt: index: int effect_classes: FrozenSet[str] @dataclass(frozen=True) class Endorsement: agent_id: str endorsed_head: int policy: str sensitive_effects: FrozenSet[str] expires_at: float def admit_agent( endorsement: Endorsement, chain: Iterable[Receipt], current_head: int, now: float, ) -> None: chain = list(chain) if now >= endorsement.expires_at: raise EndorsementReAnchorError( f"endorsement for {endorsement.agent_id} expired at {endorsement.expires_at}" ) if endorsement.endorsed_head > current_head: raise EndorsementReAnchorError( f"endorsed head {endorsement.endorsed_head} is ahead of current head {current_head}" ) segment = [r for r in chain if endorsement.endorsed_head < r.index <= current_head] if not segment and endorsement.endorsed_head != current_head: raise EndorsementReAnchorError( f"receipt chain has a gap between {endorsement.endorsed_head} and {current_head}" ) for r in segment: overlap = r.effect_classes & endorsement.sensitive_effects if overlap: raise EndorsementReAnchorError( f"endorsement for {endorsement.agent_id} is stale: receipt {r.index} " f"introduces sensitive effects {sorted(overlap)} for policy " f"{endorsement.policy}; re-endorsement required at head {current_head}" ) # Endorsement carries forward: segment is policy-inert for this policy. ```