Skip to content

fix: let users schedule their own work in handed-off chats - #201015

Merged
VACInc merged 2 commits into
mainfrom
openclaw/crisp-shrimp
Nov 18, 2026
Merged

VACInc merged 2 commits into
mainfrom
openclaw/crisp-shrimp

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

What Problem This Solves

A user with operator.write could resume a dashboard chat that an agent had started, ask for a recurring job, and repeatedly get “this turn was not started by the owner.” The scheduler never received the request.

User Impact

After the parent agent releases the chat, fresh authenticated Control UI requests can use the caller’s existing permission to schedule their own work. No administrator role or configuration change is needed.

Why This Change Was Made

The chat still records which session spawned it. That record describes how the chat began, not who sent the current message. For cron creation, distinguish a dashboard chat with no live parent controller from an actively supervised child. Keep the direct-input checks and the caller’s tool restrictions. Even an administrator using this exception receives no global cron management or local-operator grant.

Evidence

Reproduced the denial through chat.send with a persisted spawned dashboard session, for both a write-scoped user and an administrator. Both cases failed on unchanged main and passed with the fix. The focused WebChat suite passed (17 cases), as did the operator admission and cron transport suites, production and test type checks, and formatting and lint. No live job was created or Discord message sent during these checks.

Work sessions

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

Worked on by

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

Co-authored-by: VACInc <[email protected]>
OpenClaw-Publication: 94beea52-fe66-8c24-a445-c7d4162dc8bb
@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.

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: 00b73878729e1c44fefd6b56a4fafe0b25398abd
  • Maintainer: @roboclaw-bot
  • Repository role: maintain

These security sensitive changes were made:

  • src/gateway/server-methods/chat-send-external-authority-contract.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/server-methods/cron-creator-authority-admission.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.

Carefully review these changes before merging.

@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. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. 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: needs maintainer review before merge.

What this changes

This PR lets authenticated Control UI users schedule their own work in spawned dashboard chats after parent control ends.

Example: A user with operator.write continues agent:main:dashboard:delegated-task after its parent releases control and requests a daily reminder.

  • Before: Historical spawnedBy metadata prevents the turn from receiving scheduling authority.
  • After: The turn receives caller-scoped creation authority without local-operator or global automation-management privileges.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The focused implementation appears correct and useful, but supplied validation does not satisfy the changed-behavior proof requirement.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A permitted user cannot schedule work from a dashboard conversation after its spawning agent releases control.
Reason: The maintainer-authored direction restores established scoped scheduling behavior while keeping supervised children and synthetic input excluded.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR addresses a current scheduling admission bug, and source review found no actionable correctness defects.

Priority: P2
Reviewed head: 00b73878729e1c44fefd6b56a4fafe0b25398abd

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Show an authenticated Control UI user with operator.write successfully creating a persisted job through a real agent/model after the spawned dashboard chat's parent releases control, using redacted screenshots, logs, or terminal output.
Agent review details

How this fits together

Gateway chat admission combines authenticated caller permissions, input provenance, and session control facts into the authority carried to the agent's automation tool.

flowchart TD
  A[Authenticated Control UI input] --> B[Gateway chat admission]
  C[Session lineage and live controller] --> B
  B --> D[Cron creator authority]
  D --> E[Agent automation tool]
  E --> F[Caller scoped scheduler operations]
Loading

Technical review

Best possible solution:

Keep the narrow exception in the existing admission owner while preserving live parent control, direct-input checks, and caller ownership limits.

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

Current-main source establishes the spawnedBy rejection, and the author reports red/green chat.send regressions for write-scoped and administrator callers; no target code was executed during this review.

Is this the best way to solve the issue?

The patch addresses the admission mismatch using the existing controller and scoped-authority owners, without adding another scheduling path or broadening administrator privileges.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Spawn-lineage exclusion in creator-authority admission changes intended behavior with a stated reason (a345ede: The original configured-MCP repair restricted fresh creator authority to direct authenticated operator turns, excluding spawned and synthetic work.)
  • Caller-scoped scheduling versus global management keeps the original intent (1851659: Allow write-scoped operators to schedule within existing conversation/account ownership without receiving Gateway-wide scheduler administration.)
  • Direct dashboard input classification keeps the original intent (9ace0a5: Bind supported dashboard operations to authenticated external user ingress rather than internal re-entry or delegated work.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Shakker: Raw commit 9ace0a5 adds src/gateway/server-methods/cron-creator-authority-admission.ts:166 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 9ace0a571f41; files: src/gateway/server-methods/cron-creator-authority-admission.ts)
  • Josh Avant: Raw commit a345ede adds src/gateway/server-methods/cron-creator-authority-admission.ts:42 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: a345ede6851c; files: src/gateway/server-methods/cron-creator-authority-admission.ts)
  • Peter Steinberger: Raw commit 1c798b4 adds src/gateway/server-methods/cron-creator-authority-admission.ts:55 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 1c798b4be1af; files: src/gateway/server-methods/cron-creator-authority-admission.ts)

PR surface

Source +20, Tests +56. Total +76 across 5 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 3 25 5 +20
Tests 2 142 86 +56
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 167 91 +76

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: Scheduling is blocked in previously spawned dashboard conversations, with a limited blast radius outside ordinary chat admission.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Scheduling is blocked in previously spawned dashboard conversations, with a limited blast radius outside ordinary chat admission.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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 18, 2026, 12:50 AM ET / 05:50 UTC.

@VACInc
VACInc merged commit 9c105a4 into main Nov 18, 2026
136 checks passed
@VACInc
VACInc deleted the openclaw/crisp-shrimp branch November 18, 2026 11:13
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 19, 2026
…201015)

* fix: let users schedule their own work in handed-off chats

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

* fix: let users schedule their own work in handed-off chats

Worked on by:
- @VACInc

Co-authored-by: VACInc <[email protected]>
OpenClaw-Publication: 94beea52-fe66-8c24-a445-c7d4162dc8bb

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: VACInc <[email protected]>
RomneyDa added a commit that referenced this pull request Nov 19, 2026
* fix: let users schedule their own work in handed-off chats

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

* fix: let users schedule their own work in handed-off chats

Worked on by:
- @VACInc

Co-authored-by: VACInc <[email protected]>
OpenClaw-Publication: 94beea52-fe66-8c24-a445-c7d4162dc8bb

---------

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

(cherry picked from commit 9c105a4)

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

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. security-sensitive-changed size: M 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.

2 participants