From 3141dd3edc7ced06628d4f32d7cba910bfc7eafa Mon Sep 17 00:00:00 2001 From: tegwick Date: Wed, 19 Aug 2026 23:48:24 +0200 Subject: [PATCH] make check must keep watching accepted findings RISK-F-0007 moved to accepted and dropped out of the production-rescore list, which contradicts what the finding itself says: an acceptance that expires at the production transition has to be visible at that transition. accepted is carried, not closed. Co-Authored-By: Claude Opus 5 --- tools/register_check.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/register_check.py b/tools/register_check.py index 0509e81..4f16a5c 100644 --- a/tools/register_check.py +++ b/tools/register_check.py @@ -23,7 +23,9 @@ def date(value): def main() -> int: - fs = [f for f in lib.findings() if f.get("status") == "open"] + # "accepted" is deliberately carried, not closed: it keeps its review + # interval and its production re-score, so the nag must keep watching it. + fs = [f for f in lib.findings() if f.get("status") in ("open", "accepted")] lines: list[str] = [] def section(title: str, rows: list[str], quiet: str) -> None: @@ -87,7 +89,7 @@ def main() -> int: ] section("Owed at the production transition", rescore, "none — no finding is graded lower for build mode") - print(f"Register check — {TODAY}\n{len(fs)} open finding(s)\n") + print(f"Register check — {TODAY}\n{len(fs)} open or accepted finding(s)\n") print("\n".join(lines).rstrip()) return 0