In August, the cost panel on my AI usage dashboard showed 12 records and an estimated $13.5935. On the same page, the “last valid data event” field said the timestamp was missing. The dashboard had counted the records. How could it have no date for the newest one? The original bug report and fix (PR #4)
Follow the records each panel reads
The dashboard is part of agent-metrics-harvester , an open-source tool that collects usage records from GitHub pull request comments. It stores them in snapshots. The 12 in the cost panel counted the individual records inside snapshots from three collection runs.
The cost calculation walked those snapshots and counted their records. The freshness calculation took a different route. It looked for a generation timestamp in two kinds of aggregate data: summaries of how usage had been assigned to tasks, and records comparing predictions with actual results. If both lists were empty, the timestamp came back null .…