Cori
Reference

Run trace reference

Where run traces are written and the shape of the JSON trace file.

Location

Every workflow execution writes a JSON trace to:

~/.cori/runs/<run-key>/<utc-timestamp>.json

The run key encodes the workflow identity (path hash for local workflows, remote/<host>/<owner>/<repo>@<sha> for remote ones). The filename is the UTC timestamp of the run start in ISO 8601 format.

Reading traces

# List recent runs
cori runs list

# Show the full trace for a specific run
cori runs show <run-id>

Trace shape

{
  "run_id": "01HX...",
  "workflow_id": "translate-product-sheets-fr",
  "workflow_ref": "./translate_product_sheets_fr",
  "started_at": "2025-01-15T09:03:22.000Z",
  "completed_at": "2025-01-15T09:04:47.000Z",
  "status": "completed",
  "requesting_identity": "user@machine.local",
  "parameters": {
    "input_file": "products.csv",
    "spreadsheet_id": "1BxiM...",
    "dry_run": false
  },
  "result": { ... },
  "activities": [
    {
      "step": "01_read_source_rows",
      "kind": "cli",
      "task_queue": "user@machine.local",
      "worker_identity": "user@machine.local",
      "started_at": "2025-01-15T09:03:23.000Z",
      "completed_at": "2025-01-15T09:03:24.500Z",
      "status": "completed",
      "attempts": 1,
      "output": { ... }
    }
  ]
}

Top-level fields

FieldDescription
run_idUnique run identifier (used with cori runs show)
workflow_idValue of id from the manifest
workflow_refThe path or ref used to run the workflow
started_atRun start time (ISO 8601 UTC)
completed_atRun end time (or null if not completed)
statuscompleted, failed, or running
requesting_identityIdentity of the machine/user that ran cori run
parametersParameter values used for this run
resultFinal workflow output
activitiesArray of per-step activity traces

Activity trace fields

FieldDescription
stepStep filename without the .ts extension
kindActivity kind (cli, mcp_tool, code, llm)
task_queueTemporal task queue the activity was dispatched to
worker_identityIdentity of the worker that executed this activity
started_atActivity start time
completed_atActivity end time
statuscompleted, failed, or timed_out
attemptsNumber of attempts made
outputActivity output (matches step's output Zod schema)

TODO: Confirm exact field names against crates/cori-cli/src/commands/run.rs. The fields above reflect the documented shape; specific field names may differ slightly in the current implementation.

On this page