Skip to content

fix: keep linked people consistent across mentions and sign-ins - #147568

Merged
roboclaw-bot merged 7 commits into
mainfrom
openclaw/we-have-identity-on-the-server-so-steipete-and-peter
Sep 18, 2026
Merged

roboclaw-bot merged 7 commits into
mainfrom
openclaw/we-have-identity-on-the-server-so-steipete-and-peter

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

One person can appear as separate mention recipients with different avatars after signing in through multiple GitHub accounts. Full-name searches also stopped at spaces, and selected mentions rendered as ordinary text.

User Impact

Explicitly linked accounts keep one person, avatar, preferences, and mention Inbox across sign-ins. The picker searches display names and every verified GitHub handle. Selected mentions retain their literal copied text and open an accessible person card with keyboard, mouse, or touch.

Accepted downgrade risk: this adds a nullable primary-account field without changing the shared-state schema version. Older single-account writers can discard secondary links or split the person again; re-upgrading does not reconstruct those links. Keep a backup before downgrading and explicitly relink affected profiles. The maintainer accepted this tradeoff rather than imposing a new database version.

Why This Change Was Made

Verified account membership and the primary public GitHub identity are separate responsibilities. Explicit profile merges preserve all verified accounts and the target’s primary/credit choice; secondary sign-ins do not change that choice. Username/email reuse isolation remains intact. This adds no name-based automatic merging, permission expansion, or notification from rendering.

Current-main integration preserves the shared-transcript page cache while selecting the primary public identity, and stages resident profile-catalog updates before merge observers run. Main now owns the earlier startup and CI-fixture prerequisites and their regression coverage; duplicate changes have been removed from this PR.

Evidence

  • On 69dcb2b0930fc3940a71717624cbaf115494a7f3: 57 focused identity/catalog/Markdown tests, 102 message/composer tests, UI typechecking, and 11 freshly bundled Chromium cases pass. Browser cases cover typed search, keyboard/mouse/touch cards, stale replies, unavailable profiles, and adjacent dashboard flows.
  • Earlier red-before regressions cover split-profile/re-login, lost shared avatars, literal dollar sequences and backticks in selected labels, and reference-style Markdown links. See the mention regressions and profile/linkage regressions.
  • Production avatar-handler proof gives both linked accounts 200 with identical stored PNG bytes; revoked or reassigned identities get 403 and a mismatched principal gets 401. Negative cases do not read the avatar.
  • Current integration b786face46a94aa4d4f030da65f76a5ca7076685 also passes 14 freshly bundled browser cases, including all six streaming-runtime budgets, and 81 planner checks. The browser budget probe now waits for committed startup roster work; counters, budgets and assertions are unchanged. Main owns the concurrent planner-fixture repair.
  • Required CI and native landing gates remain bound to the actual pushed head; local checks are not a substitute.

Proof limits: authorization tests invoke the production handler, role policy and SQLite in-process, with mocked external Access/GitHub responses—not a live-provider login. Upgrade proof uses populated legacy-schema fixtures and reopening, not an old release binary. Captures use synthetic identities. No live profiles, Gateway configuration or deployment were changed.

Before

Ordinary unformatted mention before the repair

After

Distinct selected mention with the canonical person card

Both inspected images were also delivered and verified in the originating Team chat. The unified full user card remains a separate follow-up after this PR lands.

Worked on by: @steipete

Work sessions

Team session: https://team.openclaw.ai/chat/roboclaw/dashboard/6339eba9-9ea1-4699-b115-84fd21f051f2

@clawsweeper

clawsweeper Bot commented Sep 13, 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 docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime size: XL maintainer Maintainer-authored PR labels Sep 13, 2026
@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: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 14, 2026
@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 18, 2026, 1:03 AM ET / 05:03 UTC (Revision 20).

ClawSweeper review

What this changes

The PR preserves explicitly linked GitHub accounts under one person, expands mention searches to full names and verified handles, and adds accessible cards to selected mentions.

Warning

SQLite table change

This PR modifies persisted SQLite tables in src/state/user-profiles-schema.ts. Prefer a design that avoids changing persisted SQLite tables. Migration or upgrade compatibility proof is recorded, but maintainers should still confirm that the schema change is necessary.

Merge readiness

⛔ Blocked before merge - 2 items remain

The central repair remains necessary on current main. No blocking introduced defect was found, and the documented downgrade tradeoff is already accepted rather than awaiting another decision.

Priority: P2
Reviewed head: b786face46a94aa4d4f030da65f76a5ca7076685

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent repair with useful visual and production-boundary evidence, focused regressions, and an explicitly accepted downgrade limitation.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after images directly demonstrate selected-reference rendering and the canonical person card. Reported production-handler execution covers both linked accounts and rejects revoked, reassigned, and mismatched principals before avatar reads; external identity responses are injected, not live-provider proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected before/after images directly demonstrate selected-reference rendering and the canonical person card. Reported production-handler execution covers both linked accounts and rejects revoked, reassigned, and mismatched principals before avatar reads; external identity responses are injected, not live-provider proof.
Evidence reviewed 8 items Current main still needs the repair: At the supplied current-main revision, the identity owner still selects one GitHub identity per profile and deletes other verified account rows during merges and sign-ins. The composer also still excludes spaces from mention queries.
Identity membership and public identity remain separate: The changed owner retains verified account membership, checks immutable account IDs against the current alias binding, and preserves the primary account and credit preference during secondary sign-ins. Its callers consume the primary for public projection and all accounts for attribution matching.
Authorization reaches the final avatar read: The inspected production-handler test and captured PR body report identical PNG responses for both linked accounts, 403 after role revocation or account reassignment, and 401 for a mismatched principal. Negative cases assert that the avatar reader was never called. External Access/GitHub responses are explicitly mocked.
Findings None None.
Security None None.

How this fits together

Gateway profiles connect authenticated accounts to a person's preferences, avatar, and mention Inbox. The Control UI consumes those profiles to search recipients and display person references without granting session access.

flowchart TD
  A[Verified sign-in] --> B[Gateway profile owner]
  C[Administrator links profiles] --> B
  B --> D[Canonical person and primary account]
  D --> E[Authorized mention search]
  E --> F[Selected transcript reference]
  F --> G[Person card and Activity link]
Loading

Before merge

  • Resolve merge risk (P1) - Accepted downgrade limitation: older single-account writers can discard secondary account links or split a person; re-upgrading cannot reconstruct those links, requiring backup restoration or administrator relinking.
  • Resolve merge risk (P1) - Upgrade evidence uses populated legacy-schema fixtures and reopening, rather than an older release binary; authorization evidence injects external identity responses rather than exercising live-provider login.
Agent review details

Security

None.

PR surface

Source +575, Tests +1053, Docs +16. Total +1644 across 32 files.

View PR surface stats
Area Files Added Removed Net
Source 16 774 199 +575
Tests 13 1078 25 +1053
Docs 3 18 2 +16
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 32 1870 226 +1644

Review metrics

Metric Value Why it matters
Persistent identity contract 1 nullable column; 0 schema-version bumps The additive representation permits older writers to reopen state without preserving the new multi-account semantics.
Production versus test growth Production net +575 lines; tests and support net +1053 lines Production growth supports the stated person-card and literal-mention rendering capability, with regression coverage for identity, authorization, and browser behavior.

Stored data model

Persistent data-model change detected: database schema: src/state/user-profiles-schema.ts. Migration or upgrade compatibility proof is recorded; maintainers should verify it before merge.

Merge-risk options

Maintainer options:

  1. Retain the accepted downgrade tradeoff (recommended)
    Keep the unchanged schema version with the explicit warning that returning to older writers requires a backup and may require relinking afterward.

Technical review

Best possible solution:

Keep canonical identity decisions in the existing profile owner, preserve literal transcript labels, and retain the accepted downgrade warning alongside the upgrade and authorization evidence.

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

Yes, from source: explicitly merge two verified GitHub profiles and alternate sign-ins; current main deletes secondary account rows. This review did not execute that sequence.

Is this the best way to solve the issue?

Yes. Extending the existing profile owner and Gateway search avoids competing identity indexes, while selected-span rendering preserves transcript text and existing authorization boundaries.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 7acf043d85c2.

Labels

Label justifications:

  • P2: This repairs linked-person consistency and mention usability with a bounded multi-user blast radius.
  • merge-risk: 🚨 compatibility: The accepted same-version storage change allows older writers to discard secondary account relationships after downgrade.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected before/after images directly demonstrate selected-reference rendering and the canonical person card. Reported production-handler execution covers both linked accounts and rejects revoked, reassigned, and mismatched principals before avatar reads; external identity responses are injected, not live-provider proof.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/after images directly demonstrate selected-reference rendering and the canonical person card. Reported production-handler execution covers both linked accounts and rejects revoked, reassigned, and mismatched principals before avatar reads; external identity responses are injected, not live-provider proof.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before/after images directly demonstrate selected-reference rendering and the canonical person card. Reported production-handler execution covers both linked accounts and rejects revoked, reassigned, and mismatched principals before avatar reads; external identity responses are injected, not live-provider proof.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vyctor H. Brzezowski: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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 (19 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-14T09:54:24.020Z sha 235a6f3bcf97d6bf6c9690a259f866d5be586081 :: blocked before merge. :: none
  • reviewed 2026-09-14T11:24:10.089Z sha ab1496a :: blocked before merge. :: none
  • reviewed 2026-09-14T16:15:02.500Z sha bd6775a :: blocked before merge. :: none
  • reviewed 2026-09-14T21:46:08.506Z sha a51567d :: blocked before merge. :: none
  • reviewed 2026-09-15T17:28:22.227Z sha ed9b0e2 :: blocked before merge. :: none
  • reviewed 2026-09-15T17:49:02.464Z sha fc0569dcef42679976e2562d6532faa1c3630a43 :: blocked before merge. :: none
  • reviewed 2026-09-15T19:05:37.397Z sha 6f522c7 :: blocked before merge. :: none
  • reviewed 2026-09-18T04:44:49.641Z sha 69dcb2b0930fc3940a71717624cbaf115494a7f3 :: blocked before merge. :: none

@roboclaw-bot
roboclaw-bot force-pushed the openclaw/we-have-identity-on-the-server-so-steipete-and-peter branch from 904848a to 1b49d92 Compare September 14, 2026 00:04
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 14, 2026 00:07
@roboclaw-bot
roboclaw-bot requested a review from a team as a code owner September 14, 2026 00:34
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Sep 14, 2026
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/we-have-identity-on-the-server-so-steipete-and-peter branch from 317db6d to 2c60dee Compare September 14, 2026 05:44
@roboclaw-bot roboclaw-bot self-assigned this Sep 14, 2026
@clawsweeper clawsweeper Bot added the proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. label Sep 14, 2026
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/we-have-identity-on-the-server-so-steipete-and-peter branch 4 times, most recently from 4fc48ed to 235a6f3 Compare September 14, 2026 09:39
@roboclaw-bot roboclaw-bot reopened this Sep 14, 2026
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/we-have-identity-on-the-server-so-steipete-and-peter branch 2 times, most recently from a51567d to ed9b0e2 Compare September 15, 2026 17:12
@clawsweeper clawsweeper Bot added the proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. label Sep 15, 2026
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/we-have-identity-on-the-server-so-steipete-and-peter branch from 024aeac to 6f522c7 Compare September 15, 2026 18:28
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/we-have-identity-on-the-server-so-steipete-and-peter branch from 6f522c7 to 69dcb2b Compare September 18, 2026 04:35
roboclaw-bot and others added 7 commits September 18, 2026 04:55
Preserve verified account memberships, primary credit, and shared avatars. Add full-name/handle search and explicit person reference cards. Keep the schema version unchanged with the accepted older-writer downgrade limitation documented.

Co-authored-by: steipete <[email protected]>
Use literal replacement callbacks, exercise the production avatar authorization handler with in-memory transport, and verify existing-account schema upgrade and reopen behavior.

Co-authored-by: steipete <[email protected]>
Keep the prepared mention contract in render options. Runtime and Madge cycle checks report zero cycles; UI typechecking and all 23 focused Markdown tests pass.

Co-authored-by: steipete <[email protected]>
Keep delimiters inside selected labels literal and translate masked reference keys through the existing Markdown parser owner. Cover shortcut/collapsed/explicit references, definition ordering, images, multiple selections and case-folded marker collisions. Eight original regressions fail before; 561 Markdown tests, types, i18n, lint and focused P0-P2 review pass.

Co-authored-by: steipete <[email protected]>
Keep exact canonical hostname and cache-header validation plus cross-checkout request-order assertions on top of the now-main-owned repository identity response repairs. Main also owns the focused Codex model-attribution fixture; no duplicate mock remains.

Co-authored-by: steipete <[email protected]>
Keep the existing record-coercion import needed by explicit mention rendering after main moved message-recovery helpers. UI types, 102 message/composer tests and 11 bundled browser cases pass.

Co-authored-by: steipete <[email protected]>
Wait for the actual delayed child-roster request, its committed list snapshot, and a render boundary before measuring streamed deltas. Keep all counters, budgets and mutation assertions unchanged. Main now owns the compact planner fixture repair; do not duplicate it.

Co-authored-by: steipete <[email protected]>
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/we-have-identity-on-the-server-so-steipete-and-peter branch from eed2d2c to b786fac Compare September 18, 2026 04:56
@roboclaw-bot
roboclaw-bot merged commit 9be9b80 into main Sep 18, 2026
225 checks passed
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

@roboclaw-bot
roboclaw-bot deleted the openclaw/we-have-identity-on-the-server-so-steipete-and-peter branch September 18, 2026 05:25
roboclaw-bot added a commit that referenced this pull request Sep 18, 2026
…151417)

Remove duplicate child-roster setup introduced by the clean textual composition of #147568 and #148447. Restore the exact previously landed browser-budget fixture while retaining committed-roster polling, scroll-idle synchronization, all six cases, and every assertion and budget.

Validate current source files before measuring historical line-count debt. Only currently over-cap files need that allowance, so valid under-cap syntax repairs are no longer blocked by a malformed old file. Invalid current files and unmeasurable over-cap baselines still fail closed; no caps, baselines or suppression rules change.

Co-authored-by: steipete <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 19, 2026
…claw#147568)

Keep explicitly linked GitHub accounts on one canonical person, preserving the primary public identity, consent, avatar, and mention Inbox across sign-ins. Search full names and verified handles, and render selected mentions as accessible person cards without changing permissions or literal copied text. Preserve Markdown reference links and selected labels.

The nullable primary-account field does not introduce a shared-state schema-version bump. Older single-account writers may discard secondary links or split profiles; backup restoration or explicit relinking is required after such a downgrade. This tradeoff was explicitly accepted and remains documented.

Preserve main’s shared-transcript page cache and committed resident profile-catalog publication while selecting the stable primary public account. Retain the record-coercion import needed by explicit mention rendering after the message-recovery refactor. Retain strict synthetic repository-identity request validation and cross-checkout assertions. Wait for committed startup child-roster work before measuring streamed-render budgets, keeping every budget and assertion intact; main owns the concurrent compact-planner fixture repair. Main now owns the repository-response and focused Codex fixture repairs; no duplicate fixture implementation remains. Earlier startup, Docker, cloud, database-fixture and wizard prerequisites are already on main and are not duplicated here.

Co-authored-by: steipete <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 19, 2026
…penclaw#151417)

Remove duplicate child-roster setup introduced by the clean textual composition of openclaw#147568 and openclaw#148447. Restore the exact previously landed browser-budget fixture while retaining committed-roster polling, scroll-idle synchronization, all six cases, and every assertion and budget.

Validate current source files before measuring historical line-count debt. Only currently over-cap files need that allowance, so valid under-cap syntax repairs are no longer blocked by a malformed old file. Invalid current files and unmeasurable over-cap baselines still fail closed; no caps, baselines or suppression rules change.

Co-authored-by: steipete <[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 docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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