fix(drift): 漂移检查漏掉了两个宿主 plugin - #1
Merged
Merged
Conversation
2026-09-14 调研宿主接入时发现:`plugins/testpilot-claude` 与 `-codex` 停在 09-12, 落后四个文件——`.claude-plugin/testpilot.json`、`testpilot-design/REFERENCE.md`、 `REFERENCE-domain-perp.md`,以及当天刚改过的 `testpilot-stories/SKILL.md`。 也就是说「长故事覆盖短故事」那条新规则,宿主 agent 整整两天没收到过。 检查本来是有的。`build-claude-plugin.mjs --check` / `build-codex-plugin.mjs --check` 一直在 `pnpm check:drift` 那个三步串里。问题出在 CLAUDE.md 的红线写的是 `node scripts/check-drift.mjs`——**只有第一步**。照红线跑,它一直是绿的, 后两步从没跑过。一个有两种拼法、而其中一种会漏的检查,等于没有这个检查。 所以修的不是那行字,是入口:三步收进 `check-drift.mjs` 一个入口, `package.json` 的 `check:drift` 退回成单条命令,两种拼法从此等价。 `--write` 也顺带重新生成宿主副本——改完 skill 跳版本的那一下,本来就该把副本一起带上。 验过它真能抓到:故意在 `testpilot-claude/skills/testpilot-stories/SKILL.md` 末尾加一行, 窄跑法当场报「与真源不一致(1 处)」并列出文件名;改回去就绿。 顺带把两个宿主副本重新生成到与真源一致。CLAUDE.md 那条红线也改了, 并在旁边写清楚为什么值得记着这件事。 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This was referenced Sep 14, 2026
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.
发现
调研宿主接入时发现
plugins/testpilot-claude与-codex停在 09-12,落后四个文件:「长故事覆盖短故事」那条新规则,宿主 agent 整整两天没收到过。
为什么没被发现
检查本来是有的,挂在
pnpm check:drift的三步串里:而
CLAUDE.md的红线写的是node scripts/check-drift.mjs——只有第一步。照红线跑,它一直绿着。一个有两种拼法、而其中一种会漏的检查,等于没有这个检查。
改了什么
修的是入口不是那行字:三步收进
check-drift.mjs一个入口,package.json的check:drift退回成单条命令,两种拼法从此等价。--write也顺带重新生成宿主副本。怎么验的
故意在
testpilot-claude/skills/testpilot-stories/SKILL.md末尾加一行,窄跑法当场报错并列出文件名;改回去就绿。两个宿主副本已重新生成到与真源一致。
检查
pnpm test:226 + 552 + 111 + 424 全绿pnpm check:drift/node scripts/check-drift.mjs:两种拼法都绿🤖 Generated with Claude Code