A worker's failure is read from the end of its output only: a run that did its work is no longer marked unavailable for what it read
workers.failure_text returns the last 1,500 characters of each stream and nothing for an exit-0 run that printed more than 4,000. Runs, model listings, the learned-tool smoke run, provider and learned-driver phrases, and the after-tool hooks all read that text; the shell hook acts only on a real sisi delegate command and the last note line. sisi delegate --timeout-min N (1 to 120) sets one run's time limit. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
cab81df9d7
commit
7bcb6d0325
12 files changed
+430
-22
No files matched your search
+1
-1
@@ -659,7 +659,7 @@ def smoke(driver, timeout=None):
|
||||
shutil.rmtree(tmp, ignore_errors=True)
|
||||
text = out + "\n" + err
|
||||
res = {"output": " ".join(text.split())[:600], "seconds": round(time.time() - started, 1)}
|
||||
fail = workers.classify_failure(text, rc, extra_signatures(driver))
|
||||
fail = workers.classify_failure(workers.failure_text(out, err, rc), rc, extra_signatures(driver))
|
||||
if fail is not None:
|
||||
kind = {"auth": "login", "limit": "quota"}.get(fail[0], "error")
|
||||
return dict(res, ok=False, kind=kind, note=fail[1])
|
||||
|
||||
Reference in new issue
Block a user