add_invariant
Add a machine-checkable invariant to a coordination contract as a draft, allowing it to be frozen and enforced only after the contract is sealed.
Instructions
Add a machine-checkable invariant (drafting only; frozen after seal).
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_id": "<contract_id>",
"key": "<key>",
"description": "<description>",
"probe_kind": "<probe_kind>",
"probe_spec": "<probe_spec>",
"actor_id": "<actor_id>",
"actor_role": "<actor_role>",
"base_revision": "<base_revision>"
},
"name": "add_invariant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| actor_id | Yes | ||
| required | No | ||
| actor_role | Yes | ||
| probe_kind | Yes | ||
| probe_spec | Yes | ||
| contract_id | Yes | ||
| description | Yes | ||
| is_negative | No | ||
| base_revision | Yes | ||
| is_second_instance | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||