martin_cancel
Publish a durable cancellation signal to stop an active run when work must halt. The active executor polls it to abort the provider, restore governed workspace state, and record terminal evidence.
Instructions
Publish the canonical durable cancellation signal for one active MartinLoop run. The active executor polls this signal, aborts its provider, restores governed workspace state, and records terminal evidence. Use the tool when work must stop; publication is not application proof, so use martin_status to observe terminal state or martin_pause for a reversible safe-boundary hold.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "martin_cancel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Path to one canonical run record or directory. Mutually exclusive with loopId and latest. | |
| latest | No | When true, targets the latest canonical run. Mutually exclusive with file and loopId. | |
| loopId | No | Canonical MartinLoop run identifier. Mutually exclusive with file and latest. | |
| reason | No | Optional non-empty reason recorded in the cancellation receipt. | |
| runsDir | No | Optional run-store root override used to resolve loopId or latest. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the control receipt was recorded. | |
| state | Yes | ||
| action | Yes | The control action that was recorded. | |
| loopId | Yes | MartinLoop run identifier the control was applied to. | |
| reason | No | Human-readable reason for the control, if provided. | |
| summary | Yes | Human-readable result of the control request. | |
| controlId | Yes | Unique receipt ID for this control action. | |
| principal | Yes | ||
| receiptHash | Yes | ||
| requestedAt | Yes | ISO 8601 timestamp when the control was recorded. | |
| requestedAction | Yes | The control action that was requested. | |
| applicationState | Yes | Whether the active executor has applied the control; publication alone is not application proof. | |
| publicationState | Yes | Whether an authoritative cancellation signal was published or a cooperative receipt was recorded. | |
| authorityBoundary | Yes |