Wire the dual-speed lane into the real run path: entry hint, escalating nudge, think-stripped cards #128

Merged
weichen merged 4 commits from feature/dual-speed-real-path into main 2026-10-10 10:09:51 +00:00
Owner

Why: 用户指令「将快慢双速通道接入实际 Agent-Native,不要使用 Mock」——此前双速只有软性提示词,实测 MiniMax 对重文档任务一律同步长跑 150-192s、用户全程零反馈;中途 system-reminder 单次注入也被无视。

改动:

  • 入口前置:带附件的任务第 0 回合注入双速选项(先给即时反馈,重活 delegate_task background 放后台)——模型对开场指令的遵循远好于中途提醒;
  • 升级提醒:run 超过 runtime.dualSpeedNudgeSeconds(默认 75s,0=关)仍无答复且未放后台时,每 45s 重复、最多 3 次,第二次起硬性措辞;已答复/已委派永不打扰;注入带日志观测;
  • 状态跟踪:replied/delegatedBackground/started(注入时钟可控);
  • 子代理摘要/收件箱卡剥行内 块(MiniMax 实测泄漏)。

Evidence: go test ./... 32 包全绿(新增 8 测:阈值触发/未到阈值/关闭/已答复/已委派/升级重复/入口前置三态/think 剥离);真实模型对照(MiniMax 同任务 6 轮):BEFORE 4 轮全部同步直跑(提醒 77-105s 注入日志实证、模型无视);AFTER 第 6 轮 t+48s 委派后台、t+64s 用户收到即时反馈、进度卡 done/ok、通知回投、终稿干净。

Refs: Dev 任务 feature/dual-speed-real-path;SR-B10(RDM requirements/01 V2.1)。

Why: 用户指令「将快慢双速通道接入实际 Agent-Native,不要使用 Mock」——此前双速只有软性提示词,实测 MiniMax 对重文档任务一律同步长跑 150-192s、用户全程零反馈;中途 system-reminder 单次注入也被无视。 改动: - 入口前置:带附件的任务第 0 回合注入双速选项(先给即时反馈,重活 delegate_task background 放后台)——模型对开场指令的遵循远好于中途提醒; - 升级提醒:run 超过 runtime.dualSpeedNudgeSeconds(默认 75s,0=关)仍无答复且未放后台时,每 45s 重复、最多 3 次,第二次起硬性措辞;已答复/已委派永不打扰;注入带日志观测; - 状态跟踪:replied/delegatedBackground/started(注入时钟可控); - 子代理摘要/收件箱卡剥行内 <think> 块(MiniMax 实测泄漏)。 Evidence: go test ./... 32 包全绿(新增 8 测:阈值触发/未到阈值/关闭/已答复/已委派/升级重复/入口前置三态/think 剥离);真实模型对照(MiniMax 同任务 6 轮):BEFORE 4 轮全部同步直跑(提醒 77-105s 注入日志实证、模型无视);AFTER 第 6 轮 t+48s 委派后台、t+64s 用户收到即时反馈、进度卡 done/ok、通知回投、终稿干净。 Refs: Dev 任务 feature/dual-speed-real-path;SR-B10(RDM requirements/01 V2.1)。
weichen added 2 commits 2026-10-10 10:01:16 +00:00
Why: the dual-speed slow lane shipped as an observable capability plus soft
prompt guidance, but on the real (non-mock) path models routinely grind
through heavy document tasks synchronously for minutes with zero user-visible
output - the pattern only engages when the model happens to think of it.
Evidence: five new unit tests over an injected clock cover fire-after-threshold,
quiet-before-threshold, disabled-by-setting, and the replied/delegated guard
paths (reminders observed in the captured kernel requests); full go test
./... 32 pkgs green. Real-model run recorded in the Dev task card.
Impact: runDirect tracks run start, user-reply, and background-delegation
state; reminders() injects a one-shot dual-speed nudge (SR-B10) once elapsed
time crosses runtime.dualSpeedNudgeSeconds (default 75s, 0 disables) while
the user has neither a reply nor a background lane. New setting registered.
Refs: Dev task feature/dual-speed-real-path; SR-B10 (RDM requirements/01 V2.1).
Strip inline think blocks from subagent summaries and card bodies
ci / vet-and-test (pull_request) Successful in 43s
b3f885f215
Why: the round-6 real-model dual-speed run showed MiniMax writing its
reasoning as inline <think> blocks; finishChild's partsText fed them into
the background notice turn and the inbox result card verbatim.
Evidence: new runmgr test covers closed-block stripping with body preserved
and conservative handling of unclosed blocks; go test ./... 32 pkgs green.
Impact: partsText removes closed <think>...</think> spans before summary,
notice, and card assembly; unclosed blocks are kept as-is.
Refs: Dev task feature/dual-speed-real-path.
weichen added 1 commit 2026-10-10 10:01:16 +00:00
Strip inline think blocks from subagent summaries and card bodies
ci / vet-and-test (pull_request) Successful in 43s
b3f885f215
Why: the round-6 real-model dual-speed run showed MiniMax writing its
reasoning as inline <think> blocks; finishChild's partsText fed them into
the background notice turn and the inbox result card verbatim.
Evidence: new runmgr test covers closed-block stripping with body preserved
and conservative handling of unclosed blocks; go test ./... 32 pkgs green.
Impact: partsText removes closed <think>...</think> spans before summary,
notice, and card assembly; unclosed blocks are kept as-is.
Refs: Dev task feature/dual-speed-real-path.
weichen added 2 commits 2026-10-10 10:07:22 +00:00
# Conflicts:
#	internal/runtime/llm_direct.go
#	internal/runtime/llm_test.go
weichen merged commit 5714c739de into main 2026-10-10 10:09:51 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: weichen/Agent-System-Backend#128