Skip to content

fix(drift): 漂移检查漏掉了两个宿主 plugin - #1

Merged
zyonlab merged 1 commit into
opt/tier4from
fix/drift-covers-host-plugins
Sep 14, 2026
Merged

zyonlab merged 1 commit into
opt/tier4from
fix/drift-covers-host-plugins

Conversation

@zyonlab

@zyonlab zyonlab commented Sep 14, 2026

Copy link
Copy Markdown
Owner

发现

调研宿主接入时发现 plugins/testpilot-claude-codex 停在 09-12,落后四个文件:

.claude-plugin/testpilot.json
skills/testpilot-design/REFERENCE.md
skills/testpilot-design/REFERENCE-domain-perp.md
skills/testpilot-stories/SKILL.md      ← 当天刚改过

「长故事覆盖短故事」那条新规则,宿主 agent 整整两天没收到过。

为什么没被发现

检查本来是有的,挂在 pnpm check:drift 的三步串里:

node scripts/check-drift.mjs && build-claude-plugin --check && build-codex-plugin --check

CLAUDE.md 的红线写的是 node scripts/check-drift.mjs——只有第一步。照红线跑,它一直绿着。
一个有两种拼法、而其中一种会漏的检查,等于没有这个检查。

改了什么

修的是入口不是那行字:三步收进 check-drift.mjs 一个入口,package.jsoncheck: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

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>
@zyonlab
zyonlab merged commit b2e3f2a into opt/tier4 Sep 14, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants