Generalise stability-replay to review-replay of any pass, and route each pass on its own rung so a replay may lower one pass alone

This commit is contained in:
2026-10-18 17:04:33 +02:00
parent 2911d3f4cc
commit fc13a1100e
26 changed files with 279 additions and 189 deletions
+2 -2
View File
@@ -3,13 +3,13 @@ import os
from rule_hook.rules import Breach
from rule_hook.call import Call
from rule_hook.reviewer_rung import PASS_OF
from review_folder import REPORTS
from rule_hook.reviewer_rung import REVIEWERS
def report_breaches(call: Call, path: str, home: str) -> list[Breach]:
"""The breach of a file call from a reviewer that is not a Write under REPORTS in home; none from any other agent."""
if call.agent not in REVIEWERS:
if call.agent not in PASS_OF:
return []
written = os.path.realpath(os.path.join(call.cwd, path))
reports = os.path.realpath(os.path.join(home, REPORTS))