Repository navigation
chore(ai): Add java-sdk-review Warden skill - #6822
Draft
runningcode wants to merge 3 commits into
Draft
runningcode wants to merge 3 commits into
runningcode wants to merge 3 commits into
Conversation
The org code-review skill only reports generic bugs and does not know sentry-java's conventions. java-sdk-review covers the SDK rules that need reading beyond the changed lines: concurrency, test coverage of new behavior, public API surface, Android and ProGuard, and integration lifecycle. It reports at medium and up and never blocks a merge. Verification moves from the defaults onto check-code-attribution, so the new skill keeps Warden's second verification pass. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
PR risk: mediumFor commit The model rated this change low. It was raised to medium because:
This label is a hint for reviewers, not an approval. |
📲 Install BuildsAndroid
|
| # sentry-java conventions and contracts that need reading beyond the changed lines. | ||
| # Rules that a model can check from one file belong in decision-model-linter instead. | ||
| [[skills]] | ||
| name = "java-sdk-review" |
There was a problem hiding this comment.
java-sdk-review path filter excludes published sentry-compose sources
PRs changing only sentry-compose/src/androidMain/** do not trigger java-sdk-review, leaving the shipped Compose integration outside the Android and integration review rules.
Evidence
warden.tomlfilters this skill to**/src/main/**;src/androidMain/**does not match, andwarden-findings.jsonrecords the skill being skipped with reasonpath_filterwhen changed paths do not match.sentry-compose/build.gradle.ktsconfiguresandroidMainas a production source set and applies the multiplatform publishing plugin; its public API is recorded underapi/android.SentryNavigationIntegration.ktis shipped undersrc/androidMainand implements Compose navigation lifecycle integration, which falls within the skill's Android and integration conventions.
Identified by Warden · code-review · E62-9UP
Formatting, unused imports, and banned calls are decided by Spotless, detekt, Error Prone, and Android Lint. A model reviewing them only adds noise. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A backtest on October and November PRs found 1 of 7 test coverage findings worth a comment. Report only behavior shipped with no test at all, fixes without a regression test, uneven sibling modules, and auto-configuration conditions the change adds itself. Co-Authored-By: Claude Opus 5.5 <[email protected]>
runningcode
force-pushed
the
no/java-sdk-review-skill
branch
from
December 1, 2026 14:47
6f16ce8 to
0769693
Compare
This branch has not been deployed
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.
📜 Description
Adds
java-sdk-review, a repo Warden skill that reviews PRs against sentry-java's own conventions and contracts. It only covers rules that need reading beyond the changed lines:volatile, lazy init, lock ordering, executor self-submission, main-thread and init-path cost@ApiStatus, deprecation before removal, opt-in optionsIt reviews
**/src/main/**outside the samples and test-support modules, reports findings atmediumand up, and never blocks a merge.verification.enabled = falsemoves from[defaults]ontocheck-code-attribution. Warden supports this per skill now, so the new skill keeps the second verification pass that filters out false positives.💡 Motivation and Context
The org config runs Warden's
code-reviewon every repo, but that skill only reports generic bugs and knows nothing about the SDK's rules. The rules here come fromREVIEWS.mdand from six months of human review comments on this repo.This is the first of several changes. The goal is that a PR is only ready for human review once automated review has passed. Rules a model can answer from one file go to
decision-model-linterin a follow-up PR.REVIEWS.mdis removed once both are in place.💚 How did you test it?
Parsed
warden.tomland checked it against Warden's config schema.Backtested on 80 PRs merged in October and November, which were not used to write the rules. Each PR was reviewed as it looked at its first review comment. There was no model key, so agents emulated the skill. They found 18 problems: 9 correct, 9 plausible, no false positives. Concurrency, Public API and Integrations were precise (8 of 11 correct). Test coverage was not (1 of 7), so this PR now only reports a missing test in narrow cases.
📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
decision-model-linterwith the rules that work on one file.🤖 Generated with Claude Code
#skip-changelog