@sema-agent/settings-schema 27.1.0 → 27.2.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 CHANGED
@@ -8,6 +8,88 @@
8
8
 
9
9
  ## Unreleased
10
10
 
11
+ ## 27.2.0 — 2026-11-11 — minor:条目拒因码闭集 `MODEL_ENTRY_REFUSAL_CODES` 尾插一只泛词 `config.model_route_refused`(服务端把一条目录条目算作可服务之前交引擎的线路判官做了静态判决、引擎拒了)
12
+
13
+ > 档位(按发版纪律):**minor** —— 发版纪律「词表加词 = minor」:公开闭集 `MODEL_ENTRY_REFUSAL_CODES` **尾插**一词(已发两词的次序不动),无导出新增、无导出删除、无校验变化;读数变化只有一处:`readModelRefusals` 对 `entries` 里值是新词 `config.model_route_refused` 的那一条,此前(≤ 27.1.0)把它当集外码丢掉(丢到空 ⇒ `undefined`),自此读出来(集外词照旧丢)。
14
+ > 先例:27.1.0 —— 模型面组拒码闭集 `MODEL_PLANE_REFUSAL_CODES` 尾插一只泛词、同判 minor;14.8.0 —— 同一类闭集尾插两码、同判 minor,档位句把「对拒因码穷举的读者提货时编译红」写作提货成本、不是 major。条目拒因码闭集自 6.2.0 首发后没有加过词,本版按同一条纪律判。
15
+ > 持 `Record<ModelEntryRefusalCode, …>` / 带 `never` 兜底的穷举 `switch` 的消费方提货本版编译红一次(补一臂 / 一行)—— 提货成本,不是 major(发版纪律「新键 / 新导出 / 词表加词 = minor」那一条的原话口径)。
16
+
17
+ ### 病
18
+
19
+ 服务端要在**配置应用期**、把一条目录条目算作可服务之前,就用引擎的线路配对法对它做一次静态判决(条目的端点 × 它带不带凭据):引擎拒了,这条条目就不服务,其余条目照常服务。这件事需要一只稳定的机读词,让运维与控制台在 `GET /health` / 心跳的 `modelRefusals.entries` 上读到「这一条为什么没服务」—— 否则「引擎在调用期必拒」的条目要等第一位用户跑到它才看得见。
20
+ 条目拒因闭集里没有这一档的词:`config.model_no_brain` 说的是这台机器上没有能服务它的腿,`config.model_entry_invalid` 说的是条目自己的形不对;拿它们充数,会把「形对、腿在,但引擎的线路判官不放行」说成别的病。而为线路判官的每一种拒形各加一词,闭集就成了引擎判据的第二份抄本,引擎每多判一形,本包就得跟着发一版。
21
+
22
+ ### 律(一条)
23
+
24
+ **一个事实一只判官**:一条条目的线路能不能放行,只有**引擎的线路判官**判。本包与服务端都不判、不复述它的判据 —— 这只词只说「引擎拒了」,拒的细节是引擎自己的码,由服务端在它自己的读面与日志上原样带出,不在这个词里(`modelRefusals` 的 wire 形只有「名 → 码」,本来也装不下细节)。所以它是**一只泛词**:不随引擎线路判官将来多判什么而加词。
25
+
26
+ ### 词
27
+
28
+ `src/fleet.ts` 的闭集 `MODEL_ENTRY_REFUSAL_CODES` 尾上多一词,三词同序:
29
+
30
+ ```
31
+ config.model_no_brain
32
+ config.model_entry_invalid
33
+ config.model_route_refused ← 本版
34
+ ```
35
+
36
+ - **意思**:服务端在**把一条目录条目算作可服务之前**,用引擎的线路配对法对它做了**静态**判决(条目的端点 × 它带不带凭据),引擎拒了 —— 这一条不服务,其余条目照常服务。拒的细节 = 引擎自己的码,由服务端在它自己的读面与日志上原样带出(今天会出现的一形:带凭据的请求要以明文 `http:` 发往另一台主机;这是服务端侧的读法,本包不验证,也不随它加词)。
37
+ - **泛词**:判的是引擎、细节在引擎自己的码里,所以这只词不随引擎线路判官将来多判什么而加词。
38
+ - **拼法**:照既有两词与 27.1.0 那只泛词的命名律(`config.` 前缀 + 小写下划线;条目级的词以 `model_` 起头;`<范围>_refused` 是 27.1.0 `config.model_catalog_refused` 的同形)。没有换成更长的拼法:`config.model_route_pairing_refused` 之类把判官的机制写进词里,与泛词的立场相反;`config.model_entry_route_refused` 多一段而不添信息 —— 条目级本来就由它住在 `entries` 的值上说明。
39
+ - **与既有两词的分界**(逐词注里同写):`config.model_no_brain` = 这台机器上没有能服务它的腿;`config.model_entry_invalid` = 条目自己的形不对(读腿丢的 / 逐条判出的);本词 = 形对、腿在,但引擎的线路判官不放行。
40
+ - **与组拒码邻词的区别**:`MODEL_PLANE_REFUSAL_CODES` 里的 `config.model_route_endpoint_missing` 说的是候选的某条 openai 兼容线路解不出端点、整个模型面被拒(组级);本词是一条条目被拒、其余照常服务(条目级)。两个集不相交,读方按码住在哪里分(`entries` 的值 / `plane`);同词干是命名巧合,不是同一件事。本词放在 `plane` 上仍是集外。
41
+ - **谁铸**:铸码一方是服务端(本包只定名与含义,不验证服务端是否已铸,也不验证引擎的线路判官怎么判 —— 含义里「今天会出现的一形」是服务端侧的读法,没有对引擎核过)。不另设常量:一个词一个来源,就是闭集数组里那一个字面量。
42
+ - **不改的**:`ModelRefusalsWire`(码仍是开放串)、`InstanceAnnouncement.modelRefusals` 的降级律(形坏降缺席、集外码照过)、`readModelRefusals` 的收窄律(集外码丢、丢到空 ⇒ `undefined`)、组拒码闭集(仍是 27.1.0 的六词)—— 本版只是条目闭集多认一词。
43
+
44
+ ### 导出面
45
+
46
+ - **新增 / 删除导出**:无。包根与 `./fleet` 的导出名集同 v27.1.0(`docs/API-SURFACE.md` 零 diff)。
47
+ - **类型面**:`ModelEntryRefusalCode` 的联合多一个成员,`ModelRefusalsSignal["entries"]` 的值型随之(穷举消费方编译红一次,见三问)。
48
+ - **运行期读数变**:`MODEL_ENTRY_REFUSAL_CODES` / `ModelEntryRefusalCode.options` 多一词;`readModelRefusals` 对 `entries` 里值是该词的那一条由「丢掉」变读出。其余导出的答案逐位不变 —— 下面机器重算表里的 `isReportableRefusalName` 只是可达到闭集(它的探针读 `MODEL_ENTRY_REFUSAL_CODES[0]`,首位仍是 `config.model_no_brain`,答案不变);符合性语料零 diff(`conformance/VERSION` 抬到本版,语料内容不动)。
49
+
50
+ ### 三问
51
+
52
+ - **谁需要**:服务端 —— 要在配置应用期就把「引擎调用期必拒」的条目点名拒掉,并给运维 / 控制台一只稳定的机读词(而不是挪用 `config.model_entry_invalid` 说成「形不对」,也不是把引擎的细节塞进诊断键);读 `/health.modelRefusals` 渲染「这一条为什么没服务」的管理面 / 三端。
53
+ - **谁受伤**:对这只闭集做穷举(`Record<ModelEntryRefusalCode, …>` / 带 `never` 兜底的 `switch`)的消费方 —— 提货本版编译红一次,补一臂 / 一行。没提货本版的读方照旧把新词读成「没说」(诊断键的失败方向:版本错位不会拖垮心跳,存行照存 wire 形,升级后同一行读出新词)。
54
+ - **补偿**:不适用(加性,没有人的既有读数变坏)。读方提货前不渲染这一档拒因,升级包版本即得。
55
+
56
+ ### 各消费方
57
+
58
+ | 消费方 | 读点 | 动作 |
59
+ |---|---|---|
60
+ | server | 把目录条目算作可服务之前交引擎线路判官 · 铸条目拒因码 | 请托的读法:铸码一方是服务端,拟自 7.153.0 起铸这只码(服务端的排期,本包不验证),`/health.modelRefusals.entries.<名>` 与心跳带它;拒的细节(引擎自己的码)在服务端自己的读面与日志上原样带出;不在服务端再判一遍引擎的线路 |
61
+ | web-admin | 渲染模型拒因的表(按码穷举) | 条目拒因多一行 `config.model_route_refused`;`config.model_no_brain` / `config.model_entry_invalid` 两行不动,三行别混;也别和组拒码里的 `config.model_route_endpoint_missing` 混 |
62
+ | cli | 按码分流的地方(若有) | 多一词;未知词的既有兜底读法(读口丢集外码 = 没说)不变 |
63
+ | client-core | 按码分流的地方(若有) | 同上;没有这样的读点则零改动 |
64
+ | sdk | 契约套件 | 零代码改动;语料不变 |
65
+ | test | 黑盒判据 | 见下「黑盒判据」 |
66
+
67
+ ### 黑盒判据(从包的导出面可执行,不引用内部实现)
68
+
69
+ - **G1 闭集**:`MODEL_ENTRY_REFUSAL_CODES` 恰是三词,前两词与 v27.1.0 逐字同序(`"config.model_no_brain"`、`"config.model_entry_invalid"`),第三词(尾)是 `"config.model_route_refused"`;`ModelEntryRefusalCode.options` 与它同序同词;`ModelEntryRefusalCode.safeParse("config.model_route_refused").success` 为真;`MODEL_PLANE_REFUSAL_CODES` 仍恰是 v27.1.0 的六词、与条目闭集不相交。
70
+ - **G2 读口**:`readModelRefusals({ modelRefusals: { entries: { m: "config.model_route_refused" } } })` 等于 `{ entries: { m: "config.model_route_refused" } }`(此前为 `undefined`);同一个词放在 `plane` 上 ⇒ 照旧被丢(`{ entries: {}, plane: "config.model_route_refused" }` 读成 `undefined`);近形 / 大写形 / 组拒码的邻词 `config.model_route_endpoint_missing` 放在 `entries` 的值上 ⇒ 照旧丢;`InstanceAnnouncement.parse` 带这个 `entries` 的公告成功,且 `readModelRefusals(公告)` 与读 `/health` 体同答。
71
+ - **G3 导出面零增删**:包根与 `./fleet` 的导出名集同 v27.1.0;不存在为该词另设的常量;主 barrel 与 `./fleet` 的 `MODEL_ENTRY_REFUSAL_CODES` 是同一只数组。
72
+ - **G4 文书同在**:随包的 `README.md` · `docs/CONSUMER-INTEGRATION.md` · `llms.txt` · `llms-full.txt` 里凡列这只闭集的每一处都含该词(计数写三、新词在尾);`src/fleet.ts` 的闭集逐词注写明它与 `config.model_no_brain` / `config.model_entry_invalid` 的分界、「判的是引擎」、与组拒码邻词 `config.model_route_endpoint_missing` 的区别。
73
+
74
+ ### 钉
75
+
76
+ `test/model-route-refused-27.2.0.test.ts`(闭集逐词同序、恰多一词、序在尾,期望字面是抄来的、不从实现派生;首位仍是 `config.model_no_brain`〔`isReportableRefusalName` 的探针读 `[0]`〕;`z.enum` 同序同词;词形守命名律、不重复、与组拒码闭集不相交,组拒码闭集仍是 27.1.0 的六词;不另设常量、包根与 `./fleet` 同一只数组;类型联合恰三词 ·
77
+ 读口:新词作 `entries` 的值读得出(单独一条 / 与别的条目拒因同在 / 带 `plane` 三种体)、心跳公告与 `/health` 体同答、新词放在 `plane` 上仍是集外、近形 / 大写形 / 组拒码的邻词放在 `entries` 值上照旧丢 ·
78
+ 穷举消费两头:运行期 —— 以闭集型为键的 `Record` 键集恰 = 闭集、带 `never` 兜底的 `switch` 每词有臂;编译期 —— 把真源 `src/fleet.ts` 变异一刀(尾上多一词 / 删掉新词)再重编这只文件,诊断点名那个词,外加未变异对照零诊断 ·
79
+ 文书逐处:`src/fleet.ts` 条目拒因那一条的逐词注(新词、与另两词的分界、与组拒码邻词的区别、判官是引擎、泛词)与 `entries` 句里的新词分句、README 码表与升级指引、消费接入档「模型拒因」一条与 §28 与档头版本索引、`llms.txt` 计数、`llms-full.txt` 清单 · 版本文件四处同版 · 本节节头 / 档位句 / 各节 / 三问 / 各消费方表 / 黑盒判据 G1–G4 / 受影响导出表在场 · 无占位符 · 随包文字不带流程编号 · 已发节(27.1.0 及以下)与 tag `v27.1.0` 上逐字节相同)。
80
+ 随表改的既有钉:`model-refusals-6.2.0`(条目拒因三词与联合型,期望表不再叫「抄自引擎」)· `model-catalog-refused-27.1.0`(条目拒因闭集只钉 27.1.0 时的两词前缀,整张表由本版钉)· `docs-hygiene`(消费接入档点名的服务端版本 7.153.0 的白名单理由补上 §28)。
81
+ 红先:只放这份新钉、源码还是 v27.1.0 的读数时,29 格里 23 格红;其余 6 格对 v27.1.0 本来就成立、同绿(首位仍是 `config.model_no_brain`、词形命名律、不另设常量、类型联合〔只在类型检查期咬〕、新词放在 `plane` 上仍是集外、已发节字节)。
82
+ 变异(47 刀,每刀都红、存活 0;第一遍存活 1 刀 —— 消费接入档「模型拒因」一条删掉三词分界句仍绿,补了那一句的断言后同一刀转红):闭集去掉新词 · 新词挪到首位 · 尾上多一个别的词 · 新词拼错一个字母 · 读口收窄只认前两词 · 另设一只常量导出 · 新词同时进了组拒码闭集 · 逐词注去掉「静态」/「判官是引擎」/「形对腿在」分界/组拒码邻词的区别/「一只泛词」/ 混入票号 · `ModelRefusalsWire` 的 `entries` 句去掉新词分句 · README 码表漏新词 · README 升级指引改标题 / 不指 §28 / 混入裁定号 / 挪到 27.0.x 指引之下 · 消费接入档拒因条目仍写两码 / 去掉三词分界句 · §28 改号 / 少一行消费方 / 去掉组拒码邻词的区别 / 去掉「泛词」· 档头索引指错节 · `llms.txt` 计数仍写 2 / 删本版行 / 头版本退回 · `llms-full.txt` 清单漏新词 / 删本版句 / 头版本退回 · 节头档位词改 major · 档位句去掉 14.8.0 / 27.1.0 先例 · 三问删「补偿」格 · server 行改回现在时事实 · 消费方表删 sdk 行 · 受影响导出表漏 `readModelRefusals` · 已发 27.1.0 节被改一个字 · 黑盒判据缺 G3 · 词一节去掉组拒码邻词的区别 · 节里混入裁定号 · `package.json` / `package-lock.json` / `conformance/VERSION` 各退回 27.1.0 · 「钉」一节留着占位符。
83
+
84
+ **自 v27.1.0 起运行期代码有改动的公开导出(机器重算;上界 —— 可达 ≠ 一定变,不可达 ⇒ 一定不变;本版新增的导出不入表)**
85
+
86
+ ```text
87
+ MODEL_ENTRY_REFUSAL_CODES [., ./fleet]
88
+ ModelEntryRefusalCode [., ./fleet]
89
+ isReportableRefusalName [., ./config-fns]
90
+ readModelRefusals [., ./fleet]
91
+ ```
92
+
11
93
  ## 27.1.0 — 2026-11-11 — minor:模型面组拒码闭集 `MODEL_PLANE_REFUSAL_CODES` 尾插一只泛词 `config.model_catalog_refused`(服务端采纳候选模型目录之前交引擎的目录门过了一遍、引擎拒了)
12
94
 
13
95
  > 档位(按发版纪律):**minor** —— 发版纪律「词表加词 = minor」:公开闭集 `MODEL_PLANE_REFUSAL_CODES` **尾插**一词(已发五词的次序不动),无导出新增、无导出删除、无校验变化;读数变化只有一处:`readModelRefusals` 对 `plane` 是新词 `config.model_catalog_refused` 的体,此前(≤ 27.0.0)把它当集外码收窄成缺席,自此读出来(集外词照旧丢)。
package/README.md CHANGED
@@ -47,6 +47,14 @@ 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
+ ## 升级指引:27.1.x → 27.2.0(minor,加性:条目拒因码闭集 `MODEL_ENTRY_REFUSAL_CODES` 尾插一只泛词 `config.model_route_refused`)
51
+
52
+ 只在闭集尾上多一词,零校验变化、不加不删导出名 —— 不读这只闭集的消费方零动作可升(读数详情、三问、各消费方表见 CHANGELOG 27.2.0 与 `docs/CONSUMER-INTEGRATION.md` §28)。
53
+ 1. **词的意思**:服务端在**把一条目录条目算作可服务之前**,用引擎的线路配对法对它做了**静态**判决(条目的端点 × 它带不带凭据),引擎拒了 —— 这一条不服务,其余条目照常服务。**判的是引擎,本包与服务端都不判**;拒的细节是引擎自己的码,不在这个词里。它是一只**泛词**:不随引擎线路判官将来多判什么而加词。
54
+ 与既有两词的分界:`config.model_no_brain` = 这台机器上没有能服务它的腿;`config.model_entry_invalid` = 条目自己的形不对;本词 = 形对、腿在,但引擎的线路判官不放行。它与组拒码闭集里的 `config.model_route_endpoint_missing`(候选的某条线路解不出端点、整组被拒)同词干但不同集、不同层,别混。
55
+ 2. **读数变化(只有一处)**:`readModelRefusals` 对 `entries` 里值是这只新词的那一条,此前(≤ 27.1.0)当集外码丢掉(丢到空 ⇒ `undefined`),自此读出来。集外词照旧丢;这只词放在 `plane` 上仍是集外。
56
+ 3. **动作**:对 `ModelEntryRefusalCode` / `MODEL_ENTRY_REFUSAL_CODES` 写穷举(`Record<ModelEntryRefusalCode, …>` / 带 `never` 兜底的 `switch`)的地方**编译红一次**(提货成本,不是 major):补一臂 / 一行。没升级本包的读方仍把新词读成「没说」(版本错位不会拖垮心跳)。
57
+
50
58
  ## 升级指引:27.0.x → 27.1.0(minor,加性:模型面组拒码闭集 `MODEL_PLANE_REFUSAL_CODES` 尾插一只泛词 `config.model_catalog_refused`)
51
59
 
52
60
  只在闭集尾上多一词,零校验变化、不加不删导出名 —— 不读这只闭集的消费方零动作可升(读数详情、三问、各消费方表见 CHANGELOG 27.1.0 与 `docs/CONSUMER-INTEGRATION.md` §27)。
@@ -891,7 +899,8 @@ settings 单元读不进的成员**不是缺席**(`loosen` 可丢且要响,`tigh
891
899
  <code> }, plane?: <code> }` with codes as open strings — name → code is the whole wire, no upstream id / provider /
892
900
  field keys / prose) rides the heartbeat as `InstanceAnnouncement.modelRefusals?` and /health (`InstanceHealth` again
893
901
  unchanged); `readModelRefusals(body)` reads either exit and narrows to `ModelRefusalsSignal` — the codes are CLOSED
894
- sets owned here, `MODEL_ENTRY_REFUSAL_CODES` (`config.model_no_brain`, `config.model_entry_invalid`) and
902
+ sets owned here, `MODEL_ENTRY_REFUSAL_CODES` (`config.model_no_brain`, `config.model_entry_invalid`,
903
+ `config.model_route_refused` — 27.2.0; the server handed the entry to the engine's route judge before counting it servable and the engine refused it) and
895
904
  `MODEL_PLANE_REFUSAL_CODES` (`config.default_model_missing`, `config.model_refused_name_minted`,
896
905
  `config.model_route_endpoint_missing`, `config.gateway_fallback_without_primary`, `config.catalog_replaces_env_models`,
897
906
  `config.model_catalog_refused` — 27.1.0; the server handed the candidate to the engine's catalog gate before adopting it and the engine refused it), and a code this package version
@@ -1 +1 @@
1
- 27.1.0
1
+ 27.2.0
package/dist/fleet.d.ts CHANGED
@@ -153,9 +153,22 @@ export type RestartSignal = z.infer<typeof RestartSignal>;
153
153
  * not equality, and stays green.
154
154
  *
155
155
  * - {@link MODEL_ENTRY_REFUSAL_CODES} — why ONE catalog entry is not served on this host (the other entries keep serving):
156
- * `config.model_no_brain` — the entry's provider rides a brain this host has not mounted;
156
+ * `config.model_no_brain` — the entry's provider rides a brain this host has not mounted (no leg on this machine can serve it);
157
157
  * `config.model_entry_invalid` — the entry does not match the `ModelEntry` shape (dropped by the read, or re-judged at
158
- * the engine's own second boundary).
158
+ * the engine's own second boundary);
159
+ * `config.model_route_refused` — before counting the entry servable the server judged its route STATICALLY (the entry's
160
+ * endpoint × whether it carries a credential) with the engine's route-pairing law, and the engine refused the pair (for instance,
161
+ * today: a request carrying a credential would go over cleartext `http:` to another host): this entry is not served, the other
162
+ * entries keep serving. The JUDGE is the engine — neither this package nor the server re-judges — and the detail of the refusal,
163
+ * the engine's own code, is the engine's: it rides outside this word, relayed by the server verbatim on its own read surface and
164
+ * log. This is one generic word: it does not split into more words when the engine's route judge learns to refuse more.
165
+ * Boundary with the other two: `config.model_no_brain` is "no leg on this machine can serve the entry" and
166
+ * `config.model_entry_invalid` is "the entry's own shape is wrong"; this word is "the shape is right and a leg exists, but the
167
+ * engine's route judge does not let the entry through". It is not `config.model_route_endpoint_missing` of
168
+ * {@link MODEL_PLANE_REFUSAL_CODES} either (an openai-compatible route of the CANDIDATE resolves to no endpoint, which refuses the
169
+ * whole model plane): the two sets are disjoint and a reader tells them apart by where the code rides (an `entries` value or `plane`).
170
+ * The word is named HERE first (a contract word: this package names it and the refusing side mints it — the server, relaying the
171
+ * engine's verdict under it; this package does not verify engine behaviour).
159
172
  * - {@link MODEL_PLANE_REFUSAL_CODES} — why the model plane of a candidate catalog was refused AS A GROUP
160
173
  * (the model plane in service keeps serving). The first four words mirror the engine's group-refusal code TABLE as a
161
174
  * whole family — never picked by which invariant is reachable on the hot path today (reachability moves, the table
@@ -185,10 +198,11 @@ export type RestartSignal = z.infer<typeof RestartSignal>;
185
198
  * reads as unset (it falls back down the role chain and the engine says so once) — no reading refuses a model plane for it, so it was never
186
199
  * an engine group refusal. A reader still holding it gets it dropped by {@link readModelRefusals} like any code outside the set.
187
200
  */
188
- export declare const MODEL_ENTRY_REFUSAL_CODES: readonly ["config.model_no_brain", "config.model_entry_invalid"];
201
+ export declare const MODEL_ENTRY_REFUSAL_CODES: readonly ["config.model_no_brain", "config.model_entry_invalid", "config.model_route_refused"];
189
202
  export declare const ModelEntryRefusalCode: z.ZodEnum<{
190
203
  "config.model_no_brain": "config.model_no_brain";
191
204
  "config.model_entry_invalid": "config.model_entry_invalid";
205
+ "config.model_route_refused": "config.model_route_refused";
192
206
  }>;
193
207
  export type ModelEntryRefusalCode = z.infer<typeof ModelEntryRefusalCode>;
194
208
  /** The env-model-table confirmation gate's group-refusal code (see {@link MODEL_PLANE_REFUSAL_CODES}). */
@@ -222,7 +236,9 @@ export type ModelPlaneRefusalCode = z.infer<typeof ModelPlaneRefusalCode>;
222
236
  * - `entries` — catalog entry NAME → its code. The value is ONLY the code, on purpose: the engine's refusal fact also
223
237
  * holds the upstream `id`, the `provider` word, the bad field keys and an operator sentence, and none of them rides
224
238
  * here — an `entry_invalid` row is by definition one nothing validated, so its `id` / `provider` may be whatever the
225
- * broken row held, and the sentence is prose, not contract. "Which name, which reason" is the whole wire. A name that
239
+ * broken row held, and the sentence is prose, not contract. "Which name, which reason" is the whole wire;
240
+ * under `config.model_route_refused` the verdict is the engine's route judge's, relayed by the server — the engine's own code for it
241
+ * stays outside this wire (see {@link MODEL_ENTRY_REFUSAL_CODES}). A name that
226
242
  * cannot ride out is treated as NAMELESS — the engine leaves it out of this map entirely (not keyed, not counted). The
227
243
  * ONE predicate is `isReportableRefusalName(name)` (main barrel): this schema can carry the key (non-empty; `__proto__`
228
244
  * is silently dropped by the record, so it cannot) AND `isDisclosableIdentity(name)` (an identifier in the closed allowlist
package/dist/fleet.js CHANGED
@@ -221,9 +221,22 @@ function readSignalBody(body, pick, schema) {
221
221
  * not equality, and stays green.
222
222
  *
223
223
  * - {@link MODEL_ENTRY_REFUSAL_CODES} — why ONE catalog entry is not served on this host (the other entries keep serving):
224
- * `config.model_no_brain` — the entry's provider rides a brain this host has not mounted;
224
+ * `config.model_no_brain` — the entry's provider rides a brain this host has not mounted (no leg on this machine can serve it);
225
225
  * `config.model_entry_invalid` — the entry does not match the `ModelEntry` shape (dropped by the read, or re-judged at
226
- * the engine's own second boundary).
226
+ * the engine's own second boundary);
227
+ * `config.model_route_refused` — before counting the entry servable the server judged its route STATICALLY (the entry's
228
+ * endpoint × whether it carries a credential) with the engine's route-pairing law, and the engine refused the pair (for instance,
229
+ * today: a request carrying a credential would go over cleartext `http:` to another host): this entry is not served, the other
230
+ * entries keep serving. The JUDGE is the engine — neither this package nor the server re-judges — and the detail of the refusal,
231
+ * the engine's own code, is the engine's: it rides outside this word, relayed by the server verbatim on its own read surface and
232
+ * log. This is one generic word: it does not split into more words when the engine's route judge learns to refuse more.
233
+ * Boundary with the other two: `config.model_no_brain` is "no leg on this machine can serve the entry" and
234
+ * `config.model_entry_invalid` is "the entry's own shape is wrong"; this word is "the shape is right and a leg exists, but the
235
+ * engine's route judge does not let the entry through". It is not `config.model_route_endpoint_missing` of
236
+ * {@link MODEL_PLANE_REFUSAL_CODES} either (an openai-compatible route of the CANDIDATE resolves to no endpoint, which refuses the
237
+ * whole model plane): the two sets are disjoint and a reader tells them apart by where the code rides (an `entries` value or `plane`).
238
+ * The word is named HERE first (a contract word: this package names it and the refusing side mints it — the server, relaying the
239
+ * engine's verdict under it; this package does not verify engine behaviour).
227
240
  * - {@link MODEL_PLANE_REFUSAL_CODES} — why the model plane of a candidate catalog was refused AS A GROUP
228
241
  * (the model plane in service keeps serving). The first four words mirror the engine's group-refusal code TABLE as a
229
242
  * whole family — never picked by which invariant is reachable on the hot path today (reachability moves, the table
@@ -253,7 +266,7 @@ function readSignalBody(body, pick, schema) {
253
266
  * reads as unset (it falls back down the role chain and the engine says so once) — no reading refuses a model plane for it, so it was never
254
267
  * an engine group refusal. A reader still holding it gets it dropped by {@link readModelRefusals} like any code outside the set.
255
268
  */
256
- export const MODEL_ENTRY_REFUSAL_CODES = ["config.model_no_brain", "config.model_entry_invalid"];
269
+ export const MODEL_ENTRY_REFUSAL_CODES = ["config.model_no_brain", "config.model_entry_invalid", "config.model_route_refused"];
257
270
  export const ModelEntryRefusalCode = z.enum(MODEL_ENTRY_REFUSAL_CODES);
258
271
  /** The env-model-table confirmation gate's group-refusal code (see {@link MODEL_PLANE_REFUSAL_CODES}). */
259
272
  export const CATALOG_REPLACES_ENV_MODELS_CODE = "config.catalog_replaces_env_models";
@@ -285,7 +298,9 @@ export const ModelPlaneRefusalCode = z.enum(MODEL_PLANE_REFUSAL_CODES);
285
298
  * - `entries` — catalog entry NAME → its code. The value is ONLY the code, on purpose: the engine's refusal fact also
286
299
  * holds the upstream `id`, the `provider` word, the bad field keys and an operator sentence, and none of them rides
287
300
  * here — an `entry_invalid` row is by definition one nothing validated, so its `id` / `provider` may be whatever the
288
- * broken row held, and the sentence is prose, not contract. "Which name, which reason" is the whole wire. A name that
301
+ * broken row held, and the sentence is prose, not contract. "Which name, which reason" is the whole wire;
302
+ * under `config.model_route_refused` the verdict is the engine's route judge's, relayed by the server — the engine's own code for it
303
+ * stays outside this wire (see {@link MODEL_ENTRY_REFUSAL_CODES}). A name that
289
304
  * cannot ride out is treated as NAMELESS — the engine leaves it out of this map entirely (not keyed, not counted). The
290
305
  * ONE predicate is `isReportableRefusalName(name)` (main barrel): this schema can carry the key (non-empty; `__proto__`
291
306
  * is silently dropped by the record, so it cannot) AND `isDisclosableIdentity(name)` (an identifier in the closed allowlist
@@ -23,6 +23,7 @@
23
23
  > **26.0.0** 的 `PermissionDenied` 属主改判 engine(锁步次序)、`models[].headers` 容器必须是对象、一致性门账本的 `kind: "posture"`、墓碑表的 `STREAM_APPROVAL_ENABLED` 在 §25。
24
24
  > **27.0.0** 的目录条目 `ModelEntry.fallbacks`(引擎每模型回落链的声明位,只判形、坏形整条拒)与墓碑表的 `MODEL_DEGRADE_ON`(`replaced`)/ `MODEL_DEGRADE_REACTIVE`(`removed`)在 §26。
25
25
  > **27.1.0** 的模型面组拒码闭集尾插一只泛词 `config.model_catalog_refused`(服务端采纳候选目录之前交引擎目录门、引擎拒了;加性,持穷举表的消费方编译红一次)在 §27。
26
+ > **27.2.0** 的条目拒因码闭集尾插一只泛词 `config.model_route_refused`(服务端把一条目录条目算作可服务之前交引擎的线路判官、引擎拒了;加性,持穷举表的消费方编译红一次)在 §28。
26
27
 
27
28
  ---
28
29
 
@@ -264,7 +265,7 @@ server 直接拒启,不是静默降级。上一代 `SEMA_REGISTRY_*` 八名(`URL
264
265
  同一只读口**:`readModelRefusals(body)`,`body` 传 `/health` 体或已 parse 的公告都行(它只读 `modelRefusals` 键);别直接
265
266
  读公告上的字段 —— 字段是 wire 形 `ModelRefusalsWire`(码是开放串),读口才按本包闭集收窄成 `ModelRefusalsSignal`。
266
267
  形 = `{ entries: { <条目名>: <码> }, plane?: <组拒码> }`,**名 → 码就是全部**:不带上游 id / provider / 坏字段 / 拒因句
267
- (那些留在引擎日志里)。码是本包的**闭集**(`MODEL_ENTRY_REFUSAL_CODES` 两码 / `MODEL_PLANE_REFUSAL_CODES` 六码,各有
268
+ (那些留在引擎日志里)。码是本包的**闭集**(`MODEL_ENTRY_REFUSAL_CODES` 三码 / `MODEL_PLANE_REFUSAL_CODES` 六码,各有
268
269
  `z.enum` 与型)—— 渲染按码穷举 `switch`,别手抄词表。**集外码 = 没说**:本包版本不认识的码,读口把那一条(或 `plane`)
269
270
  丢掉,丢到空就回 `undefined`;心跳照收、存行照存 wire 形(web-admin 升级本包后同一行读出新码)—— 版本错位不会拖垮心跳。心跳上
270
271
  `modelRefusals` 形坏(比如空信号)同样只降为缺席,不拒整条心跳。web-admin 若要给形坏留痕,自己对**请求原体**的 `modelRefusals`
@@ -273,6 +274,8 @@ server 直接拒启,不是静默降级。上一代 `SEMA_REGISTRY_*` 八名(`URL
273
274
  选择通道仍按上一代的拒因执行,所以 `entries` 此时是「这份新目录落不了地的逐条原因」,不是「此刻点这些名会被拒」。
274
275
  组拒码里两个词别混:`config.default_model_missing` = 候选里解不出缺省模型(**座位级**);`config.model_catalog_refused`(27.1.0 起)= 服务端采纳候选之前交引擎的目录门过了一遍、
275
276
  引擎拒了(**目录级**;泛词,判的是引擎,拒的细节 = 引擎自己的码与句,不在这个词里),见 §27。
277
+ 条目拒因三个词别混:`config.model_no_brain` = 这台机器上没有能服务它的腿;`config.model_entry_invalid` = 条目自己的形不对;`config.model_route_refused`(27.2.0 起)= 形对、腿在,
278
+ 但引擎的线路判官不放行(服务端把这条条目算作可服务之前做的静态判决;泛词,判的是引擎,拒的细节 = 引擎自己的码,不在这个词里),见 §28;它与组拒码里的 `config.model_route_endpoint_missing` 同词干、不同集。
276
279
  **读版本,不读缺席**:键缺席本身不说「无拒」—— 更早的引擎从不发此键(缺席 = **不可知**)。读方看公告上已有的 `version`,
277
280
  引擎版本 ≥ 首发此键的那一版(见 CHANGELOG 6.2.0 节)才把缺席读成「没有可报的拒」;`readModelRefusals` 只答键、不替你判版本。
278
281
  别把老引擎渲染成「全部可用」。「可报」的边界:载不住 / 秘密形 / 不是标识符(6.3.0 起:不在 `DISCLOSABLE_IDENTITY_RE` 白名单闭形里,见 §2)的条目名不上报
@@ -919,3 +922,25 @@ fleet 成员对中心公告的可达地址(`FLEET_ADVERTISE_ADDRESS`,中心往
919
922
  | client-core | 按码分流的地方(若有) | 同上;没有这样的读点则零改动 |
920
923
  | sdk | 契约套件 | 零代码改动;语料不变(语料零 diff) |
921
924
  | test | 黑盒判据 | 见 `CHANGELOG.md` 27.1.0「黑盒判据」G1–G4 |
925
+
926
+ ## 28. 条目拒因码的泛词 `config.model_route_refused`(27.2.0 起,minor)—— server、web-admin、cli、client-core、sdk、test 各自的读法
927
+
928
+ **词**:`MODEL_ENTRY_REFUSAL_CODES`(「模型拒因」那一条)尾插 `config.model_route_refused`,闭集由两词变三词,已发两词的次序不动。
929
+ **意思**:服务端在**把一条目录条目算作可服务之前**,用引擎的线路配对法对它做了**静态**判决(条目的端点 × 它带不带凭据),引擎拒了 —— 这一条不服务,其余条目照常服务。
930
+ **判的是引擎,本包与服务端都不判**:拒的细节 = 引擎自己的码,由服务端在它自己的读面与日志上原样带出,不在这个词里,也不在 `/health` / 心跳的 `modelRefusals` 这只形里(那只形只有「名 → 码」)。它是一只**泛词**:引擎的线路判官将来多判什么,这个词不跟着加词。
931
+ **与既有两词的分界**:`config.model_no_brain` = 这台机器上没有能服务它的腿;`config.model_entry_invalid` = 条目自己的形不对(读腿丢的 / 逐条判出的);本词 = 形对、腿在,但引擎的线路判官不放行。
932
+ **与组拒码邻词的区别**:`MODEL_PLANE_REFUSAL_CODES` 里的 `config.model_route_endpoint_missing` 说的是候选的某条 openai 兼容线路解不出端点、整个模型面被拒;本词说的是**一条**条目被拒、其余照常服务。两个集不相交,读方按码住在哪里分(`entries` 的值 / `plane`),本词放在 `plane` 上是集外。
933
+ **读数变**(27.2.0 的唯一一处):`readModelRefusals` 对 `entries` 里值是这只新词的那一条,≤ 27.1.0 把它当集外码丢掉(丢到空 ⇒ `undefined`),自此读出 `{ entries: { <名>: "config.model_route_refused" } }`;集外词照旧丢。无校验变化、无导出增删。
934
+
935
+ **档位依据**:发版纪律「词表加词 = minor」(闭集尾插);先例 27.1.0 —— 模型面组拒码闭集尾插一只泛词、同判 minor;14.8.0 —— 同一类闭集尾插两码、同判 minor,「对拒因码穷举的读者提货时编译红」记作提货成本。
936
+
937
+ **谁受伤**:对 `ModelEntryRefusalCode` / `MODEL_ENTRY_REFUSAL_CODES` 写穷举(`Record<ModelEntryRefusalCode, …>` / 带 `never` 兜底的 `switch`)的读方 —— 提货本版编译红一次,补一臂 / 一行;没提货的读方把新词读成「没说」(诊断键的失败方向,版本错位不会拖垮心跳)。补偿:不适用(加性)。
938
+
939
+ | 消费方 | 读点 | 动作 |
940
+ |---|---|---|
941
+ | server | 把目录条目算作可服务之前交引擎线路判官 · 铸条目拒因码 | 请托的读法:铸码一方是服务端,拟自 7.153.0 起铸这只码(服务端的排期,本包不验证),`/health.modelRefusals.entries.<名>` 与心跳带它;拒的细节(引擎自己的码)在服务端自己的读面与日志上原样带出;不在服务端再判一遍引擎的线路 |
942
+ | web-admin | 渲染模型拒因的表(按码穷举) | 条目拒因多一行 `config.model_route_refused`;`config.model_no_brain` / `config.model_entry_invalid` 两行不动,三行别混;不要和组拒码里的 `config.model_route_endpoint_missing` 混 |
943
+ | cli | 按码分流的地方(若有) | 多一词;未知词的既有兜底读法(读口丢集外码 = 没说)不变 |
944
+ | client-core | 按码分流的地方(若有) | 同上;没有这样的读点则零改动 |
945
+ | sdk | 契约套件 | 零代码改动;语料不变(语料零 diff) |
946
+ | test | 黑盒判据 | 见 `CHANGELOG.md` 27.2.0「黑盒判据」G1–G4 |
package/llms-full.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  <!--
2
2
  llms-full.txt — 自包含全文 · 消费方(使用者)视角 · @sema-agent/settings-schema
3
- 重写日期: 2026-11-11 | 包版本: 27.1.0
3
+ 重写日期: 2026-11-11 | 包版本: 27.2.0
4
4
  生成方式: 无生成脚本——按当前树 src/*.ts 导出面 + package.json + README/CHANGELOG 手写事实版。
5
5
  证据约定: 每条"它怎么工作"的断言附 (文件: 符号) 坐标,刻意不用行号(行号逐版腐烂;符号名由
6
6
  typecheck 与 test/package-surface.test.ts、test/docs-hygiene.test.ts 等常驻门钉住)。无证据推断显式标【推断】。
@@ -433,8 +433,9 @@ entitlement/execution/limits = `none`;`projects` = `salvage`,整域档位仍 `"t
433
433
  (zod)= `{ entries: record(非空名 → 非空串), plane?: 非空串 }` + 空信号 refine(只判形律,码是开放串),读方型
434
434
  `ModelRefusalsSignal` = `{ entries: Record<条目名, ModelEntryRefusalCode>, plane?: ModelPlaneRefusalCode }`;值只码(不带上游
435
435
  id / provider / 坏字段键 / 句子);码闭集真源在本包:`MODEL_ENTRY_REFUSAL_CODES`(`config.model_no_brain` /
436
- `config.model_entry_invalid`)、`MODEL_PLANE_REFUSAL_CODES`(`config.default_model_missing` / `config.model_refused_name_minted` /
436
+ `config.model_entry_invalid` / `config.model_route_refused`)、`MODEL_PLANE_REFUSAL_CODES`(`config.default_model_missing` / `config.model_refused_name_minted` /
437
437
  `config.model_route_endpoint_missing` / `config.gateway_fallback_without_primary` / `config.catalog_replaces_env_models` / `config.model_catalog_refused`;16.0.0 退役 summarize 那一码),各配 z.enum + 型;
438
+ 27.2.0 additive:`MODEL_ENTRY_REFUSAL_CODES` 尾插最后一词 `config.model_route_refused`(泛词:服务端把一条目录条目算作可服务之前用引擎的线路配对法做了静态判决〔条目的端点 × 它带不带凭据〕、引擎拒了 —— 这一条不服务,其余条目照常服务;判的是引擎,本包与服务端都不判,拒的细节是引擎自己的码、在这个词之外;不随引擎线路判官将来多判什么而加词;与 `config.model_no_brain`〔这台机器上没有能服务它的腿〕/ `config.model_entry_invalid`〔条目自己的形不对〕有分界:本词 = 形对、腿在,但线路判官不放行;与组拒码里同词干的 `config.model_route_endpoint_missing`〔候选的某条线路解不出端点、整组被拒〕不同集)——不加不删导出名、零校验变化;`readModelRefusals` 对 `entries` 里值是新词的那一条由「丢掉」变读出,放在 `plane` 上仍是集外,集外词照旧丢;持 `Record<ModelEntryRefusalCode, …>` / 穷举 `switch` 的消费方提货编译红一次(提货成本,不是 major;先例 27.1.0 / 14.8.0);
438
439
  27.1.0 additive:`MODEL_PLANE_REFUSAL_CODES` 尾插最后一词 `config.model_catalog_refused`(泛词:服务端采纳候选模型目录之前交引擎的目录门过了一遍、引擎拒了 —— 目录级,这一组被拒、在服的一代照服务;判的是引擎,本包与服务端都不判,拒的细节是引擎自己的码与句、在这个词之外;不随引擎目录门将来多判什么而加词;与座位级的 `config.default_model_missing`〔候选里解不出缺省模型〕有分界)——不加不删导出名、零校验变化;`readModelRefusals` 对 `plane` 是新词的体由「没说」变读出,集外词照旧丢;持 `Record<ModelPlaneRefusalCode, …>` / 穷举 `switch` 的消费方提货编译红一次(提货成本,不是 major;先例 14.8.0);
439
440
  `readModelRefusals(body)` 一只读口两出口(`/health` 体或已 parse 的公告,与 `readEngineSignal` 同一只私有读口)先判形再按
440
441
  闭集收窄,集外码丢、丢到空 ⇒ `undefined`,只答键不判版本;心跳键 `InstanceAnnouncement.modelRefusals` =
package/llms.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  <!--
2
2
  llms.txt — 消费方(使用者)视角索引 · @sema-agent/settings-schema
3
- 重写日期: 2026-11-11 | 包版本: 27.1.0
3
+ 重写日期: 2026-11-11 | 包版本: 27.2.0
4
4
  生成方式: 无生成脚本——按当前树的 src/*.ts 导出面 + package.json + README/CHANGELOG 手写事实版;
5
5
  每条断言附证据坐标(文件:符号),刻意不用行号(行号随每版腐烂,符号名由 typecheck/test 钉住)。
6
6
  刷新触发: package.json 版号变更(test/docs-hygiene.test.ts D 组钉「包版本:」与 package.json 相等、
@@ -147,7 +147,7 @@ llms.txt — 消费方(使用者)视角索引 · @sema-agent/settings-schema
147
147
  - **fleet 契约**(drain / 实例发现 / 派发策略 / 配额租约 / 用量上报;6.1.0 起重启信号 `RestartSignal` 定义一次,
148
148
  11.0.0 起它是引擎状态,两出口只在 `engineSignal` 里读(`readEngineSignal(body)?.restart`;平铺 `restart` 是方言、不读,平铺读口已删),在场 ⇔ 需要重启;
149
149
  6.2.0 起模型拒因同法定义一次:wire 形 `ModelRefusalsWire` = `{ entries: 名 → 码, plane?: 组拒码 }`(码是开放串),
150
- `readModelRefusals(body)` 一只读口读两出口并按闭集 `MODEL_ENTRY_REFUSAL_CODES`(2)/ `MODEL_PLANE_REFUSAL_CODES`(6)收窄成
150
+ `readModelRefusals(body)` 一只读口读两出口并按闭集 `MODEL_ENTRY_REFUSAL_CODES`(3)/ `MODEL_PLANE_REFUSAL_CODES`(6)收窄成
151
151
  `ModelRefusalsSignal`,集外码 = 没说;心跳 `InstanceAnnouncement.modelRefusals?` 上形坏 / 集外码都不拖垮心跳;缺席读 `version`,
152
152
  老引擎缺席 = 不可知;8.1.0 additive:`RestartSignal.withheld?`、引擎自铸信号的闭形 `EngineSignal` + `readEngineSignal(health)`
153
153
  (`undefined` = 没有这只信号,不是就绪)、服务租约 API 型 `ServingLeaseRequest` / `ServingLeaseResponse`(`granted` / `denied` / `unknown` 三词闭集,
@@ -160,6 +160,7 @@ llms.txt — 消费方(使用者)视角索引 · @sema-agent/settings-schema
160
160
  `isReadyForTraffic` / `isRoutable` 是它们的布尔形;没有信号(旧引擎)= `no-engine-signal`,不可路由;平铺方言(`/health` 的布尔对 + 心跳上与信号同名的平铺键)26.0.0 删,还带它们的体照收、判官不读;
161
161
  8.3.0 additive:env 名常量 `FLEET_SCOPE_ENV`(`"FLEET_SCOPE"`,成员所属租户 scope,渲染器写、引擎读;缺席 = 默认 scope `GLOBAL_SCOPE`;进保留 env 名表);
162
162
  14.7.0 additive:公告地址 env 名常量 `FLEET_ADVERTISE_ADDRESS_ENV`(`"FLEET_ADVERTISE_ADDRESS"`)+「后面要拼路径的基址」座位的禁用成分集 `PATH_BASE_URL_FORBIDDEN_PARTS`(`userinfo` / `query` / `fragment`)+ 判官 `pathBaseUrlFlaws(url)`(= `httpUrlFlaws` 配这一集;判展开之后的值;`webAdminSessionUrl` 也读它);
163
+ 27.2.0 additive:条目拒因码闭集 `MODEL_ENTRY_REFUSAL_CODES` 尾插一只泛词 `config.model_route_refused`(服务端把一条目录条目算作可服务之前交引擎的线路判官做了静态判决〔条目的端点 × 它带不带凭据〕、引擎拒了:这一条不服务,其余照常;判的是引擎,本包与服务端都不判,拒的细节是引擎自己的码;与 `config.model_no_brain`〔没有能服务它的腿〕/ `config.model_entry_invalid`〔条目自己的形不对〕有分界,与组拒码里同词干的 `config.model_route_endpoint_missing` 不同集)—— 不加不删导出名,零校验变化;`readModelRefusals` 对 `entries` 值是新词的那一条由「丢掉」变读出;持穷举表的消费方提货编译红一次;
163
164
  27.1.0 additive:模型面组拒码闭集 `MODEL_PLANE_REFUSAL_CODES` 尾插一只泛词 `config.model_catalog_refused`(服务端采纳候选目录之前交引擎的目录门过了一遍、引擎拒了:目录级;判的是引擎,本包与服务端都不判,拒的细节是引擎自己的码与句;与座位级的 `config.default_model_missing` 有分界)—— 不加不删导出名,零校验变化;`readModelRefusals` 对 `plane` 是新词的体由「没说」变读出;持穷举表的消费方提货编译红一次;
164
165
  27.0.0 BREAKING:目录条目多可选席 `fallbacks`(只判形,坏形整条拒 —— 严写面此前剥键受理的坏形自此整份拒;视图面此前带它的条目一律整条丢〔`entry-unknown-key`〕,自此合形的装上、坏形丢但词改 `entry-schema-invalid`)· 墓碑表 `RETIRED_ENVS` 加 `MODEL_DEGRADE_ON`(replaced → `MODEL_FALLBACK_ON`:门词值语义变了)与 `MODEL_DEGRADE_REACTIVE`(removed:整只 Brain 的反应式降级壳删除,出路 = 在目录条目上声明 `fallbacks`),设了即拒启,拒句点名键不回显值;近预算降级线的三个旋钮仍是活旋钮、不在表里;
165
166
  26.1.0 additive:引擎属主钩子事件的逐员起始契约版本 `ENGINE_OWNED_HOOK_EVENT_SINCE`(`Readonly<Record<EngineOwnedHookEvent, string>>`,冻结;`PermissionDenied` = 26.0.0,其余九员 = 1.0.0;键集恰 = `ENGINE_OWNED_HOOK_EVENTS`,加员漏填 ⇒ 编译红)+ 唯一读者 `engineOwnsHookEventAt(event, contractVersion): boolean`(交引擎 ⟺ 属主表说 engine ∧ 对端契约版本 ≥ 该员起始版本;坏版本串抛 `TypeError`)+ 型 `EngineOwnedHookEvent`;包根与 `./hooks` 各三名,零校验变化;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sema-agent/settings-schema",
3
- "version": "27.1.0",
3
+ "version": "27.2.0",
4
4
  "description": "Sema settings schema — pure config contract (zod domains + effective-config + roster resolution + ref-integrity + remoteExec) shared by sema-web-admin, sema-server, and the TOC desktop/CLI. One source of truth. (Renamed at 1.0.0 from @sema-agent/registry-core — name and docs only, no behavior change; note the range moves 0.19.0 -> 1.0.0, so a dependency must become ^1.0.0. The old names @sema-agent/registry-core <=0.19.0 and @sema-ai/registry-core remain published, frozen, for migration.)",
5
5
  "type": "module",
6
6
  "license": "BUSL-1.1",