Skip to content

fix(slack): stop sniffing the NO_REPLY product token in the transport - #124561

Merged
steipete merged 1 commit into
mainfrom
codex/autoqa-slack-noreply
Aug 16, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/autoqa-slack-noreply

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

sendMessageSlack special-cased core's NO_REPLY silent-reply token inside the transport: any outbound text that trimmed to the token was suppressed before the API call, returning a fabricated "suppressed" messageId. Silent-reply stripping is owned by core auto-reply normalization (normalize-reply.ts / reply-dispatcher.ts) before payloads ever reach outbound — no sibling channel transport (Telegram, Discord, Signal, WhatsApp) has this check. Net effect: a literal NO_REPLY sent through the message tool delivered on every channel except Slack, a transport-only violation ("never special-case product strings in adapters") plus a cross-channel behavior asymmetry.

Why This Change Was Made

git log -S shows the check moved verbatim in the extension extraction (8746362) — it predates core ownership of silent-reply normalization and is duplicate policy. Deleted: the check, its "suppressed" sentinel mint (the only one left in the repo), the local receipt filter for it, and the sentinel-list comment in outbound-audit trimmed to match. The audit/deliver-results sentinel filters stay (they also cover "unknown").

User Impact

Sending text containing exactly NO_REPLY via the message tool now behaves identically on Slack and every sibling channel. No change to agent replies — core normalization already strips genuine silent replies before delivery.

Evidence

  • New sibling-parity regression delivers a literal NO_REPLY text like sibling channels fails pre-fix (stash proof) and passes post-fix; the four suppression-pinning tests are deleted with the behavior per test-audit policy.
  • Full Slack extension suite: 2411/2411 green.
  • tsgo core + extensions clean; oxfmt/oxlint clean.
  • Autoreview (Codex, gpt-5.6-sol high): clean, 0.99.
  • Prod LOC: +4 −13 (net −9); tests +5 −39.

sendMessageSlack special-cased core's silent-reply token before any API
call, returning a fabricated 'suppressed' messageId. Silent-reply
stripping is owned by core auto-reply normalization before payloads
reach outbound — no sibling channel transport has this check, so a
literal NO_REPLY sent through the message tool delivered everywhere
except Slack. The check predates the extension extraction (it moved
verbatim in 8746362) and is duplicate policy.

Delete the check, its sentinel mint (the only one in the repo), and the
receipt filter for it; tests now pin sibling-parity delivery instead of
the suppression.
@clawsweeper

clawsweeper Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added channel: slack Channel integration: slack size: S maintainer Maintainer-authored PR labels Aug 16, 2026
@steipete
steipete marked this pull request as ready for review August 16, 2026 12:19
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 16, 2026
@clawsweeper

clawsweeper Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed August 16, 2026, 8:26 AM ET / 12:26 UTC.

ClawSweeper review

What this changes

Removes Slack’s raw-sender NO_REPLY suppression, updates its regression test to expect a Slack API send, and keeps generic outbound-audit sentinel filtering.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep open: removing Slack’s duplicate transport-layer token policy is the correct cleanup, but the new test comment and PR claim overstate the user impact because the core message tool still suppresses an exact NO_REPLY payload before Slack is invoked.

Priority: P2
Reviewed head: 88c76ac9826c0ab41e00b3afa79a10d36bc088e6

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, net-negative transport cleanup with one non-blocking accuracy correction to its stated behavior.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored PR is outside the external-contributor proof gate; submitted coverage is mocked unit evidence, not a live Slack trace.
Patch quality 🐚 platinum hermit (4/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored PR is outside the external-contributor proof gate; submitted coverage is mocked unit evidence, not a live Slack trace.
Evidence reviewed 6 items Current Slack guard: Current main returns a fabricated suppressed result before any Slack API call for token-only text.
Core owns message-tool normalization: The message tool creates an outbound payload plan, and reply-directive parsing classifies exact NO_REPLY as silent and clears it before a channel transport is called.
Existing message-tool contract test: Current core coverage expects an exact NO_REPLY message-tool payload to produce no outbound payloads.
Findings 1 actionable finding [P3] Describe the raw transport contract accurately
Security None None.

How this fits together

The message tool first builds a channel-agnostic outbound payload plan, then sends remaining payloads through a channel plugin. Slack turns those payloads into Slack API calls and receipts, which outbound audit later correlates.

flowchart LR
  A[Message tool input] --> B[Core payload planner]
  B --> C{Silent reply directive?}
  C -->|yes| D[Suppressed before delivery]
  C -->|no| E[Slack transport]
  H[Direct plugin caller] --> E
  E --> F[Slack API and receipt]
  F --> G[Outbound audit]
Loading

Before merge

  • Describe the raw transport contract accurately (P3) - The new comment says a literal NO_REPLY sent through the message tool must reach Slack, but sendMessage builds createOutboundPayloadPlan, whose directive parser classifies an exact token as silent before channel dispatch. This test exercises sendMessageSlack directly, so reword it and the PR claim as raw transport parity rather than message-tool behavior.
  • Resolve merge risk (P1) - The stated message-tool behavior is inaccurate: exact NO_REPLY is still suppressed by core before it can reach Slack.
  • Complete next step (P2) - This active maintainer-owned PR needs only the factual message-tool wording correction; no repair-lane dispatch is appropriate.

Findings

  • [P3] Describe the raw transport contract accurately — extensions/slack/src/send.blocks.test.ts:99-101
Agent review details

Security

None.

PR surface

Source -9, Tests -34. Total -43 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 2 4 13 -9
Tests 1 5 39 -34
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 9 52 -43

Review metrics

Metric Value Why it matters
Production vs test LOC production +1/-10 (net -9); tests +5/-39 (net -34) The branch removes duplicate production policy and obsolete tests rather than adding a parallel delivery path.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep the transport deletion, but describe and test it as direct Slack-transport parity; retain core’s exact-token suppression contract for message-tool payloads.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep the transport deletion, but describe and test it as direct Slack-transport parity; retain core’s exact-token suppression contract for message-tool payloads.

Do we have a high-confidence way to reproduce the issue?

Yes from source: the raw Slack sender suppresses token-only text on current main, while the message tool suppresses the same exact payload earlier in core; no live Slack run was performed.

Is this the best way to solve the issue?

Yes for the raw transport boundary: silent-reply policy belongs in core, but the PR must not claim that this changes exact-token message-tool delivery.

Full review comments:

  • [P3] Describe the raw transport contract accurately — extensions/slack/src/send.blocks.test.ts:99-101
    The new comment says a literal NO_REPLY sent through the message tool must reach Slack, but sendMessage builds createOutboundPayloadPlan, whose directive parser classifies an exact token as silent before channel dispatch. This test exercises sendMessageSlack directly, so reword it and the PR claim as raw transport parity rather than message-tool behavior.
    Confidence: 0.99

Overall correctness: patch is correct
Overall confidence: 0.93

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 66db70133b2c.

Labels

Label changes:

  • add P2: This is a bounded Slack transport behavior repair with limited blast radius.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored PR is outside the external-contributor proof gate; submitted coverage is mocked unit evidence, not a live Slack trace.

Label justifications:

  • P2: This is a bounded Slack transport behavior repair with limited blast radius.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored PR is outside the external-contributor proof gate; submitted coverage is mocked unit evidence, not a live Slack trace.

Evidence

What I checked:

Likely related people:

  • steipete: The current-main blame boundary for the Slack guard is authored by Peter Steinberger, and this PR continues work on that same sender path. (role: recent transport-area contributor; confidence: medium; commits: 0c7b560b2346; files: extensions/slack/src/send.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Reword the test comment and PR user-impact claim to distinguish direct transport calls from core message-tool normalization.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit a118bfb into main Aug 16, 2026
255 checks passed
@steipete
steipete deleted the codex/autoqa-slack-noreply branch August 16, 2026 12:56
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 17, 2026
…openclaw#124561)

sendMessageSlack special-cased core's silent-reply token before any API
call, returning a fabricated 'suppressed' messageId. Silent-reply
stripping is owned by core auto-reply normalization before payloads
reach outbound — no sibling channel transport has this check, so a
literal NO_REPLY sent through the message tool delivered everywhere
except Slack. The check predates the extension extraction (it moved
verbatim in 6e76ef5) and is duplicate policy.

Delete the check, its sentinel mint (the only one in the repo), and the
receipt filter for it; tests now pin sibling-parity delivery instead of
the suppression.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: slack Channel integration: slack maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant