Answer architecture round 1: 1 🔴, 12 🟡 (0 misread); route every verdict through next_route with one step-up writer, give a release one home in release.py and rename chunk_pick to release_standing, split loop/main.py, delete the unreachable lowered-pass code, render agent-followed Markdown from one list, refuse a round title naming no pass, and rename the clashing names

This commit is contained in:
2026-11-04 22:57:30 +01:00
parent 97b35f9def
commit 452a0c4271
56 changed files with 689 additions and 694 deletions
+9 -10
View File
@@ -17,12 +17,11 @@ also refuses where the newest tag doesn't hold the checkout's commit, since the
work no release holds. Untracked files, such as Claude Code's sessions and memory, stay as they are.
"""
import pathlib
import re
import sys
from failure import Failure
from git_repo import git
from todo_table import release_of
from release import newest_tag, parsed, tagged
from markdown_text import sections
@@ -47,12 +46,11 @@ def deploy(checkout: str) -> str | Failure:
fetched = git("fetch", "--quiet", "--tags", "origin", cwd=checkout)
if isinstance(fetched, Failure):
return fetched
newest = git("-c", "versionsort.suffix=-", "tag", "--list", "v*", "--sort=-v:refname", cwd=checkout)
if isinstance(newest, Failure):
return newest
if not newest.split():
tag = newest_tag(checkout)
if isinstance(tag, Failure):
return tag
if tag is None:
return Failure("origin has no v* tag to move to")
tag = newest.split()[0]
# Re-reads each file through the clean filter, so a model pick alone leaves settings.json unchanged.
git("update-index", "-q", "--refresh", cwd=checkout)
changed = git("diff", "--name-only", "HEAD", cwd=checkout)
@@ -90,11 +88,12 @@ def deploy(checkout: str) -> str | Failure:
def newer_sections(changelog: str, old_tag: str | None) -> list[str]:
"""Each `## <version>` section of changelog newer than old_tag, newest first, as it reads."""
since = release_of(old_tag.removeprefix("v")) if old_tag and re.fullmatch(r"v[0-9]+\.[0-9]+\.[0-9]+", old_tag) else None
since = tagged(old_tag)
found = []
for heading, bodies in sections(changelog).items():
if not re.fullmatch(r"[0-9]+\.[0-9]+\.[0-9]+", heading):
named = parsed(heading)
if named is None:
continue
if since is None or release_of(heading) > since:
if since is None or named > since:
found.append(f"## {heading}\n\n" + "\n".join(bodies))
return found