Commit Graph

4 Commits

Author SHA1 Message Date
gemini-cli[bot] 6ec068c2ab # Description
Fix Metrics History Retention & Accuracy

This PR addresses several issues identified in the repository's metrics collection and analysis pipeline:

1.  **Increased History Retention**: Increased the rolling window in `metrics/index.ts` from 100 rows to 5000 rows. The previous limit was too small (holding only ~1.5 runs of data), which prevented meaningful delta calculations.
2.  **Restored Backlog Age Metric**: Re-introduced `backlog_age.ts` to calculate the average age of the oldest 100 open issues. This provides visibility into backlog stagnation.
3.  **Enhanced Throughput Accuracy**: Updated `throughput.ts` to distinguish between items **authored** by maintainers and items **processed** (merged/closed) by maintainers. This gives a more accurate measure of maintainer velocity.
4.  **Added Bottleneck Analysis**: Introduced `bottlenecks.ts` to sample open PRs and identify if they are likely waiting on a maintainer review or an author's response.

These changes will significantly improve the "Brain's" ability to identify trends and bottlenecks in the repository workflow.

# Impact
- More accurate 7-day and 30-day deltas for all metrics.
- Better visibility into maintainer workload and backlog health.
- Data-driven identification of whether bottlenecks are due to maintainer capacity or author responsiveness.
2026-05-01 18:51:31 +00:00
gemini-cli[bot] caa0466416 # Metrics Integrity & Standardized Reporting (BT-01) (#26240)
Co-authored-by: gemini-cli[bot] <gemini-cli[bot]@users.noreply.github.com>
Co-authored-by: Christian Gunderman <gundermanc@google.com>
2026-04-30 23:11:39 +00:00
Christian Gunderman 58a57b72ae Implement bot that performs time-series metric analysis and suggests repo management improvements (#25945) 2026-04-28 16:49:53 +00:00
Christian Gunderman c4b38a5aef feat(repo): add gemini-cli-bot metrics and workflows (#25888) 2026-04-24 17:16:20 +00:00