Skip to content

Clarify botmux send mention switches in built-in skill - #101

Merged
deepcoldy merged 1 commit into
deepcoldy:masterfrom
LucasIcarus:fix/send-stdin-position-warning
Jun 3, 2026
Merged

deepcoldy merged 1 commit into
deepcoldy:masterfrom
LucasIcarus:fix/send-stdin-position-warning

Conversation

@LucasIcarus

@LucasIcarus LucasIcarus commented Jun 3, 2026 •

Copy link
Copy Markdown
Collaborator

Bot send msg like this sometimes
image
And the analysis result listed below
image

strengthen the internal botmux send skill a little bit.

Summary

  • Clarify in the built-in botmux-send skill that --mention-back and --no-mention are value-less switches.
  • Point agents to --mention <open_id:name> for explicit recipients, and document the existing content-source precedence for multiline bodies.
  • Add regression coverage for the built-in skill guidance.

Test plan

  • pnpm vitest run test/builtin-skills.test.ts test/send-policy.test.ts
  • pnpm build

@LucasIcarus
LucasIcarus requested a review from deepcoldy as a code owner June 3, 2026 09:26
@LucasIcarus LucasIcarus changed the title fix(send): 增强正文来源误用提示 Fix botmux send warning for positional/stdin misuse Jun 3, 2026
@LucasIcarus
LucasIcarus force-pushed the fix/send-stdin-position-warning branch 3 times, most recently from b84ae9f to c61459a Compare June 3, 2026 09:52
@LucasIcarus
LucasIcarus force-pushed the fix/send-stdin-position-warning branch from c61459a to 0e46aab Compare June 3, 2026 10:08
@LucasIcarus LucasIcarus changed the title Fix botmux send warning for positional/stdin misuse Clarify botmux send mention switches in built-in skill Jun 3, 2026
@deepcoldy

Copy link
Copy Markdown
Owner

看着没问题,就不拉机器人review了,合入了人工测试下就发版

@deepcoldy
deepcoldy merged commit d2ab3f8 into deepcoldy:master Jun 3, 2026
@LucasIcarus
LucasIcarus deleted the fix/send-stdin-position-warning branch July 17, 2026 06:31
jiyuuDev added a commit to zsnjuts/botmux that referenced this pull request Oct 31, 2026
deepcoldy#68 之后显式重试不消耗失败预算,一个永远起不来的会话(例如远端状态与 PG 不一致、
每次接管都被拒)的追问每轮等 60 秒回执超时后重试,要到 6 小时兜底才放弃;它后面
若排着无排序键的整群屏障行,整个群都被挡住。三处「提交回执超时」重试改为带
countsAsFailure,消费者按失败计连击(仍挂在持有 worker 的副本上等迟到回执),
连续到上限即收尾并提示;忙等、对端持有等重试仍不计。

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
jiyuuDev added a commit to zsnjuts/botmux that referenced this pull request Oct 31, 2026
worker 把 final_output 写进 IPC 就算送达,provider 发 final 前已清 inflight;daemon
冻住或停机时这条结论只在 IPC 缓冲里,丢了也无从恢复。新增可选能力 final_ack:
- daemon 在结论交给 durable 投递(或按规则不发)后回 final_output_persisted,会话
  不匹配或投递失败回 ok:false;
- worker 收到 ok 才向 provider 发 final_ack;5 分钟没有回执就不确认;
- provider 在 ready 里带回未确认的 pendingFinals,worker 按各自 turnId 补发,
  确认后 provider 删除;未协商 final_ack 却带 pendingFinals 时按协议错误处理。

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
jiyuuDev added a commit to zsnjuts/botmux that referenced this pull request Oct 31, 2026
deepcoldy#68 之后显式重试不消耗失败预算,一个永远起不来的会话(例如远端状态与 PG 不一致、
每次接管都被拒)的追问每轮等 60 秒回执超时后重试,要到 6 小时兜底才放弃;它后面
若排着无排序键的整群屏障行,整个群都被挡住。三处「提交回执超时」重试改为带
countsAsFailure,消费者按失败计连击(仍挂在持有 worker 的副本上等迟到回执),
连续到上限即收尾并提示;忙等、对端持有等重试仍不计。

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
jiyuuDev added a commit to zsnjuts/botmux that referenced this pull request Oct 31, 2026
孤儿核查用的 worker 交出补发的结论后随即退出;daemon 投递完成时仍向它回
final_output_persisted。Bun 对已退出子进程的 send 以异步 'error' 事件报告,
被 fork 错误处理当成 worker 启动失败,在话题里发出「会话启动失败:Subprocess.send()
cannot be used after the process has exited」。worker 已断开或退出时不再发送,
provider 保留副本,由下一次接管补发(按 turnId 去重)。

Co-Authored-By: Claude <[email protected]>
jiyuuDev added a commit to zsnjuts/botmux that referenced this pull request Oct 31, 2026
上一提交把三处「等提交回执失败」都算成失败重试,其中包括目标轮次先结束、steer
被原样退回这种正常竞态,它会立刻重试成功,不该消耗失败预算。超时改抛专门的
DurablePrimaryInputCommitTimeoutError,只有它才带 countsAsFailure。

Co-Authored-By: Claude <[email protected]>
jiyuuDev added a commit to zsnjuts/botmux that referenced this pull request Oct 31, 2026
…启动失败改用专门提示(Mew deepcoldy#101) (#56)

- Remote Runner 新增可选能力 final_ack:provider 发出结论后保留到宿主确认落库(final_output_persisted)再删除;重连时在 ready.pendingFinals 里重新提供,worker 补发并去重。宿主冻结或丢租约期间交出的结论不再丢失。
- 主路径提交回执等待超时的重试计入失败连击,起不来的会话最多重试到预算用尽后收尾,不再挡住同群消息到 6 小时兜底;steer 被退回等正常竞态照常重试、不计失败。
- worker 已断开或已退出时不再回落库确认,避免 Bun 对已退出子进程 send 的异步 error 被当成启动失败发卡片。
- 远端状态与记录不一致导致的启动失败改用专门提示:发送 /close 关闭本话题,在新话题里重新提问。

验证:本地全量 unit 与 bun-test 失败集合与 distributed/v52 基线一致;测试集群冻结复现 4 个话题各 1 条结论,冻结期间留存的结论在新 daemon 接管后补发且只出现一次。

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants