Skip to content

feat: add batch fix & implement pipeline script#871

Open
zazabap wants to merge 1 commit intomainfrom
feat/batch-fix-implement
Open

feat: add batch fix & implement pipeline script#871
zazabap wants to merge 1 commit intomainfrom
feat/batch-fix-implement

Conversation

@zazabap
Copy link
Copy Markdown
Collaborator

@zazabap zazabap commented Mar 29, 2026

Summary

New scripts/pipeline_batch.py — orchestrator that triages, fixes, implements, and combines batches of ⚠️ rule issues into a single PR.

4 Stages

  1. Triage — classifies issues as pass/fixable/broken/blocked using keywords from Reduction rule issues tiered implementation priority #770
  2. Fix — spawns Claude agents to fix mechanical issues (edits issue bodies only, no comments)
  3. Implement — parallel worktree agents (up to 6 concurrent) following add-rule skill
  4. Finalize — cherry-picks into one branch, make check, creates single PR

Usage

make run-batch ISSUES="238 381 166 277 363 459 523 472"
make run-batch ISSUES="166 385" JOBS=4
python3 scripts/pipeline_batch.py fix-and-implement --dry-run 277 523  # triage only

Supports resume from any stage via --from-report.

Test plan

4-stage orchestrator: triage → fix → implement → finalize.
Processes batches of ⚠️ rule issues, skips fundamentally broken ones,
fixes mechanical issues, implements in parallel worktrees, and
cherry-picks into a single combined PR.

Usage: make run-batch ISSUES="238 381 166 ..."

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.87%. Comparing base (006d468) to head (c050b2d).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #871   +/-   ##
=======================================
  Coverage   97.87%   97.87%           
=======================================
  Files         631      631           
  Lines       69046    69046           
=======================================
  Hits        67577    67577           
  Misses       1469     1469           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant