Commit Graph

4 Commits

Author SHA1 Message Date
Daniel Griesser fb398fdfff fix(skill-drift): remove add_reviewer step that fails on scheduled runs (#116)
The Weekly SDK Skill Drift Detector workflow runs on a `schedule:`
trigger, so there is no `pull_request` context. The agent's `add_reviewer`
safe output therefore failed every run with:

    add_reviewer: No pull_request_number provided and not in pull request context

turning the job red even when the PR and issues were created successfully
(see run https://github.com/getsentry/sentry-for-ai/actions/runs/25321035855).

The step was also redundant: `.github/workflows/skill-drift-assign-reviewers.yml`
already maps changed `skills/sentry-*-sdk/**` paths to the correct team and
requests review per skill (more granular than the agent's union-of-teams call).

Changes:
- Drop `add-reviewer:` from the `safe-outputs:` block.
- Remove Step 4a item 5 telling the agent to call `add_reviewer`.
- Add a short note pointing the agent at the dedicated reviewer-assignment
  workflow so it knows not to try to assign reviewers itself.
- Recompile `skill-drift-check.lock.yml` with gh-aw v0.71.1 (was v0.67.1) so
  CI uses the latest compiler and pinned actions.

Note: the assign-reviewers workflow does not currently fire for these PRs
because gh-aw opens them with `GITHUB_TOKEN`, which by design does not
trigger downstream `pull_request` events. That is a separate issue and is
not addressed here.

Co-authored-by: Claude <noreply@anthropic.com>
2026-05-04 21:35:33 +02:00
Daniel Griesser 72aadac7a1 chore(ci): upgrade gh-aw from v0.64.2 to v0.67.1
Recompile the skill-drift-check workflow with the latest gh-aw CLI.

Key upgrades:
- gh-aw: v0.64.2 → v0.67.1
- AWF (firewall): v0.25.1 → v0.25.13
- MCP Gateway: v0.2.6 → v0.2.14

The previous run (#24033021813) failed because the apiKeyHelper script
was not accessible inside the AWF chroot jail, causing Claude Code to
immediately fail with 'authentication_failed'. The newer AWF version
includes 12 patch releases that address container/chroot reliability.

Closes #91
2026-04-09 09:52:28 +02:00
Daniel Griesser 0c842c1eff feat: skill drift workflow opens PRs with fixes and assigns SDK teams (#82)
Extend the weekly skill-drift-check workflow to directly fix straightforward
drift by opening PRs instead of only creating issues. The agent now:

- Prefers opening PRs for mechanical changes (new config options, version
  bumps, new integration entries) with the fix applied inline
- Falls back to issues for complex/risky drift (breaking API removals,
  ambiguous behavior, coordinated rewrites)
- Uses add_reviewer to assign the appropriate SDK team (from the mapping
  table) as reviewer on each PR
- PRs are opened as ready-for-review (not draft) with auto-labels and
  14-day expiry

Frontmatter changes:
- Added create-pull-request safe output (max 10, non-draft, protected
  supply-chain files fall back to issues)
- Added add-reviewer safe output restricted to the 5 SDK team slugs
- Recompiled lock.yml with gh-aw v0.64.2 (was v0.55.0)

Co-authored-by: Claude Sonnet 4 <noreply@anthropic.com>
2026-03-27 15:15:57 +01:00
Daniel Griesser ff5353e170 feat: add weekly SDK skill drift detector (#37)
* feat: add weekly SDK skill drift detector agentic workflow

Adds a GitHub Agentic Workflow that runs weekly (Monday) using Claude
to detect when SDK skill files have fallen behind changes in Sentry
SDK repos. Monitors all 15 SDK skills across 10 GitHub repos, with
smart monorepo path filtering for sentry-javascript.

When drift is detected (new config options, deprecated APIs, new
framework integrations, feature changes, version bumps, or breaking
changes), it creates labeled issues in this repo with specific
gaps and links to the relevant PRs and skill files.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* chore: remove design doc from PR

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 21:55:51 +01:00