Runs and artifacts
Every task gets a run directory. Artifacts are plain Markdown and JSON, so they are easy to read, diff, archive, and parse.
Layout
Section titled “Layout”runs/ <run-id>/ FINAL.md run.json 01-<agent>.md 01-<agent>.json 02-<agent>.md 02-<agent>.json ... sessions/ <session-id>.md error-logs/ ...run-id is a timestamp plus a short random suffix, for example
2026-12-06T09-14-22-1a2b. Stages are numbered in execution order.
FINAL.md
Section titled “FINAL.md”Read this first. It contains:
- The run id, mode, start and finish times.
- Agent calls, token totals (in/out/total), and summed stage latency.
- A stage ledger table: role, provider, model, tokens, milliseconds, status.
- Any incidents (failures, aborts, fallbacks).
- The final report body.
Status values are OK, ERROR, or SKIPPED. A skipped stage includes the reason, for example a
failed retry budget or a planner that declared no research needed.
When a side effect is pending approval, FINAL.md is replaced with a PENDING HUMAN APPLYMENT
report describing the agent, tool, arguments, and reason.
When a run is aborted, the report is replaced with RUN ABORTED, the incident, the number of
completed stages, and the artifacts directory.
run.json
Section titled “run.json”The structured form of the same run. Useful for dashboards and scripts. It includes:
| Field | Meaning |
|---|---|
runId |
Run identifier. |
task |
The original task text. |
mode |
single or multi. |
startedAt, finishedAt |
ISO timestamps. |
stages |
Per-stage records (see below). |
finalReport |
The final text. |
totals |
agentCalls, inputTokens, outputTokens, totalTokens, latencyMs. |
incidents |
Human-readable failure descriptions. |
artifactsDir |
Absolute path to the run directory. |
reportPath |
Path to FINAL.md. |
pendingApproval |
The pending action, if any, else null. |
errorLogPaths |
Temporary error logs referenced by this run. |
Stage artifacts
Section titled “Stage artifacts”Each stage has a Markdown and a JSON file:
NN-<agent>.md— a readable stage record: title, metadata, tool trace, and output.NN-<agent>.json— the rawAgentRunRecord, including provider trail and finish reason.
The Markdown includes:
- role, provider, and model,
- latency, tool rounds, attempts,
- finish reason and skills used,
- a tool trace (OK/ERR plus arguments),
- a
SKIPPEDnote when applicable, - the stage output.
This is the best place to see why a stage failed: look at finishReason, providerTrail, and
the tool trace together.
Provider trail
Section titled “Provider trail”The stage record keeps the sequence of provider attempts. A stage that fell back shows each failed attempt and the provider that finally answered. This makes failover visible instead of hidden.
Sessions
Section titled “Sessions”Interactive sessions append a transcript to runs/sessions/<session-id>.md. The file starts with a
header and then a ## User / ## Tapplack pair per turn. It is a readable record of the
conversation, not a replayable state file.
Error logs
Section titled “Error logs”Failures that happen outside a stage’s normal record — a thrown invocation, a provider chain
failure — are written to runs/error-logs/, or to runtime.errorLogsDir when set.
The path is passed into retries so the agent can read the root cause and adapt. The status bar and log inspector show the latest path. These files may contain stack traces and request context; treat them as sensitive.
Where files go
Section titled “Where files go”| Output | Location |
|---|---|
| Run artifacts | runtime.runsDir (default ./runs). |
| Files the agent wrote | runtime.workspaceDir (default ./workspace). |
| Session transcripts | <runsDir>/sessions/. |
| Error logs | runtime.errorLogsDir or <runsDir>/error-logs/. |
Both directories are created on startup if missing.
Reading a run from the shell
Section titled “Reading a run from the shell”PowerShell:
Get-ChildItem runs | Sort-Object LastWriteTime -Descending | Select-Object -First 5Get-Content runs\<run-id>\FINAL.mdBash:
ls -t runs | headless runs/<run-id>/FINAL.mdTo extract totals with Node:
node -e "const r=require('./runs/<run-id>/run.json');console.log(r.totals)"Retention and cleanup
Section titled “Retention and cleanup”Runs are never deleted automatically. They accumulate, including large outputs and error logs. Prune deliberately:
rm -rf runs/2026-11-*Keep run.json and FINAL.md if you need an audit trail and drop the per-stage bodies. Do not
commit runs/; the repository ignores it by default.
- Troubleshooting — diagnose a failed run.
- Workflows — why a run has multiple stages.
- Safety and permissions — what could be in those artifacts.