Repository navigation
fix(cron): retain host-verified requesters across channels - #201159
Merged
Merged
Conversation
- Use current command-owner principals instead of per-channel requester and configured-owner fallback paths. - Extend Vincent Koc's #201008 coverage to Slack and Discord account persistence, queued authority, and revoked grants.
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. |
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 19, 2026
…201159) Problem: an automation created from a channel chat must remember who created it and on which account, so each run can check that owner. openclaw#201008 fixed this for Telegram with a Telegram-specific branch next to an older Discord-specific path; other channels (Slack, WhatsApp, ...) still saved no creator, and core code branched on channel names. Fix: the creator comes from the owner identity that the shared channel ingress already verified (`channelPrincipal`, added in openclaw#201008), for every channel. The `discord`/`telegram` branches and the configured-owner fallback are removed. Missing, mismatched, revoked or unverified owner authority still cannot establish ownership. User impact: automations created by a verified channel owner on any channel keep their creator and account, so their runs pass the account check. A sender recognized as owner only by config/alias matching, without a verified ingress identity, no longer creates automations as owner. Proof: Slack host-ingress capture (default and work accounts) and persisted origin/requester integration fail on base and pass on head; existing Telegram and Discord cases pass. Builds on Vincent Koc's openclaw#201008. Co-authored-by: Ayaan Zaidi <[email protected]>
RomneyDa
added a commit
that referenced
this pull request
Nov 19, 2026
Problem: an automation created from a channel chat must remember who created it and on which account, so each run can check that owner. #201008 fixed this for Telegram with a Telegram-specific branch next to an older Discord-specific path; other channels (Slack, WhatsApp, ...) still saved no creator, and core code branched on channel names. Fix: the creator comes from the owner identity that the shared channel ingress already verified (`channelPrincipal`, added in #201008), for every channel. The `discord`/`telegram` branches and the configured-owner fallback are removed. Missing, mismatched, revoked or unverified owner authority still cannot establish ownership. User impact: automations created by a verified channel owner on any channel keep their creator and account, so their runs pass the account check. A sender recognized as owner only by config/alias matching, without a verified ingress identity, no longer creates automations as owner. Proof: Slack host-ingress capture (default and work accounts) and persisted origin/requester integration fail on base and pass on head; existing Telegram and Discord cases pass. Builds on Vincent Koc's #201008. Co-authored-by: Ayaan Zaidi <[email protected]> (cherry picked from commit 00be7d5) Co-authored-by: RomneyDa <[email protected]>
github-actions Bot
pushed a commit
to clawhaven/openclaw
that referenced
this pull request
Nov 23, 2026
…201159) Problem: an automation created from a channel chat must remember who created it and on which account, so each run can check that owner. openclaw#201008 fixed this for Telegram with a Telegram-specific branch next to an older Discord-specific path; other channels (Slack, WhatsApp, ...) still saved no creator, and core code branched on channel names. Fix: the creator comes from the owner identity that the shared channel ingress already verified (`channelPrincipal`, added in openclaw#201008), for every channel. The `discord`/`telegram` branches and the configured-owner fallback are removed. Missing, mismatched, revoked or unverified owner authority still cannot establish ownership. User impact: automations created by a verified channel owner on any channel keep their creator and account, so their runs pass the account check. A sender recognized as owner only by config/alias matching, without a verified ingress identity, no longer creates automations as owner. Proof: Slack host-ingress capture (default and work accounts) and persisted origin/requester integration fail on base and pass on head; existing Telegram and Discord cases pass. Builds on Vincent Koc's openclaw#201008. Co-authored-by: Ayaan Zaidi <[email protected]> Release adaptation: Split coherent23/41 preparation: retained native-account factory, caller and real ingress/queue tests consume preceding principal producer. (cherry picked from commit 00be7d5) 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.
Problem
Cron creation retained native requesters only for Telegram and Discord. Other host-authenticated channel owners lost their requester, and Discord used the reply account rather than the verified ingress account.
Change
Build on Vincent Koc's #201008 (febe293): use the shared host-bound command-owner
channelPrincipalfor every channel, requiring current authority and matching channel, account and sender. Remove channel-name branches and the configured-owner fallback. No schema, protocol or stored-row changes.Discord uses the same host builder: its monitor provider passes the registered runtime's inbound builder to message and native-command ingress. The legacy path from #150308 (9ee5c26) predates the shared principal and no longer needs a separate authority source.
Removed fallback: The three session-event bindings carry
internal_systemprovenance and cannot enter fresh channel cron capture. System-principal admission and queued owner refresh happen after the original factory capture; queued execution invokes that captured factory with the refreshed live owner check, notcreateReplyCronAuthorityFactoryagain. The inbound-tool overlay and followup-run bindings copy the full existing authority, preservingchannelPrincipal. None of these bindings needs a newly invented native principal or relied on the removed config fallback for a verified external owner's creation path. Config-only/alias-only ingress and promotion without an originally verified owner deliberately no longer mint creator authority.Evidence
Regression proof is
vitest-source(no build):f47b5c8655f5:captures a configured slack owner through the real host ingress (default/work)returned no requester despite a verified owner;records a slack owner's origin when creating a job within the visible tool capfailed at the missing host-bound requester.tsgo:core,tsgo:core:test, changed-file oxfmt/oxlint,check:session-identity-ratchet, andcheck:lifetime-check-ratchetpassed.Production diff: +17 / -33 (net -16). Discord's old requester path is removed. Alias-only identity and promotion without an originally verified owner no longer mint authority; explicit host-bound Discord owner and revocation coverage remain.