From c7e49983f7e59f78052df19de6f5cc172336887b Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Wed, 4 Nov 2026 23:35:35 +0100 Subject: [PATCH] =?UTF-8?q?Answer=20product-owner=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=201=20=F0=9F=9F=A1=20(0=20misread);=20have=20chun?= =?UTF-8?q?k-preflight=20name=20unreadable=20tags=20with=20git's=20reason,?= =?UTF-8?q?=20say=20loop-claude=20routes=20such=20a=20chunk=20on=20the=20p?= =?UTF-8?q?roject's=20rung,=20and=20name=20the=20folder=20a=20routing=20ca?= =?UTF-8?q?ll's=20claude=20could=20not=20start=20in?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 +- bin/chunk_preflight/choices.py | 2 ++ bin/chunk_preflight/test_chunk_preflight.py | 6 ++++++ bin/loop_claude/loop/routing_check.py | 2 +- bin/loop_claude/test_loop_claude.py | 4 ++-- 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e019391..e4c76c25 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ - Each chunk's first worker prompt now holds a reading rule: never read more than 80 lines of a file at once, nor take a tool output over 3,000 characters into your context. Where the 20 chunks after it take more review rounds, unfinished verdicts, findings, misread findings, dollars or hours than the 20 before, a later release drops it. - `rule-hook`'s `round-cap` now refuses a round commit whose title names no larv-review pass, such as `Answer architectur round 1:`. Before, a misspelled pass got a count of its own, so its rounds never reached the cap. - A routing call from `loop-claude`'s figures now opens claude in the setup's development clone, `~/code/claude-config`, not in `~/.claude`. Recording the answer there no longer leaves `~/.claude` with changes that stop `deploy-release` from moving it. -- Where the default branch's tags cannot be read, `chunk-preflight` and `loop-claude`'s routing now say they cannot tell the release's standing. Before, they read such a branch as one with nothing cut, so `chunk-preflight` could report an empty plan where a release review was due. +- Where the default branch's tags cannot be read, `chunk-preflight` now says so, with git's reason, and that it cannot tell which release is next, and `loop-claude` routes the chunk on the project's rung. Before, both read such a branch as one with nothing cut, so `chunk-preflight` could report an empty plan where a release review was due. - A branch that changes `workflow-bench/run-prompt.md` or `compare-prompt.md` now counts as changing config, as a skill does: its reviewers run on the rung its items pick, not on the project's rung. - `deploy-release` now stops with git's own error where git cannot refresh the checkout's index. Before, it went on and could refuse with a wrong report of uncommitted changes. diff --git a/bin/chunk_preflight/choices.py b/bin/chunk_preflight/choices.py index 56231359..e1249d96 100644 --- a/bin/chunk_preflight/choices.py +++ b/bin/chunk_preflight/choices.py @@ -30,6 +30,8 @@ def planned(todo: str | Failure, cut: LastCut, default: str) -> Plan | NoItem: return NoItem(f"{where} holds no items table.") if isinstance(found, Failure): return NoItem(f"{where} cannot be read: {found.reason}.") + if isinstance(cut.tag, Failure): + return NoItem(f"{default}'s tags cannot be read: {cut.tag.reason}. So which release is next cannot be told. Find the next release yourself.") named = cut_name(cut) last_cut = f"the last cut, {named}" if named is not None else "the start, since no release is cut yet" pick = chunk_item(found, cut) diff --git a/bin/chunk_preflight/test_chunk_preflight.py b/bin/chunk_preflight/test_chunk_preflight.py index f62782ef..31351290 100644 --- a/bin/chunk_preflight/test_chunk_preflight.py +++ b/bin/chunk_preflight/test_chunk_preflight.py @@ -454,6 +454,12 @@ class Plans(unittest.TestCase): said = planned(EMPTY, LastCut(None, "## 0.0.1 - 2026-10-03\n", 0, []), "origin/main").why self.assertIn("the next release after the last cut, 0.0.1 (dated in CHANGELOG.md)", said) + def test_says_the_tags_cannot_be_read_with_gits_reason_and_names_no_cut(self): + said = planned(EMPTY, LastCut(Failure("git exited 128: not a git repository"), "", 4, []), "origin/main").why + self.assertIn("origin/main's tags cannot be read: git exited 128: not a git repository.", said) + self.assertIn("Find the next release yourself.", said) + self.assertNotIn("no release is cut yet", said) + def test_names_the_start_as_the_last_cut_where_nothing_is_cut(self): said = planned(EMPTY, LastCut(None, "", 4, [TODO]), "origin/main").why self.assertIn("release 0.2.0, the next after the start, since no release is cut yet,", said) diff --git a/bin/loop_claude/loop/routing_check.py b/bin/loop_claude/loop/routing_check.py index 363d77ad..3caa9ef6 100644 --- a/bin/loop_claude/loop/routing_check.py +++ b/bin/loop_claude/loop/routing_check.py @@ -57,7 +57,7 @@ def raise_calls(root: pathlib.Path, checkout: str, session: str, new: list[str], with listed(questions, ask, effects): unstarted = hand_over(ClaudeCommand(claude_args(rung, [prompt]), str(paths.config_clone), {}), effects) if unstarted: - return Stop(1, f"could not start claude for the routing calls: {unstarted.reason}") + return Stop(1, f"could not start claude for the routing calls in {paths.config_clone}, the setup's development clone: {unstarted.reason}") # Raised once the human has seen them, answered or not: an unanswered call reaches the plan through AGENTS.md, so it is not asked twice. if unmarked := archive.mark_raised(root, new, utc(effects.now())): say(f"routing figures: {unmarked.reason}", effects) diff --git a/bin/loop_claude/test_loop_claude.py b/bin/loop_claude/test_loop_claude.py index a1d0e819..c321ca85 100644 --- a/bin/loop_claude/test_loop_claude.py +++ b/bin/loop_claude/test_loop_claude.py @@ -934,7 +934,7 @@ class RoutingCheck(unittest.TestCase): def test_stops_when_claude_cannot_start_for_the_calls(self): self.chunks(5, 4) stop, _ = self.check(FakeEffects(on_terminal_claude=[OSError(2, "No such file or directory")], git=[UNREAD])) - self.assertEqual(stop, Stop(1, "could not start claude for the routing calls: No such file or directory")) + self.assertEqual(stop, Stop(1, f"could not start claude for the routing calls in {self.home / 'code' / 'claude-config'}, the setup's development clone: No such file or directory")) self.assertEqual(asks_and_answers(self.paths.waiting), []) @unittest.skipIf(os.geteuid() == 0, "root writes into a read-only directory") @@ -1841,7 +1841,7 @@ class ExitContract(unittest.TestCase): ("loop/main.py", "loop_run_from", "0 if task else 1", "__doc__.strip()", "no task is given"), ("loop/main.py", "loop_run_from", "1", 'f"the edited loop-claude cannot read the state', "a reload cannot read the state the running script handed it"), ("loop/reload.py", "exec_if_edited", "1", "f'could not reload loop-claude:", "python cannot start for a reload"), - ("loop/routing_check.py", "raise_calls", "1", "f'could not start claude for the routing calls:", "claude cannot start for an interrupt"), + ("loop/routing_check.py", "raise_calls", "1", "f\"could not start claude for the routing calls in {paths.config_clone}", "claude cannot start for an interrupt"), ("project/checkout.py", "checkout_root", "1", "found.reason", git), ("project/model_choice.py", "get_or_ask_model", "1", "models.reason", models_), ("project/model_choice.py", "get_or_ask_model", "1", "models.reason", models_),