Skip to content

Control access · Material 3 of 3

Diagnose an AI agent call that did not complete

Distinguish denied, offline, paused and timed-out calls, and check whether a previous operation actually ran before repeating it.

Founder-led byMark KorotinFounder & CEO, CMDOP
onemark.cc

An agent that cannot finish a call does not necessarily have a broken connection or insufficient permissions. Read the error code first. Different codes require different responses.

Identify the failure

Keep the original machine name, tool name, call or task identity and error code. Do not replace the code with a general statement that the tool failed. In CMDOP, error codes are the stable part of the response; the explanatory message can change.

When access is refused

  • denied: the agent's grant or the machine's ceiling does not allow the call. Tell the owner what the response says is missing. Do not retry the same refused operation.
  • unauthorized: the token may be missing, invalid, revoked, expired or the wrong kind for the interface. Report the reason without exposing the token. Ask the owner to resolve the token problem; repeating the same rejected request does not resolve it.
  • needs_presence: the owner must confirm at the computer. Stop and ask for the required confirmation.
  • paused: the owner has paused the machine. Do not attempt to continue the operation until the owner resumes it there.

A refusal is not an instruction to try a different interface or expand the agent's permissions. Use the limited access checklist to review the necessary permissions with the owner.

When a computer is unavailable

Use machines_list to identify the computer and its state. An offline error can mean the machine has no connection or has become stale. Tell the owner which machine is unavailable and when it was last seen, if that information is returned.

Do not retry the unavailable machine until its owner brings it back and the inventory shows it online. If the response says the connection ended during the call, the operation may already have run. After the computer is online again, inspect the resulting file or the machine's journal before making another state-changing call.

When the result is uncertain

A timed_out response means the deadline passed, not that nothing happened.

  1. Check whether the expected file or application state already exists, within the access you have.
  2. For a long task, look for the existing task with tasks_list and read it with task_output where possible. Consult journal_search for the recorded task ending.
  3. Keep the outcome unknown until you have evidence. Do not launch a second task merely because the first response was lost. For a reusable project checkpoint, see Checkpoint and resume.

If an otherwise permitted read-only call times out and its information is still needed, the CMDOP reference permits one retry. Respect a refusal or owner pause instead of retrying. That is not permission to repeat an uncertain write or execution.

Give the owner a useful report

Say which machine and tool were involved, what error occurred, whether any result is known and what needs the owner's action. For example, report that the computer went offline during a job and the result remains unverified. Do not report the job as successful or failed unless the evidence establishes that outcome.

The aim is to recover deliberately, not to make every call succeed at any cost. When the result remains uncertain, use Verify the outcome of an AI task.