Repository navigation
fix(tlon): require approval before responding in group DMs - #202775
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Contributor
|
Codex review: stale review; fresh review needed. Summary Next step Review history (1 earlier review cycle)
|
Collaborator
Author
|
@clawsweeper re-review |
Contributor
|
🦞👀 Re-review progress:
|
joshavant
marked this pull request as ready for review
November 20, 2026 23:45
# Conflicts: # docs/.generated/config-baseline.counts.json # docs/.generated/config-baseline.sha256
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 23, 2026
…202775) * fix(tlon): gate group DMs by club approval * fix(tlon): persist configured club grants * docs(config): record Tlon club policy surface * test(tlon): keep sender role cases under lint limit * fix(tlon): preserve direct settings events * fix(tlon): narrow settings event records without assertions
tideclaw-bot
pushed a commit
that referenced
this pull request
Nov 24, 2026
* fix(tlon): gate group DMs by club approval * fix(tlon): persist configured club grants * docs(config): record Tlon club policy surface * test(tlon): keep sender role cases under lint limit * fix(tlon): preserve direct settings events * fix(tlon): narrow settings event records without assertions (cherry picked from commit 6eb70d4) Release adaptation: regenerate stable config docs counts/hashes and bundled channel metadata; no source conflicts. Channel count +6, core/plugin unchanged. The assertion ratchet generator confirms the same Tlon-only shrink; unrelated pre-existing UI ratchet entries are excluded. Companion disposition: #204126 is a missing optional user-facing warning about later club invitees; existing prompts already disclose unverified participant input and future messages. #203928 is not applicable to approval/routing, only image download lifetime. #204219, #203470, #203901 and #203063 overlap only generated/ratchet files, not applicable; regenerate from stable inputs. No later PR or commit-SHA mentions. Co-authored-by: RomneyDa <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Tlon group DM messages carry author claims that the Tlon transport does not authenticate. OpenClaw could treat a claimed ship in a group DM as if it matched the verified 1:1 DM allowlist, admitting unapproved input to the agent.
User Impact
User impact: the owner enables a group DM once per club by default, then the agent can respond automatically in that club. Operators can require approval for each message, disable clubs, or allow and deny specific club IDs. Existing clubs need one-time enablement after upgrade; claimed authors and legacy approvals do not grant standing access.
Why This Change Was Made
Club admission now depends on the club's own policy and recorded decision. Claimed participants never provide owner or command authority. Approved club messages use a club-specific group session, and replies return to the club. The change also decodes Tlon's wrapped settings events so saved decisions work across restarts.
Enabling a club accepts unverified input delivered under that club ID with the agent's ordinary permitted tools. It does not authenticate the author or membership; the owner prompt and Tlon docs explain that tradeoff.
This is a replacement for #196109. Thanks to @mmaps for identifying the group DM author-claim boundary and preparing the first fix. This version keeps approval friction to once per club by default and adds explicit stricter modes and club reply routing.
Evidence
~necproduced one owner prompt and no agent turn. A verified~busDM approved the club; the saved message ran through the model, which read a proof file and replied inside the club. A later message claiming the owner received an automatic club reply without another prompt. After Gateway restart, the saved club rule still allowed an automatic reply.@openclaw/[email protected]plugin created a legacy pending club request in isolated ship state. The replacement plugin loaded it; owner approval replayed the saved message without adding the claimed ship to the DM allowlist or enabling the club. The next message prompted for a new club decision.main. After the final test-file split and direct-settings compatibility repair, the affected tests (47 sender/monitor cases and 5 settings cases), Tlon production and test typechecks, lint, format, the assertion-safety ratchet, and diff whitespace checks pass. Docs MDX/config examples/internal links also pass.main, core and plugin counts are unchanged;pnpm config:docs:checkpasses. The merged current-main tree also passes all 322 Tlon tests and the Tlon production typecheck.7f3e790c331passesopenclaw/ci-gate, the assertion-safety and config baselines, docs, Tlon changed-code checks, security checks, and Control UI e2e. No required check failed. An earlier assertion-safety failure on33be0deafbcwas repaired by using the existing record parser and shrinking the per-file allowance from 7 to 5.053fb62creportedscoped-cleanfor P0–P2 with no actionable finding atb293ba33. The later commits add generated baseline files and merge currentmain; the Tlon source patch is unchanged. Its assessment covered the supplied patch, not a live Tlon round trip.461b02a48f5..7f3e790c331:review_status: complete, patch correct, no code findings, security cleared. Its initial compatibility finding led to retaining the prior direct settings event shape alongside Tlon's wrapped events, with a focused regression test. The local-range reviewer did not receive the PR's live and upgrade evidence, which is recorded here; the default policy was approved for this work by the requesting maintainer.~tensent a native remote%chat-club-actionpoke over Ames to fake~zod, claiming author~nec. The remote poke was acknowledged and~zodstored the club message. The isolated Gateway emitted one approval prompt to verified~tenDM and no agent turn before approval. After that DM approved the club, the real model read a proof file and repliedpapayainto~zod's club. A second remotely delivered message claiming owner~tenreceived an automatic club reply without another approval prompt; savedclubRulescontains the allow rule and no pending approval.%groupsdesk hash (a6eta) exchanged Ames|hiand a direct DM invitation, but stock club creates remained local. Verbose Gall tracing showed no outgoing peer poke. A temporary%chattrace confirmed that club gossip selected the peer but its final card list omitted the remote poke. In the disposable VM only, changing=. cor (emil (gossip:cu-pass diff))to=. cor.nu-core (emil:cor.nu-core (gossip:cu-pass:nu-core diff))retained the gossip cards. Before the local Tlon correction, the peer's club list stayed empty; afterward, a new invite reached it and a peer message reached the creator. The test desks retain only that one-line correction, with trace prints removed. Neither Git repository was changed by this investigation.~nec. It saved one club approval request and sent one prompt to the verified owner's DM, without starting an agent turn. The owner approved by verified DM. The realopenai/gpt-4.1-miniagent used itsreadtool onproof-input.txtand repliedquince; both ships' club histories contained the reply. A second club message claiming to be the owner received an automaticsecond-turn-okreply on both ships, without another owner DM. The persisted Tlon settings haveclubRulesallowing only that club and no pending approval; OpenClaw stored onetlon:group:club:0vp.abcdesession. Stock Tlon club gossip remains broken on the tested desk, so this proof depends on the isolated one-line Tlon repair.