.skills/analyzing-eval-errors/SKILL.md
Investigate errors in letta_evals runs by parsing results JSONL, cross-referencing agent and run state on the Letta server via the Python SDK, and producing structured error reports. Use when an eval run has errors, crashes, or unexpected failures that need diagnosis.
npx skillsauth add letta-ai/letta-evals analyzing-eval-errorsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill when:
For an initial overview, run scripts/analyze_errors.py:
# Classify errors from JSONL (no API calls)
python <skill-dir>/scripts/analyze_errors.py --results-dir path/to/results
# Full analysis with Letta server cross-reference
python <skill-dir>/scripts/analyze_errors.py --results-dir path/to/results --check-server
This produces error_analysis.json with classified errors and server state. Read the output to understand the error landscape before diving deeper.
Read results.jsonl and summary.json. See references/results-schema.md for the data format.
Classify errors into buckets:
"timed out" in error message. Usually expected. Skip unless investigating slow models."return code" in error message. The letta CLI subprocess crashed. Most common bug category.ExtractionError. Agent ran but produced no extractable submission.For non-timeout errors, check what actually happened on the server. See references/letta-sdk-inspection.md for API details.
For each errored agent:
client.agents.retrieve(agent_id) → is last_stop_reason "end_turn" (normal) or "error"?client.agents.messages.list(agent_id, limit=200, order="asc") → did the agent produce a final assistant_message?assistant_message at end → false failure.For false failures (agent completed on server but recorded as error):
client.runs.list(agent_id) against run_ids from messages. Runs with zero messages are ghost runs.client.runs.retrieve(run_id) → check metadata.error for the actual error detail.created_at vs last message date. Ghost runs typically appear 0.5-2s after the agent's final message.For extraction errors (agent never responded):
client.runs.steps.list(run_id) → check completion_tokens. Zero tokens with status="success" means the provider returned an empty response.step.provider_name identifies which LLM provider is responsible.Write a structured markdown report with:
Symptom: CLI exits code 1, empty stderr. Agent completed on server with assistant_message. Ghost run exists with error "Cannot process approval response: No tool call is currently awaiting approval".
Cause: In --yolo mode, the CLI sends a delayed approval after the agent's final run has already ended. This creates a new run that immediately fails.
Affected models: minimax-m2.5 (~50% crash rate), kimi-k2.5 (~18%), glm-5 (~6%).
Symptom: Extraction error. Agent has 2 messages (system + user). Run step shows completion_tokens=0, status="success", stop_reason="end_turn".
Cause: The LLM provider returns an empty response that the server treats as a valid end-of-turn.
Symptom: Various errors — "Failed to fetch pending approvals for resync", "CONFLICT: Cannot send a new message", "Unexpected stop reason: error". Agent may be stuck with last_message_type=approval_request_message.
Cause: CLI loses sync with the server's approval state during --yolo mode execution. Mostly fixed in newer versions but ghost run pattern persists.
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.
development
Run, watch, debug, and extend OpenClaw QA testing with qa-lab and qa-channel. Use when Codex needs to execute the repo-backed QA suite, inspect live QA artifacts, debug failing scenarios, add new QA scenarios, or explain the OpenClaw QA workflow. Prefer the live OpenAI lane with regular openai/gpt-5.4 in fast mode; do not use gpt-5.4-pro or gpt-5.4-mini unless the user explicitly overrides that policy.
development
End-to-end Parallels smoke, upgrade, and rerun workflow for OpenClaw across macOS, Windows, and Linux guests. Use when Codex needs to run, rerun, debug, or interpret VM-based install, onboarding, gateway smoke tests, latest-release-to-main upgrade checks, fresh snapshot retests, or optional Discord roundtrip verification under Parallels.