Skip to content

fix(feishu): keep agent-initiated sends inside their topic - #160332

Open
can2049 wants to merge 6 commits into
openclaw:mainfrom
can2049:fix/feishu-topic-session-identity
Open

can2049 wants to merge 6 commits into
openclaw:mainfrom
can2049:fix/feishu-topic-session-identity

Conversation

@can2049

@can2049 can2049 commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Related: #160330 (proactive-delivery half)

What Problem This Solves

In a Feishu topic chat, an agent-initiated send — heartbeat, scheduled job, message tool, sticker — posted a top-level message. In a topic chat a top-level message creates a new topic, so replies drifted out of the discussion and the session's context no longer matched the visible thread.

Two independent gaps caused it:

  1. Core derives a proactive delivery target from the session key and asks the plugin for the session's thread id. Feishu returned none, so the topic id was dropped before the send boundary (session-conversation.ts).
  2. A Feishu reply addresses a message (om_…), never a topic (omt_…). Even when the target carried a topic id, the send path had no way to turn it into a reply anchor.

What Changed

  • session-conversation.ts:40 — topic-scoped session keys now report threadId = topic id; ordinary group/direct sessions keep undefined. Core can therefore derive a topic delivery target from the session key.
  • send.ts:366-460 — new resolveFeishuReplyAnchorMessageId: maps omt_… to the topic's oldest message (im.message.list with container_id_type=thread, sort_type=ByCreateTimeAsc, page_size=1), cached per account:topic (512 entries; topic order is immutable). Message ids pass through without a lookup. A failed lookup keeps the topic id so the send owner still refuses an unsafe top-level fallback.
  • topic-anchors.ts:35-72 — the action path (message tool, sticker, cron/heartbeat-driven tool sends) resolves the session topic to that anchor when there is no inbound native message. Existing guards are preserved: opt-out topLevel / threadId:null, requester account must equal the sending account, provider must be Feishu, and the session chat must equal the requested destination.
  • outbound-send-anchor.ts — wraps sendText / sendMedia / sendPayload so every outbound send resolves its topic target before replying; outbound.ts uses it in place of the pure send-context wrapper.
  • channel.ts:1514 — declares preserveHeartbeatThreadIdForGroupRoute: true (Telegram precedent) so a heartbeat reuses the session's recorded route thread id.
  • action-target.ts — owns the action target/message-id helpers and resolves the action's anchor inside withFeishuSendContext, so the credentialed topic lookup is fenced by the sender scope. Extracting it also keeps channel.ts under its line-cap ratchet.
  • channel-runtime-loader.ts — one lazy loader shared by the plugin entry and the topic-anchor owner (replaces the local loader in channel.ts).

Scope: session identity is not rekeyed

This revision does not change how inbound messages key sessions. Feishu's message-receive event reports chat_type as p2p / group (not topic_group), and distinguishing native topic chats from ordinary group threads requires chat_mode from the chat owner. Changing that is a separate owner decision; existing session keys stay byte-identical. This PR fixes the proactive-delivery half of #160330, which is what the live evidence covers.

Evidence: real Feishu proof (2026-10-31)

A private topic chat was created through the bot API (oc_3abd…854d); root message om_x100b616a25df… → thread omt_19806e78…. The rebased checkout ran against the real Feishu API with this app's credentials. Ids are shortened; no credentials or message content beyond test markers.

step observed
resolveFeishuReplyAnchorMessageId({ threadId: "omt_19806e78…" }) om_x100b616a25df… (topic root)
resolveSessionConversation for feishu:group:oc_3abd…:topic:omt_19806e78… threadId = omt_19806e78…
action send (message-tool shape, no inbound message) om_x100b616a37ff… → same thread omt_19806e78…
outbound sendText with threadId = omt_19806e78… (heartbeat shape) om_x100b616a323f… → same thread omt_19806e78…
unanchored top-level send (pre-fix behaviour) om_x100b616a3493… → new thread omt_19806f6c…

Readback: lark-cli im +threads-messages-list --thread omt_19806e78… --as bot lists the root plus three replies; +chat-messages-list shows one non-system topic for the session, while the unanchored send created a second topic. The topic chat is a temporary test fixture created solely for this proof; it is independent of the patch and its messages/chat are not modified by this PR.

A real-transport authority proof runs the production feishuOutbound.sendText and message-action paths against the real Lark SDK over a loopback server:

case observed
allowed, outbound POST auth → GET /im/v1/messages (topic root) → POST /im/v1/messages/om_topic_root/reply with reply_in_thread: true
allowed, action same three requests; threaded topic reply
retired during token preparation, outbound sender signal aborted while the auth request is held → zero HTTP requests, call rejects before dispatch
retired during token preparation, action handoff retired while the auth request is held → zero HTTP requests, call rejects before dispatch

Verification

  • Full Feishu shard: vitest run --config test/vitest/vitest.extension-feishu.config.ts → 93 files / 946 tests passed.
  • New tests (13): topic→root resolution, cache and failure/pass-through (3); action-path anchor selection including destination-chat mismatch (4); real-transport allowed/retired authority for outbound and action (4); session threadId and heartbeat flag (2). These tests cannot pass on main — the resolver, wrapper, threadId field and heartbeat flag do not exist there.
  • tsc -p tsconfig.extensions.json --noEmit → no errors in extensions/feishu (tsgo is blocked on this host by glibc 2.32–2.34).
  • oxlint: 0 warnings / 0 errors on all changed files; oxfmt clean; line-cap, max-lines, assertion-safety and mock-export ratchets OK.

Review notes

  • P2 sender authority scope: the topic lookup now runs inside withFeishuSendContext on both the outbound wrapper and the action path, so client.ts captures the sender scope and revalidates cancellation/handoff immediately before the credentialed message.list request. The lookup uses the sending account's configured client (createConfiguredFeishuClient({ cfg, accountId })), the cache key includes the account, and the action path still requires requesterAccountId === accountId plus destination-chat equality before inferring an anchor. A real-transport test retires the sender while the auth request is held and asserts zero HTTP requests for both production entry paths.
  • Cache: in-memory, bounded (512), cleared wholesale at the bound; a miss costs one message.list per topic, then replies reuse it.
  • Failure mode: a failed or empty lookup returns the topic id unchanged; the existing send owner refuses a top-level fallback for threaded replies, so the message is not silently posted as a new topic.
  • No high-risk Feishu operations: this change adds one read (im.message.list) and reuses the existing threaded reply path. It does not recall messages, update/delete chats, or add scopes, permissions, config or SDK surface.
  • Merge danger: low. No config/schema/SDK change; revert restores the previous top-level send. Existing session keys are unchanged.

Gaps

  • A live inbound→reply round trip was not run: the local user OAuth token lacks im:message.send_as_user. Inbound session identity is unchanged by this PR and covered by the existing channel-boundary tests; the live proof covers the changed path — agent-initiated sends.

中文摘要

本版修复飞书话题群里「智能体主动发送(心跳 / 定时 / 工具)会新开话题」这条路径:会话键向 core 上报话题 id,发送边界再把 omt_… 解析成该话题最旧的一条 om_… 消息作为回复锚点(按账号 + 话题缓存;查询失败保留话题 id),并让心跳复用会话记录的 thread id。入站会话键不变。真实飞书话题群已验证 action 与 outbound 两条主动发送都落回原话题,而未加锚点的发送会新建话题。

@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added channel: feishu Channel integration: feishu size: M labels Sep 28, 2026
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR preserves topic routing for agent-initiated Feishu sends by resolving topic IDs into native reply anchors.

Example: A scheduled send targets the session for topic omt_19dfad8930cf5ce6.

  • Before: The send loses its topic route or uses a topic ID as a message anchor, creating a new topic or failing.
  • After: The plugin resolves the topic's oldest message and sends a threaded reply inside the original topic.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A useful, proven proactive-delivery repair with no actionable defect found; the broader linked issue remains only partially addressed.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The supplied Gateway cron run and fresh real-Feishu action/outbound readback demonstrate replies inside the original topic; real-SDK loopback traces additionally show allowed threaded delivery and retirement before any HTTP dispatch on both changed entry paths.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Partial
User problem: Agent-initiated Feishu replies leave the original discussion by creating a new topic or failing to address the existing topic.
Reason: Proactive delivery has a concrete reported failure and live evidence; the PR correctly uses Related because the linked issue also requests an inbound session-identity repair.

Merge readiness

✅ Ready for maintainer review

Keep open: this PR fixes a current Feishu proactive-delivery bug, with no introduced correctness or security blocker found; exact-head CI remains pending.

Priority: P1
Reviewed head: 2a2b0e88ba4566e5a7e3e37a484b8a941926d65f

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Feishu plugin translates session and delivery thread identities into provider reply requests for outbound text, media, payloads, and message actions.

flowchart TD
  A[Topic session] --> B[Delivery route]
  B --> C[Feishu outbound adapter]
  D[Message action] --> E[Topic anchor owner]
  E --> F[Sender authority scope]
  C --> F
  F --> G[Topic root lookup]
  G --> H[Feishu threaded reply]
Loading

Technical review

Best possible solution:

Land the focused proactive-routing repair through the existing Feishu routing and authority owners while leaving inbound session identity to separate work.

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

Current-main source exposes both missing steps: session conversation projection omits the topic thread ID, and sends without a native inbound anchor cannot resolve an omt_ topic into an om_ reply target; contributor live readback corroborates the failure.

Is this the best way to solve the issue?

The patch repairs the plugin-owned session projection and send boundary, preserves native anchors and routing guards, replaces the existing outbound wrapper, and avoids rekeying sessions or adding public configuration.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • CanWang: Raw commit af8ab70 adds extensions/feishu/src/topic-anchors.ts:4 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: af8ab7089f65; files: extensions/feishu/src/topic-anchors.ts)
  • Gustavo Madeira Santana: Raw commit bea53d7 adds extensions/feishu/src/session-conversation.ts:31 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: bea53d7a3f1f; files: extensions/feishu/src/session-conversation.ts)

PR surface

Source +221, Tests +419, Other -1. Total +639 across 15 files. Added test files: 4.

View PR surface stats
Area Files Added Removed Net
Source 9 319 98 +221
Tests 5 433 14 +419
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 0 1 -1
Total 15 752 113 +639

Labels

Label changes:

No label changes.

Label justifications:

  • P1: Agent-initiated Feishu replies can fail or appear in a different topic, breaking an active channel workflow.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; 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.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (13 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-30T05:53:43.888Z sha e0cfe34e407fb9443ce8adf779f5c833b5e02cc3 :: needs real behavior proof before merge. :: [P1] Preserve ordinary-group sessions when a thread ID appears | [P1] Keep legacy quote-reply history reachable | [P1] Match the session topic’s chat to the send destination
  • reviewed 2026-09-30T07:14:25.393Z sha 9c270f6c7b1319aa2edd1d3eb4b0d5a11f5bc8a0 :: needs real behavior proof before merge. :: [P1] Preserve the root key when a normal group creates a thread | [P1] Keep existing quote-reply history reachable | [P1] Match the session topic to the destination chat
  • reviewed 2026-09-30T07:59:36.128Z sha 36099bb700077abeb5bb7d190f77d47f3b02bd57 :: needs real behavior proof before merge. :: [P1] Preserve root-keyed sessions when a normal group creates a thread | [P1] Keep older quote-reply history reachable after the key change | [P1] Match the session chat to the requested destination before replying
  • reviewed 2026-10-15T07:05:04.110Z sha f2998c9791d76ca4f6f4992427daed55650e52b5 :: needs real behavior proof before merge. :: [P1] Preserve root-keyed sessions when an ordinary group creates a thread | [P1] Keep existing quote-reply history reachable after rekeying | [P1] Match the session chat to the destination before inferring a reply
  • reviewed 2026-10-20T03:07:18.750Z sha 6c8ca2653eb4c41c6353d3687e66e05da31824f5 :: needs real behavior proof before merge. :: [P2] Resolve topic anchors inside the sender authority scope
  • reviewed 2026-10-31T13:41:05.298Z sha 9e43c8a :: needs real behavior proof before merge. :: [P2] Resolve topic anchors inside the sender-authority scope
  • reviewed 2026-10-31T14:02:06.389Z sha 9ea83a5 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-31T14:18:53.400Z sha 0ee0ef6 :: needs maintainer review before merge. :: none

Reviewed October 31, 2026, 10:31 AM ET / 14:31 UTC (Revision 14).

@can2049

can2049 commented Sep 28, 2026

Copy link
Copy Markdown
Contributor Author

Reworked the patch; the PR body now describes the new design. Point-by-point:

[P1] Preserve stored topic sessions when changing the key — fixed. The session key no longer resolves anything: bot-content.ts now keys the topic on the event's thread_id (thread_id ?? root_id ?? messageId). Topic starters were already stored under omt_… and keep exactly that value, so no existing session is moved by the upgrade; the extra om_… session that quote replies used to create now joins the topic's omt_… session, which is the repair rather than a migration.

[P1] Keep the session key stable through lookup failures — fixed. There is no lookup on the key path any more (the inbound resolveFeishuTopicRootMessageId call is gone). Feishu reports thread_id on every message of a topic — verified against the live API for the reported topic (all messages: same omt_…, root_id null) — so starter and quote replies resolve to one key from event data alone. Regression test: Feishu topic session keys > keys every message of a topic to the topic id, including quote replies, which also feeds a quoted-message lookup a different thread_id and asserts the session still does not move.

Where the topic→message mapping went. A Feishu reply addresses a message, not a topic, so that conversion now happens at the send boundary: resolveFeishuReplyAnchorMessageId maps a topic id to the topic's oldest message (cached per topic) and the outbound adapter normalizes ctx.threadId for text/media/payload; agent-initiated sends (heartbeat, scheduled, tool) resolve their topic session's anchor in the action path. A failed lookup degrades to the previous top-level behavior without touching a session.

Proof status. Added a live-API trace to the PR body (real credentials, read-only, ids redacted) showing the topic resolving to its reply anchor and the starter/quote-reply pair landing in one session, plus 98 files / 1540 tests on the feishu shard, 101 on bot.test.ts, tsgo exit 0, oxlint/oxfmt clean. It is not a full inbound→reply round trip: I have not installed the patch into a running OpenClaw and posted into a real topic yet. I can run that and attach a redacted trace showing session continuity and the reply landing in the original topic — it needs a live group to post in, so tell me if that is acceptable and I will do it.

Also flagging one deliberate expectation change from the rework: bot.test.ts "keeps root_id as topic key when root_id and thread_id both exist" now resolves to the topic id, and the old "first turn creates a thread" scenario is split into (a) a topic chat where every message carries the topic id → one session, and (b) a message that arrives before the provider assigns a topic id → it keeps its message key. No lookup-free rule can merge (b) into the topic session, and the lookup-based rule is what this revision removes.


中文摘要:两条 P1 都已修复——会话键改为直接取事件里的 thread_id(含引用回复),键不再依赖任何查询,已有 omt_… 会话键保持不变,由引用回复另建的 om_… 会话并入本话题;话题 id → 回复消息的映射下沉到发送边界(按话题缓存)。PR 描述已附真实飞书 API 的修复后 trace(话题→锚点解析、起始消息与引用回复同一会话)与全部分片/类型/lint 结果;尚未做「真实群里发一条」的端到端验证,如允许我可补上。

@clawsweeper clawsweeper Bot added the merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. label Sep 28, 2026
@can2049

can2049 commented Sep 29, 2026

Copy link
Copy Markdown
Contributor Author

Revision 3 pushed (41eef042). All three review items addressed, plus one more the live run surfaced.

[P1] Failed lookup changes delivery — fixed. resolveFeishuReplyAnchorMessageId now returns the topic id unchanged when the lookup fails instead of clearing the target, so the existing "no unsafe top-level fallback after a threaded reply fails" guard still decides. Covered by topic-root.test.ts > keeps the topic id when the lookup fails… and the matching action-path case in channel.test.ts.

[P1] Existing-session upgrade / quote-reply key continuity — decided and documented. A topic's key is now the event's thread_id, so topic starters keep exactly the key they already have. Quote-reply events that previously opened a second om_… session now join the topic's omt_… session; the transcripts of that stray session remain on disk but the topic's active session continues. No plugin-side migration exists (session keys are core-owned); if a maintainer wants one, it belongs in core with the store open. Flagging it as a decision rather than silently changing behaviour.

[P1] After-fix delivery proof — added, and it found a real gap. I patched the local install, restarted the Gateway, and gave a topic session a proactive delivery with no inbound message (openclaw cron add --session-key <topic session> --channel last --announce), reading placement back through the Feishu API:

  • With the first revision: V2-OK/V3-OK/V4-OK each became a new topic.
  • After adding the missing piece: V5-OK landed inside the original topic, no new topic.

The missing piece is now fix #3 in this revision: core derives proactive delivery from the session key and asks resolveSessionConversation for a thread id; the Feishu plugin returned none, so the topic was dropped before any send-boundary anchor could apply. Reporting the topic id fixes it end to end. Full detail and the table are in the PR body.

Checks (this revision): feishu shard 98 files / 1544 tests passed; bot.test.ts 101 passed; tsgo -p tsconfig.extensions.json exit 0; oxlint 0 warnings; oxfmt --check clean.

Remaining gap: an inbound→reply round trip with a real user message was not run — the local CLI token lacks im:message.send_as_user, so the inbound half rests on channel-boundary tests (starter and quote reply resolve to one peer; a lookup result cannot move the session). The proactive half, which is the reported symptom, is proven live.


中文摘要:第 3 版已推送。评审两条 P1 均已修(查询失败保留 target、升级键延续给出明确决策);并按评审要求做了真机验证——发现并补上了最后一个缺口:resolveSessionConversation 未上报 threadId,导致 core 从会话键推导的主动投递丢话题。修复前 V2/V3/V4 都成了新话题,修复后 V5 落回原话题 omt_…,且无新增话题。仍未做「真实用户消息 → 机器人回复」的往返(本机 CLI 令牌缺少 im:message.send_as_user),该半边由频道边界测试覆盖。

@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 Sep 29, 2026
@can2049
can2049 force-pushed the fix/feishu-topic-session-identity branch from 41eef04 to e82021a Compare September 29, 2026 06:56
@can2049

can2049 commented Sep 29, 2026

Copy link
Copy Markdown
Contributor Author

CI analysis and fixes (force-pushed as e82021a2):

  1. check-dependencies (knip dead code) — resolveFeishuTopicRootMessageId became an unused export once its only caller moved into the same module. It is now module-private; resolveFeishuReplyAnchorMessageId stays the public entry and the tests go through it.
  2. checks-fast-baseline-ratchets (assertion safety) — two new non-const assertions: the outbound wrapper no longer casts (resolveReplyAnchorThreadId returns the resolved id and the call site spreads it), and the message-list response assertion carries its // SAFETY: invariant on the preceding line.
  3. openclaw/ci-gate failed only because it aggregates the two above.

Local verification of the same gates: check-assertion-safety-ratchet --base origin/main reports no deltas for extensions/feishu; no production file imports the removed export; tsgo -p tsconfig.extensions.json exit 0; oxlint/oxfmt clean; feishu shard 98 files / 1538 tests passed.

中文:CI 两处失败分别是 knip 死代码(该解析函数只需模块内私有)与断言安全 ratchet(去掉一处断言、另一处补 // SAFETY: 说明);ci-gate 只是聚合失败。已在本地复跑同样的两个判据并通过。

@clawsweeper clawsweeper Bot added merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. and removed merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. labels Sep 29, 2026
@can2049
can2049 force-pushed the fix/feishu-topic-session-identity branch 2 times, most recently from 7d32e05 to e0cfe34 Compare September 30, 2026 05:47
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 30, 2026
@clawsweeper clawsweeper Bot removed the rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. label Sep 30, 2026
@can2049

can2049 commented Oct 31, 2026

Copy link
Copy Markdown
Contributor Author

Addressed the remaining P2/security-boundary finding: the topic lookup now runs inside withFeishuSendContext on both the outbound wrapper and the action path, so client.ts fences the credentialed message.list read on cancellation before dispatch. Added a regression test that aborts the sender signal and asserts the lookup is fenced and the message send never runs. The action helpers moved to action-target.ts to keep channel.ts under its line-cap ratchet.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. 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. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Oct 31, 2026
Run the production outbound adapter and message action against the real
Lark SDK over a loopback server. Allowed calls issue auth -> topic lookup
-> threaded reply; retiring the sender while the auth request is held
produces zero HTTP requests and rejects before dispatch.
@can2049

can2049 commented Oct 31, 2026

Copy link
Copy Markdown
Contributor Author

Added the requested real-transport authority proof. The production outbound adapter and message action now run against the real Lark SDK over a loopback server: allowed calls show auth → topic lookup → threaded reply; retiring the sender while the auth request is held produces zero HTTP requests and rejects before dispatch on both paths. The PR body's Evidence section records both cases.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. proof: sufficient ClawSweeper judged the real behavior proof convincing. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Oct 31, 2026
@can2049

can2049 commented Oct 31, 2026

Copy link
Copy Markdown
Contributor Author

Dropped the mock-only wrapper test; the production-adapter transport cases now carry the resolved-anchor and retirement coverage.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: feishu Channel integration: feishu P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: L 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