Repository navigation
fix(heartbeat): explain target-none skips - #119689
Conversation
bd91d1b to
8bf5c28
Compare
f181b96 to
2715573
Compare
|
Codex review: needs maintainer review before merge. Reviewed August 6, 2026, 9:41 PM ET / August 7, 2026, 01:41 UTC. ClawSweeper reviewWhat this changesThe PR adds a human-readable message to heartbeat events skipped because delivery target is Merge readiness✅ Ready for maintainer review Keep open: current main still emits a bare Priority: P3 Review scores
Verification
How this fits togetherHeartbeat delivery records a canonical event that is stored, broadcast to Gateway subscribers, and returned by the flowchart LR
A[Heartbeat configuration] --> B[Delivery target resolution]
B --> C{Target is none}
C -->|Yes| D[Canonical heartbeat event]
C -->|No| E[Normal delivery outcome]
D --> F[Stored event and subscribers]
E --> F
F --> G[Gateway last-heartbeat RPC]
G --> H[CLI operator output]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +10, Tests +34. Total +44 across 3 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Land the narrow producer-boundary enrichment after normal exact-head merge gates, retaining Do we have a high-confidence way to reproduce the issue? Yes, source reproducible: the documented default resolves to Is this the best way to solve the issue? Yes. Adding the companion message where the canonical event is produced reaches the CLI, RPC, stored state, and subscribers without duplicating interpretation in consumers. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b8b878ed334f. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (7 earlier review cycles)
|
|
@clawsweeper re-review The current head
Please review the current head rather than the previously reviewed |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review The requested inspectable proof is now attached directly to the PR body for exact head Public GitHub Actions run and terminal transcript: https://github.com/metaforismo/openclaw/actions/runs/31060629583 The run checks out the exact PR head, executes the repository’s real Gateway WebSocket E2E, calls |
76cd86d to
69c323c
Compare
69c323c to
629e59d
Compare
|
@clawsweeper re-review The stale-proof blocker is resolved for the current exact head Public run and terminal transcript: The isolated proof commit The real Gateway WebSocket E2E passed and printed: {
"verdict": "pass",
"exactPrHead": "629e59da23ecbbdbd00d740e531985a9b6235ca6",
"transport": "real Gateway WebSocket RPC",
"method": "last-heartbeat",
"response": {
"status": "skipped",
"reason": "target-none",
"message": "Heartbeat delivery is disabled by configuration (target: none).",
"hasMedia": false
}
}All exact-head hosted workflows are green: CI, CodeQL, CodeQL Critical Quality, OpenGrep, Workflow Sanity, and all three Periphery checks. The PR body now contains the complete current-head proof and no longer references the old revision. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Maintainer handoff for @Alix-007: the current exact head The proof exercises I completed a fresh exact-head diff audit of event enrichment, caller-message precedence, listener delivery, stored state, and the real Gateway RPC assertion and found no additional actionable issue. The remaining stale |
|
@clawsweeper re-review Current head: This refresh adds only the current- I corrected the PR body so the public Gateway proof and prior green CI are accurately bound to the patch-identical implementation head, not described as current-head evidence. Fresh hosted workflows have not yet been scheduled. Please review the current merge-refreshed head and patch identity. |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
@clawsweeper re-review Final refreshed head: The implementation diff still has stable patch ID |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Merged via squash.
|
* origin/main: (58 commits) fix(test): restart shared gateway after migration convergence (openclaw#120089) fix(ui): make active-run steering reliable (openclaw#120083) fix(telegram): preserve voice fallback text test(swift): preserve queued websocket frames (openclaw#120106) fix: reject missing oxlint shard selectors (openclaw#120096) test(channels): align prerelease fallback catalog spec (openclaw#120092) fix(node-cli): warn when systemd user lingering is disabled after install (openclaw#118430) fix(diagnostics): preserve CLI turn usage totals (openclaw#120100) fix(gateway): derive lock and coordinator paths from the resolved state dir (openclaw#120110) fix(release): isolate private Telegram QA harness (openclaw#120088) test(agents): exercise execution attribution ingress guard fix(gateway): defer attribution until admission succeeds refactor(agents): centralize exact execution attribution fix(google): accept base64url provider media (openclaw#116204) fix(plugins): warn when registerHook uses a typed hook event name (openclaw#118601) fix(canvas): serve Content-Length on A2UI HEAD responses (openclaw#117961) fix(gateway): make doctor dreaming timestamp comparators NaN-safe (openclaw#118749) fix(heartbeat): explain target-none skips (openclaw#119689) fix(security): stop recommending retired install-policy bypasses (openclaw#120011) fix(plugins): preserve startup release during repair (openclaw#120085) ... # Conflicts: # CHANGELOG.md # src/config/sessions/session-accessor.sqlite-transcript-write.ts
Co-authored-by: Patrick Erichsen <[email protected]>
Summary
reason: "target-none"unchangedmessagewhen heartbeat delivery is intentionally disabled bytarget: nonelast-heartbeatGateway WebSocket RPCWhat Problem This Solves
The default heartbeat delivery target is
none, so a skipped event containing onlyreason: "target-none"can look like recipient resolution failed. Heartbeat events already expose stable reason codes;messageis the human-readable companion used by OpenClaw status and event contracts.Before:
{"status":"skipped","reason":"target-none"}After:
{"status":"skipped","reason":"target-none","message":"Heartbeat delivery is disabled by configuration (target: none)."}User Impact
Operators can distinguish deliberate delivery disablement from a routing failure without breaking consumers that key on the existing reason code.
Current Head
d64f5b6a096088f1739ecd0e8c2f7182a0e90ce7cc31cea8230903eb3f7167216e1fcd368e999dc7mainrefresh mergesThe implementation diff is patch-identical to reviewed head
629e59da23ecbbdbd00d740e531985a9b6235ca6(stable patch ID0ffed76f997f1a99dbfc599dda7fe4124fc9dbaf). That head passed all hosted CI and security workflows. Fresh hosted workflows for the merge-refreshed head are still awaiting GitHub scheduling.Evidence
Public Real Gateway Proof for the Patch-Identical Implementation
Public run and terminal transcript:
https://github.com/metaforismo/openclaw/actions/runs/31110891165
Uploaded JSON artifact:
https://github.com/metaforismo/openclaw/actions/runs/31110891165/artifacts/8971668429
The isolated proof commit
287e17d35c205dac64ad61574b79aa31a2b99957has reviewed implementation head629e59da23ecbbdbd00d740e531985a9b6235ca6as its parent. The current branch adds only the current-mainmerge and preserves the same stable patch ID. Before running anything, the workflow verifies:Therefore the only difference from the PR head is the isolated transcript-capture workflow. It starts the repository’s real Gateway test server and WebSocket client, wakes the heartbeat, calls the production
last-heartbeatRPC, and prints this result directly in the public log:{ "verdict": "pass", "exactPrHead": "629e59da23ecbbdbd00d740e531985a9b6235ca6", "transport": "real Gateway WebSocket RPC", "method": "last-heartbeat", "response": { "ts": 1786026543933, "status": "skipped", "reason": "target-none", "preview": "Heartbeat handled: wake-heartbeat-2684-1-2", "durationMs": 1620, "hasMedia": false, "message": "Heartbeat delivery is disabled by configuration (target: none)." } }The real Gateway E2E passed: one test file and one end-to-end test passed. No credentials, external channel, or private service was used.
Safety and Compatibility
target-nonereason is preservedRegression Coverage
Test Plan
target-noneFixes #44534.
AI Assistance
AI assistance was used to inspect the owner boundary and sibling status contracts, implement the focused repair, run an isolated implementation-head proof, and publish an inspectable Gateway transcript. The final diff and compatibility boundary were reviewed before publication.