Commit Graph

22 Commits

Author SHA1 Message Date
gemini-cli[bot]
4dde5ac077 ## Description
This PR addresses systemic visibility gaps and backlog growth by uncapping metric reporting and accelerating the issue lifecycle.

### Key Changes

1.  **Metric Uncapping**: Refactored `bottlenecks.ts` and `priority_distribution.ts` to use GraphQL Search `totalCount`. This bypasses the previous 1000-issue cap, providing accurate visibility into the true scale of the 2062-issue backlog and 540+ zombie issues.
2.  **Lifecycle Acceleration**: Lowered `STALE_DAYS` to 30 and `CLOSE_DAYS`/`NO_RESPONSE_DAYS` to 7 in `gemini-lifecycle-manager.cjs`. This move is necessary to clear the aging backlog and address the spike in zombie issues (issues inactive for >30d).
3.  **CI Cost Optimization**: Restricted the Mac CI matrix to Node 20.x for all events. Since Linux runners already provide coverage for Node 22.x and 24.x, this change significantly reduces spend on expensive Mac runners without compromising quality.

### Impact

- **Accuracy**: Metrics now reflect the full repository state rather than a 1000-item sample.
- **Productivity**: Faster issue rotation will help maintainers focus on active community needs.
- **Efficiency**: Estimated ~30% reduction in Actions spend by optimizing the Mac test matrix.
2026-05-06 21:37:44 +00:00
Christian Gunderman
7191d71711 fix(bot): improve diagnostic rigor and context awareness
- Mandate the use of `gh run view` for empirical log verification rather than static code inspection.
- Update interactive mode prompt to allow the agent to retain task context and run the unblocking protocol when following up on its own PRs.
2026-05-05 14:23:33 -07:00
Christian Gunderman
0c4ac593eb fix(bot): break pigeonholing by syncing lessons-learned and optimizing CI
This update resolves the bot's persistent focus on already-completed tasks:
- Moves and syncs lessons-learned.md to tools/gemini-cli-bot/ to ensure persistent memory.
- Marks metrics fixes, prompt hardenings, and user rejection signals as DONE in the ledger.
- Implements the CI matrix optimization (Node 20.x for PRs) the bot was re-attempting.
- This forces the bot to rotate to a new domain in the next run by satisfying its current goals.
2026-05-05 09:01:14 -07:00
Christian Gunderman
8572e60f9c fix(bot): implement pagination for metric scripts to avoid GraphQL limit 2026-05-05 08:43:16 -07:00
Christian Gunderman
daba5229ec feat(bot): enforce local validation, uncap metrics, and enhance PR feedback loops
This update hardens the bot's reasoning and validation layers to stop thrashing and ensure technical quality:
- Mandates local validation (lint, build, test) in Brain and Critique prompts.
- Uncaps bottleneck metrics (zombie issues, priority distribution) to 1000 items.
- Enhances PR awareness to handle multiple bot identities and exclude release PRs.
- Formally defines closed (unmerged) PRs as explicit user rejection signals.
- Strengthens domain rotation and anti-pigeonholing enforcement.
2026-05-05 08:34:01 -07:00
Christian Gunderman
ec786aeaa8 docs(bot): mandate strict domain rotation to stop workflow thrashing 2026-05-04 19:50:44 -07:00
Christian Gunderman
76c97bfcc0 Merge branch 'main' into bot-prompt-improvements 2026-05-04 19:31:49 -07:00
Christian Gunderman
cd8bfce192 docs(bot): prevent pigeonholing and thrashing in metrics agent 2026-05-04 17:37:15 -07:00
Christian Gunderman
f87072f4e3 feat(bot): add actions spend metric script (#26463) 2026-05-04 21:01:39 +00:00
Christian Gunderman
1b021bddab test(critique): improve prompt robustness for scale and rate limits 2026-05-01 15:45:58 -07:00
Christian Gunderman
39de9586a0 feat(bot): increase loop iterations and enforce memory of failures 2026-05-01 14:37:19 -07:00
Christian Gunderman
393d72ac52 fix(bot): enforce defensive scripting and preservation of exemptions 2026-05-01 14:34:50 -07:00
Christian Gunderman
c18ae0c382 fix(bot): forbid metrics changes and require policy changes only 2026-05-01 14:12:56 -07:00
gemini-cli[bot]
381aae25b2 ## Description
Fixes the throughput metrics script and introduces new visibility into backlog bottlenecks and priority distribution.

### Changes
- **Throughput Fixes**: Resolved a `ReferenceError` where `isMaintainer` was not correctly scoped, fixed a malformed license header, and added a new metric for `issue_arrival_rate_per_day` to enable growth-vs-closure analysis.
- **Backlog Bottlenecks**: Introduced `bottlenecks.ts` to identify "Zombie" issues (no activity > 30 days) and "Hot" issues (high activity).
- **Priority Distribution**: Introduced `priority_distribution.ts` to track the count of open issues by priority level (P0-P3).

### Impact
These metrics will provide the necessary data to confirm if the repository is experiencing systemic backlog growth (Arrival Rate > Throughput) and help identify which segments of the backlog require urgent triage.
2026-05-01 13:52:35 -07:00
gemini-cli[bot]
363854172f Metrics updates (#26348)
Co-authored-by: gemini-cli[bot] <gemini-cli[bot]@users.noreply.github.com>
2026-05-01 19:20:02 +00:00
Christian Gunderman
c6121d5113 feat(bot): enforce evaluation role and multi-iteration feedback loop 2026-04-30 20:51:27 -07: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
0af13141b2 Fix posting invalid response to a comment (#26266) 2026-04-30 18:22:59 +00:00
Christian Gunderman
1834ad0298 fix(bot): productivity and backlog optimizations (#26236) 2026-04-29 23:18:22 +00:00
Christian Gunderman
6dec6720de Add the ability to @ mention the gemini robot. (#26207)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2026-04-29 18:46:33 +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