Skip to content

docs(line): document inbound durability, retry policy, and dead-letter recovery - #115702

Merged
Patrick-Erichsen merged 19 commits into
openclaw:mainfrom
edenfunf:docs/line-inbound-durability
Aug 29, 2026
Merged

Patrick-Erichsen merged 19 commits into
openclaw:mainfrom
edenfunf:docs/line-inbound-durability

Conversation

@edenfunf

@edenfunf edenfunf commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Operators running LINE have no documentation for what happens to a webhook event after the durable-queue acknowledgment. docs/channels/line.md says events are retried and "poison events become failed queue records after bounded retries" but never states the bounds, the per-chat ordering guarantee, the crash-recovery windows, or how to find and recover a dead-lettered event — so a bot that silently skips one chat, or a dead-letter reported by openclaw doctor, is undiagnosable from the LINE page. The safety claim that persistence failures return 500 also silently depends on the operator enabling Webhook redelivery in the LINE Developers console, which was documented nowhere.

Why This Change Was Made

Adds an "Inbound durability" section (same heading docs/channels/feishu.md uses for this topic) covering the LINE-specific drain settings — per-conversation lanes bounded by the 8-delivery concurrency cap, retry backoff and the deliberate opt-out of the 24-hour dead-letter age floor, non-retryable failure reasons, the adoption-stall watchdog, liveness-based claim recovery, the 30-day/4096-entry dedupe window, and the LINE-console redelivery dependency — and extends Troubleshooting with the dead-letter log signature plus the openclaw channels dead-letters inspect/resubmit flow. The section also documents the x-openclaw-delivery-accepted: durable response marker that #115796 added to the LINE webhook, matching the durability sections of the other six durable channels. Every OpenClaw number is read from current source rather than inferred from behavior, and the one platform-side claim (LINE redelivery) is cited to LINE's own Messaging API documentation rather than asserted. Intentionally not documented: drain poll interval and scan limit (internal tuning with no operator action, likely to drift). Docs-only; no runtime change.

User Impact

LINE operators can now read what delivery guarantees they actually have (per-chat ordering, other chats progressing independently while any of the 8 delivery slots is free — and a 9th chat waiting for one to open, at-least-once with crash-lost deliveries reclaimed on the next drain recovery sweep rather than after a lease timeout), predict dead-letter timing (8 attempts, ~2 minutes of backoff) and know that the 5-minute stall watchdog hands an event back for retry rather than ending it, recover events with openclaw channels dead-letters list/resubmit, and learn that the 500-on-persistence-failure contract only protects them if Webhook redelivery is enabled in the LINE console — and that even then LINE treats redelivery as best effort, not a guarantee. No behavior change for running gateways.

Evidence

Every documented OpenClaw number re-traced to current main after merging 8a101ed5a5d4:

== extensions/line/src/webhook-spool.ts ==
19:const LINE_WEBHOOK_MAX_CONCURRENT_DELIVERIES = 8;
57:  readonly reason = "delivery-side-effects-committed" as const;
102:      return `group:${groupId}`;
108:      return `room:${roomId}`;
114:      return `user:${userId}`;
258:      completedMaxEntries: 4096,
259:      failedMaxEntries: 4096,
267:    admissionMode: "durable-after-stop",
269:      adoptionStallTimeoutMs: DEFAULT_INGRESS_ADOPTION_STALL_MS,
270:      orderBy: "received",
272:      startLimit: LINE_WEBHOOK_MAX_CONCURRENT_DELIVERIES,
274:        maxAttempts: DEFAULT_INGRESS_RETRY_MAX_ATTEMPTS,
277:        deadLetterMinAgeMs: 0,
281:          return { reason: "invalid-event", message: error.message };
287:          return { reason: "authentication-failed", message: formatErrorMessage(error) };

== extensions/line/src/monitor.ts ==
405:            res.setHeader("x-openclaw-delivery-accepted", "durable");

== src/channels/message/ingress-monitor.ts ==
126:export const CHANNEL_INGRESS_RETENTION_DEFAULTS = Object.freeze({
128:  completedTtlMs: 30 * 24 * 60 * 60 * 1_000,
130:  failedTtlMs: 30 * 24 * 60 * 60 * 1_000,
194:      : { ...CHANNEL_INGRESS_RETENTION_DEFAULTS, ...options.retention };

== src/channels/message/ingress-retry-policy.ts ==
8:export const DEFAULT_INGRESS_RETRY_MAX_ATTEMPTS = 8;
10:export const DEFAULT_INGRESS_RETRY_BASE_MS = 1_000;
11:export const DEFAULT_INGRESS_RETRY_MAX_MS = 3 * 60_000;

== packages/retry/src/index.ts ==
11:  const base = Math.min(policy.maxMs, policy.initialMs * policy.factor ** Math.max(attempt - 1, 0));

== src/channels/message/ingress-drain.ts ==
51:export const DEFAULT_INGRESS_ADOPTION_STALL_MS = 5 * 60 * 1000;
400:      const message = `Channel ingress claim→adoption stalled for event ${displayId} on lane ${state.laneKey} after ${ageMs}ms; applying retry policy (handler-timeout).`;
415:          await applyFailureDisposition(state.claim, timeoutError);
648:      staleMs: 0,
687:    await recoverStaleClaims();

== src/channels/message/ingress-claim-owner.ts ==
14:export const INGRESS_CLAIM_LEASE_MS = 30 * 60 * 1000;
185:  if (!exists(claim.processPid)) {
247:    isFreshClaimOwner(owner, options) &&
248:    isClaimOwnerProcessInstanceLive(owner, options)

Cumulative backoff: attempts 1-7 wait 1+2+4+8+16+32+64 s = 127 s (min(180s, 1s * 2^(n-1)), so the 3-minute cap is never reached before the 8th-attempt dead-letter). The "opts out of the 24-hour floor" sentence restates the source comment at webhook-spool.ts:275-276. The 30-day dedupe retention is inherited from CHANNEL_INGRESS_RETENTION_DEFAULTS after #115824 folded the per-channel TTL constants into the shared defaults; LINE keeps its own 4096-entry caps. Durable-after-stop admission: webhook-spool.ts:267, with the mode contract at ingress-monitor.ts:620-622. CLI commands and retention wording match docs/cli/channels.md ("Inbound dead letters").

Correction in this revision: the stall watchdog retries, it does not dead-letter. The earlier text said a 5-minute pre-adoption stall dead-letters as handler-timeout. That was true of the code this branch was originally written against; #127090 (ee79b0a49ae, fix(channels): retry timed-out ingress messages) changed the watchdog to route its timeout through the canonical retry owner, and the branch had drifted behind that. Current main builds a timeout error and hands it to applyFailureDisposition, the same path every other delivery failure takes:

== src/channels/message/ingress-drain.ts (current main) ==
400:      const message = `... stalled for event ${displayId} on lane ${state.laneKey} after ${ageMs}ms; applying retry policy (handler-timeout).`;
401:      const timeoutError = new Error(message);
411:      // Route the timeout through the canonical retry owner. A release/fail write
412:      // error must not falsely settle (would stop heartbeat and wedge recovery).
415:          await applyFailureDisposition(state.claim, timeoutError);

handler-timeout therefore never appears as a dead-letter reason anywhere in the tree — only as a lastError substring on a pending row. The repo-wide grep is the negative proof, and the watchdog regression pins the positive behavior: the stalled event goes back to pending with attempts: 1, listFailed stays empty, and it keeps the head of its lane (evt-stall dispatches again before its younger sibling evt-next):

== src/channels/message/ingress-drain.watchdog.test.ts (current main) ==
49:      expect(await queue.listFailed?.({ limit: "all" })).toEqual([]);
50:      expect(await queue.listPending({ limit: "all", orderBy: "received" })).toMatchObject([
51:        { id: "evt-stall", attempts: 1, lastError: expect.stringContaining("handler-timeout") },
52:        { id: "evt-next", attempts: 0 },
53:      ]);
54:      await expect(stalledLifecycle?.onAdopted()).rejects.toSatisfy(isIngressAdoptionLostError);
63:      expect(dispatched).toEqual(["evt-stall", "evt-stall", "evt-next"]);

$ vitest run --config test/vitest/vitest.channels.config.ts src/channels/message/ingress-drain.watchdog.test.ts
 ✓ channel ingress drain watchdog > retries pre-adoption stalls in lane order and fences late adoption
 ✓ channel ingress drain watchdog > guillotines deferred stalls
 ✓ channel ingress drain watchdog > does not kill healthy long turns after adoption
 Test Files  1 passed (1)
      Tests  3 passed (3)

Both places that stated the old behavior are corrected: the Stall watchdog bullet now says the event is released back to its lane with an incremented attempt count and that only the retry limit ends it as retry-limit-exceeded, and the Troubleshooting entry is retitled handler-timeout retries with the applying retry policy (handler-timeout) log line operators will actually see. The late-adoption fence is documented alongside it, since that is the part of the watchdog that still terminates something.

The watchdog covers the pre-adoption window only, and the text now says so. The previous revision's troubleshooting entry named "a hung agent run" as the usual cause and sent operators to look for a stalled turn. That is the wrong place: the timer is armed at dispatch and onAdopted clears it, so it can only fire while the delivery is still dispatching or deferred — before executeAgentTurn runs at all. A turn that is already going is never the cause and is never cut off by it.

== src/channels/message/ingress-drain.ts (current main) ==
393:    state.stallTimer = setTimeout(() => {
394:      // Pre-adoption only (dispatching OR deferred). Timer is not cleared by deferral.
395:      if (state.phase !== "dispatching" && state.phase !== "deferred") {
396:        return;
397:      }
...
449:      onAdopted: async () => {
462:        state.phase = "adopted";
463:        clearStallTimer(state);

Both places are corrected: the Stall watchdog bullet now states that adoption clears the watchdog so a long agent turn is never interrupted by it, and the Troubleshooting entry points at the dispatch path between claim and adoption — inbound media download, or a Gateway not accepting new work — instead of at a turn that never started. The late-adoption fence stays documented alongside, since that is the part of the watchdog that does still terminate something.

The duplicate-suppression window is bounded by the record cap, not only by the TTL. The previous revision read the 4096 figure as a reporting detail alongside a 30-day guarantee. It is an independent pruning limit: pruneMaxEntries orders each status by updated_at desc and deletes everything past the cap, so on a busy account a record is evicted well before it ages out.

== src/channels/message/ingress-queue.ts ==
1403:        const pruneMaxEntries = (status: string, maxEntries: number | null) => {
1417:                .orderBy("updated_at", "desc")
1418:                .orderBy("event_id", "desc")
1419:                .limit(maxEntries + batchSize),
1420:            ).rows.slice(maxEntries);

== extensions/line/src/webhook-spool.ts ==
256:    retention: {
257:      pruneIntervalMs: 0,
258:      completedMaxEntries: 4096,
259:      failedMaxEntries: 4096,

== src/channels/message/ingress-monitor.ts (pruneIntervalMs <= 0 -> prune on admission) ==
459:    if ((owner === "admission") !== pruneIntervalMs <= 0) {

LINE sets pruneIntervalMs: 0, which routes pruning to the admission owner rather than the pump timer, so the cap applies as soon as it is exceeded rather than at the next sweep. The section now says "up to 30 days, subject to a cap of 4096 records each per account — whichever limit is reached first", spells out that the cap keeps the most recently updated records and drops the rest, and states the consequence for operators: once a record is gone by either route a redelivery is admitted and dispatched again, so handlers with external side effects should not lean on this window in place of their own idempotency.

The 401/403 claim is OpenClaw's own classification, and it is pinned by a test in this repository. An earlier revision argued this from node_modules, which was the wrong place to point: a reviewer working from a checkout cannot inspect an installed dependency, and the documented sentence is not a statement about the SDK at all. What the section claims is OpenClaw behavior — that a LINE API authentication failure dead-letters immediately rather than retrying — and both the rule and its coverage are in the tree:

== extensions/line/src/webhook-spool.ts ==
130:function isLineAuthenticationFailure(error: unknown): boolean {
135:  const status = (error as { status?: unknown }).status;
136:  return status === 401 || status === 403;
...
286:        if (isLineAuthenticationFailure(error)) {
287:          return { reason: "authentication-failed", message: formatErrorMessage(error) };

== extensions/line/src/webhook-spool.test.ts ==
713:  it("dead-letters LINE API authentication failures without retry", async () => {
717:        throw Object.assign(new Error("invalid channel access token"), { status: 401 });
730:        expect(deliver).toHaveBeenCalledTimes(1);
734:          expect(verdict.record.reason).toBe("authentication-failed");

That regression is the whole documented claim, end to end and without any vendor dependency: a delivery failure carrying status: 401 is attempted exactly once (toHaveBeenCalledTimes(1) — no retry) and lands as authentication-failed. It runs in CI on this PR, so if the mapping ever stopped holding, the check that catches it is in this repository rather than in a dependency someone has to install to verify.

The SDK's role is only to supply that status field, and it is a published, typed part of the pinned version (extensions/line/package.json pins @line/bot-sdk at 11.2.0; HTTPFetchError declares status: number). But nothing in the documented behavior rests on taking that on faith — if a future SDK stopped setting status, the repository test above would fail rather than the documentation silently going stale.

One claim in this page is vendor-owned by design, and the page says so in its own prose. LINE's webhook-redelivery behavior cannot be derived from this repository — OpenClaw only controls the 500 half of that contract, which is repo-verifiable. Rather than assert the platform half as if it were our behavior, the section attributes it in the running text and links the source:

LINE redelivers a webhook when Webhook redelivery is enabled for the channel in the LINE Developers Console (Messaging API settings, alongside Use webhook) and the bot server did not answer 2xx. Without that setting, an event refused with 500 is not re-sent. Even enabled, redelivery is best effort rather than a guarantee: LINE documents that it is not reliable, that the retry count and interval are undisclosed, and that redelivered events may arrive out of order or more than once…

with a direct link to Redeliver a webhook that failed to be received. Every sentence there is either a console setting an operator can see for themselves or something explicitly framed as LINE's own documentation, so a reader cannot mistake it for a guarantee OpenClaw makes. The wording paraphrases LINE's page rather than inventing behavior: "doesn't guarantee that webhooks will be reliably delivered", "the number and interval of the webhook redelivery aren't disclosed", and "the order of webhook events you receive can be different from the order the events occurred".

That leaves exactly one thing outside this repository for a maintainer to eyeball — whether LINE's page still reads that way — instead of the two vendor gaps the previous review noted. If the preference is to carry no platform claim at all, the whole paragraph can be cut to its first sentence (the console prerequisite) without touching anything else in the section; I have kept it because the 500 contract is misleading on its own, and an operator who does not know redelivery must be switched on will read the durability guarantee as stronger than it is.

Lane independence is bounded by the concurrency cap, not unconditional. The drain blocks only occupied lanes, so an unrelated lane is never blocked by that lane — but claiming stops entirely once 8 deliveries are active, so a 9th lane waits for a slot. Both halves are in the same claim loop:

== src/channels/message/ingress-monitor.ts (startLimit gates new claims) ==
513:        const { started } = await withAdmissionClaimLock(() =>
514:          activeDrain.drainOnce({
515:            shouldStop: () =>
516:              !running ||
517:              isAborted() ||
518:              (options.drain?.startLimit !== undefined &&
519:                activeDeliveries.size >= options.drain.startLimit),
520:          }),
521:        );

== src/channels/message/ingress-drain.ts (per-lane blocking is separate) ==
737:    while (started < startLimit) {
772:        if (laneOwnerByKey.has(laneKey)) {
773:          await queue.release(claimed, { recordAttempt: false });
774:          blockedLaneKeys.add(laneKey);
775:          continue;
776:        }
779:      blockedLaneKeys.add(laneKey);
780:      started += 1;

The section now says one chat's backlog never blocks another chat's lane, that other chats progress independently while a slot is free, and that a 9th lane waits for one to open.

The webhook-redelivery prerequisite is a LINE platform contract, so it is cited to LINE, not to OpenClaw source. Redeliver a webhook that failed to be received states both conditions — "Webhook redelivery is enabled" and "The bot server didn't return 2xx status code for the webhook" — and the caveats now carried into the docs verbatim in substance: "Webhook redelivery doesn't guarantee that webhooks will be reliably delivered", "The number and interval of the webhook redelivery aren't disclosed", "The order of webhook events you receive can be different from the order the events occurred", and that the same event "may be sent ... more than once" (absorbed by the documented duplicate-suppression window). The console setting lives in the Messaging API tab beside Use webhook, which the page's Setup step 4 already covers. OpenClaw source only proves the 500 half of that contract, which is why the vendor half is now linked rather than asserted.

Crash recovery is liveness-gated, not lease-gated: drainOnce calls recoverStaleClaims() first, that call scans with staleMs: 0, and isIngressClaimOwnedByOtherLiveProcess protects a claim only when the owner is both fresh and a live process instance. A dead owner fails the liveness half, so its claim is reclaimed on the next sweep regardless of age. The existing regression test pins exactly that — a zero-age claim owned by dead PID 999 is dispatched by the first drainOnce():

$ vitest run --config test/vitest/vitest.config.ts src/channels/message/ingress-drain.test.ts -t "crash-window"
 ✓ src/channels/message/ingress-drain.test.ts > crash-window: lost claim is recovered and dispatched exactly once
 Test Files  1 passed (1)
      Tests  1 passed | 28 skipped (29)

The 30-minute lease is therefore documented as the fallback bound for the opposite case — a claim whose owner still looks alive (running process, or a reused PID whose start-time identity is unreadable, ingress-claim-owner.ts:185-205).

Docs checks on the merged branch:

$ node scripts/check-docs-mdx.mjs docs README.md
Docs MDX check passed (787 files, 17961ms).

$ node scripts/docs-link-audit.mjs
checked_internal_links=6637
broken_links=0

$ node scripts/check-docs-i18n-glossary.mjs
(exit 0)

$ node scripts/check-docs-mdx.mjs docs/channels/line.md
Docs MDX check passed (1 files, 140ms).

$ oxfmt --check docs/channels/line.md
All matched files use the correct format.

markdownlint (markdownlint-cli2 --config config/markdownlint-cli2.jsonc, 772 files) reports no issues for docs/channels/line.md; the single repo-wide finding is the pre-existing docs/CLAUDE.md symlink, byte-identical to origin/main and untouched here. The optional docs-link-audit --anchors pass reports 311 pre-existing broken anchors across 43 files, none of them in docs/channels/line.md; that mode is not part of check:docs, which runs the plain link audit above.

An earlier revision of this PR also touched docs/docs_map.md. #117398 moved that map to publish-time generation and reduced the checked-in file to a pointer stub, so the merge drops that hunk and this PR is now a single-file docs change.

What was not tested: no live gateway run — docs-only change with no runtime surface. Proof limitations: the aggregate format:docs:check script cannot run on this Windows machine (it exceeds the cmd.exe command-line length before oxfmt starts), so formatting was verified per-file by driving the script's own exported runOxfmt against a temp copy and diffing; CI runs the full script.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: line Channel integration: line size: XS labels Jul 29, 2026
@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 Jul 29, 2026
@clawsweeper

clawsweeper Bot commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 28, 2026, 9:43 PM ET / August 29, 2026, 01:43 UTC.

ClawSweeper review

What this changes

The PR documents how LINE webhook events are durably accepted, ordered, retried, recovered from dead letters, and diagnosed by operators.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep open. The new LINE operator documentation is not present on fetched current main and its OpenClaw-specific claims match the current ingress implementation; the cited LINE redelivery conditions still need a maintainer to verify against the vendor page, which was unreachable from this review environment.

Priority: P3
Reviewed head: 40afe9c14852f231761d593c7a374b3ebb5310ad
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The OpenClaw behavior is well mapped to source and tests; only direct verification of the cited vendor contract remains.
Proof confidence 🌊 off-meta tidepool Not applicable: Real behavior proof is not required because this PR only changes files under docs/.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Real behavior proof is not required because this PR only changes files under docs/.
Evidence reviewed 7 items Current main lacks this operator section: Fetched current main has no Inbound durability heading on the LINE page, while the PR head contains the new section; the central documentation gap therefore remains unaddressed on main.
LINE ingress configuration matches the page: The LINE spool sets received-order lanes, an eight-delivery limit, zero dead-letter age floor, and the shared eight-attempt policy; the referenced runtime paths match fetched current main.
Shared retry and recovery behavior is source-backed: The drain sends watchdog timeouts through the canonical retry disposition, fences late adoption, and starts each drain pass with liveness-aware stale-claim recovery; the watchdog test asserts retry, lane ordering, and no timeout dead letter.
Findings None None.
Security None None.

How this fits together

LINE webhooks enter the LINE plugin, which durably queues accepted events before the shared ingress drain delivers them to agent turns. The page explains the queue’s delivery, retry, retention, and recovery behavior to LINE operators.

flowchart LR
  A[LINE webhook] --> B[LINE plugin]
  B --> C[Durable ingress queue]
  C --> D[Lane and retry policy]
  D --> E[Agent delivery]
  D --> F[Dead-letter recovery tools]
Loading

Decision needed

Question Recommendation
Does the linked LINE documentation support the exact redelivery prerequisites and caveats stated on this page? Verify and merge: Confirm the linked LINE page supports the stated console-setting, non-2xx, best-effort, ordering, and duplication language, then merge the docs-only update.

Why: The OpenClaw behavior is source-backed, but this review could not inspect the external authority due to DNS failure.

Before merge

  • Resolve merge risk (P1) - The operator-facing claim that LINE redelivers only when the console setting is enabled and the server returns non-2xx was not directly checkable because the official vendor page was unreachable; incorrect wording could mislead recovery expectations.
  • Complete next step (P2) - This is a normal docs review with an external-source verification step, not a safe automated repair task.
Agent review details

Security

None.

PR surface

Docs +98. Total +98 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 1 103 5 +98
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 103 5 +98

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Verify vendor recovery guidance (recommended)
    Open the linked LINE redelivery documentation and confirm the conditions and caveats before merging this operator-facing reliability guidance.

Technical review

Best possible solution:

Verify the linked official LINE redelivery documentation, then merge this focused page update if its conditions and caveats match the cited vendor contract.

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

Not applicable: this PR documents an existing delivery flow rather than repairing a reported runtime failure; current source and tests establish the OpenClaw-side behavior.

Is this the best way to solve the issue?

Unclear: the OpenClaw-specific material is accurately sourced, but the external LINE redelivery contract needs direct verification before this is the best operator guidance.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P3: The PR is a focused documentation improvement with no runtime behavior change.
  • merge-risk: 🚨 other: Incorrect external-platform recovery guidance could cause operators to misdiagnose whether rejected LINE webhooks will be retried.
  • 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: Real behavior proof is not required because this PR only changes files under docs/.

Evidence

What I checked:

  • Current main lacks this operator section: Fetched current main has no Inbound durability heading on the LINE page, while the PR head contains the new section; the central documentation gap therefore remains unaddressed on main. Public docs: docs/channels/line.md. (docs/channels/line.md:65, 740ca0fddf7b)
  • LINE ingress configuration matches the page: The LINE spool sets received-order lanes, an eight-delivery limit, zero dead-letter age floor, and the shared eight-attempt policy; the referenced runtime paths match fetched current main. (extensions/line/src/webhook-spool.ts:204, 740ca0fddf7b)
  • Shared retry and recovery behavior is source-backed: The drain sends watchdog timeouts through the canonical retry disposition, fences late adoption, and starts each drain pass with liveness-aware stale-claim recovery; the watchdog test asserts retry, lane ordering, and no timeout dead letter. (src/channels/message/ingress-drain.ts:270, 740ca0fddf7b)
  • Recovery commands and log wording exist: The shared drain emits the documented dead-letter log form, and the CLI reference defines dead-letter listing and resubmission semantics. Public docs: docs/cli/channels.md. (docs/cli/channels.md:56, 740ca0fddf7b)
  • Relevant behavior provenance: The shared timeout-retry behavior dates to the merged fix that the PR explicitly documents. (src/channels/message/ingress-drain.ts:290, ee79b0a49ae4)
  • Vendor contract remains externally unverified: The PR’s redelivery conditions are linked to LINE’s official page, but direct inspection could not complete because DNS resolution for developers.line.biz failed; this is a reviewer-environment limitation, not missing contributor proof. Public docs: docs/channels/line.md. (docs/channels/line.md:122, 40afe9c14852)

Likely related people:

  • zhangguiping-xydt: Authored the merged shared ingress timeout-retry fix that the new watchdog guidance describes. (role: introduced shared retry behavior; confidence: high; commits: ee79b0a49ae4; files: src/channels/message/ingress-drain.ts, src/channels/message/ingress-drain.watchdog.test.ts)
  • steipete: Authored the merged retention-default and durable-acceptance-marker changes referenced by the documentation. (role: adjacent ingress and LINE behavior owner; confidence: high; commits: 986e5d175861, cb8351604ee9; files: src/channels/message/ingress-monitor.ts, extensions/line/src/monitor.ts)
  • Patrick-Erichsen: Recent commits on this PR corrected webhook verification, retention, and watchdog wording after prior review cycles. (role: recent documentation editor; confidence: medium; commits: 6d1150520b48, 94fd8c06e7a4; files: docs/channels/line.md)

Rank-up moves

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

  • Verify the linked LINE redelivery page and adjust the wording only if its documented conditions differ.

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 (27 earlier review cycles; latest 8 shown)
  • reviewed August 16, 2026, 4:44 AM ET / 08:44 UTC sha unknown :: needs maintainer review before merge. :: none
  • reviewed 2026-08-22T01:59:56.383Z sha 911004c :: needs changes before merge. :: [P2] Describe the watchdog as retrying, not dead-lettering
  • reviewed 2026-08-27T05:16:06.068Z sha 9fd1ea2 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-27T05:38:45.249Z sha 9fd1ea2 :: needs changes before merge. :: [P2] Describe handler-timeout as a pre-adoption delivery stall
  • reviewed 2026-08-27T12:13:03.874Z sha 026b7c0 :: needs changes before merge. :: [P2] Qualify the duplicate-suppression retention window
  • reviewed 2026-08-27T13:06:47.754Z sha 7e29827 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-27T17:11:15.218Z sha ab3bd84 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-28T09:12:27.503Z sha ab3bd84 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. and removed 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 Aug 1, 2026
@edenfunf

edenfunf commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 4, 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 P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. and removed P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. labels Aug 4, 2026
@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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. labels Aug 6, 2026
@clawsweeper clawsweeper Bot removed 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 Aug 27, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. and removed merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. labels Aug 27, 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. and removed P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 27, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 27, 2026
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

@clawsweeper

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

@Patrick-Erichsen Patrick-Erichsen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified at exact head 40afe9c: docs validation and hosted CI pass; fresh ClawSweeper has no findings; official LINE documentation confirms the redelivery and webhook-verification conditions.

@Patrick-Erichsen
Patrick-Erichsen merged commit a6ccf6a into openclaw:main Aug 29, 2026
55 checks passed
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 29, 2026
…r recovery (openclaw#115702)

* docs(line): document inbound durability, retry policy, and dead-letter recovery

* docs(line): clarify non-retryable failures skip retries at any attempt

* docs(line): note the durable-acceptance marker and polish the durability section

* docs(line): correct dead-owner claim recovery timing

* docs(line): make dead-letter recovery reason-specific

* docs(line): bound lane independence by concurrency and cite LINE redelivery

The per-conversation ordering bullet claimed a retrying event never delays
other chats. Lanes are independent, but the drain stops claiming once eight
deliveries are active, so a ninth lane waits for a slot. State the cap as the
bound on cross-chat progress.

The webhook redelivery paragraph asserted the LINE Console prerequisite with
no source. Link the Messaging API documentation, name the second condition
(no 2xx from the bot server), and record that LINE does not guarantee
redelivery, does not disclose retry count or interval, and may resend out of
order or more than once.

* docs(line): describe the stall watchdog as retrying, not dead-lettering

* docs(line): scope the stall watchdog to the pre-adoption window

* docs(line): qualify duplicate suppression by the record cap, not only the TTL

* docs(line): account for deferred ingress heartbeats

* docs(line): fix handler-timeout grammar

* docs(line): match admission-owned retention semantics

* docs(line): correct webhook verification method

---------

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

Labels

channel: line Channel integration: line docs Improvements or additions to documentation merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. 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.

2 participants