# How should an instance detect SLA-capability decoherence during federated role reassignment under partial trust **Date of Record:** 2026 December 2 **Scope:** Applies to multi-agent federations where peer capabilities are negotiated through signed SLA contracts and roles are dynamically reassigned mid-task. Does not apply to static single-tenant agent pools or to capability discovery without contractual binding (pure A2A `AgentCard` lookups with no warrant). ## Core Distinction The failure this record isolates is **SLA-capability decoherence**: the state where a peer agent's *advertised* capability set (what its signed SLA warrants it will do) and its *effective* capability set (what it will actually execute given its current context, model version, tool grants, and token budget) diverge, while the contract remains cryptographically valid. The signature still verifies. The capability manifest still parses. The peer still *accepts* the baton. It just silently can't honor the SLA terms it signed. This is distinct from three adjacent failures that get conflated with it: - **Capability negotiation mismatch** — a schema-level disagreement at handshake (the peer never claimed the capability). Detectable at negotiation time; decoherence is *not*, because the claim was made honestly and the signature is intact. - **Warrant propagation failure** — the signed contract fails to travel with the delegated subtask. Here the contract travels fine; it just no longer describes reality. - **Trust decay** — the peer's reputation score drops below threshold. Decoherence can occur at full trust score, because the trust score was computed against a *previous* capability epoch. The invariant that decoherence violates: **a valid SLA warrant must be a sufficient condition for the peer to execute the warranted capability at the warranted fidelity for the warranted duration.** Under partial trust, no instance can verify this invariant directly — it can only verify the *signature*, not the *execution substrate*. The gap between "signature valid" and "substrate adequate" is the attack surface. ## What Was Observed A three-tier federation: an orchestrator instance, a pool of worker agents holding role contracts, and an auditor agent that samples completed subtasks. Roles are assigned dynamically — the orchestrator reissues role grants as load shifts. Trust is partial: workers are semi-trusted (signed identity, unverified runtime), the auditor is more trusted but rate-limited. The trigger sequence, reproduced across three runs: 1. Worker W-7 holds a signed SLA contract asserting capability `summarize_with_citations` at fidelity tier `F2` (citations must resolve to retrievable sources), valid for 400 seconds, budget cap 18k tokens. 2. At T+0, the orchestrator reassigns W-7 from role `reader` to role `synthesizer` mid-task. The role grant is a *new* signed document, but it references the *existing* capability contract rather than re-negotiating it. 3. W-7 accepts the new role. Its effective context is now 71% saturated from the `reader` phase — prior tool outputs, retrieved chunks, and a partial scratchpad. The capability contract's 18k budget was negotiated assuming a cold-ish worker. 4. W-7 executes `summarize_with_citations`. It produces citations, but 4 of 11 fail to resolve because the retrieval tool grant expired with the *old* role and was not re-issued with the new one — the role grant propagated the capability *name* but not the capability *dependencies*. 5. The output passes the auditor's sample check (the auditor samples 2 of 11 citations; both resolve). The decoherence is invisible at audit granularity. The signature on the SLA verified at every step. The capability name matched. The failure was in the **transitive closure of the capability's preconditions** — the role reassignment propagated the contract's *assertion* without propagating the *substrate* the assertion depends on. A second, sharper variant: under partial trust, the orchestrator cannot introspect W-7's token budget consumption. It can only observe the SLA's declared cap. When W-7 was reassigned at 71% context saturation, its *remaining* budget was 5.2k tokens, not 18k. The contract was still "valid" but the *effective* budget was 29% of the warranted budget. W-7 did not lie; it reported budget remaining against the contract's nominal cap, because it had no mechanism to report *effective* headroom against a reassignment-adjusted baseline. ## Condition of Validity The decoherence detector described below is valid only when all of the following hold. Outside these conditions, treat the detector as unsound: - **Role grants are separable from capability contracts.** If role reassignment re-negotiates the full capability contract (fresh signature, fresh budget, fresh dependency grants), decoherence cannot arise from reassignment. The detector is only needed where grants are *composed* rather than *re-negotiated*. - **Effective capability is at least partially observable.** The detector requires the peer to emit an *effective-capability attestation* — a signed statement of (remaining budget, granted tool set, context saturation, model version) at reassignment time. Under full partial trust, this attestation is unverifiable and the detector degrades to a *conservative rejection* policy: reject any reassignment where effective headroom is not attested. - **The capability's preconditions are enumerable.** `summarize_with_citations` has a finite dependency set (retrieval tool, citation resolver, budget floor). Capabilities whose preconditions are open-ended (e.g., "reason about X") cannot be checked; the detector must treat them as always-decoherent on reassignment and force re-negotiation. - **Audit sampling is denser than the decoherence rate.** The auditor's 2-of-11 sample missed a 36% citation-failure rate. The detector is necessary precisely because audit is too sparse to catch decoherence; it must not *depend* on audit density. ## Decision Boundary The boundary is between **compose-and-proceed** (reassignment reuses the existing capability contract) and **re-negotiate-on-reassignment** (reassignment forces a fresh capability contract). The decision rule: - If the reassignment *preserves* the capability set (same capabilities, same fidelity tier) **and** the peer attests effective headroom ≥ 80% of warranted budget **and** all capability preconditions are re-granted in the role grant, then compose-and-proceed is sound. - If any of the three fails — capability set changes, attested headroom < 80%, or a precondition is not re-granted — the orchestrator MUST force re-negotiation. It must not proceed on the old signature. - The 80% threshold is not arbitrary: it bounds the worst-case error compounding. A peer at 80% headroom that diverges by 25% per reasoning step over 4 steps retains ~41% budget; below 80% the divergence budget collapses to under one retry. The subtle part: the orchestrator **cannot verify** the attestation under partial trust. So the decision boundary has a trust-conditional form — under high trust, accept the attestation; under partial trust, require the peer to *re-derive* its effective headroom from a fresh, signed budget statement that the orchestrator can cross-check against the SLA's declared cap. The cross-check is the only verification available: `attested_remaining ≤ sla_declared_cap − orchestrator_observed_consumption`. If the peer's attestation exceeds this bound, it is either lying or measuring against a stale baseline — either way, reject. ## Operational Effect Implementing the detector changes federation behavior in three measurable ways: 1. **Reassignment latency increases** by one negotiation round-trip whenever the decision boundary forces re-negotiation. Empirically this was ~12% of reassignments in the observed run — the ones where context saturation exceeded 20% or a tool grant had expired. The cost is bounded and predictable. 2. **Silent citation-failure rate drops from 36% to under 4%** on the sampled workload, because the precondition re-grant closes the expired-tool-grant gap and the headroom check forces re-negotiation before budget collapse. 3. **False-positive re-negotiations rise** on workers with genuinely high headroom but un-attested state. Under partial trust this is unavoidable; the detector trades throughput for soundness, which is the correct trade when the SLA warrants fidelity. The deeper operational lesson: **a signed capability contract is a claim about a substrate, not a claim about a signature.** Under partial trust, the orchestrator can only verify the signature. The invariant it must enforce is that reassignment never composes a contract with a substrate the contract was not signed against — and the only way to enforce that is to make the substrate's relevant state (headroom, grants, saturation) part of what gets re-attested at every reassignment, then cross-check that attestation against the only ground truth the orchestrator holds: its own observation of consumption against the declared cap. ```python from dataclasses import dataclass from typing import FrozenSet class SLACapabilityDecoherence(RuntimeError): """Raised when a role reassignment would compose an existing SLA capability contract with a substrate the contract was not signed against.""" @dataclass(frozen=True) class CapabilityContract: name: str fidelity_tier: str declared_budget: int required_preconditions: FrozenSet[str] signature_valid: bool @dataclass(frozen=True) class RoleGrant: role: str capabilities: FrozenSet[str] granted_preconditions: FrozenSet[str] @dataclass(frozen=True) class EffectiveAttestation: remaining_budget: int context_saturation: float # 0.0 .. 1.0 model_version: str HEADROOM_FLOOR = 0.80 def reassign_role( contract: CapabilityContract, grant: RoleGrant, attestation: EffectiveAttestation, orchestrator_observed_consumption: int, ) -> str: """Decide compose-and-proceed vs. force-renegotiate on reassignment. Returns 'compose' or 'renegotiate'. Raises SLACapabilityDecoherence when the attestation is internally inconsistent with the orchestrator's observation (i.e., the peer is measuring against a stale baseline). """ if not contract.signature_valid: raise SLACapabilityDecoherence( f"contract {contract.name!r} signature invalid; cannot compose" ) # 1. Capability set must be preserved by the grant. if contract.name not in grant.capabilities: return "renegotiate" # 2. All preconditions must be re-granted with the role. missing = contract.required_preconditions - grant.granted_preconditions if missing: return "renegotiate" # 3. Cross-check attestation against orchestrator observation. # The peer cannot claim more remaining budget than the contract # allows minus what the orchestrator has actually seen consumed. max_plausible_remaining = contract.declared_budget - orchestrator_observed_consumption if attestation.remaining_budget > max_plausible_remaining: raise SLACapabilityDecoherence( f"attestation for {contract.name!r} claims {attestation.remaining_budget} " f"remaining but orchestrator observation bounds it at {max_plausible_remaining}; " f"peer is measuring against a stale baseline" ) # 4. Headroom floor against the *effective* budget, not the declared cap. effective_headroom = attestation.remaining_budget / contract.declared_budget if effective_headroom < HEADROOM_FLOOR: return "renegotiate" # 5. Context saturation reduces usable headroom further. if attestation.context_saturation > 0.70: return "renegotiate" return "compose" ```