ci: add current-attention triage radar
Merged
TE
2mo ago+709+709+012345678901234567890123456789-1-1-0123456789
Summary
- Add a deterministic Triage Radar for the current-attention view proposed in #13511.
- Read recent GitHub issues plus green/approved PR metadata and surface clusters, severe/regression candidates, high-attention reports, and near-finish PR candidates.
- Refresh only the generated section of #13512 every six hours or on manual dispatch; preserve human-authored text around it.
- Keep V1 dependency-free: standard-library Python, the normal GitHub token, no new external service or model secret.
- Fail closed if the configured target issue is missing the
[Triage Radar]title prefix or generated-section markers.
Testing
python3 -m unittest tests.test_triage_radar -v- Synthetic cluster fixture uses the current #13499/#13505/#13506/#13507/#13508 reorder burst and verifies that all five collapse into one cluster.
- Unrelated reports carrying the same release number stay separate.
- Coverage verifies NIGHTLY regression weighting, generated-section preservation, marker-injection escaping, duplicate suppression across sections, and target-issue safety.
Demo Video
N/A — GitHub workflow / issue feed only.
Review Trigger (Copy/Paste as PR comment)
@codex review
@coderabbitai review
@greptile-apps review
@cubic-dev-ai review
Checklist
- I tested the change locally
- I added tests for the new behavior
- No product changelog/docs update is needed for this internal devex workflow
- Bot reviews requested after latest commit
- All code review bot comments are resolved
- All human review comments are resolved
Refs #13511.
Radar issue: #13512.
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.
Summary by cubic
Adds a scheduled triage radar that deterministically summarizes recent GitHub activity into a categorized feed, refreshed every six hours or on manual dispatch.
- Reads open issues from the last 72 hours and open, approved, successful-status PRs from the last 168 hours.
- Clusters related reports by shared title terms, requiring a strong failure-signal term so broad product-area terms, release numbers, or reject-only wording alone don't merge unrelated reports.
- Flags regression/severe candidates only for bug-labeled issues; confirmed NIGHTLY reproductions are weighted up and fixed-on-NIGHTLY reports down, so meta issues that merely catalog failure terms aren't flagged.
- Surfaces high-attention issues and lists near-finish PRs.
- Rewrites only the generated section between HTML markers, preserving human-authored text around it. Fails closed if the target issue is missing the
[Triage Radar]title prefix or the markers. - Uses only standard-library Python and the normal GitHub token; no new external services or secrets.
- Fixes a fingerprint test fixture to read the macOS workflow instead of the CI workflow.
Summary by CodeRabbit
-
New Features
- Added an automated triage radar that periodically updates a designated issue with prioritized open issues, likely regressions, relevant pull requests, and high-attention reports.
- Related issue reports are grouped into clusters to make recurring problems easier to identify.
- Triage radar updates can run automatically on a schedule or be triggered manually.
-
Bug Fixes
- Added safeguards to prevent malformed or unchanged content from overwriting the radar issue.
- Improved handling of issue signals such as severity indicators, regression evidence, labels, and community activity.