Skip to content

feat: let Template automations start paused for onboarding - #196323

Merged
Patrick-Erichsen merged 3 commits into
single-file-templatesfrom
template-paused-jobs
Nov 11, 2026
Merged

Patrick-Erichsen merged 3 commits into
single-file-templatesfrom
template-paused-jobs

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Preserve automations[].enabled: false as an ordinary paused job. Onboarding configures and enables that same job; omitted enabled keeps its normal default.

Evidence

Current layer: 6d6f080bc958327e402613e85ef28887f591f8b7. Full atomic candidate: db3969bece945c1bd54489c8c142071b6046d8f8. One fixture-only stability repair is carried at bottom; all seven upper patches and41commit subjects/order are unchanged. No full-main refresh.

  • Model-picker CI diagnosis and paired geometry proof: the test compared edges from different frames during the existing scale0.9→1 animation. Controlled actual-menu geometry reproduces exactCIright707.90625 while simultaneous gaps remain7.2px and8px. The ordinary local baseline passed and is not causal clearance. Move the existing trial-click stability check before both reads; preserve exact<=, long-email, both viewports, target height, keyboard/search/composition and sessions.patch assertions. All3cases pass19.50s; scoped lint/types/format/ratchets and fresh independent actual-diff review pass. Net1insertion/1deletion; no production change, new waits, timeout/tolerance changes, diagnostics or test-line growth.
  • Settings repair #197156 is merged as147d0414a3aacb4b17e38cb3e8dfde7b095493e9 with review, CI, postmerge CI/Workflow Sanity and native closeout complete. Its six stale assertions reproduce on main; corrected three-file suite passes29/29(45.92s), preserving pending admin request/recurrence/approval/navigation checks. It is already retained in this stack.
  • Actual stable11.3 existing-Claw upgrade proof preserves target agent configuration, four workspace files, consent digests and native cold-Gateway effective inventory agents_list only. Canonical schema22→39/row renames and old-authoring guidance are verified. Executed package4deeed is qualified for this tip: only four E2E files and one production comment differ, so Template/runtime behavior inputs are unchanged. Empty package/MCP/cron-reference tables and unrelated default heartbeat cleanup are explicitly qualified. The completed249b723 hosted review accepted this proof with Findings NONE/Before merge NONE.
  • Retained unchanged-input proof: real-Gateway lifecycle/channel7/7, Home route/dock26/26, guest onboarding plus real-Gateway Home7/7, Template schema/planning18/18, sidebar grouping21/21. Inspected guest setup before/after. These are contract-input qualifications, not whole-current-head CI.
  • Previous actual ready CI: all seven upper suites succeeded; bottom failed only the model-picker timing assertion above. All attempts finish before head replacement. Draft/passive SKIPPED suites remain excluded from product proof. Fresh exact-head CI/security and native admission must qualify this candidate. Root owns repairs; autofix is retired.

Landing and rollout

Land all eight layers atomically through the tip after exact-head gates permit. Preserve historical template-contract-194b7bea exactly. Seven unchanged upper patches retain their qualified reviews; bottom receives fresh review after final publication.

ClawHub #4502, Competitor Watch #22 and Activity #197058 are merged. Consumer release, manual backend cutover, new registry publication and live Gateway changes remain separate.

@clawsweeper

clawsweeper Bot commented Nov 9, 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 app: web-ui App: web-ui gateway Gateway runtime size: M labels Nov 9, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 9, 2026
@clawsweeper

clawsweeper Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR lets Template authors install automations paused and displays their declared state during review and setup.

Example: A Template declares weekly with enabled: false and schedule 0 9 * * 1 in UTC.

  • Before: Validation rejects enabled, and the installer otherwise creates declared jobs enabled.
  • After: Add creates one paused job, review shows Paused, and onboarding can configure and enable that same job.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, focused implementation with inspected visual and packaged behavior evidence; the previous finding is resolved, and current-head stack qualification remains pending.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected screenshots prove paused disclosure, and the linked packaged CLI/Gateway receipt proves installation and cold readback of a disabled ordinary job; prior-head evidence remains limited to its named revisions, while the outcome-reporting repair has a focused regression.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Template authors cannot declare recurring jobs that remain paused while onboarding gathers configuration and the user's activation choice.
Reason: Maintainer-authored direction is established, and the implementation adds the missing declaration without introducing another scheduler or lifecycle owner.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it provides useful, maintainer-directed onboarding behavior that main still lacks, and the previous paused-state reporting finding is fixed.

Priority: P2
Reviewed head: d123d651026e9f9ffd60b5b282d48961c15ec99c

Before merge

None.

Findings

None.

Agent review details

How this fits together

Template authoring and catalog readers validate CLAW.md, project review information, and pass declarations through the existing Add installer to the ordinary automation scheduler.

flowchart LR
  A[CLAW.md manifest] --> B[Template validation]
  B --> C[Catalog and draft review]
  B --> D[Template Add plan]
  D --> E[Existing scheduler adapter]
  E --> F[Ordinary automation job]
  F --> G[Configure and enable]
Loading

Technical review

Best possible solution:

Preserve the optional paused declaration through the existing Template and scheduler owners, then land it with the qualified companion stack.

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

This is an additive capability; source inspection confirms main lacks the manifest field and always enables ordinary declared jobs when setup is ready.

Is this the best way to solve the issue?

The change is appropriately small: validation, disclosure, installation, and outcome reporting share the same declaration, while existing automation controls own later configuration and activation.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Gateway-owned automation installation keeps the original intent (96e3051: Install declarations through the Gateway scheduler with scoped declaration identity and reconciliation.)
  • Setup pauses and ordinary-agent Add keeps the original intent (caa978c: Keep unresolved Template setup paused while retaining durable agent/chat state and publishing installation outcomes.)
  • Template preview keeps the original intent (2d54096: Inspect Template contents in the existing compact dialog while reusing catalog, consent, and Add owners.)
  • Generated protocol validation keeps the original intent (f52fb07: Generate fixed-schema predicates ahead of runtime while preserving validation contracts.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Pinned change and current-main boundary: The introduced diff adds an optional manifest boolean and passes it through existing projections and installation. Fetched main still rejects that manifest property and hardcodes enabled: true in the scheduler input. (src/templates/cron.ts:98, d123d651026e)
  • Previous finding resolved: The final commit changes installation outcomes to job.enabled ?? true and extends the existing Add regression to assert the emitted enabled state alongside the actual scheduler job. (src/templates/cron.ts:398, d123d651026e)
  • Inspected visual evidence: The downloaded before/after screenshots visibly change the Weekly brief automation row from schedule-only metadata to schedule metadata followed by Paused; the other two inspected images concern ordinary Template Add and chat rather than paused scheduling. (ui/src/pages/agents-home/templates-detail-view.tsx:195, d123d651026e)
  • Packaged entry-point proof: The detailed receipt at fix(templates): use Gateway-owned Add from the CLI #196431 (comment) records actual packaged CLI requests over WebSocket, one disabled native job, zero provider requests, and preservation of that job after cold Gateway restart; registry archive bytes came from a synthetic HTTP registry. (632abead9296)
  • Preservation and coordinated landing: This PR and feat(templates): bundle complete skill folders with native trust checks #196348 disclose snapshot-backed package-upgrade preservation of configuration, workspace files, and a native paused job. The author explicitly holds landing for qualification of the complete stack; historical builds are identified as historical.
  • Feature history: History across Templates and its earlier Claws name identifies the original Gateway-owned cron installation, the ordinary-agent Add cutover, heartbeat migration, and recent setup work; the new flag preserves those owners. (src/templates/cron.ts:98, f6536e32c089)

Likely related people:

  • Patrick Erichsen: Raw commit caa978c adds src/templates/cron.ts:250 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: caa978caae7a; files: src/templates/cron.ts)

PR surface

Source +36, Tests +180, Docs +7, Other +3. Total +226 across 21 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 11 45 9 +36
Tests 8 558 378 +180
Docs 1 7 0 +7
Config 0 0 0 0
Generated 0 0 0 0
Other 1 3 0 +3
Total 21 613 387 +226

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.

Review metrics

Metric Value Why it matters
Author-facing option 1 optional manifest field automations[].enabled defaults to true when omitted; false reuses the scheduler's existing disabled state.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • 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:

  • P2: This is a bounded Template onboarding improvement that prevents declared recurring work from starting before the user chooses activation.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

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.

History

Review history (4 earlier review cycles)
  • reviewed 2026-11-09T23:55:12.610Z sha 16115153f0d5e7faebb755f3fbccf81437e01b67 :: needs maintainer review before merge. :: none
  • reviewed 2026-11-10T03:21:20.590Z sha 5ce8462 :: blocked before merge. :: none
  • reviewed 2026-11-10T06:22:44.381Z sha 5ce8462 :: needs maintainer review before merge. :: none
  • reviewed 2026-11-11T02:50:19.209Z sha b9279c8 :: needs changes before merge. :: [P2] Report the declared paused state in the installation outcome

Reviewed November 10, 2026, 10:59 PM ET / November 11, 2026, 03:59 UTC (Revision 5).

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 10, 2026
@clawsweeper clawsweeper Bot added 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 Nov 11, 2026
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. 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. clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 11, 2026
@Patrick-Erichsen
Patrick-Erichsen force-pushed the template-paused-jobs branch 5 times, most recently from 664f259 to 16f139c Compare November 11, 2026 07:42
@Patrick-Erichsen
Patrick-Erichsen marked this pull request as draft November 11, 2026 08:37
@Patrick-Erichsen
Patrick-Erichsen marked this pull request as ready for review November 11, 2026 08:50
@Patrick-Erichsen
Patrick-Erichsen marked this pull request as draft November 11, 2026 09:21
@Patrick-Erichsen
Patrick-Erichsen marked this pull request as ready for review November 11, 2026 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation gateway Gateway runtime P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L 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