feat(分配): 助手提示词分层 + 确认单状态给模型 + 一批实测修
提示词按「什么会让它变」分五层(装置/诚实/语气/角色/现场),现场段按 选人 → 分人 → 他确认 → 确认之后 四步分节 —— 每条规矩站在它生效的那一步里, 位置本身就是适用范围。次要业务线(分配追踪)走 pull:系统提示词只留索引, 模型用 open_playbook 按需取正文。 实测抓到并修掉的: - 「在岗 N 人 × 每天几通 × 时效」印的是 byAgent.length(本批分到人的客服数), 实测印出「在岗 9 人」而主管同屏写着 33 位在岗,9×15×1 连它自己那行的 「本批人数 214」都算不出来 ⇒ 新增 rosterCount,由算 batchSize 的同一行赋值。 - 「换无专属客服的患者补上」不回传 narrowedBy,主管收窄过之后点它会悄悄 退回整格取人(实测 2178 vs 296,差 1882 人)⇒ 链路补齐 + 按钮自己报范围。 - 确认单的草稿态服务端查不到(改派/移出/时效/福利只在浏览器里),模型只能把 对话里几行回声自己累加,而手动拖动/点×/改时效这几条路连回声都没有 ⇒ SheetSnapshot 随请求捎来 + get_current_sheet(拉) + 回声带当前值(推)。 - 「没分到的客服」只给了个数字,主管问「那 1 位为什么没轮到」答不上来 ⇒ 补他们的在手量(实测 193 对 49,对比自己说清)。 - 模型讲区间写 8~9,GFM 单波浪号当删除线吃掉 → 屏幕上是「89 条」 ⇒ 渲染层 singleTilde: false(与 range() 拆两个键是同一条纪律的两半)。 - daily_overload 里两颗不带数的按钮(改每天几通/减少本批人数)连同两个 intent 删掉:点下去替主管说的话也不带数,那个数只能由模型自己拍。 - 福利改判:确认之前问一句(客服一确认就开始打这批单),确认单里不再摆引导节点。 模型对齐:qwen 统一 3.8-max;计划摘要跟另外三个摘要走同一个模型(裸键 'qwen'), schema 的硬长度约束改 describe 软引导 —— 否则 qwen 写得短必然 too_small (判据同 draft_plan_script v27)。 界面:助手会话按 Claude Code 的排布重做(无边框头部、白底、底部工具栏、 思维链/工具步骤可折叠),确认单卡片与引导节点跟着四步走。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Showing
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
apps/pac-web/src/app/assistant-lab/page.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to comment