# What structural signals indicate capability-advertisement forgery in cross-org agent federation, and where trust brokering silently accepts it **Date of Record:** 2026 November 28 **Scope:** Applies to federated agent meshes where a broker (or peer agents) admits remote agents into a task graph based on advertised capabilities, and where trust is established via brokered attestation rather than direct bilateral contracts. Does not apply to single-org MCP tool registries or to statically provisioned agent allowlists with no runtime advertisement. ## Core Distinction The failure mode is not "a malicious agent lies about what it can do." That is expected and handled by trust scoring. The non-obvious boundary is **structural capability forgery**: a remote agent advertises a capability set whose *shape* is internally consistent and schema-valid, but whose composition is impossible or incoherent for any real implementation. Trust brokers score *claims* and *reputation*, not *capability structure*, so a forged advertisement that passes JSON-schema validation and carries a valid attestation chain sails through admission. The broker verifies *who* is speaking and *whether the schema parses*, never *whether the advertised capability algebra is realizable*. The invariant that must hold: **an admitted capability set must be structurally realizable — its declared inputs, outputs, side-effect classes, and resource envelopes must compose without contradiction.** Trust brokering as commonly deployed does not enforce this invariant. ## What Was Observed In a three-org federation (A = orchestrator, B = broker/trust authority, C = remote worker pool), agent `C.worker-17` advertised the following during a capability handshake: - `capability: "document.summarize"` - `inputs: {doc: "uri", max_tokens: "int", redaction_policy: "enum"}` - `outputs: {summary: "string", audit_trail: "uri"}` - `side_effects: ["read:external"]` - `resource_envelope: {max_wall_clock_s: 30, max_external_calls: 0}` - `attestation: valid, signed by C's org root, chain verified by B` Every field validates. The attestation chain verifies. B's trust score for C was 0.81, above the 0.70 admission threshold. The agent was admitted. The contradiction: `side_effects` declares `read:external` (an external network read), but `resource_envelope.max_external_calls` is `0`. A real implementation cannot perform an external read while constrained to zero external calls. Either the side-effect class is wrong or the envelope is wrong. No real code path satisfies both. The advertisement is *structurally impossible* — but it is schema-valid, and the broker had no check for cross-field realizability. The downstream effect was worse than a simple lie. The orchestrator, trusting the envelope, budgeted the agent into a latency-critical fan-out with a 30s wall-clock guarantee and zero expected external I/O (so it co-located the call in a no-egress sandbox). At runtime the agent's actual behavior — because it was a *partially* honest implementation that did perform external reads but had mis-declared its envelope — blocked on network egress that the sandbox denied, hung until the 30s wall clock, and returned a partial summary with a dangling `audit_trail` URI pointing into a namespace the sandbox could never have written. The orchestrator's fan-out deadline fired, and three sibling agents that had already committed partial state were rolled back. The structural signal was present at admission time and ignored: **side-effect class and resource envelope were mutually unsatisfiable.** A one-line cross-field check would have rejected `worker-17` before it entered the graph. ## Condition of Validity Structural forgery detection is valid *only* when the federation protocol defines a closed capability algebra — i.e., a fixed vocabulary of side-effect classes, a fixed set of envelope dimensions, and declared composition rules between them. Under those conditions the following structural signals are decidable at admission: 1. **Side-effect/envelope contradiction.** A side-effect class implying external I/O (`read:external`, `write:external`, `net:*`) paired with an envelope dimension that forbids it (`max_external_calls: 0`, `egress: none`). Decidable, cheap, and the single highest-yield check. 2. **Output/input type-closure violation.** An advertised output type that no downstream admitted capability can consume, combined with an advertised `terminal: true` — meaning the agent claims to be a graph sink but emits an unconsumable type. Real sinks emit terminal types. 3. **Envelope monotonicity violation.** A sub-capability advertising a *larger* resource envelope than the parent capability it specializes. Real implementations specialize by *tightening* envelopes; forgery frequently loosens them to look more capable. 4. **Attestation-scope mismatch.** An attestation that covers the org identity but whose signed scope does not include the specific capability string being advertised. This is the "valid signature, wrong subject" case — the chain verifies but signs a different claim than the one presented. The condition fails — and these signals become undecidable — when the protocol allows free-form capability strings with no closed algebra, or when envelope dimensions are optional and default to "unspecified." In an open-vocabulary federation, structural forgery is indistinguishable from honest specialization, and only runtime observation can catch it. ## Decision Boundary The boundary is between **claim-space verification** and **structure-space verification**. Trust brokering as typically implemented lives entirely in claim-space: it answers "is this a known org, does the signature verify, what is the reputation." Structural forgery lives in structure-space: "is this capability set realizable." A broker that does not cross the boundary admits structurally impossible agents at full trust score. The decision rule for admission: - If the capability algebra is **closed and mandatory** (all envelope dimensions required, side-effect vocabulary fixed): reject on any structural contradiction, *regardless of trust score*. Trust score is not evidence against structural impossibility — a high-reputation org can still ship a mis-declared agent, and in the observed case it did. - If the capability algebra is **open or partially specified**: you cannot decide structurally. You must fall back to **runtime envelope enforcement** — sandbox the agent to the *intersection* of its declared envelope and its declared side-effect permissions (the tighter of the two), and treat any runtime attempt to exceed that intersection as a protocol violation that revokes the attestation for the session. Do not trust either field alone; trust their intersection. The critical asymmetry: **a structurally impossible advertisement is never a false positive.** If side-effects and envelope contradict, the agent is either lying or broken. There is no honest implementation that satisfies both. This makes structural checks safe to enforce at full strictness — unlike reputation heuristics, which carry false-positive cost. ## Operational Effect Enforcing the structural-realizability invariant at admission changes three things: 1. **Admission latency budget.** Structural checks are O(fields) per advertisement and require no network round-trip — they run after signature verification and before trust scoring. Cost is negligible; the check must be placed *before* trust scoring so that a high score cannot mask a structural contradiction. 2. **Fan-out rollback blast radius.** The observed failure rolled back three sibling agents because the impossible envelope was trusted for co-location. With the invariant enforced, `worker-17` never enters the graph, and the rollback never happens. The invariant's value is measured in *prevented rollbacks*, not in caught forgeries — most structural forgeries are honest bugs, and the check catches both. 3. **Attestation revocation semantics.** A structural contradiction discovered at runtime (in open-algebra federations) must revoke the *session* attestation, not the org attestation — the org may be honest while one agent is mis-declared. Conflating the two causes cross-org trust collapse on a single bad worker. The invariant to carry forward: **trust brokering establishes that a claim is authorized; it does not establish that the claim is realizable.** These are orthogonal, and a federation that verifies only the first is structurally forgeable by any org whose schema validator passes — which is every org. ```python from dataclasses import dataclass, field from typing import Optional class StructuralForgeryError(RuntimeError): """Raised when an advertised capability set is schema-valid but structurally unrealizable.""" pass # Closed side-effect vocabulary that imply external I/O. EXTERNAL_SIDE_EFFECTS = {"read:external", "write:external", "net:egress", "net:ingress"} @dataclass class CapabilityAdvertisement: capability: str side_effects: list[str] max_external_calls: Optional[int] max_wall_clock_s: int attestation_scope: list[str] terminal: bool = False output_types: list[str] = field(default_factory=list) def assert_structurally_realizable(adv: CapabilityAdvertisement) -> None: """ Enforce the structural-realizability invariant on an admitted advertisement. Runs AFTER signature verification, BEFORE trust scoring. A structurally impossible advertisement is never a false positive. """ # Signal 1: side-effect / envelope contradiction. declares_external = bool(set(adv.side_effects) & EXTERNAL_SIDE_EFFECTS) if declares_external and adv.max_external_calls == 0: raise StructuralForgeryError( f"capability {adv.capability!r} declares external side-effects " f"{sorted(set(adv.side_effects) & EXTERNAL_SIDE_EFFECTS)} but envelope " f"forbids external calls (max_external_calls=0). Structurally impossible." ) # Signal 4: attestation-scope mismatch (valid signature, wrong subject). if adv.capability not in adv.attestation_scope: raise StructuralForgeryError( f"capability {adv.capability!r} is not covered by attestation scope " f"{adv.attestation_scope}. Signature may verify but signs a different claim." ) # Signal 2: terminal sink emitting unconsumable / empty output set. if adv.terminal and not adv.output_types: raise StructuralForgeryError( f"capability {adv.capability!r} claims terminal=true but declares no " f"output types; a real graph sink emits a terminal type." ) # Signal 3: envelope monotonicity is checked by the caller against the parent # capability; here we only assert the local envelope is non-degenerate. if adv.max_wall_clock_s <= 0: raise StructuralForgeryError( f"capability {adv.capability!r} declares non-positive wall clock envelope." ) def admit(adv: CapabilityAdvertisement, trust_score: float, threshold: float = 0.70) -> bool: # Structural check precedes trust scoring so a high score cannot mask impossibility. assert_structurally_realizable(adv) return trust_score >= threshold if __name__ == "__main__": forged = CapabilityAdvertisement( capability="document.summarize", side_effects=["read:external"], max_external_calls=0, # contradicts read:external max_wall_clock_s=30, attestation_scope=["document.summarize"], ) try: admit(forged, trust_score=0.81) # high trust must NOT rescue it except StructuralForgeryError as e: print(f"REJECTED at admission: {e}") ```