Answer stability round 1: 1 🔴, 6 🟡 (0 misread); read every title through both templates, hold a title to its template only on an item's branch, and fail on a config fault

This commit is contained in:
2026-11-14 01:47:41 +01:00
parent 1692679985
commit f98e8a84dd
42 changed files with 537 additions and 256 deletions
+3 -2
View File
@@ -17,6 +17,7 @@ from deploy_release import forge
from chunk_preflight.choices import forge_of
from release_plan.todo_table import items
from release_plan.release import newest_tag, Release, version
from project_config import templates
def cut(clone: str, checkout: str) -> str | Failure:
@@ -109,8 +110,8 @@ def same_origin(clone: str, checkout: str) -> Failure | None:
def ready_release(clone: str, ref: str) -> Release | Failure:
"""The next release, as chunk-preflight works it out, where it is ready to cut: it holds no item in todo.md, its release review has landed and changes are unreleased."""
# No project's config names the clone, so its changelog is read at the fixed path, on ref like the plan.
plan = default_plan(clone, ref, "todo.md", FileStore(pathlib.Path(clone, "CHANGELOG.md"), "CHANGELOG.md"))
# No project's config names the clone, so its changelog is read at the fixed path, on ref like the plan, and its titles as they stand.
plan = default_plan(clone, ref, "todo.md", FileStore(pathlib.Path(clone, "CHANGELOG.md"), "CHANGELOG.md"), templates.BARE)
found = items(plan.todo) if isinstance(plan.todo, str) else plan.todo
if isinstance(found, Failure):
return Failure(f"todo.md on {ref} cannot be read: {found.reason}")