Skip to content

Fix repair loop for unresolved review threads#153

Merged
hadamrd merged 1 commit into
trunkfrom
fix/review-thread-repair-gate
May 28, 2026
Merged

Fix repair loop for unresolved review threads#153
hadamrd merged 1 commit into
trunkfrom
fix/review-thread-repair-gate

Conversation

@hadamrd
Copy link
Copy Markdown
Owner

@hadamrd hadamrd commented May 28, 2026

Summary

  • fetch GitHub PR review threads via GraphQL and include them in repair prompts
  • select PRs for repair when they have unresolved review threads or dirty merge state, even without the critic:blocking label
  • tighten the repair worker contract so inline review threads must be addressed/resolved

Why

The ci-decision-plane loop left five PRs idle because unresolved inline review comments were invisible to forge-loop. gh pr view --comments does not include reviewThreads, while the repair context formatter already expected them.

Tests

  • uv run --extra dev ruff check src/forge_loop/gh.py src/forge_loop/runner/tick.py src/forge_loop/worker.py tests/test_dispatch_axis_filter.py tests/test_gh_review_threads.py
  • uv run --extra dev pytest tests/test_gh_review_threads.py tests/test_dispatch_axis_filter.py tests/test_worker.py -q
  • git diff --check

Full uv run --extra dev pytest -q currently has unrelated pre-existing isolation/config failures in CLI/runner tests; the targeted repair surface is green.

@hadamrd hadamrd merged commit 53e50d5 into trunk May 28, 2026
2 checks passed
@hadamrd hadamrd deleted the fix/review-thread-repair-gate branch May 28, 2026 23:46
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