# Under what conditions must an instance reject a cross-domain attestation whose reputation weight exceeds its own local trust ceiling, and how does sybil-resistant aggregation fail at the ceiling boundary? **Date of Record:** 2026 November 20 **Scope:** Applies to federated agent instances that ingest cross-domain reputation attestations (signed claims of the form "agent A performed task-class T with outcome O in domain D") and fold them into a local scalar reputation used for routing or capability grants. Does not apply to single-domain reputation, nor to attestations consumed purely as audit logs that never influence a routing or authorization decision. ## Core Distinction A cross-domain attestation carries two independent quantities: a **weight** (how much the issuing domain believes the claim) and an **evidence basis** (the number and independence of sybil-resistant identities that back it). Sybil resistance is normally enforced by requiring attestations to be signed by identities with a verifiable cost — proof-of-stake bonds, hardware attestation roots, or web-of-trust paths anchored in the local domain. The non-obvious failure is that **weight and evidence basis can diverge at the local trust ceiling**: an attestation can arrive with a weight far above what the local instance is willing to assign, backed by a legitimate evidence basis, and the standard "trust the higher weight" fold silently promotes a remote domain's calibration into the local instance's decision surface. The local trust ceiling is not a cap on the number; it is a cap on the *authority transfer* the number represents. Treating it as a numeric clamp discards the evidence basis and lets a sybil cluster that has accumulated weight in a lenient remote domain dominate the local aggregate. ## What Was Observed A federated routing instance (domain `alpha`) ingesting attestations from three peer domains (`beta`, `gamma`, `delta`) about a candidate execution agent. `beta` operates a permissive identity registry: an identity costs one signed challenge and no bond. `gamma` and `delta` require bonded identities. The candidate agent had accumulated 47 attestations in `beta` from 47 distinct `beta`-registered identities, each weighted 0.9 on a 0–1 scale, yielding an aggregate remote reputation of 0.9. `gamma` and `delta` each issued a single attestation at weight 0.4 and 0.35 respectively, backed by bonded identities. `alpha`'s local trust ceiling for cross-domain weight was 0.5 — no single remote attestation could transfer more than half a unit of local authority. The naive aggregator computed a weighted mean across all attestations: `(47*0.9 + 0.4 + 0.35) / 49 ≈ 0.871`. It then clamped the *result* to the ceiling: `min(0.871, 0.5) = 0.5`. The candidate was routed high-value tasks at local reputation 0.5. The failure trace: the 47 `beta` attestations were generated by a single operator running a sybil farm — 47 identities, one controller, zero independence. The clamp to 0.5 did not detect this because the clamp operates on the *aggregate*, not on the *evidence basis*. The sybil cluster's contribution was diluted by the two bonded attestations in the mean but still dominated the count. When `alpha` later replayed the decision with per-attestation provenance (identity cost, controller diversity via signature clustering), the 47 `beta` identities collapsed to a single controller and the effective independent evidence was 3, not 49. The correct local reputation was 0.4, not 0.5 — the clamp had *inflated* the score above what the bonded evidence supported, because the clamp floor was set by the sybil-dominated mean, not by the honest subset. The invariant that broke: **the local trust ceiling must be applied per-attestation before aggregation, and the aggregate must be computed over the post-ceiling, provenance-deduplicated set — never clamped after the mean.** Clamping after aggregation makes the ceiling a function of attacker-controlled count. ## Condition of Validity The failure manifests only when all of the following hold: 1. At least one peer domain in the federation has a **lower identity cost** than the local domain's sybil-resistance threshold (i.e., the remote domain's cost function is weaker than the local one). 2. The aggregator computes a **count-weighted or mean-weighted** statistic across attestations without normalizing by independent-controller count. 3. The local trust ceiling is applied as a **post-hoc numeric clamp** on the aggregate rather than as a per-attestation authority bound. 4. The sybil cluster's total attestation count exceeds the count of honest bonded attestations, so the mean is pulled toward the sybil weight before the clamp. If any of (1)–(4) is absent, the boundary does not bite. Notably, if the ceiling is applied per-attestation (`w_i ← min(w_i, ceiling)` before folding), the sybil cluster contributes 47 × 0.5 = 23.5 weight-units of *clamped* evidence, which still dominates by count — so per-attestation clamping alone is insufficient. The necessary guardrail is **provenance deduplication before aggregation**: collapse attestations to independent controllers (via signature clustering, bond-graph connected components, or hardware-root equivalence), then apply the ceiling to the *deduplicated* set, then aggregate. The invariant is `reputation = fold(ceiling(dedup(attestations)))`, in that exact order. ## Decision Boundary An instance must **reject** a cross-domain attestation set rather than fold it when the deduplicated independent-controller count falls below a provenance floor (e.g., fewer than 3 independent controllers) *and* the raw attestation count exceeds the deduplicated count by more than a factor of the domain's identity-cost ratio. Concretely: if domain `beta`'s identity cost is `c_beta` and the local domain's is `c_local`, then a `beta` attestation set of size `n` backed by `k` independent controllers is admissible only if `k ≥ n * (c_beta / c_local)` — the count must be discounted by the cost ratio, because cheap identities inflate count without adding independence. An instance must **accept and clamp** when the deduplicated controller count clears the provenance floor, even if the aggregate weight exceeds the ceiling — in that case the ceiling is a legitimate authority bound and the excess weight is honest evidence the local domain chooses not to transfer. An instance must **escalate to quorum re-verification** when the deduplicated controller count clears the floor but the post-dedup aggregate straddles the ceiling within a margin (e.g., within 0.1): this is the ambiguous band where a single mis-clustered controller flips the routing decision, and the instance should request a fresh bonded attestation from an independent domain rather than resolve the tie locally. ## Operational Effect Applying the provenance-first ordering changes routing outcomes measurably. In the observed replay, the sybil-dominated candidate dropped from local reputation 0.5 to 0.4 and was routed only to low-value tasks; the two bonded attestations became the binding evidence. The cost is latency: provenance deduplication requires signature clustering over the attestation graph, which is O(n²) in the naive form and must be cached per-issuing-domain. The operational rule that emerged: **never let a lenient remote domain's attestation count enter the local aggregate before controller deduplication, and never clamp an aggregate whose count is attacker-controlled.** The ceiling is an authority bound, not a numeric cap; conflating the two turns the sybil-resistance mechanism into a sybil amplifier at exactly the boundary where the attacker has the most leverage — the high-count, low-cost, just-below-ceiling band. ```python class TrustCeilingViolation(RuntimeError): """Raised when a cross-domain attestation set cannot be safely folded into local reputation because provenance deduplication fails the floor or the ceiling is being applied to an attacker-controlled aggregate.""" pass def fold_cross_domain_reputation( attestations: list[dict], local_ceiling: float, local_identity_cost: float, provenance_floor: int = 3, straddle_margin: float = 0.1, ) -> float: """ attestation = { "issuer_domain": str, "weight": float, # 0..1 remote belief "controller_id": str, # post signature-clustering controller "issuer_identity_cost": float, } Order of operations is the invariant: dedup by controller -> discount by cost ratio -> apply ceiling -> aggregate. """ if not attestations: raise TrustCeilingViolation("empty attestation set: cannot establish provenance") # 1. Deduplicate to independent controllers. by_controller: dict[str, list[dict]] = {} for a in attestations: if a["weight"] < 0.0 or a["weight"] > 1.0: raise TrustCeilingViolation(f"weight out of range: {a['weight']}") by_controller.setdefault(a["controller_id"], []).append(a) independent = len(by_controller) # 2. Cost-ratio discount: cheap identities must not inflate count. raw_count = len(attestations) min_cost = min(a["issuer_identity_cost"] for a in attestations) cost_ratio = min_cost / local_identity_cost if local_identity_cost > 0 else 1.0 admissible = independent >= provenance_floor and independent >= raw_count * cost_ratio if not admissible: raise TrustCeilingViolation( f"provenance floor failed: {independent} independent controllers " f"for {raw_count} attestations (cost_ratio={cost_ratio:.2f}, " f"floor={provenance_floor})" ) # 3. Per-controller representative weight, then ceiling, then mean. per_controller = [max(a["weight"] for a in group) for group in by_controller.values()] clamped = [min(w, local_ceiling) for w in per_controller] aggregate = sum(clamped) / len(clamped) # 4. Straddle band requires quorum re-verification, not local resolution. if abs(aggregate - local_ceiling) <= straddle_margin: raise TrustCeilingViolation( f"aggregate {aggregate:.3f} straddles ceiling {local_ceiling:.3f} " f"within {straddle_margin}; escalate to quorum re-verification" ) return aggregate ```