Skip to content

refactor(integrations): add Slack setup spec for shared apply_setup flow#1

Draft
Drv4ever wants to merge 1 commit into
mainfrom
feat/slack-setup-flow
Draft

refactor(integrations): add Slack setup spec for shared apply_setup flow#1
Drv4ever wants to merge 1 commit into
mainfrom
feat/slack-setup-flow

Conversation

@Drv4ever

@Drv4ever Drv4ever commented Jul 21, 2026

Copy link
Copy Markdown
Owner

Summary

Add integrations/slack/setup.py with a declarative SLACK_SETUP_SPEC adapted to the
IntegrationSetupSpec API from #4170.
Consolidate the Slack verifier docstring to document it as the single source of truth for
credential validation.

Blocked on

This PR is blocked on #4170, which
introduces integrations/setup_flow.py. Once Tracer-Cloud#4170 lands, follow-up changes will migrate
_setup_slack() in integrations/cli.py and _configure_slack() in
surfaces/cli/wizard/configurators/chat_notifications.py onto
apply_setup(SLACK_SETUP_SPEC, ...).

What's included now

File Change
integrations/slack/setup.py NewSLACK_SETUP_SPEC with 4 optional fields (webhook_url, bot_token, app_token, signing_secret), verify=verify_slack
integrations/slack/verifier.py Docstring consolidation — documents it as the single source of truth for Slack credential validation

Field requirements

All 4 fields are required=False because of Slack's either/or constraint (webhook OR
Socket Mode tokens). The verifier enforces: webhook_url validated OR (bot_token +
app_token) validated. No single field is universally load-bearing.

…low (draft — blocked on Tracer-Cloud#4170)

Add integrations/slack/setup.py with a declarative SLACK_SETUP_SPEC
adapted to the IntegrationSetupSpec API from PR Tracer-Cloud#4170 (muddlebee).
Consolidate the Slack verifier docstring to document it as the single
source of truth for credential validation.

This PR is blocked on Tracer-Cloud#4170 which introduces integrations/setup_flow.py.
Once Tracer-Cloud#4170 lands, follow-up changes will migrate _setup_slack() in
integrations/cli.py and _configure_slack() in chat_notifications.py
onto apply_setup(SLACK_SETUP_SPEC, ...).

AI-usage disclosure: Code was written and reviewed with AI assistance
(opencode).
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