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:
+13
-1
@@ -1,4 +1,5 @@
|
||||
"""The passes of larv-review, as skills/larv-review/SKILL.md → "Passes" lists them."""
|
||||
"""The passes of larv-review, as skills/larv-review/SKILL.md → "Passes" lists them, and the Markdown that counts as config for them."""
|
||||
import pathlib
|
||||
import typing
|
||||
|
||||
# A pass an agent under agents/ reviews, in lower case. A Literal cannot be built from `PASS_AGENTS`, so test_review_passes holds the two together.
|
||||
@@ -14,3 +15,14 @@ def _reviewed(name: str) -> typing.TypeGuard[ReviewedPass]:
|
||||
|
||||
# The passes that have an agent. A pass missing from `ReviewedPass` drops out of it, which test_review_passes fails on.
|
||||
REVIEWERS: dict[ReviewedPass, str] = {name: agent for name, agent in PASS_AGENTS.items() if agent and _reviewed(name)}
|
||||
|
||||
|
||||
# Markdown an agent follows, which counts as config: Claude Code's memory files, the bench's prompts, and the folders that hold Claude Code's skills, agents and rules and this repo's principles. skills/larv-review/SKILL.md → "Passes" and docs/decisions.md state the same lists for the agents that read them.
|
||||
INSTRUCTION_FILES = ("CLAUDE.md", "AGENTS.md", "workflow-bench/*-prompt.md")
|
||||
INSTRUCTION_FOLDERS = ("agents", "principles", "rules", "skills")
|
||||
|
||||
|
||||
def prose(path: str) -> bool:
|
||||
"""Whether path names Markdown that no agent follows: a branch changing only such files reviews on the project's rung, skills/larv-review/SKILL.md → "Markdown only"."""
|
||||
named = pathlib.PurePosixPath(path)
|
||||
return path.endswith(".md") and not any(named.match(pattern) for pattern in INSTRUCTION_FILES) and not set(INSTRUCTION_FOLDERS) & set(named.parts[:-1])
|
||||
|
||||
Reference in New Issue
Block a user