Commit 2598216
检查 (c)(#4650)承认的第一种证明是「墓碑已老化」。它此前用 key 的叶名去和全部
major 的所有 conversion / migration surface 子句做 endsWith,再取 Math.min ——
与 #4659 从检查 (b) 拿掉的匹配同构,两个后果都朝放行方向。
实测 97 条历史墓碑中 2 条今天可删,两条都是误判:data/Index:type 被 protocol 11
的 flow.node.type 定年(索引类型 vs flow 节点类型),api/RestApiConfig:requireAuth
被 major 12 的 api.requireAuth 定年(那是安全默认值翻转,不是退休;真正的退休是
protocol 17 的 stack.api.requireAuth)。
改为读检查 (b) 的 RETIRED_KEYS_BY_MAJOR,按确切 ${defKey}:${name} 判定;
build-schemas.ts 中再无叶名匹配。历史墓碑不回填:叶名匹配正是 #4659 拿掉的推断,
而 authorable-surface.json 的 git 历史始于 17.0.0-rc.0,会把 97 条全定在 major 17
(文件出生日期,不是考据)。因此对未登记的墓碑 fail-closed —— 可删数 2 → 0。
Claude-Session: https://claude.ai/code/session_014wsZeReNTqiceBfLb5Pyf5
Co-authored-by: Claude <noreply@anthropic.com>
1 parent de6b7f1 commit 2598216
5 files changed
Lines changed: 451 additions & 96 deletions
File tree
- .changeset
- .claude/skills/spec-property-retirement
- packages/spec
- scripts
- src/migrations
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
205 | 215 | | |
206 | 216 | | |
207 | 217 | | |
208 | 218 | | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
213 | 223 | | |
214 | 224 | | |
215 | 225 | | |
| |||
0 commit comments