Repository navigation
refactor(review): remove the REVIEW_DEFAULTS config layer - #312
Open
eric-factory wants to merge 1 commit into
Open
eric-factory wants to merge 1 commit into
eric-factory wants to merge 1 commit into
Conversation
REVIEW_DEFAULTS (acd10d4, #305) let Factory set review.yaml keys below a repository's base-branch .factory/review.yaml. Its only caller was Factory's hosted org-wide code review, which set security_block_on_critical and security_block_on_high to false so a security finding would not fail the "Droid Review" check that the install's GitHub ruleset required. The hosted install no longer creates that ruleset, and its caller no longer sets the variable, so nothing uses the layer. resolveReviewUxConfig is back to built-in defaults < base-branch review.yaml < nonempty inputs, and ReviewConfigError drops the source argument and reason field that only the REVIEW_DEFAULTS error used. The README and setup guide no longer describe the layer. The rest of #305 (hosted review reporting like the Actions workflow) is unchanged. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
eric-factory
marked this pull request as ready for review
December 5, 2026 14:08
Contributor
🟢 Looks good to mergeNo issues found in 🔒 Security review: no findings. What changedRemoves the REVIEW_DEFAULTS environment configuration layer and its five test cases, simplifies ReviewConfigError, and updates the documented precedence to built-in defaults, immutable base-branch configuration, then nonempty inputs.
|
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.
Factory Code Review: Web · Desktop
Description
Removes the
REVIEW_DEFAULTSconfig layer that #305 added (commit acd10d4), before it reaches a release.REVIEW_DEFAULTSlet Factory supply review.yaml keys that sit between the built-in defaults and a repository's base-branch.factory/review.yaml. Its only caller was Factory's hosted org-wide code review. That review setsecurity_block_on_criticalandsecurity_block_on_hightofalseso that a security finding would not fail the "Droid Review" check, which the install's GitHub ruleset made required. The hosted install no longer creates that ruleset, and its caller no longer sets the variable, so nothing uses the layer.The rest of #305 (hosted review reporting like the Actions workflow) is unchanged.
Changes
src/core/review/config.tsreviewDefaults()and its spread inresolveReviewUxConfig. The precedence goes back to built-in defaults < base-branch review.yaml < nonempty inputs.ReviewConfigErrordrops thesourceargument andreasonfield, which only theREVIEW_DEFAULTSerror used. (+3 / -24)test/core/review/config.test.tsREVIEW_DEFAULTSdescribe block (5 cases) and theafterEachimport it used. (+1 / -49)README.md,docs/setup.mdREVIEW_DEFAULTSfrom the documented precedence. (+2 / -2)config.ts,config.test.ts, and the edited docs lines now match their state before acd10d4. No action input, workflow, or script ever read the variable.Confirming there is no other caller
git grep -i 'review_defaults|reviewDefaults|review-defaults'on this repo'sdevfinds only the lines removed here.Verification
Run locally with Bun 1.4.5, the version CI uses:
bun run typecheck: passbun run format:check: passbun test: 2787 pass, 1 fail. The failure isreturns original selected paths without exposing them in prompt artifacts(test/github/data/review-artifacts.test.ts). It fails the same way on unmodifieddev, and indev's own CI run for 74950f0 (2792 pass, 1 fail). This PR doesn't touch that code. The 5 fewer tests are the removedREVIEW_DEFAULTScases.