Repository navigation
feat(cron): let human owners manage and transfer automations - #189749
Conversation
|
🦞👀 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: needs maintainer review before merge. What this changesAdds human-owned automation management and transfers that pause jobs, cancel active runs, and retire captured execution authority. Example: Alice transfers “Hourly session ping” to Bob.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR delivers a maintainer-directed ownership feature, addresses the previous findings, and has successful pinned-head CI; no actionable correctness defect remains. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI sends automation mutations through Gateway authorization to the existing cron persistence and execution owners, which store ownership and enforce cancellation and credential recovery. flowchart LR
A[Human operator] --> B[Automations editor]
B --> C[Gateway ownership checks]
C --> D[Cron mutation owner]
D --> E[SQLite job storage]
D --> F[Active run cancellation]
E --> G[Scheduled execution admission]
G --> H[Authorized tools and provider calls]
Technical reviewBest possible solution: Keep human management ownership in the existing Gateway and cron owners, with transfer cancellation and fresh execution-authority capture enforced before effects. Do we have a high-confidence way to reproduce the issue? Current main's authorization path confirms that direct human scheduler mutations require administrator scope; no target code was executed during this review. Is this the best way to solve the issue? The implementation keeps management ownership separate from creator provenance and conversation capabilities, and extends existing mutation, cancellation, profile-selection, and credential owners rather than adding a competing authority system. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a6296100c8d0. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +493, Tests +555, Docs +15, Other +2. Total +1065 across 52 files. Added test files: 2. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
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 HistoryReview history (2 earlier review cycles)
Reviewed October 31, 2026, 8:06 PM ET / November 1, 2026, 00:06 UTC (Revision 3). |
Inspected before/after browser proofActual source Control UI in Chromium at 1440×1000, with the same synthetic disabled automation and profile-directory fixture. Each capture passed a Vitest browser assertion for the editor and the presence/absence of the Owner field, then the shared settled-frame screenshot checks. Both images were inspected and contain only synthetic data.
This proves the rendered change, not real-Gateway authorization or provider credential isolation; those remain separate test boundaries. BeforeAfter |
Keep the human owner separate from creator provenance, enforce owner/admin mutations, and retire execution authority on transfer. Add Gateway, runtime and UI regression coverage; allocate 353 net regression-test lines for these distinct boundaries. Co-authored-by: VACInc <[email protected]>
Keep prior published history while preparing the next independent PR. Co-authored-by: VACInc <[email protected]> # Conflicts: # src/agents/subagents/announce/subagent-announce-controller-source.ts # src/agents/subagents/registry/subagent-controller-inputs.test.ts
Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: bc29e621-c332-4cb0-ad1c-6454be532f36
Distinguish actual transfers from legacy app-only recovery, guard shared-session dispatch, and repair ownership UI lifecycle and regression contracts. Co-authored-by: VACInc <[email protected]>
Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: 16a9f6bb-6328-4e37-b985-ec057ddcf989
Integrate the exact CI base and repair the two failed E2E contracts. Non-admin notices retain read-only coverage and revoke in-flight reads when their operator source disappears. Match the combined hovercard context row. Co-authored-by: VACInc <[email protected]>
Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: 221b9b4d-50ad-4559-a54a-67f562310de4
Co-authored-by: VACInc <[email protected]>
Integrate the exact failing CI base and preserve its separator-free settings rows. Keep the Memory assertions on host sizing and asset/probe lifecycle without restoring removed dividers. Co-authored-by: VACInc <[email protected]>
82b0997 to
156ed1d
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Co-authored-by: VACInc <[email protected]>
Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: d4886ab5-c875-482d-b87c-b87871d59823
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Isolate presented permissions from aggregate search state while retaining live owner, identity, and access updates. Keep mutation-time authority checks unchanged. Related: #189749. Chromium desktop script CPU returns to the feature-parent baseline; mobile median is within 4%, with a noisy identical-parent tail. Preserve owner-management and transfer behavior.
Isolate presented permissions from aggregate search state while retaining live owner, identity, and access updates. Keep mutation-time authority checks unchanged. Related: openclaw#189749. Chromium desktop script CPU returns to the feature-parent baseline; mobile median is within 4%, with a noisy identical-parent tail. Preserve owner-management and transfer behavior.


What Problem This Solves
Automation owners cannot manage or hand over their schedules from the Automations page without administrator access.
User Impact and Design
The editor gains an Owner selector beneath Agent. Administrators and the current human owner can edit or transfer an automation; other humans cannot modify it. Agent-created jobs retain separate conversation-scoped capability checks.
A transfer pauses the automation, cancels active occurrences, and retires captured execution authority. The recipient cannot silently use the previous owner's credentials. Trusted human-creator records supply the initial owner without rewriting audit provenance. Ordinary edits, force-run, or transferring back do not satisfy the requirement for fresh execution-authority capture.
The Gateway owns authorization and retirement; the UI reflects its decisions. Human ownership, immutable creator provenance, and agent/session capability stay separate. Host-command, session-routing, tool and approval restrictions are preserved. Requested by @VACInc.
Review Repairs
Initial five findings repaired in
9b34a698(original3de16314):ownerTransferPendingdistinguishes actual transfers from legacy app-only recovery.The active-execution finding on
156ed1d1is repaired in49f55e04: the existing committed-mutation cancellation owner now cancels when human ownership changes, including force-runs of already-paused jobs. Explicit-disable cancellation remains intact, while display edits and unchanged ownership do not cancel. This adds two net production lines, not another revocation mechanism.Current Candidate and Proof
Published head
be693bc6c568c5c5778925a324844710410173b1has exactly the tested49f55e04tree. Rebased onto7232a8de67eff527b3f5764987312f2424beda94as requested; the rebase tree matched an independent integration oracle. Upstream Memory/hovercard fixes were preserved, not replaced with obsolete assertions. Human credit and authored repairs were retained.156ed1d1, both enabled/paused scheduler cases fail because cancellation never arrives, and the real Gateway/browser run incorrectly completes successfully after transfer. With49f55e04, scheduler 3/3 pass and real-Gateway/browser 1/1 passes.156ed1d1, bothbaseandcron-scheduled-authorityscenarios successful. Package integrity and npm install acceptance also passed. This is explicitly pre-repair-head evidence: the only later production change is post-commit active-run cancellation; schemas, migration, persisted fields, recovery and startup are unchanged. Current-head cancellation behavior is separately proven above. No image publication or deployment.Retained earlier proof and disclosed gaps
fd55221cand pass with the fix; ownership UI likewise fails on the base.Visual Proof
Actual source UI, same synthetic fixture, Chromium 1440×1000, before original base and after
a58a740; this UI is unchanged by the rebase and cancellation repair. Both sanitized captures were inspected, attached in the originating chat, and uploaded in the proof comment. Both images were also verified rendering at 1440×1000 in the actual GitHub PR page and those rendered screenshots inspected. Visual gate complete.Final-head ClawSweeper review complete: review, reviewed
be693bc6at 2026-11-01 00:06 UTC. No findings, no before-merge items, ready for maintainer review. No live Gateway, deployment, or user automation was modified.Worked on by