Files
pipelines/internal/author/skill/references/debugging.md
T
alan 2bde6b6344 CLI for agents: non-TTY safe run/confirmations, compact inspect, wait hints and exit codes
- Without a terminal, run behaves as --json, tui refuses and confirmations
  fail fast naming --yes instead of prompting.
- inspect prints a compact summary by default; --step N, --transcripts and
  --json give detail.
- wait names a failed run's stage and first diagnostic line, prints how to
  answer a run waiting on a person, and exits 2 when any run failed,
  was canceled or interrupted (1 stays for client errors).
- help describes the current # outcome / # handoff format.
- Task starter's Land stage drops edit to match format.md; skill docs
  document run --json --yes, retry --yes --json and the new behaviour.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 00:27:14 +00:00

33 lines
2.0 KiB
Markdown

# Recover a failed run
1. Read `pipelines inspect ID` (then `--step N` or `--json`), the failed stage's actual input/result,
retained tool evidence, artifacts and Git diff. A timeout is not proof of lost work.
2. Separate code failure, environment/setup failure and result-format failure.
Missing evidence is not a passing check; a failed result does not erase edits.
3. Fix the specific cause directly or continue the original pipeline from the
necessary stage. Preserve completed work and original history. Do not create
another pipeline simply to merge a prepared commit.
4. Verify the repair with a focused regression; run broader checks once relevant
inputs settle. Do not raise retry/time budgets to hide a reproducible defect.
`pipelines retry ID --yes --json` resumes the failed stage; `--stage KEY [--visit N]` picks a
recorded stage, `--input-file FILE|-` merges a bounded JSON correction (shown to
the stage as `# Operator correction`), `--version N` a published version of the
same pipeline, `--mode=restart` starts at entry (say so). `failed` and
`interrupted` runs retry (an interrupted run resumes its unfinished stage or the
stage after the last completed one); a `canceled` one needs a new run or direct
work on its preserved branch. The retried stage sees a `# Previous attempt`
section with the failing stage and diagnostic. Verify the retry's actual stage
input, not merely its admission.
A clean preparation stage succeeds without an empty commit. A `land` stage with a
delivery gate succeeds with a clean checked candidate; the server lands afterward.
Read-only, nonvisual work does not require device screenshots. Visual acceptance
requires a ready fixture, verified connection and actual captured interactions.
Preserve exclusive fixture ownership; inspect tool/process termination before
reuse. Stop and await exact owned fixture processes, not just a go-run parent. Do
not disrupt another active fixture or restart a shared service over running work.
Report the exact blocker and next action briefly. Keep independent work moving.