Skip to content

feat: link Discord accounts from personal profiles - #188910

Merged
roboclaw-bot merged 16 commits into
mainfrom
openclaw/discord-profile-self-linking
Nov 1, 2026
Merged

roboclaw-bot merged 16 commits into
mainfrom
openclaw/discord-profile-self-linking

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

People need to connect their own Discord account to their signed-in OpenClaw profile without asking an administrator to attest the link, and retain their existing session permissions when requesting work from Discord.

User Impact

User impact: Settings → Profile gains Discord account linking, verified linked-ID status, and disconnect directly below Linked emails and above GitHub account. Linked members keep their actual allowed operator scopes in channel runs; linking does not grant administrator or command-owner privileges.

Deployment requires the selected Discord application's existing OAuth client configuration and the Gateway callback URL registered with Discord. Live Discord OAuth deployment qualification has not been performed; this PR does not change live configuration or credentials.

Why This Change Was Made

The flow reuses the personal-profile authorization boundary, provider-browser callback owner, and canonical channel-identity store. Discord proves the immutable user ID with the identify scope; short-lived one-use state and an initiating-browser cookie bind the callback. The initiating profile, connection, scopes, plugin and account configuration are checked again before storing the link. Tokens are not persisted. Conflicting links are rejected, and administrative attestation endpoints remain administrator-only.

Channel run authority now derives independently from verified profile permissions rather than command-owner status, while retaining the existing access-grant, revocation and queued-recovery checks.

Requested by Vito. Co-authors recorded on the implementation commit: VACInc, obviyus, and hannesrudolph.

Evidence

  • Published and current-head CI green: 0e1777ec22982bd6368e1b96cd985eb260338beb, tree 10fd014343e5a3d0c7d7bc663615a4d6f9bf22d5; pinned source base remains 7b29a23da2a6e787eca43c757bbc489f83d5b682. CI 41253002528 completed successfully: 88 successful jobs, 23 skipped, none failed. It tested merge 9b79558b224ee3613dbfb2f38b0e24eec81ead68 against main 48b46f1f09080e555bcac0a809b6a835546543e2. The aggregate CI gate and current combined CI/security statuses are successful. GitHub reports mergeable; no landing claim is made here.
  • Hovercard failure fixed from upstream: incorporated the strict final assertion from @shakkernerd's #189820, commit 800958fe0caf002813b370d8b171583ca7f499f7, after inspecting its predecessor test(ui): accept combined catalog hovercard context #189795 and the actual combined breadcrumb owner. The complete corrected test file matches upstream blob 778bf4a37b37c84659f41b936df0db0daf3b8ae5. It still asserts the exact openclaw / catalog-hovercard row, path privacy and dismissal. Focused browser proof passed 1/1; current CI's UI jobs, targeted lint, format and whitespace checks passed. No production UI changed; upstream human credit is retained on the commit.
  • Subsequent CI defect handled independently: 46f938e CI 41251216766 completed with 86 successful jobs, 23 skipped and two failures: one fallback-transcript leaf and the aggregate gate. It tested merge c72e4f290ec53d52a5ff522abd39df12ec094389 against main 4120fe0aacb1cd4a0f77fef1a358d8c2f3f38315. Both fallback API cases stopped at auto-compaction rather than returning the expected report. Main fix: prevent context overflow during long tool turns #189810 (e44b8f449184ccc3fc57ddf46cb3b88ff3b30da4) added unconditional provider-bound context admission; this full-runtime fixture inherited a 16k window, leaving 12k after the capped reserve. The current two-line fixture repair gives both synthetic providers 128k capacity while retaining every retry, model-specific context and persisted-transcript assertion. It changes neither production admission nor the shared small-window fixture. In current-head job 124690577910, both exact failing cases now pass: Responses fallback 6109ms and Chat Completions fallback 1854ms. Retry count, model-specific context, single admitted user and persisted primary projection remain asserted. Current CI types/lint and local targeted format/lint pass.
  • Local fallback execution gap: the first targeted attempt exhausted its overall deadline after compiling workers; a cache-reuse attempt rebuilt and aborted in the Node/rolldown native cleanup hook before the test. Neither is a test pass or a product verdict. Further heavy local builds were not started on the contended shared filesystem; the successful current PR CI supplies the behavioral verdict.
  • Preserved feature proof: on c2ac741e88a4a858d1dd25ec74c3a668e96fff5c, CI 41244893575 executed seven registered-RPC/real-Discord-adapter cases, 46 channel-tool authority cases and two persisted queued final-I/O cases successfully. Visitor passed 5/5 including administrator dispatch, X authority 14/14, X verification 7/7 and Feishu lifecycle 8/8. Those are actual execution counts, not job names. These remain historical evidence; the two subsequent CI repairs did not alter any feature implementation, feature test or generated file.
  • Generated conflict resolved: the authorized topology-preserving refresh retained the original semantic merge, security work, authorship and all three human credit trailers. All 48 feature paths retained membership; compared with published 44b8fec8b6f26636c3206c0909cc1a8425c5ff02, every handwritten feature/test blob was identical and only canonically generated protocol.generated/predicates.js differed. The refresh matched the old-source/new-main merge oracle outside that file. gateway:validators:gen, gateway:validators:check, protocol tests 20/20 and whitespace checks passed. Subsequent repairs are confined to two non-feature test files.
  • Review: ClawSweeper revision 6 reviewed 0e1777ec22982bd6368e1b96cd985eb260338beb at 23:41 UTC, including the two-test repair delta: findings None, security None, before-merge items None; needs-human/review-state ready. Its CI-pending observation predates the completed green run. No duplicate re-review is needed for this status-only evidence update.
  • Earlier proof: 43 profile unit tests, 22 browser tests, full runtime/UI build, 48-file formatting and 37-file scoped core lint passed before the refresh; two independent local reviews found no actionable P0–P3 issues. Two member cases fail on base 154cb5b28584507ab5897478bc3e3a478b02d438 while its administrator close/reopen control passes. Prior green head 574e89cd9ae7b29b2f6614f284f775d0492b7656 (CI, review revision 2) is historical only. Required CI was not waived for inherited failures.
Earlier failures and qualification

Run 41172104353 tested merge 883eca4f99bd30153764aa6c4953fc2a87397020 against main 80e3fcc5acb0b31f2d0bba9a1415fdb6ba9e8c6f. Separate exact-base and tested-merge worktrees reproduced X and Visitor unbound Gateway SDK resource-host failures. The published ancestry includes verified fixture-owner fixes #189244 (2464bd85e0bc2927701c3147bf3dfc6993daaae3) and #189296 (4ad0b3eb2472db8692357cf0af69c058c021f784), including awaited cleanup.

The old Feishu card-broadcast shutdown failure remains causally unproven. Both exact snapshots pass the lifecycle file 8/8 and exact five-file/two-worker cohort 97/97. An instrumented retained-snapshot run also passed 97/97: commit returned true before shutdown resolved, the canonical record remained, and no disk/replay error or release occurred. Later hosted 8/8 is qualification, not proof of that historical cause. Similarly, an earlier local Visitor administrator-dispatch timeout remains unexplained despite subsequent hosted 5/5; X 21/21 and Feishu 8/8 subsequently ran successfully. No guard, budget or timeout was bypassed.

Publication recovery is complete. The authorized rewrite used the permitted managed native route after the fast-forward-only broker rejection and a reconciled timeout; later test repairs used normal fast-forward pushes. Remote head was read back. No credential, Git configuration, hook, guard or host setting changed.

Scope reduction and generated diff

Removed feature deltas from Settings sidebar production/unit code and an unrelated deferred-search keyboard scenario, preserving incoming-main content. Reused the callback-owner projection and removed two forwarding methods. No displayed Discord UI or security regression scenario was removed.

The new channel-identity validator has a focused binding, regenerated with the unchanged supported generator. This avoids renumbering earlier unrelated validator groups; remaining churn comes from its interned predicate pool and sequential names. An unrelated generator redesign was not added.

Historical scope reduction against d07273d4e319836cd461f65b02009e94418afb85, before the subsequent inherited-CI test repairs:

Diff category Before After
Production 27 files, +1125 / −247 27 files, +1116 / −247
Tests 18 files, +804 / −74 17 files, +801 / −71
Generated 4 files, +5920 / −5828 4 files, +1891 / −1797
Total 49 files, +7849 / −6149 48 files, +3808 / −2115

Total changed-line churn fell 57.7%; generated churn fell 68.6%. This is mechanical-diff reduction, not thousands of removed handwritten production lines.

ClawSweeper review dispositions

All five earlier items remain addressed. Revision 6 independently found no actionable introduced defect or security issue on current head 0e1777ec22982bd6368e1b96cd985eb260338beb, including the two-test repair delta.

  1. Real behavior proof: registered RPC/real-adapter tests, actual channel-tool effects, and persisted queued final-I/O tests exercise canonical SQLite and actual effects. All 55 passed in the cited c2ac run.
  2. Administrator negative control: a valid profileId request asserts missing scope: operator.admin and unchanged identities, not incidental adapter call counts.
  3. Security: allowed member work, forbidden administrative/participation effects, callback revocation and queued final-I/O controls preserve existing permission gates.
  4. Queued revocation/reassignment: unlink or reassignment during a paused real write prevents the pending file write, preserves bytes and rejects stale recovery. Reassignment to an administrator does not transfer authority to the queued member.
  5. Existing-data compatibility: no persisted identity schema, queue-source codec, configuration schema, migration or src/state implementation changes. Administrator/member controls close and reopen existing-format SQLite. A full deployment upgrade from stable v2026.10.9 was not run. Revisions 5 and 6 found all 564 existing validator exports semantically unchanged, with only the channel-identity validator added.

UI evidence

Real built Control UI; synthetic profile and mocked Gateway/Discord consent. Light theme, 1280 × 900 viewport, identity section cropped. Before: base f8fe5864ab3a; after: implementation 7a6d1fd2925f. Simplification and the later test-only repairs do not change displayed UI, so these inspected screenshots remain representative. This is deterministic UI proof, not live Discord OAuth qualification.

Before

Profile identity before Discord linking

After

Verified Discord identity and disconnect below Linked emails

Disconnected and recoverable-error states

Disconnected Discord identity

Discord sign-in error with retry

Worked on by

Work sessions

roboclaw-bot and others added 2 commits October 31, 2026 01:10
Add browser-bound self-service Discord identity proof through the canonical profile link owner. Preserve verified members’ existing operator scopes in channel runs without granting command ownership.

Co-authored-by: VACInc <[email protected]>
Co-authored-by: obviyus <[email protected]>
Co-authored-by: hannesrudolph <[email protected]>
Worked on by:
- @obviyus
- @VACInc
- @hannesrudolph

Co-authored-by: obviyus <[email protected]>
Co-authored-by: VACInc <[email protected]>
Co-authored-by: hannesrudolph <[email protected]>
OpenClaw-Publication: 82bf828a-5307-451d-bca5-5420ed98c3db
@clawsweeper

clawsweeper Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added channel: discord Channel integration: discord app: web-ui App: web-ui gateway Gateway runtime size: XL labels Oct 31, 2026
@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: 0e1777ec22982bd6368e1b96cd985eb260338beb
  • Maintainer: @roboclaw-bot
  • Repository role: maintain

These security sensitive changes were made:

  • src/gateway/channel-operator-authority.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/methods/core-descriptors.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/provider-browser-auth.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/server-methods/github-personal-authorization.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/server-methods/personal-profile-authorization.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.

Carefully review these changes before merging.

Worked on by:
- @obviyus
- @VACInc
- @hannesrudolph

Co-authored-by: obviyus <[email protected]>
Co-authored-by: VACInc <[email protected]>
Co-authored-by: hannesrudolph <[email protected]>
OpenClaw-Publication: 4f3d942d-d6a7-4f4d-8cde-3b6f7b66fbf1
@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Oct 31, 2026
Co-authored-by: obviyus <[email protected]>
Co-authored-by: VACInc <[email protected]>
Co-authored-by: hannesrudolph <[email protected]>
@clawsweeper

clawsweeper Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Adds Discord account linking to Profile and preserves verified linked members’ existing operator permissions in channel work.

Example: Alice connects Discord user 123456789012345678 to her member profile.

  • Before: An administrator must attest the link, and member channel requests lack an operator principal.
  • After: Alice proves account control through Discord consent, sees Verified and Disconnect in Profile, and channel work retains her existing permissions.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, coherent implementation with no actionable findings; authority and compatibility proof is substantial but primarily harness-based, and live OAuth deployment is unqualified.
Proof confidence 🦐 gold shrimp (3/6) ✨ media proof bonus Sufficient (linked_artifact): For this maintainer-authored PR, inspected production-path tests and recorded successful c2ac execution cover allowed member effects, forbidden administrative actions, callback revocation, and unlink/reassignment before real queued file I/O; those feature inputs remain unchanged, and directly inspected screenshots cover the built Profile states without claiming live Discord qualification.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: People cannot connect their own Discord account from Profile, and linked members lose their existing operator permissions when requesting channel work.
Reason: The maintainer-authored direction removes administrator-mediated linking while preserving existing permissions, channel access and command-owner boundaries.

Merge readiness

✅ Ready for maintainer review

Keep this maintainer-authored PR open: current main lacks self-service Discord linking, and review found no actionable introduced defect; required current-head CI remains pending.

Priority: P2
Reviewed head: 0e1777ec22982bd6368e1b96cd985eb260338beb

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Live Discord consent and callback deployment qualification was not performed; supplied proof covers built UI presentation, real-adapter loopback HTTP, canonical persistence and final-effect authority controls.
Agent review details

How this fits together

The Control UI requests account linking through Gateway RPC; the Discord plugin verifies account control, the canonical identity store records the link, and channel admission derives current profile permissions for execution and recovery.

flowchart LR
  A[Profile UI] --> B[Gateway personal authorization]
  B --> C[Browser callback owner]
  C --> D[Discord identity adapter]
  D --> E[Canonical identity store]
  E --> F[Channel admission]
  F --> G[Current authority at final effects]
Loading

Technical review

Best possible solution:

Retain the shared personal authorization, browser callback and canonical identity owners, then land through the existing required CI gates.

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

Current-main source establishes the missing self-service flow and administrator-only authority bridge; the supplied boundary regressions report member failures on the base and successful execution with the change.

Is this the best way to solve the issue?

The change uses the existing account, callback, identity-storage and execution-authority owners, with a narrow provider adapter and no competing persisted identity store.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 48b46f1f0908.

Provenance checked

  • Personal profile authorization keeps the original intent (4c0588d: Personal GitHub connections bind actions to the authenticated durable profile; later worker migration preserved current ownership checks.)
  • Linked channel operator authority changes intended behavior with a stated reason (fix(slack): let verified linked admins assign sessions from Slack #159694: Verified linked administrators gained a profile principal while members and configured owners retained separate command semantics; this PR explicitly extends profile-scoped execution to members without granting command ownership.)
  • Queued requester recovery keeps the original intent (fd2a6ca: Queued and recovered executions retain requester identity and current applicable permissions; the new member path keeps the existing recovery format and revocation checks.)
  • Discord OAuth transport extraction keeps the original intent (be3e880: The transport previously had one Activities consumer; profile linking supplies a second consumer, justifying shared extraction without duplicating transport policy.)
  • Browser callback lifecycle keeps the original intent (e52d47f: The shared browser OAuth owner binds one-use state to a live sign-in session; optional initiating-browser binding strengthens account linking while retaining existing provider behavior.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Introduced change and re-review delta: The pinned introduced diff adds the linking flow and member authority bridge; comparison with the previously reviewed head confirms subsequent edits affect only the fallback-transcript and catalog-hovercard fixtures. (0e1777ec2298)
  • Current-main capability boundary: Fetched main retains administrator-only linked operator authority and administrative identity-link methods; its Profile page has no Discord linking component. (src/gateway/channel-operator-authority.ts:89, 48b46f1f0908)
  • Identity mutation authority: The callback rechecks the initiating profile, connection, session, plugin and account configuration before invoking the canonical identity writer with the same current-authority assertion. (src/gateway/server-methods/users-channel-identity.ts:145, 0e1777ec2298)
  • Allowed and forbidden final effects: Registered RPC tests exercise the real Discord adapter over loopback HTTP and canonical SQLite; member recovery tests perform a real file write, then verify unlinking or reassignment prevents a held replacement write and stale recovery. The body records successful execution on c2ac, and those feature files are unchanged. GitHub job metadata confirms successful supporting jobs; direct log retrieval was blocked by the proxy’s Azure-host allowlist. (src/gateway/operator-run-recovery.channel.test.ts:23, c2ac741e88a4)
  • Inspected visual evidence: Inspected the PR’s before, linked, disconnected and recoverable-error screenshots directly. They show Discord below Linked emails and above GitHub, with synthetic identity 123456789012345678. The prepared manifest contained linked-PR images, so the actual body attachments were fetched and inspected separately. (ui/src/pages/profile/discord-identity.tsx:8, 0e1777ec2298)
  • Generated compatibility: A read-only comparison normalized generated check identifiers, local identifiers and external predicate references: all 564 existing exported predicate graphs remain unchanged, none are removed, and only isUsersChannelIdentityParams is added. (packages/gateway-protocol/src/compiled/protocol.generated/predicates.js:22956, 0e1777ec2298)

PR surface

Source +963, Tests +731. Total +1694 across 50 files. Added test files: 3.

View PR surface stats
Area Files Added Removed Net
Source 31 3007 2044 +963
Tests 19 804 73 +731
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 50 3811 2117 +1694

Labels

Label changes:

No label changes.

Label justifications:

  • P2: A useful self-service account-linking feature and limited channel-permission improvement with no demonstrated urgent regression.
  • merge-risk: 🚨 compatibility: Adds an optional channel-plugin identityLink contract and a Gateway RPC; the maintainer-authored direction accepts this additive expansion, and existing validator behavior is preserved.
  • merge-risk: 🚨 security-boundary: OAuth-proven identities now enable member-scoped execution and recovery; inspected controls preserve administrative gates and reject revoked or reassigned authority before final effects.
  • 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.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (5 earlier review cycles)
  • reviewed 2026-10-31T01:54:59.657Z sha bb8844c :: needs real behavior proof before merge. :: [P3] Exercise the administrator guard with a valid link request
  • reviewed 2026-10-31T04:14:38.896Z sha 574e89c :: needs maintainer review before merge. :: none
  • reviewed 2026-10-31T05:26:54.227Z sha 7d528bd :: needs maintainer review before merge. :: none
  • reviewed 2026-10-31T21:25:01.099Z sha 44b8fec8b6f26636c3206c0909cc1a8425c5ff02 :: needs changes before merge. :: none
  • reviewed 2026-10-31T22:07:27.376Z sha c2ac741 :: needs maintainer review before merge. :: none

Reviewed October 31, 2026, 7:41 PM ET / 23:41 UTC (Revision 6).

roboclaw-bot and others added 2 commits October 31, 2026 02:17
Integrate the exact failing CI base, align paused cron descriptions, and strengthen Discord linking and revoked member authority boundary proof.

Co-authored-by: obviyus <[email protected]>
Co-authored-by: VACInc <[email protected]>
Co-authored-by: hannesrudolph <[email protected]>
Worked on by:
- @obviyus
- @VACInc
- @hannesrudolph

Co-authored-by: obviyus <[email protected]>
Co-authored-by: VACInc <[email protected]>
Co-authored-by: hannesrudolph <[email protected]>
OpenClaw-Publication: 23a0007b-5e4e-4980-af80-12b6b7411527
roboclaw-bot and others added 4 commits October 31, 2026 02:50
Exercise persisted member recovery after database reopen, positive file writes, and unlink/reassignment before final I/O. Retain the administrator recovery compatibility control.

Co-authored-by: obviyus <[email protected]>
Co-authored-by: VACInc <[email protected]>
Co-authored-by: hannesrudolph <[email protected]>
Worked on by:
- @obviyus
- @VACInc
- @hannesrudolph

Co-authored-by: obviyus <[email protected]>
Co-authored-by: VACInc <[email protected]>
Co-authored-by: hannesrudolph <[email protected]>
OpenClaw-Publication: 49684b40-29cf-48f4-ad0f-ec0a8490e172
Co-authored-by: obviyus <[email protected]>
Co-authored-by: VACInc <[email protected]>
Co-authored-by: hannesrudolph <[email protected]>
Worked on by:
- @obviyus
- @VACInc
- @hannesrudolph

Co-authored-by: obviyus <[email protected]>
Co-authored-by: VACInc <[email protected]>
Co-authored-by: hannesrudolph <[email protected]>
OpenClaw-Publication: a9222b81-60a9-43a0-9c44-1923cd0262c7
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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 clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 31, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 31, 2026
roboclaw-bot and others added 2 commits October 31, 2026 23:07
Backport the exact catalog-context expectation from upstream #189820 (800958f), following #189795. Preserve exact project/branch identity, order, path privacy, and menu dismissal coverage; no production behavior changes.

Co-authored-by: Shakker <[email protected]>
Co-authored-by: obviyus <[email protected]>
Co-authored-by: VACInc <[email protected]>
Co-authored-by: hannesrudolph <[email protected]>
The full-runtime fallback fixture inherited a 16k model window. Main commit e44b8f4 now enforces provider-bound context admission; CI stopped before the simulated rate limit and fallback. Use a 128k synthetic window for both providers while retaining every retry, projection, and transcript assertion. Do not alter shared small-context fixtures or production guards.

Co-authored-by: obviyus <[email protected]>
Co-authored-by: VACInc <[email protected]>
Co-authored-by: hannesrudolph <[email protected]>
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@roboclaw-bot
roboclaw-bot merged commit 4674051 into main Nov 1, 2026
183 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/discord-profile-self-linking branch November 1, 2026 00:09
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 1, 2026
* feat: link Discord accounts from personal profiles

Add browser-bound self-service Discord identity proof through the canonical profile link owner. Preserve verified members’ existing operator scopes in channel runs without granting command ownership.

Co-authored-by: VACInc <[email protected]>
Co-authored-by: obviyus <[email protected]>
Co-authored-by: hannesrudolph <[email protected]>

* feat: link Discord accounts from personal profiles

Worked on by:
- @obviyus
- @VACInc
- @hannesrudolph

Co-authored-by: obviyus <[email protected]>
Co-authored-by: VACInc <[email protected]>
Co-authored-by: hannesrudolph <[email protected]>
OpenClaw-Publication: 82bf828a-5307-451d-bca5-5420ed98c3db

* Publish openclaw/discord-profile-self-linking

Worked on by:
- @obviyus
- @VACInc
- @hannesrudolph

Co-authored-by: obviyus <[email protected]>
Co-authored-by: VACInc <[email protected]>
Co-authored-by: hannesrudolph <[email protected]>
OpenClaw-Publication: 4f3d942d-d6a7-4f4d-8cde-3b6f7b66fbf1

* fix: keep channel authority guard lint-clean

Co-authored-by: obviyus <[email protected]>
Co-authored-by: VACInc <[email protected]>
Co-authored-by: hannesrudolph <[email protected]>

* Publish openclaw/discord-profile-self-linking

Worked on by:
- @obviyus
- @VACInc
- @hannesrudolph

Co-authored-by: obviyus <[email protected]>
Co-authored-by: VACInc <[email protected]>
Co-authored-by: hannesrudolph <[email protected]>
OpenClaw-Publication: 23a0007b-5e4e-4980-af80-12b6b7411527

* test: prove queued channel member authority at final effects

Exercise persisted member recovery after database reopen, positive file writes, and unlink/reassignment before final I/O. Retain the administrator recovery compatibility control.

Co-authored-by: obviyus <[email protected]>
Co-authored-by: VACInc <[email protected]>
Co-authored-by: hannesrudolph <[email protected]>

* Publish openclaw/discord-profile-self-linking

Worked on by:
- @obviyus
- @VACInc
- @hannesrudolph

Co-authored-by: obviyus <[email protected]>
Co-authored-by: VACInc <[email protected]>
Co-authored-by: hannesrudolph <[email protected]>
OpenClaw-Publication: 49684b40-29cf-48f4-ad0f-ec0a8490e172

* test: include channel recovery in owner selection

Co-authored-by: obviyus <[email protected]>
Co-authored-by: VACInc <[email protected]>
Co-authored-by: hannesrudolph <[email protected]>

* Publish openclaw/discord-profile-self-linking

Worked on by:
- @obviyus
- @VACInc
- @hannesrudolph

Co-authored-by: obviyus <[email protected]>
Co-authored-by: VACInc <[email protected]>
Co-authored-by: hannesrudolph <[email protected]>
OpenClaw-Publication: a9222b81-60a9-43a0-9c44-1923cd0262c7

* Publish openclaw/discord-profile-self-linking

Worked on by:
- @obviyus
- @VACInc
- @hannesrudolph

Co-authored-by: obviyus <[email protected]>
Co-authored-by: VACInc <[email protected]>
Co-authored-by: hannesrudolph <[email protected]>
OpenClaw-Publication: b88bb5b3-de7b-42a7-ae9f-d9cf90ddce9e

* refactor: narrow Discord profile linking scope

Remove unrelated settings changes, isolate the channel-identity validator in its own generator owner, and reuse callback-owner projection for the profile view.

Co-authored-by: obviyus <[email protected]>
Co-authored-by: VACInc <[email protected]>
Co-authored-by: hannesrudolph <[email protected]>

* Publish openclaw/discord-profile-self-linking

Worked on by:
- @obviyus
- @VACInc
- @hannesrudolph

Co-authored-by: obviyus <[email protected]>
Co-authored-by: VACInc <[email protected]>
Co-authored-by: hannesrudolph <[email protected]>
OpenClaw-Publication: a1e2c307-a169-4aff-8a1d-73b54551e510

* test(ui): align catalog hovercard breadcrumb with upstream

Backport the exact catalog-context expectation from upstream openclaw#189820 (4b5d759), following openclaw#189795. Preserve exact project/branch identity, order, path privacy, and menu dismissal coverage; no production behavior changes.

Co-authored-by: Shakker <[email protected]>
Co-authored-by: obviyus <[email protected]>
Co-authored-by: VACInc <[email protected]>
Co-authored-by: hannesrudolph <[email protected]>

* test: give fallback transcript fixture full prompt capacity

The full-runtime fallback fixture inherited a 16k model window. Main commit fe5a903 now enforces provider-bound context admission; CI stopped before the simulated rate limit and fallback. Use a 128k synthetic window for both providers while retaining every retry, projection, and transcript assertion. Do not alter shared small-context fixtures or production guards.

Co-authored-by: obviyus <[email protected]>
Co-authored-by: VACInc <[email protected]>
Co-authored-by: hannesrudolph <[email protected]>

---------

Co-authored-by: VACInc <[email protected]>
Co-authored-by: obviyus <[email protected]>
Co-authored-by: hannesrudolph <[email protected]>
Co-authored-by: Shakker <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui channel: discord Channel integration: discord gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. security-sensitive-changed 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.

2 participants