feat(logging): Implement auto-whitelisting heuristics for log sessions

This commit is contained in:
2026-02-26 09:05:15 -05:00
parent ff98a63450
commit 4e9c47f081
4 changed files with 143 additions and 7 deletions

View File

@@ -40,7 +40,7 @@ This file tracks all major tracks for the project. Each track has its own detail
---
- [ ] **Track: Review logging used throughout the project. THe log directory has several categories of logs and they are getting quite large in number. We need sub-directoreis and we need a way to prune logs that aren't valuable to keep.**
- [~] **Track: Review logging used throughout the project. THe log directory has several categories of logs and they are getting quite large in number. We need sub-directoreis and we need a way to prune logs that aren't valuable to keep.**
*Link: [./tracks/logging_refactor_20260226/](./tracks/logging_refactor_20260226/)*
---

View File

@@ -1,20 +1,20 @@
# Implementation Plan: Logging Reorganization and Automated Pruning
## Phase 1: Session Organization & Registry Foundation
- [ ] Task: Initialize MMA Environment (Protocol: `activate_skill mma-orchestrator`)
- [ ] Task: Implement `LogRegistry` to manage `log_registry.toml`
- [x] Task: Initialize MMA Environment (Protocol: `activate_skill mma-orchestrator`) [9a66b76]
- [x] Task: Implement `LogRegistry` to manage `log_registry.toml` [10fbfd0]
- [ ] Define TOML schema for session metadata.
- [ ] Create methods to register sessions and update whitelist status.
- [ ] Task: Implement Session-Based Directory Creation
- [x] Task: Implement Session-Based Directory Creation [3f4dc1a]
- [ ] Create utility to generate Session IDs: `YYYYMMDD_HHMMSS[_Label]`.
- [ ] Update logging initialization to create and use session sub-directories.
- [ ] Task: Conductor - User Manual Verification 'Phase 1: Foundation' (Protocol in workflow.md)
- [x] Task: Conductor - User Manual Verification 'Phase 1: Foundation' (Protocol in workflow.md) [3f4dc1a]
## Phase 2: Pruning Logic & Heuristics
- [ ] Task: Implement `LogPruner` Core Logic
- [x] Task: Implement `LogPruner` Core Logic [bd2a79c]
- [ ] Implement time-based filtering (older than 24h).
- [ ] Implement size-based heuristic for "insignificance" (~2 KB).
- [ ] Task: Implement Auto-Whitelisting Heuristics
- [~] Task: Implement Auto-Whitelisting Heuristics
- [ ] Implement content scanning for `ERROR`, `WARNING`, `EXCEPTION`.
- [ ] Implement complexity detection (message count > 10).
- [ ] Task: Integrate Pruning into App Startup