chore(agents): add milestone-based PR prioritization to ca-continuous-pr-reviewer #10835

Merged
HAL9000 merged 4 commits from feature/m3111-milestone-based-pr-prioritization into master 2026-06-06 16:10:32 +00:00

4 Commits

Author SHA1 Message Date
HAL9000 eba9c488a9 ci: retrigger CI pipeline
CI / lint (pull_request) Successful in 39s
CI / quality (pull_request) Successful in 1m0s
CI / build (pull_request) Successful in 37s
CI / typecheck (pull_request) Successful in 1m22s
CI / security (pull_request) Successful in 1m20s
CI / helm (pull_request) Successful in 48s
CI / push-validation (pull_request) Successful in 25s
CI / unit_tests (pull_request) Successful in 5m18s
CI / docker (pull_request) Successful in 1m45s
CI / integration_tests (pull_request) Successful in 9m49s
CI / coverage (pull_request) Successful in 11m4s
CI / status-check (pull_request) Successful in 3s
Previous CI run had transient docker failure:
- docker: Failing after 1s (Docker daemon startup failure - infrastructure issue)

All quality gates pass locally (lint, typecheck, unit_tests).
Code is unchanged from the previous passing run.

ISSUES CLOSED: #3111
2026-06-06 11:52:49 -04:00
HAL9000 89fc0724df format: reformat ca_continuous_pr_reviewer_steps.py to pass ruff format check
CI lint job runs both ruff check and ruff format --check. The step
definitions file for ca-continuous-pr-reviewer feature needed
reformatting to satisfy the format check gate.

ISSUES CLOSED: #3111
2026-06-06 11:52:49 -04:00
HAL9000 b1140b073d fix(tests): add missing Behave step definitions for ca-continuous-pr-reviewer feature
Add features/steps/ca_continuous_pr_reviewer_steps.py with step definitions for all scenarios in ca_continuous_pr_reviewer.feature. The feature file was added in the original PR but the corresponding step definitions file was missing, causing unit_tests CI gate to fail with undefined step errors.

The step definitions implement and test the milestone-based PR prioritization algorithm from the agent spec:
  priority_score = (milestone_weight * 1000) + (moscow_weight * 100) + (age_weight)

Scenarios covered:
- Prioritize PRs by milestone due date (earlier = higher priority)
- Prioritize by MoSCoW labels within same milestone (Must Have > Should Have > Could Have)
- Use PR age as tie-breaker for same milestone and MoSCoW label (older = higher priority)
2026-06-06 11:52:49 -04:00
HAL9000 bf75791751 chore(agents): add milestone-based PR prioritization to ca-continuous-pr-reviewer
Added new continuous PR reviewer agent (ca-continuous-pr-reviewer) that prioritizes
pull requests based on their associated milestone. The agent:

- Fetches all milestones and open PRs
- Assigns priority scores based on milestone due date, MoSCoW labels, and PR age
- Sorts PRs by priority score (descending)
- Reviews PRs in milestone order, ensuring critical path items are reviewed first

Added comprehensive BDD feature tests for milestone-based prioritization scenarios:
- Prioritize PRs by milestone due date
- Prioritize by MoSCoW labels within milestone
- Use PR age as tie-breaker for same milestone/label

ISSUES CLOSED: #3111
2026-06-06 11:52:49 -04:00