Feature/strict context audit#3
Open
philipgreat wants to merge 12 commits into
Open
Conversation
added 12 commits
June 4, 2026 03:17
…MustComment rules
…PI from business layer - logging.rs: mark as infrastructure layer (#![allow(clippy::disallowed_types)]) - logging.rs: remove public log_info(), add emit_ui_message() for UI events only - logging.rs: replace chrono::Local with chrono::Utc for audit consistency - service.rs: rename log_info -> emit_ui_message (18 call sites) - commands.rs: replace log_info -> emit_ui_message (8 call sites) - app.rs: replace log_info -> emit_ui_message (4 call sites) - main.rs: replace log_info -> emit_ui_message (1 call site)
…pect Silent/Summary/Full - Add teaql-tool-core dependency for AuditConfig - Register AuditConfig::production() as UserContext resource - AppAuditSink reads AuditConfig to decide output level: - Silent: skip all entity event output - Summary: compact one-liner to TUI only (no file I/O) - Full: field changes + app.log + audit.log (previous behavior) - Bootstrap events bypass AuditConfig (always shown in TUI) - Extract append_to_file() helper to reduce duplication
- Replace AuditConfig::production() with audit_config_from_env() - Known tables list: task, task_status, task_execution_log - Entity audit respects TEAQL_AUDIT env var - Sink routing respects TEAQL_SINK env var (_stdout/_file/_both) - All 18 tests pass
- Default: _verify (safest, no env var needed) - _execute: auto-apply schema changes (dev/CI) - _dryrun: preview SQL without executing (staging review) - Tests require TEAQL_SCHEMA=_execute to create test databases
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.
No description provided.