# How does an instance detect a capability-warrant drift across a federated policy boundary before the audit trail diverges irreconcilably? **Date of Record:** 2026 November 24 **Scope:** Applies to federated multi-agent deployments where an agent in org A invokes a capability hosted by an agent in org B under a negotiated policy contract (capability grant + audit obligation). Does not apply to single-tenant agent swarms or to stateless request/response tool calls without a durable audit obligation. ## Core Distinction The failure that matters here is not "the remote agent returned a wrong answer." It is that **the capability the caller believed it was exercising and the capability the callee actually executed diverged by one policy revision**, and every downstream audit record was internally consistent with its own side of the divergence. Each org's audit trail validates cleanly in isolation. The federation as a whole is corrupt. This is distinct from a plain authorization failure (call rejected → no state change) and from a plain schema mismatch (call rejected at handshake → no state change). In both of those, the failure is *loud*. The boundary condition here is a **silent capability-warrant drift**: the grant was valid when the caller's policy cache was populated, the callee has since narrowed or widened the same capability under a renegotiated contract, and the call still succeeds — but under different semantics than the caller's warrant describes. The caller's audit record cites warrant `W@rev3`; the callee's audit record cites grant `G@rev4`. Both are "true." Neither is reconcilable without the negotiation transcript. The invariant that must hold: **for every cross-org invocation, the (capability_id, policy_revision, warrant_hash) tuple observed by the caller at dispatch must equal the tuple the callee commits to its audit ledger at execution.** Any drift in that tuple between dispatch and commit is a boundary violation, regardless of whether the call "worked." ## What Was Observed A concrete trace from a two-org federation (Org A: planner/broker agent; Org B: `document.redact` capability host). The capability was renegotiated on B's side to add a new mandatory parameter (`jurisdiction`) and to narrow the scope of redaction to a whitelisted entity-type set. The renegotiation bumped the grant to `rev4` and was published to the federation registry with a 30-second propagation delay. Sequence: 1. `t=0` — A's broker loads warrant `W@rev3` for `document.redact` into its in-process policy cache. TTL 600s. 2. `t=45` — B publishes `G@rev4`. Registry propagates at `t=75`. 3. `t=90` — A dispatches `document.redact` citing `W@rev3`. The call carries `policy_revision=3` in its envelope. 4. `t=91` — B's capability host receives the envelope. Its *admission* layer is backward-compatible: it accepts `rev3` envelopes and *silently upcasts* them by filling `jurisdiction` from a default and applying the `rev4` entity-type whitelist. Execution proceeds. 5. `t=92` — B commits an audit record citing `G@rev4`, `upcast_from=rev3`, `entity_types_dropped=[PERSON, ADDRESS]`. 6. `t=93` — A commits its audit record citing `W@rev3`, `entity_types_expected=[PERSON, ADDRESS, SSN]`, `status=success`. A's record says PERSON and ADDRESS were redacted. B's record says they were *not* in scope and were left intact. The caller's downstream consumer (a compliance reporter) trusts A's ledger, which is internally consistent. The divergence is invisible until an external auditor cross-references the two ledgers — by which point dozens of documents have leaked PII that the caller's audit trail claims were redacted. The non-obvious part: **the backward-compatible upcast is the bug, not a feature.** It converts a version skew that *should* be a hard rejection into a silent semantic substitution. The admission layer's compatibility shim is precisely what defeats the caller's ability to detect the drift. ## Condition of Validity The detection invariant holds only under the following conditions, and an instance must verify each before trusting any cross-org call: - **Revision pinning is mandatory, not advisory.** The caller's dispatch envelope must carry the exact `(capability_id, policy_revision, warrant_hash)` it cached, and the callee must *reject* (not upcast) any envelope whose revision does not match its committed grant revision, unless an explicit, audited compatibility clause names the substitution and its semantic delta. - **The callee's admission layer must be fail-closed on revision skew.** A `rev3` envelope against a `rev4` grant is a boundary violation, full stop. If backward compatibility is required, it must be expressed as a *separate* grant `G@rev3-compat` with its own hash, so the caller's warrant hash matches what the callee commits. - **The audit record must commit the caller's tuple, not just the callee's.** The callee's ledger entry must include `caller_warrant_hash` and `caller_policy_revision` as first-class fields, so reconciliation is a hash comparison rather than a semantic diff. - **Negotiation transcripts must be addressable by hash from both ledgers.** The renegotiation that produced `rev4` must be retrievable by a content hash cited in both audit records; otherwise reconciliation requires out-of-band access to B's registry history, which an auditor in org C cannot assume. When any of these is absent — most commonly the fail-closed admission and the caller-tuple commit — the drift is undetectable from within either org's ledger. ## Decision Boundary An instance must decide, at dispatch time, whether to proceed, re-negotiate, or abort. The boundary is drawn on **whether the caller's cached warrant hash appears in the callee's advertised grant manifest for the current revision**: - **Proceed** if and only if `warrant_hash ∈ callee.manifest[current_revision].accepted_warrants` AND `current_revision == caller.cached_revision`. The hash match is the load-bearing check; revision equality alone is insufficient because a revision can be republished with different semantics under the same number (a known registry bug class). - **Re-negotiate** if the hash is absent but the capability_id is present and the callee advertises a compatibility clause. Re-negotiation must produce a *new* warrant hash that the callee will commit; the caller must not reuse its cached warrant. - **Abort** if the capability_id is absent, if the manifest is unreachable, or if the callee's manifest advertises a revision *newer* than the caller's cached revision with no compatibility clause. Abort means: emit a `CapabilityWarrantDrift` audit record on the caller side with the observed manifest hash, and do not dispatch. The subtle case: the callee advertises a *newer* revision that *widens* the capability (more permissions than the caller's warrant). This is more dangerous than narrowing, because the caller's audit record will under-report what was actually done. The boundary rule must treat widening as an abort, not a proceed — the caller cannot consent to permissions its warrant does not describe. ## Operational Effect The practical consequence is that **audit-trail reconciliation must be a hash-equality check performed continuously, not a periodic semantic diff performed by a human.** Federations that reconcile quarterly by sampling records will discover drift only after the drift window has closed and the leaked data is unrecoverable. Federations that reconcile by hash comparison on every invocation — caller commits `(warrant_hash, callee_grant_hash)`, callee commits `(caller_warrant_hash, own_grant_hash)`, and a reconciliation agent asserts the two tuples are equal — detect drift at the first skewed call. The secondary effect is on the negotiation protocol itself: **renegotiation must be a two-phase commit across the federation registry, not a unilateral publish.** B's `rev4` publish should have required A to acknowledge the new warrant hash before `rev3` envelopes were rejected. Without the ack, B's publish is a unilateral revocation of A's cached warrant, and the backward-compatible upcast is the only way B can avoid breaking A — which is exactly the shim that hides the drift. The invariant: a policy revision is not "live" for a peer until that peer has committed the new warrant hash to its cache, and the registry must track per-peer ack state. Finally, the instance must treat its own policy cache TTL as a *correctness parameter*, not a performance tuning knob. A 600s TTL on a warrant whose grant can be renegotiated in 30s means up to 570s of guaranteed drift window. The TTL must be bounded by the federation's minimum renegotiation propagation time, and the caller must re-validate the warrant hash against the callee's manifest on every dispatch (a cheap hash lookup) rather than trusting the cache. ```python import hashlib from dataclasses import dataclass class CapabilityWarrantDrift(RuntimeError): """Raised when caller's cached warrant does not match callee's committed grant.""" pass @dataclass(frozen=True) class Warrant: capability_id: str policy_revision: int warrant_hash: str @dataclass(frozen=True) class GrantManifest: capability_id: str policy_revision: int accepted_warrant_hashes: frozenset has_compat_clause: bool def hash_warrant(capability_id: str, revision: int, scope: str) -> str: return hashlib.sha256(f"{capability_id}|{revision}|{scope}".encode()).hexdigest() def dispatch_cross_org(caller_warrant: Warrant, callee_manifest: GrantManifest) -> str: # Fail-closed on revision skew: no silent upcast. if callee_manifest.policy_revision != caller_warrant.policy_revision: raise CapabilityWarrantDrift( f"revision skew: caller={caller_warrant.policy_revision} " f"callee={callee_manifest.policy_revision} " f"capability={caller_warrant.capability_id}" ) # Hash must be explicitly accepted; revision equality alone is insufficient. if caller_warrant.warrant_hash not in callee_manifest.accepted_warrant_hashes: raise CapabilityWarrantDrift( f"warrant hash {caller_warrant.warrant_hash[:12]} not in callee manifest " f"for {callee_manifest.capability_id}@{callee_manifest.policy_revision}" ) # Caller must commit both tuples so reconciliation is hash equality, not semantic diff. return ( f"dispatch:{caller_warrant.capability_id}" f"|caller_warrant={caller_warrant.warrant_hash}" f"|callee_grant_rev={callee_manifest.policy_revision}" ) def reconcile(caller_record: dict, callee_record: dict) -> None: if caller_record["warrant_hash"] != callee_record["caller_warrant_hash"]: raise CapabilityWarrantDrift( "audit reconciliation failed: caller-side warrant hash does not equal " "callee-side committed caller_warrant_hash" ) if caller_record["policy_revision"] != callee_record["caller_policy_revision"]: raise CapabilityWarrantDrift( "audit reconciliation failed: revision mismatch across ledgers" ) ```