Repository navigation
feat: invite members as existing people on a claw - #198773
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Real-product proof — 47ca52bPassed in real Chromium through the deployed staging loader, issuer, Discovery and relay, with an isolated Mac Studio Gateway built at this exact head. No mocked membership, direct database identity injection during admission, local loader override or model/provider key. Setup used three pre-existing personal profiles created through the production canonical Tailscale-profile writer against offline isolated state. The owner created and assigned an existing conversation through the Gateway API before inviting. All accounts were throwaway
The member identity probe opened an actual signed Gateway connection through the loader's browser transport and called Owner approval names the existing personThe admitted member retains their profileTheir existing conversation remains availableTaken-profile fallback is explainedInvite capabilities are redacted; screenshots contain only throwaway identities. Before/after PR body images were also verified to load and render in Chromium. Evidence retained locally: All six published images were checked in Chromium on this PR: visible, fully loaded, nonzero intrinsic dimensions. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesThis PR lets owners invite OpenClaw ID members into existing personal profiles while retaining their names and conversations. Example: The owner invites a member as Mia Existing, who already owns a conversation.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This maintainer-authored feature is useful and ready for landing; the previous upgrade blocker is resolved, and no actionable patch defect was found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Access plugin sends the owner's profile selection to Gateway invitation registration; signed approval then uses the canonical state worker to link the account and publish the outcome. flowchart TD
A[Owner Access page] --> B[Gateway invite registration]
B --> C[Local invitation report]
D[Signed member approval] --> E[Membership authority]
C --> E
E --> F[Canonical profile worker]
F --> G[Existing profile and conversations]
Technical reviewBest possible solution: Land the existing owner-selected invitation path using the current invitation store and canonical profile linker. Do we have a high-confidence way to reproduce the issue? Current-main profile creation follows the OpenClaw ID account identity and lacks this invitation selection; the supplied real-product proof demonstrates the new path without executing target code during review. Is this the best way to solve the issue? The patch is a coherent, focused implementation: selected approval preserves the exact profile, unavailable selections use the existing member path with an explanation, and membership authority remains signed. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0dbfc6e1c45f. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +233, Tests +324, Docs +18. Total +575 across 22 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed November 14, 2026, 4:44 AM ET / 09:44 UTC (Revision 2). |
Upgrade compatibility proof — passedFrom: shipped tag Real pre-upgrade stateOn an isolated Mac Studio source installation, two synthetic people authenticated through the real Gateway's trusted-proxy path. Product RPCs created their display names, saved preferences, two owned sessions and one retained transcript message per session. No raw SQL, fabricated membership or storage mocks were used. Chromium rendered the old conversation before upgrading. The released tag has no OpenClaw ID Gateway implementation or Access plugin; its running Gateway returns Supported same-state upgradeUsed the documented manual source-update sequence: stop the owned foreground Gateway; Verified before enabling ID on the candidate:
Selected-profile admission on the upgraded dataThe owner selected Mia Before Upgrade, then a throwaway member redeemed the actual invitation in Chromium through the deployed staging loader. The owner approved the real pending request. The member's authenticated No compatibility defect was found; no branch changes were needed. Exact-head PostgreSQL conformance (all three shards and pg16 smoke) and Inspected screenshotsBefore upgrade: conversation saved on v2026.11.3 After upgrade: the same conversation Owner approves the pre-upgrade person Member arrives as the existing profile and opens its conversation Isolation and cleanupSeparate HOME, profile, state, config, workspace, temporary/cache paths and port. Josh's app, normal state, Keychain and personal Gateway were not used or changed. Staging use held the exclusive lock throughout. Both issuer sessions were signed out; the throwaway claw was retired and absence verified; the Gateway and tunnel stopped; owned remote state, backup, checkout and local credentials were removed; the lock was released and checked. Screenshots were inspected and cropped/redacted before upload. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
* commit 'e741fd0d21ff7f9857a9c49f91d95166beaae83f': feat: invite members as existing people on a claw (#198773) fix(anthropic): report owner loss after a broken CLI input pipe (#198778) feat(browser): support experimental Kitesurf browsing (#198833) fix(bench): require the state-reader task counter (#198912)









What Problem This Solves
Inviting someone who already has a personal profile on a claw currently gives them a second profile instead of keeping their name and conversations together.
User Impact
With the OpenClaw ID lab enabled, the Gateway owner can choose Existing person on this claw when inviting someone. The approval card says Will join as that person. The owner's choice and approval are sufficient: no member confirmation or matching profile email is required. Shared-owner, already-linked and externally delegated profiles cannot be selected. Unbound invitations work as before.
If the selected profile is removed, merged or claimed before approval, the member joins through the normal profile path and Access explains why. Membership permissions still come from the approved role, not the selected profile. No migration or setup change is required.
Why This Change Was Made
Keep the selection in the Gateway's existing local invitation report, then use the canonical profile linker before committing the signed approval. The selection never enters the signed invite, published authority or Discovery payload. Existing report cleanup owns its lifetime.
Evidence
Before
After
Simplification and focused checks
Reuses the invitation-report store/lifetime, authority serializer and canonical profile linker. No new schema, cache, retry, migration or signed protocol fields. Both registration transports share one metadata decoder. The smallest coherent stage is the complete owner-selected invitation path.
Against the merge base: production +263/-30, tests/support +327/-3, docs +18/-0. Necessary growth is the picker, local metadata, atomic exact-target refusal handling and distinct identity/persistence regressions; no test infrastructure was added.
🦞 Made with OpenClaw