Skip to content

v1.84.0 ·

The build that failed without running

Autopilot counted every check that finished as fail or cancel as a failed build. That spent one of an item's two CI tries and relaunched the agent to fix code that was never tested. The second such failure parked the item.

On 2026-10-10 I read the real jobs with gh api .../runs/<id>/jobs. On PR #175 the gate job queued from 03:00 to 08:24Z, had no runner name and no steps, and ended cancelled. No runner ever took it. On PR #176 a job ran on a runner, setup and install succeeded, pnpm build was cancelled, lint and test were skipped, and the job concluded failure. The runner went away mid-job. Then another run of the same code passed every step once a runner held.

The roadmap item said the later steps in the second case had no conclusion. The data says cancelled then skipped. Both readings share one fact, and the rule rests on it: no step concluded failure. A real test failure always leaves the test step at failure.

What changed

Before counting a failure, autopilot now reads the failing checks' jobs from GitHub Actions. A check counts against the item only when one of its steps failed. A job no runner took, or whose runner left partway, spends none of the two tries and launches no agent.

Such a job is re-run once. If it still does not run, the item waits at its pull request, shows CI untested in aidlc autopilot watch, says the runner is the problem, and sends one notification. Re-running the job once a runner is back lets autopilot carry on. A real test failure is handled exactly as before.

Why this way

I rejected checking whether the job had a runner name, because the job that lost its runner halfway had one. I rejected naming the setup steps too, since those names belong to each project's workflow and would drift. The step-failed rule needs neither.

Autopilot does not count the re-runs at all. GitHub already numbers each attempt of a run, whoever started it, and a new push starts again at one. If the job details cannot be read, the failure counts exactly as before. So the change can only take away a false failure. It cannot hide a real one.

What it does not fix

A test that hangs until a timeout cancels it looks like a lost runner. That costs one extra run and a message, never an agent or a parked item.