Skip to content

chore(cron): cover delivery outcomes - #118993

Merged
vincentkoc merged 1 commit into
mainfrom
qa-a04-cron-delivery-20260803
Aug 3, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
qa-a04-cron-delivery-20260803

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 3, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Four cron automation coverage IDs had no executed primary QA scenario, leaving delivery, failure routing, skipped-run alerts, and delivery previews without durable real-boundary regression proof.

Why This Change Was Made

This adds one registered QA scenario backed by a focused end-to-end Vitest file. It drives the production SSRF-guarded webhook senders against a real loopback HTTP server and verifies persisted job/task-run outcomes and delivery previews. It adds no production code and uses no channel driver or mocked delivery helper for primary proof.

User Impact

No runtime behavior changes. Maintainers gain exact regression coverage for successful webhook delivery, failure destinations, skipped-run alerts, and delivery previews.

Evidence

  • node scripts/run-vitest.mjs src/cron/cron-delivery-outcomes.e2e.test.ts: 4 tests passed.
  • Private-QA qaRuntime build passed through the no-pnpm path.
  • Canonical cron-delivery-outcomes QA suite passed 1/1.
  • Generated schema-v2 evidence contains one passing Vitest entry with exactly these primary IDs:
    • automation.webhook-delivery
    • automation.failure-destinations
    • automation.skipped-run-alerts
    • automation.delivery-previews
  • Targeted oxfmt, max-lines ratchet, git diff --check, lockfile, scope, and privacy checks passed.
  • Production LOC delta: 0.

node scripts/check-changed.mjs -- ... reached Crabbox routing and stopped because no Testbox provider was available. Per repository policy for trusted source, focused local proof and hosted exact-head CI are the fallback.

@vincentkoc vincentkoc self-assigned this Aug 3, 2026
@vincentkoc vincentkoc changed the title test(cron): cover delivery outcomes chore(cron): cover delivery outcomes Aug 3, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 3, 2026 22:23
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper review

@vincentkoc
vincentkoc force-pushed the qa-a04-cron-delivery-20260803 branch from 1c36f7b to 3fedc93 Compare August 3, 2026 22:30
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Aug 3, 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:

@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-priority cleanup, docs, polish, ergonomics, or speculative work. labels Aug 3, 2026
@clawsweeper

clawsweeper Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 7:14 PM ET / 23:14 UTC.

ClawSweeper review

What this changes

Adds a QA scenario and end-to-end tests for cron webhook delivery, failure destinations, skipped-run alerts, and delivery previews.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep open for protected maintainer review. Current main lacks the four registered QA coverage IDs, and this focused test-only PR adds a valid combined production-boundary path with no blocking correctness finding.

Priority: P3
Reviewed head: 3fedc931f49edb84d2a251c31909c8492e31284c
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, well-scoped QA addition with valid production-boundary assertions and no supported correctness defect.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored test-only PR is not subject to the external-contributor real-behavior-proof gate; its body nevertheless reports loopback and registered-QA runs.
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 test-only PR is not subject to the external-contributor real-behavior-proof gate; its body nevertheless reports loopback and registered-QA runs.
Evidence reviewed 5 items Primary webhook owner boundary: The new test runs a CronService command job through the production guarded webhook sender and asserts the received payload plus persisted delivery state and task history.
Current runtime wiring: Current main injects the guarded primary webhook sender, failure-alert sender, and finished-event notification dispatcher into CronService.
QA catalog contract: The scenario uses a valid Vitest execution entry; the catalog recursively discovers YAML scenarios and rejects duplicate IDs, while scorecard selection uses primary coverage IDs.
Findings None None.
Security None None.

How this fits together

Cron jobs execute commands or agent turns, then record outcomes and route delivery or failure notifications. The added QA scenario drives those paths through loopback webhooks and verifies durable run state and delivery previews.

flowchart LR
  A[Cron job] --> B[Command or agent run]
  B --> C[Persisted run outcome]
  C --> D[Webhook and alert routing]
  D --> E[Loopback receiver]
  C --> F[Delivery preview]
  G[QA scenario catalog] --> H[End-to-end test]
Loading

Decision needed

Question Recommendation
Do the cron and QA owners approve this new primary coverage scenario after its current-main refresh? Refresh and land: Rebase or refresh the clean merge result, confirm the focused QA test still passes, and land the focused coverage addition.

Why: The PR is member-authored and carries the protected maintainer label, so the final landing decision requires explicit maintainer handling despite the clean code review.

Before merge

  • Resolve merge risk (P1) - The branch is behind current main; refresh the exact merge result and its focused CI before landing, although GitHub reports it cleanly mergeable.
  • Complete next step (P2) - The protected maintainer label requires owner review; there is no concrete repair defect for an automated work lane.
Agent review details

Security

None.

PR surface

Tests +376, Other +34. Total +410 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 376 0 +376
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 34 0 +34
Total 2 410 0 +410

Review metrics

Metric Value Why it matters
Primary QA coverage 4 primary coverage IDs added These IDs become selectable profile evidence through one registered scenario.
Production versus test LOC production +0, test/QA +410 The change adds no runtime behavior; its value depends on durable boundary coverage.

Stored data model

Persistent data-model change detected: serialized state: qa/scenarios/scheduling/cron-delivery-outcomes.yaml, serialized state: src/cron/cron-delivery-outcomes.e2e.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Retain this single primary QA owner for the four automation coverage IDs and land it after a refreshed exact-head review confirms the current maintainer requirements.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Retain this single primary QA owner for the four automation coverage IDs and land it after a refreshed exact-head review confirms the current maintainer requirements.

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

Not applicable: this PR adds regression coverage rather than repairing a reported user-facing failure. The reviewed source establishes the intended test paths, but this read-only review did not execute them.

Is this the best way to solve the issue?

Yes. It keeps runtime code unchanged while exercising CronService, production webhook senders, durable task history, and the QA catalog; existing focused tests do not own these four primary coverage IDs.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This is focused test and QA coverage work with no runtime behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool 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 test-only PR is not subject to the external-contributor real-behavior-proof gate; its body nevertheless reports loopback and registered-QA runs.

Label justifications:

  • P3: This is focused test and QA coverage work with no runtime behavior change.
  • 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 member-authored test-only PR is not subject to the external-contributor real-behavior-proof gate; its body nevertheless reports loopback and registered-QA runs.

Evidence

What I checked:

  • Primary webhook owner boundary: The new test runs a CronService command job through the production guarded webhook sender and asserts the received payload plus persisted delivery state and task history. (src/cron/cron-delivery-outcomes.e2e.test.ts:86, 3fedc931f49e)
  • Current runtime wiring: Current main injects the guarded primary webhook sender, failure-alert sender, and finished-event notification dispatcher into CronService. (src/gateway/server-cron.ts:856, a78f2c40bf6f)
  • QA catalog contract: The scenario uses a valid Vitest execution entry; the catalog recursively discovers YAML scenarios and rejects duplicate IDs, while scorecard selection uses primary coverage IDs. (extensions/qa-lab/src/scenario-catalog.ts:445, a78f2c40bf6f)
  • Coverage remains unique work: The four requested automation coverage IDs are defined in taxonomy but were absent from existing QA scenario YAML before this PR; its merge-base diff contains only the new scenario and test. (taxonomy.yaml:3363, a78f2c40bf6f)
  • Existing sibling coverage: Current tests already cover focused delivery-state, notification, skipped-alert, and preview behavior; this PR supplies the missing combined registered QA path rather than duplicating runtime logic. (src/cron/service.persists-delivered-status.test.ts:658, a78f2c40bf6f)

Likely related people:

  • steipete: Recent history includes bounded notification-lifetime and failure-notification routing work on the production delivery path. (role: recent cron runtime contributor; confidence: medium; commits: 383363e36233, 1c99584f5db4, af0a1c0dfe16; files: src/gateway/server-cron.ts, src/gateway/server-cron-notifications.ts, src/cron/service/timer-job-runner.ts)
  • vincentkoc: Earlier history includes task-history and failure-destination work in the same cron delivery neighborhood, in addition to this PR's QA contribution. (role: prior cron delivery contributor; confidence: medium; commits: dbf48c0df94d, 28b374a8a7f6, 3fedc931f49e; files: src/cron/task-run-history.ts, src/gateway/server-cron-notifications.ts, src/cron/cron-delivery-outcomes.e2e.test.ts)

Rank-up moves

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

  • Refresh the clean merge result against current main and retain focused QA evidence on the exact head.

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

Copy link
Copy Markdown
Member Author

Rank-up move disposition for reviewed head 3fedc931f49edb84d2a251c31909c8492e31284c:

  • Refresh the clean merge result against current main and retain focused QA evidence on the exact head: skipped as unnecessary churn. The final refresh found no landed cron-delivery owner change and neither A04 file exists on current main. PRs fix(cron): preserve failure alert route context #116933 and fix(cron): preserve authoritative run origin across delivery lifecycles #117425 remain open on unchanged, disjoint heads. The only post-merge-base changes in the reviewed neighborhood are unrelated QA-lab internals. GitHub reports this exact head mergeable, hosted exact-head CI is green, and the focused real-loopback/private-QA evidence remains attached to this exact head.

Maintainer decision: retain the single primary QA owner for the four automation coverage IDs and land the frozen exact head without rebasing unrelated main drift.

@vincentkoc
vincentkoc merged commit abf9e26 into main Aug 3, 2026
129 of 131 checks passed
@vincentkoc
vincentkoc deleted the qa-a04-cron-delivery-20260803 branch August 3, 2026 23:19
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit to clawSean/openclaw that referenced this pull request Aug 3, 2026
* origin/main: (1301 commits)
  fix(sms): align MMS retries with network timeouts (openclaw#119002)
  test(qa): cover composed tool result consumption (openclaw#118991)
  test(cron): cover delivery outcomes (openclaw#118993)
  test(qa): cover guarded media fetch boundaries (openclaw#118857)
  test(qa): cover music generation controls (openclaw#118901)
  test(qa): cover core vision routing (openclaw#118861)
  test(qa): cover Gateway usage and memory APIs (openclaw#118995)
  fix(docker): use authenticated gateway health command (openclaw#118996)
  test(plugins): align tool fixtures with owner policy (openclaw#118959)
  test(qa): cover managed gateway service lifecycle (openclaw#118855)
  test(qa): cover audio proxy and limit handling (openclaw#118863)
  test(qa): cover PDF extraction dispatch (openclaw#118860)
  test(ui): add service-worker update primary QA proof (openclaw#118805)
  test(qa): cover CLI onboarding and plugin install sources (openclaw#118882)
  test(qa): cover remote logging boundaries (openclaw#118951)
  fix(sms): retry transient MMS failures before durable adoption (openclaw#118994)
  test(qa): cover video generation invocation (openclaw#118864)
  test(qa): cover media reference intake (openclaw#118858)
  test(qa): cover image generation task lifecycle (openclaw#118915)
  feat(sms): track Twilio delivery status (openclaw#118665)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: qa-lab 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: 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.

1 participant