Skip to content

Mute issue trigger notifications on every reset - #116

Merged
leggetter merged 2 commits into
mainfrom
mute-issue-trigger-email
Nov 6, 2026
Merged

leggetter merged 2 commits into
mainfrom
mute-issue-trigger-email

Conversation

@leggetter

@leggetter leggetter commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

The evals-ci project's default issue triggers email the team, and scenarios fail deliveries, requests and transformations on purpose. So every run has emailed people about failures we caused, since at least 21 August.

What changes

  • muteIssueTriggerNotifications(client) sets channels: {} on every issue trigger that is not already an empty object, including null or missing channels, which still email. Triggers stay enabled and scoped, so issues still open; nobody is notified.
  • FixedProjectSource calls it on acquire and on release. A failure warns rather than throws.
  • The ProjectSource interface says any source that creates or hands out a project must call it.
  • AGENTS.md and README record why, and that a hand-created project has to be muted the same way.

Who the email reached

Every organization member who has not turned alerts off (admins, owners and project members only, for a private project), and only while the project's notification methods include email. That project setting would be the cleaner switch, since it leaves the triggers untouched, but it is writable only with a dashboard session, not a project API key.

This is an instrument change for alerting-001

No scorer reads issues, and the agent's own work is never muted before it is scored: acquire mutes before the agent runs, release mutes after scoring. But the agent now starts with every existing trigger at channels: {}, which is the silent state that scenario fails an agent for leaving. A default delivery trigger can no longer be passed by confirming it, and an agent that copies its neighbours' shape fails the channel check. Results either side of this change are not comparable for that scenario. #117 covers restoring the default delivery trigger, which the project has not had since 19 August.

Already applied by hand

The three live default triggers on evals-ci (transformation, request, backpressure) were set to channels: {} on 6 November, before this change.

Review

An independent review found nothing blocking. Fixed from it: null channels, the overclaim that no score could move, the recipient wording, a misnamed test, and a missing test for muting when the release reset throws.

Checks

  • pnpm --filter @hookdeck-evals/hookdeck exec vitest run: 62 passed, seven new
  • pnpm typecheck and pnpm -r build: clean

🤖 Generated with Claude Code

A new Hookdeck project's default issue triggers carry an email channel,
which goes to every member of the project. Scenarios fail deliveries,
requests and transformations on purpose, so every run emailed the
evals-ci team about failures we caused.

Acquire and release now set channels: {} on every issue trigger, leaving
each one enabled and scoped as it was. Every trigger rather than only the
snapshot's, because in CI a leaked trigger can be recorded as pristine.
A failed mute warns rather than throws. No scorer reads issues, and
alerting-001 scores the agent's trigger before release, so no score moves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From review of #116. A trigger with null or missing channels still
emails: the notification service falls through to emailing the team, so
skipping it as already muted was wrong. Only an empty object is skipped.

The docs said the mute cannot move a score. It changes what alerting-001
starts from: every existing trigger now reads channels: {}, the silent
state that scenario fails an agent for leaving. Recorded as an instrument
change. Also corrected who the email reaches (organization members with
alerts on, gated by the project's notification methods) and noted that
project setting needs a dashboard session, so the harness cannot use it.

Adds tests for null channels and for muting when the release reset throws.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant