Skip to content

refactor(cron): consolidate unavailable delivery targets - #157393

Merged
vincentkoc merged 1 commit into
mainfrom
refactor/cron-delivery-unavailable-target
Sep 24, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
refactor/cron-delivery-unavailable-target

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Maintainer-requested cleanup of duplicate unavailable-chat-target handling in cron delivery.

User Impact

No user-visible behavior change. Webhook delivery and disabled delivery keep their existing errors and message-tool policy; explicitly targeted delivery keeps its existing route.

Why This Change Was Made

Combine the two early returns while preserving their distinct errors and requested-delivery flags. Normal target resolution is unchanged.

Evidence

  • The same strengthened runner fixture passed all 53 cases on both original and candidate production code, with identical ordered case names and statuses. This is PASS/PASS characterization, not a reproduced bug.
  • Candidate focused-file cost: 52.704 seconds of managed invocation wall time with --maxWorkers=1, including wrapper overhead. This is not isolated Vitest time, CI timing, or a performance comparison; isolated per-file CI timing was not captured.
  • All 31 selected checks are accounted for. The aggregate passed 23 stages, then stopped on a missing tracked Swift input in the sparse checkout. After materializing that unchanged input, the failed guard and seven remaining guards passed. An earlier test line-cap failure was resolved by consolidating setup within the existing case without removing assertions.
  • Fresh scoped P0-P2 review: no findings.
  • Exact-head hosted CI passed: https://github.com/openclaw/openclaw/actions/runs/36026113996. The required Security Review also passed: https://github.com/openclaw/openclaw/actions/runs/36029233217. Native auto-squash landed the reviewed head as b442284cc4c799431ae95fa2fd1b2d67c6542cd3.
  • No live channel or performance claim. Source inspection confirms the early return remains before lazy delivery-runtime loading; the resolver no-call assertion alone does not prove module non-loading.

@vincentkoc vincentkoc self-assigned this Sep 24, 2026
@clawsweeper

clawsweeper Bot commented Sep 24, 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.

@vincentkoc
vincentkoc marked this pull request as ready for review September 24, 2026 16:15
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. labels Sep 24, 2026
@clawsweeper

clawsweeper Bot commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 24, 2026, 12:27 PM ET / 16:27 UTC.

ClawSweeper review

What this changes

This PR combines webhook and untargeted disabled-delivery handling in the cron isolated-run resolver and strengthens runner assertions for webhook policy and trace output.

Merge readiness

✅ Ready for maintainer review

Current main and the latest release still contain the duplicate early returns. The proposed consolidation preserves the distinct outcomes, and this review found no actionable patch defect.

Priority: P3
Reviewed head: e447948f92eec06d98d49118387ca2c0fd7ab61f

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Scoped runner characterization and a small, source-equivalent refactor support a normal good rating.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: This member-authored internal refactor is exempt from the external-contributor proof gate. The PR reports matching runner-fixture results for the changed delivery-context path; source comparison supports the preserved early return, and no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored internal refactor is exempt from the external-contributor proof gate. The PR reports matching runner-fixture results for the changed delivery-context path; source comparison supports the preserved early return, and no stored-data contract changes.
Evidence reviewed 8 items Introduced change: The pinned PR delta combines the two early returns while retaining separate error text and requested-delivery values.
Current main: Fetched main still has separate webhook and untargeted disabled-mode branches, so the cleanup remains useful.
Release check: The latest identified release, v2026.9.6, also retains both branches.
Findings None None.
Security None None.

How this fits together

OpenClaw’s automation runner turns a scheduled job’s delivery settings into a chat-target decision. That decision feeds the agent’s message-tool policy and the delivery trace recorded for the run.

flowchart LR
 A[Cron job] --> B[Delivery plan]
 B --> C{Webhook or untargeted disabled mode?}
 C -->|Yes| D[Unavailable chat target]
 C -->|No| E[Resolve chat destination]
 D --> F[Run policy and delivery trace]
 E --> F
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source -10, Tests -1. Total -11 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 10 20 -10
Tests 1 13 14 -1
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 23 34 -11

Review metrics

None.

Technical review

Best possible solution:

Keep webhook, disabled-mode, and explicit-target outcomes guarded at the runner boundary while using one owner for unavailable chat-target construction.

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

Not applicable: this PR characterizes existing delivery modes rather than reporting a defect. The captured runner-fixture result is a contributor claim, and source comparison supports the intended equivalence.

Is this the best way to solve the issue?

Yes: the change stays in the existing cron delivery owner and preserves the mode-specific errors, flags, and target-resolution boundary.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 5c1abcae5525.

Labels

Label changes:

  • add P3: This is a small internal cleanup with no claimed user-visible behavior change.
  • 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. Not applicable: This member-authored internal refactor is exempt from the external-contributor proof gate. The PR reports matching runner-fixture results for the changed delivery-context path; source comparison supports the preserved early return, and no stored-data contract changes.

Label justifications:

  • P3: This is a small internal cleanup with no claimed user-visible behavior change.
  • 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. Not applicable: This member-authored internal refactor is exempt from the external-contributor proof gate. The PR reports matching runner-fixture results for the changed delivery-context path; source comparison supports the preserved early return, and no stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • Vyctor H. Brzezowski: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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.

@vincentkoc
vincentkoc enabled auto-merge (squash) September 24, 2026 16:35
@vincentkoc
vincentkoc merged commit b442284 into main Sep 24, 2026
282 checks passed
@vincentkoc
vincentkoc deleted the refactor/cron-delivery-unavailable-target branch September 24, 2026 16:49
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

vincentkoc added a commit that referenced this pull request Sep 24, 2026
* commit '9a1a6f7db9783d0b8abaf918bfe12978ea745b57': (26 commits)
  fix(maintainer): restore cold PR worktree provisioning (#157394)
  feat(ios): establish native Cloudflare Access sign-in sessions (#146996)
  fix: restore the Gateway after interrupted Doctor maintenance (#156854)
  refactor(line): retire the Express webhook adapter (#157369)
  refactor(cron): consolidate unavailable delivery targets (#157393)
  ci: apply Go memory defaults to architecture checks
  fix(cli): preserve the first PowerShell completion test failure (#157267)
  refactor(agents): consolidate transcript-tail model selection (#157382)
  fix(release): honor frozen validation contracts (#157034)
  fix(perf): use settled Kova terminal CPU accounting (#157029)
  chore(windows): verify packaged repair worker lifecycle (#157047)
  refactor(logging): share memory pressure threshold selection (#157164)
  fix(release): verify bundled fs-safe native bindings (#157027)
  perf(skills): skip warm prompt search when minimum cannot fit (#157343)
  fix(ui): avoid retaining detached tooltip anchors (#157226)
  perf(ci): reuse compiler state and shorten guard and UI tests (#157265)
  perf(ui): preserve model caches on unrelated metadata updates (#157254)
  chore: remove the tracked PR-body artifact and ignore .artifacts (#157296)
  refactor: consolidate duplicate MCP lifecycle tests (#157360)
  test(qa): consolidate CLI runtime fixtures (#118496)
  ...
@roboclaw-bot roboclaw-bot mentioned this pull request Sep 24, 2026
2 of 8 tasks
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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