feat: AI-native governance v0.3.0 (memory, rollback, bilingual) - #7
Merged
Conversation
Add project memory points (playbook remember/memory + .playbook/memory/ with auto-maintained index, injected into context and session hooks) and rollback points (playbook checkpoint/rollback with git tags + checkpoints manifest, path-scoped restore, status demotion to draft) — the two pillars missing from big-tech vibe-coding practice (RFC-0002). Cost governance: start --light (record-only, no artifact templates) and context --brief (memory names only, cheaper hook injection). Engine fixes: single effective_policy merge (org triggers deduplicated by name, strictest wins), roundtrip YAML keeps manual comments in change.yaml (ruamel.yaml), parallel start race handled (PBK-E062), policy schema dup key removed, PBK-E012 reports all protected paths. Bilingual: 17 templates x2 (templates/en-US + templates/zh-CN), SKILL.md + SKILL.zh-CN.md, bilingual README; adoption-manifest carries zh-CN sources. Verified: 58 pytest, check-playbook.py, playbook check --mode work; CHG-0002 verified, CHG-0001 released (v0.3.0, REL-0002). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更内容
融合两条工作线:远程 Adoption-First(assess/fix/Daily Loop/profile)+ 本分支 AI-native redesign(记忆点、回档点、双语、成本治理),五支柱完整落地。
新增
playbook remember/memory list·delete(.playbook/memory/*.mdfrontmatter 记忆点 + 自动索引),context/hook session注入,--brief只输出名称省 tokencheckpoint change CHG-XXXX --message(git tagplaybook/CHG-XXXX@N+ checkpoints.json)+rollback CHG-XXXX --tag --apply(scope 内恢复 + 状态重置 draft);与既有的checkpoint save/list/restore(未提交工作保护)互补templates/en-US/+templates/zh-CN/(17 种 × 2)、SKILL.zh-CN.md、README 双语;manifest 条目带zh-CN源,--language决定采纳语言start --light(只写 change.yaml)、context --brief修复
effective_policy(name 级去重取最严,修双合并 bug)fix的路径前缀判断 bug(绝对路径下永远 False,无法自动补工件)init物化 profile 规则到 policy 文件(light/strict 不再被 defaults 的显式 rules 顶掉)验证
scripts/check-playbook.py通过playbook check --mode work/merge通过(CHG-0005 verified)追溯