Expand description
SQLite-backed telemetry database for agent performance tracking.
Stores events, per-agent metrics, per-task metrics, and session summaries
in .batty/telemetry.db. All tables use CREATE TABLE IF NOT EXISTS —
no migration framework needed.
Structs§
- Agent
Metrics Row - Agent metrics row for
batty telemetry agents. - Auto
Merge Reason Row - Engineer
Performance Profile Row - Engineer
Throughput Row - Event
Row - Recent events row for
batty telemetry events. - Hourly
Throughput Row - Priority
Cycle Time Row - Review
Metrics Row - Review pipeline metrics aggregated from the events table.
- Session
Summary Row - Summary row for
batty telemetry summary. - Task
Cycle Time Row - Task
Metrics Row - Task metrics row for
batty telemetry tasks.
Functions§
- insert_
event - Insert a raw event into the events table. Also updates derived metrics.
- open
- Open or create the telemetry database, initializing the schema.
- query_
agent_ metrics - query_
average_ cycle_ time_ by_ priority - query_
engineer_ performance_ profiles - query_
engineer_ throughput - query_
hourly_ throughput - query_
merge_ queue_ depth - query_
recent_ events - query_
review_ metrics - Query aggregated review pipeline metrics from the events table.
- query_
session_ summaries - query_
task_ cycle_ times - query_
task_ metrics - record_
agent_ poll_ state - Record an agent’s poll state (idle or working) and accumulate cycle time.
- record_
test_ results - replace_
task_ cycle_ times