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 <noreply@anthropic.com>
This commit is contained in:
tegwick 2026-08-19 23:48:24 +02:00
parent 00106ffcdd
commit 3141dd3edc

View file

@ -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