From 0b9e7cf5e993dacffef6f9fd8148ecf9d01fcce4 Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Fri, 20 Nov 2026 08:51:43 +0000 Subject: [PATCH] chore(warden): Remove sdk-review skill Co-Authored-By: johdax <114897+dingsdax@users.noreply.github.com> --- .agents/skills/sdk-review/SKILL.md | 28 ---------------------------- warden.toml | 12 ------------ 2 files changed, 40 deletions(-) delete mode 100644 .agents/skills/sdk-review/SKILL.md diff --git a/.agents/skills/sdk-review/SKILL.md b/.agents/skills/sdk-review/SKILL.md deleted file mode 100644 index c193f6dbdf..0000000000 --- a/.agents/skills/sdk-review/SKILL.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -name: sdk-review -description: "Review sentry-python changes for violations of Sentry SDK contracts: host-app safety, data-collection gates, supported versions, public API, and Python-specific rules." -allowed-tools: Read Grep Glob ---- -Review only the changed code. Report a finding only if you can point to the exact line and show how it breaks a user's app, build or data. Most hunks break no SDK contract, so no findings is the normal result. Generic logic bugs belong to `code-review`; this skill only covers SDK contracts. - -## Core SDK rules (same in every SDK repo) - -1. **Never break the host app** (high). SDK code that can raise, block, or change the user's behavior: exceptions, return values, signatures, job or request flow. -2. **Data collected without its gate** (high). Bodies, headers, cookies, user info, `gen_ai` inputs/outputs or DB results recorded without their data-collection option. Header and cookie names match case-insensitively. Gate on the `data_collection` option keys; don't ask for `send_default_pii` or `should_send_default_pii()` as the gate. Automatically collected header, cookie, query or body values must go through the denylist filter in `sentry_sdk/data_collection.py`; a new path that sends them raw is a finding. Data the user set explicitly (scope, span, `before_send`) is never gated or scrubbed: don't flag reading it back from the scope, but do flag new code that gates or rewrites it. -3. **Supported versions** (high). Language, runtime, target or dependency APIs newer than the repo's declared minimum, used without a guard. Minimums come from `python_requires` and `_MIN_VERSIONS` in `sentry_sdk/integrations/__init__.py`. -4. **Public API** (medium). Breaking public changes without a deprecation path, or internals exposed as public API. - -## Do not report (same in every SDK repo) - -- Style, naming, refactors, or anything the repo's linters, type checkers or analyzers catch. -- Pre-existing code the diff does not change. -- Behavior that matches the spec, Relay or other SDKs, or a trade-off the PR or its threads explain. -- Follow-ups the PR says are handled in a stacked PR or the major branch. -- Tests, samples and examples, unless they can't fail or they teach wrong SDK usage. -- Edge cases that need misuse or very unlikely timing. - -## Python rules - -5. **Missing internal-exception guard** (high). New patch or hook code outside `capture_internal_exceptions()`, or code that reads framework objects that can be missing or `None` (for example an unmatched route). Never wrap the user's own call or provider iterator: its exceptions must still reach the caller. -6. **Brittle monkeypatch** (medium). A patch spells out arguments instead of `*args, **kwargs`, or swallows or re-raises the user's exception differently. -7. **Span or check-in not finished on every path** (medium). Exceptions, early returns, and streams closed early or never consumed. diff --git a/warden.toml b/warden.toml index 7bb0cdfe27..797dc33935 100644 --- a/warden.toml +++ b/warden.toml @@ -49,15 +49,3 @@ paths = [".agents/**", ".claude/**", "**/SKILL.md", "AGENTS.md", "CLAUDE.md", "a [[skills.triggers]] type = "pull_request" actions = ["opened", "synchronize", "reopened"] - -[[skills]] -name = "sdk-review" -paths = ["sentry_sdk/**"] -incremental = true -reportOn = "medium" -failOn = "off" - -[[skills.triggers]] -type = "pull_request" -actions = ["opened", "synchronize", "reopened"] -draft = false