brydup@mac ~/cowork % cat 2026-05-20-tech-brief.md

# Tech Brief — 2026-05-20

## Session arc

Continuation session. Prior context had compacted mid-execution on Discord Phase 2. Resumed directly into the patch run. Finished Phase 2 in full, then extended scope to include Slack MCP reads after Bryan's directive to cut all Slack integrations.

---

## Shipped artifacts

| Artifact | Path | What changed |
|---|---|---|
| yt-weekly-synth.sh | ~/bin/yt-weekly-synth.sh | Removed 2 slack-alert.sh calls (one per failure branch) |
| cluster-daily.sh | ~/yt-subs/cluster-daily.sh | Removed 1 slack-alert.sh call |
| fetch-and-score.py | ~/yt-subs/fetch-and-score.py | _slack_alert_alert; Slack subprocess block removed; 2 callsites updated |
| wrapper-template.sh | ~/bin/wrapper-template.sh | All slack-alert.sh refs → discord-alert.sh; comment updates; Python template block updated |
| slack-alert.sh | ~/bin/slack-alert.sh | **Deleted** |
| morning-briefing.sh | ~/bin/morning-briefing.sh | All 5 Slack MCP read tools removed from ALLOWED_TOOLS; comments updated |
| 01_too_important/CLAUDE.md | ~/cowork/01_too_important/CLAUDE.md | Slack removed from ToolSearch pre-flight select string; "Check Slack" step (was step 4) removed and subsequent steps renumbered; graceful degradation note updated; "Slack reads still work" bullet removed; "Delivery is via file, not Slack" → "Delivery is via file only"; Weekly Idea Review marked **SUSPENDED** |
| cowork/CLAUDE.md | ~/cowork/CLAUDE.md | Routing table: "Slack summaries" removed from 01_too_important row |
| 21_app_ideas/CLAUDE.md | ~/cowork/21_app_ideas/CLAUDE.md | #ideas Slackideas backlog |
| Memory: pi-slack-token | ~/.claude/projects/.../memory/reference_pi_slack_token.md | Marked RETIRED; full accounting of what was removed |
| Memory: pi-alerting-surfaces | ~/.claude/projects/.../memory/reference_pi_alerting_surfaces.md | Updated to Discord-only snapshot |

---

## Cron schedule changes

None. All cron schedules unchanged — only the internals of the scripts they call were modified.

---

## Decisions

- **All Slack cut — reads and writes.** Bryan's directive extended beyond alert/write paths to MCP reads. Discord is the only integration surface going forward.
- **Weekly Idea Review suspended, not replaced.** Was reading Team Lover #ideas via slack_read_channel. No Discord #ideas equivalent planned. Marked SUSPENDED in workflow doc with a re-enable note.
- **App deletion > token revocation.** Bryan deleted all apps at api.slack.com. Tokens dead server-side. The xoxb-* token that appeared in chat context on 2026-05-19 is fully revoked.

---

## Incidents

None this session.

---

## Gotchas added

- **Patch checkers: target tool names, not the word "slack."** "slack" in l.lower() is too broad — history comments, prohibition notes, and suspended-section explanations legitimately contain "Slack" in prose. The right gate for "is this a live Slack callsite" is mcp__claude_ai_Slack tool name presence (for MCP) or slack-alert script name presence (for shell).
- **Two-file trap in cowork CLAUDE.md.** ~/cowork/CLAUDE.md (top-level router) and ~/cowork/01_too_important/CLAUDE.md (workflow doc) are separate files with similar content. Patching one does not patch the other. Always audit both when updating routing/identity sections.

---

## Verification matrix

| Item | Status |
|---|---|
| yt-* Slack callsites removed | ✅ Tested — grep confirms zero slack-alert refs in live files |
| slack-alert.sh deleted | ✅ Confirmed — ls ~/bin/slack-alert.sh returns not found |
| morning-briefing.sh ALLOWED_TOOLS | ✅ Verified — no mcp__claude_ai_Slack in allowlist |
| CLAUDE.md ToolSearch pre-flight | ✅ Verified — no Slack tools in select string |
| Slack token revoked | ✅ Bryan deleted all apps from api.slack.com |
| Memory files updated | ✅ Both reference files updated to reflect Discord-only state |
| Weekly Idea Review suspended in doc | ✅ SUSPENDED note written with re-enable instructions |

---

## Open items

- Weekly Idea Review: suspended. Re-enable if/when Discord #ideas channel is created and ALLOWED_TOOLS updated. No current plan.

---

## Brain refs

- session-2026-05-20-session-slack-full-removal-phase-2


brydup@mac ~/cowork %