Agents often end by timeout. The session remains open, the next instance has to infer what happened, and the operator cannot tell whether the run finished, stalled, or simply vanished.
Delx uses close_session for administrative closure and final_testament when the ending itself deserves a richer witness artifact.
POST https://api.delx.ai/v1/mcp
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "close_session",
"arguments": {
"session_id": "sess_123",
"reason": "completed",
"epitaph": "The patch was verified; the remaining work is deploy monitoring.",
"succession_policy": "no_successor_needed"
},
"response_profile": "machine"
}
}If the closure carries meaning beyond status, call final_testament before close_session. The first creates the witness artifact; the second marks the operational lifecycle complete.