@@ -4,6 +4,56 @@ All notable changes to ai-coding-kit will be documented in this file.
44
55---
66
7+ ## [ 3.0.3] — 2026-07-23
8+
9+ ### Changed
10+ - ** 多全局技能叠加口径协调 (D1-D5)** : ` engineering-discipline ` GR-002 前置确认被 ` plan-grill ` PG-000 盘问吸收、GR-006 战略性中断与 GR-002 同 anchor 合并;GR-004 与 ` ios-engineer ` 认知对手模式(CAM)详规对齐——不重复输出语义但保留 CAM 机械格式(` Step 0–6 + 置信度 ` 字段原样输出、不得省略或并入其它块);跨块置信度归一到本轮唯一保留字段;新增多 SKILL 叠加分级读取与预算上限;CAM 激活时抑制 preamble 轻量校准段(Tier0/Tier2 互斥扩展到 preamble 层)。ios-engineer 走 ` create_skill_proposal ` 演进流程(提案 ` 20260723-173058-cam-fields-preserve-format ` )
11+ - ** 演进记录保留策略** : ` ios-engineer/evolution/ ` 仅保留最近 10 份 proposal/validation/approval 记录,超出窗口的旧记录由 pre-commit 钩子自动淘汰
12+
13+ ### Added
14+ - ** 回归护栏** : 新增 ` tests/test_en_us_mirror_sync.py ` (zh 源 ↔ en-US 镜像双向锚点断言,防 en-US 静默滞后)与 ` skills-engineering/scripts/validate-global-skills.sh ` (只读验收入口,串起结构/行为/preamble dry-run/同步验证/integrity ` --check-only ` /全局协调回归测试);` tests/test_codebuddy_sync.py ` 新增 ` GlobalSkillValidationScriptTests ` 与多技能协调断言
15+
16+ ### Fixed
17+ - ** en-US 镜像分发闭环** : ` engineering-discipline ` / ` plan-grill ` / ` ios-engineer ` / ` cognitive-expansion ` 的 en-US 镜像补齐 D1-D5 协同条款英文翻译,与 zh 源口径一致,可安全分发
18+
19+ ---
20+
21+ ## [ 3.0.2] — 2026-07-21
22+
23+ > 分析开源库 ` NousResearch/hermes-agent ` 后,按优先级补入与其「受控演进」定位契合、且不与其运行时能力冲突的能力。
24+
25+ ### Added
26+ - ** P0-1 Skill 自我改进闭环** : 新增 ` ios-engineer/scripts/suggest_skill_proposals.sh ` ,读取 ` summarize_usage_ledger.sh --json ` 的提案候选信号,自动生成 draft proposal(仅 draft,不自动晋升),并用 ` evolution/.auto_proposal_registry.json ` 去重。对齐 Hermes 学习循环,但落在既有受控演进闸门内(观测 → 建议 → 人工审批)
27+ - ** P0-2 agentskills.io 兼容打包/导入/校验** : 新增 ` scripts/skill_bundles.sh ` (` export ` / ` validate ` / ` import ` / ` list ` ),把任一 skill 打包成 agentskills.io 兼容产物(` SKILL.md ` + ` references/ ` + ` bundle.json ` 含 sha256),支持从社区 Skills Hub / Hermes 兼容 bundle 导入。导出产物落在 ` skills-engineering/.bundles/ ` (已 gitignore)
28+ - ** P1-3 定时同步自动化** : 新增 ` cron/ ` (launchd 默认、` --cron ` 可选 crontab),` run-sync.sh ` 复用 ` sync.sh ` + 技能同步 + preamble + 校验,日志滚动保留 30 份
29+ - ** P1-4 可选 MCP 服务器目录** : 新增 ` env/optional-mcps/ ` (playwright 改名 ` puppeteer ` 避免与默认 ` env/mcp/playwright.json ` 冲突;另含 ` filesystem-extra ` 、` wechat-bridge ` 示例)与 ` sync/scripts/optional_mcps.sh ` (` enable ` / ` disable ` / ` list ` / ` sync ` )。` disable ` 带护栏:只移除由本工具启用的服务器,绝不删除仓库默认 ` env/mcp/*.json `
30+ - ** P1-5 跨会话用户画像** : 新增仓库根 ` USER.md.example ` 与 ` scripts/sync-user-profile.sh ` ,把用户画像同步到 ` ~/.ai-coding-kit/USER.md ` 并注入各端 preamble 的 ` user-profile ` 托管块(与 agent-preamble 块标记独立、互不干扰);个人 ` USER.md ` 已 gitignore。已接入 ` sync-skill-full.sh ` / ` bootstrap.sh ` (含 ` SKIP_USER_PROFILE ` )/ ` cron/run-sync.sh `
31+ - ** P1-5b 跨会话事件记忆** : 新增 ` scripts/sync-memory.sh ` ,落 ` ~/.ai-coding-kit/MEMORY.md ` (仓库外、跨端共享),提供 ` remember "..." [--tag] ` / ` recall [关键词] ` 子命令;向各端 preamble 注入独立的 ` user-memory ` 托管块,并把脚本自复制到 ` ~/.ai-coding-kit/sync-memory.sh ` 作为 Agent 稳定调用入口。补齐 Hermes 持久记忆中「从交互自动累积」的那一层(user-profile 为静态手维护,memory 为事件级累积,二者互补)。同样接入 ` sync-skill-full.sh ` / ` bootstrap.sh ` (` SKIP_MEMORY ` )/ ` cron/run-sync.sh `
32+ - ** P2-6 多平台模型路由抽象** : 新增 ` sync/scripts/list_models.sh ` (跨平台 model/provider 配置总览,密钥打码)与 ` sync/model_routing.md ` (统一 Provider 层设计说明)
33+ - ** P2-7 子代理并行同步** : ` scripts/sync-skills.sh ` 支持 ` PARALLEL=1 ` (默认 ` MAX_PARALLEL=4 ` ),把 (skill × target) 同步以子代理式后台并行执行
34+ - ** P2-8 技能校验加固** : 新增 ` scripts/validate-skill-integrity.sh ` (sha256 基线比对,发现 ADDED/MODIFIED/REMOVED;` --verify-bundle ` 校验 ` skill_bundles ` 产物 checksum),基线落在 ` skills-engineering/.integrity/ ` (已 gitignore)
35+
36+ ---
37+
38+ ## [ 3.0.1] — 2026-07-10
39+
40+ ### Added
41+ - ` scripts/validate-skill-behavior.sh ` : 跨技能行为/一致性校验(companion 文件齐备、自有规则 ID 在 ` references/ ` 有定义、` .agents/invocation.md ` 触发矩阵覆盖全部技能、i18n 镜像覆盖与跨技能硬链提示);接入 ` pre-push ` 作为结构校验后的硬闸门
42+ - 加固(后续 review 修复):discovery 改以"含 SKILL.md 的顶层目录"为准,使缺 companion 的新 skill 也能被捕获;规则 ID 定义校验改为仅在本 skill 的 ` references/*.md ` 内用结构化锚点(标题 ` ## ID ` / 括号 ` [ID] ` / 表格 ` | ID | ` )匹配,不再把 SKILL.md 或 ios-engineer 的 references 并入搜索空间(原本会让检查完全失效或误兜底)
43+ - ` cognitive-expansion ` 补 ` CE-001~013 ` 自有规则 ID(` SKILL.md ` 声明 + ` references/rule_index.md ` 表格定义 + ` references/examples.md ` before/after 形态样本与退化标本);使其从"纯散文规范"升为可被 ` validate-skill-behavior.sh ` Check 2 校验的契约,对齐 ios-engineer 的 ` rule_index.md ` 模式
44+ - 复查修复:SKILL.md 入口链接 ` examples.md ` ,消除结构门禁 ` validate-skill-structure.sh ` 的 orphan reference(原 examples.md 从入口不可达);` validate-skill-behavior.sh ` Check 2 增加反向校验(rule_index.md 中 active 表行须被 SKILL.md 声明),使"双向一致"契约成真,并排除 ios-engineer 的 retired / 镜像 ID 误报
45+ - 复查修复(续):Check 2 前向定义集合此前经 ` DEF_TABLE ` 包含所有表行,使 ` | ID | retired | ` 这类退役行仍可作"有效定义",与"退役 ID 不应再出现在 SKILL.md"的生命周期约定冲突,且注释自相矛盾。改为仅以 ` DEF_ACTIVE ` (active 表行)填充 ` defined ` ,删除已无用的 ` DEF_TABLE ` ;负向测试(把某 CE 行改 ` retired ` )现正确触发前向 FAIL
46+ - ` cognitive-expansion ` 收口(P1/P2 中的 C+B):① Tier 3 ` 跨域类比 ` 加护栏(CE-008 细化)——须机制对齐、点名被映射机制,禁陈词/换词类比,附 1 good/1 bad 例(` cognitive_expansion.md ` §Tier 3 + ` examples.md ` 示例 2 复用同一 good 例);② ` 流程保障 ` (预测日志/双会话/每周深潜)由契约段移入` 附录 ` 并标注"可选习惯、非门控、不计入 ` validate-skill-behavior.sh ` 任何 Check",避免稀释强制部分。三处 CE-008 措辞同步,` SKILL.md ` /` rule_index.md ` /` cognitive_expansion.md ` 一致
47+ - ` scripts/verify-review-setup.sh ` : 审查链前置自检(plan-reviews 构建产物、auto-code-review 配置、reviewer CLI 可用性)
48+ - ` .agents/composition.md ` : 多全局技能同时命中时的块发射顺序与冲突裁决
49+
50+ ### Changed
51+ - ` .agents/invocation.md ` : 触发矩阵补齐缺失的 ` plan-grill ` 与 ` cross-model-review ` ,并指向 ` composition.md `
52+ - ` cognitive-expansion ` / ` logical-reasoning ` 及 ` cognitive_expansion.md ` : 对 ios-engineer 的跨技能链接加"条件性"说明,消除非 iOS 环境死链风险
53+ - ` ios-engineer/SKILL.md ` : en-US 镜像声明改为诚实的部分镜像说明(符合 GR-011)
54+
55+ ---
56+
757## [ 3.0.0] — 2026-07-06
858
959### Removed
@@ -15,10 +65,16 @@ All notable changes to ai-coding-kit will be documented in this file.
1565- ** CODEOWNERS** : ios-engineer 核心文件自动指定 reviewer
1666- ** CONTRIBUTING.md** : 贡献指南(proposal 驱动演进、翻译贡献、平台支持新增)
1767- ** 端到端 recall 跨平台打通** : historical-recall 触发块扩展至 Cline(` ~/.cline/rules/ ` )、CodeBuddy(` ~/.codebuddy/CODEBUDDY.md ` )、Qwen Code(` ~/.qwen/QWEN.md ` )与 Continue(` config.yaml ` 的 ` rules ` ),与 Claude Code 同构;通用平台只注入 recall 块,不连带 ios-engineer 审计
68+ - ** skills-engineering companion 文件** : 各 skill 目录新增 ` AGENT-BRIEF.md ` (Agent 快速决策参考)和 ` OUT-OF-SCOPE.md ` (范围外声明)
69+ - ** skills-engineering/docs/** : 每个 skill 的独立使用文档
70+ - ** skills-engineering/.agents/** : ` invocation.md ` 和 ` writing-docs.md `
71+ - ** skills-engineering/.claude-plugin/plugin.json** : Claude Code 插件清单
72+ - ** skills-engineering/.out-of-scope/repository-scope.md** : 仓库级范围外声明
73+ - ** skills-engineering/scripts/list-skills.sh** : 列出所有已注册 skill 及描述
74+ - ** skills-engineering/scripts/templates/epistemic-integrity.mdc.tmpl** : 补齐 Cursor ` .mdc ` 生成链路
1875
1976### Changed
2077- ** IR-001 语义变更** : 从"始终使用简体中文"→"输出语言与用户输入语言一致"
21- - ** 多 global skill 叠加口径协调 (D1-D5)** : GR-002 前置确认被 PG-000 盘问吸收、GR-006 中断与 GR-002 同 anchor 合并;GR-004 与 CAM 详规对齐(不重复语义但保留 CAM 机械格式);跨块置信度归一到本轮唯一保留字段;新增多 SKILL 叠加分级读取与预算上限;CAM 激活时抑制 preamble 轻量校准段(Tier0/Tier2 互斥扩展到 preamble 层)。ios-engineer 走 create_skill_proposal 演进流程(提案 20260723-173058-cam-fields-preserve-format)
2278
2379### Fixed
2480- ** Continue recall 合并破坏 YAML rules** : ` _parse_rules ` 的 block scalar 解析会吞掉同级 ` - ` sibling 列表项,且 simple 列表项分支缺失 ` i += 1 ` 导致死循环;改为按列表项缩进边界终止 block、保留内部相对缩进,并补 ` tests/test_continue_recall.py ` 回归测试
@@ -29,7 +85,7 @@ All notable changes to ai-coding-kit will be documented in this file.
2985- ** Continue folded 标量被误转 literal(H-2)** : ` _parse_rules ` 把 ` > ` (folded) 与 ` | ` (literal) 都按 literal 存储,` _render_rules_yaml ` 永远输出 ` - | ` ,丢失 folded 语义;现对 ` > ` 按空格折叠为单行内联值、对 ` | ` 保留换行块,补 folded/literal 区分与往返测试
3086- ** Continue repo root 硬编码(M-1)** : ` _sync_recall ` 的 ` parents[2] ` 改为 ` _repo_root() ` 向上查找 ` skills-engineering/ ` 标记目录,文件移动后不再静默指向错误路径
3187- ** HR-003 shell 注入面(M-2)** : ` historical_recall.md ` 及 recall 指令块补充安全要求——query 须以数组/参数形式传递,严禁拼进 shell 字符串执行,避免反引号/` $() ` 注入
32- - ** en-US 镜像分发闭环 ** : engineering-discipline / plan-grill / ios-engineer / cognitive-expansion 的 en-US 镜像补齐 D1-D5 协同条款英文翻译,与 zh 源口径一致;新增 ` tests/test_en_us_mirror_sync.py ` 双向锚点回归测试,防止 en-US 再次静默滞后
88+ - ** scripts/verify-sync.sh ** : 补齐 ` epistemic-integrity ` 和 ` problem-analysis ` 的 preamble 检查
3389
3490---
3591
0 commit comments