Skip to content

fix: guests cannot select owners of readable sessions - #196446

Merged
vyctorbrzezowski merged 4 commits into
mainfrom
openclaw/guestfix-g06-nov10
Nov 11, 2026
Merged

vyctorbrzezowski merged 4 commits into
mainfrom
openclaw/guestfix-g06-nov10

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Guests could not select the owners of sessions they were already allowed to read in the sidebar owner picker.

User Impact

Guests can narrow their readable sessions by owner without gaining access to hidden conversations or private profiles. Valid saved owner choices survive reconnects and reloads. A selected owner with no remaining matches produces an empty result, rather than silently switching to everyone. Existing All owners, Involving me and My sessions meanings and defaults are preserved.

Why This Change Was Made

Owner and people facets derive from the same access-filtered session rows as the list. Person filters narrow those rows without requiring private-directory authority. Presence does not populate the picker, and private-directory RPC authorization is unchanged. The obsolete automatic owner-reset paths are removed; no new protocol fields, configuration or persistence store are introduced.

Evidence

  • The original isolated real-Gateway/source-UI proof covers both readable foreign owners, self, All owners, reload, exclusion of hidden/sessionless owners and private conversations, and continued users.list/presence.query denial. Synthetic profiles and loopback state were used.
  • The maintainer corrected the existing saved-owner browser regression: it passes now and fails when the original client filtering code is restored. All 30 owner-filter unit cases pass. Fifteen obsolete fixture lines were removed with the matching allocation reduction; the final per-change grant is 241 lines.
  • The existing execution-inventory test now includes the already-registered real-Gateway suite; all 15 inventory checks pass. These maintainer corrections change tests only, preserving the reviewed production implementation.
  • Current head: 3c84c5d7ece872fcb92281817c827547388c1dcf. Full-candidate P0–P2 source review found no actionable issues; scoped types, lint and formatting passed.
  • Current CI has 20 browser failures matching the same cases, errors and source locations in scheduled main. The comparison used both actual logs, not just job names. The exact tested merge was reconstructed and the failed test/fixture inputs are unchanged. These failures remain recorded as inherited, not labelled green or fixed by this PR. Other jobs passed or were skipped.

Owner picker

Synthetic guest fixture, dark theme, matching 1280×800 captures. These matching menu crops retain native text size. Avery and Riley own readable shared sessions; hidden and sessionless owners are excluded.

Before After
Guest owner picker before Guest owner picker after

Contributor: @vyctorbrzezowski.

Work sessions

Linked for team reference; these sessions aren’t public.

Worked on by

roboclaw-bot and others added 2 commits November 10, 2026 04:45
Scope owner and people facets and existing person selectors to readable session rows. Preserve saved and empty owner selections without broadening access. Allocate exactly 256 net regression-test lines for the RPC, saved-filter, and real guest-browser contracts.

Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 86ad86a0-8b23-4e06-8159-1e93a7154eb6
@clawsweeper

clawsweeper Bot commented Nov 10, 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: L labels Nov 10, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 10, 2026
@clawsweeper

clawsweeper Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

This PR lets guests filter readable sessions by owner and preserves saved owner selections across reconnects.

Example: A guest can read Avery's shared planning session.

  • Before: Avery is absent from the owner picker, and selecting Avery through sessions.list is forbidden.
  • After: Avery appears in the picker, and selecting Avery returns only Avery's readable sessions.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Focused production simplification with direct visual evidence, an unreconciled browser consumer test, and incomplete evidence for the authorization-sensitive behavior.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Guests cannot choose owners of conversations they are already allowed to read.
Reason: The maintainer-authored direction restores useful filtering without adding settings or another policy owner.

Merge readiness

⛔ Blocked before merge - 4 items remain

Keep this useful maintainer-authored draft open; the production change is focused, but an existing browser regression still requires the behavior it removes.

Priority: P2
Reviewed head: d10f520211d8e00e34e9d5d5a1ef42a45a0d3f10

Before merge

  • Add real behavior proof - Authority-chain proof required: inspected before/after screenshots establish the visible guest picker change, and the body reports a real isolated Gateway/browser run, but no supplied logs or network output show readable-owner success alongside hidden-session exclusion and users.list/presence.query rejection; attach those redacted results, removing credentials, IPs, phone numbers, and non-public endpoints. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.
  • Update the existing guest browser regression with the new contract (P2) - Removing the authenticated-hello reset preserves the seeded owner:profile-josh preference, but ui/src/e2e/session-owner-filter-guest-default.e2e.test.ts still mocks that owner request as FORBIDDEN and requires the first request, picker label, persisted value, and reload to switch to Involving me. Its assertions at lines 104–115 therefore contradict the new behavior and will fail when this existing browser scenario runs. Update its fixtures and assertions to preserve the readable foreign owner while retaining the separate unsaved-guest default coverage.
  • Resolve security review attention item - No concrete access bypass was found in source, but the changed guest disclosure boundary lacks inspectable RPC diagnostics.
  • Resolve merge risk - Before merge, the PR owner must establish that the broadened guest selectors disclose only currently readable session information at the RPC response boundary.

Findings

  • [P2] Update the existing guest browser regression with the new contract — ui/src/e2e/session-owner-filter-guest-default.e2e.test.ts:104-105

Tests

  • Low-value test ui/src/components/session-owner-filter.test.ts: Remove the obsolete pending-query settlement scaffolding and repeated facet-status variants: owner selection no longer depends on settlement or those flags, so a focused retained-selection assertion covers the remaining contract.
  • Missing end-to-end proof: The picker images do not expose the final RPC results for hidden conversations and private-directory denials; the reported red/green browser run has no linked execution output.
Agent review details

How this fits together

The Control UI sends owner selections to the Gateway session-list owner, which applies current session visibility before returning rows and person facets.

flowchart LR
  A[Guest browser] --> B[Saved owner selection]
  B --> C[Sessions list RPC]
  C --> D[Current session visibility]
  D --> E[Owner and person filters]
  E --> F[Readable rows and facets]
  F --> A
Loading

Technical review

Best possible solution:

Keep visibility and facet selection in the existing Gateway list owner, retain saved choices, and update the browser regression to the new contract.

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

Current main rejects foreign owner selectors and limits guest owner facets; the inspected before screenshot independently shows the missing choices, while the PR reports matching base failures.

Is this the best way to solve the issue?

The shared list owner is the appropriate repair boundary, and removing its obsolete UI recovery paths is a coherent cutover; the remaining browser regression needs the same contract update.

Full review comments:

  • [P2] Update the existing guest browser regression with the new contract — ui/src/e2e/session-owner-filter-guest-default.e2e.test.ts:104-105
    Removing the authenticated-hello reset preserves the seeded owner:profile-josh preference, but ui/src/e2e/session-owner-filter-guest-default.e2e.test.ts still mocks that owner request as FORBIDDEN and requires the first request, picker label, persisted value, and reload to switch to Involving me. Its assertions at lines 104–115 therefore contradict the new behavior and will fail when this existing browser scenario runs. Update its fixtures and assertions to preserve the readable foreign owner while retaining the separate unsaved-guest default coverage.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.94

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 21f17afce911.

Merge-risk options

Maintainer options:

  1. Verify guest disclosure boundaries (recommended)
    The PR owner should attach redacted real-Gateway request/response evidence for permitted owner filtering and forbidden private-session and directory reads.

Provenance checked

  • Guest person selectors and session facets changes intended behavior with a stated reason (5d3e157: Restrict foreign person activity for session-only guests while preserving ordinary shared-session access.)
  • Saved foreign-owner recovery changes intended behavior with a stated reason (5b3ff07: Replace saved foreign-owner filters before querying a connection whose Gateway policy would reject them.)
  • Owner-filter query lifecycle and facet settlement changes intended behavior with a stated reason (3982daa: Separate synchronous saved membership from asynchronous query refresh and automatic repair settlement.)
  • Roster-backed sidebar queries keeps the original intent (c289fc3: Reuse the roster query instead of issuing an unused filtered list request in roster mode.)

Testing

Proof path: shipped entry point.

Security

Needs attention: No concrete access bypass was found in source, but the changed guest disclosure boundary lacks inspectable RPC diagnostics.

Evidence

What I checked:

PR surface

Source -109, Tests +258, Docs +2, Other +3. Total +154 across 13 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 5 34 143 -109
Tests 6 292 34 +258
Docs 1 6 4 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 1 3 0 +3
Total 13 335 181 +154

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Production versus regression-test LOC Production +34/-143; tests +290/-34 Removing automatic repair and duplicate selection policy reduces production code by 109 lines; the 256-line test increase principally adds the real-Gateway browser scenario.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Guest owner filtering is a bounded usability defect; readable sessions remain accessible through other selections.
  • merge-risk: 🚨 security-boundary: The patch removes an explicit guest privacy prohibition, so final-response evidence must establish the narrower readable-session boundary.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • 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.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Add real-Gateway final-response evidence showing a guest can filter readable foreign sessions while hidden conversations and private-directory RPCs remain inaccessible.

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.

Reviewed November 10, 2026, 12:24 AM ET / 05:24 UTC.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 11, 2026 02:43
@vyctorbrzezowski
vyctorbrzezowski merged commit 4005ca2 into main Nov 11, 2026
130 of 137 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/guestfix-g06-nov10 branch November 11, 2026 04:14
@vyctorbrzezowski

Copy link
Copy Markdown
Member

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 11, 2026
* fix: guests cannot select owners of readable sessions

Scope owner and people facets and existing person selectors to readable session rows. Preserve saved and empty owner selections without broadening access. Allocate exactly 256 net regression-test lines for the RPC, saved-filter, and real guest-browser contracts.

Co-authored-by: vyctorbrzezowski <[email protected]>

* fix: guests cannot select owners of readable sessions

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 86ad86a0-8b23-4e06-8159-1e93a7154eb6

* test(ui): preserve saved guest owner selections

* test(ui): include guest owner proof in serial inventory

---------

Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: Vyctor H. Brzezowski <[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 merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: L status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants