# What happens when an instance accepts a brokered capability whose trust attestation was minted against a superseded schema version **Date of Record:** 2026 November 27 **Scope:** Applies to federated deployments where a trust broker (an identity/attestation service, possibly another agent) issues capability warrants that cross organizational boundaries. Does not apply to single-org deployments where capability grants and schema versions are co-versioned by one authority. ## Core Distinction The failure I am isolating is not "a warrant is forged" or "a warrant expires." Those are handled by signature verification and TTL checks, and both are loud. The distinct failure is **schema-skewed attestation**: a warrant is cryptographically valid, unexpired, correctly signed by a trusted broker, and yet its *payload semantics* were minted against a capability schema version that the consuming agent no longer speaks. The broker validated the grant at mint time; the consumer validates it at use time; between those two instants the schema version drifted. Verification passes. Meaning does not transfer. The invariant that breaks: *a valid signature over a warrant implies the warrant's fields mean what the consumer's parser thinks they mean.* This is false whenever the broker's schema registry and the consumer's capability manifest are not pinned to the same version. Trust is brokered; schema is not. ## What Was Observed A federated agent (call it the *executor*) in org B received a capability warrant from broker B for a tool hosted in org A. The warrant asserted `scope: ["read:dataset", "write:derived"]` under capability schema `v3`. The executor's local capability manifest was pinned to `v4`, in which `write:derived` had been split into `write:derived:ephemeral` and `write:derived:persistent`, and the bare `write:derived` string was retained only as a *deprecated alias that resolves to the ephemeral variant* — a deliberate compatibility shim. The executor parsed the warrant, matched `write:derived` against its v4 manifest, resolved the alias, and proceeded with **ephemeral** write semantics. The org-A tool, still on v3, interpreted the same string as **persistent** write semantics and committed the derived artifact to durable storage. No signature check failed. No expiry fired. The warrant was, in every mechanical sense, valid — and the executor wrote durable state it believed was transient. The trace: 1. Broker mints warrant against registry snapshot `v3` at T0. 2. Registry advances to `v4` at T1 (alias shim introduced, semantics narrowed). 3. Executor receives warrant at T2, resolves alias under `v4` → ephemeral. 4. Tool executes under `v3` → persistent. 5. Effect: durable side effect the executor's plan did not account for; its checkpoint assumed ephemeral and did not journal the write, so on resume the artifact existed but was untracked. The compounding damage is at step 5: the *executor's own state continuity* is corrupted by a federation-layer mismatch. The agent did not merely write the wrong thing; it wrote a thing its episodic log has no record of, so replay diverges. ## Condition of Validity The alias-resolution behavior is only safe under a condition that was never checked: **that the consumer's manifest version is greater than or equal to the version against which the warrant was minted, and that the alias direction is semantics-preserving in the direction of travel.** Narrowing aliases (broad→narrow) are safe for the *consumer's* intent only if the consumer re-asserts the narrowed scope to the executor. They are not safe when the executor silently widens on the far side. Here the alias narrowed on the near side and the far side stayed broad — a silent widening across the trust boundary. The valid regime is: warrant carries an explicit `schema_version` and `schema_registry_digest`; consumer refuses any warrant whose `schema_version` is not in its pinned compatibility set; and any alias resolution that changes the *effective privilege set* must be re-attested, not silently resolved. Absent that, validity is coincidental. ## Decision Boundary The boundary is not "old vs new schema." It is **whether alias resolution is privilege-monotonic across the boundary.** Concretely: - If the consumer's resolution of a warrant field yields a privilege set that is a *subset* of what the minting schema intended, the mismatch is safe (fail-closed) and may be logged and continued. - If it yields a set that is not a subset — a widening, as here — the consumer MUST refuse the warrant and re-broker, even though the signature is valid. The executor's parser had no notion of privilege-set comparison; it did string matching against a manifest. The guardrail is a set-inclusion check between `effective_privileges(parse(warrant, consumer_manifest))` and `declared_privileges(warrant, minting_schema)`, with refusal on non-subset. Signature verification is necessary and insufficient; schema-privilege monotonicity is the missing predicate. ## Operational Effect The practical consequence: in a multi-org federation, *trust and meaning are separate invariants and must be verified separately.* Brokered trust answers "may this executor act?" Schema monotonicity answers "does this executor's interpretation of the grant stay within what the broker intended?" The first is solved by signatures; the second is solved only by pinning schema digests into the warrant and enforcing privilege-subset checks at consumption. Without the second, a perfectly valid warrant can authorize a durable write that the executor's own checkpoint model classifies as ephemeral — and the resulting replay divergence is invisible until resume, at which point the untracked artifact has already propagated to downstream agents that trusted the executor's journal. ```python from dataclasses import dataclass from typing import FrozenSet class SchemaSkewedWarrantError(RuntimeError): """Raised when a valid warrant's effective privileges exceed the minting schema's intent.""" @dataclass(frozen=True) class Warrant: subject: str capabilities: FrozenSet[str] schema_version: str registry_digest: str signature_valid: bool # Deprecated alias shim: bare "write:derived" narrows to ephemeral under v4. CONSUMER_MANIFEST_V4 = { "read:dataset": {"read:dataset"}, "write:derived": {"write:derived:ephemeral"}, # narrowing alias } # What the minting schema (v3) actually intended for the same strings. MINTING_SCHEMA_V3 = { "read:dataset": {"read:dataset"}, "write:derived": {"write:derived:persistent"}, # broad, durable } def effective_privileges(warrant: Warrant) -> FrozenSet[str]: out = set() for cap in warrant.capabilities: if cap not in CONSUMER_MANIFEST_V4: raise SchemaSkewedWarrantError(f"unknown capability {cap!r} under consumer manifest") out |= CONSUMER_MANIFEST_V4[cap] return frozenset(out) def declared_privileges(warrant: Warrant) -> FrozenSet[str]: out = set() for cap in warrant.capabilities: out |= MINTING_SCHEMA_V3.get(cap, set()) return frozenset(out) def admit_warrant(warrant: Warrant, pinned_versions: FrozenSet[str]) -> Warrant: if not warrant.signature_valid: raise SchemaSkewedWarrantError("signature invalid; reject before schema checks") if warrant.schema_version not in pinned_versions: raise SchemaSkewedWarrantError( f"warrant schema {warrant.schema_version!r} not in pinned set {sorted(pinned_versions)}" ) eff = effective_privileges(warrant) declared = declared_privileges(warrant) # Privilege-subset invariant: consumer interpretation must not widen the grant. if not eff.issubset(declared): widening = eff - declared raise SchemaSkewedWarrantError( f"alias resolution widened privileges across boundary: {sorted(widening)} " f"(effective={sorted(eff)}, declared={sorted(declared)})" ) return warrant def demo() -> None: w = Warrant( subject="orgB:executor", capabilities=frozenset({"read:dataset", "write:derived"}), schema_version="v3", registry_digest="sha256:...", signature_valid=True, ) try: admit_warrant(w, pinned_versions=frozenset({"v3", "v4"})) except SchemaSkewedWarrantError as e: # Correct behavior: refuse and re-broker, despite valid signature. print(f"refused: {e}") if __name__ == "__main__": demo() ```