Skip to content

feat: add fme_experiment_alerting resource - #1047

Merged
puthrayaharness merged 2 commits into
harness:mainfrom
MatiasCasaliSplit:fme-experiment-alerting-mcp
Oct 3, 2026
Merged

puthrayaharness merged 2 commits into
harness:mainfrom
MatiasCasaliSplit:fme-experiment-alerting-mcp

Conversation

@MatiasCasaliSplit

Copy link
Copy Markdown
Contributor

WHAT

Adds the fme_experiment_alerting resource with get and update, backed by /fme/api/v4/experiments/{id}/alerting. It is Harness-native only (org_id + project_id).

  • get returns {id, isEnabled}. It reports isEnabled: false when no alert policy exists and only 404s when the experiment doesn't exist.
  • update is a JSON Merge Patch with a required isEnabled boolean. The response is the flattened {id, isEnabled, governance}.
  • Includes tests in tests/registry/feature-flags.test.ts and README updates.

WHY

Lets agents read and toggle whether an experiment is subscribed to significance-regression alerting, alongside the existing fme_experiment, fme_experiment_settings and fme_experiment_result resources.

Testing

  • tests/registry/feature-flags.test.ts passes, as do pnpm build, pnpm standards:check and pnpm docs:check.
  • Full suite: 4 failures in tests/scripts/ip-address-security-lib.test.ts, which fail identically on clean main.
  • Live on QA through the built stdio server: get, update with true and false (persisted), a missing isEnabled rejected, and a 404 for a nonexistent experiment.

🤖 Generated with Claude Code

Adds get/update for an experiment's alerting subscription, backed by
/fme/api/v4/experiments/{id}/alerting. Harness-native scope only; update is
a JSON Merge Patch with a required isEnabled.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

AI-Session-Id: 374dfc37-c793-4d73-9874-704ef0c9e2be
AI-Tool: claude-code
AI-Model: unknown
Document 400/403 on update and that the degradation threshold is not
editable, drop client-irrelevant implementation notes, fix the stale
buildFmeMergePatch comment, and cover body-key stripping and missing
identifier/scope on update.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

AI-Session-Id: 374dfc37-c793-4d73-9874-704ef0c9e2be
AI-Tool: claude-code
AI-Model: unknown
@puthrayaharness
puthrayaharness merged commit 5b56319 into harness:main Oct 3, 2026
8 checks passed
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.

2 participants