Troubleshooting experiments

Find what you see, then do what the entry says. For people watching an experiment and for the coding agent running it.

Beta
Experiments is in beta. It is live and you can use it today; screens, CLI flags and limits may still change. Send feedback or problems to neatlogs-support@neatlogs.com.

Find the message or symptom you see. Each entry says what it means and what to do. "You" is the person or the coding agent, whoever is at that step.

Two rules hold everywhere:

  • Read the saved error before you change anything. Run neatlogs --json experiments get <experiment-id> and read the run attempts and the check errors, or open the Needs attention card on the experiment page and select Technical details.
  • Don't repeat a step that hit a limit until the limit resets. A limit, allowance or budget error does not go away on retry. Record a decision with when it resets. After the reset, resume only the unfinished part (for grading, Retry or neatlogs evals regrade); never run the cases again.
  • Scopes and roles are two separate checks. The sign-in's scopes say what the CLI may do for you. Your project role says what you may do. A step needs both.

Sign-in and permissions

neatlogs experiments or neatlogs local connect is an unknown command

Your CLI is too old. Experiments need CLI 0.2.3 or later. Update it with npm install --global neatlogs-cli@latest (Node.js 22 or 24), then run neatlogs experiments --help again. The same applies when neatlogs experiments record --help does not list --source-file.

A step is refused and the sign-in may lack a scope

Check the scopes of the saved sign-in:

neatlogs --host https://app.neatlogs.com --profile neatlogs-us --credential-source profile --project <project-id> --json whoami

Read data.credential.scopes. It must include all six resource scopes: context:read observability:read evaluation:read evaluation:write configuration:read configuration:write. Always sign in with the full seven-scope login list below, which adds offline_access (it keeps the sign-in valid between commands but is never returned by whoami, so don't check for it). (auth status does not list scopes.) If one of the six is missing, sign in again with the login list:

neatlogs --host https://app.neatlogs.com --profile neatlogs-us auth login --device \
  --scope context:read observability:read evaluation:read evaluation:write configuration:read configuration:write offline_access

Typical signs of a missing scope: listing detections fails (scope configuration:read); drafting, previewing or checking a detection is refused, whatever your role (scope configuration:write); creating an eval or a run is refused (scope evaluation:write). A step that needs a scope may also need a role permission, below. Fix the scope first, then check the role.

Refused with all scopes

If the sign-in has every scope above and a step is still refused (403 or FORBIDDEN), signing in again will not help. Your project role lacks the permission.

These are role permissions, not scopes:

StepRole permission it needsWho has it
Create or run an experiment, eval, or roundeval:manageProject Member or Admin
Draft a new detectiondetection:createProject Member or Admin
Approve and turn on a detectiondetection:manageProject Admin only

Coding agent: name the permission the command needs, record a decision (it appears in the experiment's Activity) that says what you did without it (for example "used the existing active detections"), and continue. Do not retry the same call. Person: ask a project admin to raise your role, or to turn on the detection, if you need that step. See Members, roles, and permissions.

The sign-in works, but it is the wrong account or project

Run whoami with the project selected and compare the account and project with the ones you use in the dashboard:

neatlogs --host https://app.neatlogs.com --profile neatlogs-us --credential-source profile --project <project-id> --json whoami

Use the same --host, --profile, --credential-source profile and --project on every command. The host is the dashboard address (https://app.neatlogs.com or https://eu.app.neatlogs.com), not the trace ingest address.

A service-account token is refused

Experiments accept only a person's own sign-in. Sign in with auth login --device as above.

Setup

The recorded cases are refused with GRADING_EVIDENCE_INCOMPLETE

Saving recorded cases (a dataset made from traces with neatlogs datasets from-traces) can be refused even when every span looks fine: Neatlogs could not read everything the judge needs from the recorded model calls. Don't retry. Instead:

  1. Create an input-only dataset of the same cases, using the input each recorded trace started from (for example the user's request): neatlogs datasets create --standalone --body-stdin (read the JSON shape with neatlogs datasets create --help). Use --standalone because the experiment already has a dataset.
  2. Record a decision (kind decision, with a new requestKey) with topic dataset, for example chosen "input-only cases of the same 4 topics", givenUp "the recorded answers are not graded as a reference".
  3. Read the new dataset's version ID and case IDs (neatlogs datasets cases <dataset-id> --version-id <version-id>), pin them in the setup for both A and B, and continue.

In the runs, both versions run your real agent on the input-only cases, and the judge grades their new answers. See Choose cases.

Creating a second dataset in the same experiment is refused

An experiment has one dataset. Create any extra or input-only dataset with --standalone.

neatlogs datasets cases fails

It needs --version-id, even when the dataset has only one version. Read the version ID from neatlogs datasets get <dataset-id>.

A checkpoint is refused with a bare INVALID_ARGUMENTS

The error may not name the field. Check these causes, in order:

  1. requestKey in the wrong body (the most common cause). Only decision and checks records take a requestKey. Remove it from resource, result, and preparation bodies.
  2. A decision reason that is too long. Keep a decision's reason under about 280 characters and put detail in givenUp. (A result's reason can be up to 2000 characters.)
  3. A decision topic that is not allowed. Use one of: dataset, cases, judge, questions, detection, trace_evidence, attempt, measure, goal, other.
  4. The wrong run ID in runA, runB or a checks record. The output of neatlogs evals run also lists run IDs of earlier rounds. Take the ID of the run you just started, not the first runId you find.

The fields of each record kind are in the Reference for coding agents.

The experiment page stays on one state, such as Setting up, Concluding or Verdict ready, or shows No update since 14:05

Nothing new was saved since that time. Check the coding agent's terminal: it may be waiting for your answer, for a browser approval, or it may have stopped. If it stopped, ask it to resume this experiment and give it the experiment's name or ID; it continues from the saved state and does not start over. Check that neatlogs local connect is still running. A running connection only shows that the CLI is connected; it does not show that your agent ran.

Running

evals run prints "Run API request timed out" (EVAL_TASK_FAILED)

The server may already have registered the run. Check it first with neatlogs --json experiments get <experiment-id>: look for B's run attempt. Then repeat the same command with --resume added, and the same --state file, --attempt and --label. Example:

neatlogs evals run eval-task.mjs --dataset <dataset-id> --version-id <version-id> \
  --form-version-id <form-version-id> --evaluator-id <evaluator-id> \
  --experiment "$NEATLOGS_LOCAL_EXPERIMENT_ID" --round "$NEATLOGS_LOCAL_ROUND_ID" \
  --variant B --attempt 1 --label round1-B --state .run-state/round1-B.json --resume

Keep a separate --state file for A and for B.

Only B failed

Keep A's successful run. Resume B with the same attempt and state file if that is safe. If B needs a fix and a new run, use the next attempt number (--attempt 2) and a new state file. Don't run A again just to make the page look even.

Source capture is refused, or B's code is not shown

Capture A's files with neatlogs experiments record --source-file <paths> before you edit anything, and B's files with the same paths after the edit. Send the preparation again right before every run or retry. If the files changed after capture within the same version, the run is refused: capture again, or start a new round.

The page shows The agent could not finish this run

The agent stopped before it saved every case run. Saved case runs are kept. Resume the affected version from its saved run (--resume, same state file and attempt).

Grading and limits

Grading paused or Grading did not finish · regrade the run

The judge could not grade every case run. Saved case runs and finished grades are kept. Don't run the cases again. Send only the ungraded case runs back to the judge:

  • On the experiment page, select Retry on the Needs attention card (needs project Member or Admin), or
  • run neatlogs evals regrade <run-id>.

Both send only failed or never-graded case runs, so repeating them is safe.

Workspace grading allowance reached or Evaluator allowance reached

Both messages mean the same thing: grading by an AI judge counts against your plan's AI evaluator items for the usage period (100 on the Free plan), and they are used up. Grading stopped in the middle of the round. The case runs and the grades so far are saved. You do not run the cases again. Don't retry grading while the allowance is used up. Resume after the usage period resets, or after your organization owner upgrades the plan in Settings → Organization settings → Billing & Usage (see Permissions and limits). The card may say Grading will retry automatically using the saved outputs: after the reset, grading may resume by itself. If the round still shows Needs attention after the reset, retry grading as above. If you can't wait, record the round as incomplete with the verdict inconclusive and a grading blocker.

Daily detection limit reached · resets 05:30

The project's daily detection budget is used up. It resets at 00:00 UTC. The page converts that time to the viewer's own time zone: a viewer in India (UTC+5:30) sees resets 05:30. The saved check error reads "Detection compute limit reached" (PUBLIC_API_COMPUTE_BUDGET_EXCEEDED). Don't retry before the reset. Record a decision with topic detection and the reset time. Then choose one:

  • Wait. After the reset, queue the checks again with a checks record and a new requestKey, wait until every check has finished, then record the round's result as usual.
  • Don't wait. Record the result now with outcome incomplete, verdict inconclusive and a detection blocker. After the reset you can queue the checks again and replace that incomplete result. A complete result can't be replaced.

The record bodies are in the Reference for coding agents.

The grading budget is exhausted or compute budget for this period is exhausted

Same as a limit: wait for the budget window to reset before you resume.

The service is temporarily limiting how many requests it can accept

A rate limit. Wait (the page may say how many seconds), then resume. Don't loop.

Detections paused or a detection shows Failed to run or Not run yet

Right after a run, a check can stay pending for about a minute. Wait for every check to finish before you record the result. If a check failed, read its saved error first. A missing detection result is not a pass.

Results

Recording the result is refused with LOCAL_WORKFLOW_CONFLICT

The round is not complete: usually a configured detection check has not finished. Wait for all checks, or record the round as incomplete with the verdict inconclusive.

"A verdict requires complete evidence and no blocker"

An incomplete round can only have the verdict inconclusive. b_wins, keep_a and tie need complete evidence.

evals compare returns BASELINE_NOT_FOUND

A's run has not completed. Both runs must be complete before you compare.

The judge contradicts its own rule

Example: the rule says advice attributed to a source passes, and the judge still fails an attributed sentence. Read the judge's reasons next to the answers. The judge is frozen in the setup, so you can't fix it inside the current round. Say so in the result, and start a new round with a fixed judge or clearer questions. Write questions so that neutral lists such as "what to watch" do not count as advice.

A decision seems lost

On the experiment page, decisions appear in Activity in the side column; select All or Show earlier to see older ones. In the CLI, a decision recorded while NEATLOGS_LOCAL_ROUND_ID is set belongs to that round. The top-level decisions in experiments get shows only setup decisions. Look under the round.

Open improve → experiments and select the experiment by name, or open /experiments/local/workspace/<experiment-id>?orgId=<org-id>&projectId=<project-id> on your dashboard.

Still stuck

On the Needs attention card, select Technical details, then Copy for support, and send it with the experiment ID to support.

On this page

neatlogs
neatlogs

Ask neatlogs AI

Answers grounded in the docs

neatlogs

How can I help?

Ask anything about Incidents, Experiments, tracing, or the neatlogs dashboard.