Skip to content

fix(cron): keep required reports from going silent when nothing changes - #207044

Merged
daniel-lxs merged 8 commits into
mainfrom
openclaw/plan-206884-cron-report
Nov 29, 2026
Merged

daniel-lxs merged 8 commits into
mainfrom
openclaw/plan-206884-cron-report

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #206884

What Problem This Solves

A scheduled job can produce its required daily status and still suppress it because nothing changed.

User Impact

Jobs that request a report every run are told to return it even on unchanged days. Conditional alerts stay quiet unless triggered. If an agent supplies the wrong field while recording an outcome, it gets a correctable input error instead of an internal error.

Why This Change Was Made

The runner deliberately suppresses a recorded no_change. Rather than weakening that guarantee, the prompt distinguishes a required report from an intentionally quiet check and shows the optional recorder’s input shape. Only malformed outcome data is reclassified; the delivery and authorization paths are unchanged.

Evidence

  • Contributor-run live Gateway proof: DonnieFi’s run record documents two isolated Codex/OpenAI cron runs at a383623b with Code Mode and the same unchanged queue. The required report announced Queue: IDLE exactly once to the local QA adapter (delivered). The conditional alert recorded no_change, finished ok/not-delivered/silent, and produced zero captures. Neither was sent directly by a messaging tool. The JSON evidence record (test/fixtures/cron-required-report-live-proof.json) preserves those observations; it is not an executable replay.

  • The new prompt and Code Mode regressions failed before their respective fixes. Through the actual Code Mode bridge, missing outcome (including result and status aliases) left the invocation unrecorded, and a corrected retry succeeded.

  • A paired isolated-runner fixture supplied the same Queue: IDLE text in both cases. The announce adapter captured it once for the report and zero times for a recorded quiet check. Neither was delivered by a direct messaging-tool send. The fixture used synthetic responses.

  • 107 focused tests across six files passed at local head fbd664b10, as did both paired fixture cases, targeted typecheck, lint, formatting, and docs link checks. Independent agent reviews of the two code changes caught a conditional-alert ambiguity; the corrected prompt and recorder diff had no remaining review findings. Base: 0633f256. Independent reviewers inspected supplied diffs; these are not hosted ratings or CI.

Simplification: removed 87 lines of test code that asserted literal observations, retaining all original fields in 65 lines of JSON. No runtime logic or behavioral regression tests changed in this pass (net −22 lines). Across the whole PR: production +5/−4, executable tests +32/−3, docs +1/−1, evidence +65/−0. All 20 focused tests passed after the conversion.

After integrating 8d901228, the three generated prompt snapshots were refreshed (+15/−15 generated lines; no additional runtime or executable test changes). pnpm prompt:snapshots:check verified all six snapshots and the three focused cron suites passed 23 tests on the published source tree.

Contributor: DonnieFi.

Work sessions

Linked for team reference; these sessions aren’t public.

🦞 Made with OpenClaw

Worked on by

Worked on by:
- @DonnieFi

Co-authored-by: DonnieFi <[email protected]>
OpenClaw-Publication: 1444ac78-4306-4b2e-9cbb-c6e477bcda76
@clawsweeper

clawsweeper Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation agents Agent runtime and tooling size: XS labels Nov 27, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 27, 2026
@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

This PR clarifies required-report guidance, supplies outcome-recording examples, and reports malformed outcomes as correctable input errors.

Example: A daily queue check must report “Queue: IDLE” even when the queue remains empty.

  • Before: The model could record no_change and cause the scheduler to suppress its required report.
  • After: The prompt explicitly requires the report as the final reply and reserves no_change for intentionally quiet checks.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, worthwhile repair with recorded production-path evidence and a distinct bridge regression; exact-head CI remains pending.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (linked_artifact): DonnieFi’s public structured run record exercises scheduled delivery through an isolated Gateway, real model, Code Mode, and QA adapter: one required report was captured and the conditional check stayed silent. The relevant prompt and typed-error changes match the demonstrated revision; malformed-input recovery additionally has a real Code Mode bridge regression. The inspected screenshots document the older quiet-check implementation, not this fix; raw live transcripts and a current-head rerun were not supplied, and this read-only review ran no target code.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A scheduled report can finish successfully without delivering its required reply, and malformed outcome calls can appear as internal failures.
Reason: The small repair restores the documented distinction between recurring deliverables and quiet checks; maintainer authorship supplies direction approval.

Merge readiness

✅ Ready for maintainer review

Keep open: this PR fixes a source-confirmed reporting problem still present on main, preserves intentional quiet checks, and has no actionable correctness findings.

Reviewed head: 4f80fcbe04b1ebab877c10e5e999da516d47b5bd

Before merge

None.

Findings

None.

Agent review details

How this fits together

The scheduler builds an unattended agent prompt, the automations tool records optional structured outcomes, and the existing delivery owner announces results or suppresses intentional silence.

flowchart LR
  A[Scheduled job] --> B[Cron prompt]
  B --> C[Agent turn]
  C --> D[Optional outcome recorder]
  C --> E[Final reply]
  D --> F[Delivery owner]
  E --> F
  F --> G[Announcement or intentional silence]
Loading

Technical review

Best possible solution:

Land the focused guidance and typed-input-error repair while retaining the existing structured silence and delivery owners.

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

Current-main guidance can select no_change for an unchanged required report, which the existing finalizer suppresses; malformed outcomes also reach an untyped error that the Code Mode bridge cannot classify as invalid_input.

Is this the best way to solve the issue?

The repair resolves the conflicting instructions and uses the existing trusted input-error contract without weakening intentional quiet-check suppression or adding configuration.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source +1, Tests +94, Docs 0. Total +95 across 10 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 3 5 4 +1
Tests 6 112 18 +94
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 10 118 23 +95

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (5 earlier review cycles)
  • reviewed 2026-11-28T00:00:10.104Z sha a383623 :: passed. :: none
  • reviewed 2026-11-28T01:40:13.290Z sha ef9f12e :: passed. :: none
  • reviewed 2026-11-28T01:57:53.010Z sha c4f951a :: passed. :: none
  • reviewed 2026-11-28T03:11:33.519Z sha f7a7ed8 :: passed. :: none
  • reviewed 2026-11-28T20:43:42.902Z sha f544df6 :: passed. :: none

Reviewed November 28, 2026, 9:44 PM ET / November 29, 2026, 02:44 UTC (Revision 6).

Worked on by:
- @DonnieFi

Co-authored-by: DonnieFi <[email protected]>
OpenClaw-Publication: 5d95e822-f028-4426-8f23-8eddf4eb180a
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

Worked on by:
- @DonnieFi

Co-authored-by: DonnieFi <[email protected]>
OpenClaw-Publication: 93be6a55-7d82-4153-b4a2-d1e3601a38b8
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 28, 2026 02:21
roboclaw-bot and others added 2 commits November 28, 2026 02:46
Worked on by:
- @DonnieFi

Co-authored-by: DonnieFi <[email protected]>
OpenClaw-Publication: 83a76209-d3d1-4eb8-bea0-b5ae67cedeea
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

Worked on by:
- @DonnieFi

Co-authored-by: DonnieFi <[email protected]>
OpenClaw-Publication: bfdef767-7e57-46ae-9f84-35965a88af6c
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Nov 28, 2026
@daniel-lxs

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Nov 29, 2026
@daniel-lxs
daniel-lxs merged commit 8a0b268 into main Nov 29, 2026
128 checks passed
@daniel-lxs
daniel-lxs deleted the openclaw/plan-206884-cron-report branch November 29, 2026 03:25
vincentkoc added a commit that referenced this pull request Nov 29, 2026
…eline

* commit 'eee1e0553d29456424ac367008c3cf080f9866ec': (550 commits)
  fix(acp): deliver bound channel replies to the pending question (#207035)
  fix(cron): keep required reports from going silent when nothing changes (#207044)
  test(sessions): assert participant queue rollback state (#207891)
  perf(gateway): skip session display preparation for transcript recall (#207916)
  test(agents): verify complete bracketed paste payload (#207733)
  test: stop timing out the cron recovery settlement test on slow runners (#207920)
  fix: show when worktree cleanup stopped or will retry (#207883)
  fix: show approval destinations only when the forwarding mode uses them (#207885)
  fix: keep inherited tools when changing agent settings (#207884)
  feat: let Knowledge add someone's email or other alias to a page without rewriting it (#207881)
  fix: stop reporting a child worker as finished when the Gateway loses contact (#207713)
  fix: keep the Activity visibility test stable at midnight (#207847)
  perf(agents): reuse prepared tool catalog executors (#207900)
  fix: show the Gateway command default beside host rules in Devices (#207887)
  fix: verify chat Stop recovery after dashboard pairing (#207888)
  test(activity): check midnight refresh against the elapsed window (#207859)
  test(ui): use one persisted message ID in queued-image handoff (#207861)
  test(agents): release configured MCP fixture resources (#207716)
  fix(workboard): clear CI failures in the session filter editor (#207858)
  perf(ai): reduce allocation in OpenAI Responses streams (#207889)
  ...
vincentkoc added a commit that referenced this pull request Nov 29, 2026
…ions suite

* commit '60e80f1c5fd439f7aa4ce33f54985c7efdc30884': (555 commits)
  refactor: remove the bundled GBrain adapter (#207924)
  improve(ui): show optional run limits beside the automation schedule (#201283)
  test(onboarding): inspect recorded output for credential leaks (#207872)
  perf(exec): reduce host memory sampler allocations (#207927)
  test(mcp-relay): isolate the Connected apps fallback locale (#207923)
  fix(acp): deliver bound channel replies to the pending question (#207035)
  fix(cron): keep required reports from going silent when nothing changes (#207044)
  test(sessions): assert participant queue rollback state (#207891)
  perf(gateway): skip session display preparation for transcript recall (#207916)
  test(agents): verify complete bracketed paste payload (#207733)
  test: stop timing out the cron recovery settlement test on slow runners (#207920)
  fix: show when worktree cleanup stopped or will retry (#207883)
  fix: show approval destinations only when the forwarding mode uses them (#207885)
  fix: keep inherited tools when changing agent settings (#207884)
  feat: let Knowledge add someone's email or other alias to a page without rewriting it (#207881)
  fix: stop reporting a child worker as finished when the Gateway loses contact (#207713)
  fix: keep the Activity visibility test stable at midnight (#207847)
  perf(agents): reuse prepared tool catalog executors (#207900)
  fix: show the Gateway command default beside host rules in Devices (#207887)
  fix: verify chat Stop recovery after dashboard pairing (#207888)
  ...
vincentkoc added a commit that referenced this pull request Nov 29, 2026
* commit 'ba0a7a5fac3e2f1b642d05502273b98dc75adf4f': (556 commits)
  test(agents): fix provider header filtering coverage (#207732)
  refactor: remove the bundled GBrain adapter (#207924)
  improve(ui): show optional run limits beside the automation schedule (#201283)
  test(onboarding): inspect recorded output for credential leaks (#207872)
  perf(exec): reduce host memory sampler allocations (#207927)
  test(mcp-relay): isolate the Connected apps fallback locale (#207923)
  fix(acp): deliver bound channel replies to the pending question (#207035)
  fix(cron): keep required reports from going silent when nothing changes (#207044)
  test(sessions): assert participant queue rollback state (#207891)
  perf(gateway): skip session display preparation for transcript recall (#207916)
  test(agents): verify complete bracketed paste payload (#207733)
  test: stop timing out the cron recovery settlement test on slow runners (#207920)
  fix: show when worktree cleanup stopped or will retry (#207883)
  fix: show approval destinations only when the forwarding mode uses them (#207885)
  fix: keep inherited tools when changing agent settings (#207884)
  feat: let Knowledge add someone's email or other alias to a page without rewriting it (#207881)
  fix: stop reporting a child worker as finished when the Gateway loses contact (#207713)
  fix: keep the Activity visibility test stable at midnight (#207847)
  perf(agents): reuse prepared tool catalog executors (#207900)
  fix: show the Gateway command default beside host rules in Devices (#207887)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 29, 2026
…es (openclaw#207044)

Return a required status or digest on every scheduled run, including when nothing changes. Reserve silent outcomes for intentionally quiet checks. Report malformed outcome arguments as invalid input so the agent can correct the call.

Closes openclaw#206884.

Co-authored-by: DonnieFi <[email protected]>
OpenClaw-Publication: 1444ac78-4306-4b2e-9cbb-c6e477bcda76
OpenClaw-Publication: 5d95e822-f028-4426-8f23-8eddf4eb180a
OpenClaw-Publication: 93be6a55-7d82-4153-b4a2-d1e3601a38b8
OpenClaw-Publication: 83a76209-d3d1-4eb8-bea0-b5ae67cedeea
OpenClaw-Publication: bfdef767-7e57-46ae-9f84-35965a88af6c
vincentkoc added a commit that referenced this pull request Nov 29, 2026
* commit '99b4afc696081eda8aefd8e91250c112f53a8a73': (564 commits)
  test(ios): verify send-at-tap feedback and work grouping (#207913)
  test(agents): reject unsuccessful live replay completions (#207724)
  fix(cron): keep a started cron turn running when its job is edited (#207947)
  improve(ui): put waiting for a free agent under automation timing (#201282)
  chore(ui): refresh control ui locales (#207514)
  fix: distinguish unresolved delivery failures from delivery history (#207897)
  test(doctor): require security check in proxy ordering assertion (#207912)
  fix: keep update rollback tests in sync with shipped workers (#207822)
  test(agents): fix provider header filtering coverage (#207732)
  refactor: remove the bundled GBrain adapter (#207924)
  improve(ui): show optional run limits beside the automation schedule (#201283)
  test(onboarding): inspect recorded output for credential leaks (#207872)
  perf(exec): reduce host memory sampler allocations (#207927)
  test(mcp-relay): isolate the Connected apps fallback locale (#207923)
  fix(acp): deliver bound channel replies to the pending question (#207035)
  fix(cron): keep required reports from going silent when nothing changes (#207044)
  test(sessions): assert participant queue rollback state (#207891)
  perf(gateway): skip session display preparation for transcript recall (#207916)
  test(agents): verify complete bracketed paste payload (#207733)
  test: stop timing out the cron recovery settlement test on slow runners (#207920)
  ...
tideclaw-bot pushed a commit that referenced this pull request Nov 30, 2026
…es (#207044)

Return a required status or digest on every scheduled run, including when nothing changes. Reserve silent outcomes for intentionally quiet checks. Report malformed outcome arguments as invalid input so the agent can correct the call.

Closes #206884.

Co-authored-by: DonnieFi <[email protected]>
OpenClaw-Publication: 1444ac78-4306-4b2e-9cbb-c6e477bcda76
OpenClaw-Publication: 5d95e822-f028-4426-8f23-8eddf4eb180a
OpenClaw-Publication: 93be6a55-7d82-4153-b4a2-d1e3601a38b8
OpenClaw-Publication: 83a76209-d3d1-4eb8-bea0-b5ae67cedeea
OpenClaw-Publication: bfdef767-7e57-46ae-9f84-35965a88af6c

(cherry picked from commit 8a0b268)

Release adaptation: Regenerate stable prompt snapshots for the reporting contract; do not import a main live-proof artifact or claim contributed live evidence.

Companion audit: PR #207044 is selected; keep host prompt/presentation and automated completion validation together.

Co-authored-by: RomneyDa <[email protected]>
tideclaw-bot pushed a commit that referenced this pull request Nov 30, 2026
…es (#207044)

Return a required status or digest on every scheduled run, including when nothing changes. Reserve silent outcomes for intentionally quiet checks. Report malformed outcome arguments as invalid input so the agent can correct the call.

Closes #206884.

Co-authored-by: DonnieFi <[email protected]>
OpenClaw-Publication: 1444ac78-4306-4b2e-9cbb-c6e477bcda76
OpenClaw-Publication: 5d95e822-f028-4426-8f23-8eddf4eb180a
OpenClaw-Publication: 93be6a55-7d82-4153-b4a2-d1e3601a38b8
OpenClaw-Publication: 83a76209-d3d1-4eb8-bea0-b5ae67cedeea
OpenClaw-Publication: bfdef767-7e57-46ae-9f84-35965a88af6c

Release adaptation: Regenerate against release tool prompts; omit the unreferenced contributor-specific live evidence artifact.

(cherry picked from commit 8a0b268)

Co-authored-by: RomneyDa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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.

[Bug]: Cron run prompt's "record no_change" hint silences replies the job requires, and gives no input shape under Code Mode

2 participants