-
-
Notifications
You must be signed in to change notification settings - Fork 236
chore: update Warden Configuration #5290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,22 +2,28 @@ | |
| # https://github.com/getsentry/warden | ||
| # | ||
| # Warden reviews code using AI-powered skills triggered by GitHub events. | ||
| # Skills live in .agents/skills/ or .claude/skills/ | ||
| # Built-in skills are available by name. Add more skills as needed. | ||
| # | ||
| # Add skills with: warden add <skill-name> | ||
| # Add built-in reviews with: | ||
| # warden add security-review | ||
| # warden add code-review | ||
|
|
||
| version = 1 | ||
|
|
||
| # Default settings inherited by all skills | ||
| [defaults] | ||
| runtime = "pi" | ||
| model = "anthropic/claude-opus-4-5" | ||
| # Severity levels: critical, high, medium, low, info | ||
| # failOn: minimum severity that fails the check | ||
| failOn = "high" | ||
| # reportOn: minimum severity that creates PR annotations | ||
| reportOn = "medium" | ||
|
|
||
| # Skills define what to analyze and when to run | ||
| # Add skills with: warden add <skill-name> | ||
| # Add built-in reviews with: | ||
| # warden add security-review | ||
| # warden add code-review | ||
| # | ||
| # Example skill with path filters and triggers: | ||
| # | ||
|
|
@@ -28,36 +34,46 @@ reportOn = "medium" | |
| # | ||
| # [[skills.triggers]] | ||
| # type = "pull_request" | ||
| # actions = ["opened", "synchronize", "reopened"] | ||
| # actions = ["opened", "synchronize", "reopened", "labeled"] | ||
| # draft = false | ||
| # labels = ["Warden"] | ||
|
|
||
| [[skills]] | ||
| name = "code-review" | ||
| remote = "getsentry/skills" | ||
|
|
||
| [[skills.triggers]] | ||
| type = "pull_request" | ||
| actions = ["opened", "synchronize", "reopened"] | ||
| actions = ["opened", "synchronize", "reopened", "labeled"] | ||
| draft = false | ||
| labels = ["Warden"] | ||
|
Comment on lines
+47
to
+49
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The configuration now requires the "Warden" label for reviews to run, but there's no mechanism to automatically apply this label, potentially disabling reviews on new PRs. Suggested FixAdd a GitHub Actions workflow to automatically apply the "Warden" label to relevant pull requests. Alternatively, revert the Prompt for AI AgentAlso affects:
Did we get this right? 👍 / 👎 to inform future reviews.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not quite correct:
This means that for draft Pull Requests, for which Warden is not run automatically, we still can run Warden when applying the For more information, see the docs at https://warden.sentry.dev/config/triggers |
||
|
|
||
| [[skills]] | ||
| name = "find-bugs" | ||
| remote = "getsentry/skills" | ||
|
|
||
| [[skills.triggers]] | ||
| type = "pull_request" | ||
| actions = ["opened", "synchronize", "reopened"] | ||
| actions = ["opened", "synchronize", "reopened", "labeled"] | ||
| draft = false | ||
| labels = ["Warden"] | ||
|
|
||
| [[skills]] | ||
| name = "gha-security-review" | ||
| remote = "getsentry/skills" | ||
|
|
||
| [[skills.triggers]] | ||
| type = "pull_request" | ||
| actions = ["opened", "synchronize", "reopened"] | ||
| actions = ["opened", "synchronize", "reopened", "labeled"] | ||
| draft = false | ||
| labels = ["Warden"] | ||
|
|
||
| [[skills]] | ||
| name = "security-review" | ||
| remote = "getsentry/skills" | ||
|
|
||
| [[skills.triggers]] | ||
| type = "pull_request" | ||
| actions = ["opened", "synchronize", "reopened"] | ||
| actions = ["opened", "synchronize", "reopened", "labeled"] | ||
| draft = false | ||
| labels = ["Warden"] | ||

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: The model name
anthropic/claude-opus-4-5inwarden.tomlappears to be invalid or deprecated, which will likely cause API calls to fail.Severity: HIGH
Suggested Fix
In
warden.toml, update themodelfrom"anthropic/claude-opus-4-5"to a valid, currently supported model name, such as"anthropic/claude-opus-4-8". Verify the correct model name from the official Anthropic documentation before applying the change.Prompt for AI Agent
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See https://github.com/getsentry/sentry-dotnet/pull/5288/checks?check_run_id=80987232263
The CI error indicates that ...
...
claude-opus-4-5seems to be the (current) default of thepiruntime:But there seems to be a bug with this default: it only declares the model, but missing the provider:
For more information, see the Warden docs:
https://warden.sentry.dev/config/models
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verify via run: https://github.com/getsentry/sentry-dotnet/pull/5290/checks?check_run_id=81447573521
The workflow run now succeeds with this change: