Skip to content

[3554 by Claude Opus 5.5] Official plugins: Slack (incoming webhook), Discord and Microsoft Teams notifications - #3585

Merged
propr-dev[bot] merged 2 commits into
3542-epic-plugin-system-xu8from
3554/claude-opus-5-5-official-plugins-slack-in-20261116-1345-eyd
Nov 16, 2026
Merged

propr-dev[bot] merged 2 commits into
3542-epic-plugin-system-xu8from
3554/claude-opus-5-5-official-plugins-slack-in-20261116-1345-eyd

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #3554

Branch: 3554/claude-opus-5-5-official-plugins-slack-in-20261116-1345-eyd
Commits: ✅ Changes committed (5a29b96)


AI Processing Completed

Execution Details:

Summary:
I've built the Slack (incoming webhook), Discord and Microsoft Teams notification plugins. They pass plugins:check ("5 plugins checked") and every suite I ran passes. I did not run the full repository suite or the Plugins Playwright specs.

The three plugins (packages/plugins/slack/, discord/, teams/)

  • Events: pull request opened, merged or closed; review scored below the threshold, or at or above it (two separate choices); Ultrafix ended with its outcome; task failed; epic queue blocked or completed.
  • Review threshold: taken from the setting; if that's empty, from the review's own goal; otherwise 80.
  • Destinations: a default webhook URL plus three more. Repository destinations maps owner/repo to webhook-2, webhook-3, webhook-4, or none to post nothing for that repository.
  • Messages: a title, a few facts and links to the pull request, the issue and the task in ProPR. Task links need the new ProPR address setting. Messages use only numbers, identifiers and short coded values; titles and free-text reasons are left out.
  • Format per service: Slack Block Kit, a Discord embed (with mentions turned off), and a Teams Adaptive Card. The wording, destination choice and delivery code is shared in packages/plugins/_shared/.
  • Retries: a 429 is retried after Retry-After (for Discord, also the retry_after value in its response body). Server errors and timeouts are retried on the usual schedule. Any other refusal, or a missing webhook URL, fails the delivery at once with a readable message, e.g. "Slack refused the message to the default webhook with HTTP 404 (no_service); it is not retried…".

Platform change: webhook URLs as secrets
The plugin interface had no way to store a URL as a secret and send to it without the handler seeing it, so I added one:

  • A token connection can now declare secretUrl with allowed hosts and path prefixes. A host can be a wildcard such as *.logic.azure.com.
  • Saving a URL on any other host or path is refused with a message that names the host but never repeats the URL. Once saved, the URL is never shown again.
  • The handler sends to a placeholder, PLUGIN_CONNECTION_URL, and ProPR substitutes the stored URL. Any other URL is refused, no Authorization header is added, and the URL (and its path and query) is removed from responses, logs and errors.
  • The test kit, OpenAPI spec, generated client types and the Plugins page support it. The page labels these fields "Webhook URL" and lists the accepted hosts.

Vendor details I checked

  • Slack: hooks.slack.com (and hooks.slack-gov.com), path /services/.
  • Discord: discord.com and its alternate domains, path /api/webhooks/.
  • Teams: Office 365 connector webhooks were retired in May 2026, so only Workflows URLs are accepted: *.environment.api.powerplatform.com and *.logic.azure.com. Microsoft doesn't publish the exact URL format; the powerplatform host comes from third-party write-ups of its URL migration.

Things to know

  • The three plugins appear on every instance, not only in development.
  • The error responses in the fixtures are hand-written to match each service's documented format. The Teams error codes are modelled on Power Automate's error shape rather than copied from a documented list.
  • A retry can post a message twice if the service accepted it but its answer was lost. None of the three services offers a way to prevent that for webhook posts.

Tests run

  • packages/plugins suites: 44 pass.
  • Core plugin suites: 156 pass, including a new end-to-end test with the real store, ctx.http and dispatcher.
  • Shared suite: 133 pass.
  • Plugins page UI tests: 66 pass.
  • API plugin suites: all four pass. pluginRoutes then hangs at exit until the timeout; this is a known exit hang in this repo's API tests.
  • test/pluginCommandIntake.test.ts: 58 pass, with writable clone paths set because /tmp/git-processor is read-only here.
  • Also passing: test/checkPlugins.test.mjs, the docs build (no broken links), typechecks, and zero-warning lint on the changed files.
  • I also broke the code on purpose so it leaked the Ultrafix reason, and the leak test failed, so that test does catch leaks.

I captured previews of the Slack install step and the Connect step at desktop and phone widths.

Acceptance criteria

  • AC1: met — npm run plugins:check passes ("5 plugins checked"); packages/plugins/{slack,discord,teams}/README.md each have setup steps, a manual smoke-test checklist and links to the vendor docs.
  • AC2: met — packages/plugins/test/chatNotifications.test.ts checks each plugin against fixtures/messages.json and fixtures/responses.json: every selected event produces the fixture request, unselected events produce none, repository destinations (including none and an unknown name) work, a 429 with Retry-After is retried after the delay, and a permanent error fails with a readable message. packages/core/test/pluginChatNotificationPlugins.test.ts shows the real dispatcher waiting exactly the Retry-After delay and failing a 404 at once.
  • AC3: met — the leak test in packages/plugins/test/chatNotifications.test.ts plants marker values (code, logs, prompt text, tool output, free text, a token and the webhook URLs) in every event; none appears in any request, log line, result or error. The core test checks the stored URL never reaches the handler, the response, the result or Activity.
  • AC4: met — docs/docs/plugins/slack.md, discord.md and teams.md, linked from the "Official plugins" table in docs/docs/features/plugins.md and added to docs/sidebars.ts.

Review digest

Acceptance criteria (4 of 4 met, as stated by the agent)

  • ✅ AC1 (met): Each plugin passes `plugins:check` and has a README with setup steps and a manual smoke-test checklist (CI cannot reach the real services). — `npm run plugins:check` passes ("5 plugins checked"); `packages/plugins/{slack,discord,teams}/README.md` each have setup steps, a manual smoke-test checklist and links to the vendor docs.
  • ✅ AC2 (met): Handler tests against hand-written fixtures of each service's payload format: every selected event produces the expected request; unselected events produce none; per-repository destinations work; a 429 with `Retry-After` is retried after the delay; a permanent error marks the delivery failed with a… — `packages/plugins/test/chatNotifications.test.ts` checks each plugin against `fixtures/messages.json` and `fixtures/responses.json`: every selected event produces the fixture request, unselected events produce none, repository destinations (including `none` and an unknown name) work, a 429 with `Re…
  • ✅ AC3 (met): No message contains code, logs, prompt text, tool output or credentials (sentinel test). — the leak test in `packages/plugins/test/chatNotifications.test.ts` plants marker values (code, logs, prompt text, tool output, free text, a token and the webhook URLs) in every event; none appears in any request, log line, result or error. The core test checks the stored URL never reaches the handl…
  • ✅ AC4 (met): Docs: one page per plugin under `docs/docs/plugins/`, linked from `docs/docs/features/plugins.md`. — `docs/docs/plugins/slack.md`, `discord.md` and `teams.md`, linked from the "Official plugins" table in `docs/docs/features/plugins.md` and added to `docs/sidebars.ts`.

Risk-tiered paths

  • High risk: none
  • Normal risk (24 files)
    • packages/api/openapi/schemasPlugins.ts (+5/−1)
    • packages/client/src/generated/apiTypes.ts (+10/−0)
    • packages/core/src/plugins/pluginContext.ts (+8/−5)
    • packages/core/src/plugins/pluginHttp.ts (+60/−13)
    • packages/core/src/plugins/pluginStore.ts (+3/−1)
    • packages/plugins/_shared/chatDelivery.ts (added, +117/−0)
    • packages/plugins/_shared/notifications.ts (added, +187/−0)
    • packages/plugins/discord/format.ts (added, +65/−0)
    • packages/plugins/discord/handlers.ts (added, +11/−0)
    • packages/plugins/discord/icon.svg (added, +1/−0)
    • packages/plugins/discord/manifest.json (added, +186/−0)
    • packages/plugins/registry.json (+3/−0)
    • packages/plugins/slack/format.ts (added, +45/−0)
    • packages/plugins/slack/handlers.ts (added, +11/−0)
    • packages/plugins/slack/icon.svg (added, +1/−0)
    • packages/plugins/slack/manifest.json (added, +174/−0)
    • packages/plugins/teams/format.ts (added, +55/−0)
    • packages/plugins/teams/handlers.ts (added, +11/−0)
    • packages/plugins/teams/icon.svg (added, +1/−0)
    • packages/plugins/teams/manifest.json (added, +178/−0)
    • packages/plugins/testing/index.ts (+29/−5)
    • packages/shared/src/plugins.ts (+52/−1)
    • propr-ui/src/pages/PluginsPage/PluginConnections.tsx (+9/−5)
    • propr-ui/src/pages/PluginsPage/pluginUi.ts (+2/−0)
  • Low risk (24 files)
    • docs/docs/architecture/plugin-runtime.md (+12/−0)
    • docs/docs/features/plugins.md (+36/−1)
    • docs/docs/plugins/discord.md (added, +167/−0)
    • docs/docs/plugins/slack.md (added, +167/−0)
    • docs/docs/plugins/teams.md (added, +179/−0)
    • docs/sidebars.ts (+3/−0)
    • docs/static/openapi/propr-api.yaml (+30/−0)
    • packages/core/test/pluginChatNotificationPlugins.test.ts (added, +180/−0)
    • packages/plugins/discord/README.md (added, +88/−0)
    • packages/plugins/discord/fixtures/messages.json (added, +228/−0)
    • packages/plugins/discord/fixtures/responses.json (added, +18/−0)
    • packages/plugins/slack/README.md (added, +89/−0)
    • packages/plugins/slack/fixtures/messages.json (added, +289/−0)
    • packages/plugins/slack/fixtures/responses.json (added, +10/−0)
    • packages/plugins/teams/README.md (added, +93/−0)
    • packages/plugins/teams/fixtures/messages.json (added, +414/−0)
    • packages/plugins/teams/fixtures/responses.json (added, +13/−0)
    • packages/plugins/test/chatNotifications.test.ts (added, +286/−0)
    • packages/plugins/test/fixtures/chatEvents.ts (added, +32/−0)
    • packages/plugins/test/registry.test.ts (+7/−4)
    • packages/shared/test/plugins.test.ts (+24/−1)
    • propr-ui/src/pages/PluginsPage/PluginWebhookUrlConnections.test.tsx (added, +56/−0)
    • propr-ui/src/pages/PluginsPage/pluginUi.test.ts (+16/−0)
    • test/checkPlugins.test.mjs (+1/−1)

Validation evidence

  • No repository validation commands ran.

Diff size: 48 files changed, +3,662/−38 lines

Detailed Logs:

  • Conversation: 49 messages
  • Session: 30bd7e5f-e44b-4654-b4b5-afba5ce8b3dc

Log files stored at:

  • conversation: /usr/src/app/logs/executions/issue-3554-2026-11-16T14-13-09-399Z-conversation.json
  • output: /usr/src/app/logs/executions/issue-3554-2026-11-16T14-13-09-399Z-output.txt
Latest Conversation Messages
ASSISTANT: [content unavailable]

ASSISTANT: I've built the Slack (incoming webhook), Discord and Microsoft Teams notification plugins. They pass `plugins:check` ("5 plugins checked") and every suite I ran passes. I did not run the full reposito...


This PR was created automatically by ProPR after processing issue #3554.


💡 Need changes?

Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!


Visual preview

Webhook URL connections (desktop)

Webhook URL connections (desktop)

The Connect step of the Slack plugin at 1440 px: four write-only webhook URL connections labelled 'Webhook URL', the stored default URL never shown, and the accepted hosts under each field.

Full-size original

Webhook URL connections (phone)

Webhook URL connections (phone)

The same Connect step at 390 px width.

Full-size original

Slack plugin install step

Slack plugin install step

The Slack plugin before installation: the install step lists the subscribed events and that it posts only to webhook URLs on hooks.slack.com or hooks.slack-gov.com.

Full-size original

…notification plugins. They pass `plugins:check` ("5 plugins checked") and every suite I ran passes. I did not run the full repository suite or the Plugins Playwright specs.

The three plugins (`packages/plugins/slack/`, `discord/`, `teams/`)
- Events: pull request opened, merged or closed; review scored below the threshold, or at or above it (two separate choices); Ultrafix ended with its outcome; task failed; epic queue blocked or completed.
- Review threshold: taken from the setting; if that's empty, from the review's own goal; otherwise 80.
- Destinations: a default webhook URL plus three more. Repository destinations maps `owner/repo` to `webhook-2`, `webhook-3`, `webhook-4`, or `none` to post nothing for that repository.
- Messages: a title, a few facts and links to the pull request, the issue and the task in ProPR. Task links need the new ProPR address setting. Messages use only numbers, identifiers and short coded values; titles and free-text reasons are left out.
- Format per service: Slack Block Kit, a Discord embed (with mentions turned off), and a Teams Adaptive Card. The wording, destination choice and delivery code is shared in `packages/plugins/_shared/`.
- Retries: a 429 is retried after `Retry-After` (for Discord, also the `retry_after` value in its response body). Server errors and timeouts are retried on the usual schedule. Any other refusal, or a missing webhook URL, fails the delivery at once with a readable message, e.g. "Slack refused the message to the default webhook with HTTP 404 (no_service); it is not retried…".

Platform change: webhook URLs as secrets
The plugin interface had no way to store a URL as a secret and send to it without the handler seeing it, so I added one:
- A `token` connection can now declare `secretUrl` with allowed hosts and path prefixes. A host can be a wildcard such as `*.logic.azure.com`.
- Saving a URL on any other host or path is refused with a message that names the host but never repeats the URL. Once saved, the URL is never shown again.
- The handler sends to a placeholder, `PLUGIN_CONNECTION_URL`, and ProPR substitutes the stored URL. Any other URL is refused, no `Authorization` header is added, and the URL (and its path and query) is removed from responses, logs and errors.
- The test kit, OpenAPI spec, generated client types and the Plugins page support it. The page labels these fields "Webhook URL" and lists the accepted hosts.

Vendor details I checked
- Slack: `hooks.slack.com` (and `hooks.slack-gov.com`), path `/services/`.
- Discord: `discord.com` and its alternate domains, path `/api/webhooks/`.
- Teams: Office 365 connector webhooks were retired in May 2026, so only Workflows URLs are accepted: `*.environment.api.powerplatform.com` and `*.logic.azure.com`. Microsoft doesn't publish the exact URL format; the powerplatform host comes from third-party write-ups of its URL migration.

Things to know
- The three plugins appear on every instance, not only in development.
- The error responses in the fixtures are hand-written to match each service's documented format. The Teams error codes are modelled on Power Automate's error shape rather than copied from a documented list.
- A retry can post a message twice if the service accepted it but its answer was lost. None of the three services offers a way to prevent that for webhook posts.

Tests run
- `packages/plugins` suites: 44 pass.
- Core plugin suites: 156 pass, including a new end-to-end test with the real store, `ctx.http` and dispatcher.
- Shared suite: 133 pass.
- Plugins page UI tests: 66 pass.
- API plugin suites: all four pass. `pluginRoutes` then hangs at exit until the timeout; this is a known exit hang in this repo's API tests.
- `test/pluginCommandIntake.test.ts`: 58 pass, with writable clone paths set because `/tmp/git-processor` is read-only here.
- Also passing: `test/checkPlugins.test.mjs`, the docs build (no broken links), typechecks, and zero-warning lint on the changed files.
- I also broke the code on purpose so it leaked the Ultrafix reason, and the leak test failed, so that test does catch leaks.

I captured previews of the Slack install step and the Connect step at desktop and phone widths.

Acceptance criteria
- AC1: met — `npm run plugins:check` passes ("5 plugins checked"); `packages/plugins/{slack,discord,teams}/README.md` each have setup steps, a manual smoke-test checklist and links to the vendor docs.
- AC2: met — `packages/plugins/test/chatNotifications.test.ts` checks each plugin against `fixtures/messages.json` and `fixtures/responses.json`: every selected event produces the fixture request, unselected events produce none, repository destinations (including `none` and an unknown name) work, a 429 with `Retry-After` is retried after the delay, and a permanent error fails with a readable message. `packages/core/test/pluginChatNotificationPlugins.test.ts` shows the real dispatcher waiting exactly the `Retry-After` delay and failing a 404 at once.
- AC3: met — the leak test in `packages/plugins/test/chatNotifications.test.ts` plants marker values (code, logs, prompt text, tool output, free text, a token and the webhook URLs) in every event; none appears in any request, log line, result or error. The core test checks the stored URL never reaches the handler, the response, the result or Activity.
- AC4: met — `docs/docs/plugins/slack.md`, `discord.md` and `teams.md`, linked from the "Official plugins" table in `docs/docs/features/plugins.md` and added to `docs/sidebars.ts`.
@propr-dev

propr-dev Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor Author

/ultrafix goal=8 max=10
Triggered automatically by the requested execution settings.

@propr-dev propr-dev Bot added the ultrafix label Nov 16, 2026
@propr-dev

propr-dev Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor Author

🔄 Ultrafix loop started (goal: 8/10, max cycles: 10)

First action: /review

💡 Tip: Remove the ultrafix label from this PR to stop further ultrafix cycles.

@propr-dev

propr-dev Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR adds three notification plugins with shared event formatting, routing, and delivery, plus secret webhook URL connections. It needs localized changes before merge: credential redaction misses separated URL components, and rounding can select the wrong review notification.

✅ Shared delivery behavior — All three plugins use the same destination resolution and permanent/transient failure handling, including Discord’s body-based retry delay.

✅ Restricted destinations — Stored URLs undergo host/path validation, public-address checks, and installation authorization before sending; handlers receive a placeholder response URL.

✅ Broad coverage — Fixtures cover event selection, routing, and service responses, while core tests exercise storage and dispatcher retries. Current checks report 35 passed, none failed or pending.

This review uses static analysis of the supplied code; no commands were run.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F1: 🔴 Redact separate secret URL components

  • Category: security

  • Required behavior: Secret webhook credentials must not reach handlers, responses, logs, or errors, including when an upstream response echoes them.

  • Evidence: packages/core/src/plugins/pluginHttp.ts:secretUrlCredentials, spellingsOf; packages/core/src/plugins/pluginContext.ts:buildPluginContext

    1. A Teams connection stores an accepted URL containing a workflow path and a query with sig.
    2. Its upstream response echoes the pathname and query separately, for example as JSON fields path and query.
    3. secretUrlCredentials registers only the complete supplied URL, normalized URL, and concatenated pathname-plus-query. Neither separate field contains one of those complete values.
    4. The response therefore exposes the signature and path to the handler. Logging those separate values also bypasses the connection-specific redaction, because the context registers the same incomplete credential list.

    The existing echo test uses a Slack URL without a query, so its pathname equals the registered pathname-plus-query and does not exercise this failure. static trace: the newly registered strings omit separate components; encoding variants of the combined strings cannot match components split across JSON fields. This is a supported response-boundary input, not a claim that ordinary vendor responses always echo these fields.

  • Minimum fix: Include credential-bearing URL components in redaction, including separate pathname/query representations and signature values. Add a regression using a query-bearing Teams URL echoed as separate fields, checking both handler-visible responses and logs.

F2: 🔴 Compare review scores before rounding

  • Category: correctness

  • Required behavior: Review events must be selected according to whether the actual score is below, or at or above, the configured threshold or review goal.

  • Evidence: packages/plugins/_shared/notifications.ts:score, reviewThreshold, notificationKind

    1. An administrator selects only review.below_threshold and sets the threshold to 80.
    2. A review_scored event supplies the valid numeric score 79.96.
    3. notificationKind calls score, which rounds it to 80 before comparison, and classifies it as review.at_or_above_threshold.
    4. buildNotification consequently skips the below-threshold alert. With both categories enabled, it instead sends a success notification.

    Review goals are also rounded through the same helper, creating equivalent boundary errors when no setting overrides the goal. The supplied numeric payload contract does not restrict scores or goals to one decimal place; existing tests cover equality and coarse differences only. static trace: Math.round(79.96 * 10) / 10 produces 80, changing the comparison result.

  • Minimum fix: Compare finite numeric scores and thresholds without rounding. Keep display formatting separate and add fractional boundary tests for both configured thresholds and event goals.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Match test-kit response redaction

The new secret URL branch in packages/plugins/testing/index.ts returns scripted response content without production redaction. Matching that behavior would make plugin tests more representative. This is optional beyond the focused production regressions required above.

Score

The implementation has substantial coverage and passing current checks, but the credential boundary and threshold classification defects require correction before merge.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 17s
  • Tokens: 106,859 (105,198 in / 1,661 out)
  • Cost: $1.03

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix F1 F2 S1

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 939e5df

Addressed 1 AI review comment (IDs: 6919536843)

Addressed findings F1, F2

Summary of Changes

I fixed F1 and F2, each with a regression test. Each new test fails against the previous code and passes now.

F1: secret URL parts are now redacted separately (packages/core/src/plugins/pluginHttp.ts, secretUrlCredentials)

  • What's redacted now: the path alone, the query alone (with and without the ?), and every path segment or query value that looks like a token, both as written and decoded, plus its name=value pair. "Looks like a token" means 16 or more characters with no /. That covers the Teams sig, the workflow ID, and the Slack and Discord tokens. The full URL and path-plus-query were already redacted.
  • What stays readable: short or path-like values such as api-version=2016-06-01, sv=1.0 and sp=/triggers/manual/run.
  • Where it applies: the same list is used both for scrubbing responses (spellingsOf) and for the run's log and error redaction (buildPluginContext), so one change covers both. The plugin test kit doesn't redact anything itself, so it had no copy of this bug.
  • Regression: a new test in packages/core/test/pluginChatNotificationPlugins.test.ts uses a Teams logic.azure.com URL with a query. The fake service echoes the path, the query, the raw query, sig and the workflow ID as separate JSON fields and in a header. The test checks they're all redacted in what the handler sees and in its log lines, including when the handler logs the raw values directly.
  • Docs: the redaction wording in docs/docs/features/plugins.md and docs/docs/architecture/plugin-runtime.md now describes this.

F2: review scores are compared without rounding (packages/plugins/_shared/notifications.ts)

  • Comparison: notificationKind and reviewThreshold now use the score and the review goal exactly as given.
  • Display: rounding happens only when showing the numbers, to one decimal. If that would make the shown numbers contradict the result, more decimals are used (up to six). So 79.96 against 80 shows as "scored 79.96, below 80". Scores well away from the threshold still show one decimal, so the existing message fixtures are unchanged.
  • Regression: new cases in packages/plugins/test/chatNotifications.test.ts cover fractional boundaries for both a configured threshold and the review goal:
    • 79.96 against 80 counts as below.
    • With only the at-or-above choice selected, it produces no notice.
    • The shown score and threshold read 79.96 and 80.
    • 89.96 against a goal of 90 counts as below.
    • 90.04 against a goal of 90.05 counts as below, and 90.05 against 90.05 counts as at or above.

Checks run: all 44 packages/plugins tests and all 157 core plugin* tests pass. Typechecks for packages/plugins and packages/core are clean. Zero-warning lint passes on the changed files. I did not run the full repository suite.

This change isn't visible in the UI, so I made no previews. I found nothing else that needed a separate report.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (2 files)
    • packages/core/src/plugins/pluginHttp.ts (+24/−2)
    • packages/plugins/_shared/notifications.ts (+23/−6)
  • Low risk (4 files)
    • docs/docs/architecture/plugin-runtime.md (+4/−2)
    • docs/docs/features/plugins.md (+2/−1)
    • packages/core/test/pluginChatNotificationPlugins.test.ts (+37/−0)
    • packages/plugins/test/chatNotifications.test.ts (+16/−0)

Validation evidence

  • No repository validation commands ran.

Diff size: 6 files changed, +106/−11 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 6m 41s
  • Tokens: 2,078,033 (2,064,597 in / 13,436 out)
  • Cost: $1.05

View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR

…st fails against the previous code and passes now.

I fixed F1 and F2, each with a regression test. Each new test fails against the previous code and passes now.

**F1: secret URL parts are now redacted separately** (`packages/core/src/plugins/pluginHttp.ts`, `secretUrlCredentials`)
- **What's redacted now:** the path alone, the query alone (with and without the `?`), and every path segment or query value that looks like a token, both as written and decoded, plus its `name=value` pair. "Looks like a token" means 16 or more characters with no `/`. That covers the Teams `sig`, the workflow ID, and the Slack and Discord tokens. The full URL and path-plus-query were already redacted.
- **What stays readable:** short or path-like values such as `api-version=2016-06-01`, `sv=1.0` and `sp=/triggers/manual/run`.
- **Where it applies:** the same list is used both for scrubbing responses (`spellingsOf`) and for the run's log and error redaction (`buildPluginContext`), so one change covers both. The plugin test kit doesn't redact anything itself, so it had no copy of this bug.
- **Regression:** a new test in `packages/core/test/pluginChatNotificationPlugins.test.ts` uses a Teams `logic.azure.com` URL with a query. The fake service echoes the path, the query, the raw query, `sig` and the workflow ID as separate JSON fields and in a header. The test checks they're all redacted in what the handler sees and in its log lines, including when the handler logs the raw values directly.
- **Docs:** the redaction wording in `docs/docs/features/plugins.md` and `docs/docs/architecture/plugin-runtime.md` now describes this.

**F2: review scores are compared without rounding** (`packages/plugins/_shared/notifications.ts`)
- **Comparison:** `notificationKind` and `reviewThreshold` now use the score and the review goal exactly as given.
- **Display:** rounding happens only when showing the numbers, to one decimal. If that would make the shown numbers contradict the result, more decimals are used (up to six). So 79.96 against 80 shows as "scored 79.96, below 80". Scores well away from the threshold still show one decimal, so the existing message fixtures are unchanged.
- **Regression:** new cases in `packages/plugins/test/chatNotifications.test.ts` cover fractional boundaries for both a configured threshold and the review goal:
  - 79.96 against 80 counts as below.
  - With only the at-or-above choice selected, it produces no notice.
  - The shown score and threshold read 79.96 and 80.
  - 89.96 against a goal of 90 counts as below.
  - 90.04 against a goal of 90.05 counts as below, and 90.05 against 90.05 counts as at or above.

**Checks run:** all 44 `packages/plugins` tests and all 157 core `plugin*` tests pass. Typechecks for `packages/plugins` and `packages/core` are clean. Zero-warning lint passes on the changed files. I did not run the full repository suite.

This change isn't visible in the UI, so I made no previews. I found nothing else that needed a separate report.

PR: #3585
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
@propr-dev

propr-dev Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR implements Slack, Discord and Teams notifications through shared event formatting and delivery logic, with service-specific payloads and secret webhook connections. It is merge-ready within the reviewed scope, conditional on the remaining checks passing.

✅ Restricted webhook delivery — Stored URLs are validated against declared hosts and paths, checked again before sending, and subject to public-address resolution. Handlers use a placeholder rather than receiving the stored URL.

✅ Explicit retry behavior — Shared delivery code distinguishes transient failures from permanent refusals. The dispatcher integration test verifies both delayed retries and immediate permanent failure.

✅ Focused message construction — Notifications select specific event fields and construct links explicitly; free-text reasons, titles and arbitrary payload objects are excluded.

This assessment is based on static inspection of the supplied diff and surrounding context. No commands or tests were run during this review. The authoritative check summary reports 31 passed, three pending and no failures.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S2: 🟢 Extend production-path service coverage

The real-runtime integration tests exercise Slack delivery and Teams response redaction, while Discord’s body-only retry delay is tested through the test kit. Adding a Discord dispatcher case would provide additional confidence that response scrubbing, JSON parsing and retry scheduling work together. This is optional because the individual behaviors and their connecting contracts already have coverage.

S3: 🟢 Strengthen sentinel test boundaries

In packages/plugins/test/chatNotifications.test.ts, potentially displayed string fields are mostly replaced with long prose that fails the CODE pattern. Additional cases using short identifier-shaped values would make the intended distinction between permitted identifiers and prohibited free text more explicit, and help prevent future changes from overstating what this test proves. This is additional assurance, not a demonstrated production defect.

Score

The implementation is cohesive, includes substantial targeted coverage, and has no verified merge blocker in the supplied changes. Remaining uncertainty is primarily live-service compatibility and the pending checks.

Score: 9/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 9s
  • Tokens: 108,775 (107,581 in / 1,194 out)
  • Cost: $1.01

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix S2 S3

🤖 Review by ProPR

@propr-dev propr-dev Bot removed the ultrafix label Nov 16, 2026
@propr-dev

propr-dev Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor Author

ℹ️ GitHub auto-merge is turned off for this repository, so ProPR merges this PR itself once it is ready (checks passed or no CI configured, and the review goal met).

To let GitHub merge it the moment required checks pass, enable Settings → General → Pull Requests → Allow auto-merge.

@propr-dev propr-dev Bot changed the title 🔨 [3554 by Claude Opus 5.5] Official plugins: Slack (incoming webhook), Discord and Microsoft Teams notifications ✅⑨ [3554 by Claude Opus 5.5] Official plugins: Slack (incoming webhook), Discord and Microsoft Teams notifications Nov 16, 2026
@propr-dev
propr-dev Bot merged commit b829db7 into 3542-epic-plugin-system-xu8 Nov 16, 2026
50 checks passed
@propr-dev
propr-dev Bot deleted the 3554/claude-opus-5-5-official-plugins-slack-in-20261116-1345-eyd branch November 16, 2026 15:21
@propr-dev propr-dev Bot changed the title ✅⑨ [3554 by Claude Opus 5.5] Official plugins: Slack (incoming webhook), Discord and Microsoft Teams notifications [3554 by Claude Opus 5.5] Official plugins: Slack (incoming webhook), Discord and Microsoft Teams notifications Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants