Skip to content

fix(qqbot): add heartbeat-ACK liveness watchdog - #114902

Merged
steipete merged 4 commits into
openclaw:mainfrom
guanbear:fix/qqbot-heartbeat-ack-watchdog
Aug 2, 2026
Merged

steipete merged 4 commits into
openclaw:mainfrom
guanbear:fix/qqbot-heartbeat-ack-watchdog

Conversation

@guanbear

@guanbear guanbear commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Closes #114885

What Problem This Solves

Fixes an issue where the QQBot gateway WebSocket sent heartbeats but never verified that the server's op:11 Heartbeat ACK arrived, so a connection that stopped receiving ACKs was not detected client-side and could remain OPEN until the transport emitted close.

Why This Change Was Made

The QQ Bot gateway contract defines op:11 Heartbeat ACK as the message received after a heartbeat is sent successfully (event-emit.html). The client should use its absence to detect an unhealthy connection. This adds a counter-based liveness watchdog: each heartbeat sent increments an outstanding count; each op:11 resets it. When the count reaches the missed-ACK threshold (2 unanswered sends), the socket is terminated so the existing handleClose → scheduleReconnect path re-establishes delivery.

Key design decisions, driven by review:

  • Counter-based, not wall-clock. A true event-loop stall (GC pause, CPU saturation) pauses both the heartbeat timer and message processing together, so a live socket cannot trip a false termination on elapsed time.
  • ACK recognized before socketMessageTail. Slow async ingress is not a stall — the heartbeat timer keeps firing while an ingress.receive() promise is pending. Op 11 resets the counter synchronously in ws.on("message") and returns, never enqueued behind the serialized queue, so a backlogged ACK cannot look overdue.
  • Single decode/parse. The raw frame is decoded and parsed once on receipt and carried as {rawData, payload} into the serialized handler (avoids double-parsing every inbound frame on the hot path; preserves the exact rawData for durable ingress.receive).
  • Send-then-increment. If ws.send throws, the counter is not inflated by a heartbeat that was never sent.

User Impact

A QQBot connection whose heartbeats go unanswered is now detected and terminated for reconnect (via Resume) instead of remaining OPEN until the transport emits close. Whether such half-open states occur in practice, and how long they persist, was not observed (see #114885 NOT_ENOUGH_INFO); the fix closes the client-side detection gap regardless. Tolerates one missed ACK before tearing down, so transient latency does not reconnect a healthy session.

Evidence

  • Fix: extensions/qqbot/src/engine/gateway/gateway-connection.ts — outstandingHeartbeats counter, sync ACK reset in ws.on("message"), threshold check in the heartbeat tick.
  • Contract: QQ Bot opcode table — Op 11 "当发送心跳成功之后,就会收到该消息" (received after a heartbeat is sent successfully).
  • Sibling precedent: extensions/mattermost/src/mattermost/monitor-websocket.ts:138-209 (pong-timeout watchdog).
  • Focused exact-head test: node scripts/run-vitest.mjs extensions/qqbot/src/engine/gateway/gateway-connection.test.ts — 14 tests passed on 305e504c4347e89b153d83092929dbea633addd1 (Node 25.9.0, isolated remote checkout).

Exact-head real-channel fault-injection proof — 2026-07-29

A built checkout of exact head 305e504c4347e89b153d83092929dbea633addd1 started a real QQBot gateway with an isolated state directory. A loopback-only TLS CONNECT relay was selected solely through HTTPS_PROXY; it allowed only the QQBot token/API hosts, forwarded all traffic, and suppressed only server WebSocket Op 11 ACK frames. The relay used a temporary host-valid certificate trusted only by this proof process. It logged no credentials, endpoint authorities, payloads, or messages; the temporary credentials, config, key, certificate, state, logs, and relay were removed at process exit.

QQBOT_PROXY_MODE=HTTPS_PROXY_only
QQBOT_WEBSOCKET_READY=true
QQBOT_PROXY_CONNECT_ACCEPTED=2
QQBOT_PROXY_WEBSOCKET_UPGRADES=2
QQBOT_PROXY_CLIENT_HEARTBEATS=2
QQBOT_PROXY_ACK_SUPPRESSED=2
QQBOT_WATCHDOG_OVERDUE_LOGGED=true
QQBOT_WATCHDOG_RECONNECT_OBSERVED=true
QQBOT_WATCHDOG_TRIGGERED=true
QQBOT_PROOF_ARTIFACTS_REMOVED=true

The first live WebSocket sent two real heartbeat frames whose real Op 11 ACKs were intentionally withheld. On the next tick, the production code logged the two-unanswered-ACK condition, terminated that socket, and completed a second WebSocket upgrade through the existing reconnect path. This proves the changed production behavior—not a mocked transport—while leaving normal ACK traffic and all application messages unmodified.

Maintainer decision still needed

The proof establishes the behavior and reconnection path. The explicit 2-unanswered-ACK threshold remains a product/reliability policy choice for the QQBot owner: whether to tolerate a single missed ACK before reconnecting is not determined by the QQBot protocol itself.

This is AI-assisted.

@guanbear
guanbear marked this pull request as ready for review July 28, 2026 03:41
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. labels Jul 28, 2026
@clawsweeper

clawsweeper Bot commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 8:17 PM ET / August 2, 2026, 00:17 UTC.

ClawSweeper review

What this changes

This PR tracks QQBot gateway heartbeat acknowledgements and terminates a socket after two unanswered heartbeat sends so the existing reconnect path can restore delivery.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

This PR remains necessary: current main receives QQBot heartbeat ACKs but records no liveness state. The implementation and supplied real-channel proof are strong, with no concrete patch defect found; merge should pause only for the QQBot owner to accept the two-unanswered-send recovery policy. Likely related people: steipete (high confidence) and Masato Hoshino (medium confidence).

Priority: P2
Reviewed head: 840bf73812b75c3a9f3a6b5ee1e9b95c4e29bc7d
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is focused and well-proven, with a remaining owner-level reliability policy choice rather than a demonstrated implementation defect.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The PR body includes redacted real QQBot fault-injection output showing suppressed Op 11 ACKs, watchdog termination, and a second WebSocket upgrade through the existing reconnect path.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The PR body includes redacted real QQBot fault-injection output showing suppressed Op 11 ACKs, watchdog termination, and a second WebSocket upgrade through the existing reconnect path.
Evidence reviewed 6 items Current-main gap: Current main serializes inbound frames, explicitly handles HEARTBEAT_ACK as a no-op, and sends heartbeats without recording acknowledgement state.
Focused branch repair: The branch recognizes Op 11 before the serialized ingress tail, resets the outstanding-heartbeat count, and terminates only when the selected threshold is reached on a later heartbeat tick.
Regression coverage: The branch adds focused cases for acknowledged heartbeats, two unanswered sends, an ACK arriving while durable ingress is blocked, and malformed null frames.
Findings None None.
Security None None.

How this fits together

The QQBot plugin owns a gateway WebSocket that receives protocol frames and routes user messages into durable ingress. The watchdog observes heartbeat ACK frames before that serialized ingress queue and uses missing ACKs to trigger the existing reconnect lifecycle.

flowchart LR
  Gateway[QQ Bot gateway] --> Socket[QQBot WebSocket]
  Socket --> Frame[Inbound gateway frame]
  Frame --> Ack[Heartbeat ACK check]
  Frame --> Ingress[Durable message ingress]
  Ack --> Watchdog[Missed-ACK watchdog]
  Watchdog --> Close[Socket termination]
  Close --> Reconnect[Existing reconnect flow]
Loading

Decision needed

Question Recommendation
Should QQBot terminate and reconnect after two consecutive heartbeat sends receive no Op 11 acknowledgement? Accept two missed ACKs: Merge the current policy, which permits one missed acknowledgement and tears down the socket on the following heartbeat tick.

Why: The protocol says Op 11 follows a successful heartbeat but provides no client-side timeout or tolerance policy, while this value directly changes the balance between faster recovery and reconnect churn.

Before merge

  • Resolve merge risk (P1) - The QQ Bot ACK contract establishes acknowledgement semantics but does not prescribe a tolerated-miss threshold; two unanswered sends trade slower detection of a half-open connection for lower reconnect churn on transient delay.
  • Resolve merge risk (P1) - Because socket termination flows into channel status and reconnect handling, the selected threshold can affect both inbound delivery continuity and QQBot connection availability.
  • Complete next step (P2) - No bounded mechanical repair remains; the merge blocker is the owner’s policy choice for the missed-ACK threshold.
Agent review details

Security

None.

PR surface

Source +35, Tests +129. Total +164 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 45 10 +35
Tests 1 129 0 +129
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 174 10 +164

Review metrics

None.

Stored data model

Persistent data-model change detected: serialized state: extensions/qqbot/src/engine/gateway/gateway-connection.test.ts, serialized state: extensions/qqbot/src/engine/gateway/gateway-connection.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #114885
Summary: This PR is the concrete candidate fix for the linked QQBot heartbeat-ACK detection report.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Confirm the recovery policy (recommended)
    Have the QQBot owner explicitly approve two unanswered sends as the intended threshold before merge.
  2. Adopt a different tolerance
    Revise the threshold and focused tests if the owner wants faster detection or greater tolerance for delayed ACKs.
  3. Pause this behavior change
    Keep the PR open if maintainers want production reliability data before selecting a QQBot reconnect threshold.

Technical review

Best possible solution:

Keep the synchronous ACK handling in the QQBot gateway owner and merge the focused watchdog after the QQBot owner explicitly accepts the two-unanswered-send recovery threshold.

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

Yes — source inspection shows current main sends heartbeats while its ACK case has no liveness state, and the branch’s focused tests cover the no-ACK recovery path. The PR body also provides redacted live QQBot fault-injection output showing ACK suppression followed by watchdog-triggered reconnection.

Is this the best way to solve the issue?

Unclear — recognizing ACKs synchronously before durable ingress is the right owner boundary, but the exact two-send tolerance is not dictated by the QQBot protocol and needs an owner decision.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This is a bounded QQBot reliability repair with no evidence of an active broad outage.
  • merge-risk: 🚨 message-delivery: A too-aggressive missed-ACK threshold can interrupt a live QQBot socket and briefly disrupt inbound delivery.
  • merge-risk: 🚨 availability: The change deliberately terminates gateway connections, so its threshold affects reconnect frequency and channel continuity.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The PR body includes redacted real QQBot fault-injection output showing suppressed Op 11 ACKs, watchdog termination, and a second WebSocket upgrade through the existing reconnect path.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body includes redacted real QQBot fault-injection output showing suppressed Op 11 ACKs, watchdog termination, and a second WebSocket upgrade through the existing reconnect path.

Evidence

What I checked:

Likely related people:

  • steipete: Peter Steinberger authored the gateway-restart and durable-ingress work and owns the shallow-history blame boundary for the current connection path. (role: recent QQBot gateway and durable-ingress contributor; confidence: high; commits: 8d89ddd8c22b, 2438a9cc3cd8, fb3d473a73b0; files: extensions/qqbot/src/engine/gateway/gateway-connection.ts, extensions/qqbot/src/engine/gateway/gateway.ts)
  • Masato Hoshino: Authored the QQBot channel-status repair that consumes gateway disconnect state, which this watchdog will exercise. (role: adjacent channel-status contributor; confidence: medium; commits: cbb920c7d9e4; files: extensions/qqbot/src/engine/gateway/gateway-connection.ts, extensions/qqbot/src/channel.gateway-status.test.ts)

Rank-up moves

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

  • Obtain QQBot owner confirmation that two unanswered heartbeat sends is the intended reconnect threshold.

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 (13 earlier review cycles; latest 8 shown)
  • reviewed 2026-07-29T13:02:11.983Z sha 89cc6eb5b4f0c7a53c5b0465ded22dcedee430a7 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-31T10:06:51.849Z sha 840bf73 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-31T10:14:52.594Z sha 840bf73 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-31T10:21:20.898Z sha 840bf73 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-01T05:55:30.817Z sha 840bf73 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-01T11:22:06.558Z sha 840bf73 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-01T15:07:37.185Z sha 840bf73 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-01T19:01:33.978Z sha 840bf73 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Jul 28, 2026
@guanbear guanbear closed this Jul 28, 2026
@guanbear guanbear reopened this Jul 28, 2026
@guanbear

Copy link
Copy Markdown
Contributor Author

Real QQBot runtime evidence — connected a QQ bot (appId 1905…) to the live QQ gateway (wss://api.sgroup.qq.com/websocket) and instrumented the op:11 HEARTBEAT_ACK handler to confirm ACKs actually arrive on the wire.

The connection came up cleanly and the QQ gateway sent op:11 HEARTBEAT_ACK on a stable ~41s cadence. Four consecutive ACKs captured:

[qqbot] ✅ Access token obtained successfully
[qqbot] Connecting to wss://api.sgroup.qq.com/websocket
[qqbot] WebSocket connected
[qqbot] Gateway resumed
[QQBOT-PROOF] received op:11 HEARTBEAT_ACK   (+42s after connect)
[QQBOT-PROOF] received op:11 HEARTBEAT_ACK   (+41s)
[QQBOT-PROOF] received op:11 HEARTBEAT_ACK   (+41s)
[QQBOT-PROOF] received op:11 HEARTBEAT_ACK   (+41s)

Why this matters for this PR: on upstream/main, the op:11 branch is case GatewayOp.HEARTBEAT_ACK: break; — these ACKs are received on the socket but silently discarded, so nothing tracks whether the server is actually acknowledging heartbeats. This PR's outstandingHeartbeats watchdog is what turns these arriving ACKs into a real liveness signal (reset to 0 on each ACK; reconnect when the counter exceeds the threshold). The capture above confirms the ACK traffic this watchdog consumes is real and regular, not theoretical.

Endpoints/IPs/appId redacted from the live log.

@guanbear

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@guanbear

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@guanbear

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 28, 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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Jul 28, 2026
@guanbear
guanbear force-pushed the fix/qqbot-heartbeat-ack-watchdog branch from 305e504 to 89cc6eb Compare July 29, 2026 09:15
@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. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jul 29, 2026
guanbear added 2 commits July 31, 2026 18:00
The gateway sent heartbeats but never verified that op:11 ACKs arrived,
so a half-open connection (silent packet loss) stayed OPEN indefinitely
and inbound messages were lost with no status change.

Adds a counter-based watchdog: each heartbeat sent increments an
outstanding count, each op:11 resets it. When the count reaches the
missed-ACK threshold (2 unanswered sends), the socket is terminated so
handleClose -> scheduleReconnect re-establishes delivery.

ACKs are recognized synchronously in ws.on('message') before
socketMessageTail, so a slow ingress.receive() cannot mask an arrived
ACK. The raw frame is decoded/parsed once and carried as {rawData,
payload}; non-object frames are guarded to stay within the error path.

Closes openclaw#114885
guanbear added 2 commits July 31, 2026 18:00
handleHello has no local log binding; the overdue-ACK error log must
read this.ctx.log to match the existing GatewayConnection logging
convention and pass check-prod-types.
@guanbear
guanbear force-pushed the fix/qqbot-heartbeat-ack-watchdog branch from 89cc6eb to 840bf73 Compare July 31, 2026 10:02
@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Jul 31, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Aug 1, 2026
@steipete

steipete commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Maintainer decision: accept two consecutive unanswered heartbeat sends as the QQBot recovery threshold. This tolerates one missed ACK and uses the existing reconnect path; QQ's ACK contract does not prescribe a threshold. The original author documented live ACK suppression and reconnection on historical head 305e504; required CI succeeds on current head 840bf.

@steipete
steipete merged commit a75b134 into openclaw:main Aug 2, 2026
102 of 110 checks passed
vincentkoc added a commit to zenglingbiao/openclaw that referenced this pull request Aug 2, 2026
* origin/main: (59 commits)
  fix(agents): reject false success from delegated file mutations (openclaw#117938)
  fix(macos): reopen AI choice, fix daemon error text, hand onboarding off to the dashboard custodian (openclaw#117921)
  fix(qa): tolerate expected Matrix sync long-poll deadlines (openclaw#117807)
  feat(cli): support --json across reporting commands (openclaw#117928)
  perf(cli): keep read-only commands on cold paths (openclaw#117932)
  fix: prevent fractional chunk limits from stalling text splitting (openclaw#117727)
  fix(qqbot): add heartbeat-ACK liveness watchdog (openclaw#114902)
  chore(openai): defer release note to release flow
  fix(pr): join worktree discovery subprocesses
  test(gateway): widen aggregate event-loop budget (openclaw#117931)
  fix: refresh Buzz room targets after reconnect (openclaw#117927)
  fix: invalidate removed Buzz mention members
  fix: align Buzz explicit mention semantics
  test: split Buzz mention delivery coverage
  fix: preserve Buzz reply session threads
  refactor: keep Buzz mention helpers internal
  fix: invalidate stale Buzz room targets
  fix: tighten Buzz mention disambiguation
  perf: keep Buzz plain sends on the fast path
  fix: reject unresolved Buzz mention text
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 3, 2026
* fix(qqbot): add heartbeat-ACK liveness watchdog

The gateway sent heartbeats but never verified that op:11 ACKs arrived,
so a half-open connection (silent packet loss) stayed OPEN indefinitely
and inbound messages were lost with no status change.

Adds a counter-based watchdog: each heartbeat sent increments an
outstanding count, each op:11 resets it. When the count reaches the
missed-ACK threshold (2 unanswered sends), the socket is terminated so
handleClose -> scheduleReconnect re-establishes delivery.

ACKs are recognized synchronously in ws.on('message') before
socketMessageTail, so a slow ingress.receive() cannot mask an arrived
ACK. The raw frame is decoded/parsed once and carried as {rawData,
payload}; non-object frames are guarded to stay within the error path.

Closes openclaw#114885

* style(qqbot): oxfmt heartbeat liveness tests

* fix(qqbot): use this.ctx.log in heartbeat watchdog terminate path

handleHello has no local log binding; the overdue-ACK error log must
read this.ctx.log to match the existing GatewayConnection logging
convention and pass check-prod-types.

* chore: retrigger CI to clear stale checks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: qqbot merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. 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]: QQBot gateway never verifies heartbeat ACK — missed ACKs go undetected

2 participants