Answer stability round 1: 1 🔴, 1 🟡; restore the import order, and decide ships-alone from L, E and I so an unranked row counts

This commit is contained in:
2026-10-22 21:07:27 +02:00
parent fbdb6c9f08
commit 682181bc3b
3 changed files with 7 additions and 3 deletions
+3 -2
View File
@@ -203,8 +203,9 @@ def renames(todo: str) -> set[tuple[int, int, int]] | Failure:
def ships_alone(item: Item) -> bool:
"""An item above BUNDLE_MAX_R joins no chunk, and none joins it."""
return item.scores.get("R", 0) > BUNDLE_MAX_R
"""An item above BUNDLE_MAX_R joins no chunk, and none joins it. R comes from L, E and I, so an R cell rank_todo.py has yet to fill counts too; a table without them, in the old shape, ships nothing alone."""
scores = item.scores
return all(level in scores for level in ("L", "E", "I")) and risk(scores["L"], scores["E"], scores["I"]) > BUNDLE_MAX_R
def bundle_candidates(found: list[Item], first: Item) -> list[Item]: