HIGH story-bufdir-report-history-audit-log-coordinator-004 8 pts
8
Story Points
High
Priority
Bufdir Report History & Audit Log
Feature

User Story

As a Coordinator
I want to see a detailed audit log for each Bufdir report showing every action taken — including who initiated the export, any validation warnings that were overridden, and all re-export events
So that I can demonstrate to Bufdir or internal auditors that our reporting process is transparent, controlled, and traceable

Acceptance Criteria

  • Given the coordinator opens the audit trail panel for a report, when the panel loads, then all events are shown in chronological order with timestamp, event type, and acting user name
  • Given a validation warning was present at submission time, when the coordinator views the audit trail, then the warning is recorded as an event with the warning message and the coordinator who accepted it
  • Given a re-export was performed by a different coordinator, when the original coordinator views the audit trail, then the re-export event shows the other coordinator's name
  • Given a coordinator from a different organization attempts to access the audit trail, when they make the request, then RLS prevents access and they see no data
  • Given the audit trail is displayed, when the coordinator attempts to edit or delete any entry, then no edit controls are available and all entries are read-only

Business Value

Norwegian grant recipients are legally required to maintain documentation of how public funds were reported. An immutable, role-scoped audit trail gives organizations the evidence they need during Bufdir audits, reduces liability for coordinators, and builds trust with Bufdir by demonstrating systematic governance of the reporting process.