Regulatory reporting¶
anywatch.reporting turns monitor results into structured, auditable
reports.
Audit trail¶
AuditTrail is an append-only log in which every entry contains the
SHA-256 hash of the previous one. Any later modification, deletion or
reordering of entries is detected by verify().
trail = aw.AuditTrail()
trail.record("monitor_created", metric="sensitivity", target=0.9, groups=groups)
trail.record("batch_processed", n=500, alarms=0)
assert trail.verify()
EU AI Act, Article 72¶
Article 72 of Regulation (EU) 2024/1689 requires providers of high-risk AI systems to establish a post-market monitoring system that actively and systematically collects, documents and analyses performance data throughout the lifetime of the system, and to include a post-market monitoring plan in the technical documentation.
build_art72_report produces a report with these sections:
| Section | Reference |
|---|---|
| Post-market monitoring system | Article 72(1) |
| Data collection and analysis | Article 72(2) |
| Statistical methods and guarantees | Article 72(2) |
| Alarms and corrective actions | Article 20 |
| Serious incidents | Article 73 |
| Evaluation of continuous compliance | Article 72(2), Chapter III Section 2 |
| Post-market monitoring plan | Article 72(3), Annex IV |
FDA Predetermined Change Control Plan¶
The FDA guidance on PCCPs for AI-enabled device software functions (final,
December 2024) has three components: a Description of Modifications, a
Modification Protocol and an Impact Assessment. build_pccp_report
documents the manufacturer's text for each component together with the
statistical evidence and an evaluation against the acceptance criteria.
Output formats¶
report.to_markdown()
report.to_html() # standalone page, values are HTML-escaped
report.to_json() # validated against the bundled JSON schema
report.save("report.html")
The JSON schema is available through anywatch.reporting.load_schema() and
can be used to validate reports in other systems.
Note
The reports support documentation. They do not by themselves establish regulatory compliance, which remains the responsibility of the provider or manufacturer.