← All articles

My harness said INCOMPLETE for a month. I wasn't listening.

I built /runtask to save tokens in Claude Code. For its first 12 runs, it never reached "finished". The script hadn't changed. A broken linter config had, and the harness reported it honestly every time. Part 2 of the series.

By 7 min read

The zero

Part 1 ended with a number: I took 12 archived /runtask runs and counted how many had reached finished. Zero.

One of the comments under that post asked the obvious question. Was it tool failures, or the model giving up early?

The clearest recurring blocker was a tool failure: ESLint crashing before it checked a single file.

What actually happened

Most of those 12 runs stopped in the building stage with a verification result of INCOMPLETE. I checked the runner first. Its files hadn't changed since mid-September, so whatever separated "never finishes" from "finishes" wasn't in the harness.

The lint logs from those runs looked like this:

text
ESLint: 9.39.2

ESLint couldn't find an eslint.config.(js|mjs|cjs) file.

From ESLint v9.0.0, the default configuration file is now eslint.config.js.
If you are using a .eslintrc.* file, please follow the migration guide
to update your configuration file to the new format.

The project was on ESLint 9 but still had an old .eslintrc.json. ESLint 9 doesn't read that format by default, so it crashed before linting anything, in the baseline and again in verification.

I migrated the project to a flat config on October 19. After that, 8 of the next 17 runs reached finished. Of the other nine, five stopped at scanned or planned before any edits were made, three were archived while still building, and one got blocked after its checks had passed.

The harness told the truth

Apart from one very early run in an older format, the runner never reported PASS for those first 12 runs. A required check hadn't run, so it said INCOMPLETE, as designed. If verification had treated a crashed linter as "no new errors", a month of changes would have gone through without being linted, and the archive would show a row of green results.

So the status was honest. The problem was that INCOMPLETE looked the same whether a check was skipped, missing or completely broken. "The linter crashed on startup" and "this repo has no test runner" produced the same word. I'd taken a break from coding around then, and when I came back I started reading INCOMPLETE as background noise.

Being honest wasn't enough. The status also had to say why.

What PASS had actually meant

The archive had a second uncomfortable fact in it. The project has no test runner. Across the full archive of 50 runs, 35 reached verification, and 34 of those reported tests as skipped.

So in this repo, PASS has only ever meant that typecheck and lint found no new errors. That's useful, but it's a lot less than the word suggests, and a report that says PASS without saying what it covered is the same kind of compression Part 1 warned about.

What changed

A preflight before the baseline

/runtask now runs a doctor step before it records the baseline. Each detected check gets a small run with a timeout: a full typecheck, ESLint with JSON output on a single source file, one test file, and for the build just a check that its command and binary exist. Each one ends up as one of three results:

ResultMeaning
OKThe tool ran and found nothing
REDThe tool ran and reported problems
BROKENThe tool didn't produce a usable result: a crash, a config error, a missing binary, or none of the expected output

"Expected output" depends on the tool. For ESLint it's a parseable JSON report, for tests it's a test summary. If a tool exits without producing it, that's BROKEN, even if it printed something else.

A BROKEN required check stops the run before any model gets involved. Here's the September failure again, reproduced on a copy of the project with the lint config removed:

text
DOCTOR: BROKEN (lint)
lint: BROKEN in 0.4s | ESLint couldn't find an eslint.config.(js|mjs|cjs) file.

The crash that hid behind a month of INCOMPLETE results now stops the run in under a second, names the cause and points to the log. And because it stops before the worker starts, a broken environment no longer costs worker tokens.

BROKEN is never downgraded to SKIPPED, and the flag that lets a run start on a red project doesn't bypass it. A red project and a broken tool are different problems.

Reports that point back to the evidence

The verification result now lists what was checked, what was SKIPPED and what was NOT RUN, with the command, exit code and log location for each check. If the short summary doesn't match the raw log, the run reports UNTRUSTED SUMMARY and the result drops to INCOMPLETE instead of passing.

Every run also records why it ended: finished, blocked, env, incomplete or abandoned. The "tool or model?" question from the comments would now take one command to answer, not an afternoon in the archive.

Making completion claims auditable

In Part 1, a worker claimed a color "already meets 4.5:1" and nothing had measured it. Marking a step as done now requires a note with specifics for each acceptance criterion. A bare "implemented" gets rejected, and a run can't finish while any criterion has no note.

There's a clear limit here. A specific note is still the model's statement. It makes a claim concrete enough to check, but it doesn't check it. A contrast ratio still needs an actual measurement, and the runner doesn't take one yet.

While testing the doctor, I also caught the next failure before it happened. The baseline passed every file to ESLint in one command, and on Windows that was already close to the command-line length limit. The runner now splits large file lists into batches, and a crash in any batch still counts as BROKEN.

Thanks to the comments

Part 1 got some kind and thoughtful comments, and a few of them were sharper than my own notes. They lined up closely with what I was changing:

  • One pointed out that a compact summary needs a way back to the evidence: the command, the result and the full log. Each check in the result now carries all three.
  • Another noted that a 184-byte summary only helps if you can audit it against the raw output, otherwise the trust problem just moves. The UNTRUSTED SUMMARY check comes from that.
  • A third put it as a responsibility: once you summarize output, you have to make sure important failures don't get lost along the way. That's the job BROKEN does.

Thanks to everyone who took the time to write them. I started this series with token savings. This time I had to look harder at what the reports were actually telling me.

What this still doesn't prove

The runner grew from about 61 KB to about 87 KB of Node with these changes. The new checks were tested on a copy of the project with real tsc and ESLint, and on fixtures with fake tools for crashes, hangs and missing binaries. They haven't been through a real ticket yet.

The ESLint fix has already changed the results. The new version of the runner still has to prove itself in daily work.

finished still means a run passed its gates, not that the change is good. The smoke check confirms that affected pages render on the server and contain the expected text, but it doesn't cover hydration, interaction or how the page looks. And until this repo has a test runner, PASS still means typecheck and lint.

Next

Part 3 covers real tickets on the new version: routing small content changes to Haiku, grouping several small fixes into one run, and how much of my daily limit all of this actually saves.

*Built, measured and written by me, edited with Claude’s help.

Why my Claude Code task runner finished zero runs for a month | Code Nomad