Diagnose by symptom
When something unexpected happens, start here. Each symptom lists its possible causes, the check that tells them apart, and the fix.
No cycles are running
Section titled “No cycles are running”Causes:
- The disable switch is set (operator paused the pipeline)
- The account hit a usage limit
- The node is not
ROLE=active - Configuration is invalid
- Credentials are missing or expired
Check:
docker compose exec scheduler /app/agent-cycle.sh --statusIf output shows switch: DISABLED or limit: STANDING DOWN, those are the causes. If the cycle and review are both idle and there’s no message, check the next items.
Fixes:
- Switch is disabled:
docker compose exec scheduler /app/agent-cycle.sh --enable - Usage limit hit: See Lifting a usage-limit stand-down
- Node is standby: Set
ROLE=activein.env, thendocker compose up -d - Configuration invalid:
docker compose exec scheduler /app/scripts/doctor.shlists what is wrong - Credentials missing:
doctor.shalso checks model and GitHub access
Cycles run but select nothing
Section titled “Cycles run but select nothing”Causes:
- No work exists (repositories are empty or quiet)
- Configuration has no repositories or they are unreachable
- All items are blocked or void (awaiting dependencies or already done)
- The fingerprint shows nothing changed (no-op short-circuit)
Check:
docker compose exec scheduler /app/agent-cycle.sh --dry-runThe output shows what the Coordinator sees: which repositories, which issues, and what it selected (or why it selected nothing). Also check the log:
docker compose exec scheduler \ jq -r 'select(.event == "stand-down") | "\(.ts) \(.reason)"' \ /home/agent/.local/state/poetic-agents/log.jsonl | tail -3Fixes:
- No work: That’s fine — the pipeline idles. Watch the dashboard to see if new issues appear.
- Configuration has no repos: Add repositories to
config.jsonand get the change merged and rolled onto the node — see Configuration reaches a node - All items blocked: See An item is blocked or void — most blocks clear themselves once the blocker resolves
- No-op stand-down: Nothing is wrong. The next cycle with actual changes will run.
A pull request will not land
Section titled “A pull request will not land”Causes:
- A required review is still outstanding (human reviewer hasn’t approved)
- A CI check is failing
- The pull request is in draft
- The pull request was dequeued from the merge queue
- A required comment on the PR hasn’t been reconciled
Check:
gh pr view <number> --json state,reviewDecision,mergeStateStatus,isDraftFixes:
- Review pending: Wait for the reviewer, or post feedback on the PR for the pipeline to react to
- CI failing: Check the workflow run for the error; the pipeline will fix transient failures or re-run the item
- Draft pull request: Set
ROLE=activeon a node with the pipeline enabled; the Reviewer flips it to ready - Dequeued: The pipeline diagnosed why and fixed it; re-queue with “Merge when ready”
- Unreconciled comment: No label marks this. A human comment posted since the pull request last became ready blocks landing until a Reviewer round answers it and cites it with an
<!-- agent-ops:reconciles comment=<id> -->line in its own completion comment;lib/reconciliation-gate.shis what refuses the handoff until then. Read the thread for a human comment with no matching citation
An item is blocked or void
Section titled “An item is blocked or void”Causes (blocked):
- A dependency hasn’t landed yet
- Configuration or credentials are wrong
- The item was under-specified (no acceptance criteria)
- Something only you can decide is in the way
Causes (void):
- The work is already done
- The item was a duplicate
- The premise turned out to be false
Check:
# See all blocked itemsgh issue list -R <repo> --label blocked
# See void items on the dashboard or in the logdocker compose exec scheduler \ jq -r 'select(.event == "item-void") | "\(.ts) \(.repo)#\(.item) \(.detail)"' \ /home/agent/.local/state/poetic-agents/log.jsonl | tail -5Fixes (blocked):
- Dependency: The pipeline re-checks automatically. Once the dependency resolves, the item unblocks.
- Under-specified: The Enabler will write a specification or ask you. Answer on the escalation issue it files, then close it.
- Your decision needed: An
enabler-escalationissue names what you need to decide. Answer there and close the issue.
Fixes (void):
- Already done: The item is closed automatically once the merged PR or closed issue settles into the void list.
- Re-open if it’s wrong: Add the
unvoidedlabel to the issue or PR, and the next cycle will reconsider it.
A stage was stopped
Section titled “A stage was stopped”Causes:
- The stage hit its time budget (backstop timeout)
- The stage produced no output for its inactivity window
- The account hit a usage limit mid-stage
- An error caused it to exit
Check:
# See recent stage completionsdocker compose exec scheduler \ jq -r 'select(.event == "stage-end") | "\(.ts) \(.stage) \(.kill_reason // "completed") \(.duration_ms // "?")ms"' \ /home/agent/.local/state/poetic-agents/log.jsonl | tail -10
# Read the stage's transcriptdocker compose exec scheduler ls /home/agent/.local/state/poetic-agents/cycles/<cycle-id>/docker compose exec scheduler \ cat /home/agent/.local/state/poetic-agents/cycles/<cycle-id>/implementer.stream.jsonlFixes:
- Timeout: A timeout that stays long suggests a cap too tight for the real work. The timeouts self-tune from history —
doctor.shshows the current table. - Inactivity timeout: The stage stopped producing output. Read the
.stream.jsonlto see what it was doing last. - Usage limit: Not a fault — wait for the cap to reset or raise it.
- Error: The stream shows what went wrong. Re-run the cycle or check the error in more detail.
A node is on an old image
Section titled “A node is on an old image”Cause: The node hasn’t pulled a new image since one was built.
Check:
# On the node's host, from the stack directory — compares against the# newest published build and reports how far behind this node iscurl -fsSLO https://raw.githubusercontent.com/Pullwright/agent-ops/main/scripts/check-node-image.shchmod +x check-node-image.sh./check-node-image.sh
# Or read the stamp this node's image was built with directlydocker compose exec scheduler cat /app/build-info.json | jq .
# On the dashboard# The node card shows "behind" if it's older than the latest published buildFixes:
-
If watchtower is enabled (the
auto-updateprofile), it pulls and restarts automatically. Wait a few hours, then check again. -
To roll manually:
Terminal window docker compose pulldocker compose up -d -
To pin to a specific build:
Terminal window echo "AGENT_OPS_IMAGE=ghcr.io/pullwright/agent-ops:<sha>" >> .envdocker compose up -d
Checking an installation
Section titled “Checking an installation”Run doctor.sh to verify the whole installation:
docker compose exec scheduler /app/scripts/doctor.shThis checks:
- Configuration matches the schema
- Repositories are readable and writable
- GitHub token has needed scopes
- Model credentials are set
- The container’s own rendered crontab (
deploy/docker/crontab.tmplviarender-crontab.sh) is valid - Prompts and overrides exist
- Egress fence is working
Run it after editing config.json, on a new node before its first cycle, and whenever a cycle behaves unexpectedly.
Reading stage transcripts
Section titled “Reading stage transcripts”When a stage fails or times out, read its transcript:
docker compose exec scheduler ls /home/agent/.local/state/poetic-agents/cycles/docker compose exec scheduler \ cat /home/agent/.local/state/poetic-agents/cycles/<cycle-id>/<stage>.stream.jsonlThe stream shows every event the stage emitted, one JSON object per line, written as it happened. Read it when a stage timed out (the envelope shows only the completion, not how far it got).
Related pages
Section titled “Related pages”- Run and pause — control cycles and the disable switch
- Watch — monitor dashboards and logs
- Change a node — update or remove nodes