audit_contract
Verifies wire contract consistency across iOS, JS, and Android files. Flags missing tokens, schemaVersion drift, and prefix-ordering bugs, returning BLOCK or PASS.
Instructions
Verify a wire contract (token list / field set / schemaVersion) is identical across N independent source files (iOS Swift, proxy JS, Android Kotlin). Flags missing/inconsistent tokens, schemaVersion drift, and prefix-ordering bugs (a contained token matched before the longer one). BLOCK/PASS verdict.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"contract_spec": "<contract_spec>",
"file_paths": "<file_paths>"
},
"name": "audit_contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_paths | Yes | ||
| contract_spec | Yes |