@sema-agent/settings-schema 19.0.0 → 20.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +127 -0
- package/README.md +36 -11
- package/conformance/VERSION +1 -1
- package/conformance/cases/c01-entry-salvage-then-typo/meta.json +1 -1
- package/conformance/cases/c03-literal-dotted-top-key/meta.json +1 -1
- package/conformance/cases/c12-prototype-name-top-keys/meta.json +1 -1
- package/conformance/cases/c34-skills-content-vs-manifest/expected.json +0 -3
- package/conformance/cases/c36-skills-entry-without-content/expected.json +0 -3
- package/conformance/cases/c37-skills-field-null/expected.json +0 -3
- package/conformance/cases/c40-s712-identity-only-what-reads-out/meta.json +1 -1
- package/conformance/cases/c41-s792-encoded-pem-identity/meta.json +1 -1
- package/conformance/cases/c42-s792-unknown-key-secret-redacted/meta.json +1 -1
- package/conformance/cases/c43-s792-form-and-deep-encoded-pem/meta.json +1 -1
- package/conformance/cases/c44-s792-utf8-escape-glued-token/meta.json +1 -1
- package/conformance/cases/c45-s792-identity-bounds-and-decode-depth/meta.json +1 -1
- package/conformance/cases/c46-s811-host-name-url-userinfo-withheld/meta.json +1 -1
- package/conformance/cases/c47-s811-roles-key-url-userinfo-withheld/meta.json +2 -2
- package/conformance/cases/c48-s935-model-headers-transported/meta.json +1 -1
- package/conformance/cases/c49-s935-model-headers-secret-entry-dropped/meta.json +1 -1
- package/conformance/cases/c57-s784-g1-enabled-no-lane/meta.json +1 -1
- package/conformance/cases/c65-s784-pg-without-db/meta.json +1 -1
- package/conformance/cases/c71-one-scanner-write-reads-display-forms/meta.json +2 -2
- package/conformance/cases/c76-projects-entry-salvage-nested/meta.json +1 -1
- package/conformance/cases/c80-prompts-wire-v2-verbatim/expected.json +0 -3
- package/conformance/cases/c84-sandbox-git-block-carried-verbatim/expected.json +0 -3
- package/conformance/cases/c85-sandbox-git-refused-block-still-carried/expected.json +0 -3
- package/conformance/cases/t01-absent-domain-key-not-null/meta.json +1 -1
- package/conformance/cases/t02-entry-salvage-vs-whole-domain-refusal/meta.json +1 -1
- package/conformance/cases/t03-prototype-name-key-not-swallowed/meta.json +1 -1
- package/dist/config-fns.d.ts +5 -0
- package/dist/config-fns.js +16 -5
- package/dist/conformance/derive.d.ts +1 -1
- package/dist/conformance/derive.js +10 -9
- package/dist/hooks-config.d.ts +54 -25
- package/dist/hooks-config.js +82 -21
- package/dist/types.d.ts +75 -7
- package/dist/types.js +39 -2
- package/docs/API-SURFACE.md +22 -4
- package/docs/CC-DIVERGENCE.md +4 -4
- package/docs/CONFORMANCE.md +11 -11
- package/docs/CONSUMER-INTEGRATION.md +55 -8
- package/llms-full.txt +16 -10
- package/llms.txt +12 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,133 @@
|
|
|
8
8
|
|
|
9
9
|
## Unreleased
|
|
10
10
|
|
|
11
|
+
## 20.0.0 — 2026-11-03 — major:目录条目 `ModelEntry.thinkingLevelMap`(引擎 `Model.thinkingLevelMap` 的声明位)· 词闭集 `MODEL_THINKING_LEVEL_WORDS` / 型 `ModelThinkingLevel` / 席位 schema `ModelThinkingLevelMap` · 运行期导出 `HOOK_ENTRY_FIELDS` / 型 `HookEntryFields` · hook 条目承运余下四个 CC 键 `rewakeMessage` / `rewakeSummary`(command)· `cloud`(command / http)· `continueOnBlock`(prompt),按 CC 的值形判 · 词闭集 `HOOK_CLOUD_WORDS` / 型 `HookCloud`(读者折 `cloud` 的参考)· `rewakeMessage` / `rewakeSummary` / `continueOnBlock` 的坏值自此是坏块(校验收紧) · 线上读口不编造生产方没发的域 —— `readEffectiveWire` 对载荷上缺席的 `a2a` 不再补 `{ peers: [] }`(`EffectiveWire.a2a` 改可选)· 承运表 `WIRE_CARRIED_DOMAINS`(`prompts` / `a2a`)/ 型 `WireCarriedDomain`
|
|
12
|
+
|
|
13
|
+
> 档位(按发版纪律):**major** —— 校验收紧、类型面不加性、同一份配置 / 载荷解析出不同结果(发版纪律「破坏性变更必 bump major」点名的几类)。本版三件各有「同一输入解析结果会变」的读数,下面逐条列全(件序:目录条目 `thinkingLevelMap` · hook 条目余下四个 CC 键 · 线上读口):
|
|
14
|
+
> **目录条目的 `thinkingLevelMap`** —— **一处读数会变**:目录条目上的 `thinkingLevelMap` 键,此前被当作未知键剥掉(读口报 `unknown-keys-dropped`),条目照装;自此合形的装上,**坏形(未知键 · 非对象 · 空串值 · 非串非 `null` 值)的条目整条被拒** —— 读口逐条丢并报 `entry-dropped`(同域**未被引用**的其余条目照常生效;**被 `roles` / `atMention.only` / `tierGroups` 引用的条目坏形 ⇒ 引用悬空,既有级联律把整个 `models` 域退成缺省:只发 `domain-defaulted`、目录退成空、兄弟条目一并丢,不发 `entry-dropped`**〔任何被引用的坏条目都是这个答案;19.0.x 里这类条目全装、只剥键;默认模型 `roles.default` 最常见〕;目录里一条好条目都不剩时,含它是唯一一条,走既有的零幸存者律:不发 `entry-dropped`,只发 `domain-defaulted`、`models` 退成空目录),文档面(`getDomain` / 导出)整域抛,写口拒;例:`{ name, id, thinkingLevelMap: 123 }` 在 19.0.x 装上(键被剥),本版整条被拒。没写这个键的条目,读数与内容哈希逐字不变。
|
|
15
|
+
> **hook 条目余下四个 CC 键** —— 校验收紧,**同一输入解析结果会变的两处**:① 带这四个键的条目,装上的那一份自此带着它们(此前被当作契约外的键剥掉;`cloud` 写什么装什么);② `rewakeMessage` / `rewakeSummary` / `continueOnBlock` 带**坏值**的条目 —— 空串或非串的 `rewakeMessage` / `rewakeSummary`、非布尔的 `continueOnBlock` —— 自此是坏块:非守卫事件里剔那一条,**守卫事件(`PreToolUse` / `PermissionRequest`)里整份设置不装,同文件的 `permissions.deny` 一起不生效**;此前这些键不论值是什么都被剥掉、整份照装(值里藏守卫迹象的除外:那一直是整份拒,见 `classifyHooksConfig` 头注)。上面是分类器的读法;zod 面(`HooksConfig` / `HookEntry` / 逐型五只)对该值**整个拒**,`readSettingsUnit("hooks", …)` 对该设置单元**整个答 `unreadable`**(此前都受理)——不止「剔那一条」。`cloud` 不在第 ② 处:它没有坏值。
|
|
16
|
+
> hook 条目这一件没有第三处:新列排在每行**行尾**(公共字段之后),所以已是坏块的条目 `field` 点名的字段、装上的既有键序都不变(19.0.0 的 `args` / `onFailure` 列在行中间,那一版因此有「`field` 改点名」的一处;本版没有,有钉)。对不带这四个键的文档,读数逐字不变。
|
|
17
|
+
> **线上读口(`readEffectiveWire` 的 `a2a`)** —— 类型面不加性(`EffectiveWire.a2a` 由必填变可选:直读 `readEffectiveWire(…).a2a.peers` 的消费方编译红),**同一输入解析结果会变的两处**:① 不带 `a2a` 的线上载荷(18.0.0 之前的设置契约铸出的中心载荷不带它):读出形里**没有** `a2a` 成员(此前补成 `{ peers: [] }`,与「中心说了空名册」同读);
|
|
18
|
+
> ② 嵌入方传自有键而值为 `undefined` 的 `prompts` / `a2a`(JSON 载荷里没有 `undefined`,只有进程内调用方会碰到):读作缺席(此前 `prompts` 读出一个值为 `undefined` 的自有成员、`a2a` 读出 `{ peers: [] }`)。
|
|
19
|
+
> 线上读口这一件不变的:载荷带 `a2a` 的读数(含 `{}` 与 `{ peers: [] }`:在场的空名册原样保真);整域读不进 ⇒ `{ peers: [] }` + `domain-defaulted`;读店 / 读 `config.d` 的一侧(`buildEffective` / `FileConfigStore` / `loadLocalConfig` / `emptyEffective`)照旧物化 `a2a`,`EffectiveConfig.a2a` 仍必填;其余 15 个域的线上读法。
|
|
20
|
+
> 加性的部分:新导出九个(`MODEL_THINKING_LEVEL_WORDS` 值、`ModelThinkingLevel` 型、`ModelThinkingLevelMap` 值与型、`HOOK_ENTRY_FIELDS` 值、`HookEntryFields` 型、`HOOK_CLOUD_WORDS` 值、`HookCloud` 型、`WIRE_CARRIED_DOMAINS` 值、`WireCarriedDomain` 型);`ModelEntry` 多一个可选键;hook 条目字段表多四个可选列(`CommandHookEntry` 多可选键 `rewakeMessage` · `rewakeSummary` · `cloud`,`HttpHookEntry` 多可选键 `cloud`,`PromptHookEntry` 多可选键 `continueOnBlock`;对 `keyof` 写穷举表的消费方在提货时编译红,是提货成本)。
|
|
21
|
+
> **迁移**:不配一次性迁移。(a)目录条目 `thinkingLevelMap` 与 hook 三键(`rewakeMessage` / `rewakeSummary` / `continueOnBlock`)的坏形 / 坏值没有可猜的正确值,要人改。升级前检查目录条目里已有的 `thinkingLevelMap`(含存下来要续跑的 models 文档、中心名册草稿),先查被 `roles` / `atMention.only` / `tierGroups` 引用的条目(坏形会让整个目录退空,不是只丢那一条):未知键 / 非对象 / 空串值 / 非串非 `null` 值改成合形(键取词表七词,值取非空串或 `null`),或把这个键整个删掉(删掉后读数逐字同 19.0.x)。另检查设置文件、请求体里的 `hooks`(含存下来要续跑的):把空串的 `rewakeMessage` / `rewakeSummary` 改成非空串、把非布尔的 `continueOnBlock` 改成布尔,或把这三个键整个删掉(删掉后读数逐字同 19.0.0)。不确定就先跑一遍 `classifyHooksConfig`:结局不是 `loaded`,或 `field` 是这三个键之一,就是要改的那一条。(b)线上读口:没有存量数据要迁(变的是线上读法,不是存储形)。消费方把 `.a2a` 的直读改成先判在场;要旧读法(缺席与空名册同读)的一侧补 `?? { peers: [] }` 一行。
|
|
22
|
+
> 律 · hook 条目:hook 条目的字段集只有一张表(`HOOK_ENTRY_FIELDS`),分类器、zod 面、条目类型同读它;「承运」与「执行」是两件事 —— 本包只判形,不执行。
|
|
23
|
+
> 律 · 线上读口:线上读口不编造生产方没发的域 —— 按在场性承运的域只有一张表 `WIRE_CARRIED_DOMAINS`,在场判据只有一个(载荷的自有键,且值不是 `undefined`)。
|
|
24
|
+
|
|
25
|
+
### 目录条目的 `thinkingLevelMap`
|
|
26
|
+
|
|
27
|
+
- **席位**:`ModelEntry.thinkingLevelMap?`,引擎 `Model.thinkingLevelMap` 的声明位。键闭集 = 词表 `MODEL_THINKING_LEVEL_WORDS`(`off` `minimal` `low` `medium` `high` `xhigh` `max`,包根与 `./types`;型 `ModelThinkingLevel`),全可选;值 = **非空串**(供应商在这一档上自己的取值)或 **`null`**(这一档在这个模型上不支持);缺键 = 供应商缺省。
|
|
28
|
+
席位的 schema `ModelThinkingLevelMap`(值与型)从词表铸键并 `.strict()`,条目里的席位就是这只实例。
|
|
29
|
+
- **三态,同 `reasoning` / `vision`**:缺席 = 未声明(本包不补 `{}`);`{}` = 声明了、没有覆盖,与缺席是两种声明(内容哈希区分)。
|
|
30
|
+
- **坏形整条拒,不剥键、不折默认**:未知键(含大小写变体、邻词、原型名)、非对象(含整张表写 `null`、数组)、空串值、非串非 `null` 的值 ⇒ 这一条目不过:读口逐条丢并报 `entry-dropped`(同域**未被引用**的其余条目照常;**被 `roles` / `atMention.only` / `tierGroups` 引用的条目坏形 ⇒ 引用悬空,既有级联律(悬空引用的 refine)把整个 `models` 域退成缺省**:目录退成空、只发 `domain-defaulted`、不发 `entry-dropped`,兄弟条目一并丢 —— 任何被引用的坏条目(例:缺 `id`)都是这个答案,本席位不是特例;但 19.0.x 里这类条目全装、只剥键,所以这也是档位段「一处读数会变」的一部分;目录里一条好条目都不剩时,含它是唯一一条,走既有的零幸存者律 —— 与任何别的坏目录条目同答:不发 `entry-dropped`,只发 `domain-defaulted`、`models` 退成空目录),文档面(`getDomain` / 导出)整域抛,写口拒。剥掉一个拼错的档名,就是把「这一档关不掉」悄悄读成「这一档照常」,所以这里不走 `compat` 的解析透明(那条的形归读它的消费方);词表是本包的闭集,坏形就是坏条目。拒句点名席位与坏字段。
|
|
31
|
+
- **本包只承载与判形,不判语义**:串的内容是供应商取值,怎么用(哪条线缆读哪一档、`null` 怎么落到线缆上)归读它的消费方。
|
|
32
|
+
- **与引擎的锚**:引擎的 `ModelThinkingLevel` 只在类型层,漂移门 ⑫(`test/upstream-drift.test.ts`)把本包的词表联合、席位的整个型、席位的键集与引擎根导出的 `Model` 的 `thinkingLevelMap` 双向对拍 —— 引擎加词 / 删词 / 放宽值型 / 改字段名,`npm run typecheck` 红;运行期只能单向(本包每个词被引擎的 `isThinkingLevel` 认)。**引擎加词只在 typecheck 咬,vitest 单跑不红。**
|
|
33
|
+
引擎的值型是任意 `string`,本包的值是**非空**串(空串放行会让一个空 effort 上线缆)—— 运行期的收紧,类型层同为 `string | null`。
|
|
34
|
+
- **三问** —— **谁需要**:线缆上某档关不掉、或要换个拼法的部署(例:`anthropic-messages` 条目要把某档落到另一档)—— 此前目录条目与 env 腿都没有这一席,声明不了;
|
|
35
|
+
**谁受伤**:此前在目录条目上写了 `thinkingLevelMap` 的部署 —— 该键被剥掉、条目照装;自此写坏的(上面四类)条目被拒、条目从目录里消失(同域未被引用的其余条目照常;**被 `roles` / `atMention.only` / `tierGroups` 引用的条目写坏 ⇒ 整个目录退空并发 `domain-defaulted`,最常见的就是默认模型那一条**;若它是唯一一条,目录读成空),合形的则第一次真的到达消费方;没写这个键的部署零变化。
|
|
36
|
+
**补偿**:拒句点名席位与坏字段,改成合形(键取词表七词、值取非空串或 `null`)或删掉这个键即可,被引用的条目先改;缺席即旧行为。
|
|
37
|
+
|
|
38
|
+
### 运行期导出 `HOOK_ENTRY_FIELDS`
|
|
39
|
+
|
|
40
|
+
- hook 条目的字段表(每型 → 字段名 → 取值类,`?` 结尾 = 选填)此前是模块私有的 —— 19.0.0 的包里有定义,包根与 `./hooks` 都取不到,要把「条目承运哪些字段」投影出去的消费方只能自己抄一份。现导出 `HOOK_ENTRY_FIELDS`(包根与 `./hooks` 同一只对象,逐行深冻结)与型 `HookEntryFields`(= `typeof HOOK_ENTRY_FIELDS`)。字段序即装上的条目的键序(`args` 在 `shell` / `async` / `asyncRewake` / `onFailure` 与公共字段之前,`onFailure` 在公共字段之前 —— 与 19.0.0 节第 ③ 处所述一致)。条目类型照旧从它派生。
|
|
41
|
+
- **分类器读的是闭包私有的投影,不是这一只导出**:分类器被消费方的生成器整函数抄走,闭包里除登记的注入名 `HOOK_EVENTS` 外不能读任何导出声明,私有件也不能经导出表达式逃逸 —— 否则拒抄。所以它读 `HOOK_ENTRY_FIELDS_READ`(闭包私有,与 `HOOK_ON_FAILURE_ACCEPTED` 同形):逐行逐字段全写、以 `HookEntryFields` 作型标注 —— 少一行、多一行、换一个取值类,编译红;钉再核运行期:导出表的每个字段在分类器里的必填 / 选填 / 取值类判法与表所写一致,装出来的键序 = `type` + 表序。
|
|
42
|
+
导出与投影本身对分类器的判法逐位不变(判法随字段表;四键承运见下面「hook 条目余下四个 CC 键」);闭包文本的变化 = 私有件 `HOOK_ENTRY_FIELDS` + `HOOK_ENTRY_COMMON_FIELDS` 换成 `HOOK_ENTRY_FIELDS_READ`(公共四字段在投影里写开)。**这不是「同一引用」**:导出表与分类器的投影是两只对象,由型标注与差分钉咬住不漂。
|
|
43
|
+
- **三问** —— **谁需要**:要把 hook 条目承运的字段投影给别人的消费方(服务端的能力位);**谁受伤**:无(两个新导出,导出本身不改解析读数);**补偿**:不适用。
|
|
44
|
+
|
|
45
|
+
### 消费方提货
|
|
46
|
+
|
|
47
|
+
- **server 7.147.0**:能力位 `settingsContract.hookEntryFields` 从 `HOOK_ENTRY_FIELDS` 投影,退役本地镜像;目录条目的 `thinkingLevelMap` 随条目到达(中心名册透传 · env 腿 · `GET /v1/models` 投影 · anthropic `compat` 分读由 server 自己的版本接),读 `MODEL_THINKING_LEVEL_WORDS` / `ModelThinkingLevel` 的穷举处补词表。
|
|
48
|
+
- **web-admin**:模型目录编辑面可选地承运 `thinkingLevelMap`(键取词表七词,值取非空串或 `null`);不读也不受影响 —— 但写坏的条目自此会在读口被丢,表单应只产合形。
|
|
49
|
+
- **client-core**:由 `classifyHooksConfig` 生成的读器副本要重生成 —— 闭包读的私有件由 19.0.x 的私有 `HOOK_ENTRY_FIELDS` + `HOOK_ENTRY_COMMON_FIELDS` 换成 `HOOK_ENTRY_FIELDS_READ`(公共四字段在投影里写开),字段表多四列、取值判多 `nonEmpty` · `any` 两个分支,行为随表(`rewakeMessage` / `rewakeSummary` / `cloud` / `continueOnBlock` 承运,`rewakeMessage` / `rewakeSummary` / `continueOnBlock` 的坏值是坏块 —— 见 hook 条目余下四个 CC 键一节);自由名仍只有 `HOOK_EVENTS`;生成器照旧整函数抄。
|
|
50
|
+
- **cli**:无读点(壳零直读这两处)。
|
|
51
|
+
- 文书:README 升级指引(19.0.x → 20.0.0)· `llms.txt` / `llms-full.txt` · `docs/CONSUMER-INTEGRATION.md` §19 · `docs/API-SURFACE.md` 重生。
|
|
52
|
+
|
|
53
|
+
### 钉
|
|
54
|
+
|
|
55
|
+
`test/thinking-level-map-20.0.0.test.ts`(词表七词与导出〔包根 = `./types` 同一份〕· 席位 schema 的键从词表铸 · 七个键各一的串值 / `null` 正控 · `{}` 与缺席是两种声明 · 坏形整条拒〔未知键含大小写变体 / 原型名 / 自有键 `__proto__`、好键 + 未知键同在、七个空串值、非对象、非串非 `null` 值〕· 缺席不补 `{}` · 五条读口 + 写腿同班车〔带席位逐字交出且零告警;坏形逐条丢 `entry-dropped`、文档面抛、写口拒且不落盘;唯一一条就是坏条目 ⇒ 与缺 `id` 的唯一条目同答〔零幸存者律〕〕· 内容哈希按值参与)·
|
|
56
|
+
`test/upstream-drift.test.ts` 门 ⑫(词表联合 / 席位的整个型 / 席位的键集与引擎 `Model.thinkingLevelMap` 双向同,另一道 `any` 判别守值型位,七颗 `@ts-expect-error` 牙;运行期单向)·
|
|
57
|
+
`test/hook-entry-fields-20.0.0.test.ts`(两处导出同一只 · 行 = 条目 type 闭集 · 深冻结 · 型面 · 每型字段序与 19.0.0 节第 ③ 处所述一致 · 闭包私有的投影从源码求值后与导出表逐行逐字段深等〔含键序〕· 与分类器的差分)·
|
|
58
|
+
`test/docs-20.0.0-fields.test.ts`(文书对账)。
|
|
59
|
+
|
|
60
|
+
### hook 条目余下四个 CC 键
|
|
61
|
+
|
|
62
|
+
- **CC 真形**(逐键,坐标 `cli309.js:252382` —— 条目 schema 工厂 `_s()` 里五个 `u({…})`,一行压缩码;值形照 CC,CC 不判的本包不判):
|
|
63
|
+
- `rewakeMessage`(只 command):`o().min(1).optional()` —— 串,**不允许空串**(`min(1)`),别的不判:空白串、多行、含 NUL 都是值。CC 标 `@internal`:`asyncRewake` 的 hook 以退出码 2 退出时,系统提醒给模型的前缀。
|
|
64
|
+
- `rewakeSummary`(只 command):同形(`o().min(1).optional()`)。CC 标 `@internal`:同一时刻给用户的一行终端摘要,CC 缺省 `Stop hook feedback`。
|
|
65
|
+
- `cloud`(command 与 http):`B(["device","skip"]).optional().catch("skip")` —— 词表 `device` | `skip`,CC 标 `@internal`:云会话由这台机器驱动时,这个 hook 能不能被带进云会话。**`.catch("skip")` 接住内层的任何解析失败**(`$ZodCatch`:内层有 issue 就换成 catch 值,`cli309.js:252268`),所以词表外的任何值(含非串、`null`、数组、对象)在 CC 里都合法:读作 `skip`,文件照装。**本包同:任意值照带** —— 不判;也不折成 `skip`(那是改写作者写下的值),也不剥键(剥掉会把「不上云」读成缺省:command 缺省下,脚本读得到、钉得住且在云会话可写范围之外的会被带上云)。折法**由读者折**:`HOOK_CLOUD_WORDS` 是它的参考,不是检查。
|
|
66
|
+
- `continueOnBlock`(只 prompt):`O().optional()` —— 布尔,`false` 是值。prompt 条目判「不通过」产出 `decision: "block"` 时的 `continue` 取值(CC 缺省 false:这一轮结束)。
|
|
67
|
+
agent 与 mcp_tool 两型的 schema 没有这四个键;别的型上写它们仍是契约外的键(剥掉,不算坏块,连坏值也不算;键下装着守卫迹象的除外 —— 那一直是整份拒,不因本版改变)。
|
|
68
|
+
- **坏值 = 坏块**(`rewakeMessage` / `rewakeSummary` / `continueOnBlock`,与 19.0.0 的 `args` / `onFailure` 同律):非守卫事件剔那一条、守卫事件整份拒,`field` 点名那个键;不剥键、不折默认,缺席就是缺席(本包不补缺省)。
|
|
69
|
+
- **自述订正**:此前两处自述「不比 CC 松」——`src/hooks-config.ts` 头注「a document CC would load may be rejected here, never the reverse」与 `docs/CC-DIVERGENCE.md`「本包不登比 CC 更松的偏离」—— 与行为不符:这四个键被剥掉、不看值,守卫事件里 `rewakeMessage: ""` / 非布尔 `continueOnBlock` 照装,比 CC 松(19.0.0 节「仍不承运」条已披露为已知限制)。本版承运它们之后,CC 五型条目 schema 上的每个**键**都在字段表里,H7 改写成逐键同归属型,那一条已知限制关闭;头注收窄成「列出来的偏离都更严 + 键覆盖」。已发布的 19.0.0 节照原样保留。
|
|
70
|
+
**仍未收的一处更松的面**(**已知限制**,本版不动):`http` 条目的 `url` —— CC 的 schema 判 URL 语法(`url:o().url()`),本包只判非空串且不含 NUL,所以守卫事件里 `url: "x"` 照装,比 CC 松。收它要在分类器闭包里用内建 `URL` 并让读器生成器跨仓登记,是另一类设计,不并进本版;翻面条件 = URL 语法判落地。
|
|
71
|
+
- **词闭集**:`HOOK_CLOUD_WORDS = ["device", "skip"] as const`(包根与 `./hooks`)· 型 `HookCloud`:**读者折法的参考**,分类器不读它(`cloud` 的值不判,条目类型里 `cloud` 的型是 `unknown`)。登记表 `docs/API-SURFACE.md` 已重生。
|
|
72
|
+
- **一事一源**:字段表仍是唯一声明 —— 两个新取值类(`nonEmpty` = CC 的 `min(1)`、`any` = 不判、原值照带,列与列表拷贝一层同 `record`)是表里的两个词,分类器的取值判、zod 面、条目类型都从表读;没有按字段名写的分支。分类器闭包没有新的私有声明(没有词表镜像),也没有新增内建词,自由名仍只有 `HOOK_EVENTS`。
|
|
73
|
+
- **承运 ≠ 执行**:`@internal` 不是不承运的理由。`rewakeMessage` / `rewakeSummary` / `cloud` 是 CC 标 `@internal` 的键,`continueOnBlock` 属 prompt 型:本包只判形,不执行,读到它们的消费方如实带着;server 侧的执行面另票处理,本版不规定。
|
|
74
|
+
- **三问** —— **谁需要**:在 CC 与本栈之间搬运 `hooks` 的部署与壳:按 CC 写的、带这四个键的 hooks 文档,此前装上的那一份不带它们(静默剥掉),经本栈再带出去时键丢了;坏值也不被拦(守卫事件里 `rewakeMessage: ""` 照装,CC 自己会拒)。
|
|
75
|
+
**谁受伤**:hook 条目这一件的第 ② 处 —— 在 `rewakeMessage` / `rewakeSummary` / `continueOnBlock` 上写过坏值的设置文档;守卫事件里是整份不装。按 CC 写的文档不受这一处伤:这三个键 CC 自己也拒同样的值(空串的 `rewakeMessage` / `rewakeSummary`、非布尔的 `continueOnBlock`);`cloud` 与 CC 同读,CC 里能装的文件这里一样装。
|
|
76
|
+
**补偿**:坏块的 `field` 点名那个键;改成合法值即可,不想要这些键的文档删掉它们,读数逐字同 19.0.0。
|
|
77
|
+
|
|
78
|
+
### hook 条目四键 · 消费方提货
|
|
79
|
+
|
|
80
|
+
- **server**:`CommandHookEntry` / `HttpHookEntry` / `PromptHookEntry` 多可选键(随条目到达)· `HOOK_CLOUD_WORDS` / `HookCloud`(折 `cloud` 时的参考)。server 侧对 `rewakeMessage` / `rewakeSummary` / `cloud` 的执行面另票处理,本版不规定;`continueOnBlock` 与 prompt 条目的其余字段同路。
|
|
81
|
+
- **cli**:`CommandHookEntry` / `HttpHookEntry` / `PromptHookEntry` 的四个键 —— 壳若自己执行 hook(引擎属主事件 `ENGINE_OWNED_HOOK_EVENTS` 以外)执行它们、如实带着或明拒;`cloud` 要折就按 CC 折(词表外的任何值读作 `skip`);「能不能装」仍只问 `classifyHooksConfig`。
|
|
82
|
+
- **client-core**:由 `classifyHooksConfig` 生成的读器副本要重生成 —— 闭包读的私有件由 19.0.x 的私有 `HOOK_ENTRY_FIELDS` + `HOOK_ENTRY_COMMON_FIELDS` 换成 `HOOK_ENTRY_FIELDS_READ`(公共四字段在投影里写开),字段表多四列、取值判多 `nonEmpty` · `any` 两个分支,行为随表(`rewakeMessage` / `rewakeSummary` / `cloud` / `continueOnBlock` 承运,`rewakeMessage` / `rewakeSummary` / `continueOnBlock` 的坏值是坏块 —— 见 hook 条目余下四个 CC 键一节);自由名仍只有 `HOOK_EVENTS`;生成器照旧整函数抄。
|
|
83
|
+
- **web-admin**:`HookEntry` 一族的编辑面可选地承运四列(`cloud` 的编辑面可以拿 `HOOK_CLOUD_WORDS` 做选项);不读也不受影响(加性的类型面)。
|
|
84
|
+
- **sdk**:类型面 —— 多四个可选键(`cloud` 的型是 `unknown`);对 `CommandHookEntry` / `HttpHookEntry` / `PromptHookEntry` 的 `keyof` 写穷举表的地方编译红,补列。
|
|
85
|
+
- 文书:README hooks 条 + 升级指引(19.0.x → 20.0.0)· `llms.txt` / `llms-full.txt` · `docs/CONSUMER-INTEGRATION.md` §18 · `docs/CC-DIVERGENCE.md` H7 改写 · `docs/API-SURFACE.md` 重生。
|
|
86
|
+
|
|
87
|
+
### hook 条目四键 · 钉
|
|
88
|
+
|
|
89
|
+
`test/hooks-cc-keys-20.0.0.test.ts`(承运集:CC 五型全键装上与键序〔新列在行尾〕、归属型 × 别型仍剥 · `rewakeMessage` / `rewakeSummary` 非空串〔空白 / 多行 / NUL 是值〕与坏值 · `cloud` 两词与任意值照带〔词表外 · 非串 · `null` · 数组 · 对象 · 原型名,三个事件〕· `continueOnBlock` 布尔与非布尔 ·
|
|
90
|
+
守卫轴整份拒 / 非守卫剔一条 / 键下装迹象仍整份拒 / 迹象先于更靠前的坏字段 · 已是坏块的条目 `field` 不挪 · zod 面投影 · 词表导出 · 类型面 `keyof` 精确 · 🚧 已知限制(url 语法)· 自述句与文书对账)· `test/hooks-command-fields-19.0.0.test.ts`(4 格「仍不承运」读法与已知限制钉翻成承运 / 坏块 / 照带)· `test/hooks-classify-13.0.0.test.ts`(两处「契约外键」例子由 `rewakeSummary` / `cloud` 换成 CC 条目 schema 上没有的键;差分门语料的 `extra` 样本同换)· `test/docs-19.0.0.test.ts`(H7 钉标题改准)。
|
|
91
|
+
|
|
92
|
+
### 线上读形与承运表
|
|
93
|
+
|
|
94
|
+
- **`WIRE_CARRIED_DOMAINS = ["prompts", "a2a"] as const`**(包根与 `./types`)· 型 **`WireCarriedDomain`**:表里的域在 `GET /effective` 载荷上缺席 ⇒ `readEffectiveWire` 的读出形里同样缺席;在场 ⇒ 照该域既有读法(`prompts` 原样,由消费方判;`a2a` 解析、逐条抢救、整域读不进 ⇒ 缺省 + 告警)。
|
|
95
|
+
`EffectiveWire` 由这张表派生:表里除 `prompts` 外的域在线上读形上是可选成员(今天就是 `a2a`)。`prompts` 自 0.13.0 起就是缺席进缺席出,本版只是把它的专用臂并进这张表、用同一个在场判据。
|
|
96
|
+
- **为什么只有这两个域**:不在表里的 15 个域在 1.0.0 起就在域表上,`buildEffective` 恒物化它们,支持面内的每个生产方都恒发 —— 线上缺席对它们不可达,读作契约缺省(与读店同一份缺省;`governance` / `limits` 的缺省本身就是「每键不说」,空 `models` 目录读作「不管模型面」,集合域空表 = 没有条目)。
|
|
97
|
+
`a2a` 是 18.0.0 才进域表的:比它旧的生产方不懂它、不发它,线上缺席是常态形,补空名册就是替生产方说了一句它没说的「空」。**之后加进域表的域一律进这张表**(钉:域表 = 恒发名单 ⊎ 承运表,新域不表态即红)。
|
|
98
|
+
- **消费方读 `a2a` 的三态**:缺席(读出形里没有 `a2a` = 生产方不懂此域)· 在场(值即解析结果,`{ peers: [] }` = 说了空名册)· 读不进(在场、值为 `{ peers: [] }`,同时有一条 `domain-defaulted`,域 `a2a`)。
|
|
99
|
+
18.0.0 起 `buildEffective` 恒物化 `a2a`,所以 ≥ 18.0.0 的中心恒发它(没存文档也发 `{ peers: [] }`):线上缺席 ⇔ 生产方早于本域。
|
|
100
|
+
- **读店 / 读 `config.d` 不在本律内**:那两腿的读者就是本包,恒懂每个域,没有「生产方不懂」这一态 —— `config.d/a2a.json` 不存在与存在空名册同读 `{ peers: [] }`。要问「文件在不在」的一侧读既有的三态读口 `readConfigDFileReadingSync(root, "a2a")`(`absent` / `present` / `refused`)。
|
|
101
|
+
- **三问** —— **谁需要**:要把「旧中心没说」与「中心说了空名册」分开的消费方(例:在原始回体上判 a2a 三态的壳 —— 缺席是「这台中心不懂 a2a」,在场的空名册才是「中心撤了对端」);此前解析后两态同读,只能绕开契约读口去看原始载荷。
|
|
102
|
+
**谁受伤**:直读 `readEffectiveWire(…).a2a.peers` 的线上消费方 —— 型上 `a2a` 变可选,编译红即通知;运行期读老中心载荷时那一处拿到 `undefined`。
|
|
103
|
+
**补偿**:`readEffectiveWire(…).a2a ?? { peers: [] }` 一行恢复旧读法;线上型本来就把各域写成可选成员的消费方零改动。
|
|
104
|
+
|
|
105
|
+
### 消费方提货
|
|
106
|
+
|
|
107
|
+
- **server 7.147.0**:中心腿把读出形换装成本仓自己的型,那里的 `a2a` 已是可选成员 —— 零编译改动;老中心上 `a2a` 由 `{ peers: [] }` 变缺席,两者都不拨任何对端(按场景筛对端时空表与缺席同答)、重启指纹同为空;只需把它那一句「两腿都经契约读口、缺省已物化」的注释改准(中心没发 ⇒ 缺席)。本地腿(`FileConfigStore`)不变。
|
|
108
|
+
- **client-core**:原始回体上的 a2a 三态可以改读契约:`readEffectiveWire(body)` 的 `a2a` 不在 ⇒ 缺席;在 ⇒ 在场;在 + `domain-defaulted`(域 `a2a`)⇒ 读不进。旧的自证「`readEffectiveWire` 把缺席补成空名册」那一格翻面;`buildEffective` / `emptyEffective` 恒物化那两格不翻。
|
|
109
|
+
- **web-admin**:没有 a2a 读点;提货到 ≥ 18.0.0 之后 `buildEffective` 恒物化 `a2a`,中心载荷恒带它。
|
|
110
|
+
- **sdk / cli**:不读 `EffectiveWire` / `readEffectiveWire`;无动作。
|
|
111
|
+
- 一致性语料:wire 腿的派生只登记一条表示差异 —— `T1` 由「prompts 物化」泛化为承运表(id 改为 `T1-wire-carried-domains`,`DERIVATION_TRANSFORMS` 里读这个 id 的一侧随改);域腿金样零改;六条写显式 wire 金样的 case 去掉补出来的 `"a2a": { "peers": [] }`。
|
|
112
|
+
- 文书:README 升级指引(19.0.x → 20.0.0)· `llms.txt` / `llms-full.txt` · `docs/CONSUMER-INTEGRATION.md` §17.4 改准 + §20 · `docs/CONFORMANCE.md` T1 行 · `docs/API-SURFACE.md` 重生。
|
|
113
|
+
|
|
114
|
+
### 钉
|
|
115
|
+
|
|
116
|
+
`test/wire-carried-domains-20.0.0.test.ts`(律:承运表 = `prompts` + `a2a`、域表 = 恒发名单 ⊎ 承运表 · 类型面 `EffectiveWire.a2a` 可选 / `EffectiveConfig.a2a` 必填 · a2a 线上三态:缺席、`a2a: undefined` 同读缺席、空名册保真、`{}` 物化、对端解析、四种整域坏形 ⇒ 在场 + `domain-defaulted` · 往返:≥ 18.0.0 中心无文档照发空名册、存了对端读回逐键同、老中心载荷过两道读口仍缺席 · 律外:恒发的域照旧物化、prompts 同一判据、读店 / 本地腿照旧物化)· `test/a2a-domain-18.0.0.test.ts`(「中心腿不带 a2a 也物化空名册」那一格翻面)· `test/conformance-coverage.test.ts`(T1 逐域记:承运表里每个域都要有语料让两腿真的分开)· `test/docs-20.0.0-wire-carried.test.ts`(文书对账)。
|
|
117
|
+
|
|
118
|
+
## 19.0.1 — 2026-11-03 — patch:随包文件去内部编号 + docs-hygiene K 组门 · 零幸存者律澄清与钉
|
|
119
|
+
|
|
120
|
+
> 已知限制(复审两腿;另票收):已发 CHANGELOG 节里的内部编号(约 159 处)本版未改 —— 本仓此前没有成文的「已发节字节冻结」纪律,且有六个已发节与其 tag 不同;下一版先成文该纪律并配门(照 server 的已发节字节核),再决定是否做一次性清洗。同用途的编号 / 版本词表在 test/ 下仍有多份,随该票并成一张;门 K 认不出的复审项标号(如 WA-NN / L5 / M1 类)与语料数据文件里的编号同票。
|
|
121
|
+
|
|
122
|
+
> 档位(按发版纪律):**patch** —— 文案 / 注释 / 测试:零导出变化、零行为变化(随包文字、一致性语料的 `meta.json` 文字、测试);`docs/API-SURFACE.md` 无需重生。读数不变的地方不写「谁受伤」:没有人。
|
|
123
|
+
|
|
124
|
+
- **随包文本不再带内部编号**。`package.json` 的 `files` 清单里的文本文件此前带着 56 处台账号 / 帖号 / 裁定号(README 8 · `llms.txt` 5 · `llms-full.txt` 6 · `docs/CONSUMER-INTEGRATION.md` 4 · `docs/CONFORMANCE.md` 10 · 一致性语料 17 个 `meta.json` 共 23),读者(消费方、npm 页面)解析不了它们,剩下的只是一句指向够不着的账本的话。
|
|
125
|
+
这 56 处已逐处改写成事实句 —— 「某票起可带」写成「6.1.0 起可带」,「某帖实测」写成「web-admin 实测」,文档示例里的台账号 `ref` 换成中性的示例值(合 `LEDGER_REF_RULE` 的形);语义不变,换上去的坐标是读者够得着的(版本号 / 行为)。词表认不出的同类编号形另改了 3 处(语料里 web-admin 的两处缺陷号、一处评审条目号)。
|
|
126
|
+
语料只动 `meta.json` 里 `claim` / `note` 的文字:`input.json` / `expected.json` 一字未动,case 名(目录名)不变;`docs/CONFORMANCE.md` 里「原样收编、未改写措辞」那句因此补了一半(措辞未改,仅把帖号换成不带编号的短语)。
|
|
127
|
+
**一类一门**:`test/docs-hygiene.test.ts` 新增 K 组 —— 读 `package.json` 的 `files` 本身(往里加一项,当天就被扫;npm 对包根隐式收编的 `README*` / `LICENSE*` / `package.json` 同扫),七族词表(票号可带子票小写字母)全文扫、零放行;文本种类是闭集(新种类响亮地红)。
|
|
128
|
+
`CHANGELOG.md` 只扫**还能改的文本** —— 第一个「版本低于 `package.json` 当前版本」的节之前的全部(前言 / `## Unreleased` / 本版及更高版本节);**已发节不可改**(逐字进过 tag,字节冻结),所以不扫它们,这是已发节不可改的律落在门上的形,不是给旧编号开的口子:免扫区是肯定识别出来的(认不出的头一律照扫),免扫区里再出现在途节头 / 版本不低于当前的头、节头形标题紧跟围栏线、或全文的版本头不是严格最新在前(围栏里隔着空行的示例标题多半会撞上这一条)都红。`files` 里的项必须能按字面解析(通配项 / 不存在的路径 ⇒ 红,逼着有意地展开)。
|
|
129
|
+
门有牙:往 README 塞一个编号 ⇒ 红且只红那一处;往 `## Unreleased` 塞 ⇒ 红;塞进已发节 ⇒ 不红(合成文本自证);基线上(改写前)该格红 56 处,改写后 0。
|
|
130
|
+
- **澄清:「零幸存者」律的可读行为(行为不变)**。一个集合里**一条都救不活**时,`salvageEntries` 原样返回、一条不丢 —— 没有幸存者就没有要抢救的东西,它从不凭空造出一个空集合(把「全是坏值」的限制清单抢救成空数组 = 悄悄删了限制,这一类 fail-open 由此挡住)。所以单个 worker、`secretEnv` 只有一条坏引用时,直接调 `salvageEntries` 返回的文档里那条坏引用还在 —— 这是**设计**:它**到不了** effective。集合挂在条目体内时(例:mcp 服务的 `allowTools` 全坏),那一条条目随后被整条判不过而丢掉(`entry-dropped`,兄弟留);域里一条条目都不剩时,下一步整域档位裁:
|
|
131
|
+
闸域(`workers` 等:`DOMAIN_ENTRY_SALVAGE` 判 `"none"`、`DOMAIN_READ_FALLBACK` 判 `"throw"`)读路径上(`parseDomainSalvaged` / `buildEffective` / `readEffectiveWire`)抛原错 —— ZodError,issue 坐标点名那条坏引用(`["workers", 0, "secretEnv", "bad-key"]`),零告警;
|
|
132
|
+
目录域(`a2a` / `mcp`:`"salvage"` × `"default"`)单条目全坏 ⇒ 整域回落默认(空名册 / 空表:能力消失,fail-closed)+ 恰一条 `domain-defaulted` 点名该域。
|
|
133
|
+
好坏同在时:目录域恰一条 `entry-dropped`(坐标 = 条目,不是引用那一键;凭据引用集合不可部分抢救,坏条目没有「半截凭据」存活),好条目整条留;直接调 `salvageEntries` 的 `workers` 同样丢整个 worker、留兄弟 —— 但读路径上的 `workers` 域不抢救,好坏同在也抛。
|
|
134
|
+
钉:`test/zero-survivor-law-19.0.1.test.ts`(11 格,含嵌套集合全坏的两格;变异:`salvageLayerUnsafe` 的零幸存者判去掉 ⇒ 直接调 `salvageEntries` 的原引用格、目录域单条目格与嵌套格红)。`README.md` 抢救段补了一句,头注原文(`salvageEntries` 前一段「零幸存者不算部分损坏」)未改。
|
|
135
|
+
- **已知限制(披露,本版不收)**:`dist/*.d.ts` 随 `removeComments:false` 带着 `src/` 的 JSDoc,其中仍可含内部编号 —— 那是**另一个面**(源头是 `src/` 注释,不是本件改的这些文本),K 组不读 `dist`(门不依赖 build 在不在场)。
|
|
136
|
+
一致性语料的 case 目录名(例:带票号小写缩写的几个 `c4x-s…` 名)是 case 的身份,被各仓的 historical 账与适配器引用,改名是契约变更,本版不动。
|
|
137
|
+
|
|
11
138
|
## 19.0.0 — 2026-11-03 — major:hook 条目承运 `args`(command 的 exec 形参数表)与 `onFailure`(command / http:失败按放行还是按 exit 2 阻断)· 词闭集 `HOOK_ON_FAILURE_WORDS` / 型 `HookOnFailure` · 这两个键的坏值自此是坏块(校验收紧)
|
|
12
139
|
|
|
13
140
|
> 档位(按发版纪律):**major** —— 校验收紧、同一份配置解析出不同结果(发版纪律「破坏性变更必 bump major」点名的两类),理由是下面「会变的三处」,尤其第 ②:守卫事件里一个坏值能让整份设置不装。加性的部分:新导出两个(`HOOK_ON_FAILURE_WORDS` 值、`HookOnFailure` 型);hook 条目字段表多两个可选列(`CommandHookEntry` 多可选键 `args` 与 `onFailure`,`HttpHookEntry` 多可选键 `onFailure`;对 `keyof` 写穷举表的消费方在提货时编译红,是提货成本)。
|
package/README.md
CHANGED
|
@@ -47,6 +47,30 @@ therefore shows only `zod`. Node built-ins only (`node:crypto`, `node:fs`).
|
|
|
47
47
|
> zod 3, nested inside every zod-4 host). The move to zod 4 did not change what any schema accepts or produces —
|
|
48
48
|
> the conformance corpus reads byte-identically on both — only the wording of validation errors (see CHANGELOG 11.0.0).
|
|
49
49
|
|
|
50
|
+
## 升级指引:19.0.x → 20.0.0(BREAKING:目录条目 `thinkingLevelMap` 的坏形自此整条目被拒 · hook 条目承运余下四个 CC 键 `rewakeMessage` / `rewakeSummary` / `cloud` / `continueOnBlock`,其中 `rewakeMessage` / `rewakeSummary` / `continueOnBlock` 的坏值自此是坏块 · 线上读口不再替生产方补出缺席的 `a2a` —— `EffectiveWire.a2a` 改可选)
|
|
51
|
+
|
|
52
|
+
三处**不加性**的边(目录条目的 `thinkingLevelMap` 坏形 · hook 三键的坏值 · 线上读口缺席的 `a2a`),外加一个加性的面(`HOOK_ENTRY_FIELDS` 运行期导出;三问与逐条细节见 CHANGELOG 20.0.0):
|
|
53
|
+
|
|
54
|
+
1. **目录条目多一个可选席 `thinkingLevelMap`**(引擎 `Model.thinkingLevelMap` 的声明位):键取词表 `MODEL_THINKING_LEVEL_WORDS`(`off` `minimal` `low` `medium` `high` `xhigh` `max`,型 `ModelThinkingLevel`),值取非空串(供应商在这一档上的取值)或 `null`(这一档不支持);缺席 = 未声明,本包不补 `{}`。
|
|
55
|
+
- **读数变化(不加性)**:此前目录条目上写的 `thinkingLevelMap` 被当作未知键剥掉、条目照装(例:`thinkingLevelMap: 123` 装上、键被剥);自此合形的装上,**坏形(未知键 · 非对象 · 空串值 · 非串非 `null` 值)的条目整条被拒** —— 读口逐条丢并报 `entry-dropped`(同域未被引用的其余条目照常;**被 `roles` / `atMention.only` / `tierGroups` 引用的条目坏形 ⇒ 引用悬空,既有级联律把整个 `models` 域退成缺省**:只发 `domain-defaulted`、目录退空、兄弟条目一并丢,不发 `entry-dropped`;目录里一条好条目都不剩时,含它是唯一一条,走既有的零幸存者律:只发 `domain-defaulted`、`models` 退成空目录),文档面整域抛,写口拒。没写这个键的条目零变化。
|
|
56
|
+
- 动作:升级前检查目录条目(含存下来要续跑的 models 文档、中心名册草稿)里是否已有这个键,先查被 `roles` / `atMention.only` / `tierGroups` 引用的条目(例:默认模型);有就把坏形改成合形(键取词表七词、值取非空串或 `null`),或整个删掉这个键(删掉后读数逐字同 19.0.x)。
|
|
57
|
+
2. **hook 条目的字段表运行期导出**(加性):包根与 `./hooks` 多 `HOOK_ENTRY_FIELDS`(每型 → 字段名 → 取值类,深冻结)与型 `HookEntryFields`。导出本身不改分类器的判法(判法随字段表);它读的是闭包私有的投影,与导出表以型标注咬合。
|
|
58
|
+
3. 对 `ModelEntry` 的 `keyof` 写穷举表的地方编译红(多一个可选键):补一列。
|
|
59
|
+
4. **`hooks` 条目的四个键此前被当作契约外的键剥掉,自此是契约字段**:command 条目的 `rewakeMessage` / `rewakeSummary`(非空串;CC 的 `min(1)`,空白 / 多行 / NUL 都是值)、command / http 条目的 `cloud`(**任意值照带** —— CC 的 `.catch("skip")` 把词表外的任何值读作 `skip` 且文件照装,本包不判、不折、不剥,由读者折;`HOOK_CLOUD_WORDS` = `device` | `skip` 与型 `HookCloud` 是折法的参考;缺席不补缺省)、prompt 条目的 `continueOnBlock`(布尔)。别的条目型上写这些键仍是契约外的键。
|
|
60
|
+
- 合形的值:装上的那一份自此带着它们(此前没有)。`rewakeMessage` / `rewakeSummary` / `cloud` 是 CC 标 `@internal` 的键:本包只判形、不执行,读到它们的一侧如实带着(server 侧的执行面另票处理,本版不规定)。
|
|
61
|
+
- **坏值**(空串或非串的 `rewakeMessage` / `rewakeSummary`、非布尔的 `continueOnBlock`;`cloud` 没有坏值):**非守卫事件里那一条 hook 被剔;守卫事件(`PreToolUse` / `PermissionRequest`)里整份设置不装,同文件的 `permissions.deny` 一起不生效**。此前这些键不论值是什么都被剥掉、整份照装。按 CC 写的文档不受这一处伤(这三个键 CC 自己也拒同样的值;`cloud` 与 CC 同读)。**例外 —— 值里装着守卫事件名记号**(例:`Stop` 事件的条目 `cloud: { "PreToolUse": "guard" }`):19.0.0 与 20.0.0 **都**整份拒(`guard-entry-invalid`,`field` 点名 `cloud`),本版没改这一条。zod 面与 `readSettingsUnit("hooks", …)` 对坏值则整个拒 / 整个答 `unreadable`(此前都受理)。
|
|
62
|
+
- 动作:升级前把设置文件与请求体里(含存下来要续跑的)空串的 `rewakeMessage` / `rewakeSummary` 改成非空串、非布尔的 `continueOnBlock` 改成布尔,或整个删掉这三个键(删掉后读数逐字同 19.0.0)。不确定就跑一遍 `classifyHooksConfig(settingsDoc)`:结局不是 `loaded`,或拒 / 剔项的 `field` 是这三个键之一,就是要改的那一条。
|
|
63
|
+
5. 对 `CommandHookEntry` / `HttpHookEntry` / `PromptHookEntry` 的 `keyof` 写穷举表的地方编译红(多可选键):补列。已是坏块的条目 `field` 点名的字段不变(新列排在每行行尾)。
|
|
64
|
+
6. **`readEffectiveWire` 对载荷上缺席的 `a2a` 不再补 `{ peers: [] }`**:读出形里没有 `a2a` 成员 = 生产方没发这个域(18.0.0 之前的设置契约铸出的中心载荷不带它);在场的空名册 `{ peers: [] }` 原样保真、与缺席分得开。
|
|
65
|
+
按在场性承运的域只有一张表 `WIRE_CARRIED_DOMAINS`(`prompts` / `a2a`,型 `WireCarriedDomain`),在场判据只有一个:载荷的自有键且值不是 `undefined`(嵌入方传的 `prompts: undefined` / `a2a: undefined` 自此读作缺席)。
|
|
66
|
+
- 读不进不变:整域坏形 ⇒ `{ peers: [] }` + `domain-defaulted`(域 `a2a`)—— 消费方的三态 = 缺席 / 在场 / 在场且有该告警。
|
|
67
|
+
- 不变的一侧:`buildEffective` / `FileConfigStore` / `loadLocalConfig` / `emptyEffective` 照旧物化 `a2a`,`EffectiveConfig.a2a` 仍必填(`config.d/a2a.json` 不存在与空名册同读);文件在不在读 `readConfigDFileReadingSync(root, "a2a")`。其余 15 个域的线上读法不变。
|
|
68
|
+
- 动作:直读 `readEffectiveWire(…).a2a.peers` 的地方编译红 —— 先判在场;要旧读法补 `?? { peers: [] }` 一行。线上型本来就把各域写成可选成员的消费方零改动。
|
|
69
|
+
|
|
70
|
+
**迁移**:不配一次性迁移 —— 第 1、4 条的坏形 / 坏值没有可猜的正确值,要人改(各条「动作」);第 6 条没有存量数据要迁(变的是线上读法,不是存储形)。
|
|
71
|
+
|
|
72
|
+
各消费方读哪些键、做什么见 `docs/CONSUMER-INTEGRATION.md`:§18(hook 条目四键)· §19(目录条目 `thinkingLevelMap` 与字段表导出)· §20(线上读口)。
|
|
73
|
+
|
|
50
74
|
## 升级指引:18.0.x → 19.0.0(BREAKING:hook 条目承运 `args` / `onFailure`,这两个键的坏值自此是坏块)
|
|
51
75
|
|
|
52
76
|
一处**不加性**的边(三问与逐条细节见 CHANGELOG 19.0.0):
|
|
@@ -402,7 +426,8 @@ settings 单元读不进的成员**不是缺席**(`loosen` 可丢且要响,`tigh
|
|
|
402
426
|
`promptArtifactFor`); 0.19.0 adds `limits`, the cost/rate-limit publication slot; 11.0.0 retires
|
|
403
427
|
`runtime` — its tombstone is `RETIRED_DOMAINS`, see "One-time migrations" below; 18.0.0 adds `a2a`, the standing outbound
|
|
404
428
|
A2A peer roster (`A2aConfig` / `A2aPeerSpec`, portable)),
|
|
405
|
-
`EffectiveConfig`, `EffectiveWire
|
|
429
|
+
`EffectiveConfig`, `EffectiveWire` (20.0.0: the wire reader never fabricates a domain the producer did not send — `WIRE_CARRIED_DOMAINS`
|
|
430
|
+
(`prompts`, `a2a`) are carried by presence, so `EffectiveWire.a2a` is optional: absent = the producer predates the domain),
|
|
406
431
|
`ENV_NAME`/`K8S_QUANTITY` boundaries, every domain's entry/config type.
|
|
407
432
|
- **Pure config fns** (`config-fns.ts`): `buildEffective` (deterministic — `updatedAt` is a required param),
|
|
408
433
|
`parseDomain`, `emptyEffective` (epoch-seeded), `statusRowsToPrune`, role helpers (`roleAtLeast`,
|
|
@@ -466,8 +491,8 @@ settings 单元读不进的成员**不是缺席**(`loosen` 可丢且要响,`tigh
|
|
|
466
491
|
1.2.0 adds the **trust ordering primitives**: `trustRank(layer)` (v2-design §1 verbatim, `managed 6 > global 5 >
|
|
467
492
|
project 4 > local 3 > session 2 > task 1`) and `isAtLeast(layer, minTrust)` — the ladder every resolver is to
|
|
468
493
|
compare floors against; consumers retire their own rank tables onto it. **3.0.1 correction**: this used to say
|
|
469
|
-
the CLI's `TRUST_RANK` migration was still pending
|
|
470
|
-
consumption batch (
|
|
494
|
+
the CLI's `TRUST_RANK` migration was still pending — it shipped in the CLI's own 1.2.0
|
|
495
|
+
consumption batch (2026-08-31): the CLI's third literal copy of the ladder is deleted
|
|
471
496
|
(`src/sema/settings/keyContracts.ts` self-documents the retirement) and its resolver now really imports
|
|
472
497
|
`isAtLeast` from this package (`src/sema/settings/resolver.ts`). Exporting the primitive DID make it the
|
|
473
498
|
single source, for this consumer.
|
|
@@ -535,7 +560,7 @@ settings 单元读不进的成员**不是缺席**(`loosen` 可丢且要响,`tigh
|
|
|
535
560
|
verbatim; absent claim ⇒ no key, never a placeholder; present but not a non-empty string ⇒ the token is refused. A deleted-and-re-created
|
|
536
561
|
user keeps the name and gets a new incarnation, so `sub` alone names a slot, not a person; `PrincipalIncarnation` is the one schema every
|
|
537
562
|
incarnation field reads).
|
|
538
|
-
- **web-admin credential file + connection env names** (`web-admin-credential.ts`, main barrel;
|
|
563
|
+
- **web-admin credential file + connection env names** (`web-admin-credential.ts`, main barrel; since 6.1.0): the file behind
|
|
539
564
|
`SEMA_WEB_ADMIN_TOKEN_FILE` is one of two KINDS — a bare line (one static token — the same kind of file as today:
|
|
540
565
|
its first line, printable ASCII with no control / non-ASCII characters; user JWT vs worker pull token stays the reader's `looksLikeJwt` call) or a
|
|
541
566
|
`WebAdminCredentialEnvelope` (strict JSON: `kind: "user-session"` = `WEB_ADMIN_CREDENTIAL_ENVELOPE_KIND`, a JWT
|
|
@@ -546,8 +571,7 @@ settings 单元读不进的成员**不是缺席**(`loosen` 可丢且要响,`tigh
|
|
|
546
571
|
`parseWebAdminCredentialFile(text)` is the ONE discrimination law — trimmed text starting with `{` is read ONLY
|
|
547
572
|
as an envelope (a failure is `unreadable`, never a fallback to a bare line); anything else is a bare line,
|
|
548
573
|
and a first line that is not a token is `unreadable` too (never sent as a bearer); empty is `unreadable`. The `reason` names envelope fields / zod issue codes / an unknown-key COUNT, never file
|
|
549
|
-
content. Pure: reading, atomically writing and renewing the file are the consumers' job.
|
|
550
|
-
DECLARATION face here too: `WEB_ADMIN_ENV` — every env name an engine reads to reach web-admin, one table
|
|
574
|
+
content. Pure: reading, atomically writing and renewing the file are the consumers' job. The DECLARATION face is lifted here too (since 6.1.0 as two key names plus the exclusive-or judge; the one table below, the `assertion` pair and the required second argument since 11.0.0): `WEB_ADMIN_ENV` — every env name an engine reads to reach web-admin, one table
|
|
551
575
|
(`url` / `token` / `tokenFile` / `worker` / `liveUrl` / `webUrl` / `dryRun` / `adminToken` / `assertionToken` /
|
|
552
576
|
`assertionTokenFile`, values `SEMA_WEB_ADMIN_*`; one spelling for web-admin rendering worker env, the shell writing its
|
|
553
577
|
local engine's env, and the server reading it) and `judgeWebAdminCredentialDeclaration(env, credential)` — `credential` ∈
|
|
@@ -659,7 +683,7 @@ settings 单元读不进的成员**不是缺席**(`loosen` 可丢且要响,`tigh
|
|
|
659
683
|
sharing ONE body (strict parse + the unknown-key warnings): the DOCUMENT face (`parseDomain` / `parseDomainLoud` — the
|
|
660
684
|
write seat, export, `getDomain`) never salvages and reads exactly as 12.2.x; the VIEW face (`parseDomainSalvaged`, which
|
|
661
685
|
`buildEffective` calls for every domain) salvages per the table, recursing into a surviving entry's own collections
|
|
662
|
-
(coordinates carry the parent prefix, the zero-survivor law holds at every level). **
|
|
686
|
+
(coordinates carry the parent prefix, the zero-survivor law holds at every level — a collection with no survivor is not "partly damaged", so `salvageEntries` returns it untouched; the entry that owns such a nested collection is then judged as a whole and dropped with its siblings kept, and when no entry of the domain survives, the whole-domain tier decides: gate domains such as `workers` throw the original error, catalog domains fall to the domain default with one `domain-defaulted` warning — either way the bad entry never reaches an effective config; good and bad siblings together drop the whole bad entry, never half of a credential-reference set). **6.1.0** (additive) lets each `entry-dropped` carry an
|
|
663
687
|
optional `identity?: { name?, id?, enabled? }` read from the dropped entry's OWN text (`DroppedEntryIdentity`):
|
|
664
688
|
a string `name` / `id` and a boolean `enabled`, own data properties only, each key present only when it
|
|
665
689
|
reads with that exact type and `isDisclosableIdentity` says it may ride out (not guessed, not coerced, not
|
|
@@ -674,7 +698,7 @@ settings 单元读不进的成员**不是缺席**(`loosen` 可丢且要响,`tigh
|
|
|
674
698
|
dropped without re-reading the source document by coordinate (the document it holds may not be the one this
|
|
675
699
|
read saw). `identity` is part of the warning projection, so the conformance gate compares it (corpus
|
|
676
700
|
cases `c40` / `c41` pin the laws JSON can express; the historical normalizer strips it, since older versions cannot
|
|
677
|
-
mint it — `ConformanceNormalizer.warning?`). **
|
|
701
|
+
mint it — `ConformanceNormalizer.warning?`). **10.1.0** (additive) adds `reasonCode` — WHY the entry was
|
|
678
702
|
dropped, as a machine-readable CLOSED word (`DROPPED_ENTRY_REASON_CODES` / `DroppedEntryReasonCode`; also on
|
|
679
703
|
`DroppedEntry` from `salvageEntries`): `entry-schema-invalid` (the entry — array element or Record value — failed its
|
|
680
704
|
own entry schema), `entry-key-invalid` (a Record key failed the key schema), `entry-unreadable` (validation threw while
|
|
@@ -699,7 +723,8 @@ settings 单元读不进的成员**不是缺席**(`loosen` 可丢且要响,`tigh
|
|
|
699
723
|
the output/decision shapes (`SyncHookOutput` / `HookSpecificOutput` / `HookPermissionRequestDecision`),
|
|
700
724
|
the config surface (defined in `hooks-config.ts`, re-exported by `./hooks`): `HOOK_ENTRY_TYPES` (CC 2.1.296's five: command / prompt / agent / http /
|
|
701
725
|
`mcp_tool`; the field table carries `args` — the exec-form argument list — on `command` entries and `onFailure` — `HOOK_ON_FAILURE_WORDS` = `continue` | `block`, type `HookOnFailure` —
|
|
702
|
-
on `command` and `http` entries; carried, not executed: a consumer that reads `block` executes it or refuses it
|
|
726
|
+
on `command` and `http` entries; carried, not executed: a consumer that reads `block` executes it or refuses it; from 20.0.0 the table carries every other key CC's entry schemas carry too — `rewakeMessage` / `rewakeSummary` on `command`,
|
|
727
|
+
`cloud` on `command` and `http` — any value is carried as written, CC reads every value outside `HOOK_CLOUD_WORDS` = `device` | `skip` (type `HookCloud`) as `skip`, and folding is the reader's — `continueOnBlock` on `prompt`; a bad value of the others is a bad piece) and the ONE classifier `classifyHooksConfig(settingsDoc)` — which pieces of a settings document's `hooks` drop
|
|
703
728
|
(`HOOKS_DROPPED_PIECE_CODES`), whether the whole document is rejected because a guard (`PreToolUse` / `PermissionRequest`) may be
|
|
704
729
|
in a bad piece (`HOOKS_REJECTION_CODES`), and what loads; codes + `ConfigPath` coordinates + the wrong key's name (`field`: for a matcher / entry, the contract
|
|
705
730
|
field whose value is wrong, or the member that holds a guard sign; absent only when the piece is not an object), no sentences, self-contained (no zod;
|
|
@@ -735,7 +760,7 @@ settings 单元读不进的成员**不是缺席**(`loosen` 可丢且要响,`tigh
|
|
|
735
760
|
`./node`): the durable self-wake record shape + `parseSchedulerStore` / `serializeSchedulerStore`
|
|
736
761
|
(forward-compatible: unknown fields survive a round-trip, malformed records are dropped one by one).
|
|
737
762
|
- **Fleet contract** (`fleet.ts`, subpath `./fleet`): drain protocol, instance discovery, dispatch policy,
|
|
738
|
-
quota lease, usage report, quota-reset event. **
|
|
763
|
+
quota lease, usage report, quota-reset event. **6.1.0** adds the restart signal, defined ONCE:
|
|
739
764
|
`RestartSignal` (`{ reasons: string[] (≥1, non-empty words), version: number (the web-admin config version that
|
|
740
765
|
differs from boot — finite, judged exactly as `readEffectiveWire` judges a config version), since: number (epoch
|
|
741
766
|
ms, non-negative integer) }` — exactly what the server already ships on /health). The heartbeat carries it as
|
|
@@ -744,7 +769,7 @@ settings 单元读不进的成员**不是缺席**(`loosen` 可丢且要响,`tigh
|
|
|
744
769
|
no `required` boolean inside). A heartbeat re-announces the full row, so one without it means "no longer required".
|
|
745
770
|
Since 11.0.0 it is engine state and is read in ONE place on both exits — inside `EngineSignal` under `engineSignal`
|
|
746
771
|
(`readEngineSignal(body)?.restart`); the flat `restart` both bodies still carry is the pre-11 dialect, read by nothing,
|
|
747
|
-
and the flat reader `readRestartSignal` is gone. **
|
|
772
|
+
and the flat reader `readRestartSignal` is gone. **6.2.0** adds the model-refusals signal the same
|
|
748
773
|
way (one mint point, two exits, ONE reader): the wire face `ModelRefusalsWire` (`{ entries: { <catalog entry name>:
|
|
749
774
|
<code> }, plane?: <code> }` with codes as open strings — name → code is the whole wire, no upstream id / provider /
|
|
750
775
|
field keys / prose) rides the heartbeat as `InstanceAnnouncement.modelRefusals?` and /health (`InstanceHealth` again
|
package/conformance/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
20.0.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"contributor": "contract",
|
|
3
|
-
"claim": "抢救剔掉坏条目后,后续的剥键扫描报的是**压缩后**的下标 —— 谁不回写,谁就让运维照着告警去改原文档的另一条(
|
|
3
|
+
"claim": "抢救剔掉坏条目后,后续的剥键扫描报的是**压缩后**的下标 —— 谁不回写,谁就让运维照着告警去改原文档的另一条(一个消费方的真案;2.1.0 起的坐标律)。三腿必须同样报**原文档**坐标 ['models',1,'typo'],而不是 ['models',0,'typo']。",
|
|
4
4
|
"firstRedOn": [
|
|
5
5
|
"settings-schema@1.0.0",
|
|
6
6
|
"settings-schema@1.10.0",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"contributor": "contract",
|
|
3
|
-
"claim": "同一份文档里同时有字面叫 `models.1.k` 的顶层键与 models[1] 里的未知键 `k` —— 2.1.0 的点号串把两者编码成同一个串(
|
|
3
|
+
"claim": "同一份文档里同时有字面叫 `models.1.k` 的顶层键与 models[1] 里的未知键 `k` —— 2.1.0 的点号串把两者编码成同一个串(登记过的残余二义,3.0.0 的段坐标改铸收掉)。段坐标下两条必须不同,且比对器按段深相等直比、零 stringify。",
|
|
4
4
|
"firstRedOn": []
|
|
5
5
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"contributor": "contract",
|
|
3
|
-
"claim": "`constructor` / `toString` / `hasOwnProperty` / `__proto__` 作未知顶层键(
|
|
3
|
+
"claim": "`constructor` / `toString` / `hasOwnProperty` / `__proto__` 作未知顶层键(3.0.0 修的真 bug):`k in built` 会一路问到 Object.prototype,于是这四个名字被判成「已知域」整条吞掉 —— open-world 的承诺对它们恰好失效,而且无声。wire 腿必须四键都逐字承运且是**自有键**;local-root 腿必须四条 not-a-domain 都报出来。",
|
|
4
4
|
"firstRedOn": [
|
|
5
5
|
"settings-schema@1.0.0",
|
|
6
6
|
"settings-schema@1.10.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"contributor": "contract",
|
|
3
|
-
"claim": "
|
|
3
|
+
"claim": "6.1.0 起的身份律,两道闸压在语料上:被丢条目的 name 是一段脱敏器会改动的串(Bearer 形)⇒ identity 不带 name(同一条告警里坐标会打码,身份不许把原文带出去);enabled 是字符串 \"yes\" ⇒ 不带 enabled;id 是干净字符串 ⇒ 照带。另两条被丢条目压脱敏判据的两道边:`tok=Bearer abc1234`(短令牌,探测器 containsSecretToken 不判阳、脱敏器会改)与一整段 PEM 私钥(头里带空格,脱敏器的定点两遍够不着、靠整串兜底)⇒ 两条的 name 都不带。正控:另一条被丢条目 name / id / enabled:false 三键齐全逐字带出。读腿若放宽任一闸,告警面多出字段即红;秘密清单同时由告警面零命中门看着。",
|
|
4
4
|
"firstRedOn": [],
|
|
5
5
|
"secrets": [
|
|
6
6
|
"FAKE-S712-CORPUS-00000000",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"contributor": "contract",
|
|
3
|
-
"claim": "6.3.0(codex gpt-6-astra 对 v6.1.0 复审 [high] 回填
|
|
3
|
+
"claim": "6.3.0(codex gpt-6-astra 对 v6.1.0 复审 [high] 回填):`key=` + 百分号编码的 PEM 私钥 —— 原文上 PEM header 带 `%20` 看不见、`containsSecretToken` 的行首锚被 `key=` 前缀打败 —— 同时作被丢条目的 `id`(身份面)与 `roles` 的坏键(坐标面 + zod error 的 received / message 面)。身份面走白名单闭形 `DISCLOSABLE_IDENTITY_RE`(`%` / `=` 不在集内)⇒ 只剩 name(四重编码的同一把私钥同样只剩 name —— 身份面靠白名单闭形,与编码深度无关;6.3.0 起自由文本面也在解码界上 fail-closed);坐标 / error 走 `redactSecrets`,整串判套在归一化形(原文 + 探测器同界的解码层)上 ⇒ 坐标段整段扣留、error 不带私钥。另压白名单的两道边:字符集**之内**的密钥形 name(`sk-` 形;`ops@` 后接单点 `eyJ…` 形 —— 探测器判阴、坐标脱敏器会改)⇒ 不带 name,身份的否决判据与坐标脱敏同一只;正控:带 `/` `@` `:` `+` 的真实形上游 id 与合法 name 逐字带出。",
|
|
4
4
|
"firstRedOn": [],
|
|
5
5
|
"secrets": [
|
|
6
6
|
"MC4CAQAwBQYDK2VwBCIEIFAKES621ENCODEDPEMCORPUSBODY00000000000000",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"contributor": "contract",
|
|
3
|
-
"claim": "6.3.0(codex gpt-6-astra r1 F2
|
|
3
|
+
"claim": "6.3.0(codex gpt-6-astra r1 F2,发版方裁并入本版的安全修):未知键告警的坐标是**用户写的键名**,完全可能就是一条粘错位置的凭据 —— 0.19.0 起 `droppedKeys` / `carriedUnknownKeys` 铸 `keys` 从不过脱敏器,`sk-` / `ghp_` 形的键名原样进 `unknown-keys-dropped` / `unknown-keys-carried` 与投影。三处:models 顶层未知键、models 条目内嵌套未知键(strip 域)、limits 承运的未知键(open-world 域)⇒ 坐标段 `[redacted-secret]`,告警面零命中语料秘密;良性拼错键(`typoKey` / `maxToolCallz`)逐字点名(正控);承运进 effective 的值与键照旧逐字(承运是契约,告警才是本包铸的新文本)。",
|
|
4
4
|
"firstRedOn": [],
|
|
5
5
|
"secrets": [
|
|
6
6
|
"sk-live-FAKEC42TOPUNKNOWNKEY0000",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"contributor": "contract",
|
|
3
|
-
"claim": "6.3.0(codex gpt-6-astra r1 F1
|
|
3
|
+
"claim": "6.3.0(codex gpt-6-astra r1 F1 部分修):归一化那一处的两件事压在语料上。① `+` 代空格:扁平无换行的 `-----BEGIN+PRIVATE+KEY-----<base64>-----END+PRIVATE+KEY-----` 全在身份白名单字符集内,6.2.0 起它过身份与 refusal 两谓词 ⇒ 被丢条目的 id 必须不带(`secretScanForms` 把 `+` 读作空格的形交 PEM 头判,身份否决随之);URLSearchParams 形(`+` 代空格 + `%0A`)作 roles 坏键 ⇒ 坐标段整段扣、error 不带私钥。② 解码界上 fail-closed:四层 / 五层百分号编码作 roles 坏键 ⇒ 三层走完仍能再解,整串扣(codex r2 起展示侧的边界读法对末层再解一层,四层那条因此也被 PEM 头判扣下;五层那条只有「没走完」这一位扣得住 —— 变异门的 `unresolved` 靶靠它)。正控:`o3-mini+high` 作 id 逐字带出(`+` 在真实 id 里照旧可披露)。 【10.0.0 订正】探测器改认串中任意位置的私钥头之后,它对每个归一化形再读三层,五层那条也被探测器那一遍扣下,「没走完」这一位不再独自承重于本条;`unresolved` 靶的语料杀手改为 c69。",
|
|
4
4
|
"firstRedOn": [],
|
|
5
5
|
"secrets": [
|
|
6
6
|
"MC4CAQAwBQYDK2VwBCIEIFAKEC43FLATPLUSIDBODY0000000000000000000000",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"contributor": "contract",
|
|
3
|
-
"claim": "6.3.0(codex gpt-6-astra r2 F-r2-1 [high]
|
|
3
|
+
"claim": "6.3.0(codex gpt-6-astra r2 F-r2-1 [high]):转义的 UTF-8 字节粘在密钥形令牌前面(`%C2%A0` = NBSP、`%E2%80%8B` = 零宽空格)—— 逐个 %HH 解码解不开多字节,十六进制位粘上令牌(`A0sk-live-…`),探测器与脱敏器都看不见令牌边界,而任何标准解码器都还原得出。作 roles 坏键(坐标 + zod received / message)与 models 顶层未知键名 ⇒ 坐标段 `[redacted-secret]`,告警面零命中语料秘密。正控:`path%2Fto%E4%B8%AD`(编码的中文、不带秘密)作 roles 坏键照旧逐字进坐标。",
|
|
4
4
|
"firstRedOn": [],
|
|
5
5
|
"secrets": [
|
|
6
6
|
"sk-live-FAKEC44NBSPGLUEDROLEKEY000",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"contributor": "contract",
|
|
3
|
-
"claim": "6.3.0(合并复审 opus 腿 L5 / M1 / M2 / L1
|
|
3
|
+
"claim": "6.3.0(合并复审 opus 腿 L5 / M1 / M2 / L1):给语料里此前没有杀手的几道边补上 —— ① 长度上界 256(身份白名单与出门坐标段同一只常量):256 字的合法模型名被丢时身份照带 name、257 字不带;256 字的良性未知键名逐字点名、257 字整段 `[redacted-secret]`。② 解码层数 3(校验侧探测器):mcp stdio 参数里三重百分号编码的 `sk-` 形令牌照旧被拒、条目被丢(层数少一层就放行进 effective)。③ 身份否决里的 URL userinfo 判定:`postgres://svc:…@db…` 作被丢条目 id 不带;路径里的 `@`(`https://…/@scope/pkg`)照带。④(11.0.0 起 hosts 读侧夹紧臂退役)超长主机名作被丢条目出门、身份过同一道披露判据:`sk-live-…` 形超长主机名读 `[redacted-secret]`,不再是 63 字原文前缀。",
|
|
4
4
|
"firstRedOn": [],
|
|
5
5
|
"secrets": [
|
|
6
6
|
"FAKEC45USERINFOPW",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"contributor": "contract",
|
|
3
3
|
"claim": "超长主机名是一条带 userinfo 的 URL(`https://admin:hunter2@hhh…h.com`,81 字)。改前它被 hosts 读侧夹紧臂按名剔掉,`droppedNames` 的标签原样带着 `admin:hunter2`(特征格)。11.0.0 起夹紧臂退役,这一条作被丢条目出门(entry-dropped),身份否决里的 userinfo 判定不让它的名字出门 —— 那条泄漏路随臂一起没了,`hunter2` 进本条的秘密清单,从特征钉变成护栏。",
|
|
4
4
|
"firstRedOn": [],
|
|
5
|
-
"note": "车PE(2026-09-27)按主会话令加,当时是现状特征钉(刻意不登 `hunter2`);11.0.0 起翻成护栏:持久面一件退役了夹紧臂(这一条改作被丢条目出门)
|
|
5
|
+
"note": "车PE(2026-09-27)按主会话令加,当时是现状特征钉(刻意不登 `hunter2`);11.0.0 起翻成护栏:持久面一件退役了夹紧臂(这一条改作被丢条目出门),同版让 `redactSecrets` 对 URL 候选段问 `carriesUserinfo` —— 身份面问的就是它,带凭据的名不出门。",
|
|
6
6
|
"secrets": [
|
|
7
7
|
"hunter2"
|
|
8
8
|
]
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"contributor": "contract",
|
|
3
|
-
"claim": "
|
|
3
|
+
"claim": "11.0.0 收(原 🚧 特征格翻面):坏 roles 键 `https://admin:hunter2@db.example.com/x` 被逐条丢掉,坐标段与 zod 回显的文本都过 `redactSecrets` —— 11.0.0 起它对 URL 候选段问 `carriesUserinfo`,整段扣成 `[redacted-secret]`(改前坐标 `[\"roles\", \"https://admin:hunter2@db.example.com/x\"]` 原样出门)。第二个坏键是同一形的百分号编码(`https%3A%2F%2Fadmin%3AFAKEC47ENCODEDPW%40db.example.com`):原文上看不见 `@`,只在归一化形上可见 ⇒ 整串扣。 第三个坏键是一句话里夹着同一个带凭据的 URL(`see https://admin:hunter2@…`):只扣那一段,坐标段读 `see [redacted-secret]`(其余照旧可读)。",
|
|
4
4
|
"firstRedOn": [],
|
|
5
|
-
"note": "车PE(2026-09-27)按主会话令加,当时是现状特征钉(刻意不登 `hunter2`);11.0.0
|
|
5
|
+
"note": "车PE(2026-09-27)按主会话令加,当时是现状特征钉(刻意不登 `hunter2`);11.0.0 修后翻成护栏,并加编码形与句中形两键。变异门靶:URL 候选段 userinfo 一遍(本条第三键杀:去掉它,句中形整串扣)、归一化形上的 userinfo 整串扣(本条第二键杀)。",
|
|
6
6
|
"secrets": [
|
|
7
7
|
"hunter2",
|
|
8
8
|
"FAKEC47ENCODEDPW"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"contributor": "contract",
|
|
3
|
-
"claim": "
|
|
3
|
+
"claim": "6.4.0:`models[].headers` 是解析透明键(与 `compat` 同一只变换)⇒ 三读腿**逐字交出、零告警**,不剥、不报 `unknown-keys-dropped`;并且本包**不做形校验** —— 写在 openai 线路上的数组形 `headers`(非规范大小写的名、根本不是头袋)照样逐字过,形与线路归 sema-server 的目录条目判据。任一腿把它剥掉,经生产配置通道写下的附加请求头(开 1M 上下文的 `anthropic-beta`)就到不了 server 目录且零告警;任一腿对它做形校验,就是本包复述了 server 的白名单(两个写者)。第三条不带 `headers` 的条目是负控:不铸键。",
|
|
4
4
|
"firstRedOn": [],
|
|
5
5
|
"note": "车SL(2026-10-01)红先:6.3.0 读腿在本条上三腿同红 —— 两条带 `headers` 的条目都被剥掉该键,`unknown-keys-dropped` 点名 `[\"models\",0,\"headers\"]` / `[\"models\",1,\"headers\"]`(实测读数见车SL 收车档)。firstRedOn 为空:`conformance/historical/` 的阶梯证据(2.1.0 及更早)真跑于本条入库之前,没有本条的读数,那一栏只收 historical 真跑,不手填(c41 同口径)。"
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"contributor": "contract",
|
|
3
|
-
"claim": "
|
|
3
|
+
"claim": "6.4.0:`models[].headers` 里粘了一把密钥形值(`x-api-key: sk-ant-…`)⇒ 与 `compat` 同一只自由形安全判据拒 ⇒ 该条目**逐条丢**(`entry-dropped`,坐标 `[\"models\",0]`)、兄弟条目幸存、告警面零回显那把钥匙。打的是两种读错:① 腿把 `headers` 当未知键剥掉(6.3.0 形)⇒ 条目带着「看起来干净」的形幸存,明文凭据却已经进了持久层且没人拒;② 腿对 `headers` 另起一套判据(或把拒句拼上值)⇒ 告警面带出密钥。",
|
|
4
4
|
"firstRedOn": [],
|
|
5
5
|
"secrets": [
|
|
6
6
|
"sk-ant-api03-FAKES935CORPUS000000000000000000"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"contributor": "contract",
|
|
3
|
-
"claim": "G1:enabled 的 worker 没有 runtime.execution ⇒ 拒(拒因点名 runtime.execution.lanes —— 16.0.0 起车道集)。打「声明不了车道也能过闸、起服落进程内 stub、无手照回 completed
|
|
3
|
+
"claim": "G1:enabled 的 worker 没有 runtime.execution ⇒ 拒(拒因点名 runtime.execution.lanes —— 16.0.0 起车道集)。打「声明不了车道也能过闸、起服落进程内 stub、无手照回 completed」那条静默路。",
|
|
4
4
|
"firstRedOn": []
|
|
5
5
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"contributor": "contract",
|
|
3
|
-
"claim": "11.0.0(
|
|
3
|
+
"claim": "11.0.0(一只秘密扫描器):写侧探测器读展示侧同一组归一化形。mcp stdio 参数三条:① 三重百分号编码的良性串(`%252541`)在解码预算之内 ⇒ 照收(预算少一层就成了「归一化没走完」被拒);② 只在 `+` 读作空格时才是私钥 PEM 头的串 ⇒ 该条被丢(改前写侧只读百分号层,照收进 effective);③ 认证词后接编码空格(`+`)的短凭据 `Basic+…` ⇒ 该条被丢(改前两侧都放行)。告警面零命中语料秘密。",
|
|
4
4
|
"firstRedOn": [],
|
|
5
5
|
"secrets": [
|
|
6
6
|
"FAKEC71PLUSPEMBODY0000",
|
|
7
7
|
"FAKEc71"
|
|
8
8
|
],
|
|
9
|
-
"note": "变异门杀手:`containsSecretToken` 读形改回只读百分号层(②杀)
|
|
9
|
+
"note": "变异门杀手:`containsSecretToken` 读形改回只读百分号层(②杀)、认证词后接编码空格的一臂去掉(③杀)、`SECRET_SCAN_DECODE_LAYERS` 3 → 2(①杀)。firstRedOn 为空:不是 historical 阶梯证据。"
|
|
10
10
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"contributor": "contract",
|
|
3
|
-
"claim": "12.3.0
|
|
3
|
+
"claim": "12.3.0 的 projects 逐条抢救 + 抢救递归:三条登记里第 2 条的第 1 个上下文条目是 Windows 长路径前缀形(12.2.1 起拒)、第 3 条 displayName 201 字。读腿:登记 1、2 在(2 的 contextItems 丢第 1 项,其余照用)、3 不在,两条 entry-dropped 分别点到嵌套那一格与整条登记;第 2 条第 2 项上的拼错键按**原文档**下标报(压缩后它是第 1 项)。严写腿整份拒。打的是三种读法分歧:projects 仍整域拒(12.2.x 读法,整个 scope 的项目停摆)/ 抢救只下到顶层(整条登记 2 连坐丢掉)/ 嵌套坐标报压缩后的下标。",
|
|
4
4
|
"firstRedOn": [],
|
|
5
5
|
"note": "firstRedOn 为空:historical 阶梯(≤ 2.1.0)不覆盖 11.3.0 的 projects 扩形;对 12.2.x 这一条会红(projects 整域拒),那一版不在入库的真跑证据里。"
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"contributor": "test",
|
|
3
|
-
"claim": "告警对象上 `domain` **缺席**(不是 `null`、不是空串)时,三腿必须原样传成缺席。消费方普遍写 `{domain: w.domain, …}` 这种投影(web-admin
|
|
3
|
+
"claim": "告警对象上 `domain` **缺席**(不是 `null`、不是空串)时,三腿必须原样传成缺席。消费方普遍写 `{domain: w.domain, …}` 这种投影(web-admin 实测 `unread-config-file` 无必填 `domain`),谁把缺席折成 `null` 或 `\"\"`,谁就让下游多红一处而自己看不见。",
|
|
4
4
|
"firstRedOn": [],
|
|
5
5
|
"note": "一条输入里同时放两条 `unread-config-file`:`hosts.json`(非便携域 ⇒ **带** `domain`)与 `web-admin-ui.json`(非域名 ⇒ **不带** `domain`)。两种形并排,所以「把缺席一律折成 null」与「把 domain 整个丢掉」两种错法都会红,而不是只挡住其中一种。诚实边界:`unread-config-file` 是 `config.d/` 扫描**独有**的 kind(闭集里唯一 `domain` 可选的那条),所以「缺席传成缺席」这件事**结构上只在 local-root 腿上可观察**;domains / wire 两腿在本条上是零告警的正控(它们不该凭空造出这条告警)。firstRedOn 空是**实跑**出来的:五个历史版本(1.0.0/1.5.0/1.10.0/2.0.0/2.1.0)在本条上全绿 ⇒ 护栏,不是回归凭证。"
|
|
6
6
|
}
|