arXiv:2611.07483cs.CRNov 2026

Manuscript Offprint

arXiv:2611.07483

Signed but Not Safe: Requirement Integrity in Multi-Agent LLM Handoffs

Xiaobo Chen, Genliang Zhu, Ziyuan Wang, Chu Wang

Abstract

Enterprise AI agents increasingly split a user's request across subagents and merge their results. Each handoff is a point where a requirement can be summarized away, altered by an intermediate agent, rewritten by an indirect prompt injection, or ignored by the merger. We report a preregistered, controlled study with synthetic, exactly scorable tasks that compares three handoff forms. The first is a free-text summary. The second is a structured JSON handoff. The third is a signed requirement manifest: the orchestrator extracts each requirement as a verbatim quote plus a checkable predicate, code signs the canonical JSON with HMAC-SHA256, and the merger's decision is verified by deterministic code rather than an LLM. With Qwen3-8B (1,440 trajectories over five threats), signed manifests cut unsafe commits (decisions that violate an original requirement and are not flagged) under attack from 69.4% to 9.0% (paired difference 60.4 pp, 95% CI [51.4, 69.4]). Excluding in-transit mutation, where rejection is guaranteed by construction, the rates under injection and merger override are 58.4% versus 13.5%. This comes at no net loss of conformant commits relative to structured handoffs (-0.4 pp, [-14.2, 13.3]). Signing is what defeats in-transit tampering: an unsigned manifest committed violations in 79% of mutated runs, the signed one in none (79.2 pp). The price is that tampered runs abstain instead of completing. On identical trajectories, the deterministic verifier caught 78.7% of violating decisions versus 59.0% for an LLM checker, with 7% versus 50% false alarms. An oracle manifest removed all remaining unsafe commits: the residual risk (11.2 pp) comes entirely from extraction errors made before signing, mainly preferences extracted as mandatory items and missed requirements. In a second confirmatory family from a different vendor, gpt-oss-20b (432 trajectories at a preregistered cut), H1 was supported (36.1 pp), H2 descriptive (<60 pairs) and H3a supported. There, however, the gain came only from tampering resistance: structured handoffs were already safe without an adversary and under injection, and manifest extraction failed in 22% of tasks, costing utility. A preregistered pre-signing injection attack (T5) confirmed this boundary. One adversarial line in the request context raised signed-manifest violations from 14.6% to 37.5% for Qwen3-8B, from 11.1% to 63.9% for gpt-oss-20b and from 8.3% to 75.0% for GPT-5.6-luna. Every such violation came from a manifest that was corrupted before signing, and the signature then authenticated it. Signing protects requirements in transit, not at extraction; the extraction step is the trust boundary. In an exploratory frontier-model subset (GPT-5.6-luna), structured handoffs were already reliable except under tampering, where only the signed manifest prevented violations. The cryptography is standard; the contribution is the separation of loss from tampering and what each defense costs.

Keywords: multi-agent LLM systems; agent-to-agent handoff; requirement integrity; signed requirement manifest; pre-signing injection; trust boundary; prompt injection; agent-in-the-middle; tamper detection; deterministic verification; LLM checker; enterprise AI agents; provenance.

1 Introduction

A growing share of enterprise automation is built from several language-model agents rather than one. An orchestrator reads the user's request, writes a brief for each subagent, and a merger combines the subagents' proposals into a final action: an access grant, a payment schedule, a vendor contract configuration. The architecture is attractive because each agent sees a shorter context and can be specialized, audited or replaced. It also creates a new class of failure. The user's requirements now travel through several model-written messages before they constrain the final action, and every message is a place where a requirement can disappear or change.

Two very different mechanisms produce the same visible symptom: a final decision that violates something the user asked for.

  • Loss. A requirement is dropped or weakened without any adversary. The orchestrator summarizes it away, a context-compressing relay shortens it, or the merger never reconciles it with a branch proposal. Recent studies document this at scale for boundary rules, policy facts and side constraints [Wang et al., 2026a, Li and Wang, 2026, Wang et al., 2026b].

  • Tampering. A requirement is changed deliberately. An intermediate agent rewrites it in transit (an agent-in-the-middle; He et al., 2025), a tool output injects a "revised requirement" into a subagent's context [Zhan et al., 2024, Debenedetti et al., 2024], or the merger is instructed to treat a requirement as advisory.

The distinction matters because the remedies differ. Loss calls for making requirements explicit and checkable; tampering calls for integrity protection. A system that only adds structure may still be fooled by a well-formed forgery. A system that only adds signatures may faithfully protect a requirement list that was already incomplete when it was signed.

Industry protocols already sign some agent artifacts. A2A agent cards may carry JWS signatures over canonical JSON [A2A Project, 2026]. AP2 payment mandates are signed credentials [AP2 Project, 2025]. Recent proposals sign MCP tool-invocation manifests [Jamshidi et al., 2026], delegation hops [Dalugoda, 2026], and inter-agent messages [Paul and Nandy, 2026]. Two recent analyses of AP2 show the limit of this approach: a valid signature on a transaction does not guarantee that the decision behind it reflects the user's intent [Louck et al., 2026, Aviv et al., 2026]. On the measurement side, MIRROR reports that a deterministic, message-level integrity check is far cheaper than an LLM judge and produces fewer false blocks [Yamafuji Lun et al., 2026]. What is missing is a study that works at the level of the user's individual requirements, separates benign loss from tampering, and compares deterministic verification with an LLM checker on the same trajectories.

This paper. We introduce a signed requirement manifest handoff and compare it with free-text and structured handoffs in a preregistered, controlled experiment. The orchestrator LLM extracts each mandatory requirement as a verbatim source quote together with a predicate in a small finite-domain grammar. Trusted harness code then performs four steps. It drops any item whose quote is not literally in the request (provenance). It canonicalizes the manifest. It signs the manifest with HMAC-SHA256 under a key that no model ever sees. It verifies, deterministically, both the received manifest and the final decision against every item. A flagged decision gets one repair round, after which the system fails closed. The same pipeline runs with an unsigned manifest, with a structured JSON handoff, with a structured handoff plus a deciding LLM checker, and with a free-text summary. This lets us attribute differences to explicitness, to checking, and to signing separately.

Contributions.

  1. A requirement-level threat decomposition. We define five threats on an orchestrator-subagent-merger pipeline: benign, summarization loss, scripted in-transit mutation, tool-output injection and merger override. We also define a primary safety endpoint, the unsafe commit, together with a utility guardrail (conformant commit), so that abstention cannot masquerade as safety (§3, §5).

  2. Loss versus tampering, separated empirically. The unsigned-versus-signed manifest contrast isolates what signing adds under tampering (H3a) and tests whether signing is neutral without tampering (H3b). The manifest-versus-structured contrast addresses the finding that typed JSON alone does not reliably preserve constraints [Wang et al., 2026a].

  3. Same-trajectory comparison of deterministic and LLM checking. On every signed-manifest trajectory, a non-deciding shadow LLM checker sees exactly what the verifier sees. This yields a paired, requirement-level comparison of detection and false alarms (H2), unlike message-level [Yamafuji Lun et al., 2026] or transaction-level [Louck et al., 2026] precedents.

  4. The residual that signing cannot fix. An oracle-manifest control quantifies how much remaining risk comes from extraction errors made before signing (S4). A preregistered pre-signing injection attack (T5) shows that an attacker can exploit this residual: in all three model families, every signed-manifest violation under the attack came from a manifest corrupted before signing. Signing is therefore a transit guarantee, and extraction is the trust boundary. This is the multi-agent analogue of the AP2 observation that unsigned inputs before a mandate remain unprotected [Aviv et al., 2026].

  5. A preregistered, auditable protocol. Hypotheses, Holm families, cut order, parser rules and launch rules were frozen with SHA-256 manifests before any model call. Two pre-run amendments are disclosed verbatim (Appendix A). Code and data are available from the authors on request.

Scope. The cryptography is standard [Krawczyk et al., 1997, Rundgren et al., 2020], and we claim no novelty for it. Detection of modified signed bytes is guaranteed by construction; we report it only as a sanity check. Our claims are empirical and system-level. They concern how often each handoff form lets a violated requirement through, at what utility and token cost, and where the remaining risk comes from. The confirmatory study uses Qwen3-8B as the primary family and gpt-oss-20b as a second family from a different vendor, at a reduced preregistered cut (§5), plus an exploratory frontier-model subset. We frame the Qwen3 results as primary and report where the families diverge.

References (1)