Commit 6131d90
docs(adr-0122): D6 点明同构 pin 的编译期证明落在哪一步 (#6263)
ADR-0122 D6 原文写「tsc proves the exemption on the same run that
type-checks the package」。字面不准确:`packages/spec` 的 `typecheck` 是两步
(`tsc --noEmit && pnpm check:test-typecheck`),第一步走 BUILD 配置,而
`tsconfig.json` 排除了 `**/*.test.ts` —— pin 文件
`type-alias-convention.pin.test.ts` 正是 `*.test.ts`,根本不在裸 tsc 的 program 里。
实测(给被钉同构的 `MCPApprovalPolicySchema` 加 `.default('never')`,Iso22):
裸 tsc --noEmit ................ EXIT=0
pnpm check:test-typecheck ...... EXIT=1
src/type-alias-convention.pin.test.ts: 1 type error(s) in a file the
ledger does not cover.
基线两步皆 EXIT=0;test-project 的原始报错为
`src/type-alias-convention.pin.test.ts(282,28): error TS2344: Type 'false'
does not satisfy the constraint 'true'.`(282 行即 Iso22,点名该 schema)。
结论未变:门咬得住,且咬在 debt ledger 不覆盖的文件上(该 pin 文件无
`test-typecheck-debt.json` 条目,基线即零错误,新增一个即红)。本次只订正
「哪一步证明」这一处措辞,并把零错误基线这半个保证一并写明。
仅改 ADR 文本。不动 `packages/spec` 的脚本、pin 文件、debt ledger 或任何门禁行为。
Fixes #6183
Claude-Session: https://claude.ai/code/session_014wsZeReNTqiceBfLb5Pyf5
Co-authored-by: Claude <noreply@anthropic.com>1 parent dbe92a7 commit 6131d90
1 file changed
Lines changed: 17 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
140 | 153 | | |
141 | 154 | | |
142 | 155 | | |
| |||
0 commit comments