Repository navigation
refactor(slack): split message dispatch - #113602
Conversation
896700a to
63ddadf
Compare
|
Codex review: needs real behavior proof before merge. Reviewed July 25, 2026, 6:21 AM ET / 10:21 UTC. ClawSweeper reviewWhat this changesThis PR splits Slack inbound message dispatch into setup, streaming delivery, progress rendering, progress I/O, and shared helper modules while preserving the existing reply, retry, and fallback flow. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 5 items remain Keep this protected maintainer-labeled Slack refactor open for normal maintainer review. The branch has focused test and changed-gate evidence, but it moves message setup, streaming, progress receipts, and fallback delivery across new modules without after-fix real Slack behavior proof. Priority: P3 Review scores
Verification
How this fits togetherSlack inbound events are prepared into a dispatch setup, then drive agent replies, streaming previews, progress updates, and final delivery back through Slack. This refactor reorganizes that delivery pipeline without changing its intended transport contract. flowchart LR
A[Slack inbound event] --> B[Message preparation]
B --> C[Dispatch setup]
C --> D[Agent reply pipeline]
D --> E[Streaming and progress updates]
E --> F[Final Slack delivery]
F --> G[Hooks and delivery tracking]
Decision needed
Why: The patch is intentionally behavior-neutral but moves transport-ordering and fallback responsibilities across several modules; automated tests cannot fully establish the external Slack delivery contract. Before merge
Agent review detailsSecurityNone. PR surfaceSource +321, Other -1. Total +320 across 8 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Rebase or refresh against current main as needed, then attach a redacted real Slack run that demonstrates one streaming/progress path and its final delivered reply before maintainer merge review. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR claims a behavior-neutral refactor, so the relevant verification is parity of real Slack delivery rather than reproduction of a reported defect. Is this the best way to solve the issue? Unclear: splitting the dispatcher into ownership-focused modules is a maintainable direction, but the best implementation claim still needs real current-head Slack delivery evidence across the extracted streaming and progress boundary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e26fc17c77ed. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Maintainer decision on the ClawSweeper rank-up moves:
ClawSweeper reported no actionable code or security findings and rated patch quality 4/6. The optional live-proof rank-up is intentionally skipped under the maintainer-granted Slack refactor authority. |
|
Merged via squash.
|
What Problem This Solves
The Slack message dispatch implementation had grown to 2,395 lines, making its transport ordering, streaming state, and progress-message lifecycle difficult to review and maintain safely.
Why This Change Was Made
This behavior-neutral refactor separates setup, streaming delivery, progress rendering, and shared dispatch helpers into focused modules while keeping the original call order, state ownership, retry/fallback paths, and outbound payload construction intact. Every production module is now below 700 lines, and the obsolete max-lines baseline entry is removed.
User Impact
No user-visible behavior changes. Slack messages, retries, progress updates, streaming delivery, and fallback ordering remain governed by the existing code paths and tests; maintainers get smaller ownership boundaries for future work.
Evidence
dispatch.preview-fallback,message-handler, anddelivery-trace) on Blacksmith Testbox: https://github.com/openclaw/openclaw/actions/runs/30153658530git diff --checkpassed.