CANNBot直调算子工作流状态结构
状态结构
【免费下载链接】cannbot-skillsCANNBot 是面向 CANN 开发的用于提升开发效率的系列智能体,本仓库为其提供可复用的 Skills 模块。项目地址: https://gitcode.com/cann/cannbot-skills
.cannbot/state.json的字段约定,支撑「状态可观测」「可恢复性」。每阶段(步骤或 CP)完成后由 PM 更新。
设计目标
- 可观测:不依赖会话记忆,从磁盘即可读出当前进度。
- 可恢复:记录已完成阶段、当前阻塞点、已产出交付件、当前轮次,恢复时从状态点续跑,不重跑已通过阶段。
字段定义
{ "operator": "算子名", "chip": "目标芯片/架构", "current_stage": "流程表编号,如 3.1 / CP3", "completed_stages": ["0", "CP0", "1.1", "CP1", "1.2", "CP1'"], "blocked": { "at": "CP3", "reason": "结构化问题摘要(详见对应 report 或 issue)", "round": 2, "loop": "acceptance" }, "deliverables": { "requirement": ".cannbot/requirement.md", "spec": ".cannbot/spec.yaml", "test_plan": ".cannbot/design/test-plan.md", "dev_plan": ".cannbot/design/dev-plan.md", "cp3_report": ".cannbot/reports/cp3-functional.md" }, "updated_at": "2026-07-09T00:00:00Z" }