Skip to content

Remove single-pass review flow, always use two-pass validator#59

Merged
factory-nizar merged 2 commits intodevfrom
feat/remove-single-pass-review
Mar 5, 2026
Merged

Remove single-pass review flow, always use two-pass validator#59
factory-nizar merged 2 commits intodevfrom
feat/remove-single-pass-review

Conversation

@factory-nizar
Copy link
Contributor

@factory-nizar factory-nizar commented Mar 5, 2026

Summary

Remove the single-pass review flow and the review_use_validator toggle. Code reviews now always use the two-pass validator flow (candidate generation + validation).

closes FAC-16898

Motivation

The single-pass review flow was initially created because we were unsure about the performance of the two-pass validator flow. The two-pass flow has since become the default and proven reliable, and the single-pass flow is no longer used by anyone.

Changes

  • Removed review_use_validator input from action.yml and review/action.yml
  • Removed src/create-prompt/templates/review-prompt.ts (single-pass prompt template)
  • Removed all conditional logic toggling between single-pass and two-pass flows in:
    • src/tag/commands/review.ts
    • src/entrypoints/generate-review-prompt.ts
    • src/entrypoints/prepare-validator.ts
  • Simplified validator step conditions in action YAML files (no longer gated on review_use_validator)
  • Simplified DROID_SUCCESS expression in both action files
  • Updated tests to reflect the always-on validator flow
  • Removed test/create-prompt/templates/review-prompt.test.ts

Breaking Change

Users who explicitly set review_use_validator: false will now have the input silently ignored -- reviews will always use the two-pass flow. This is intentional as the single-pass flow was not actively used.

@factory-droid
Copy link
Contributor

factory-droid bot commented Mar 5, 2026

Droid finished @factory-nizar's task —— View job


The single-pass review flow was initially created because we were unsure
about the performance of the two-pass validator flow. The two-pass flow
has since become the default and proven itself, and the single-pass flow
is no longer used. This removes the review_use_validator toggle and all
single-pass review code.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
@factory-nizar factory-nizar force-pushed the feat/remove-single-pass-review branch from fd891d1 to 15e4fac Compare March 5, 2026 20:37
Copy link
Contributor

@factory-droid factory-droid bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR cleanly removes the single-pass review flow and simplifies all conditional logic to always use the two-pass validator. No actionable bugs were found — the three candidate issues were either pre-existing behaviors unchanged by this PR or test code hygiene concerns that don't cause failures.

…s-review

# Conflicts:
#	src/create-prompt/templates/review-prompt.ts
#	test/create-prompt/templates/review-prompt.test.ts
@factory-nizar factory-nizar merged commit 41f60fa into dev Mar 5, 2026
1 check passed
@factory-nizar factory-nizar deleted the feat/remove-single-pass-review branch March 5, 2026 23:38
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.

2 participants