feat: Priority Rebalancer — re-score issues from pipeline data (#174) #189

Closed
Rockachopa wants to merge 0 commits from burn/174-1776263883 into main
Owner

What

Monthly pipeline tool that re-evaluates issue priorities based on accumulated fleet data.

How it works

  1. Collects signals from pipeline outputs:

    • Knowledge store: staleness, coverage gaps, missing facts
    • Metrics: pipeline health
    • Staleness checker output
  2. Scores every open issue across the org using:

    • Pipeline signal alignment (does the issue address an active gap?)
    • Age + activity (dormant vs discussed)
    • Assignment status
    • Keyword/label analysis (security, bug, blocker, etc.)
  3. Outputs:

    • metrics/priority_report.json — full analysis
    • metrics/priority_suggestions.md — human-readable suggestions
    • Optional --apply to push changes via Gitea API with explanatory comments

Usage

# Analyze all repos
python3 scripts/priority_rebalancer.py --org Timmy_Foundation

# Single repo
python3 scripts/priority_rebalancer.py --org Timmy_Foundation --repo compounding-intelligence

# Dry run (show what would change)
python3 scripts/priority_rebalancer.py --org Timmy_Foundation --dry-run

# Apply changes
python3 scripts/priority_rebalancer.py --org Timmy_Foundation --apply

# JSON output
python3 scripts/priority_rebalancer.py --org Timmy_Foundation --json

Tests

23 tests, all passing. Covers: priority extraction, issue scoring, signal collection, report generation.

Closes #174

## What Monthly pipeline tool that re-evaluates issue priorities based on accumulated fleet data. ## How it works 1. **Collects signals** from pipeline outputs: - Knowledge store: staleness, coverage gaps, missing facts - Metrics: pipeline health - Staleness checker output 2. **Scores every open issue** across the org using: - Pipeline signal alignment (does the issue address an active gap?) - Age + activity (dormant vs discussed) - Assignment status - Keyword/label analysis (security, bug, blocker, etc.) 3. **Outputs**: - `metrics/priority_report.json` — full analysis - `metrics/priority_suggestions.md` — human-readable suggestions - Optional `--apply` to push changes via Gitea API with explanatory comments ## Usage ```bash # Analyze all repos python3 scripts/priority_rebalancer.py --org Timmy_Foundation # Single repo python3 scripts/priority_rebalancer.py --org Timmy_Foundation --repo compounding-intelligence # Dry run (show what would change) python3 scripts/priority_rebalancer.py --org Timmy_Foundation --dry-run # Apply changes python3 scripts/priority_rebalancer.py --org Timmy_Foundation --apply # JSON output python3 scripts/priority_rebalancer.py --org Timmy_Foundation --json ``` ## Tests 23 tests, all passing. Covers: priority extraction, issue scoring, signal collection, report generation. Closes #174
Rockachopa added 1 commit 2026-04-15 14:52:54 +00:00
Monthly pipeline tool that:
- Reads knowledge store, metrics, and staleness data
- Scores all open issues across the org
- Suggests priority upgrades/downgrades based on accumulated signals
- Generates JSON + markdown reports
- Optional --apply mode to push changes via Gitea API

Signals detected:
- Stale/missing knowledge entries
- Empty knowledge store
- Missing metrics output
- Low repo coverage
- Issue age, activity, assignment status
- Keyword/label analysis

Usage:
  python3 scripts/priority_rebalancer.py --org Timmy_Foundation
  python3 scripts/priority_rebalancer.py --org Timmy_Foundation --apply
  python3 scripts/priority_rebalancer.py --org Timmy_Foundation --json

23 tests, all passing.
Timmy approved these changes 2026-04-15 16:33:13 +00:00
Timmy left a comment
Owner

LGTM. Priority rebalancer is well-designed with clear data models (IssueScore, PipelineSignal), Gitea API client, and multi-signal scoring. Supports dry-run and --apply modes. The scoring system combining issue age, comment activity, dependencies, and pipeline signals is reasonable. Approved.

LGTM. Priority rebalancer is well-designed with clear data models (IssueScore, PipelineSignal), Gitea API client, and multi-signal scoring. Supports dry-run and --apply modes. The scoring system combining issue age, comment activity, dependencies, and pipeline signals is reasonable. Approved.
Author
Owner

Closing as this PR cannot be merged (branch protection or conflicts). Please reopen if needed.

Closing as this PR cannot be merged (branch protection or conflicts). Please reopen if needed.
Rockachopa closed this pull request 2026-04-16 01:42:36 +00:00
Author
Owner

Closing as this PR cannot be merged (branch protection or conflicts). Please reopen if needed.

Closing as this PR cannot be merged (branch protection or conflicts). Please reopen if needed.
Author
Owner

Closing: unmergeable due to conflicts or branch protection. Reopen if needed.

Closing: unmergeable due to conflicts or branch protection. Reopen if needed.
Author
Owner

Closing: unmergeable due to conflicts or branch protection. Reopen if needed.

Closing: unmergeable due to conflicts or branch protection. Reopen if needed.
Author
Owner

Closing: unmergeable due to conflicts or branch protection. Reopen if needed.

Closing: unmergeable due to conflicts or branch protection. Reopen if needed.
Rockachopa reopened this pull request 2026-04-16 02:03:32 +00:00
Rockachopa closed this pull request 2026-04-16 02:14:05 +00:00
Rockachopa reopened this pull request 2026-04-16 02:42:08 +00:00
Rockachopa closed this pull request 2026-04-16 02:52:36 +00:00

Pull request closed

Sign in to join this conversation.