Repository navigation
fix: assign requested sessions and automations to the person who asked - #200952
Conversation
Co-authored-by: VACInc <[email protected]>
Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: 2068ebb6-278e-8cb0-bbb2-0024adc241b5
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. What this changesAssigns 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.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete 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 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherGateway 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]
Technical reviewBest 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
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +13, Tests +1, Docs +3. Total +17 across 9 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 17, 2026, 10:16 PM ET / November 18, 2026, 03:16 UTC. |
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]>
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.
…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.
…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.
#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]>
…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]>
…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]>
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
1619ecb28838reported 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