Skip to content

chore: relay community discussions to Slack #408

Closed

Description

@Jammy2211

Overview

Notify the PyAutoLabs Slack #general channel when activity occurs in the shared PyAutoLabs/.github Discussions hub. Prefer GitHub’s official Slack integration so the notification path remains simple, secure, and operationally owned outside repository code.

The native integration reports discussions being created or answered. It should cover all five community categories without also enabling issue, pull-request, commit, release, deployment, or workflow noise.

Plan

  • Audit the existing GitHub app installation and #general subscriptions.
  • Subscribe #general to Discussions activity from PyAutoLabs/.github.
  • Cover all five categories and retain native created-and-answered notifications.
  • Disable unrelated default repository notifications introduced by the subscription.
  • Verify delivery with one clearly marked test discussion.
  • Document the active configuration, owner, verification result, and rollback procedure.
  • Consider custom automation only if the native integration proves insufficient.
Detailed implementation plan

Affected Repositories

  • PyAutoBrain (primary)

Work Classification

Library/organ maintenance, with external Slack configuration and a documentation change.

Branch Survey

Repository Current Branch Dirty?
./PyAutoBrain main No

An unrelated worktree exists on feature/cortex-may-submit; it will be preserved.

Suggested branch: feature/community-slack-notifications
Worktree root: ~/Code/PyAutoLabs-wt/notify-slack-community-discussions/

Implementation Steps

  1. In Slack #general, inspect the GitHub app installation and existing subscriptions using the GitHub app’s subscription-list command.
  2. Confirm the Slack workspace, channel, app access to PyAutoLabs/.github, and the administrator responsible for the setup.
  3. Subscribe the channel to PyAutoLabs/.github discussions without category filters, thereby covering all five current categories and future categories.
  4. Remove unwanted default issue, pull-request, commit, release, and deployment events associated with this repository subscription while preserving unrelated channel subscriptions.
  5. Create one clearly labelled test discussion after human approval and verify that exactly one Slack message arrives with a working link and useful title/author context.
  6. Record the enabled events, category coverage, setup owner, subscription status, test evidence, and unsubscribe/rollback command in agents/conductors/community/AGENTS.md.
  7. If native delivery cannot satisfy the requirement, stop and obtain approval before designing webhook-based automation.

Key Files

  • agents/conductors/community/AGENTS.md — document the Slack notification boundary, current configuration, verification, ownership, and rollback.
  • No tokens, webhook URLs, channel secrets, or private Slack content will be committed.

Validation

  • Confirm the subscription list contains PyAutoLabs/.github Discussions.
  • Confirm all five categories are covered without category filters.
  • Confirm unrelated development events are disabled.
  • Confirm one test discussion produces one message in the intended channel.
  • Confirm the message links to the public discussion and does not contain broadcast mentions.
  • Review the documentation diff and run relevant repository checks if implementation expands beyond documentation.

Original Prompt

Click to expand starting prompt

Notify Slack general when a community discussion is posted

Type: maintenance
Target: PyAutoBrain
Repos:

  • PyAutoBrain
    Difficulty: small
    Autonomy: supervised
    Priority: normal
    Status: formalised
    Consequence: judge
    Review-minutes: 20
    Unattended: ready

Notify Slack general when a community discussion is posted

Type: maintenance
Target: pyautobrain
Repos:

  • PyAutoBrain
    Difficulty: small
    Autonomy: supervised
    Priority: normal
    Consequence: judge

Original user request

  1. Can we have a prompt so all community activity, well every time a new post goes up, it is posted on the #general chanel of SLACK which will mean everyone sees it?

Scope

This prompt covers item 3 only. File now; do not enable an integration or post
messages until this task is started and its setup plan is approved.
PyAutoBrain owns community coordination; the event source is the .github
hub. Native app configuration may require no repository code changes.

Send a visible notification to the intended PyAutoLabs Slack workspace's
#general channel whenever a new top-level discussion is created in the shared
PyAutoLabs Discussions hub (source repository PyAutoLabs/.github), across all
five categories. People arriving from any library share this one hub.

Interpretation to confirm at setup: new top-level posts are required; every
reply, edit, reaction, repository issue, PR, commit, and CI event is not
implicitly included. Native accepted-answer notifications may be useful;
confirm whether these should remain enabled. Do not claim every reply is
covered by the native discussions subscription.

Preferred approach

Inspect existing GitHub app installation and channel subscriptions first to
avoid duplicate delivery. Prefer the official GitHub for Slack integration:
in the confirmed #general channel, subscribe to PyAutoLabs/.github discussions.
The official integration documents created/answered discussion events.
Check and disable unwanted default issue/PR/commit/release/deployment feeds
only for this new subscription, preserving unrelated existing subscriptions.

Confirm workspace identity, channel ID, app access to .github, and who can
approve installation. Never put tokens or webhook secrets in prompts, logs,
issues, or source. Do not add @channel/@here/everyone mentions. Channel
delivery improves visibility but does not guarantee anyone reads the message.

Use custom event-driven automation only if a confirmed requirement cannot be
met natively; obtain approval for that scope increase. Any custom fallback
must handle retries without duplicate posts and render untrusted post titles
as inert text without triggering Slack mentions. Do not replay historical
activity unless explicitly requested.

Acceptance and handoff

  • With human approval, create one clearly marked test discussion and verify
    a single message arrives in the correct #general channel with a working
    link and useful author/title context; record what category context is shown.
  • Verify coverage of all five categories, including future new posts by
    external users, without enabling developer workflow noise.
  • Document exact enabled event types, setup owner, subscription status,
    rollback/unsubscribe steps, and any administrator-only manual actions.
  • Keep public discussions as the source of truth: notification is one-way;
    do not copy private Slack replies back to GitHub.

Verified starting references (2026-09-19)

Recheck current integration capabilities during implementation.

Activity

  1. Jammy2211 commented on Sep 19, 2026

    @Jammy2211
    ContributorAuthor

    Progress Update — 2026-09-20

    Summary

    The task is registered and its isolated PyAutoBrain worktree is ready on feature/community-slack-notifications. A 49-line operational runbook is drafted in agents/conductors/community/AGENTS.md, covering the native GitHub-for-Slack subscription, noise removal, verification, evidence recording, and rollback. git diff --check passes; the draft is intentionally uncommitted while live Slack state remains unverified.

    Commits

    • None yet; the runbook remains an uncommitted worktree change.
    Detailed changes
    • agents/conductors/community/AGENTS.md: 49 insertions
    • Worktree: ~/Code/PyAutoLabs-wt/notify-slack-community-discussions/
    • Branch: feature/community-slack-notifications

    Remaining

    • File the issue, register the Mind task, and create the isolated worktree.
    • Draft the repository-side Slack subscription and rollback runbook.
    • Connect Slack access or manually run /github subscribe list and /github subscribe list features in #general; record the audit output.
    • Enable PyAutoLabs/.github discussions, removing only unwanted default development events if present.
    • Create one approved test Discussion and verify exactly one useful #general message.
    • Record live evidence, validate, commit, and run /ship_library.

    Resume point

    Resume from the Slack audit. The Slack integration was suggested but remained unconnected at the pause point. Preserve the unrelated dirty changes in the main PyAutoMind checkout.

  2. Jammy2211 commented on Sep 20, 2026

    @Jammy2211
    ContributorAuthor

    Live Slack setup verified — 2026-09-20

    • Setup owner: Jammy2211.
    • Workspace/channel: pyautolens.slack.com / #general (channel ID CD8B8TB1C, from the operator-provided Slack permalink).
    • GitHub app: installed for PyAutoLabs; #general subscribed to PyAutoLabs/.github.
    • /github subscribe list features showed discussions as the sole enabled feature for this repository. No category filter was configured, covering all five current categories and future categories. GitHub's native feature reports discussion creation and accepted answers, not every reply or edit.
    • Delivery test: Discussion #21, created by Jammy2211 in Help & Questions at 15:17 UTC, produced one operator-observed Slack notification at 16:17 BST. The pasted message showed the author, discussion number/title, category, and repository. No broadcast mention appeared.
    • Rollback: run /github unsubscribe PyAutoLabs/.github discussions in the subscribed channel.

    The runbook is committed on feature/community-slack-notifications at 1621896. git diff --check passes. PR shipping is held at the Heart RED gate: release validation FAILED (stage integrate); Heart also reports YELLOW manifest drift: hub organism blurb (organs present) — 7 mismatch(es) vs PyAutoMind/repos.yaml. These are unrelated to this notification setup.

  3. Jammy2211 commented on Sep 20, 2026

    @Jammy2211
    ContributorAuthor

    Live Heart RED development override — 2026-09-20

    Task: PyAutoBrain #408, branch feature/community-slack-notifications (documentation of the working GitHub Discussions → Slack relay).

    The human's contemporaneous authorization in this session was: “yes override i authorize”, in response to the request to use the Heart RED development override to open this task's documentation PR. This permits commit, push, and one pending-release PR for this branch. It does not authorize merge, release, release rehearsal, bypass of checks, or a claim that this branch repairs Heart.

    Current Heart verdict: RED. Exact RED reason: release validation FAILED (stage integrate). Heart also reports YELLOW: manifest drift: hub organism blurb (organs present) — 7 mismatch(es) vs PyAutoMind/repos.yaml. Neither reason is caused or fixed by this documentation change.

    Applicable branch gates: live smoke passed (Discussion #21 produced one operator-observed Slack message in #general); discussions was the sole enabled subscription feature; git diff origin/main...HEAD --check and bin/install.sh --check-agents-surface passed. No runtime source or tests changed, so a library unit suite and downstream script smoke are not applicable. Review faculty surface: three commits, one documentation file, no runtime/API changes. Review verdict: CLEAN after checking commands against GitHub's current Slack integration guide and checking the live evidence. Claim disposition: docs: name verified Slack workspace → basis-cited: the operator-provided Slack permalink has host pyautolens.slack.com, now used in the runbook.

  4. Jammy2211 commented on Sep 20, 2026

    @Jammy2211
    ContributorAuthor

    Post-rename Slack subscription check — 2026-09-20, 16:34 BST

    The setup owner confirmed the workspace is now named PyAutoLabs at pyautolabs.slack.com. The old pyautolens.slack.com URL redirects to it. In the renamed workspace's receiving channel, /github subscribe list features still reported PyAutoLabs/.github with discussions as its sole enabled feature. This confirms the configured subscription persisted through the workspace name and URL change. No second Discussion was posted solely for this check; the earlier live delivery test remains Discussion #21.

  5. Jammy2211 commented on Sep 20, 2026

    @Jammy2211
    ContributorAuthor

    Shipped

    PR #409 merged on 2026-09-20 (merge commit 1916a50f0459af9563a9978f261e92209fba00e0). Both Brain Tests matrix jobs, Python 3.12 and 3.13, passed on the PR head. The runbook records the GitHub Discussions → Slack #general subscription, live Discussion #21 delivery test, post-rename subscription check, and rollback.

    The earlier Heart RED authorization permitted development shipping only; the human's /prm command authorized this merge after green CI. This is not a release or a claim that Heart RED has cleared. PyAutoMind close-out and dashboard reconciliation follow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions