Repository navigation
v1.7.2 — Stabilization, Template Parity & Sharper Agent Skill
中文更新说明
本次 v1.7.2 为稳定期加固与一致性维护版(零新功能膨胀),聚焦修复前后端隐性漂移、明确回环×记忆边界语义,以及提纯 AI 技能提示与文档体验。
修复与加固
- 修复前后端内置模板漂移(
lib/presets.js↔client.js):将canvas_preset后端 5 套内置模板(tpl-swe、tpl-prd、tpl-ab、tpl-cond、tpl-loop)与侧边栏 UI 逐节点、逐连线完全对齐(补齐tpl-prd10 节点/13 边、tpl-swe缺失的session-ref紫线与structured连线、tpl-loop的refs与keepSession等),确保 AI 切换模板与手点侧边栏完全一致。 - 修复并定稿「记忆钉选
memoryChildId× 回环重试」语义:首轮进入钉选/记忆会话;若首轮健康完成,重试轮复用同一热会话发送增量修正;若首轮崩溃、空输出或热会话被拒绝,该重试轮跳过memoryChildId/keepSession改开干净新会话重做,不再陷回损坏上下文。 - 修复前端
normalizeRefsUI漂移:与后端lib/graph.js:normalizeRefs对齐,兼容{ path } / { text }对象条目。
Agent 提示与文档优化
- 精简并补强
skills/workflow-canvas/SKILL.md与SKILL_DESCRIPTION:补齐注释 / annotate触发词,压缩冗长的剪枝状态机规格描述,新增 4 行故障恢复速查表(need-lead/retryFailed/fromNodes/reset),并在npm run check加入自动一致性门禁(14/14)。 - README 首屏瘦身 & 架构文档同步:将中英文 README 中高密度的无效节点/无出边规格说明引流至
docs/MECHANISM*.md,同步更新 5 个canvas_*工具、注释同步与常驻灰色复盘胶囊说明。 - 公共仓库清理:将维护者私人发版规则与本地审查技能移至本地
.gitignore,公共AGENTS.md仅保留面向所有贡献者的架构与不变量规范。
测试与工程质量
- 测试套件模块化拆分:按职责拆分为
executor/loops/tools/parity/client5 个并行测试文件 +helpers.mjs,总计 119/119 全部通过(新增前后端全量共享逻辑与 5 套内置模板对拍,以及 7 组高危交互竞态矩阵测试)。 npm run check:14/14 全部通过(打包体积 200.7 KB)。
English Release Notes
v1.7.2 is a stabilization & consistency hardening release (no feature bloat), fixing subtle client/backend drifts, finalizing loop × pinned-memory retry semantics, and streamlining agent skill prompts and documentation.
Fixes & Hardening
- Built-in Starter Template Parity (
lib/presets.js↔client.js): Aligned all 5 backend built-in templates (tpl-swe,tpl-prd,tpl-ab,tpl-cond,tpl-loop) node-for-node and edge-for-edge with the sidebar UI socanvas_preset({ action: "apply" })always produces the exact same graph as clicking a template in the sidebar. - Pinned Memory (
memoryChildId) × Loop Retry Semantics: Documented and enforced exact priority — Round 1 enters the pinned/saved memory session; healthy Round 1 continues that warm session with incremental feedback; if Round 1 crashes, returns empty, or is refused, the retry round intentionally skipsmemoryChildId/keepSessionand opens a clean fresh session instead of looping inside a broken context. - Client
normalizeRefsUIParity: Aligned withlib/graph.js:normalizeRefsto accept{ path }/{ text }object items consistently.
Agent Skill & Docs Polish
- Sharper
skills/workflow-canvas/SKILL.md&SKILL_DESCRIPTION: Added annotation/comment trigger keywords, trimmed dense pruning specs for cleaner model attention, added a 4-row Recovery cheat sheet (need-lead,retryFailed,fromNodes,reset), and enforced strictSKILL_DESCRIPTIONparity innpm run check(14/14). - Leaner READMEs & Updated Architecture Docs: Moved dense inactive-node / missing-link state-machine specs out of
README.md/README.zh.mdintodocs/MECHANISM*.md, updated tool counts (all 5canvas_*tools), comment sync notes, and always-visible muted Run Summary pill descriptions. - Public Repo Hygiene: Separated local maintainer release rules into gitignored local config while keeping
AGENTS.mdfocused on public contributor invariants.
Testing & Verification
- Modular Test Suites: Split tests into
executor,loops,tools,parity, andclientsuites + sharedhelpers.mjs— 119/119 tests passing, including full client/backend shared-helper & 5-template parity plus 7 interaction/race matrix tests. npm run check: 14/14 passed (200.7 KB packed tarball).