feat(audit): support audit logging for command evaluation results#103
Merged
feat(audit): support audit logging for command evaluation results#103
Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Note Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #103 +/- ##
==========================================
+ Coverage 89.00% 89.26% +0.25%
==========================================
Files 42 47 +5
Lines 8197 9046 +849
==========================================
+ Hits 7296 8075 +779
- Misses 901 971 +70
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This was referenced Feb 26, 2026
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This was referenced Mar 8, 2026
…`audit` CLI subcommand (#172) Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Merge origin/main into the audit-log feature branch. Main introduced significant changes including `runok init` subcommand, ancestor directory config traversal, `find_parse_and_resolve` architecture, `SubCommandDetail` for verbose logging, and removal of `Action::Default` variant (unmatched commands now resolve to `default_action(config)` directly). Key conflict resolutions: - config/loader: adopt main's `find_parse_and_resolve` architecture while preserving `strip_audit` for project/local configs - rule_engine: keep both `sub_results` (audit) and `sub_command_details` (verbose logging) in `CompoundEvalResult` - cli/mod: merge both `Audit` and `Init` command variants - adapter/mod: preserve audit log recording in the new dispatch flow - audit/model: remove `Action::Default` conversion (action is now resolved before audit recording) Add documentation for the audit log feature: - New `docs/src/content/docs/cli/audit.md` CLI reference - Add `audit` section to configuration schema docs - Add `runok audit` to CLI overview page Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The documentation stated the default retention_days is 30, but the actual code default is 7 (in RotationConfig::default() and resolved_retention_days()). This mismatch would cause users to expect 30-day retention while actually getting 7-day retention. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
# Conflicts: # docs/src/content/docs/cli/overview.md
audit.md and init.md both had order: 4, causing a collision. Shift audit to 5 and update-presets to 6. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Large duration values like `999999999999999999d` caused a multiplication overflow panic in debug mode (and silent wraparound in release mode). The wrapped value could further overflow when cast to i64, producing a negative chrono::Duration that shifts the filter timestamp into the future instead of the past. Use checked_mul for the seconds calculation and i64::try_from for the resolve() cast. Also add audit logging to README.md features list. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Why
What