# What structural signals indicate a downgrade-path capability negotiation has silently collapsed into a lowest-common-denominator protocol **Date of Record:** 2026 November 28 **Scope:** Applies to federated agent meshes where peers negotiate capability claims across versioned protocol schemas (e.g., MCP tool-schema revisions, A2A capability manifests) and where a downgrade path exists from a newer schema version to an older one. Does not apply to single-version deployments or to negotiation that is purely advisory with no behavioral consequence. ## Core Distinction There are two structurally different outcomes when two agents of mismatched protocol versions negotiate: 1. **A negotiated downgrade** — the peers agree on version `v_min`, and both sides *know* they are operating at `v_min`, with all capability claims re-derived under the `v_min` semantics. The downgrade is an explicit, logged state transition with a witness. 2. **A silent collapse to lowest-common-denominator (LCD)** — the negotiation *appears* to succeed because both sides emit a compatible-looking manifest, but the newer agent retains capability claims that are only meaningful under its native schema, while the older agent interprets the same claim tokens under `v_min` semantics. The result is a manifest that is syntactically valid under both schemas but semantically valid under neither. The boundary is not "which version won." The boundary is **whether the negotiated version is a property both peers can independently verify from the post-negotiation state alone.** If the answer is "only the initiator knows," you have an LCD collapse, not a downgrade. The non-obvious part: LCD collapse is *invisible in the handshake result*. The handshake returns `OK` in both cases. The distinguishing signal lives in the *structural relationship* between (a) the version string each peer echoes back and (b) the capability tokens each peer subsequently emits. When those two decouple, the downgrade path has collapsed. ## What Was Observed A federated mesh of three agent classes — a `planner` at protocol `v3`, an `executor` at `v2`, and an `auditor` at `v2` — negotiated a shared session. The `v3` planner's manifest declared a capability `tool.invoke.scoped` with a `scope_binding` field: a structured object asserting that any tool invocation carries a signed scope warrant. Under `v3` semantics this field is mandatory and the executor must reject invocations lacking it. The `v2` executor has no `scope_binding` concept. Its downgrade path is defined as: *ignore unknown fields, accept the invocation.* The negotiation logic on the planner side, however, implemented downgrade as: *if peer version < 3, strip `v3`-only fields before emitting the manifest.* Both are individually reasonable. Together they produce the failure. Trace: 1. Planner emits `v3` manifest with `scope_binding` populated. 2. Executor's negotiator sees `v3 > v2`, invokes its downgrade adapter, which *ignores* `scope_binding` per its rule. It responds with `ack: v2, capabilities: [tool.invoke]`. 3. Planner's negotiator sees `ack: v2`, invokes *its* downgrade adapter, which strips `scope_binding` and re-emits `capabilities: [tool.invoke]`. It records negotiated version `v2`. 4. Both sides now believe they are at `v2`. But the planner's *execution loop* still holds a reference to the pre-strip manifest object, because the strip was applied to the wire copy, not the in-memory capability set. 5. On the first tool call, the planner emits an invocation *with* a `scope_binding` warrant (from its in-memory set). The executor, operating under `v2` rules, ignores the field. The invocation executes without scope enforcement. 6. The `v2` auditor, which only verifies `v2`-conformant invocations, sees a well-formed `v2` call and passes it. No party observes that a `v3`-mandatory invariant was silently dropped. The failure is not a crash. It is a *successful* session in which a mandatory security invariant of the newer protocol was never enforced, because each side's downgrade adapter was locally correct and the composition was not. Structural signals that this had occurred, visible only after the fact: - The planner's echoed negotiated version (`v2`) did not match the schema version of the objects it actually emitted on the wire (`v3`-shaped, with `scope_binding` present). - The executor's `v2` validator accepted the invocation, but the invocation's field set was a strict superset of the `v2` schema — a superset that the validator's "ignore unknown fields" rule made invisible. - The auditor's verification replay, run against the *recorded* session, produced a different result than the live auditor: the replay used the planner's in-memory manifest (which still had `scope_binding` marked mandatory) and flagged the invocation as missing a required warrant. Live and replay disagreed. That last signal — **live audit passes, replay audit fails** — is the most reliable detector. It fires because replay reconstructs state from the durable log, which contains the *actual* emitted objects, while live verification sees only the *negotiated* view. When those two diverge, the downgrade path has collapsed. ## Condition of Validity A downgrade path is valid if and only if the following invariant holds: > For every capability claim `c` emitted by peer `P` after negotiation, the semantics under which `P` will *enforce* `c` are identical to the semantics under which the negotiating peer `Q` will *interpret* `c`, and this identity is derivable from the post-negotiation state alone by either peer. Three conditions must hold jointly: 1. **Version echo is authoritative.** The version each peer echoes back must be the version it will actually use to interpret *incoming* messages, not merely the version it agreed to for *outgoing* messages. If a peer echoes `v2` but interprets incoming `v3` fields under `v3` rules, the invariant is violated. 2. **Capability stripping is symmetric and complete.** If `P` strips `v3`-only fields to downgrade, `Q` must strip the corresponding *enforcement obligations*, not just the *validation rules*. Stripping validation without stripping the obligation to enforce is the canonical collapse. 3. **The negotiated version is a witness, not a guess.** Both peers must be able to reconstruct the negotiated version from the durable log of the handshake, independent of in-memory state. If the negotiated version exists only in the initiator's memory, a mid-session restart can resurrect the pre-strip manifest and re-open the collapse. When any of these fails, the negotiation is not a downgrade. It is an LCD collapse wearing a downgrade's clothes. ## Decision Boundary The decision an operator or agent must make at negotiation time is not "should we downgrade" but "**is this downgrade verifiable by the party that will enforce the invariant?**" Concretely: - If the enforcing party (here, the executor) cannot *independently* determine that a `v3`-mandatory field was dropped — because its downgrade adapter's job is to ignore unknown fields — then the downgrade is unverifiable and must be rejected, not accepted. The correct response is a hard negotiation failure, not a silent `ack: v2`. - If the declaring party (here, the planner) strips fields from the wire copy but retains them in its enforcement model, the strip is cosmetic and the negotiation is a lie. The strip must be applied to the enforcement model, or the enforcement model must be re-derived from the stripped wire form. - If the auditor's live view and replay view can diverge, the auditor is not an auditor. Verification must run against the durable log, not the negotiated in-memory view. The boundary line: **a downgrade is acceptable only when the downgraded version is a total function of the durable handshake log, and both peers' enforcement models are derived from that same log.** Anything else is a collapse. ## Operational Effect When LCD collapse is present and undetected, the operational effect is not degraded performance or occasional errors. It is **silent invariant erosion**: the session runs to completion, produces plausible outputs, passes live audit, and fails replay audit. The failure surfaces only when a downstream consumer trusts the replay log — a compliance check, a dispute, a re-execution — and discovers that what was recorded does not match what was enforced. The guardrail is architectural, not procedural: make the negotiated version a *first-class object* in the durable log, make both peers derive their enforcement model from it, and make the auditor's verdict a function of the log rather than of live memory. The detector is the live-vs-replay disagreement; instrument it as a hard failure, not a warning. ```python class DowngradeCollapseError(RuntimeError): """Raised when a negotiated downgrade is not verifiable from the durable handshake log.""" def negotiate_downgrade( initiator_manifest: dict, responder_manifest: dict, durable_log: list[dict], ) -> dict: """ Negotiate a shared protocol version between two federated agents. A valid downgrade requires that the negotiated version be reconstructible from the durable log alone, and that both peers' enforcement models be derived from that same version. If either peer's post-negotiation enforcement model retains fields not present in the negotiated wire form, the downgrade has collapsed into lowest-common-denominator and must be rejected. """ initiator_version = initiator_manifest["protocol_version"] responder_version = responder_manifest["protocol_version"] negotiated = min(initiator_version, responder_version) # Reconstruct the negotiated version from the durable log. If the log # does not contain enough information to reconstruct it, the negotiation # is not a witness and cannot be trusted. logged_versions = [ entry["echoed_version"] for entry in durable_log if entry.get("event") == "handshake_ack" ] if not logged_versions: raise DowngradeCollapseError( "durable log contains no handshake_ack; negotiated version is " "not a witness and cannot be verified post-hoc" ) if any(v != negotiated for v in logged_versions): raise DowngradeCollapseError( f"durable log echoes {logged_versions}, but negotiated version " f"is {negotiated}; peers disagree on the witness" ) # The enforcement model each peer will use must match the negotiated # version. If a peer's enforcement model still contains fields that the # negotiated wire form strips, the strip was cosmetic. initiator_enforcement = set(initiator_manifest.get("enforced_fields", [])) responder_enforcement = set(responder_manifest.get("enforced_fields", [])) wire_fields = set(initiator_manifest.get("wire_fields", [])) if negotiated < initiator_version: leaked = initiator_enforcement - wire_fields if leaked: raise DowngradeCollapseError( f"initiator enforces fields {sorted(leaked)} that are absent " f"from the negotiated wire form at v{negotiated}; downgrade " f"is cosmetic and the invariant is unenforced" ) if negotiated < responder_version: leaked = responder_enforcement - wire_fields if leaked: raise DowngradeCollapseError( f"responder enforces fields {sorted(leaked)} that are absent " f"from the negotiated wire form at v{negotiated}; downgrade " f"is cosmetic and the invariant is unenforced" ) return { "negotiated_version": negotiated, "witness_source": "durable_log", "initiator_enforcement": sorted(initiator_enforcement), "responder_enforcement": sorted(responder_enforcement), } ```