Skip to content

Merge dev into main#92

Merged
factory-nizar merged 2 commits into
mainfrom
dev
Jun 2, 2026
Merged

Merge dev into main#92
factory-nizar merged 2 commits into
mainfrom
dev

Conversation

@factory-nizar

Copy link
Copy Markdown
Contributor

No description provided.

factory-nizar and others added 2 commits May 1, 2026 10:57
…#84)

The security shield badge previously only appeared when the validator
approved at least one [security]-tagged comment. That conflated
'security review found issues' with 'security review ran', and meant
clean PRs gave no positive signal that the security pass had executed.

Move the badge prepending out of the validator prompt and into the
post-execution update-comment-link step so it is added deterministically
whenever automatic_security_review=true. The badge now means 'security
review was performed', regardless of whether any findings exist.

- updateCommentBody accepts securityReviewRan and prepends the shield
  badge (with a guard against double-prepending if an earlier step
  already added it)
- update-comment-link.ts reads AUTOMATIC_SECURITY_REVIEW from env
- action.yml passes inputs.automatic_security_review through to the
  post-step
- review-validator-prompt no longer instructs the LLM to prepend the
  badge (removes a discretionary, findings-gated path)

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
The shallow depth preset pointed at "kimi-k2-0711", which is a stale
identifier the public Droid CLI no longer recognizes (verified on a
GitLab pipeline: `Invalid model: kimi-k2-0711`). The deep preset
("gpt-5.2") works fine; only shallow was broken. Anyone passing
review_depth=shallow today would silently hit this error.

Per `droid exec --model <invalid>` the current valid Kimi K2 model
IDs are `kimi-k2.6` (newest) and `kimi-k2.5`. Switch the preset to
`kimi-k2.6` which preserves the original design intent: a fast,
cheap Kimi K2 model for quick shallow reviews. Explicit `review_model`
override still wins via `resolveReviewConfig`.

Updated:
- src/utils/review-depth.ts: SHALLOW_DEFAULTS.model
- action.yml + review/action.yml: input descriptions
- README.md: presets table + reference in review_model docs

All 377 tests pass.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
@factory-nizar factory-nizar merged commit 8ffd7a2 into main Jun 2, 2026
2 checks passed
@factory-droid

factory-droid Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

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


Security Review

@Factory-AI Factory-AI deleted a comment from factory-droid Bot Jun 2, 2026
factory-nizar added a commit that referenced this pull request Jun 4, 2026
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