fix(runner): abort on a candidate enumeration that refused

Recorded as candidates_failed before the run stops, so the trace says why.

Claude-Session: https://claude.ai/code/session_01A5KmftdEJ49A9z5mF5ESrX
This commit is contained in:
pj committed 2026-08-13 00:44:00 +05:30
1 parent 0094a7fc64
commit 7880e3e70f
4 files changed
+89 -24

No files matched your search

+3
View File
@@ -35,6 +35,9 @@ const (
// LLMOutcomeNoCandidates: the action tree yielded nothing on this screen, so
// no call was made.
LLMOutcomeNoCandidates = "no_candidates"
// LLMOutcomeCandidatesFailed: the action tree cannot be enumerated for this
// policy at all (an authored leaf samples), which aborts the run.
LLMOutcomeCandidatesFailed = "candidates_failed"
// LLMOutcomeRequestFailed: the provider call failed (transport, timeout,
// non-2xx).
LLMOutcomeRequestFailed = "request_failed"