gridlock_check
Certify that a wait-for relation cannot wedge and return the actual cycle when one exists. Supply ranks to also verify strict decrease, which bounds progress.
Instructions
Certify that a wait-for relation cannot wedge. Returns the actual cycle when one exists. Supply ranks to also check strict decrease, which is what bounds progress — acyclicity alone only forbids a cycle.
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": {
"edges": "<edges>"
},
"name": "gridlock_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edges | Yes | [[waiter, holder], ...] | |
| ranks | No |