feat(observability): add uniform audit events for configuration mutations - #348
Merged
josephchimebuka merged 5 commits intoAug 5, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #291
Summary
Add standardized audit event emission for all configuration mutations, ensuring every admin setter and timelock operation produces a consistent, complete governance audit trail.
Problem
Configuration changes are not consistently observable across all mutation paths, making governance forensics and operational auditing more difficult. Some configuration updates may occur without emitting standardized events, resulting in incomplete historical records.
Solution
This PR introduces a uniform audit event schema and applies it across every configuration mutation path, including direct admin setters and timelock operations. Each configuration change now records both the previous and new values, ensuring every mutation is fully traceable.
Implementation Details
Configuration Audit Events
Added standardized audit event emission for all configuration mutators, including:
Each mutation emits a consistent event describing the configuration change.
Event Schema
Standardized the event payload to include:
This provides a consistent event format across all configuration changes.
Timelock Coverage
Extended audit coverage to include the complete timelock lifecycle:
This ensures delayed governance actions are fully observable.
Testing
Added regression tests verifying:
Documentation
Updated
EVENT_SCHEMAto document:Behavioral Changes
None.
This PR improves observability only and does not modify governance behavior or configuration semantics.
Benefits
Checklist
EVENT_SCHEMAdocumentation.