You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat(review): show security badge whenever security review is enabled (#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>
* fix(review-depth): use kimi-k2.6 for shallow preset (#91)
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>
---------
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
@@ -262,7 +262,7 @@ The `review_depth` input controls which model and reasoning effort are used for
262
262
263
263
> **Tip:** Setting `review_model` or `reasoning_effort` explicitly always takes priority over the depth preset. You can mix and match -- for example, use `review_depth: shallow` but override just `reasoning_effort: high` to get the shallow model with higher reasoning.
264
264
265
-
The default models (`gpt-5.2` for `deep`, `kimi-k2-0711` for `shallow`) are managed by Factory and may change over time. To pin a specific model regardless of the depth preset, set `review_model` to any model ID supported by `droid exec --model`. A few common choices:
265
+
The default models (`gpt-5.2` for `deep`, `kimi-k2.6` for `shallow`) are managed by Factory and may change over time. To pin a specific model regardless of the depth preset, set `review_model` to any model ID supported by `droid exec --model`. A few common choices:
Copy file name to clipboardExpand all lines: action.yml
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -92,7 +92,7 @@ inputs:
92
92
required: false
93
93
default: "7"
94
94
review_depth:
95
-
description: "Review depth preset: 'shallow' (fast, uses kimi-k2-0711) or 'deep' (thorough, uses gpt-5.2 with high reasoning). Defaults to deep. Setting review_model or reasoning_effort explicitly overrides the preset values."
95
+
description: "Review depth preset: 'shallow' (fast, uses kimi-k2.6) or 'deep' (thorough, uses gpt-5.2 with high reasoning). Defaults to deep. Setting review_model or reasoning_effort explicitly overrides the preset values."
Copy file name to clipboardExpand all lines: review/action.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ inputs:
13
13
description: "ID of the tracking comment to update"
14
14
required: true
15
15
review_depth:
16
-
description: "Review depth preset: 'shallow' (fast, uses kimi-k2-0711) or 'deep' (thorough, uses gpt-5.2 with high reasoning). Defaults to deep. Setting review_model or reasoning_effort explicitly overrides the preset values."
16
+
description: "Review depth preset: 'shallow' (fast, uses kimi-k2.6) or 'deep' (thorough, uses gpt-5.2 with high reasoning). Defaults to deep. Setting review_model or reasoning_effort explicitly overrides the preset values."
Copy file name to clipboardExpand all lines: src/create-prompt/templates/review-validator-prompt.ts
-1Lines changed: 0 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -126,7 +126,6 @@ After writing \`${reviewValidatedPath}\`, post comments ONLY for \`status === "a
126
126
* Do **NOT** post comments individually — batch them all into one \`submit_review\` call.
127
127
* Do **NOT** include a \`body\` parameter in \`submit_review\`.
128
128
* Use \`github_comment___update_droid_comment\` to update the tracking comment with the review summary.
129
-
* If any approved comments contain \`[security]\` in their body, prepend a security badge to the tracking comment: \`\`. This indicates that security analysis was performed as part of the review.
130
129
* Do **NOT** post the summary as a separate comment or as the body of \`submit_review\`.
0 commit comments