Skip to content

docs: document three-layer session ownership - #125334

Merged
steipete merged 2 commits into
mainfrom
steipete/pensive-murdock-ca9009
Aug 17, 2026
Merged

steipete merged 2 commits into
mainfrom
steipete/pensive-murdock-ca9009

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

PR #125057 landed three-layer session ownership (immutable creator, assignable owner, participant history) with new Control UI surfaces, an agent tool action, and a Gateway method — but shipped no user documentation. The landing review artifact flagged docs as missing; this PR closes that follow-up.

Why This Change Was Made

A competent operator following the docs could not discover how to hand a session to a teammate, what the pair-stack avatar means, why "Involving me" needs a signed-in profile, or what the spawn receipt's sessionUrl/Owner: acknowledgement lines are. The feature was effectively dark for doc readers.

User Impact

  • docs/concepts/multi-user.md is restructured around the three ownership layers: write-once createdActor, GitHub-assignee-style mutable owner (menu paths Assign to me / Assign to…, sessions tool assign_owner, sessions.assignOwner semantics), and bounded best-effort participant history. New sections cover the Owners facet with Involving me (profile-backed matching only), the pair-stack/facepile avatar semantics with solo-mode suppression, and agent-spawned session receipts.
  • docs/concepts/session-tool.md documents the sessions tool assign_owner action and the visible-spawn receipt (sessionUrl, owner, URL-first channel acknowledgement).
  • docs/tools/subagents.md documents visible-spawn attribution to the requesting agent identity and the receipt contract.
  • docs/web/control-ui.md adds the Assign menu entries, the Owners filter (All owners / person / Involving me), People-sort now keying on the effective owner, and the header owner chip + participant facepile / sidebar pair-stack.
  • docs/gateway/protocol.md adds sessions.assignOwner (operator.write, identified caller, visibility-authorized, assignedBy/assignedAt) and the sessions.list ownership projections (createdActor, owner, bounded participants ≤4, participantCount, involvingMe).
  • docs/.i18n/glossary.zh-CN.json gains the "Session tools" link-label entry required by the i18n glossary gate.

Evidence

Docs-only change, source-audited against the merged implementation (55ce95f): tool schema/handler (src/agents/tools/sessions-tool.ts), gateway handler and scope (src/gateway/server-methods/sessions-mutations.ts, src/gateway/methods/core-descriptors.ts), involving-me predicate (src/gateway/session-utils-list.ts), participant recording/projection caps (src/config/sessions/session-accessor.sqlite-participants.ts, 32-cap; row projection 4-cap in src/gateway/session-utils-row.ts), chip/facepile rendering (ui/src/components/session-owner-chip.ts, ui/src/pages/chat/components/chat-pane-header.ts), menu labels (ui/src/i18n/locales/en.ts), and spawn receipt (src/agents/tools/sessions-spawn-visible.ts, src/agents/tool-description-presets.ts).

Checks run locally:

  • pnpm docs:check-mdx — 775 files, pass
  • pnpm docs:check-links — 6513 internal links, 0 broken
  • pnpm docs:check-i18n-glossary — pass (after glossary entry)
  • pnpm format on touched files, git diff --check clean

Refs #125057.

User documentation for the session-ownership feature landed in #125057:
the immutable creator / assignable owner / participant-history model, the
Assign-to-me and Assign-to session menu actions, the sessions tool
assign_owner action, the sidebar Owners facet with Involving-me, the
pair-stack owner avatar, and agent-spawned session receipts (sessionUrl +
owner acknowledgement). Adds the sessions.assignOwner method and ownership
row projections to the protocol reference and a zh-CN glossary entry for
the new link label.
@clawsweeper

clawsweeper Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete
steipete marked this pull request as ready for review August 17, 2026 15:48
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime size: XS maintainer Maintainer-authored PR labels Aug 17, 2026
@steipete steipete closed this Aug 17, 2026
@steipete steipete reopened this Aug 17, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 17, 2026
@clawsweeper

clawsweeper Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 17, 2026, 12:34 PM ET / 16:34 UTC.

ClawSweeper review

What this changes

This PR documents the immutable creator, assignable owner, and participant-history session model across operator, agent-tool, Gateway protocol, Control UI, and subagent pages.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

The prior P2 documentation finding is resolved at the current head, and the remaining wording matches current main’s ownership, participant, and visible-spawn contracts. No blocking correctness findings. Likely related people: steipete (high confidence).

Priority: P3
Reviewed head: 77c6d1bb889347fd40d1063ccc0e4a532a32b927

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A source-aligned documentation update with the prior factual correction incorporated and exact-head documentation CI passing.
Proof confidence 🌊 off-meta tidepool Not applicable: Real behavior proof is not required because this PR only changes files under docs/.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Real behavior proof is not required because this PR only changes files under docs/.
Evidence reviewed 6 items Current ownership projection: Current main removes the effective owner from participant projections, reports the resulting count, and caps row participants at four, matching the protocol and UI documentation.
Owner filtering contract: Current main’s Involving me filter selects profile-backed human owners or participants, as documented.
Visible-spawn receipt contract: Current main instructs agents to place a returned session URL first and Owner second in channel acknowledgements.
Findings None None.
Security None None.

How this fits together

The Gateway records session ownership and participant history, then projects it to the Control UI, Gateway clients, and agent tools. Those consumers let operators assign responsibility, filter sessions, and understand visible spawned-session receipts.

flowchart LR
A[Session creation and prompts] --> B[Gateway ownership records]
B --> C[Session row projections]
C --> D[Control UI]
C --> E[Agent session tools]
C --> F[Gateway clients]
E --> G[Visible spawn receipt]
Loading

Before merge

  • Resolve merge risk (P1) - Local docs-list routing validation was blocked by the read-only runner’s Corepack cache path; exact-head check-docs is successful.
  • Complete next step (P2) - No mechanical repair remains; normal maintainer merge handling is appropriate.
Agent review details

Security

None.

PR surface

Docs +44. Total +44 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 6 73 29 +44
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 73 29 +44

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Merge the source-aligned documentation after the normal current-base refresh; no product or runtime change is needed.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Merge the source-aligned documentation after the normal current-base refresh; no product or runtime change is needed.

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

Not applicable: this docs-only PR was verified by tracing its claims to current-main source and the merged feature contract.

Is this the best way to solve the issue?

Yes. Documenting the shipped ownership model in its existing operator, tool, protocol, Control UI, and subagent pages is the narrowest maintainable solution; the earlier header-count correction is included.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against efde610a9f64.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Real behavior proof is not required because this PR only changes files under docs/.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P3: This is a documentation-only follow-up for an already merged feature.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Real behavior proof is not required because this PR only changes files under docs/.

Evidence

What I checked:

  • Current ownership projection: Current main removes the effective owner from participant projections, reports the resulting count, and caps row participants at four, matching the protocol and UI documentation. (src/config/sessions/session-accessor.sqlite-participant-projection.ts:94, efde610a9f64)
  • Owner filtering contract: Current main’s Involving me filter selects profile-backed human owners or participants, as documented. (src/gateway/session-utils-list.ts:329, efde610a9f64)
  • Visible-spawn receipt contract: Current main instructs agents to place a returned session URL first and Owner second in channel acknowledgements. (src/agents/tool-description-presets.ts:133, efde610a9f64)
  • Prior finding addressed: The current-head commit explicitly removes the impossible header overflow-count claim, and the updated documentation now says the header shows up to four participant avatars. Public docs: docs/concepts/multi-user.md. (docs/concepts/multi-user.md:53, 77c6d1bb8893)
  • Feature provenance: The merged feature that established this behavior is present on current main; no local release tag contains its merge commit, so the underlying feature is main-only in this checkout. (55ce95fac803)
  • Exact-head validation: The provided exact-head CI context reports check-docs successful; local docs-list routing could not run because Corepack attempted a cache write on the read-only runner. (77c6d1bb8893)

Likely related people:

  • steipete: Authored the merged three-layer ownership implementation and the current documentation correction. (role: introduced and recently maintained the session-ownership feature; confidence: high; commits: 55ce95fac803, 77c6d1bb8893; files: src/config/sessions/session-accessor.sqlite-participant-projection.ts, src/gateway/session-utils-list.ts, docs/concepts/multi-user.md)

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 (2 earlier review cycles)
  • reviewed 2026-08-17T16:02:55.784Z sha 0e0c912 :: found issues before merge. :: [P2] Correct the participant facepile contract | [P2] Correct the protocol participant projection
  • reviewed 2026-08-17T16:17:41.664Z sha 0e0c912 :: found issues before merge. :: [P2] Remove the nonexistent header overflow count

The chat header receives the already 4-capped participant projection and no
total count, so its overflow branch cannot render. Describe up to four
avatars instead (ClawSweeper P2).
@clawsweeper clawsweeper Bot added 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. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 17, 2026
@steipete
steipete merged commit 98d7b38 into main Aug 17, 2026
60 checks passed
@steipete
steipete deleted the steipete/pensive-murdock-ca9009 branch August 17, 2026 16:35
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 18, 2026
* docs: document three-layer session ownership

User documentation for the session-ownership feature landed in openclaw#125057:
the immutable creator / assignable owner / participant-history model, the
Assign-to-me and Assign-to session menu actions, the sessions tool
assign_owner action, the sidebar Owners facet with Involving-me, the
pair-stack owner avatar, and agent-spawned session receipts (sessionUrl +
owner acknowledgement). Adds the sessions.assignOwner method and ownership
row projections to the protocol reference and a zh-CN glossary entry for
the new link label.

* docs: drop nonexistent header facepile overflow count

The chat header receives the already 4-capped participant projection and no
total count, so its overflow branch cannot render. Describe up to four
avatars instead (ClawSweeper P2).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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