refactor: extract strategy classes from engine, fix_pipeline, and result_handler (fixes #518)#527
Open
refactor: extract strategy classes from engine, fix_pipeline, and result_handler (fixes #518)#527
Conversation
…ult_handler (fixes #518) Extract collaborator classes from the three largest files: - BlockDecision/evaluate_review_blocking → engine/blocking.py - SerialDispatcher/ParallelDispatcher → engine/dispatch.py - CoderReviewerLoop → nightshift/coder_reviewer.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Extract collaborator classes from the three largest files in the codebase to improve readability and testability:
BlockDecision/evaluate_review_blocking→engine/blocking.py(result_handler.py: 793 → 590 lines, −26%)SerialDispatcher/ParallelDispatcher→engine/dispatch.py(engine.py: 2051 → 1817 lines, −11%)CoderReviewerLoop→nightshift/coder_reviewer.py(fix_pipeline.py: 1237 → 980 lines, −21%)Closes #518
Changes
agent_fox/engine/blocking.pyagent_fox/engine/dispatch.pyagent_fox/nightshift/coder_reviewer.pyagent_fox/engine/result_handler.pyagent_fox/engine/engine.pyagent_fox/nightshift/fix_pipeline.pyTests
Verification
Auto-generated by
af-fix.