Commit bbd2d8d
三处计数只有一处是真的。#6319 报的 Kernel 17/15 属实;Cloud 5/6 与
Shared 5/12 是测量假象 —— 立单人的扫描器只认复数 `(N schemas)`,于是
`## Integration Protocol (1 schema)` 与 `## QA Protocol (1 schema)` 两个
单数标题不被识别、其行数被记到上一小节;而且小节只在下一个"被识别的"
标题处结束,Shared 因此一路吃到文末,把 `### Declarative Endpoints`
规则表的 6 行也算了进去(5+1+6=12)。三个数字已用同样的错法逐一复现。
真实的那一处不是标题过时,而是两行漂到了别的小节:
plugin-registry.zod.ts 与 plugin-security.zod.ts 都在 packages/spec/src/kernel/
(cloud/ 下没有同名文件),参考页也生成在 content/docs/references/kernel/,
它们却列在 Cloud Protocol 小节里。15 + 2 = 17,正是 Kernel 标题声明的数。
故判定标题一侧为真:两行移回 Kernel(标题 17 不动),Cloud 随之 5 → 3。
移回后 Kernel 会出现两个同名 "Plugin Security",按源文件名与参考页标题
把指向 plugin-security-advanced 的那行改名为 "Plugin Security Advanced"
(与邻近的 "Plugin Lifecycle Advanced" 同一约定)。
该页是手写的 —— build-docs.ts 只写 content/docs/references/,AGENTS.md
的文档护栏表也把 content/docs/getting-started/ 列为手写 —— 所以按
declared = enforced 加一道计数门:每个 `(N schemas)` 标题与其表格行数
比对,不符即红并点名小节与两个数字。门对结构变化刻意响亮报错而不是静默
放行(零小节、无计数的 Protocol 标题、小节无表/多表/空表都是 error),
因为一个悄悄不再认识自己页面的计数器会永远报绿 —— 那正是这道门要防的
失败模式,只是高了一层。
Claude-Session: https://claude.ai/code/session_01BDmDsu2575gDxeMCxXhDE3
Co-authored-by: Claude <noreply@anthropic.com>
1 parent ce2145e commit bbd2d8d
4 files changed
Lines changed: 422 additions & 4 deletions
File tree
- .github/workflows
- content/docs/getting-started
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
142 | 157 | | |
143 | 158 | | |
144 | 159 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
176 | 178 | | |
177 | 179 | | |
178 | 180 | | |
179 | | - | |
| 181 | + | |
180 | 182 | | |
181 | 183 | | |
182 | 184 | | |
183 | 185 | | |
184 | 186 | | |
185 | 187 | | |
186 | 188 | | |
187 | | - | |
188 | | - | |
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
0 commit comments