Give the reload and the strike their own modules

This commit is contained in:
2026-09-28 11:11:23 +02:00
parent 5de7e0fc9c
commit 4171a1ecbe
9 changed files with 88 additions and 69 deletions
+1 -7
View File
@@ -10,6 +10,7 @@ import uuid
from loop_claude.checkout import checkouts, project_name
from loop_claude.outcome import Continue, Retry, Stop
from loop_claude.strike import strike
SESSION_NAMESPACE = uuid.UUID("64fb586b-d926-4bb3-a44c-c903e86d3eec")
@@ -45,13 +46,6 @@ JUDGE_SCHEMA = {
}
def strike(who, failures, failure):
if failures == 3:
return Stop(1, f"the {who} failed three times running: {failure}")
print(f"retrying the {who} in a minute: {failure}", file=sys.stderr)
time.sleep(60)
def run_cycle(root, task, premises, chosen, paths, env):
name = session_name(root, paths.code)
session_id = uuid.uuid5(SESSION_NAMESPACE, name)