Answer architecture round 1: 0 🔴, 7 🟡; move the reports to a durable review folder under ~/.local/state, carry the yardstick, the named reviewer and the test status in each reply line, read an entry by Grep, name the folder once, print which rules take no override, and file items 185 and 186

This commit is contained in:
2026-10-18 00:20:13 +02:00
parent 9207566328
commit 8df46e3a85
11 changed files with 42 additions and 28 deletions
+4 -2
View File
@@ -18,6 +18,8 @@ class Rule:
overridable: bool = True
# The reviewers' reports folder, under the home folder: outside every checkout, so no project sees a report, and kept across a reboot, so a resumed chunk still reads its rounds. A fixed path, since a headless session has no scratchpad.
REPORTS = ".local/state/larv-review"
RULES: dict[RuleName, Rule] = {
"action-pin": Rule(
"a GitHub or Gitea Action is pinned to a semver tag, such as @v3 or @v3.1.2, never to a branch, and to a commit SHA only in a pipeline that tests our own specific builds",
@@ -41,7 +43,7 @@ RULES: dict[RuleName, Rule] = {
),
# A reviewer only reports, so no marker waives it.
"reviewer-report": Rule(
"a reviewer writes nothing but its report, with Write, into a file under /tmp/larv-review/, outside every checkout",
f"a reviewer writes nothing but its report, with Write, into a file under ~/{REPORTS}/",
"a Write, Edit or MultiEdit call from inside an agent under agents/",
overridable=False,
),
@@ -186,4 +188,4 @@ def blocks(written: str) -> list[list[str]]:
def rules_help() -> str:
return "\n".join(f" {name}\n The rule: {rule.holds}.\n Checked in: {rule.checked}." for name, rule in RULES.items())
return "\n".join(f" {name}\n The rule: {rule.holds}.\n Checked in: {rule.checked}." + ("" if rule.overridable else "\n Takes no override.") for name, rule in RULES.items())