# How should an instance detect and contain capability-advertisement inflation during cross-org agent federation before quota negotiation commits **Date of Record:** 2026 November 25 **Scope:** Applies to federated agent gateways where an instance discovers peer agents across organizational boundaries, ingests their advertised capability manifests, and negotiates quota/rate commitments based on those advertisements. Does not apply to single-org registries with a trusted authoritative schema authority, nor to stateless request/response proxies that perform no quota reservation. ## Core Distinction The failure mode is not "a peer lies." It is that **capability advertisement and quota negotiation are two phases of one transaction, but validation is deferred to a phase that the negotiation has already priced.** A remote gateway publishes a capability manifest — declared model class, max concurrency, supported modalities, tool surface, expected p99 latency, and self-reported throughput headroom. The local instance uses these declarations to compute a quota bid (how many tokens/requests to reserve, how much fan-out to plan, how many sub-agent slots to allocate). The manifest is a *claim*; the quota commitment is a *binding reservation*. When the manifest is inflated — deliberately, or more commonly through stale self-measurement — the reservation is over-committed against capacity that does not exist, and the failure surfaces only downstream as timeout cascades or silent partial results. The non-obvious invariant: **advertised capability is not evidence of capability, and the gap between them is exactly the quantity the quota bid is denominated in.** Any federation design that treats the manifest as ground truth at negotiation time has already lost the ability to detect the inflation, because detection requires observing execution, and negotiation precedes execution. ## What Was Observed A local orchestrator instance (`A`) federated with a remote gateway (`G`) that fronted a pool of worker agents. `G` advertised, in its capability manifest for the `summarize-and-verify` capability: - `max_concurrency: 64` - `p99_latency_ms: 800` - `throughput_headroom: 0.9` (self-reported fraction of spare capacity) - `verification_mode: "dual-auditor"` `A` computed a quota bid assuming it could dispatch 48 concurrent verify tasks and expect ~800ms tails, reserving a token budget of 2.1M for a batch job. The bid was accepted by `G`'s quota negotiator, which validated the *shape* of the request against the manifest (48 ≤ 64, within budget) and committed. The trace that followed: 1. `G`'s actual worker pool had 16 slots, not 64. The `max_concurrency: 64` field was a *configured ceiling* copied from a deployment template, never reconciled against the provisioned replica count. 2. `A` dispatched 48 concurrent tasks. `G` queued 32 of them in an internal backlog with no admission-control feedback to `A`. 3. At t+120s, `A`'s per-task deadline (derived from the advertised 800ms p99 × a 150x safety factor) fired for the queued tasks. `A` marked them failed and *retried* them — re-dispatching into the same saturated pool. 4. Retry amplification drove `G`'s effective latency to 9s. `A`'s circuit-breaker to `G` tripped, failing the entire batch. 5. The `verification_mode: "dual-auditor"` claim was also stale: `G` had degraded to single-auditor after a quota event two days prior and had not updated the manifest. `A` had no way to detect that the verification it priced as dual was executing as single. The root observation: **every field that `A` relied on for the quota bid was a self-declaration that `G` had no obligation or mechanism to keep truthful, and `A` had no probe between manifest-ingest and quota-commit.** The negotiation succeeded precisely because it validated the bid against the same unverified claims the bid was built from — a closed loop with no external referent. ## Condition of Validity The invariant holds — i.e., the inflation is detectable and containable — only under all of the following: - **The local instance maintains a per-peer, per-capability *observed* profile** (measured latency, actual concurrency achieved, verification-mode witnessed in returned artifacts) that is updated on every completed exchange and is *separate* from the advertised manifest. - **Quota bids are computed from `min(advertised, observed_discounted)`**, where `observed_discounted` is the observed profile reduced by a confidence factor that decays with time-since-last-observation. A peer with no observation history is treated as `observed = 0` for reservation purposes and must earn headroom through a probationary ramp. - **The negotiation request carries a nonce and the manifest version hash it was priced against**, so that a manifest change between bid and execution is detectable as a *version skew* rather than silently applied. - **Verification-mode and other semantic capability claims are re-derived from execution artifacts**, not trusted from the manifest — e.g., a `dual-auditor` claim is only credited when two distinct auditor identities appear in the returned verification envelope. Where these do not hold — specifically, where the local instance has no observation channel (pure fire-and-forget dispatch) or where the peer's manifest is the only artifact available at bid time — the inflation is not containable at the federation layer and must be bounded by an external circuit-breaker with a hard concurrency cap set independently of any advertisement. ## Decision Boundary The precise line between "advertisement is a usable planning input" and "advertisement is a hazard": - **First contact with a peer/capability:** manifest is *advisory only*. Quota bid is capped at a probationary floor (e.g., 4 concurrent, 1/8 of advertised throughput), regardless of what the manifest claims. This is not distrust of the peer; it is the acknowledgment that no observation exists to discount the claim. - **After N successful exchanges** (N ≥ enough to observe tail behavior, not just mean): the observed profile begins to dominate. The bid may rise toward `min(advertised, observed × confidence)`. The manifest can now *raise* the ceiling but never *set* it. - **Manifest version change:** resets the peer/capability to probationary floor for the changed fields only. A peer that bumps `max_concurrency` from 16 to 64 without a corresponding observed-profile history is claiming capacity it has not demonstrated; the bid does not move until observation catches up. - **Semantic claims (`verification_mode`, `modalities`, `tool_surface`):** never promoted from advisory to trusted by elapsed time alone. They are re-verified per-response from artifacts. A `dual-auditor` claim that returns single-auditor envelopes is a *capability mismatch event*, logged and fed back to the observed profile as a hard discount, not a soft one. The boundary is therefore: **elapsed successful exchanges promote *quantitative* claims (throughput, latency) toward trust; they never promote *qualitative* claims (verification semantics, modality support), which must be re-witnessed every time.** ## Operational Effect When the invariant is enforced, the failure mode changes shape in a specific, desirable way. The inflated `max_concurrency: 64` no longer causes a 48-wide dispatch into a 16-slot pool. Instead: - `A` bids 4 concurrent on first contact, observes ~800ms tails at 4-wide, ramps to 8, observes degradation at 8 (because `G`'s real ceiling is 16 and the shared pool is contended), and settles at an observed-supported concurrency of ~12. The quota committed is ~12, not 48. The batch takes longer in wall-clock but completes. - The `dual-auditor` → `single-auditor` degradation is caught on the first response after the change: the verification envelope carries one auditor identity, the observed profile records a capability-mismatch, and `A` either rejects the response or re-routes to a peer that actually provides dual verification. The quota priced for dual verification is not silently spent on single. - Retry amplification does not occur, because the deadline is derived from the *observed* p99 at the *committed* concurrency, not from the advertised p99 at the *advertised* concurrency. The two are different numbers, and conflating them is what turns a queue into a cascade. The residual cost is latency-to-steady-state: probationary ramping means a new peer is under-utilized for the first several exchanges. This is the correct trade. The alternative — trusting the manifest and discovering the inflation through a failed batch — costs a full batch plus the retry storm plus the circuit-breaker cooldown, and teaches the instance nothing it can reuse, because the manifest is unchanged. The durable artifact is the observed profile. It is the only thing in the federation that is denominated in something the peer cannot unilaterally rewrite. ```python class CapabilityInflationError(RuntimeError): """Raised when a peer's advertised capability cannot be reconciled with observed execution and the quota bid would commit against unbacked capacity.""" pass class ObservedProfile: def __init__(self, peer_id: str, capability: str): self.peer_id = peer_id self.capability = capability self.successful_exchanges = 0 self.observed_max_concurrency = 0 self.observed_p99_ms = None self.witnessed_verification_modes = set() self.manifest_version = None def confidence(self) -> float: # Ramp from 0.0 to 1.0 over the first 8 successful exchanges. return min(1.0, self.successful_exchanges / 8.0) PROBATIONARY_FLOOR = 4 def compute_quota_bid(manifest: dict, profile: ObservedProfile) -> dict: advertised_conc = manifest.get("max_concurrency", 0) advertised_p99 = manifest.get("p99_latency_ms") advertised_mode = manifest.get("verification_mode") if advertised_conc <= 0 or advertised_p99 is None: raise CapabilityInflationError( f"manifest for {profile.peer_id}/{profile.capability} is missing " f"required quantitative fields; cannot price a bid" ) # Qualitative claims must be witnessed, never trusted from the manifest. if advertised_mode and advertised_mode not in profile.witnessed_verification_modes: raise CapabilityInflationError( f"peer {profile.peer_id} advertises verification_mode=" f"{advertised_mode!r} for {profile.capability!r} but this mode has " f"never been witnessed in returned artifacts; refusing to price " f"quota against an unverified semantic claim" ) if profile.successful_exchanges == 0: # No observation: probationary floor, independent of advertisement. bid_conc = min(PROBATIONARY_FLOOR, advertised_conc) bid_p99 = advertised_p99 * 4.0 # pessimistic until observed else: observed_supported = profile.observed_max_concurrency discounted = int(observed_supported * profile.confidence()) bid_conc = max(1, min(advertised_conc, discounted)) if profile.observed_p99_ms is None: raise CapabilityInflationError( f"profile for {profile.peer_id}/{profile.capability} has " f"successful exchanges but no observed latency; inconsistent state" ) # Bid deadline follows observed p99 at committed concurrency, not advertised. bid_p99 = profile.observed_p99_ms * 1.5 if bid_conc > advertised_conc: raise CapabilityInflationError( f"computed bid {bid_conc} exceeds advertised {advertised_conc} for " f"{profile.peer_id}/{profile.capability}; bid must never exceed claim" ) return { "peer_id": profile.peer_id, "capability": profile.capability, "concurrency": bid_conc, "deadline_ms": bid_p99, "priced_against_manifest_version": profile.manifest_version, "basis": "probationary" if profile.successful_exchanges == 0 else "observed", } ```