Skip to main content

Module tracking

Module tracking 

Source
Expand description

SQLite-based decision tracking for auditing and analysis.

Structs§

CommandBreakdown
Per-command decision breakdown for suggestion analysis.
DecisionCounts
Aggregate decision counts.
TrackingEntry
A decision entry to record in the tracking database.

Functions§

open_db
Open (or create) the tracking database and ensure the schema exists.
parse_duration
Parse a duration string like 7d, 30d, 1h, 30m into a SQLite modifier format.
query_command_breakdown
Query per-command decision breakdowns from the tracking database.
query_counts
Query aggregate decision counts from the tracking database.
query_top_commands
Query top commands by decision type.
record
Record a decision, logging errors to stderr instead of propagating.
record_decision
Record a single decision in the tracking database.
resolve_db_path
Resolve the tracking database path from an explicit override or config.