Skip to content

fix: notify WG Slack when committee document added#1552

Merged
bokelley merged 1 commit into
mainfrom
bokelley/addie-wg-slack-posts
Mar 18, 2026
Merged

fix: notify WG Slack when committee document added#1552
bokelley merged 1 commit into
mainfrom
bokelley/addie-wg-slack-posts

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Summary

  • When a WG leader adds a committee document, post a notification to the WG's Slack channel with the document title, link, description, and who added it
  • Previously only published posts triggered Slack notifications; documents were silently added
  • Resolves Addie escalation Fix format_ids schema to use structured format ID objects #123 (Pia/Creative WG — document added but no Slack notification fired)

Changes

  • Added sendChannelMessage + isSlackConfigured call after document creation in POST /api/working-groups/:slug/documents
  • Uses APP_URL env var instead of hardcoded domain
  • Sanitizes title for Slack mrkdwn link syntax (pipe/angle brackets)
  • Fire-and-forget pattern matching existing notifyPublishedPost convention

Test plan

  • Add a document to a WG that has a Slack channel configured (e.g. Creative WG) — verify notification appears in channel
  • Add a document to a WG without a Slack channel — verify no error, document still created
  • Add a document with a title containing | or < characters — verify Slack message renders correctly
  • Verify existing published post notifications still work unchanged

🤖 Generated with Claude Code

When a working group leader adds a committee document, post a
notification to the WG's Slack channel so members can track updates.
This was missing — only published posts triggered channel notifications.

Includes isSlackConfigured() guard, APP_URL support, and mrkdwn
sanitization for title in link syntax.

Resolves Addie escalation #123 (Pia/Creative WG).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bokelley
bokelley merged commit 3469944 into main Mar 18, 2026
9 checks passed
@bokelley
bokelley deleted the bokelley/addie-wg-slack-posts branch March 18, 2026 19:37
bokelley added a commit that referenced this pull request May 4, 2026
…G_STEPS (#4080)

* fix(training-agent): bump @adcp/sdk to 6.11.0, drop both KNOWN_FAILING_STEPS

6.11.0 ships adcp-client#1554 (handoffToTask accepts caller-supplied
task_id) and #1552 (simulate_delivery spreads extension params verbatim).
Wires the v6 sales platform's createMediaBuy to route the directive's
submitted-arm envelope through ctx.handoffToTask with task_id, removes
both KNOWN_FAILING_STEPS entries, ratchets step counts. Conformance
suite fully green with zero skips.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* fix(storyboards): pin overlay to ADCP_VERSION cache dir, skip .previous

SDK 6.11 ships a `<version>.previous` sibling alongside `<version>` for
downgrade rollback. The runner reads from `<version>` per ADCP_VERSION,
but the overlay's `find | head -1` picked siblings non-deterministically
— locally it picked `<version>` (right) but Linux ext4 in CI picked
`.previous` (wrong) and left the live cache with the SDK-bundled YAML.
Storyboard checks then graded against the un-widened cache instead of
the current-PR fixtures, regressing every tenant.

Resolve via ADCP_VERSION when present; otherwise sort + filter out
`.previous` defensively.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 (1M context) <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