Skip to content

feat(channels): post a grounded introduction when the bot joins a group room - #130103

Merged
steipete merged 7 commits into
mainfrom
steipete/vigilant-noyce-9e35ee
Aug 27, 2026
Merged

steipete merged 7 commits into
mainfrom
steipete/vigilant-noyce-9e35ee

Conversation

@steipete

@steipete steipete commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Inviting the bot into a Slack channel, Discord server, or Telegram group currently leaves the room silent. This adds a brief introduction grounded in the room's available facts, describing two or three concrete ways the bot can help.

Why This Change Was Made

Channel plugins recognize native membership events, enforce room policy, and provide a bounded context snapshot to one shared introduction owner. That owner runs an isolated agent turn with no tools and treats room text as untrusted evidence. Telegram supplies metadata and pinned text, explicitly marking pre-join history unavailable. The turn does not depend on heartbeat being enabled.

The existing durable claim store suppresses replays by account, conversation, and native join identity: Slack event_id, Discord joined_at, and Telegram update_id. A later removal/reinvite can therefore produce a new introduction; changing Discord's selected destination cannot duplicate the same membership. There is no new SQLite table, schema version, or persistence engine. A delivered message remains settled if committing its durable claim fails.

User Impact

Introductions are on by default for these three plugins, never for DMs. Disable them with channels.<id>.joinIntro: false, optionally overridden per account. Unsupported channels do not accept an unused setting. This adds three channel settings and three account overrides and intentionally changes the default group-join behavior.

Slack preserves Enterprise workspace identity and resolves authoritative channel type to exclude multi-person DMs. Discord selects a policy-allowed, writable destination and ignores stale membership snapshots. Telegram respects General-topic enablement, policy, and agent routing; failed introductions enter the existing durable-ingress retry path. Outcomes are logged as posted, skipped with a reason, or failed.

Evidence

The published candidate is 595373756790a2cd50318a9360529bb1d470a978. Native Telegram verification remains blocked; this PR is not ready to merge.

  • The replay/rejoin, Slack routing/MPIM, and Telegram topic/retry regressions failed against the original production code and pass with these repairs. After the first refresh, 96 focused tests across nine files and five shards passed, plus both owner-roster browser E2E tests. After the final metadata refresh, 185 prompt, introduction-owner, and channel-config tests across six files/shards passed, including unsupported-channel rejection. The Unicode regression also passed a separate 16-test prompt/helper run.

  • Before the mechanical rebase, the full build and changed-file type/lint/architecture gates passed, including zero runtime import cycles. The real isolated Gateway test passed with two distinct joins, two deliveries, no duplicate on replay, and recovery after one injected metadata failure. Its Telegram API and provider are mocked; this is not authenticated live proof.

  • All six source patches are unchanged by the rebase. Generated config metadata was regenerated against current main. Codex autoreview completed both bounded branch-review passes with no actionable P0 findings. A fresh review of the final four-file repair also reported no actionable P0 findings; lower priorities were outside that automated threshold.

  • Previous-head CI failed session-owner-first.e2e.test.ts:70 in UI shard 2/4. The inherited test raced a legitimate session-reference lookup against roster subscription: its fixture now uses the existing literal-key route and checks that no list request appears after hydration. The original fixture failed the strengthened assertion, and both roster E2E files pass with the repair. This race came from perf(ui): bootstrap session rosters in one request #130294 (a482a50cda885, authored and merged by @steipete), not the introduction feature. CI for the new head is queued/running. The fresh Mantis Telegram run is blocked, not passed.

  • Direct AWS Crabbox run run_31842c66aea9 passed the real Gateway replay/rejoin/retry test on source ca1949f1fc866451da090884da9ba479e451d785 (exit 0). Telegram and the model were mocked for that run. Direct AWS run run_99961586ac6b then passed with the real openai/gpt-5.6-luna model and OpenClaw runtime: one introduction for the first membership, none extra for its replay, and one for the distinct later membership. Actual outputs were 35 and 33 words, grounded in shoreline-cleanup/tide-pool facts, offering concrete help without claiming unavailable history. Telegram remained synthetic in this run; no upstream response rewriting or proxy was used. The declared and remote Git SHA both matched ca1949f1fc866451da090884da9ba479e451d785, six feature/harness source hashes matched, and Gateway/server cleanup completed. The AWS lease was released. The exact 889-byte prompt for this live fixture is byte-for-byte unchanged by the final Unicode repair; this is earlier-head live evidence, not a new exact-head live run.

  • The refreshed review found that a character cap could exceed the prompt budget for CJK text. The shared builder now budgets the complete prompt in UTF-8 bytes, reserves instructions first, and reuses the canonical truncation helper to preserve complete code points. The pre-fix Unicode reproduction reached 10,270 bytes; the regression now enforces a 1,024-byte cap. No tokenizer dependency, new setting, or transport-specific workaround was added. The full local changed-file gate passed, including production/test typechecking, lint, architecture guards, and zero runtime import cycles. Earlier attempts caught and led to fixes for an internal changelog attribution and an unsupported test-library method.

One refresh was required because main independently landed the same roster-fixture repair in #130578 (c35b18309329). The upstream test is retained, removing our duplicate UI edit. git range-diff reports all eight feature patches unchanged when excluding that now-upstream test; the prompt, introduction owner, and three membership adapters are byte-identical to the locally gated source. The local gate predates the mechanical refreshes. A subsequent refresh onto 31b26d09f050 resolved conflicts in the three generated config artifacts by regenerating them from the current schemas. All eight non-generated feature patches remain unchanged, and the 185-test run above was performed on the final head. The current main merge was checked locally without conflicts.

Focused verification:

node scripts/run-vitest.mjs src/channels/join-intro src/utils/utf8-truncate.test.ts extensions/discord/src/monitor/listeners.guild-join.test.ts extensions/discord/src/monitor/provider.startup.test.ts extensions/slack/src/monitor/events/members.test.ts extensions/slack/src/send.enterprise.test.ts extensions/telegram/src/bot.create-telegram-bot.join-intro.test.ts extensions/telegram/src/bot-handlers.runtime.test.ts
node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/session-owner-first.e2e.test.ts ui/src/e2e/session-owner-warm-refresh.e2e.test.ts
node scripts/run-vitest.mjs test/e2e/qa-lab/runtime/telegram-join-intro-gateway.e2e.test.ts

The previous Mantis run observed live Telegram metadata, delivery, and visible messages, but injected the membership event because the leased bot reported can_join_groups=false; it also used a scripted model. It does not prove a native removal/reinvite or live model grounding. In the fresh run, Mantis called leaveChat before checking group-join capability, despite the explicit no-remove guard in its instructions. Telegram rejected the re-add because can_join_groups=false; the shared QA bot is now absent and needs owner-assisted restoration. Candidate join events, provider requests, and deliveries were all zero, so this run provides no join-feature verdict. Further shared-fixture runs are stopped.

ClawSweeper rank-up work: event-scoped deduplication and replay-versus-rejoin coverage are implemented across all three adapters. Fresh native rejoin evidence is blocked on restoring the QA fixture and its join capability; it is not claimed from the injected-event test. The earlier onboarding/sidebar findings were stale-base comparisons: neither file is in this PR. The durable-commit finding is fixed and regression-tested. The latest provider-cache finding is also a stale-base comparison: neither src/plugin-sdk/provider-catalog-shared.ts nor its test is in the PR diff. Main landed the cited cache fix in #130412 (4c4c06aa359) after the earlier branch base, then refactored that owner in #130564. The refresh inherits both changes; this PR does not modify that owner. That rank-up move is therefore skipped as unrelated; the Unicode move is implemented and native Telegram proof remains blocked.

Production LOC: +699/-4 (net +695). Tests: +1569/-0. Docs/changelog: +32/-0; generated metadata: +23/-23; SDK/build metadata: +12/-0. Feature growth provides the shared bounded turn and three transport integrations. The later repairs add net 34 production lines to carry membership, workspace, topic, and retry facts through their existing owners; no parallel policy or retry engine was added. Unicode budgeting adds net 12 production lines for byte accounting and instruction reservation while deleting duplicate snapshot assembly. The UI repair is now inherited from main and is no longer in this PR diff.

Docs: channels, Slack, Discord, Telegram, configuration.

Named follow-ups outside this change: investigate the existing Discord connection/listener-registration ordering and the possible Telegram named-account policy-inheritance inconsistency. Both are source/history leads, not reproduced defects or claimed fixes.

Mantis follow-up: enforce a safe membership-restoration prerequisite at the test harness boundary, and restore the affected shared Telegram QA fixture. This is separate from the product feature; the failed proof is not waived.

Observed live-model introduction:

This room appears to coordinate shoreline cleanups and tide-pool habitat monitoring. I could help organize cleanup tasks, track monitoring observations, and summarize volunteer updates. What would you like me to take on here?

@clawsweeper

clawsweeper Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete
steipete marked this pull request as ready for review August 26, 2026 12:29
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: discord Channel integration: discord channel: slack Channel integration: slack channel: telegram Channel integration: telegram gateway Gateway runtime scripts Repository scripts size: XL maintainer Maintainer-authored PR labels Aug 26, 2026
@clawsweeper clawsweeper Bot added mantis: telegram-visible-proof Mantis should capture Telegram visible proof. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 26, 2026
@clawsweeper

clawsweeper Bot commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 26, 2026, 11:04 PM ET / August 27, 2026, 03:04 UTC.

ClawSweeper review

What this changes

Adds a shared, default-on introduction flow that posts one grounded message when the bot joins an allowed Discord server, Slack channel, or Telegram group.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep open for maintainer product-direction review and native Telegram proof. The implementation has a coherent shared owner, access-policy checks, durable replay suppression, bounded prompts, and no identified patch defect, but it deliberately makes automatic model-generated group messages default-on across three existing channel plugins.

Priority: P2
Reviewed head: 595373756790a2cd50318a9360529bb1d470a978
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch has focused behavioral coverage and sound owner boundaries, but its native Telegram delivery evidence is blocked rather than demonstrative.
Proof confidence 🦐 gold shrimp (3/6) Not applicable: The contributor proof gate is not applicable to this MEMBER-authored PR, but the supplied Telegram media confirms only that the QA environment could not trigger the native event, not successful delivery.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The contributor proof gate is not applicable to this MEMBER-authored PR, but the supplied Telegram media confirms only that the QA environment could not trigger the native event, not successful delivery.
Evidence reviewed 6 items Shared owner and caller coverage: The core owner resolves channel/account inheritance before claiming a durable occurrence key, runs a 60-second tool-free isolated turn, and commits deduplication only after delivery; Discord, Slack, and Telegram adapters each call it after their native policy checks.
Prompt and security boundary: The full authored prompt is capped at 1,024 UTF-8 bytes and the isolated turn marks room material as webhook external content with no tools; the cron preparation path wraps that content before adding the trusted unattended-run preamble.
Telegram policy and topic routing: Telegram only acts on the bot's transition from non-member to a current group member, resolves forum joins to General topic ID 1, and tests disabled policy, disabled topic, replay/rejoin, and General-topic agent routing.
Findings None None.
Security None None.

How this fits together

Discord, Slack, and Telegram adapters detect a bot membership transition and provide room metadata to a shared core flow. That flow applies channel/account settings and deduplication, runs an isolated agent turn, then delivers the resulting announcement back to the room.

flowchart LR
  A[Bot joins group room] --> B[Channel adapter]
  B --> C[Access policy check]
  C --> D[Shared introduction flow]
  D --> E[Durable deduplication]
  E --> F[Isolated agent turn]
  F --> G[Channel announcement]
Loading

Decision needed

Question Recommendation
Should automatic, model-generated group introductions be enabled by default for existing Discord, Slack, and Telegram installs? Accept default-on with native proof: Keep the documented default after exact-head native Telegram remove-and-reinvite evidence confirms the most constrained transport path.

Why: This is a deliberate change to default operator-visible behavior and outbound messaging, not a defect that source review can resolve.

Before merge

  • Resolve merge risk (P1) - Existing Discord, Slack, and Telegram installations will now make automatic model calls and send a message when the bot is newly invited unless operators opt out; this intentional default change needs explicit upgrade/product acceptance.
  • Resolve merge risk (P1) - Telegram’s actual absent-to-present membership transition has not been exercised because the available QA bot cannot join groups, leaving the native event-to-delivery path unproven.
  • Complete next step (P2) - A maintainer must decide the default-on operator behavior and arrange the missing native Telegram proof; this is not a repair-lane task.
Agent review details

Security

None.

PR surface

Source +698, Tests +1569, Docs +32, Config +7, Generated 0, Other +2. Total +2308 across 44 files.

View PR surface stats
Area Files Added Removed Net
Source 19 702 4 +698
Tests 12 1569 0 +1569
Docs 6 32 0 +32
Config 2 7 0 +7
Generated 3 23 23 0
Other 2 2 0 +2
Total 44 2335 27 +2308

Review metrics

Metric Value Why it matters
Configuration and defaults 3 channel defaults added, 3 account overrides added Each existing channel plugin gains a default-on automatic outbound behavior.
Production versus tests production +699/-4, tests/support +1569/-0 The added shared owner and three adapters implement a new cross-channel capability; the associated coverage is substantial and behavior-focused.

Stored data model

Persistent data-model change detected: unknown-data-model-change: src/config/bundled-channel-config-metadata.generated.ts, vector/embedding metadata: docs/channels/discord.md, vector/embedding metadata: src/channels/join-intro/join-intro-prompt.ts. Confirm migration or upgrade compatibility proof before merge.

Mantis proof suggestion

A restored group-eligible Telegram QA bot would directly prove the user-visible native transition and final chat delivery that the current run could not exercise. A maintainer can ask Mantis to capture proof by posting this exact PR comment:

@openclaw-mantis verify on the exact PR head that removing and re-adding a group-eligible Telegram QA bot emits one grounded introduction, then return redacted Desktop evidence and the native membership-event outcome.

Merge-risk options

Maintainer options:

  1. Prove and accept the new default (recommended)
    Capture exact-head native Telegram delivery after a real re-add, then explicitly accept the documented default-on upgrade behavior.
  2. Use opt-in behavior
    Change the channel defaults to disabled if maintainers do not want existing installations to send introductions after future reinvites.
  3. Pause this feature
    Close or defer if the cross-channel automatic-message default is not worth its operator impact.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Restore a group-eligible Telegram QA bot, attach redacted exact-head remove-and-reinvite delivery evidence, and record owner acceptance of the default-on outbound behavior.

Technical review

Best possible solution:

Ship only after an owner explicitly accepts the default-on outbound behavior and a group-eligible QA bot demonstrates one native Telegram remove-and-reinvite delivery on the exact head.

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

Not applicable to a defect: this PR adds a feature; source and focused tests cover its intended paths, while the available native Telegram proof could not trigger a membership event.

Is this the best way to solve the issue?

Unclear: the shared owner is the right architectural location and tests cover the key invariants, but maintainers must still choose whether default-on automatic messages are the right product behavior and obtain native Telegram evidence.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add proof: 🎥 video: Contributor real behavior proof includes video or recording evidence. The contributor proof gate is not applicable to this MEMBER-authored PR, but the supplied Telegram media confirms only that the QA environment could not trigger the native event, not successful delivery.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp 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: The contributor proof gate is not applicable to this MEMBER-authored PR, but the supplied Telegram media confirms only that the QA environment could not trigger the native event, not successful delivery.
  • remove rating: 🧂 unranked krab: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This is a bounded cross-channel feature with meaningful default and delivery implications but no demonstrated urgent failure.
  • merge-risk: 🚨 compatibility: The new default changes behavior for existing channel configurations without an explicit opt-in.
  • merge-risk: 🚨 message-delivery: The PR adds automatic outbound messages and the native Telegram membership-transition path remains unproven.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The contributor proof gate is not applicable to this MEMBER-authored PR, but the supplied Telegram media confirms only that the QA environment could not trigger the native event, not successful delivery.
  • proof: 🎥 video: Contributor real behavior proof includes video or recording evidence. The contributor proof gate is not applicable to this MEMBER-authored PR, but the supplied Telegram media confirms only that the QA environment could not trigger the native event, not successful delivery.
  • mantis: telegram-visible-proof: Mantis should capture Telegram visible proof. Telegram users should visibly receive the new group-join introduction, but the supplied run could not produce its native membership transition.

Evidence

Acceptance criteria:

  • [P1] Use a group-eligible Telegram QA bot to remove and re-add the bot on the exact PR head and capture redacted delivery evidence.
  • [P1] Verify exact-head required CI is green before merge.

What I checked:

  • Shared owner and caller coverage: The core owner resolves channel/account inheritance before claiming a durable occurrence key, runs a 60-second tool-free isolated turn, and commits deduplication only after delivery; Discord, Slack, and Telegram adapters each call it after their native policy checks. (src/channels/join-intro/report-channel-room-join.ts:72, 595373756790)
  • Prompt and security boundary: The full authored prompt is capped at 1,024 UTF-8 bytes and the isolated turn marks room material as webhook external content with no tools; the cron preparation path wraps that content before adding the trusted unattended-run preamble. (src/channels/join-intro/join-intro-prompt.ts:17, 595373756790)
  • Telegram policy and topic routing: Telegram only acts on the bot's transition from non-member to a current group member, resolves forum joins to General topic ID 1, and tests disabled policy, disabled topic, replay/rejoin, and General-topic agent routing. (extensions/telegram/src/bot-handlers.event-bindings.ts:68, 595373756790)
  • Configuration contract: All three channel documents expose the default-on behavior and account override, while schemas and configuration tests preserve unset inheritance rather than materializing a new stored default. Public docs: docs/channels/telegram.md. (docs/channels/telegram.md:324, 595373756790)
  • Native Telegram proof is blocked: The supplied Mantis result reports that its QA bot could not join groups, so baseline and candidate received no qualifying native my_chat_member transition; the inspected GIFs likewise show no delivered introduction.
  • Current-main and provenance check: The checked-out PR head is not contained by local main (main is a87fb08); history attributes the new join-introduction owner to the reviewed head and shows adjacent Telegram handler consolidation by Ayaan Zaidi and Slack member-event maintenance by Vincent Koc. (src/channels/join-intro/report-channel-room-join.ts:1, 595373756790)

Likely related people:

  • steipete: Authored the current shared flow and has substantial adjacent Discord, Slack, Telegram, and plugin-SDK history. (role: recent channel-runtime contributor; confidence: high; commits: 595373756790, 902eddf16b08, 75e2595123bf; files: src/channels/join-intro/report-channel-room-join.ts, extensions/discord/src/monitor/listeners.guild-join.ts, extensions/slack/src/monitor/events/members.ts)
  • Ayaan Zaidi: The current Telegram event-binding structure follows the named-handler consolidation in the relevant path. (role: Telegram handler refactor contributor; confidence: medium; commits: d2825c70a516; files: extensions/telegram/src/bot-handlers.event-bindings.ts)
  • Vincent Koc: Recent history includes the Slack member authorization/retry behavior that the new self-join branch sits beside. (role: Slack member-event contributor; confidence: medium; commits: 9e8995384bbf; files: extensions/slack/src/monitor/events/members.ts)

Rank-up moves

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

  • Restore a QA bot with can_join_groups enabled and attach redacted exact-head native remove-and-reinvite evidence.
  • Obtain explicit owner acceptance of the default-on automatic-message behavior.
  • Let exact-head required CI reach a green terminal state.

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.

History

Review history (8 earlier review cycles)
  • reviewed 2026-08-26T12:36:36.008Z sha e228cf7 :: needs changes before merge. :: [P1] Isolate room evidence and disable tools for the automatic turn | [P1] Select a policy-allowed Discord channel before committing the target
  • reviewed 2026-08-26T13:50:07.136Z sha 6a904b277a54adeee9d66816a8cc0965c27b3577 :: found issues before merge. :: [P1] Isolate room evidence and disable tools for the automatic turn | [P1] Select a policy-allowed Discord channel before committing the target
  • reviewed 2026-08-26T14:20:56.500Z sha 52d2ed6 :: found issues before merge. :: [P1] Isolate room evidence and disable tools for the automatic turn | [P1] Select a policy-allowed Discord channel before committing the target
  • reviewed 2026-08-26T17:28:23.305Z sha ed7549f :: found issues before merge. :: [P2] Limit joinIntro to channels that implement it
  • reviewed 2026-08-26T18:39:00.082Z sha 06cebca06a92a0aa7d70f91a515ecae012bad029 :: found issues before merge. :: [P1] Preserve the fresh-onboarding Gateway handoff | [P2] Retain a delivered join claim when durable commit fails | [P2] Keep an empty side panel closed after its final tab is removed
  • reviewed 2026-08-26T19:46:37.724Z sha d82a5b7 :: needs changes before merge. :: [P2] Dedupe individual join events, not whole room membership
  • reviewed 2026-08-27T01:24:49.594Z sha ca1949f :: needs changes before merge. :: [P0] Enforce the prompt budget for non-ASCII room text | [P2] Preserve a replacement live-catalog cache entry
  • reviewed 2026-08-27T01:31:35.658Z sha ca1949f :: found issues before merge. :: [P0] Enforce the prompt budget for non-ASCII room text

@openclaw-barnacle openclaw-barnacle Bot added extensions: xai commands Command implementations labels Aug 26, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Aug 26, 2026
@steipete
steipete force-pushed the steipete/vigilant-noyce-9e35ee branch from 6a904b2 to 52d2ed6 Compare August 26, 2026 14:13
@openclaw-barnacle openclaw-barnacle Bot removed the commands Command implementations label Aug 26, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 26, 2026
@steipete
steipete force-pushed the steipete/vigilant-noyce-9e35ee branch from f43c87e to 72e8e9f Compare August 26, 2026 15:52
@steipete steipete closed this Aug 26, 2026
@steipete
steipete force-pushed the steipete/vigilant-noyce-9e35ee branch from 315ba56 to 27ad691 Compare August 27, 2026 02:35
@openclaw-barnacle openclaw-barnacle Bot removed the app: web-ui App: web-ui label Aug 27, 2026
@steipete
steipete force-pushed the steipete/vigilant-noyce-9e35ee branch from 27ad691 to 5953737 Compare August 27, 2026 02:52
@clawsweeper clawsweeper Bot added proof: 🎥 video Contributor real behavior proof includes video or recording evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 27, 2026
@steipete
steipete force-pushed the steipete/vigilant-noyce-9e35ee branch from 5953737 to 9f36170 Compare August 27, 2026 03:30
@steipete

Copy link
Copy Markdown
Contributor Author

Status update ahead of landing. All review findings to date are resolved.

Both original P1 blockers are fixed. Room evidence is now wrapped in the canonical untrusted-external-content boundary and the introduction turn runs with toolsAllow: [], so instructions embedded in a room title, pin, or message cannot reach a tool. The regression calls the real applyEmbeddedAttemptToolsAllow to confirm an empty array genuinely denies rather than reading as "unset". Discord now applies channel policy during target selection, so a writable-but-disallowed system channel no longer suppresses an introduction that an allowed fallback channel could deliver; it still records a skip when nothing qualifies.

The config-surface P2 is fixed. joinIntro previously lived on the shared channel account shape, which quietly offered the option to iMessage, Teams, Signal, WhatsApp, and Google Chat — none of which consume it. It now lives only on the three channels that implement it, and unsupported channels reject it with unrecognized_keys; there is a test covering that at both channel and account scope.

Two findings on the later head were stale-base artifacts, not defects here. src/commands/onboard-guided.ts and ui/src/pages/chat/sidebar-layout.ts do not appear in this PR's diff. main landed #130082 and #130102 touching those files after this branch's base, so comparing this head against current main read those fixes as reversions by this PR. Rebasing resolves both, and this branch touches neither file.

The third finding was real and is fixed. A durable-commit failure after a visibly delivered introduction could drop the claim and let a reconnect post a duplicate. The commit now uses the per-call onDiskError hook so the storage failure is logged while the delivery stays settled, with a regression that injects a pluginStateUpdate fault and proves a repeat join produces no second turn and no second message.

Also since the last review: history read raised from 30 to 100 messages with the snapshot budget raised to 12,000 characters, and docs/channels/index.md gained a detailed "Group join introductions" section covering the limits, per-platform capabilities, target selection, once-per-room semantics, and the untrusted-content/no-tools posture, cross-referenced from the Slack, Discord, and Telegram pages.

@steipete
steipete merged commit 63f7df8 into main Aug 27, 2026
205 checks passed
@steipete
steipete deleted the steipete/vigilant-noyce-9e35ee branch August 27, 2026 04:02
@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 27, 2026
…up room (openclaw#130103)

* feat(channels): introduce bots when they join group rooms

* feat(channels): add Discord and Telegram join introductions

* fix(channels): isolate untrusted evidence and select allowed join targets

* refactor(channels): scope joinIntro to implementing channels

* fix(channels): keep a delivered join introduction settled when its durable commit fails

* feat(channels): read more room history and document join introductions in detail

* chore(config): regenerate bundled channel metadata after rebase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: discord Channel integration: discord channel: imessage Channel integration: imessage channel: slack Channel integration: slack channel: telegram Channel integration: telegram docs Improvements or additions to documentation extensions: xai gateway Gateway runtime maintainer Maintainer-authored PR mantis: telegram-visible-proof Mantis should capture Telegram visible proof. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. P2 Normal backlog priority with limited blast radius. proof: 🎥 video Contributor real behavior proof includes video or recording evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XL 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