Temporal workflows write structured events here for chat review and repair sweeps.
| File | Purpose |
|---|---|
latest.json |
Most recent run or repair event |
events.jsonl |
Append-only stream of all run events |
repair-log.jsonl |
Repair sweep actions (restart, escalate, log_for_fix) |
cat local/agent-runs/latest.jsonOr in Cursor chat: “review last agent run”
Scans failed AgentRunWorkflow executions:
./scripts/temporal/repair-sweep.sh 5| Failure class | Action |
|---|---|
| transient (Ollama down, connection refused) | Start new run with same goal |
| code (sqlite, guardrails, NotImplementedError) | Log to repair-log.jsonl for Cursor SDK fix |
| max attempts | escalate_human — stops auto-loop |
./scripts/temporal/start-agent.sh --wait "your goal" workflow-idSet CURSOR_API_KEY and wire scripts/repair/cursor-fix.ts to invoke_cursor_repair activity.