Skip to content

feat(warden): Default to incremental review - #235

Merged
Jeffreyhung merged 1 commit into
mainfrom
warden-incremental-default
Nov 24, 2026
Merged

Jeffreyhung merged 1 commit into
mainfrom
warden-incremental-default

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Turns on incremental = true in the org Warden [defaults], so a skill only re-reviews hunks that changed since its last clean run on the PR. incrementalApp = "sentry-warden" was already set, so baselines come only from the Warden app's checks.

security-review and integrity-review set incremental = false and keep re-reviewing every hunk on every push. That leaves code-review as the only org skill that goes incremental.

Open decision: Warden does not pass defaults.incremental from the base config down to repo-defined skills (inheritRepoLayerDefaults in getsentry/warden packages/warden/src/config/loader.ts only inherits incrementalApp). So skills a repo defines in its own warden.toml keep full review unless that repo opts in. Making repos inherit this default needs a change in Warden.

via @Jeffreyhung.

--

View Session [Sentry]

Turn on incremental review in the org defaults so skills only re-review
hunks changed since their last clean run on a PR. Keep security-review
and integrity-review on full re-review for every push.

Co-Authored-By: Jeffrey Hung <17494876+Jeffreyhung@users.noreply.github.com>
Jeffreyhung added a commit to getsentry/warden that referenced this pull request Nov 24, 2026
Skills defined in a repo's `warden.toml` now inherit
`defaults.incremental` from the base config. Before,
`inheritRepoLayerDefaults` only passed down `incrementalApp`, so turning
on incremental in the org config (getsentry/.github#235) only affected
org-defined skills.

A repo still controls its own skills: its own `[defaults] incremental`,
or `incremental` on a skill or trigger, wins over the base value.
Org-defined skills keep the mode the base config gives them, as before.

Security tradeoff: when the org default is on, a repo-defined
security-sensitive skill also becomes incremental unless that repo sets
`incremental = false`. Baselines are still only trusted from the
`incrementalApp` checks, so this doesn't change which runs can make
Warden skip hunks.

Docs: updated the Incremental Review section of the GitHub workflow
page.

<!-- junior-request-attribution:start -->
via @Jeffreyhung.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:slack%3AC0ACFA5JBDX%3A1795544918.244879 -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/slack%3AC0ACFA5JBDX%3A1795544918.244879)
[[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0ACFA5JBDX%3A1795544918.244879/?project=4510944073809921)

<!-- junior-session-footer:end -->

---------

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Jeffrey Hung <17494876+Jeffreyhung@users.noreply.github.com>
Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
@Jeffreyhung
Jeffreyhung marked this pull request as ready for review November 24, 2026 19:12
@Jeffreyhung
Jeffreyhung requested a review from a team as a code owner November 24, 2026 19:12
@sentry-junior
sentry-junior Bot requested a review from Jeffreyhung November 24, 2026 19:12
@Jeffreyhung
Jeffreyhung merged commit f7deb92 into main Nov 24, 2026
11 checks passed
@Jeffreyhung
Jeffreyhung deleted the warden-incremental-default branch November 24, 2026 19:14
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