@@ -254,6 +254,52 @@ text on every request — there is no persistent per-finding lifecycle.
254254Findings link to a detail page keyed by `(project, finding ID, type,
255255location)` so duplicate rows in a report remain addressable.
256256
257+ ### Responsible AI program dashboard
258+
259+ The Responsible AI Compliance activity page
260+ (` /activities/responsible-ai-compliance ` ) is ** not** the generic SAST-shaped
261+ findings bar. Its own output contract asks the report for an ** AI System
262+ Profile** (models, providers, what the system decides, who is affected, and
263+ the stakes tier), a ** Findings Register** with ` Dimension ` and optional
264+ ` Framework ` columns instead of ` CWE ` , a ` ## Detailed Findings ` section whose
265+ headings are ` ### [Severity] Fn: ` , and a ** Dimension Coverage** table with a
266+ row for each of the seven safeguards — Documentation, Bias & fairness,
267+ Human oversight, Transparency to end users, Data provenance & consent,
268+ Framework alignment, and Auditability & recourse. A safeguard with no
269+ finding is still reported as ` adequate ` with concrete evidence, never left
270+ blank.
271+
272+ ![ Responsible AI program dashboard with the dimension coverage matrix, stakes tiers and AI-BOM cross-check] ( assets/responsible-ai-dashboard.png )
273+
274+ At run completion secfoo parses that report once and writes the rating and
275+ the structured dimension/finding rows in the ** same transaction** as the run
276+ row. The dashboard reads the newest successful run per project, so a re-run
277+ replaces that system's view rather than adding to a historical total. It
278+ answers four questions the old flat report could not:
279+
280+ - ** Which safeguard is failing?** A dimension × project coverage matrix,
281+ with missing/partial/adequate cells and a clickable full view at
282+ ` /activities/responsible-ai-compliance/dimensions ` carrying the report's
283+ evidence and full finding text.
284+ - ** Which system, and at what stakes?** A per-system list with the report's
285+ own stakes tier, models found in code, and overall rating.
286+ - ** Under which framework?** Framework tags (NIST AI RMF function, EU AI Act
287+ article/risk class, internal policy ID) are counted and shown on every
288+ finding; unmapped findings stay in their dimension.
289+ - ** Does the inventory agree?** When an assessment has an attached AI-BOM,
290+ the run brief includes it as reference data and both the assessment page
291+ and the dashboard show models found in code but absent from the BOM, and
292+ models declared in the BOM that the code does not use. The BOM is a claim,
293+ not truth — the panel is a review prompt.
294+
295+ The ` /responsible-ai ` page keeps the risk-tier mix (high, moderate, low and
296+ provisional counts) and links to the dimension dashboard. Reports written
297+ before this contract still produce a rating and finding counts, but their
298+ CWE column is never relabelled as a dimension; until a contract-shaped run
299+ exists, the activity page keeps its generic stat cards instead of showing
300+ an empty matrix. Deleting an assessment keeps the per-run RAI evidence but
301+ detaches it from the deleted case file.
302+
257303### SAST Open/Closed finding identity
258304
259305The SAST activity dashboard (` /activities/sast ` ) is the one program view
@@ -919,7 +965,8 @@ secfoo assessment delete 1
919965
920966Responsible AI risk badges in the dashboard are derived automatically from
921967an assessment's attached Responsible AI Compliance run (its `Overall risk
922- rating` line) rather than set manually, and stay "provisional" until the
968+ rating` line, stored on the run at completion rather than re-read from the
969+ Markdown file) rather than set manually, and stay "provisional" until the
923970assessment's own status is marked Completed.
924971
925972## Configuration (` ~/.secfoo/config.toml ` )
0 commit comments