Skip to content

fix(cron): reject disabled delivery accounts when scheduling - #116899

Merged
vincentkoc merged 1 commit into
openclaw:mainfrom
masatohoshino:cron-delivery-account-validation
Aug 1, 2026
Merged

vincentkoc merged 1 commit into
openclaw:mainfrom
masatohoshino:cron-delivery-account-validation

Conversation

@masatohoshino

@masatohoshino masatohoshino commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Scheduling an automation against a channel account the operator has turned off succeeds. The job is stored and scheduled against a route its owner already disabled, and nothing says so until it fires.

openclaw automations add "every 1h" "post the daily digest" \
  --channel telegram --to "telegram:123456" --account retired

With channels.telegram.accounts.retired.enabled = false, that job is created and appears in automations list with a next run time. cron.add and cron.update validated the delivery block's channel and target, but delivery.accountId was normalized as a string and persisted verbatim.

Why This Change Was Made

src/cron/delivery-channel-validation.ts already applies this rule to the channel on the same route. The comment on assertValidCronFailureAlert explains why an explicit unknown channel is rejected at mutation time rather than at run time: otherwise it is stored and only fails later as channel_not_found. The account had no equivalent check.

assertEnabledAnnounceAccount now runs beside the existing channel checks in assertValidCronAnnounceDelivery. It canonicalizes the resolved announce channel, looks the request's account up in that channel's accounts map using canonical account-id matching, and rejects only when that entry carries enabled: false.

The predicate is deliberately that narrow, because every wider signal has a false positive here:

  • Cron delivery ids are not always operator-typed — src/cron/delivery-context.ts copies the current delivery context's account into inferred jobs.
  • Channel isEnabled adapters report unlisted or credential-suppressed accounts as not enabled. extensions/twitch/src/config.ts resolves any unlisted id to enabled: false, and extensions/discord/src/accounts.ts treats duplicate-token suppression the same way.
  • A top-level channels.<id>.enabled: false is not uniformly channel-wide — twitch resolves named accounts from accounts alone, so a disabled root block does not make those accounts unschedulable.

Only the account entry itself is an unambiguous statement about this route, so only that blocks a mutation. No channel plugin is resolved on this path, which keeps the gateway mutation off the bundled-plugin loading path that src/gateway/AGENTS.md warns about.

Both cron mutation paths share this validator and the update caller is already gated on "delivery" in patch, so edits that do not touch routing — toggling bestEffort, disabling a job — stay unblocked by an id stored before this validation existed. cron-error-classification.ts learns the field name so the precondition recheck inside updateWithPrecondition still classifies it as INVALID_REQUEST instead of escaping unclassified.

Known limits, stated rather than hidden: this is a create/update-time check and does not revalidate at run time, does not migrate already-stored jobs, and cannot see disablement a channel expresses outside its accounts entry. delivery.failureDestination.accountId is out of scope because its effective route layers over the global failure-destination config (src/cron/delivery-plan.ts), so it needs route resolution before validation rather than a raw check on the partial override.

User Impact

An operator who points an automation at an account they have disabled finds out when they create or edit the job, instead of discovering a schedule that quietly cannot deliver. Jobs that omit accountId, name an enabled account, or carry a binding-derived id are unaffected.

Evidence

Real-behavior proof below: packaged CLI (node openclaw.mjs) against a real Gateway on an isolated state dir and port, with the real bundled telegram plugin.

Focused tests: 10 added to src/gateway/server-methods/cron.validation.test.ts (179 passing in that file), covering a disabled delivery account, an enabled account, an omitted account, an unlisted binding-derived id, a channel whose isEnabled reports everything disabled, a named account under a disabled top-level channel block, a non-canonical disabled account key, a disabled account reached through a channel alias, a disabled-account update patch, and a non-routing patch over a legacy-invalid stored id. src/cron plus src/gateway/server-methods/cron = 160 files / 1893 tests green. Neutralising the check fails exactly the rejection tests and nothing else; each normalization test also fails individually when its normalization step is reverted. tsgo:core, oxfmt, and oxlint clean.

Response on each mutation path

Confirming the intended INVALID_REQUEST behaviour on the three paths this touches, each pinned by a focused test in src/gateway/server-methods/cron.validation.test.ts:

Path Result Test
cron.add with a configured-disabled account INVALID_REQUEST, no job row created rejects an announce accountId whose account is explicitly disabled
cron.update whose patch changes delivery routing to a disabled account INVALID_REQUEST, no mutation rejects a delivery patch that introduces a disabled accountId
cron.update that does not touch routing, over a job whose stored account is already disabled succeeds unchanged keeps a non-routing patch unblocked by a legacy-invalid stored accountId

The third row is the upgrade case: a job stored before this validation existed stays editable, because the update caller only reaches this check when the patch contains delivery. cron-error-classification.ts carries delivery.accountId so the precondition recheck inside updateWithPrecondition classifies it the same way as the first-pass check rather than escaping unclassified.

Branch state: this head is MERGEABLE against current main, and no upstream commit since the base touches src/cron/delivery-channel-validation.ts, src/gateway/server-methods/cron.ts, cron-error-classification.ts, or the routing helpers it calls. I have not rebased purely to advance the SHA, because the captured proof above is pinned to this head and a rebase would invalidate it; happy to refresh on request.

Real behavior proof

Behavior addressed: cron.add accepted and persisted a delivery.accountId naming an account the operator had disabled in config. The job was stored and scheduled against a route its owner had already turned off, and nothing reported that until it fired.

Real environment tested: Linux (Node 24.18.0), packaged CLI (node openclaw.mjs, dist-backed — not a source transpile) driving a real OpenClaw Gateway started with openclaw gateway run on an isolated OPENCLAW_STATE_DIR and port 18899, with the real bundled telegram channel plugin loaded. cron.add was invoked over the gateway websocket RPC by the real openclaw automations add command. Config declares two telegram accounts: primary and retired (enabled: false). Nothing on the cron or account-resolution path is mocked; the only placeholder is the bot token value, which is never contacted because validation runs before any delivery.

Exact steps or command run after this patch: captured at head 90b426b23cc (base c75e435e30b). Each of the three accounts below was run as a separate automations add, then the stored jobs were listed.

export OPENCLAW_TOKEN="redacted-local-gateway-token"
export OPENCLAW_STATE_DIR=/tmp/cron-proof/state
export OPENCLAW_CONFIG_PATH=/tmp/cron-proof/openclaw.json
node openclaw.mjs gateway run &
node openclaw.mjs automations add "every 1h" "post the daily digest" \
  --name digest-retired --channel telegram --to "telegram:123456" \
  --account retired --token "$OPENCLAW_TOKEN"
node openclaw.mjs automations list --token "$OPENCLAW_TOKEN"

Before evidence:

Identical commands at the same base, with this patch's production change reverted and the dist rebuilt (grep -c 'is disabled for channel' dist/ = 0).

=== BEFORE [1] disabled account 'retired' ===
  "id": "79905748-a132-494c-ac2d-5a32f8f566d9",
    "accountId": "retired"

=== BEFORE: stored jobs ===
ID                                   Name             Schedule
79905748-a132-494c-ac2d-5a32f8f566d9 digest-retired   every 1h

Evidence after fix:

Same commands at head 90b426b23cc, dist rebuilt with the patch (grep -c 'is disabled for channel' dist/ = 1).

=== AFTER [1] disabled account 'retired' ===
GatewayClientRequestError: invalid cron.add params: delivery.accountId: account "retired" is disabled for channel telegram

=== AFTER [2] unlisted account 'ghost' (must still be accepted) ===
  "id": "0b8dd690-de9d-4094-8c36-f8d7e0ee72d8",

=== AFTER [3] enabled account 'primary' ===
  "id": "abfb5c93-5a4b-49a8-9422-0386d3053616",

=== AFTER: stored jobs ===
ID                                   Name             Schedule
0b8dd690-de9d-4094-8c36-f8d7e0ee72d8 digest-ghost     every 1h
abfb5c93-5a4b-49a8-9422-0386d3053616 digest-primary   every 1h

Observed result after fix: the disabled account is rejected at cron.add and no job row is created for it — before the patch the identical command returned a job id and left a scheduled job behind. The unlisted ghost and the enabled primary are both still accepted, which is the intended scope: only a config-declared enabled: false blocks a mutation, so binding-derived ids that resolve against a sole channel token keep working.

What was not tested: the runtime delivery path (this is a create/update-time check and does not revalidate at run time); cron.update is covered by focused tests rather than the CLI, since both mutation paths call the same validator; non-telegram channels — the check reads config only and is channel-agnostic, and the alias, non-canonical-key, isEnabled-hostile, and disabled-root cases are covered by focused tests, but only telegram was driven live.

Proof limitations or environment constraints: the telegram bot tokens in the proof config are placeholders; they are never used because rejection happens during cron.add. The gateway ran with an isolated OPENCLAW_STATE_DIR and its own port, so no live gateway was touched. The check cannot see disablement a channel expresses outside its accounts entry — that is a deliberate scope limit, not an oversight, and the reasoning is in the PR body.

Scheduling an automation against a channel account the operator has turned
off succeeded. The job was stored and scheduled against a route its owner had
already disabled, and nothing reported that until it fired.

`assertValidCronFailureAlert` in this file already applies the rule to the
channel on the same route: an explicit unknown channel must not be "stored and
only fails later as `channel_not_found`". The account had no equivalent check.

Reject a `delivery.accountId` whose `accounts.<id>.enabled` is `false`, beside
the existing channel checks.

The check is scoped to that account entry and nothing else, because the wider
signals all have false positives here:

- Cron delivery ids are not always operator-typed - `delivery-context.ts`
  copies the current context account into inferred jobs.
- Channel `isEnabled` adapters report unlisted or credential-suppressed
  accounts as not enabled (twitch resolves any unlisted id to `enabled: false`).
- A top-level `channels.<id>.enabled: false` is not uniformly channel-wide -
  twitch resolves named accounts from `accounts` alone.

Only the account entry itself is an unambiguous statement about this route, so
only that blocks a mutation. No channel plugin is resolved on this path.

Both cron mutation paths share this validator and the update caller is already
gated on `"delivery" in patch`, so edits that do not touch routing stay
unblocked by an id stored before this validation existed.
`cron-error-classification.ts` learns the field name so the precondition
recheck inside `updateWithPrecondition` still classifies it as
`INVALID_REQUEST`.

`delivery.failureDestination.accountId` is intentionally out of scope: its
effective route layers over the global failure-destination config, so it needs
route resolution before validation rather than a raw check on the partial
override.
@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: M labels Jul 31, 2026
@masatohoshino
masatohoshino marked this pull request as ready for review July 31, 2026 15:02
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Jul 31, 2026
@clawsweeper

clawsweeper Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 31, 2026, 12:52 PM ET / 16:52 UTC.

ClawSweeper review

What this changes

Reject cron creation and delivery-routing updates that select a configured channel account explicitly marked enabled: false, while preserving enabled, unlisted, and non-routing legacy updates.

Merge readiness

⚠️ Needs maintainer review before merge - 3 items remain

Keep this PR open for maintainer review. Its supplied real-Gateway proof and successful checks are promising, but this read-only checkout cannot hydrate the three PR-head file blobs because the promisor remote cannot resolve; that prevents the required source-level correctness and best-fix audit.

Priority: P2
Reviewed head: 90b426b23ccc617ad6468bed3012795c18cccb79

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Strong real-behavior evidence supports the intended outcome, but a promisor-object/DNS failure prevented the required full source and test audit.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The PR body provides a before/after packaged-CLI run against a real isolated Gateway, showing the disabled account rejected with no stored job while enabled and unlisted accounts still create jobs; private tokens are redacted.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The PR body provides a before/after packaged-CLI run against a real isolated Gateway, showing the disabled account rejected with no stored job while enabled and unlisted accounts still create jobs; private tokens are redacted.
Evidence reviewed 5 items Current-main behavior: Current main validates announce channel and target compatibility but does not inspect delivery.accountId; a configured-disabled account can therefore pass this validation boundary today.
Mutation-path boundary: Current main invokes the same delivery validation before cron.add and twice around the update precondition, so the proposed placement is on the correct mutation boundary if the PR head implements the stated call exactly.
Existing normalization contract: The current shared lookup helper already supports canonical account-id matching and rejects blocked object keys, matching the normalization approach described by the PR.
Findings None None.
Security None None.

How this fits together

Cron mutations enter through Gateway RPC and validate a job’s announce-delivery route before it is stored or updated. That route later drives channel delivery, so rejecting an explicitly disabled configured account prevents a scheduled job from silently targeting a route its operator turned off.

flowchart LR
  A[Automation CLI or RPC] --> B[Gateway cron mutation]
  B --> C[Delivery route validation]
  C --> D[Configured channel account lookup]
  D --> E{Explicitly disabled?}
  E -->|Yes| F[Invalid request; no job mutation]
  E -->|No| G[Store or update cron job]
  G --> H[Scheduled channel delivery]
Loading

Before merge

  • Resolve merge risk (P1) - The checkout cannot retrieve the PR-head source blobs, so the validator’s exact call order, account-entry shape guard, and all added regression tests have not been independently audited.
  • Resolve merge risk (P1) - This intentionally changes compatibility for existing automation creation and routing edits: explicitly disabled configured accounts that were previously accepted will now fail at mutation time.
  • Complete next step (P2) - A maintainer or refreshed review worker must complete the blocked PR-head source audit before a merge-quality verdict is safe.
Agent review details

Security

None.

PR surface

Source +51, Tests +273. Total +324 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 2 51 0 +51
Tests 1 273 0 +273
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 324 0 +324

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Complete the hydrated-head audit (recommended)
    Retrieve the PR blobs and confirm the new precondition is limited to explicit configured account disablement across create and routing-changing update paths before merge.
  2. Accept the scoped behavior change
    Merge with the understanding that existing attempts to create or reroute a job to an explicitly disabled configured account will now return INVALID_REQUEST.

Technical review

Best possible solution:

Restore access to the PR-head blobs, audit the exact validator and focused tests against both create and preconditioned-update paths, then merge only if the rejection remains limited to a matching configured account entry with enabled: false.

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

No independent high-confidence reproduction was completed in this review because the checkout cannot hydrate the PR source or run it. Current main’s validator visibly omits account enablement, and the PR supplies a concrete before/after real-Gateway CLI transcript.

Is this the best way to solve the issue?

Unclear. The proposed config-only lookup appears to be the narrow owner-boundary fix and avoids channel-plugin loading, but the PR-head implementation and all tests could not be read from this partial checkout.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 5332641ed3ba.

Labels

Label justifications:

  • P2: This fixes a bounded automation-routing defect that can otherwise leave a scheduled job targeting an operator-disabled account without an early visible outcome.
  • merge-risk: 🚨 compatibility: The PR deliberately changes existing cron.add and delivery-routing update requests from accepted to rejected for explicitly disabled configured accounts.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The PR body provides a before/after packaged-CLI run against a real isolated Gateway, showing the disabled account rejected with no stored job while enabled and unlisted accounts still create jobs; private tokens are redacted.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides a before/after packaged-CLI run against a real isolated Gateway, showing the disabled account rejected with no stored job while enabled and unlisted accounts still create jobs; private tokens are redacted.

Evidence

What I checked:

  • Current-main behavior: Current main validates announce channel and target compatibility but does not inspect delivery.accountId; a configured-disabled account can therefore pass this validation boundary today. (src/cron/delivery-channel-validation.ts:81, 5332641ed3ba)
  • Mutation-path boundary: Current main invokes the same delivery validation before cron.add and twice around the update precondition, so the proposed placement is on the correct mutation boundary if the PR head implements the stated call exactly. (src/gateway/server-methods/cron.ts:694, 5332641ed3ba)
  • Existing normalization contract: The current shared lookup helper already supports canonical account-id matching and rejects blocked object keys, matching the normalization approach described by the PR. (src/routing/account-lookup.ts:27, 5332641ed3ba)
  • Current-main inclusion check: The PR head is not an ancestor of current main, so this work is neither merged nor implemented on current main. (90b426b23ccc)
  • Blocked PR source audit: The PR commit and tree metadata are present, but all three changed blobs are promisor objects; Git attempted to fetch them and failed because github.com could not resolve. The supplied patch excerpt and PR body are insufficient substitutes for a complete source audit. (src/cron/delivery-channel-validation.ts, 90b426b23ccc)

Likely related people:

  • Vincent Koc: Current-main blame assigns the delivery validator, invalid-request classifier, and normalized account lookup used by this change to this contributor’s July 31 work. (role: recent area contributor; confidence: high; commits: 11edc89613d9, d4cb5ef6e35d; files: src/cron/delivery-channel-validation.ts, src/gateway/server-methods/cron-error-classification.ts, src/routing/account-lookup.ts)

Rank-up moves

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

  • Restore PR-head blob access and complete a source audit of the exact validator, update-precondition classification, and added tests.

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 (2 earlier review cycles)
  • reviewed 2026-07-31T15:07:15.588Z sha 90b426b :: needs maintainer review before merge. :: none
  • reviewed 2026-07-31T16:15:08.097Z sha 90b426b :: needs maintainer review before merge. :: none

@masatohoshino

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The last two reviews here both aborted before reading the repository — bwrap: loopback: Failed RTM_NEWADDR: Operation not permitted — so the patch-quality axis was scored without a source inspection. Nothing has changed on the branch; requesting a fresh run now that the inspection sandbox looks healthy again.

@clawsweeper

clawsweeper Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
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:

@vincentkoc vincentkoc self-assigned this Aug 1, 2026
@vincentkoc

vincentkoc commented Aug 1, 2026 •

Copy link
Copy Markdown
Member

Maintainer verification for head 90b426b23ccc617ad6468bed3012795c18cccb79 against frozen main target 89394978e0a6b9e7b0dd3244ab7db29f5d18d16c:

ClawSweeper rank-up disposition: satisfied. The prior 3/6 patch rating was solely the worker checkout hydration failure, not a code finding.

Final landing refresh: live main advanced to a5d89e169eac425152097c4d942b3eb676fdeced; the 89394978…main range has zero overlap with the PR-touched files, so the clean merge result and exact-head proof remain valid.

@vincentkoc
vincentkoc merged commit a7b4a47 into openclaw:main Aug 1, 2026
192 of 203 checks passed
vincentkoc added a commit to pacocartones/openclaw that referenced this pull request Aug 1, 2026
* origin/main: (217 commits)
  fix(messages): reply actions leak citation markers and reply/poll answers draw the no-reply fallback (openclaw#116909)
  fix(slack): let durable ingress retry transient thread lookups (openclaw#117135)
  refactor(doctor): consolidate shipped state migration ownership (openclaw#117142)
  fix(ai): Codex stream shows internal parser text on a malformed frame (openclaw#116966)
  fix: guard every migrated session accessor path (openclaw#117140)
  fix(terminal): measure unicode display width consistently (openclaw#117062)
  fix(openai): clear ChatGPT SSE fallback per session (openclaw#117123)
  fix(mistral): reject incomplete streamed tool terminals (openclaw#117137)
  fix(ai): preserve structured chat content and refusals (openclaw#117136)
  fix(doctor): persist normalized agent roster (openclaw#117115)
  fix(signal): avoid replay after ambiguous quote delivery errors (openclaw#117134)
  fix(cron): reject disabled delivery accounts when scheduling (openclaw#116899)
  fix(gateway): honor HTTP If-Modified-Since media validators (openclaw#117133)
  fix(config): delete one array element per config patch delete (openclaw#116463)
  fix(plugins): report installed dependency health authoritatively (openclaw#117029)
  fix(ui): recover moving sessions across paged gateway rosters (openclaw#117016)
  fix(ui): clear hidden session selection before bulk deletion (openclaw#117015)
  fix(discord): avoid replaying ambiguous voice deliveries (openclaw#117127)
  fix(ui): scope Gateway reconnect lineage to its target (openclaw#117125)
  fix(models): expose runtime provider catalogs in browse views (openclaw#116857)
  ...
vincentkoc added a commit to yetval/openclaw that referenced this pull request Aug 1, 2026
* commit 'c41f033b87545b658215a9c3bbe03f88fbaa867d': (347 commits)
  refactor(plugins): consolidate descriptor and startup ownership (openclaw#117146)
  fix(messages): reply actions leak citation markers and reply/poll answers draw the no-reply fallback (openclaw#116909)
  fix(slack): let durable ingress retry transient thread lookups (openclaw#117135)
  refactor(doctor): consolidate shipped state migration ownership (openclaw#117142)
  fix(ai): Codex stream shows internal parser text on a malformed frame (openclaw#116966)
  fix: guard every migrated session accessor path (openclaw#117140)
  fix(terminal): measure unicode display width consistently (openclaw#117062)
  fix(openai): clear ChatGPT SSE fallback per session (openclaw#117123)
  fix(mistral): reject incomplete streamed tool terminals (openclaw#117137)
  fix(ai): preserve structured chat content and refusals (openclaw#117136)
  fix(doctor): persist normalized agent roster (openclaw#117115)
  fix(signal): avoid replay after ambiguous quote delivery errors (openclaw#117134)
  fix(cron): reject disabled delivery accounts when scheduling (openclaw#116899)
  fix(gateway): honor HTTP If-Modified-Since media validators (openclaw#117133)
  fix(config): delete one array element per config patch delete (openclaw#116463)
  fix(plugins): report installed dependency health authoritatively (openclaw#117029)
  fix(ui): recover moving sessions across paged gateway rosters (openclaw#117016)
  fix(ui): clear hidden session selection before bulk deletion (openclaw#117015)
  fix(discord): avoid replaying ambiguous voice deliveries (openclaw#117127)
  fix(ui): scope Gateway reconnect lineage to its target (openclaw#117125)
  ...
vincentkoc added a commit to chenyangjun-xy/openclaw that referenced this pull request Aug 1, 2026
* origin/main: (3706 commits)
  refactor(ui): unify filtered session list ownership (openclaw#117158)
  refactor(agents): consolidate context budgets and compaction recovery (openclaw#117149)
  fix(net-policy): redact sig and x-* auth params in URLs and bodies (openclaw#116957)
  refactor(agents): remove duplicate generated-media delivery fallbacks (openclaw#117150)
  refactor(reply): unify turn lifecycle state ownership (openclaw#117145)
  fix(ui): preserve emoji agent avatar initials (openclaw#104912)
  refactor(auto-reply): unify command and directive ownership (openclaw#117143)
  refactor(plugins): consolidate descriptor and startup ownership (openclaw#117146)
  fix(messages): reply actions leak citation markers and reply/poll answers draw the no-reply fallback (openclaw#116909)
  fix(slack): let durable ingress retry transient thread lookups (openclaw#117135)
  refactor(doctor): consolidate shipped state migration ownership (openclaw#117142)
  fix(ai): Codex stream shows internal parser text on a malformed frame (openclaw#116966)
  fix: guard every migrated session accessor path (openclaw#117140)
  fix(terminal): measure unicode display width consistently (openclaw#117062)
  fix(openai): clear ChatGPT SSE fallback per session (openclaw#117123)
  fix(mistral): reject incomplete streamed tool terminals (openclaw#117137)
  fix(ai): preserve structured chat content and refusals (openclaw#117136)
  fix(doctor): persist normalized agent roster (openclaw#117115)
  fix(signal): avoid replay after ambiguous quote delivery errors (openclaw#117134)
  fix(cron): reject disabled delivery accounts when scheduling (openclaw#116899)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 1, 2026
…w#116899)

Scheduling an automation against a channel account the operator has turned
off succeeded. The job was stored and scheduled against a route its owner had
already disabled, and nothing reported that until it fired.

`assertValidCronFailureAlert` in this file already applies the rule to the
channel on the same route: an explicit unknown channel must not be "stored and
only fails later as `channel_not_found`". The account had no equivalent check.

Reject a `delivery.accountId` whose `accounts.<id>.enabled` is `false`, beside
the existing channel checks.

The check is scoped to that account entry and nothing else, because the wider
signals all have false positives here:

- Cron delivery ids are not always operator-typed - `delivery-context.ts`
  copies the current context account into inferred jobs.
- Channel `isEnabled` adapters report unlisted or credential-suppressed
  accounts as not enabled (twitch resolves any unlisted id to `enabled: false`).
- A top-level `channels.<id>.enabled: false` is not uniformly channel-wide -
  twitch resolves named accounts from `accounts` alone.

Only the account entry itself is an unambiguous statement about this route, so
only that blocks a mutation. No channel plugin is resolved on this path.

Both cron mutation paths share this validator and the update caller is already
gated on `"delivery" in patch`, so edits that do not touch routing stay
unblocked by an id stored before this validation existed.
`cron-error-classification.ts` learns the field name so the precondition
recheck inside `updateWithPrecondition` still classifies it as
`INVALID_REQUEST`.

`delivery.failureDestination.accountId` is intentionally out of scope: its
effective route layers over the global failure-destination config, so it needs
route resolution before validation rather than a raw check on the partial
override.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 1, 2026
* commit '31f24547a94a8bd74a32e42cde1783591c5804d9': (347 commits)
  refactor(plugins): consolidate descriptor and startup ownership (openclaw#117146)
  fix(messages): reply actions leak citation markers and reply/poll answers draw the no-reply fallback (openclaw#116909)
  fix(slack): let durable ingress retry transient thread lookups (openclaw#117135)
  refactor(doctor): consolidate shipped state migration ownership (openclaw#117142)
  fix(ai): Codex stream shows internal parser text on a malformed frame (openclaw#116966)
  fix: guard every migrated session accessor path (openclaw#117140)
  fix(terminal): measure unicode display width consistently (openclaw#117062)
  fix(openai): clear ChatGPT SSE fallback per session (openclaw#117123)
  fix(mistral): reject incomplete streamed tool terminals (openclaw#117137)
  fix(ai): preserve structured chat content and refusals (openclaw#117136)
  fix(doctor): persist normalized agent roster (openclaw#117115)
  fix(signal): avoid replay after ambiguous quote delivery errors (openclaw#117134)
  fix(cron): reject disabled delivery accounts when scheduling (openclaw#116899)
  fix(gateway): honor HTTP If-Modified-Since media validators (openclaw#117133)
  fix(config): delete one array element per config patch delete (openclaw#116463)
  fix(plugins): report installed dependency health authoritatively (openclaw#117029)
  fix(ui): recover moving sessions across paged gateway rosters (openclaw#117016)
  fix(ui): clear hidden session selection before bulk deletion (openclaw#117015)
  fix(discord): avoid replaying ambiguous voice deliveries (openclaw#117127)
  fix(ui): scope Gateway reconnect lineage to its target (openclaw#117125)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 1, 2026
* origin/main: (3706 commits)
  refactor(ui): unify filtered session list ownership (openclaw#117158)
  refactor(agents): consolidate context budgets and compaction recovery (openclaw#117149)
  fix(net-policy): redact sig and x-* auth params in URLs and bodies (openclaw#116957)
  refactor(agents): remove duplicate generated-media delivery fallbacks (openclaw#117150)
  refactor(reply): unify turn lifecycle state ownership (openclaw#117145)
  fix(ui): preserve emoji agent avatar initials (openclaw#104912)
  refactor(auto-reply): unify command and directive ownership (openclaw#117143)
  refactor(plugins): consolidate descriptor and startup ownership (openclaw#117146)
  fix(messages): reply actions leak citation markers and reply/poll answers draw the no-reply fallback (openclaw#116909)
  fix(slack): let durable ingress retry transient thread lookups (openclaw#117135)
  refactor(doctor): consolidate shipped state migration ownership (openclaw#117142)
  fix(ai): Codex stream shows internal parser text on a malformed frame (openclaw#116966)
  fix: guard every migrated session accessor path (openclaw#117140)
  fix(terminal): measure unicode display width consistently (openclaw#117062)
  fix(openai): clear ChatGPT SSE fallback per session (openclaw#117123)
  fix(mistral): reject incomplete streamed tool terminals (openclaw#117137)
  fix(ai): preserve structured chat content and refusals (openclaw#117136)
  fix(doctor): persist normalized agent roster (openclaw#117115)
  fix(signal): avoid replay after ambiguous quote delivery errors (openclaw#117134)
  fix(cron): reject disabled delivery accounts when scheduling (openclaw#116899)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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