Skip to content

feat(sessions): permanent creator attribution, owner avatars, person filter, multi-user docs - #112658

Merged
steipete merged 6 commits into
mainfrom
feat/session-ownership-attribution
Jul 22, 2026
Merged

steipete merged 6 commits into
mainfrom
feat/session-ownership-attribution

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Part 1 of #112499. Multi-operator gateways have no ownership attribution: every session looks identical in every teammate's sidebar, "who's online" presence is routinely misread as ownership, and there is no way to see what a specific person is working on. Single-user deployments must stay visually unchanged.

Why This Change Was Made

Sessions now persist a permanent createdBy identity (trusted-proxy SSO user first, paired-device label fallback) stamped at creation — stored as an additive projection alongside the authoritative entry_json (no SQLite schema-version bump; older binaries can rewrite entries safely; the schema-baseline hash refresh reflects this canonical schema addition). Session rows and catalog rows expose it as additive protocol fields; catalog rows carry their own server-projected ownership (provider-supplied values are scrubbed) so the creator filter never infers ownership from paginated live rows — a defect two review cycles converged on before settling on authoritative projection. UI: solid owner avatar chips (deterministic per-identity hue) on sidebar rows and the session header, deliberately distinct from translucent presence chips; a filter-by-person facet that collapses empty groups; full solo dormancy (fewer than two distinct identities renders zero new chrome, tested). Docs: new multi-user page and a SECURITY.md section stating plainly that within one agent, anyone who can operate the agent can make it do anything the agent can do — ownership/visibility features are usability, not security boundaries.

User Impact

Team gateways see at a glance who created each session and can filter the sidebar by person. Solo gateways look exactly as before. No behavior changes to sending, scopes, or pairing.

Evidence

  • 208+ focused tests across session storage, gateway projection, sidebar rendering/filtering, catalog ownership, and solo dormancy; Playwright E2E; protocol generation (Swift/Kotlin) and SQLite schema/i18n/docs gates green; Blacksmith check:changed green.
  • Autoreview (codex gpt-5.6-sol, xhigh) iterated three times: caught paginated-ownership inference (fixed by authoritative catalog projection), final pass clean.
  • Storage tests assert user_version unchanged (additive, downgrade-safe).

@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 Jul 22, 2026
@steipete
steipete marked this pull request as ready for review July 22, 2026 12:28
@steipete
steipete requested a review from a team as a code owner July 22, 2026 12:28
@clawsweeper

clawsweeper Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: feat(sessions): permanent creator attribution, owner avatars, person filter, multi-user docs This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@steipete steipete self-assigned this Jul 22, 2026
@steipete
steipete force-pushed the feat/session-ownership-attribution branch from fe5b043 to 32f7093 Compare July 22, 2026 12:34
@clawsweeper

clawsweeper Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: feat(sessions): permanent creator attribution, owner avatars, person filter, multi-user docs This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Jul 22, 2026
@clawsweeper

clawsweeper Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: feat(sessions): permanent creator attribution, owner avatars, person filter, multi-user docs This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@steipete
steipete merged commit cf2f591 into main Jul 22, 2026
126 of 128 checks passed
@steipete
steipete deleted the feat/session-ownership-attribution branch July 22, 2026 12:47
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 23, 2026
…filter, multi-user docs (openclaw#112658)

* feat(sessions): persist creator attribution

* feat(ui): add session creator filtering

* chore(sessions): refresh sqlite schema baseline

* docs(security): explain shared-agent trust

* fix(sessions): project catalog creator ownership

* fix(ui): restore startup JS budget headroom for creator attribution
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 scripts Repository scripts size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant