Skip to main content
Human guide: task steps and agent prompt → Identify the failed boundary before repeating a request. Preserve the command, run or execution identity, and returned error. A timeout is not proof of no work. Start at the section that matches the failure: Inspect existing evidence before retrying. Installation checks are only needed when the CLI or setup is failing.

1. Check installation

Run these in the actual agent environment. A CLI installed on your laptop may not exist in a remote sandbox. Follow the installation guide when setup is incomplete. Let an existing setup or authorization flow finish first. If installation is missing, paste this into your agent:

2. Check the effective workspace

Compare the workspace and credential source with the current folder. Use folder bindings to correct a mismatch. CLI authorization does not export DEEPLINE_API_KEY into your shell. A raw HTTP caller needs its own supported server-side credential setup. Do not print keys into logs to diagnose this difference.

3. Separate discovery from input errors

Describe the returned identifier before execution. Check required fields, input types, column mappings, and access mode. Do not invent an ID from a provider name. For custom source, use deepline plays check <file>. For CSV failures, use file validation. Do not build a retry sample by splitting physical lines with head.

4. Inspect existing work

For a Play, inspect the saved run:
Use Run logs and events for filters and retained payloads. For a direct call, use execution recovery. A completed run can return a legitimate no-result. A failed provider request has a different meaning. Preserve that distinction before changing sources.

Separate runtime status from the business result

A completed handler can return no match. A failed run can retain useful intermediate work. The compact status response does not embed all dataset rows or full saved tool results; use their retrieval paths in Call Plays and Run logs and events. If research completed but a CRM task request timed out, inspect the accepted research, write attempt, and destination independently. Preserve the version and decision evidence; reconcile whether the task exists before repeating it. Unavailable or expired response evidence remains unknown. Retained counts cover retained records, and runtime retention is not a permanent business archive. Persist accepted field provenance in customer working data when it must outlive the run; see Repair CRM records.

5. Reconcile usage separately

Choose the form for the operation you started. Do not combine the two scopes. Pending or missing amounts do not establish zero usage. Workspace balance changes can include other callers. For credit or cap failures, follow the returned recovery action. Do not silently change to another paid route or remove a workspace cap.

6. Diagnose connections and external writes

A provider 401 or 403 indicates an access problem, not an empty dataset. Check the intended workspace connection and the selected action’s requirements. Only owners and admins can connect integrations through the supported flow. A write timeout can leave an uncertain destination outcome. Read and reconcile that state before repeating the mutation. A successful connection does not prove that every property update is allowed. Use Integrations, Repair CRM records, and Integrate a Play into your app for the specific path.

7. Diagnose Database access

A successful empty query means no returned matches under that query. A permission error means the statement did not establish those data facts. Use Query a database for permitted customer SQL. Customer-owned tables and Deepline-managed views have different write rules. A direct Postgres integration uses its own connected database and permissions.

8. Prepare a useful report

Record the expected result, observed result, operation, and exact error. Keep the relevant run or execution identity for a targeted follow-up. Exclude credentials and unrelated customer records.
The report identifies the failed boundary and whether work may already exist. It does not substitute an empty result, zero charge, or a fresh run for uncertainty.
Ask your agent which evidence supports its diagnosis. If the answer is unclear, inspect the existing work before making another paid or mutating request.