Skip to content

chore: keep cron cooldown QA incidents distinct - #148151

Merged
RomneyDa merged 1 commit into
mainfrom
fix/maturity-348158-cron-alert-contract
Sep 14, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/maturity-348158-cron-alert-contract

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

What Problem This Solves

Resolves a maturity QA failure where the cron delivery test expected two alerts for the same incident even though cooldown deduplication correctly suppressed the duplicate.

Why This Change Was Made

The second forced run now returns a materially different delivery incident, so the test continues to verify threshold and cooldown behavior while also proving a new incident is transported.

User Impact

Cron delivery outcome validation no longer reports a false failure when identical alert incidents are deduplicated.

Evidence

@clawsweeper

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

@RomneyDa
RomneyDa marked this pull request as ready for review September 14, 2026 09:47
@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Sep 14, 2026
@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 14, 2026
@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 14, 2026, 7:17 AM ET / 11:17 UTC (Revision 3).

ClawSweeper review

What this changes

Updates the cron delivery test to simulate a different failure after cooldown expires, allowing it to verify a second webhook alert.

Merge readiness

✅ Ready for maintainer review

The fixture correction remains useful on current main and matches the documented incident-deduplication contract. No actionable patch defect was found; this maintainer-authored PR should remain open for normal merge handling.

Priority: P3
Reviewed head: 5ec0dc84f0e52fc6b87cd1a90eb23e21e773db11

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused fixture correction supported by the documented contract, with no blocking findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored test-only PR; its scenario uses the real scheduler and Gateway webhook sender with injected agent outcomes and a local HTTP receiver.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored test-only PR; its scenario uses the real scheduler and Gateway webhook sender with injected agent outcomes and a local HTTP receiver.
Evidence reviewed 7 items Verified introduced change: The pinned base-to-head diff only extracts the existing agent-result mock and changes its delivery error before the third forced run; existing assertions remain intact.
Authoritative incident policy: Identical incident signatures return before the cooldown check. Delivery incidents include the delivery error in their signature, so changing that error after one hour permits another alert. The inspected production file is byte-identical on fetched main.
Documented behavior: The delivery guide explicitly states that identical failures remain suppressed after cooldown, while a changed cause or destination can trigger another alert.
Findings None None.
Security None None.

How this fits together

OpenClaw’s scheduler turns automation outcomes into failure notifications, applying incident deduplication and cooldown before Gateway transport. This QA scenario injects delivery failures and observes webhook requests and persisted outcomes.

flowchart LR
  A[Simulated delivery failure] --> B[Cron scheduler]
  B --> C{New incident and cooldown elapsed}
  C -->|Yes| D[Gateway webhook sender]
  C -->|No| E[Suppress repeated alert]
  D --> F[Local HTTP receiver]
  B --> G[Persisted run outcomes]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +7. Total +7 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 13 6 +7
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 13 6 +7

Review metrics

None.

Technical review

Best possible solution:

Keep scheduler deduplication intact and use distinct failure causes when QA expects distinct transported incidents.

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

Yes, from source: current main repeats the same delivery error but expects a second webhook, while the scheduler rejects identical incident signatures even after cooldown. The test was not executed in this read-only review.

Is this the best way to solve the issue?

Yes. Changing the simulated cause preserves production policy and the existing transport assertions; sibling persistence tests cover repeated-incident suppression.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P3: This corrects an internal QA fixture without changing production behavior.
  • 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: The external-contributor proof gate does not apply to this MEMBER-authored test-only PR; its scenario uses the real scheduler and Gateway webhook sender with injected agent outcomes and a local HTTP receiver.

Evidence

What I checked:

  • Verified introduced change: The pinned base-to-head diff only extracts the existing agent-result mock and changes its delivery error before the third forced run; existing assertions remain intact. (src/cron/cron-delivery-outcomes.e2e.test.ts:411, 5ec0dc84f0e5)
  • Authoritative incident policy: Identical incident signatures return before the cooldown check. Delivery incidents include the delivery error in their signature, so changing that error after one hour permits another alert. The inspected production file is byte-identical on fetched main. (src/cron/service/failure-alerts.ts:379, 6b3e342ddb1e)
  • Documented behavior: The delivery guide explicitly states that identical failures remain suppressed after cooldown, while a changed cause or destination can trigger another alert. Public docs: docs/automation/cron-jobs/delivery.md. (docs/automation/cron-jobs/delivery.md:82, 5ec0dc84f0e5)
  • Still needed on main and absent from latest release: Fetched main retains the unchanged error for all runs, as does the inspected v2026.9.4 test. The proposed fixture correction is not already present. (src/cron/cron-delivery-outcomes.e2e.test.ts:409, 6b3e342ddb1e)
  • Release comparison: The latest supplied release still expects a second webhook without changing the incident. (src/cron/cron-delivery-outcomes.e2e.test.ts:409, 3a9d69db306c)
  • Validation and review continuity: The supplied body reports 6/6 focused tests and changed checks passing; the discussion explicitly associates another 6/6 pass with the earlier d45c0ea7cc35dd11e248a28d77b829b8d004e508 head. Prior review retained no findings. That earlier revision was unavailable for local comparison, so its execution result is not represented as current-head proof. Read-only diff checking passed; tests were not executed. (5ec0dc84f0e5)

Likely related people:

  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • RayMa: 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.

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-14T09:59:12.682Z sha 7cae3a00f9235e36745b04111968a861d1374072 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-14T11:04:32.282Z sha d45c0ea7cc35dd11e248a28d77b829b8d004e508 :: needs maintainer review before merge. :: none

@RomneyDa
RomneyDa force-pushed the fix/maturity-348158-cron-alert-contract branch from 7cae3a0 to d45c0ea Compare September 14, 2026 10:50
@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper review

Exact-head proof for d45c0ea7cc3: src/cron/cron-delivery-outcomes.e2e.test.ts passes 6/6 after rebasing onto current main. Please refresh the review against this head.

@clawsweeper

clawsweeper Bot commented Sep 14, 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 exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@RomneyDa
RomneyDa force-pushed the fix/maturity-348158-cron-alert-contract branch from d45c0ea to 5ec0dc8 Compare September 14, 2026 11:07
@RomneyDa

Copy link
Copy Markdown
Member Author

Exact-head proof after rebase onto current main: cron delivery outcomes passed 6/6 at 5ec0dc8. @clawsweeper review

@RomneyDa
RomneyDa merged commit d1a2d7d into main Sep 14, 2026
143 checks passed
@RomneyDa
RomneyDa deleted the fix/maturity-348158-cron-alert-contract branch September 14, 2026 15:52
vincentkoc added a commit that referenced this pull request Sep 14, 2026
* commit '3c08384584f57787a26da9998488233fc15ccf7e': (122 commits)
  fix(agents): keep tool result summaries when middleware details exceed shape limits (#147805)
  test: make full-suite fixtures portable across runtimes (#148247)
  refactor(qa): share unknown confidence results (#148200)
  chore(android): remove unused test dependencies and duplicate Wear settings (#148231)
  test: reuse compiled preflight in startup fixtures (#148330)
  test(wizard): route recovery integration through database forks (#148337)
  refactor(plugins): simplify provider auth patch recursion (#147933)
  fix(cli): drain failed web capability output (#148234)
  refactor(android): remove unused production helpers (#148233)
  fix(plugins): scope feed integrity to hosted ClawHub (#148220)
  test(qa): compare Telegram entities semantically (#148219)
  test(qa): recognize native Slack exec progress rows (#148217)
  test(cron): distinguish repeated delivery incidents (#148151)
  test(qa): preserve restart command ownership (#148218)
  test(qa): isolate bundled skill CLI gateway state (#148150)
  test(qa): align process lifecycle contracts (#148149)
  improve(media): reduce metadata fetched during orphan cleanup (#148244)
  fix(matrix): retain sync state runtime for deferred persistence (#148152)
  test: deduplicate gateway watch exit fixtures (#148237)
  refactor(cli): derive daemon status contract from gatherer (#148108)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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