Answer architecture round 1: 4 🔴, 5 🟡 (0 misread); one-way plan packages with a plan core and an Atlassian client, one parse and print of an item's cells, a pure chunk-start decision, a settings table, one plan read and one standing per pick, one config load in chunk-pr, notifier backends in notifier, and the bin regroup filed as item 392

This commit is contained in:
2026-11-16 14:47:46 +01:00
parent 3f7d85c48e
commit f58250d0ce
103 changed files with 1299 additions and 1044 deletions
+5 -4
View File
@@ -93,8 +93,8 @@ import pathlib
import sys
from failure import Failure
from plan_store.stores import file_plan
from project_config.main import located
from release_plan import plan_file
def main(argv: list[str]) -> int:
@@ -116,15 +116,16 @@ def main(argv: list[str]) -> int:
# The goals, decisions and history are this checkout's project's, so another project's plan would be ranked by them.
if todo.resolve() != config.plan_file.resolve():
return fail(Failure(f"rank_todo.py: {todo} is not the plan this checkout's config names, {config.plan_file.resolve()}; run rank_todo.py in the checkout of the project whose plan it is"))
plan = file_plan(config, todo)
if check:
failures = plan_file.check_failures(todo, config)
failures = plan.check()
for line in failures:
print(line, file=sys.stderr)
return 1 if failures else 0
ranked = plan_file.rank_file(todo, config)
ranked = plan.rank()
if isinstance(ranked, Failure):
return fail(ranked)
for line in plan_file.report_lines(todo, ranked):
for line in plan.reported(ranked):
print(line, file=sys.stderr)
return 1 if ranked.under_bar else 0