Log rendition status changes through AuditLogger
Problem/Motivation
ai_disclosure_av dispatches RenditionStatusEvent on every rendition change, but nothing writes it to the audit trail. Writing straight into the ai_disclosure_audit table was removed from #66 (closed), because AuditLogger is the only writer of that table.
Proposed resolution
Add a method to AuditLogger for rendition events, and a subscriber in ai_disclosure_av that calls it when ai_disclosure_audit is enabled. No dependency between the two submodules.
Remaining tasks
-
AuditLoggermethod and its schema use - Subscriber guarded by moduleExists
- Kernel tests in both submodules
Follow-up of #66 (closed). Part of #56 (closed).
AI Compliance
🤖 Generated with the help of an LLM, reviewed and approved by me before posting.
Edited by Giorgio Alfredo Pagano