From 17c0af8d9b2e39abe7891fb25641d463f868c7e1 Mon Sep 17 00:00:00 2001 From: David Abutbul Date: Mon, 16 Feb 2026 15:45:35 +0200 Subject: [PATCH] auto-claude: subtask-2-2 - Add INFO-SUPPRESSED section to report output - Added lineForSuppressedFinding() to format suppressed findings - Added INFO-SUPPRESSED section showing suppressed findings with reason and date - Suppressed findings are not counted in summary (already filtered) - Follows existing code patterns for report sections Co-Authored-By: Claude Sonnet 4.5 --- .../scripts/render_report.mjs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/skills/openclaw-audit-watchdog/scripts/render_report.mjs b/skills/openclaw-audit-watchdog/scripts/render_report.mjs index bbb2d9e..0f4ca4a 100755 --- a/skills/openclaw-audit-watchdog/scripts/render_report.mjs +++ b/skills/openclaw-audit-watchdog/scripts/render_report.mjs @@ -116,6 +116,14 @@ function lineForFinding(f) { return `- ${id} ${title}${fixLine ? `\n ${fixLine}` : ""}`; } +function lineForSuppressedFinding(f) { + const id = f?.checkId ?? "(no-checkId)"; + const title = f?.title ?? "(no-title)"; + const reason = f?.suppressionReason ?? "(no reason)"; + const date = f?.suppressedAt ?? "(no date)"; + return `- ${id} ${title}\n Suppressed: ${reason} (${date})`; +} + function render({ audit, deep, label, suppressedFindings = [] }) { const now = new Date().toISOString(); const a = pickFindings(audit); @@ -163,6 +171,15 @@ function render({ audit, deep, label, suppressedFindings = [] }) { for (const e of errors) lines.push(`- ${e}`); } + // Show suppressed findings + if (suppressedFindings.length) { + lines.push(""); + lines.push("INFO-SUPPRESSED:"); + for (const f of suppressedFindings) { + lines.push(lineForSuppressedFinding(f)); + } + } + return lines.join("\n"); }