Skip to content

refactor: remove single-pass review mode#62

Open
varin-nair-factory wants to merge 1 commit intodevfrom
vn/remove-single-pass-review
Open

refactor: remove single-pass review mode#62
varin-nair-factory wants to merge 1 commit intodevfrom
vn/remove-single-pass-review

Conversation

@varin-nair-factory
Copy link
Collaborator

Summary

The candidate-validator two-pass review is strictly better than single-pass. This PR removes the review_use_validator flag, the single-pass prompt template, and all associated conditional logic. The validator step now always runs for code reviews.

Changes

  • Removed the review_use_validator, review_candidates_path, and review_validated_path inputs from both action.yml and review/action.yml
  • Simplified src/tag/commands/review.ts and src/entrypoints/generate-review-prompt.ts to always use the candidate-validator two-pass flow
  • Removed the validator guard in src/entrypoints/prepare-validator.ts
  • Made the validator workflow steps unconditional and simplified DROID_SUCCESS expressions
  • Deleted the single-pass prompt template (review-prompt.ts), its test, and the prepare-validator test
  • Updated test assertions to expect the candidate-generation toolset (Task, FetchUrl, no PR mutation tools)

Impact

No functional change for users since review_use_validator already defaulted to true. Net deletion of ~850 lines.

Linear: FAC-16957

The candidate-validator two-pass review is strictly better than single-pass.
Remove the review_use_validator flag, the single-pass prompt template, and
all associated conditional logic. The validator step now always runs for
code reviews.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
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