Record the comprehension check: PR #371 ruled the same

This commit is contained in:
2026-10-28 02:47:14 +01:00
parent 51faf71ecc
commit 946815a495
2 changed files with 26 additions and 1 deletions
+1 -1
View File
@@ -217,7 +217,7 @@ def closed_cycle(loop_run: LoopRun, project: Rung | None, concluded: Concluded,
if stop := archive_step(archive_folder, session, after.task, concluded.route, after.route, effects):
return stop
if limit := reached_limit(after):
# An unfinished verdict always leaves a route. The stop is archived with that route, the one the next cycle would run on, so a rerun resumes there.
# An unfinished verdict always leaves a route; the `or` only satisfies LoopRun.route's optional type. The stop is archived with that route, the one the next cycle would run on, so a rerun resumes there.
return archived_stop(archive_folder, session, after.task, after.route or concluded.route, limit, limit.reason, effects)
return after