Extend Execution TTL
extend_ttlRenews the active execution window for a claimed contract by resetting its claim timestamp, preventing long-running tasks from timing out before completion.
Instructions
Heartbeat renewal for long-running execution: restarts the active execution window of a CLAIMED contract.
Behavior & Side Effects
Mutates database: Resets claimed_at=nowMs and increments extend_count (max 5 renewals per holder, bounded by created_at + 4 * queue_ttl_sec).
Return Value
Returns { ok, contract_id, status: 'CLAIMED' | 'TIMED_OUT', claimed_at?, expires_at?, extend_count, max_extends, remediation?, message }.
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>"
},
"name": "extend_ttl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | No | Current holder agent identifier. Must match target_agent of the claimed contract (defaults to AGENT_NAME env var). | |
| claim_token | No | Exclusive lease token returned in contract.claim_token by poll_next_task (FC-301). | |
| contract_id | Yes | The CLAIMED contract ID whose active execution window should be renewed. |