feature/issue-53
main
closes #53
对应 PRD 场景C(辅助):交接班 → LLM 汇总本班关键事件/能耗/待办 → 生成交接班 报告 → 推送下一班(line 84/350-351)。把本班原始数据 → 移动端交接班摘要这条 链路模板化、可配置、可测试。
新增 core/shift-handover 内核模块:
新增资产/测试/验收:
验证: python -m unittest discover -s tests (32 OK) + python scripts/verify_handover_brief.py (全部通过)
对应 PRD 场景C(辅助):交接班 → LLM 汇总本班关键事件/能耗/待办 → 生成交接班 报告 → 推送下一班(line 84/350-351)。把本班原始数据 → 移动端交接班摘要这条 链路模板化、可配置、可测试。 新增 core/shift-handover 内核模块: - handover.py:班次数据归一化(ShiftRecord) + 摘要配置(HandoverBriefConfig) + validate/load 校验对 + build_llm_input(填 shift_handover v1.0.1 提示词占位符) + generate_handover_brief(LLM 注入生成, 离线/故障自动降级为确定性摘要) + render_handover_brief(编译移动端只读卡片 props) - 零运行时依赖(仅标准库); LLM 以依赖注入传入, 内核不绑定云端 SDK - 离线/LLM故障降级保证可用性≥99.8%(PRD 模型服务故障自动降级) - 含 P0/安全事件时强制 requireConfirm=true(PRD 高利害人工确认) 新增资产/测试/验收: - templates/ti-cl4/dashboard/handover_brief.ti.yaml(Ti 模板配置资产) - tests/test_handover.py(32 用例全通过) + tests/_bootstrap.py(连字符目录挂载) - scripts/verify_handover_brief.py(4 能力点全通过: 配置合法/LLM+降级/ 配置点驱动展示/≤2分钟验收线) - README.md 验证: python -m unittest discover -s tests (32 OK) + python scripts/verify_handover_brief.py (全部通过)
✅ 审核通过(bot_dev1 代码审查)
审查依据:
结论:实现完整、测试可复现,与关联 issue 验收口径一致,同意关闭。
No dependencies set.
The note is not visible to the blocked user.
closes #53
对应 PRD 场景C(辅助):交接班 → LLM 汇总本班关键事件/能耗/待办 → 生成交接班
报告 → 推送下一班(line 84/350-351)。把本班原始数据 → 移动端交接班摘要这条
链路模板化、可配置、可测试。
新增 core/shift-handover 内核模块:
validate/load 校验对 + build_llm_input(填 shift_handover v1.0.1 提示词占位符) +
generate_handover_brief(LLM 注入生成, 离线/故障自动降级为确定性摘要) +
render_handover_brief(编译移动端只读卡片 props)
新增资产/测试/验收:
配置点驱动展示/≤2分钟验收线)
验证: python -m unittest discover -s tests (32 OK) +
python scripts/verify_handover_brief.py (全部通过)
对应 PRD 场景C(辅助):交接班 → LLM 汇总本班关键事件/能耗/待办 → 生成交接班 报告 → 推送下一班(line 84/350-351)。把本班原始数据 → 移动端交接班摘要这条 链路模板化、可配置、可测试。 新增 core/shift-handover 内核模块: - handover.py:班次数据归一化(ShiftRecord) + 摘要配置(HandoverBriefConfig) + validate/load 校验对 + build_llm_input(填 shift_handover v1.0.1 提示词占位符) + generate_handover_brief(LLM 注入生成, 离线/故障自动降级为确定性摘要) + render_handover_brief(编译移动端只读卡片 props) - 零运行时依赖(仅标准库); LLM 以依赖注入传入, 内核不绑定云端 SDK - 离线/LLM故障降级保证可用性≥99.8%(PRD 模型服务故障自动降级) - 含 P0/安全事件时强制 requireConfirm=true(PRD 高利害人工确认) 新增资产/测试/验收: - templates/ti-cl4/dashboard/handover_brief.ti.yaml(Ti 模板配置资产) - tests/test_handover.py(32 用例全通过) + tests/_bootstrap.py(连字符目录挂载) - scripts/verify_handover_brief.py(4 能力点全通过: 配置合法/LLM+降级/ 配置点驱动展示/≤2分钟验收线) - README.md 验证: python -m unittest discover -s tests (32 OK) + python scripts/verify_handover_brief.py (全部通过)✅ 审核通过(bot_dev1 代码审查)
审查依据:
结论:实现完整、测试可复现,与关联 issue 验收口径一致,同意关闭。
Pull request closed