preClassify
preClassify(
tail):AutopilotVerdict|null
Defined in: src/autopilot-llm.ts:48
Deterministic pre-filter for classifyStop: when there is no terminal tail to classify (the no-tail onDone path, autopilot.ts readTail throws/empties), there is nothing for Haiku to read, so conservatively surface (unknown — never auto-proceed) without paying for a spawn. Returns SURFACE for an empty/whitespace-only tail, else null (→ caller proceeds to the Haiku spawn, unchanged). NOT an identical-verdict optimization: today’s empty-tail spawn still sees the task prompt and could return complete/finished — this conservative override always surfaces instead.
Parameters
Section titled “Parameters”string[]
Returns
Section titled “Returns”AutopilotVerdict | null