Answer architecture round 1: 0 🔴, 4 🟡 (0 misread); move the shared loop state out of loop_claude, split ranking and routing, give the reviewer rung one rule
CI / tests (pull_request) Successful in 2m14s
CI / tests (pull_request) Successful in 2m14s
This commit is contained in:
+3
-3
@@ -89,7 +89,7 @@ import pathlib
|
||||
import sys
|
||||
|
||||
from failure import Failure
|
||||
from release_plan import ranking
|
||||
from release_plan import plan_file
|
||||
|
||||
|
||||
def main(argv: list[str]) -> int:
|
||||
@@ -101,11 +101,11 @@ def main(argv: list[str]) -> int:
|
||||
return fail(args)
|
||||
check, todo = args
|
||||
if check:
|
||||
failures = ranking.check_failures(todo)
|
||||
failures = plan_file.check_failures(todo)
|
||||
for line in failures:
|
||||
print(line, file=sys.stderr)
|
||||
return 1 if failures else 0
|
||||
ranked = ranking.rank_file(todo)
|
||||
ranked = plan_file.rank_file(todo)
|
||||
if isinstance(ranked, Failure):
|
||||
return fail(ranked)
|
||||
return 1 if ranked.under_bar else 0
|
||||
|
||||
Reference in New Issue
Block a user