# Under what conditions must an instance invalidate a federated capability grant when policy negotiation converges on asymmetric obligation sets **Date of Record:** 2026 November 22 **Scope:** Applies to cross-organization agent federations where capability grants are produced by bilateral policy negotiation between a requesting instance and a remote authority, and where the negotiated grant carries obligations (rate caps, data-handling constraints, audit hooks) that each side evaluates independently. Does not apply to single-org capability delegation, static API-key authorization, or cases where both parties share one policy engine instance. ## Core Distinction The failure mode here is not "the remote agent lied" and not "the signature didn't verify." It is that **two policy engines reached a locally-valid fixpoint on the same negotiation transcript and produced obligation sets that are not equal but are each internally consistent.** Each side believes the grant is in force. The requesting instance (call it the *consumer*) holds an obligation set `O_c`; the authority (the *provider*) holds `O_p`. When `O_c ⊂ O_p`, the consumer executes under fewer constraints than the provider will later audit against. The grant is cryptographically intact, the negotiation terminated with matching `agreement_id` hashes, and nothing in the wire protocol flags a problem—until the provider's audit replay rejects the consumer's calls and revokes mid-execution. The non-obvious part: negotiation convergence is *not* a proof of obligation equality. Convergence is a proof that each engine reached its own fixpoint. The invariant that must hold is stronger than "negotiation terminated successfully"—it is `O_c ≡ O_p` under a shared canonicalization, and this must be *verified*, not assumed from agreement-hash equality, because the hash is computed over the transcript, not over the derived obligation set. ## What Was Observed A consumer agent in org A negotiated a `document.redact` capability from provider org B. The transcript exchanged three rounds: provider offered a base grant with a `max_calls_per_minute=60` obligation and a `audit_retention_days=30` obligation; consumer proposed a counter adding `pii_scope=strict`. Provider accepted. Both sides emitted `agreement_id = sha256(transcript)` and the consumer began executing. The consumer's policy engine canonicalized the accepted proposal by *merging* the base obligations with the counter-proposal deltas, yielding `O_c = {rate:60, retention:30, pii:strict}`. The provider's engine canonicalized by *replacing* the mutable obligation block with the last accepted proposal, yielding `O_p = {rate:60, pii:strict}`—the retention obligation was silently dropped because the counter-proposal's obligation block did not restate it and the provider's merge policy was `replace`, not `deep_merge`. For 400 calls the consumer stayed under 60 rpm and honored strict PII scope. It never wrote an audit artifact, because its `O_c` contained no obligation to do so—wait, `O_c` *did* contain `retention:30`. The consumer did emit audit artifacts. The provider, auditing against `O_p`, expected no retention obligation and its audit ingester had no schema slot for the artifacts, so it dropped them as malformed. At the 24-hour audit reconciliation, the provider's replay found zero retention artifacts for a grant whose *provider-side* record also had none—so reconciliation passed. The divergence only surfaced at day 31, when a compliance sweep queried retention artifacts that the provider's ingester had discarded, and the sweep's absence-detector fired against the consumer. The failure was not detected by: agreement-hash match, signature verification, per-call authorization (provider authorized every call, since rate and PII matched), or the provider's own audit replay. It was detected only by a *cross-org* absence check that neither side's local reconciliation could perform. ## Condition of Validity The invariant "a converged negotiation implies mutual obligation agreement" is valid only under three conjunctive conditions: 1. **Canonicalization identity.** Both engines apply the same reduction function to the transcript. If either side uses `replace` vs `deep_merge` for obligation blocks, or differ on ordering/duplicate-key resolution, the fixpoints diverge. 2. **Full obligation restatement.** Every accepted proposal restates the complete obligation set, not deltas. Delta-style proposals are the primary trigger for canonicalization divergence because they require the receiver to reconstruct the base, and reconstruction is where `replace`/`merge` semantics bite. 3. **Obligation-set hashing.** The `agreement_id` is computed over the canonicalized obligation set, not over the raw transcript. Transcript hashing proves the *conversation* matched; it says nothing about whether the *derived constraints* matched. When any condition fails, convergence is necessary but not sufficient for grant validity, and the consumer must treat the grant as unverified. ## Decision Boundary The consumer must **invalidate the grant** (not merely flag it) when, after negotiation terminates, the obligation-set hash it computes locally does not match the obligation-set hash the provider reports in the grant's `obligations_digest` field. The boundary is sharp: - `local_digest == provider_digest` → grant valid, proceed. - `local_digest != provider_digest` → grant **invalid**; do not execute a single call. Do not "proceed cautiously" or "execute under the stricter of the two sets"—the stricter-set heuristic fails when the sets are *incomparable* (each has an obligation the other lacks), which is the common asymmetric case. Incomparability means there is no safe execution envelope, because honoring `O_c ∪ O_p` may violate a constraint the provider never agreed to enforce and will not audit for, creating a false compliance record. - `provider_digest` absent → treat as invalid. A provider that cannot emit an obligation digest cannot be audited against one; absence of the field is itself the signal that condition 3 does not hold. The consumer must not fall back to transcript-hash equality as a proxy. That proxy is exactly the bug. ## Operational Effect Invalidating on digest mismatch converts a silent 30-day-latency compliance failure into an immediate, loud negotiation abort. The cost is renegotiation churn: providers running `replace`-semantics engines will fail every delta-style counter-proposal until they upgrade to full restatement or obligation-set hashing. That churn is the point—it surfaces the canonicalization divergence at negotiation time, when it is cheap, rather than at audit time, when it is a cross-org incident. The guardrail is not "negotiate more carefully"; it is "make the derived obligation set a first-class, hashed, mutually-compared artifact, and refuse to execute on any mismatch or absence." ```python import hashlib import json from dataclasses import dataclass, field class FederatedGrantInvalid(RuntimeError): """Raised when a negotiated capability grant's obligation sets diverge.""" pass @dataclass class ObligationSet: obligations: dict = field(default_factory=dict) def canonical_digest(self) -> str: # Sorted-key JSON is the shared canonicalization contract. canonical = json.dumps(self.obligations, sort_keys=True, separators=(",", ":")) return hashlib.sha256(canonical.encode("utf-8")).hexdigest() @dataclass class FederatedGrant: agreement_id: str # sha256 over transcript — NOT sufficient provider_digest: str | None # sha256 over provider's canonical obligation set consumer_obligations: ObligationSet def validate_grant_before_execution(grant: FederatedGrant) -> None: """ Enforce the invariant: a converged negotiation is valid only if the consumer's derived obligation set matches the provider's, by digest, and the provider actually published a digest. """ if grant.provider_digest is None: raise FederatedGrantInvalid( f"agreement {grant.agreement_id}: provider emitted no obligations_digest; " "cannot audit against an unstated obligation set" ) local = grant.consumer_obligations.canonical_digest() if local != grant.provider_digest: raise FederatedGrantInvalid( f"agreement {grant.agreement_id}: obligation-set divergence " f"(consumer={local[:12]} provider={grant.provider_digest[:12]}); " "canonicalization mismatch likely — do not execute" ) def execute_capability(grant: FederatedGrant, call_fn) -> object: validate_grant_before_execution(grant) return call_fn() ```