Skip to content

RFC 0026: Automations terminology and configurable feature naming - #50

Merged
omarshahine merged 4 commits into
mainfrom
rfc-0026-automations-terminology
Jul 29, 2026
Merged

omarshahine merged 4 commits into
mainfrom
rfc-0026-automations-terminology

Conversation

@omarshahine

Copy link
Copy Markdown
Contributor

Summary

RFC 0026 proposes finishing the cron → Automations rename so the word "cron" never appears in user-facing UX or model-visible text when naming the feature, and adding a ui.terminology config so tailored deployments can use a custom term (e.g. "Habits").

Key boundaries:

  • Display/prompt layer only. Config key cron.*, gateway RPC cron.* methods, SQLite tables, state paths, session-key prefix, and the openclaw cron CLI token (kept as alias) are untouched — no protocol bump, no storage migration.
  • "Cron" stays the syntax name (cron expressions, --cron, {kind:"cron"}), mirroring the split the UI schedule selector and docs already draw.
  • Phase 1: string sweep across the agent surface (tool rename to automations with allow-list alias, system prompt, heartbeat guidance, session labels, delivery notices), UI leftovers (~8 catalog values + 1 hardcoded prefix + /cron route alias + command palette), CLI alias + prose, doctor prose, docs body copy.
  • Phase 2: ui.terminology.automation.{singular,plural} injected via existing i18n param interpolation, prompt-builder templating, and CLI formatters.

Backed by a four-surface audit of the current codebase (agent-facing strings, CLI, web UI i18n catalog, config schema/docs); file references inline in the RFC.

Status: draft, per RFC lifecycle. Discussion thread in maintainer-discussion to follow.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WhJ8EiMXue6ADLmHfb7FL6

@omarshahine

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 24, 2026 •

Copy link
Copy Markdown

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@giodl73-repo giodl73-repo self-assigned this Jul 25, 2026

@giodl73-repo giodl73-repo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The direction is good: consolidating the user-facing feature name around Automations addresses a real product inconsistency. I am requesting revisions for three cross-surface contract gaps before the RFC is accepted: the agent tool rename is a runtime identity migration rather than a string sweep, the configurable terminology needs an explicit owner/distribution/localization model, and CLI help is registered before config bootstrap.

Phase 1's UI and copy cleanup makes sense. Phase 2 should align with the accepted and merged localization contract in RFC 0024 (#42), or explicitly narrow configurable terminology to English with defined fallback behavior.

Comment thread rfcs/0026-automations-terminology.md Resolved
Comment thread rfcs/0026-automations-terminology.md Outdated
- **UI.** The i18n layer's existing `t(key, params)` interpolation carries
the term: the affected `en.ts` values (~30 keys, mostly the `cron.*`
namespace) gain `{term}`/`{termPlural}`/`{termTitle}` placeholders, and
the i18n manager injects the configured values as ambient params. No

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please align this with the accepted and merged localization RFC 0024 (#42). ui.assistant.name is not an equivalent precedent: current config defines ui as presentation customization without runtime behavior, and that value is projected only as Control UI identity. This terminology value would also change agent prompts and CLI output.

The Control UI bootstrap contract does not currently carry terminology, so ambient interpolation requires a new Gateway-to-browser projection plus reload/fallback semantics. A single English singular/plural pair also cannot grammatically satisfy all supported UI locales; RFC 0024 explicitly requires mixed-language interpolation checks for adopted localized surfaces.

I suggest shipping Phase 1 independently, then either (a) scope custom terminology to English with explicit fallback behavior or (b) use locale-keyed singular/plural labels. The RFC should also name the runtime-wide config owner and the Gateway carrier rather than silently broadening ui.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in a2dd348. Phase 2 is reworked to compose with RFC 0024: the config shape is locale-keyed from day one (en required), v1 is explicitly English-first with defined fallback — a locale without an entry renders its canonical localized term, so a custom English word never leaks into a non-English sentence. The ui broadening is now explicit rather than silent: the RFC amends the documented ui contract to state ui.terminology is a runtime-wide product-language value consumed by Control UI, prompt builders, and CLI formatters. The gateway carrier is named: the Control UI bootstrap payload gains a terminology field (same projection as ui.assistant.name), with re-projection on config reload and fallback to built-in defaults on missing/invalid values. Phases are now explicitly independent — Phase 1 stands alone. Added an open question on which surfaces count as "adopted localized surfaces" under 0024's interpolation checks.

Comment thread rfcs/0026-automations-terminology.md Resolved
@steipete

Copy link
Copy Markdown
Contributor

+1 on this. I did a lot of work to unify the cron system, heartbeats are just crons now too. So Automations is way more user-friendly than cron.

… alignment, CLI help exclusion

- Specify the agent tool rename as a canonical identity migration: single
  name constant + predicate, inventory of exact-name consumers on main,
  doctor rewrite of persisted policy, bounded invocation alias, transcript
  stance, and old/new-name regression tests.
- Rework Phase 2 to compose with accepted localization RFC 0024: locale-keyed
  config shape, English-first scope with explicit fallback, named gateway
  bootstrap carrier and reload semantics, and an explicit (not silent)
  broadening of the ui contract.
- Exclude CLI --help and registration strings from configurable terminology;
  buildProgram() registers help before config bootstrap, so custom terms
  apply to post-bootstrap output only.
- Phases are now explicitly independent; prune resolved open questions.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WhJ8EiMXue6ADLmHfb7FL6
@omarshahine
omarshahine requested a review from giodl73-repo July 28, 2026 00:25
@clawsweeper clawsweeper Bot added 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. P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. labels Jul 28, 2026
@clawsweeper

clawsweeper Bot commented Jul 28, 2026 •

Copy link
Copy Markdown

Codex review: needs real behavior proof before merge. Reviewed July 28, 2026, 12:32 AM ET / 04:32 UTC.

ClawSweeper review

What this changes

This RFC adds a proposed “Automations” name for user- and model-facing scheduler surfaces and introduces locale-aware configurable terminology for the UI, prompts, and post-bootstrap CLI output.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

This RFC is still necessary: it asks maintainers to approve a new product-language and configuration contract, while the linked OpenClaw implementation slices remain open. The document addressed the prior review’s tool-identity, localization, and CLI-lifecycle concerns, but that does not replace a maintainer decision on whether the permanent terminology and configuration surface should be accepted.

Priority: P3
Reviewed head: 2841c8724992efa928b7977531e20b59bb599fa2
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The document is focused and incorporates the prior detailed technical review, but approval still depends on a maintainer product decision.
Proof confidence 🌊 off-meta tidepool Not applicable: This PR changes only an RFC document, so after-fix runtime behavior proof is not required at this stage.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This PR changes only an RFC document, so after-fix runtime behavior proof is not required at this stage.
Evidence reviewed 4 items RFC remains a draft proposal: The proposed RFC header marks its status as draft and describes both a display-name sweep and a new locale-aware terminology configuration contract, so merging it would make a product-direction decision rather than merely document existing behavior.
Prior technical review was incorporated: The final RFC commit records the permanent cron invocation alias and no Doctor rewrite decision after the review identified direct-name scheduler consumers, localization-contract boundaries, and CLI help bootstrap limits.
Implementation is active, not a replacement: The discussion links five still-open OpenClaw implementation pull requests for the agent, user-facing strings, UI, CLI, and documentation portions. They are candidate delivery slices, not a merged decision that supersedes this RFC.
Findings None None.
Security None None.

How this fits together

OpenClaw’s scheduler uses cron-based jobs internally but exposes them through agent tools, Control UI strings, CLI output, Doctor guidance, and documentation. The RFC defines a presentation and configuration contract that would feed those surfaces while preserving existing scheduler protocols and stored state.

flowchart LR
  Scheduler[Internal scheduled job system] --> Agent[Agent tools and prompts]
  Scheduler --> ControlUI[Control UI]
  Scheduler --> CLI[CLI and Doctor output]
  Terminology[Terminology configuration] --> Agent
  Terminology --> ControlUI
  Terminology --> CLI
  Agent --> Users[User-visible product language]
  ControlUI --> Users
  CLI --> Users
Loading

Decision needed

Question Recommendation
Should OpenClaw standardize the scheduler’s user- and model-facing name as “Automations” and accept a locale-aware runtime-wide terminology configuration surface, or limit the work to the non-configurable terminology sweep? Approve phased contract: Approve the display-language sweep now and the locale-aware terminology configuration contract with the RFC’s explicit fallback and bootstrap boundaries.

Why: The branch is an RFC proposing new product language and configuration behavior; its technical constraints have been clarified, but selecting the permanent product and configuration contract requires maintainer intent.

Before merge

  • Add real behavior proof - Not applicable: This PR changes only an RFC document, so after-fix runtime behavior proof is not required at this stage.
  • Resolve merge risk (P1) - Accepting configurable terminology would extend a value currently presented as UI customization into a runtime-wide contract consumed by prompts, Control UI bootstrap data, and post-bootstrap CLI output; maintainers should explicitly own its compatibility and localization boundaries.
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
RFC scope 1 file added, 333 lines The PR is documentation-only, so the merge decision is about the proposed contract rather than runtime patch safety.
Delivery split 5 linked implementation PRs The proposal intentionally separates agent, UI, CLI, and documentation delivery into focused downstream changes.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Accept or narrow the RFC’s terminology and locale-aware configuration contract first, then review the linked implementation slices against that approved boundary without changing scheduler identifiers, storage, or RPC protocols.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Accept or narrow the RFC’s terminology and locale-aware configuration contract first, then review the linked implementation slices against that approved boundary without changing scheduler identifiers, storage, or RPC protocols.

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

Not applicable: this PR proposes terminology and configuration contracts rather than reporting a failing current-main behavior.

Is this the best way to solve the issue?

Unclear: the RFC now addresses the concrete technical concerns raised in review, but maintainers must decide whether a runtime-wide configurable product term is the right permanent surface before implementation proceeds.

AGENTS.md: unclear because the file could not be read completely.

Codex review notes: model internal, reasoning high; reviewed against 593e6e46632b.

Labels

Label justifications:

  • P3: This is a scoped RFC seeking product-direction approval, not a current user-facing outage or regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This PR changes only an RFC document, so after-fix runtime behavior proof is not required at this stage.

Evidence

What I checked:

  • RFC remains a draft proposal: The proposed RFC header marks its status as draft and describes both a display-name sweep and a new locale-aware terminology configuration contract, so merging it would make a product-direction decision rather than merely document existing behavior. (rfcs/0026-automations-terminology.md:1, 2841c8724992)
  • Prior technical review was incorporated: The final RFC commit records the permanent cron invocation alias and no Doctor rewrite decision after the review identified direct-name scheduler consumers, localization-contract boundaries, and CLI help bootstrap limits. (rfcs/0026-automations-terminology.md:1, 2841c8724992)
  • Implementation is active, not a replacement: The discussion links five still-open OpenClaw implementation pull requests for the agent, user-facing strings, UI, CLI, and documentation portions. They are candidate delivery slices, not a merged decision that supersedes this RFC.
  • Localization is an adjacent accepted contract: The RFC review explicitly aligns Phase 2 with merged RFC 0024, but that earlier RFC establishes localization principles rather than deciding the scheduler’s product terminology or this new configuration surface. (faf2a3a5b1ac)

Likely related people:

  • giodl73-repo: Authored the merged localization RFC that this proposal composes with and supplied the concrete review constraints incorporated by the current RFC revision. (role: localization RFC contributor and detailed reviewer; confidence: high; commits: faf2a3a5b1ac; files: rfcs/0026-automations-terminology.md)
  • steipete: In the RFC discussion, described prior work unifying the cron system and supported the Automations product term, making this person a relevant routing candidate for the scheduler terminology decision. (role: scheduler-area contributor; confidence: medium; files: rfcs/0026-automations-terminology.md)

Rank-up moves

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

  • Record a maintainer decision on the terminology and configuration contract before treating the linked implementation PRs as an approved rollout.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-07-28T00:28:45.089Z sha a2dd348 :: needs real behavior proof before merge. :: none

omarshahine added a commit to openclaw/openclaw that referenced this pull request Jul 28, 2026
…mations

Rewrites every string the model or user sees that names the feature:
tool label and terminal presentation, display-summary preset, subagents
catalog description, heartbeat guidance, subagent prompt, session labels
(Cron: -> Automation:), default job name, unattended-run preamble, delivery
awareness text, task-ledger progress summary, failure alerts, auto-disable
notification, model preflight diagnostics, validation errors, and the
shipped workspace AGENTS.md template. Adds a system-prompt backstop rule on
the automations tool line: the feature is called automations, never cron.

Cron stays only where it names the schedule syntax ({kind:"cron"}, cron
expressions), config keys (cron.triggers.enabled), RPC method names, and
session-key namespaces. Test fixtures with legacy labels are kept as
stored-data coverage. Part of RFC openclaw/rfcs#50 Phase 1 (PR B).
omarshahine added a commit to openclaw/openclaw that referenced this pull request Jul 28, 2026
…mations

Rewrites every string the model or user sees that names the feature:
tool label and terminal presentation, display-summary preset, subagents
catalog description, heartbeat guidance, subagent prompt, session labels
(Cron: -> Automation:), default job name, unattended-run preamble, delivery
awareness text, task-ledger progress summary, failure alerts, auto-disable
notification, model preflight diagnostics, validation errors, and the
shipped workspace AGENTS.md template. Adds a system-prompt backstop rule on
the automations tool line: the feature is called automations, never cron.

Cron stays only where it names the schedule syntax ({kind:"cron"}, cron
expressions), config keys (cron.triggers.enabled), RPC method names, and
session-key namespaces. Test fixtures with legacy labels are kept as
stored-data coverage. Part of RFC openclaw/rfcs#50 Phase 1 (PR B).
@omarshahine
omarshahine merged commit c876de6 into main Jul 29, 2026
1 check passed

@giodl73-repo giodl73-repo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did a second full pass at 2841c872. The earlier tool-identity, localization-ownership, and CLI-bootstrap concerns are mostly addressed, but the CLI rationale still contradicts the RFC's corrected lifecycle.

Finding

  • [P1] Make the CLI lifecycle statement internally consistent. rfcs/0026-automations-terminology.md:261-264 correctly says buildProgram() registers commands/help before config bootstrap and help/version can exit before the pre-action hook. Line 308 instead says the CLI “builds its command tree after config load, so a dynamic alias is technically possible.” Both cannot be true, and the latter makes Phase 2 sound implementable without the architecture change the Phase 2 section now requires. Please correct/remove it and state whether Phase 2 needs earlier config bootstrap or keeps CLI names static.

Once fixed, the Phase 1 boundary and RFC 0024 ownership model look coherent to me.

omarshahine added a commit to openclaw/openclaw that referenced this pull request Jul 29, 2026
…al identity

Introduce AUTOMATIONS_TOOL_NAME + isAutomationsToolName() in
src/agents/tools/automations-tool-name.ts as the single source of truth for
the scheduler agent tool's name, and convert every exact-name consumer:
factory descriptors, deferred-followup availability detection, add-counting,
policy deny lists, mutation classification, trusted media set, tool catalog
id, system-prompt tool order and tool-line map, sandbox deny defaults,
delegation capability map, MCP loopback probes, and local-model lean deny.

Behavior-neutral: the constant still resolves to "cron". Prepares the
rename in RFC openclaw/rfcs#50 so the flip is a one-line change with no
scattered literals.
omarshahine added a commit to openclaw/openclaw that referenced this pull request Jul 29, 2026
Flip AUTOMATIONS_TOOL_NAME to "automations" and register the legacy name:

- TOOL_NAME_ALIASES gains cron -> automations, so persisted toolsAllow/
  toolsDeny lists, tool groups, and creator allowlists written before the
  rename keep matching through the same shipped mechanism as bash -> exec.
  No doctor rewrite needed.
- isAutomationsToolName() accepts legacy names so saved transcripts keep
  their mutation/replay-safety classification; MUTATING_TOOL_NAMES retains
  the legacy entry for the same reason.
- Tool label, catalog label, and tool-search keywords follow the rename
  ("cron" kept as a search synonym).
- Regression tests cover old-name policy matching (allow and deny), legacy
  transcript replay classification, and legacy creator allowlists
  normalizing to the canonical id.

Model-facing description strings still say cron; those move in the
follow-up strings PR. Part of RFC openclaw/rfcs#50 Phase 1.
omarshahine added a commit to openclaw/openclaw that referenced this pull request Jul 29, 2026
…mations

Rewrites every string the model or user sees that names the feature:
tool label and terminal presentation, display-summary preset, subagents
catalog description, heartbeat guidance, subagent prompt, session labels
(Cron: -> Automation:), default job name, unattended-run preamble, delivery
awareness text, task-ledger progress summary, failure alerts, auto-disable
notification, model preflight diagnostics, validation errors, and the
shipped workspace AGENTS.md template. Adds a system-prompt backstop rule on
the automations tool line: the feature is called automations, never cron.

Cron stays only where it names the schedule syntax ({kind:"cron"}, cron
expressions), config keys (cron.triggers.enabled), RPC method names, and
session-key namespaces. Test fixtures with legacy labels are kept as
stored-data coverage. Part of RFC openclaw/rfcs#50 Phase 1 (PR B).
omarshahine added a commit to openclaw/openclaw that referenced this pull request Jul 30, 2026
…mations

Rewrites every string the model or user sees that names the feature:
tool label and terminal presentation, display-summary preset, subagents
catalog description, heartbeat guidance, subagent prompt, session labels
(Cron: -> Automation:), default job name, unattended-run preamble, delivery
awareness text, task-ledger progress summary, failure alerts, auto-disable
notification, model preflight diagnostics, validation errors, and the
shipped workspace AGENTS.md template. Adds a system-prompt backstop rule on
the automations tool line: the feature is called automations, never cron.

Cron stays only where it names the schedule syntax ({kind:"cron"}, cron
expressions), config keys (cron.triggers.enabled), RPC method names, and
session-key namespaces. Test fixtures with legacy labels are kept as
stored-data coverage. Part of RFC openclaw/rfcs#50 Phase 1 (PR B).
omarshahine added a commit to openclaw/openclaw that referenced this pull request Jul 30, 2026
* refactor(agents): route scheduler tool-name consumers through canonical identity

Introduce AUTOMATIONS_TOOL_NAME + isAutomationsToolName() in
src/agents/tools/automations-tool-name.ts as the single source of truth for
the scheduler agent tool's name, and convert every exact-name consumer:
factory descriptors, deferred-followup availability detection, add-counting,
policy deny lists, mutation classification, trusted media set, tool catalog
id, system-prompt tool order and tool-line map, sandbox deny defaults,
delegation capability map, MCP loopback probes, and local-model lean deny.

Behavior-neutral: the constant still resolves to "cron". Prepares the
rename in RFC openclaw/rfcs#50 so the flip is a one-line change with no
scattered literals.

* feat(agents): rename scheduler agent tool cron -> automations

Flip AUTOMATIONS_TOOL_NAME to "automations" and register the legacy name:

- TOOL_NAME_ALIASES gains cron -> automations, so persisted toolsAllow/
  toolsDeny lists, tool groups, and creator allowlists written before the
  rename keep matching through the same shipped mechanism as bash -> exec.
  No doctor rewrite needed.
- isAutomationsToolName() accepts legacy names so saved transcripts keep
  their mutation/replay-safety classification; MUTATING_TOOL_NAMES retains
  the legacy entry for the same reason.
- Tool label, catalog label, and tool-search keywords follow the rename
  ("cron" kept as a search synonym).
- Regression tests cover old-name policy matching (allow and deny), legacy
  transcript replay classification, and legacy creator allowlists
  normalizing to the canonical id.

Model-facing description strings still say cron; those move in the
follow-up strings PR. Part of RFC openclaw/rfcs#50 Phase 1.

* test(agents): update creator-cap expectations for canonical automations id

The creator tool surface derives from normalized live tool names, so derived
toolsAllow outputs now emit "automations". Passthrough paths without a
creator cap keep storing user input verbatim; those expectations stay on the
legacy name as stored-data coverage.

* fix(gateway): canonicalize legacy cron tool calls and restore scheduler deny protection

Review follow-ups from ClawSweeper and Codex on the rename (RFC 0026):

- MCP loopback tools/call resolves legacy "cron" names to the published
  automations tool without re-advertising the old name in tools/list.
- Gateway /tools/invoke canonicalizes legacy names before core-id checks and
  exact-name dispatch, so pre-rename integrations keep working.
- Security fix: dangerous-tools deny lists (owner-only HTTP deny and
  control-plane set) were keyed on the literal "cron", so the renamed tool
  silently lost default-deny and owner-only protection on the HTTP invoke
  surface. Lists now use the canonical constant, and the gateway.tools.allow
  un-deny filter normalizes both sides so legacy allow entries still lift it.
- Voice high-impact confirmation list and MCP serve creator allowlist follow
  the canonical name.

Existing cron-regression suite now proves the legacy path end to end:
default deny 404 for both names, legacy allow entry lifts the deny, and
non-owner protection holds.

* fix(agents): cover stdio MCP legacy calls, probe prompts, and prompt snapshots for the rename

- stdio MCP servers (openclaw-tools-serve / plugin tools handlers) resolve
  legacy "cron" callTool names to the published canonical tool, matching
  the HTTP loopback behavior; listTools stays canonical-only.
- Live probe prompts instruct harnesses to load/call the automations MCP
  tool (mcp__openclaw__automations) instead of the retired name.
- Prompt snapshot fixture filter follows the canonical name (the renamed
  tool had silently dropped out of the Codex dynamic-tools snapshots);
  snapshots regenerated as a clean rename.
- Type-cast the new mcp-http handler test payloads for check-test-types.

* test(agents): update tool-surface expectations for the automations rename

CI-surfaced fallout in shards not covered by the focused local runs: tool
availability, agent-config filtering, coding-tools construction,
model-provider lean policy, and skill dispatch all assert the scheduler
tool's surface name. Mock fixtures and expectations follow the canonical
id; legacy-name coverage stays in the dedicated policy/creator-cap/invoke
regression suites.

* test(gateway): update tool-resolution exclude expectations for automations rename

* test(security): update trust-model audit expectations for automations rename

* docs(agents): declare cron a permanent scheduler-tool alias per owner decision

Maintainer decision (Omar): cron is not being retired anywhere — config keys,
RPC methods, schedule syntax, and the CLI token all keep it, and the tool
alias follows the same permanent contract as bash -> exec. No doctor rewrite
and no removal window; comments updated to state the contract instead of a
deprecation plan.

* chore(agents): regen prompt snapshots after rebase onto main

* fix(agents): teach canonical automations tool in fallback guidance and reuse the identity source

Review follow-ups: the structured-list fallback still taught models the cron
tool; the cron-scope test echoed its own stub; MCP serve allowlist and voice
confirmation hardcoded the name instead of the canonical constant.

* fix(mcp): place automations identity import outside the header comment

---------

Co-authored-by: Omar Shahine <[email protected]>
omarshahine added a commit to openclaw/openclaw that referenced this pull request Jul 30, 2026
…mations

Rewrites every string the model or user sees that names the feature:
tool label and terminal presentation, display-summary preset, subagents
catalog description, heartbeat guidance, subagent prompt, session labels
(Cron: -> Automation:), default job name, unattended-run preamble, delivery
awareness text, task-ledger progress summary, failure alerts, auto-disable
notification, model preflight diagnostics, validation errors, and the
shipped workspace AGENTS.md template. Adds a system-prompt backstop rule on
the automations tool line: the feature is called automations, never cron.

Cron stays only where it names the schedule syntax ({kind:"cron"}, cron
expressions), config keys (cron.triggers.enabled), RPC method names, and
session-key namespaces. Test fixtures with legacy labels are kept as
stored-data coverage. Part of RFC openclaw/rfcs#50 Phase 1 (PR B).
omarshahine added a commit to openclaw/openclaw that referenced this pull request Jul 30, 2026
…mations (#114852)

* fix(agents): teach canonical automations tool in fallback guidance and reuse the identity source

Review follow-ups: the structured-list fallback still taught models the cron
tool; the cron-scope test echoed its own stub; MCP serve allowlist and voice
confirmation hardcoded the name instead of the canonical constant.

* fix(mcp): place automations identity import outside the header comment

* feat(agents): rename model- and user-facing scheduler strings to automations

Rewrites every string the model or user sees that names the feature:
tool label and terminal presentation, display-summary preset, subagents
catalog description, heartbeat guidance, subagent prompt, session labels
(Cron: -> Automation:), default job name, unattended-run preamble, delivery
awareness text, task-ledger progress summary, failure alerts, auto-disable
notification, model preflight diagnostics, validation errors, and the
shipped workspace AGENTS.md template. Adds a system-prompt backstop rule on
the automations tool line: the feature is called automations, never cron.

Cron stays only where it names the schedule syntax ({kind:"cron"}, cron
expressions), config keys (cron.triggers.enabled), RPC method names, and
session-key namespaces. Test fixtures with legacy labels are kept as
stored-data coverage. Part of RFC openclaw/rfcs#50 Phase 1 (PR B).

* docs(templates): keep workspace template on the live docs anchor until the docs PR renames it

* fix(cron): rename remaining failure-notification producers and stale test expectations

Codex review follow-ups: the per-run failure notification (server-cron-
notifications) and the doctor legacy-notify advisory still said Cron job;
failure-alert and incomplete-turn suites still asserted the old wording.

* chore(plugin-sdk): re-emit plugin-state test runtime dts

CI's extension-boundary runner holds stale tsgo incremental state whose
cached plugin-state-test-runtime.d.ts predates the keyed-store re-exports;
the freshness stamp validates it and reruns reuse the same sticky disk.
Touching the module forces incremental emit to regenerate the declaration.
Fresh builds of this head (local exact CI command and a forced Testbox
rebuild) both emit the exports correctly.

* fix(agents): rename residual model- and operator-facing cron prose

Found in combined dev-gateway E2E: fallback tool line still told models the
scheduler tool is cron; heartbeat scratch description, cron model preflight
rejection, doctor and Claw prose still said cron jobs.

* fix(agents): finish model-facing scheduler strings flagged in review

Loop work-order prompts, subagents tool description, cron-tool write errors,
and the headless exec denial label now say automations; loop builders covered
by prompt assertions; snapshots regenerated.

* chore(agents): refresh generated baselines and live docs anchor after rebase onto main

* fix(agents): rename new main-side cron tool error expectations to automations

* fix(gateway): rename main-side cron notification test expectations to automations

* chore(agents): apply review moves - automations commands in workspace template, drop unrelated sdk comment

---------

Co-authored-by: Omar Shahine <[email protected]>
@omarshahine

Copy link
Copy Markdown
Contributor Author

Phase 1 of this RFC is fully implemented on openclaw/openclaw main as of today:

Hard contracts intentionally unchanged: cron.* config keys, cron.* RPC methods, SQLite schema/state paths, cron: session-key prefix, {kind:"cron"} schedules, and the 'cron job not found' wire wording for shipped CLI matchers. A live user-path upgrade proof (released 2026.7.1-2 -> combined payload on a Blacksmith Testbox, legacy config allowlist spelled 'cron') is captured in each PR body.

Phase 2 (locale-keyed ui.terminology, e.g. 'habits') remains gated on acceptance of this RFC.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 31, 2026
…aw#114841)

* refactor(agents): route scheduler tool-name consumers through canonical identity

Introduce AUTOMATIONS_TOOL_NAME + isAutomationsToolName() in
src/agents/tools/automations-tool-name.ts as the single source of truth for
the scheduler agent tool's name, and convert every exact-name consumer:
factory descriptors, deferred-followup availability detection, add-counting,
policy deny lists, mutation classification, trusted media set, tool catalog
id, system-prompt tool order and tool-line map, sandbox deny defaults,
delegation capability map, MCP loopback probes, and local-model lean deny.

Behavior-neutral: the constant still resolves to "cron". Prepares the
rename in RFC openclaw/rfcs#50 so the flip is a one-line change with no
scattered literals.

* feat(agents): rename scheduler agent tool cron -> automations

Flip AUTOMATIONS_TOOL_NAME to "automations" and register the legacy name:

- TOOL_NAME_ALIASES gains cron -> automations, so persisted toolsAllow/
  toolsDeny lists, tool groups, and creator allowlists written before the
  rename keep matching through the same shipped mechanism as bash -> exec.
  No doctor rewrite needed.
- isAutomationsToolName() accepts legacy names so saved transcripts keep
  their mutation/replay-safety classification; MUTATING_TOOL_NAMES retains
  the legacy entry for the same reason.
- Tool label, catalog label, and tool-search keywords follow the rename
  ("cron" kept as a search synonym).
- Regression tests cover old-name policy matching (allow and deny), legacy
  transcript replay classification, and legacy creator allowlists
  normalizing to the canonical id.

Model-facing description strings still say cron; those move in the
follow-up strings PR. Part of RFC openclaw/rfcs#50 Phase 1.

* test(agents): update creator-cap expectations for canonical automations id

The creator tool surface derives from normalized live tool names, so derived
toolsAllow outputs now emit "automations". Passthrough paths without a
creator cap keep storing user input verbatim; those expectations stay on the
legacy name as stored-data coverage.

* fix(gateway): canonicalize legacy cron tool calls and restore scheduler deny protection

Review follow-ups from ClawSweeper and Codex on the rename (RFC 0026):

- MCP loopback tools/call resolves legacy "cron" names to the published
  automations tool without re-advertising the old name in tools/list.
- Gateway /tools/invoke canonicalizes legacy names before core-id checks and
  exact-name dispatch, so pre-rename integrations keep working.
- Security fix: dangerous-tools deny lists (owner-only HTTP deny and
  control-plane set) were keyed on the literal "cron", so the renamed tool
  silently lost default-deny and owner-only protection on the HTTP invoke
  surface. Lists now use the canonical constant, and the gateway.tools.allow
  un-deny filter normalizes both sides so legacy allow entries still lift it.
- Voice high-impact confirmation list and MCP serve creator allowlist follow
  the canonical name.

Existing cron-regression suite now proves the legacy path end to end:
default deny 404 for both names, legacy allow entry lifts the deny, and
non-owner protection holds.

* fix(agents): cover stdio MCP legacy calls, probe prompts, and prompt snapshots for the rename

- stdio MCP servers (openclaw-tools-serve / plugin tools handlers) resolve
  legacy "cron" callTool names to the published canonical tool, matching
  the HTTP loopback behavior; listTools stays canonical-only.
- Live probe prompts instruct harnesses to load/call the automations MCP
  tool (mcp__openclaw__automations) instead of the retired name.
- Prompt snapshot fixture filter follows the canonical name (the renamed
  tool had silently dropped out of the Codex dynamic-tools snapshots);
  snapshots regenerated as a clean rename.
- Type-cast the new mcp-http handler test payloads for check-test-types.

* test(agents): update tool-surface expectations for the automations rename

CI-surfaced fallout in shards not covered by the focused local runs: tool
availability, agent-config filtering, coding-tools construction,
model-provider lean policy, and skill dispatch all assert the scheduler
tool's surface name. Mock fixtures and expectations follow the canonical
id; legacy-name coverage stays in the dedicated policy/creator-cap/invoke
regression suites.

* test(gateway): update tool-resolution exclude expectations for automations rename

* test(security): update trust-model audit expectations for automations rename

* docs(agents): declare cron a permanent scheduler-tool alias per owner decision

Maintainer decision (Omar): cron is not being retired anywhere — config keys,
RPC methods, schedule syntax, and the CLI token all keep it, and the tool
alias follows the same permanent contract as bash -> exec. No doctor rewrite
and no removal window; comments updated to state the contract instead of a
deprecation plan.

* chore(agents): regen prompt snapshots after rebase onto main

* fix(agents): teach canonical automations tool in fallback guidance and reuse the identity source

Review follow-ups: the structured-list fallback still taught models the cron
tool; the cron-scope test echoed its own stub; MCP serve allowlist and voice
confirmation hardcoded the name instead of the canonical constant.

* fix(mcp): place automations identity import outside the header comment

---------

Co-authored-by: Omar Shahine <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 31, 2026
…mations (openclaw#114852)

* fix(agents): teach canonical automations tool in fallback guidance and reuse the identity source

Review follow-ups: the structured-list fallback still taught models the cron
tool; the cron-scope test echoed its own stub; MCP serve allowlist and voice
confirmation hardcoded the name instead of the canonical constant.

* fix(mcp): place automations identity import outside the header comment

* feat(agents): rename model- and user-facing scheduler strings to automations

Rewrites every string the model or user sees that names the feature:
tool label and terminal presentation, display-summary preset, subagents
catalog description, heartbeat guidance, subagent prompt, session labels
(Cron: -> Automation:), default job name, unattended-run preamble, delivery
awareness text, task-ledger progress summary, failure alerts, auto-disable
notification, model preflight diagnostics, validation errors, and the
shipped workspace AGENTS.md template. Adds a system-prompt backstop rule on
the automations tool line: the feature is called automations, never cron.

Cron stays only where it names the schedule syntax ({kind:"cron"}, cron
expressions), config keys (cron.triggers.enabled), RPC method names, and
session-key namespaces. Test fixtures with legacy labels are kept as
stored-data coverage. Part of RFC openclaw/rfcs#50 Phase 1 (PR B).

* docs(templates): keep workspace template on the live docs anchor until the docs PR renames it

* fix(cron): rename remaining failure-notification producers and stale test expectations

Codex review follow-ups: the per-run failure notification (server-cron-
notifications) and the doctor legacy-notify advisory still said Cron job;
failure-alert and incomplete-turn suites still asserted the old wording.

* chore(plugin-sdk): re-emit plugin-state test runtime dts

CI's extension-boundary runner holds stale tsgo incremental state whose
cached plugin-state-test-runtime.d.ts predates the keyed-store re-exports;
the freshness stamp validates it and reruns reuse the same sticky disk.
Touching the module forces incremental emit to regenerate the declaration.
Fresh builds of this head (local exact CI command and a forced Testbox
rebuild) both emit the exports correctly.

* fix(agents): rename residual model- and operator-facing cron prose

Found in combined dev-gateway E2E: fallback tool line still told models the
scheduler tool is cron; heartbeat scratch description, cron model preflight
rejection, doctor and Claw prose still said cron jobs.

* fix(agents): finish model-facing scheduler strings flagged in review

Loop work-order prompts, subagents tool description, cron-tool write errors,
and the headless exec denial label now say automations; loop builders covered
by prompt assertions; snapshots regenerated.

* chore(agents): refresh generated baselines and live docs anchor after rebase onto main

* fix(agents): rename new main-side cron tool error expectations to automations

* fix(gateway): rename main-side cron notification test expectations to automations

* chore(agents): apply review moves - automations commands in workspace template, drop unrelated sdk comment

---------

Co-authored-by: Omar Shahine <[email protected]>
@vincentkoc
vincentkoc deleted the rfc-0026-automations-terminology branch September 25, 2026 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants