List larv-review's passes in one place that round_titles and the ladder derive from, and check the pass table against it

This commit is contained in:
2026-10-22 20:25:37 +02:00
parent e2033abbaf
commit 6cff688951
5 changed files with 21 additions and 17 deletions
+5 -2
View File
@@ -65,8 +65,11 @@ LADDER = (
WORKER_STEPS = {1: -1, 2: -1, 3: 0, 4: 1}
# The rungs a task's E + I steps a review up from the project's rung; an E + I under 5 steps none.
REVIEW_STEPS = {5: 1, 6: 2, 7: 3, 8: 4}
# Each pass an agent under agents/ reviews, in the order of SKILL.md's pass table, and that agent.
REVIEWERS: dict[ReviewedPass, str] = {"architecture": "systems-architect", "principles": "principles-auditor", "overrides": "override-reviewer", "stability": "stability-reviewer", "product-owner": "product-owner-reviewer", "prose": "prose-reviewer"}
# Each pass of skills/larv-review/SKILL.md → "Passes", in the order of its table, and the agent under agents/ that reviews it; empty where a skill or plugin does. The auto-reviewer is no pass here: it posts no round commit.
PASS_AGENTS: dict[str, str] = {"architecture": "systems-architect", "principles": "principles-auditor", "full scan": "", "security": "", "overrides": "override-reviewer", "stability": "stability-reviewer", "product-owner": "product-owner-reviewer", "prose": "prose-reviewer"}
PASSES = tuple(PASS_AGENTS)
# The passes that have an agent, which `ReviewedPass` names for the type checker; test_ladder holds the two together.
REVIEWERS = typing.cast(dict[ReviewedPass, str], {name: agent for name, agent in PASS_AGENTS.items() if agent})
# The rung a pass's replay chose for the projects on a model: docs/decisions.md → `routing: a review pass runs below the project's rung only on a rung that a replay of its rounds shows finding every 🔴 and 🟡 the project's rung finds`.
REPLAYED: dict[tuple[ReviewedPass, str], Rung] = {}