Skip to content

fix: assign requested sessions and automations to the person who asked - #200952

Merged
VACInc merged 2 commits into
mainfrom
openclaw/tender-crab
Nov 18, 2026
Merged

VACInc merged 2 commits into
mainfrom
openclaw/tender-crab

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

What Problem This Solves

When someone asks an agent in a shared conversation to start work, a new child session can be assigned to the agent instead. A scheduled job can also record the person who opened the conversation rather than the person who asked for the schedule. The requester then cannot rely on the ownership shown for their work.

User Impact

New work uses the verified requester captured by the host, without requiring the model to name an owner. The change is in shared Gateway and scheduler code, not a Discord adapter. It does not transfer existing sessions or jobs, grant administrator access, or enable a paused schedule.

Why This Change Was Made

Use the initiating profile when assigning a new child and when saving a new automation, rather than substituting the parent’s owner or displayed name. Keep the parent’s ownership, execution restrictions, and creation history separate. Autonomous work retains its existing fallback.

Evidence

73 focused tests passed across six files, including child creation under a different owner, autonomous and sandboxed child creation, delegated cron persistence, authenticated creator transports, and owner-transfer recovery. Touched-file lint and format checks passed. Local autoreview of the change against 1619ecb28838 reported no actionable P0/P1 findings. No live per-channel replay or stable-version upgrade was run; this does not establish deployment or change the current watch.

Contributor credit

Requested by @VACInc.

Work sessions

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

Worked on by

roboclaw-bot and others added 2 commits November 18, 2026 03:00
Worked on by:
- @VACInc

Co-authored-by: VACInc <[email protected]>
OpenClaw-Publication: 2068ebb6-278e-8cb0-bbb2-0024adc241b5
@clawsweeper

clawsweeper Bot commented Nov 18, 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 gateway Gateway runtime size: S labels Nov 18, 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. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. 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 18, 2026
@clawsweeper

clawsweeper Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

Assigns newly requested child sessions and automations to the host-verified initiating person.

Example: Bob requests a child session and automation in a conversation created and owned by Alice.

  • Before: The child can remain agent-owned, while the automation names Alice as its human owner.
  • After: Both new items name Bob as owner, without reassigning Alice's conversation or existing work.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The implementation is focused and source-consistent, but supplied proof does not satisfy the behavioral and stored-state compatibility gates.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: People requesting work in shared conversations can see that work assigned to an agent or the conversation's historical creator.
Reason: Accurate initial ownership has clear management value, and the maintainer-authored PR explicitly authorizes changing the earlier cross-owner session policy.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep open: this maintainer-authored PR makes a focused, useful correction to requester ownership, and no definite introduced code defect was found.

Priority: P2
Reviewed head: 37839c6d4aeda4488379c4c01e52181330083433

Before merge

  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

None.

Tests

  • Missing end-to-end proof: Supply a redacted isolated-Gateway run where a different verified requester creates both items and their stored owners are read back, plus latest-stable upgrade preservation and base-red/head-green regression results.
Agent review details

How this fits together

Gateway creation code consumes trusted requester identity and parent-session facts; session creation and the cron mutation owner persist the resulting assignments separately from execution authority.

flowchart TD
  A[Verified human request] --> B[Host requester capture]
  B --> C[Gateway creation context]
  C --> D[Session creation owner]
  C --> E[Cron mutation owner]
  D --> F[Persisted child owner]
  E --> G[Persisted automation owner]
Loading

Technical review

Best possible solution:

Keep requester assignment in the existing session-creation and cron-mutation owners while preserving existing records and execution restrictions.

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

Current-main source deterministically produces the reported assignments for a requester different from the parent human owner or legacy cron creator; no product execution was performed during this read-only review.

Is this the best way to solve the issue?

The patch is a small repair at the existing decision owners, reuses trusted initiating identity, and preserves new-entry-only assignment rather than introducing another ownership mechanism.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Visible-child ownership and documentation changes intended behavior with a stated reason (00f7785: Assign visible work to a matching verified requester without inheriting a different human parent's ownership.)
  • Requester fallback for channel-originated children changes intended behavior with a stated reason (3a22d6f: Recognize administrator-linked channel requesters while preserving different-human parent ownership and separate authority.)
  • Delegated creator capture keeps the original intent (3097cee: Retain the verified initiating human separately from legacy execution and isolation identity.)
  • Initial automation human owner changes intended behavior with a stated reason (975e68c: Give human automation owners management controls while keeping transfers and captured execution authority separate.)
  • Cron mutation ownership keeps the original intent (b943945: Move scheduling and job-edit decisions into the existing cron worker owner.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • RoboClaw: Raw commit 00f7785 adds src/config/sessions/session-entry-provenance.ts:49 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 00f7785a0f55; files: src/config/sessions/session-entry-provenance.ts)
  • Peter Steinberger: Raw commit 7f5c0c3 adds src/cron/store/job-mutations.worker.ts:126 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 7f5c0c3a4d92; files: src/cron/store/job-mutations.worker.ts)

PR surface

Source +13, Tests +1, Docs +3. Total +17 across 9 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 5 31 18 +13
Tests 3 5 4 +1
Docs 1 6 3 +3
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 9 42 25 +17

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.

Labels

Label changes:

  • add P2: Incorrect ownership affects management and responsibility for newly delegated work in shared conversations, with a limited blast radius.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.

Label justifications:

  • P2: Incorrect ownership affects management and responsibility for newly delegated work in shared conversations, with a limited blast radius.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.

Rank-up moves

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

  • Provide the production-entry-point and upgrade evidence described in the proof assessment.

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 17, 2026, 10:16 PM ET / November 18, 2026, 03:16 UTC.

@VACInc
VACInc merged commit e235b2b into main Nov 18, 2026
141 checks passed
@VACInc
VACInc deleted the openclaw/tender-crab branch November 18, 2026 03:52
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 18, 2026
openclaw#200952)

* fix: assign requested sessions and automations to their initiator

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

* fix: assign requested sessions and automations to the person who asked

Worked on by:
- @VACInc

Co-authored-by: VACInc <[email protected]>
OpenClaw-Publication: 2068ebb6-278e-8cb0-bbb2-0024adc241b5

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: VACInc <[email protected]>
steipete added a commit that referenced this pull request Nov 18, 2026
Follow #200952: Alice owns sessions she requests even when Bob supplies execution authority. Preserve autonomous agent ownership expectations. All 174 spawn-boundary, child-custody, and provenance tests pass; Codex scoped review is clean.
steipete added a commit that referenced this pull request Nov 18, 2026
…200966)

* perf(agents): materialize selected rows for simple completions

* style: satisfy selected completion lint checks

* test: bind isolated registry measurement to concrete instances

* test: align participant custody with requester ownership

Follow #200952: Alice owns sessions she requests even when Bob supplies execution authority. Preserve autonomous agent ownership expectations. All 174 spawn-boundary, child-custody, and provenance tests pass; Codex scoped review is clean.

* fix: retain missing-session facts across database creation

Preserve first-chat authorization when catalog persistence opens the selected absent database. Keep session-row, lifecycle, routing, and source-revocation guards intact. The focused bisect identifies #197510 as the first failing first-chat authorization boundary; #199565 had repaired other cold-registration orderings.

The deterministic regression is red before this fix. All 66 owning tests and three complete real Gateway reload trials pass; Codex review is clean through P2. check:changed passes every check except nine unused exports reproduced identically on exact main parent 97b03f7 and attributed to #200533, #198455, and #200817. Preserve peer cleanup scope in #201019.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 19, 2026
…penclaw#200966)

* perf(agents): materialize selected rows for simple completions

* style: satisfy selected completion lint checks

* test: bind isolated registry measurement to concrete instances

* test: align participant custody with requester ownership

Follow openclaw#200952: Alice owns sessions she requests even when Bob supplies execution authority. Preserve autonomous agent ownership expectations. All 174 spawn-boundary, child-custody, and provenance tests pass; Codex scoped review is clean.

* fix: retain missing-session facts across database creation

Preserve first-chat authorization when catalog persistence opens the selected absent database. Keep session-row, lifecycle, routing, and source-revocation guards intact. The focused bisect identifies openclaw#197510 as the first failing first-chat authorization boundary; openclaw#199565 had repaired other cold-registration orderings.

The deterministic regression is red before this fix. All 66 owning tests and three complete real Gateway reload trials pass; Codex review is clean through P2. check:changed passes every check except nine unused exports reproduced identically on exact main parent 4dca39a and attributed to openclaw#200533, openclaw#198455, and openclaw#200817. Preserve peer cleanup scope in openclaw#201019.
RomneyDa added a commit that referenced this pull request Nov 19, 2026
#200952)

* fix: assign requested sessions and automations to their initiator

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

* fix: assign requested sessions and automations to the person who asked

Worked on by:
- @VACInc

Co-authored-by: VACInc <[email protected]>
OpenClaw-Publication: 2068ebb6-278e-8cb0-bbb2-0024adc241b5

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: VACInc <[email protected]>

(cherry picked from commit e235b2b)

Co-authored-by: RomneyDa <[email protected]>
RomneyDa added a commit that referenced this pull request Nov 19, 2026
…200966)

* perf(agents): materialize selected rows for simple completions

* style: satisfy selected completion lint checks

* test: bind isolated registry measurement to concrete instances

* test: align participant custody with requester ownership

Follow #200952: Alice owns sessions she requests even when Bob supplies execution authority. Preserve autonomous agent ownership expectations. All 174 spawn-boundary, child-custody, and provenance tests pass; Codex scoped review is clean.

* fix: retain missing-session facts across database creation

Preserve first-chat authorization when catalog persistence opens the selected absent database. Keep session-row, lifecycle, routing, and source-revocation guards intact. The focused bisect identifies #197510 as the first failing first-chat authorization boundary; #199565 had repaired other cold-registration orderings.

The deterministic regression is red before this fix. All 66 owning tests and three complete real Gateway reload trials pass; Codex review is clean through P2. check:changed passes every check except nine unused exports reproduced identically on exact main parent 97b03f7 and attributed to #200533, #198455, and #200817. Preserve peer cleanup scope in #201019.

(cherry picked from commit 8610cd6)

Co-authored-by: RomneyDa <[email protected]>
github-actions Bot pushed a commit to clawhaven/openclaw that referenced this pull request Nov 23, 2026
…penclaw#200966)

* perf(agents): materialize selected rows for simple completions

* style: satisfy selected completion lint checks

* test: bind isolated registry measurement to concrete instances

* test: align participant custody with requester ownership

Follow openclaw#200952: Alice owns sessions she requests even when Bob supplies execution authority. Preserve autonomous agent ownership expectations. All 174 spawn-boundary, child-custody, and provenance tests pass; Codex scoped review is clean.

* fix: retain missing-session facts across database creation

Preserve first-chat authorization when catalog persistence opens the selected absent database. Keep session-row, lifecycle, routing, and source-revocation guards intact. The focused bisect identifies openclaw#197510 as the first failing first-chat authorization boundary; openclaw#199565 had repaired other cold-registration orderings.

The deterministic regression is red before this fix. All 66 owning tests and three complete real Gateway reload trials pass; Codex review is clean through P2. check:changed passes every check except nine unused exports reproduced identically on exact main parent 97b03f7 and attributed to openclaw#200533, openclaw#198455, and openclaw#200817. Preserve peer cleanup scope in openclaw#201019.

(cherry picked from commit 8610cd6)
Release adaptation: approved 2026.11.7 models replay; see models-hook-safe-v2/REPORT.md.
Co-authored-by: RomneyDa <[email protected]>
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 P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants