feat(exec): log per-attempt chain verdicts for pass rate visibility
All checks were successful
cd / Build and deploy (push) Successful in 6s
CI / Lint / Test / Vet (push) Successful in 1m9s
CI / Mirror to GitHub (push) Successful in 4s

This commit is contained in:
Mathias Bergqvist
2026-04-22 15:40:15 +02:00
parent 78d3939caa
commit 823de23213

View File

@@ -114,6 +114,18 @@ func main() {
orch := iexec.NewOrchestrator(chain, litellmExec.Run, claudeExec.Run, verifier, models.LlamaSwapURL(), &attempts)
result, err := orch.Run(ctx, req)
result.Attempts = attempts // attach orchestration metadata before returning
// Log per-attempt verdicts so pass rates are visible in pod logs.
for i, a := range attempts {
logger.Info("chain attempt",
"skill", skill,
"attempt", i+1,
"model", a.Model,
"tier", a.Tier,
"verdict", a.Verdict,
"duration_ms", a.DurationMs,
"warm", a.WarmStart,
)
}
return result, err
}
}