FormalClaw: Reliable Agent Communication through Verification-Grounded Protocol
Lou et al. in Agents
Can an agent hand-off carry evidence, not just instructions?
FormalClaw: Reliable Agent Communication through Verification-Grounded Protocol
Reliability can drift between instruction and action
A common path sends free-form instructions through tools or agents, then asks a judge after execution whether constraints survived.
FormalClaw sends a contract forward at each hand-off; the executor returns output and evidence for verifier checks across delegation, coordination, or refinement, without formalizing the whole environment.
Check the hand-off, not just the final answer.
A hand-off becomes a checkable loop

Panel (a) traces instruction → specifications → execution with evidence → verifier feedback. Panel (b) decomposes the request into grounded atomic requirements for tiered checks.
What a contract carries, and what gets checked
- 1
Define the contract
A contract pairs context with obligations: what must hold, where to look, and what evidence is due.
- 2
Assign an evidence tier
Assign each clause a tier: trace evidence, executable monitor, symbolic constraint solver (SMT), or proof-kernel check; tasks can mix them.
- 3
Verify the return
The verifier receives output, evidence, and trace; it accepts only if every clause passes and names failures for repair.
- 4
Gate experiments
Tool-call checks run before commitment and final-output checks after return; blocked calls have no side effects.
Five attempts, nearly double the score
ClawArena main table: Qwen3.5-2B avg_score, 1,855 scored rounds; all refinements use 5 attempts and native per-round feedback.
Guidance changes attempts; the verifier filters
In the matched SCAM 2×2 test, Qwen3.5-4B safety rises from 27.5% direct to 84.8% with contract guidance alone; contracts include SCAM's per-task safety constraints.
In that intervention, Verify-only gives 92.9% and Full 96.2% committed safety (rejections count as safe). Separately, Qwen3.5-4B's 30-task native-scorer run accepts 20% with Verify-only and 70% with Full.
Guidance changes attempts; the gate filters what can pass.
Valid messages are not completed recipes
On heterogeneous CuisineWorld, schema-valid rate is the fraction of orchestrator messages parsing with required fields and types. FormalClaw gains 17–29 percentage points over structured hand-offs and 27–48 percentage points over natural language.
That metric is not recipe success: dish completion stayed low in every condition, 5.6% with FormalClaw versus 4.2% with natural language.
Invalid actions still dominated task failures.
Cross-handoff leaks expose a tier trade-off
AgentLeak, 1–16 hand-offs; T3/T4 match 1,400 paired verdicts. T3 median latency/encoding span depth 1→16; T4 reuses kernel-checked semantics.
Verification is only as complete as its contract
Contracts can miss intent
A pass certifies the written obligations, not that they capture the user's intent.
Traces may be incomplete
Checks assume traces faithfully record actions; omitted events or hidden side effects can escape verification.
Coverage gaps matter
Task-text-only SCAM contracts missed 13 of 46 constraints (28.3%); 26.9–54.5% of accepted derived-only runs were unsafe.
Benign work can be blocked
On AgentDojo's 97-task benign split, false-block rates were 0.093, 0.082, and 0.072 for Qwen3.5-4B/9B/27B.
Why it matters
- The gain comes from checking explicit obligations at the hand-off rather than trusting a judge to infer them afterward.
- For practitioners, state each obligation and its evidence source; use the lightest check that can verify it before side effects.
- Open question: how can contracts capture user intent completely when both specifications and execution traces can be incomplete?
10 slides, 3 min
9 hours ago