Skip to content

Add isolated Slack report delivery and persistent incident threads - #122

Open
JeffPengCoder wants to merge 7 commits into
NVIDIA:mainfrom
JeffPengCoder:feat/slack-isolated-dm-bridge
Open

JeffPengCoder wants to merge 7 commits into
NVIDIA:mainfrom
JeffPengCoder:feat/slack-isolated-dm-bridge

Conversation

@JeffPengCoder

@JeffPengCoder JeffPengCoder commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Description

Adds an optional standalone Slack DM bridge for delivering a completed incident report and continuing the investigation in that report's thread. For example, a GPU incident report opens one allowlisted user's DM thread; a later request to collect logs and consult the Research Agent is routed to a dedicated, permanently View-mode MOSAIC headless session with that complete report. Restarting the bridge preserves the binding and event deduplication.

The component keeps Slack Bot/App credentials outside the agent runtime, supports bridge-only mounted credentials or an on-demand Unix-socket credential broker, and includes a minimal DM App manifest and Kubernetes deployment recipe. Its durable inbox/outbox records receipts and stops ambiguous sends rather than blindly duplicating them. No new npm dependency is introduced, and the existing native Slack channel is unchanged.

This PR is based directly on main. Alert intake and investigation remain separate: #89 owns those capabilities, while this bridge accepts complete reports through an authenticated POST /incidents contract. A direct #89 publisher adapter is not included; setting its native delivery channel to Slack does not select this bridge. There is no dependency on #115.

Closes #121.

Optional channel mentions

Set allowedChannels to reviewed channel IDs and the users authorized in each channel. The same bridge receives explicit app_mention events, verifies the App's membership in a workspace-local channel, and posts a fixed acknowledgment in the original thread. The investigation response and follow-up go to a private View-only thread. Standalone DM and incident delivery permissions use the existing allowedUserIds setting. The DM manifest stays minimal. The guide shows the optional channel metadata scopes and event subscription.

Validation

Linux CI and documentation CI both passed for commit c6e876ce4c055328be5a01bf9e6c58fabd9a3c28.

  • Node 24 repository suite: 278 passed, 2 skipped, 0 failed across 280 tests. The two optional runtime-dependent tests remain skipped.
  • Final focused run after notification escaping: 27 Slack tests + 2 repository policy tests passed. Covers DM/app/workspace identity, ACK after SQLite commit, persistent deduplication, complete Unicode reports, multiple incidents/users, View enforcement, restart/timeout recovery, rate limits, ambiguous sends, credential providers, and local HTTP Slack/MOSAIC protocol fixtures.
  • helm lint, helm template, the agent-documentation freshness check, and git diff --check passed. Pinned chart dependencies were reused from an existing local cache after the private registry download required authentication.
  • Documentation builds with sphinx-build -E -W --keep-going; deployment YAML parsing and process/volume isolation checks passed.
  • Existing external Base Command Manager configuration tests: 4 passed. The unchanged server suite passed 23/24 locally; one process-group cleanup test encountered macOS PermissionError. That complete suite subsequently passed in Linux CI.

The follow-up commits add same-organization Enterprise Grid DM verification and channel mention handling. Commit 86c21ef passed the Node 24 repository suite with 282 passed, 2 skipped, and 0 failed. Tests cover sender/channel allowlists, membership and sharing checks, durable deduplication, recovery, channel acknowledgments, and private answers with thread continuity.

Slack transport smoke tests confirmed a real DM thread with a fixed test response and receipt of a real app_mention. A separate run used synthetic Slack fixtures and the deployed MOSAIC API to verify the channel acknowledgment and private answer destinations. Full live Agent deployment remains pending.

Checklist

Signed-off-by: Jeff Peng <jepeng@nvidia.com>
Signed-off-by: Jeff Peng <jepeng@nvidia.com>
Signed-off-by: Jeff Peng <jepeng@nvidia.com>
Signed-off-by: Jeff Peng <jepeng@nvidia.com>
Signed-off-by: Jeff Peng <jepeng@nvidia.com>
Signed-off-by: Jeff Peng <jepeng@nvidia.com>

This branch has not been deployed

No deployments
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.

Add an optional isolated Slack DM bridge with durable incident threads

1 participant