Repository navigation
Description
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
#generalsubscriptions. - Subscribe
#generalto Discussions activity fromPyAutoLabs/.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
- In Slack
#general, inspect the GitHub app installation and existing subscriptions using the GitHub app’s subscription-list command. - Confirm the Slack workspace, channel, app access to
PyAutoLabs/.github, and the administrator responsible for the setup. - Subscribe the channel to
PyAutoLabs/.github discussionswithout category filters, thereby covering all five current categories and future categories. - Remove unwanted default issue, pull-request, commit, release, and deployment events associated with this repository subscription while preserving unrelated channel subscriptions.
- 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.
- Record the enabled events, category coverage, setup owner, subscription status, test evidence, and unsubscribe/rollback command in
agents/conductors/community/AGENTS.md. - 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/.githubDiscussions. - 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
- 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)
- https://github.com/integrations/slack#customize-your-notifications
- https://github.blog/changelog/2023-03-08-introducing-the-ability-to-subscribe-to-specific-discussion-categories-on-slack/
Recheck current integration capabilities during implementation.
Activity
Jammy2211 commentedon Sep 19, 2026
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 inagents/conductors/community/AGENTS.md, covering the native GitHub-for-Slack subscription, noise removal, verification, evidence recording, and rollback.git diff --checkpasses; the draft is intentionally uncommitted while live Slack state remains unverified.Commits
Detailed changes
agents/conductors/community/AGENTS.md: 49 insertions~/Code/PyAutoLabs-wt/notify-slack-community-discussions/feature/community-slack-notificationsRemaining
/github subscribe listand/github subscribe list featuresin#general; record the audit output.PyAutoLabs/.github discussions, removing only unwanted default development events if present.#generalmessage./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.
Jammy2211 commentedon Sep 20, 2026
Live Slack setup verified — 2026-09-20
pyautolens.slack.com/#general(channel IDCD8B8TB1C, from the operator-provided Slack permalink).#generalsubscribed toPyAutoLabs/.github./github subscribe list featuresshoweddiscussionsas 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./github unsubscribe PyAutoLabs/.github discussionsin the subscribed channel.The runbook is committed on
feature/community-slack-notificationsat1621896.git diff --checkpasses. PR shipping is held at the Heart RED gate:release validation FAILED (stage integrate); Heart also reports YELLOWmanifest drift: hub organism blurb (organs present) — 7 mismatch(es) vs PyAutoMind/repos.yaml. These are unrelated to this notification setup.Jammy2211 commentedon Sep 20, 2026
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);discussionswas the sole enabled subscription feature;git diff origin/main...HEAD --checkandbin/install.sh --check-agents-surfacepassed. 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 hostpyautolens.slack.com, now used in the runbook.Jammy2211 commentedon Sep 20, 2026
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 oldpyautolens.slack.comURL redirects to it. In the renamed workspace's receiving channel,/github subscribe list featuresstill reportedPyAutoLabs/.githubwithdiscussionsas 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.Jammy2211 commentedon Sep 20, 2026
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#generalsubscription, live Discussion #21 delivery test, post-rename subscription check, and rollback.The earlier Heart RED authorization permitted development shipping only; the human's
/prmcommand 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.