@sema-agent/settings-schema 35.2.1 → 37.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.
Files changed (37) hide show
  1. package/CHANGELOG.md +259 -0
  2. package/README.md +10 -1
  3. package/conformance/VERSION +1 -1
  4. package/conformance/cases/c03-literal-dotted-top-key/expected.json +3 -6
  5. package/conformance/cases/c10-record-key-secret-redacted-twice/expected.json +1 -2
  6. package/conformance/cases/c23-mixed-validity-models/expected.json +2 -4
  7. package/conformance/cases/c24-valid-entries-with-unknown-keys/expected.json +1 -2
  8. package/conformance/cases/c25-published-roundtrip-zero-warnings/expected.json +2 -4
  9. package/conformance/cases/c30-version-triple-a-first/expected.json +2 -4
  10. package/conformance/cases/c31-version-triple-b-changed/expected.json +2 -4
  11. package/conformance/cases/c32-version-triple-a-restored/expected.json +2 -4
  12. package/conformance/cases/c40-s712-identity-only-what-reads-out/expected.json +1 -2
  13. package/conformance/cases/c41-s792-encoded-pem-identity/expected.json +1 -2
  14. package/conformance/cases/c42-s792-unknown-key-secret-redacted/expected.json +3 -6
  15. package/conformance/cases/c43-s792-form-and-deep-encoded-pem/expected.json +1 -2
  16. package/conformance/cases/c44-s792-utf8-escape-glued-token/expected.json +1 -2
  17. package/conformance/cases/c45-s792-identity-bounds-and-decode-depth/expected.json +1 -2
  18. package/conformance/cases/c47-s811-roles-key-url-userinfo-withheld/expected.json +1 -2
  19. package/conformance/cases/c48-s935-model-headers-transported/expected.json +2 -4
  20. package/conformance/cases/c49-s935-model-headers-secret-entry-dropped/expected.json +1 -2
  21. package/conformance/cases/c69-deep-encoded-token-past-every-reading/expected.json +1 -2
  22. package/conformance/cases/c70-rewritten-token-in-front-of-encoded-pem-header/expected.json +1 -2
  23. package/conformance/cases/c72-dangling-reference-write-seat-refuses/expected.json +1 -2
  24. package/conformance/cases/c97-roles-own-proto-key-entry-dropped/expected.json +1 -2
  25. package/conformance/cases/cc03-model-compat-unknown-subkey/expected.json +2 -4
  26. package/conformance/cases/cli01-model-name-nfc-vs-nfd/expected.json +1 -2
  27. package/conformance/cases/cli02-control-and-zero-width-chars/expected.json +1 -2
  28. package/conformance/cases/cli05-long-and-prefix-colliding-names/expected.json +6 -12
  29. package/conformance/cases/t01-absent-domain-key-not-null/expected.json +1 -2
  30. package/conformance/cases/t03-prototype-name-key-not-swallowed/expected.json +1 -2
  31. package/dist/retired-envs.js +28 -3
  32. package/dist/types.d.ts +3 -3
  33. package/dist/types.js +6 -2
  34. package/docs/CONSUMER-INTEGRATION.md +29 -0
  35. package/llms-full.txt +3 -1
  36. package/llms.txt +1 -1
  37. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -8,6 +8,265 @@
8
8
 
9
9
  ## Unreleased
10
10
 
11
+ ## 37.0.0 — 2026-11-29 — major:目录条目 `ModelEntry.tier` 去 `.default("standard")` —— 没写 `tier` 的条目解析后没有 `tier`(缺席 = 未声明,读腿不补、写腿不落盘;型面 `ModelTier` → `ModelTier | undefined`;三词闭集与坏值整条拒不变);一致性语料 27 例重录;导出面零增删
12
+
13
+ ### ⚠️ BREAKING(默认值变更):目录条目 `ModelEntry.tier` 去 `.default("standard")` —— 缺席就是未声明
14
+
15
+ > 档位(按发版纪律「默认值变更」属 **major**):同一份配置解析出不同结果 —— 没写 `tier` 的目录条目,解析结果里自此没有 `tier`(此前被铸成 `"standard"`);
16
+ > 型面 `ModelEntry["tier"]` 由 `ModelTier` 变 `ModelTier | undefined`(连带 `ModelsConfig` / `EffectiveConfig` / `EffectiveWire` 里的 `models.models[]`)。三词闭集
17
+ > `cheap` / `standard` / `premium` 与坏值整条拒不变,不加新词,不收 `null`。导出面零增删。
18
+ > 钉:`test/model-tier-absent-37.0.0.test.ts`(新:解析 · 型面 · 七条读腿 · 写腿与盘上字节 · 三词与坏值负控)· `test/atomic-salvage-18.0.0.test.ts`(17.2.0 基线 24 行的视图面读数按本裁定逐行登记,基线文件不动)·
19
+ > `test/model-headers-6.4.0.test.ts`(「不带 headers 的条目零变化」那一格的五只 `stableHash` 金样重录;另加一条断言:给每条条目注回 `tier: "standard"` 复现此前五值 —— 哈希变化只因 `tier` 不再物化)·
20
+ > 一致性语料 27 例重录(差 = 每条没写 `tier` 的条目少一行 `"tier": "standard"`,别无他差)。
21
+
22
+ **规则**:目录条目的 `tier` 缺席就是未声明;搬运保留缺席;按 `tier` 挑模型时,指定了 tier 的查询只认声明了同一个词的条目,不指定 tier 的查询不按它筛。
23
+ 本包是声明层:不替任何读者把「没写」读成某一档;挑模型的语义在引擎的选择器(按 `Model.params.tier` 严格同值),本包不复刻、不改它。
24
+
25
+ **为什么**:同一条没声明档位的模型,从服务端环境变量两槽(`MODEL_ID` / `MODEL_CHEAP_ID`)装出来时没有 tier(不进任何指定档);一经本包任何一条读腿
26
+ (`readEffectiveWire` / `buildEffective` / `parseDomainSalvaged` / `loadLocalConfig` / `FileConfigStore`)或写腿(`validateDomain` / `writeDomainFile` 一族)就成了
27
+ `standard`(进 standard 档,可能挤掉原来的赢家)。终端把环境变量两槽物化进本地 `config.d/models.json`、或上传到管理台时都不写 `tier` —— 这一条模型搬了一次家,
28
+ `{ select: { tier: "standard" } }` 的答案就变了。本包凭空添了一件条目没说过的事实,写腿还把它落进了存储字节。
29
+
30
+ **破坏面一览**:
31
+
32
+ | 件 | 改前 → 改后 | 消费方怎么改 | 已存数据 |
33
+ |---|---|---|---|
34
+ | `ModelEntry.tier` 解析结果(运行期) | 没写 `tier` ⇒ `tier: "standard"` → 没写 `tier` ⇒ 结果里没有 `tier` 键;写了三词之一 ⇒ 原样(改前改后同) | 读解析结果的 `tier` 要处理 `undefined`;往下游投影(如铸成引擎 `Model.params`)时缺席就省键,不写 `tier: undefined`、不自补缺省 | 见下「已存数据」 |
35
+ | `ModelEntry["tier"]` 型面(编译期) | `ModelTier` → `ModelTier \| undefined` | 按必有值读的点 tsc 红一次 = 通知;补缺席分支 | 无 |
36
+ | 写腿落盘(`writeDomainFile` / `writeDomainFileIf` / `writeBundle` 等经本包解析再写的口) | 没写 `tier` 的条目被写成带 `"tier": "standard"` 的字节 → 原样不写 | 无 | 本版之前经这些口写过的文件里已有 `"tier": "standard"`,本版不改写它 |
37
+ | 消费方由本包 schema 生成的 JSON Schema(如管理台的配置 schema 接口;本包不出这份投影) | `models[].tier` 带 `"default": "standard"` → 不再带缺省 | 跟着重出;把它当表单用的,「未声明」是界面占位,不进 JSON | 无 |
38
+
39
+ **已存数据**:显式写着的 `tier` 原样保留(包括本版之前经写腿或管理台写核落进存储的 `"tier": "standard"` —— 本版不撤它,也不声称它是用户自己选的)。
40
+ 存储里没写 `tier` 的条目自此按未声明读。不提供一次性迁移:「没写」在旧读法与新读法下字节相同,本地 `config.d/models.json` 里手写省键的与终端从环境变量物化的也分不出来,
41
+ 任何自动补写都会误改其中一类。需要某条目继续被 `{ select: { tier: "standard" } }` 选中的部署,在那一条上显式写 `"tier": "standard"`,或把那个角色改成按名绑定(`{ model: "<名>" }`)。
42
+
43
+ **升级前自检**(在换入提货本版的服务端之前做;本地 `config.d/models.json` 与中心存储的文档都要查):
44
+ 1. `validateDomain("models", 文档)` **拦不住**这一类 —— 省掉 `tier` 是合法形,两版都受理。要按下面两步人工查。
45
+ 2. 找出所有写成 `{ select: { tier: "standard" } }` 的角色:全局 `models.roles` 与每一份 `rosters[].roles`(两处是同一张角色表,都能写 `{ select }`)。
46
+ 3. 对每一个这样的角色,确认目录里至少有一条**启用、可服务**的条目**显式**写着 `"tier": "standard"`,而且它就是你要它选中的那一条(或那几条)。
47
+ 没有 ⇒ 在要选中的条目上写 `"tier": "standard"`,或把角色改成按名绑定 / 档位绑定。有、但另有没写 `tier` 的条目原本也靠缺省参选 ⇒ 那些条目自此不参选,要它们参选就同样补写。
48
+
49
+ **三问**:
50
+ - **谁需要**:靠环境变量两槽起服、再由终端把这两条模型物化到本地目录或上传到管理台的部署 —— 要求条目的档位声明在搬运中不变,搬家前后同一查询选到同一模型。
51
+ - **谁受伤**:依赖「没写 tier ⇒ standard」的目录(角色写成 `{ select: { tier: "standard" } }`)。没写 `tier` 的条目自此不进 standard 档的候选;后续怎么走归各读者(引擎的角色回落链、服务端的拒法),
52
+ 本包不判。按各仓读码,已知三类结局(详见「各消费方」):
53
+ 1. **响亮拒**:`default` 角色无匹配、又没有档位绑定接住 ⇒ 服务端模型面组拒(热更新留上一代),起服时没有可用的上一份或环境变量缺省则拒起;记忆整理角色的整条回落链(`consolidate` → `summarize`)都选不到模型、
54
+ 又没有 flash 档绑定,且显式开启了整理驱动 ⇒ 服务端拒起。
55
+ 2. **整理静默转关**:同上整理链选不到模型、整理驱动没设 ⇒ 整理阀门派生为关,原先派生为开的部署升级后转关(不再自动整理)。
56
+ 3. **静默改选**:目录里另有显式 standard 条目时,没写 `tier` 的条目静默退出候选,standard 查询可能改选到另一条(价格可能不同);`summarize` / `subagent` / `verifier` / `classifier`
57
+ 等角色无匹配时不拒,沿各自的回落链改选,可能落到主模型。
58
+ 读解析结果、按 `tier` 必有值写代码的消费方 tsc 红一次。
59
+ - **补偿**:升级前照上面「升级前自检」三步查;在要被 standard 档选中的条目上显式写 `"tier": "standard"`,或把角色改成按名绑定 / 档位绑定;读者侧把缺席当「未声明」处理(不补缺省、投影时省键)。
60
+
61
+ **三类单列**:
62
+ - **偏离参照**:无(引擎选择器的严格同值筛是行为参照,本版不改它;本版改的是本包自己此前替读者补的缺省)。
63
+ - **安全放宽**:无(未声明不被当成通配、不被读成任何一档;没有任何条目因本版多进一个指定档;坏值整条拒不变)。
64
+ - **硬破坏**:有 —— 输出型面 `tier` 可缺席;同一份没写 `tier` 的配置解析结果不同。消费方读解析结果时要处理 `undefined`。
65
+
66
+ **滚动次序**(避免新旧版本混跑时一边省键、一边拒收):
67
+ 1. **先**升级会把读口结果与线上原文逐键比对的读者 —— 旧版读口会给省键的条目补出 `tier`,它们会把「读出了线上没有的键」当成坏载荷拒收整份有效配置。管理台仓里的编排器(orchestrator)对 `models` 域做这一比对,
68
+ 它必须**先于**管理台换入本版。
69
+ 2. 服务端换入本版(它的两半:目录条目铸成引擎模型时缺席省键;拒句给出「显式写 standard / 按名绑定」两条出路)。**之前先做「升级前自检」**。
70
+ 走管理台写核的中心存储:与管理台谁先谁后都不出拒收 —— 旧管理台写进存储的是显式 standard,新服务端照显式读;新管理台省键而服务端还旧,服务端照旧补 standard(行为同今天,只是还没保真)。
71
+ 本地 `config.d/models.json` 部署(以及不经本包写腿落库的文档)本来就可以省 `tier`:**单换服务端这一步**就会带出「谁受伤」里的三类结局,没有别的仓先后可以挡。
72
+ 3. 管理台最后换入本版(编辑器加「未声明」、新建与连接向导不再预填 standard、写核不再补值)。**整条写读链都换入本版之后**,缺席才一路保真;混跑期间不另设兼容读法。
73
+
74
+ **各消费方**(服务端、管理台〔含编排器〕、终端、引擎的读点取自本版设计与两轮证伪复核对各仓源码的读码,本包没有在各仓上跑过;client-core / sdk 为推断;动作栏是给各仓的建议,由各仓自己定):
75
+
76
+ | 消费方 | 读点 | 动作 |
77
+ |---|---|---|
78
+ | sema-server(服务端) | 目录条目经 `ModelEntry.safeParse` 判形后铸成引擎 `Model`,当前无条件写 `params.tier`;两只指纹各读一处:模型面热换装指纹读每条启用的**目录条目**(含顶层 `tier`),记忆整理座的重启指纹读**焊死的整理座**那一只引擎 `Model`(含 `params.tier`)及它的回落链条目;一致性语料在服务端的两条生产读腿(本地目录读腿与远端有效配置读腿)上对拍 | 提货本版:铸点缺席省键(不写 `tier: undefined`);撤掉「目录缺 tier ⇒ 补 standard ⇒ standard 选择命中」的承诺 —— 两只终形钉、钉上的块头注与行注、两处源码注释一并改,换成缺席拒 / 显式 standard 落地两格;`default` 角色写 `{ select: { tier: "standard" } }` 而无匹配、又无档位绑定时,模型面以 `config.default_model_missing` 组拒(热更新留上一代,起服无可用缺省则拒起),拒句补「显式写 standard / 按名绑定」;两条生产读腿的一致性对拍随本版重录的金样对齐。指纹的连带:存量快照里任一启用条目由显式 standard 变省键 ⇒ 请求一次模型面热换装;只有整理座选中的那一条(或它的回落链条目)这样变,整理座指纹才变 —— 没有焊死的整理座、或变的是别的条目,它不变;是否为整理座这一变签出一次重启由服务端裁定并写进它的升级说明 |
79
+ | web-admin(管理台) | 写核与发布构建经本包解析(当前补 standard 落库);展示页已按「`tier` 可能不是串」守卫;编辑表单把缺席显示成 standard;两处新建写者显式写 standard;配置 schema 接口导出本包的 JSON Schema;自己的一致性适配器跑发布往返腿(落行 → 发布 → 读发布快照),自持的语料里有一例金样带被补出的 `"tier": "standard"` | 提货本版(在编排器之后):编辑器增「未声明」项、选它即删键;新建与连接向导未选档时省键;配置 schema 接口跟着重出(`tier` 不再带缺省);自持语料里带补出 `tier` 的金样重录、发布往返腿随本版金样对齐;补写核 / 发布 / 个人配置读回的省键钉与显式 standard 正例 |
80
+ | web-admin 仓的编排器(orchestrator) | 直接调 `readEffectiveWire`,把 `models` 域的读出结果与线上原文逐键比对,读出原文没有的键即拒收整份有效配置、冻在上一份 | **先于管理台**提货本版;补一格「省 `tier` 的 `/effective` 往返照收」 |
81
+ | cli(终端) | 环境变量两槽的虚拟池首次物化进本地目录、上传到管理台时都不写 `tier`,已有显式 `tier` 原样搬;目录受理只看解析成没成,不读 `tier` 的值 | 提货本版;零代码动作即保留两条搬运的省键行为;补首次物化 / 再编辑 / 上传三处的保真钉,不新增缺省或来源探测 |
82
+ | sema-core(引擎) | 选择器按 `Model.params.tier` 严格同值,条件在场无匹配返回无候选;角色解析在无候选后走各角色自己的回落链 —— `consolidate` 只回落到 `summarize`、不回落到 `default` | 零代码动作(不依赖本包补 tier)。影响面:整理角色要**整条回落链**都选不到模型才算没有整理座 —— `consolidate` 先按自己的写法选,选不到再走 `summarize`;只有两者都选不到(例如两者都写成 `{ select: { tier: "standard" } }` 而目录里没有显式 standard 条目,或 `consolidate` 这样写而 `summarize` 没写)、又没有 flash 档绑定时才是。`summarize` 另有按名绑定等能选到的写法时,整理照常落到它。没有整理座时:服务端在显式开启整理驱动时拒起(`config.env_invalid`);驱动未设时阀门派生为关,原先派生为开的部署转关。`classifier` 等其余角色按各自回落链改选或回落,不是一律拒跑 |
83
+ | client-core / sdk | 不读 `ModelEntry.tier`(推断) | 零代码动作;随依赖范围提货 |
84
+ | test | 黑盒判据 | 见下 |
85
+
86
+ **黑盒判据**(K99 – K102;装上本版、只调公开导出):
87
+ - K99:`ModelEntry.parse({ name: "m", id: "m-id" })` 的结果没有 `tier` 自有键;同一条目经 `readEffectiveWire({ version: 1, models: { models: [它] } })`、`buildEffective`、`loadLocalConfig`(本地 `config.d/models.json`)读出,条目都没有 `tier` 键,零告警。36.0.0 上同一调用读出 `tier: "standard"`。
88
+ - K100:`writeDomainFile(root, "models", { models: [{ name: "m", id: "m-id" }] })` 之后,盘上 `config.d/models.json` 的那条条目没有 `tier` 键。36.0.0 上写成 `"tier": "standard"`。
89
+ - K101:`tier` 写 `"cheap"` / `"standard"` / `"premium"` 的条目经上述各读腿原样交出该词(`"standard"` 是自有键)。
90
+ - K102:`tier` 写 `"none"` / `null` / `"Standard"` / `""` / `1` / `{}` 的条目:`ModelEntry.safeParse` 不过;`validateDomain` 不过,`writeDomainFile` 抛且不落盘(`config.d/models.json` 不出现)。
91
+ 视图面读腿(`readEffectiveWire` / `buildEffective` / `parseDomainSalvaged` / `loadLocalConfig`)的判据**前提**:坏条目有一条合法的兄弟、坏条目没有被 `roles` / `atMention.only` / `tierGroups` 按名引用、文档其余部分合法 ——
92
+ 此时逐条丢并报 `entry-dropped`(`reasonCode: "entry-schema-invalid"`)、兄弟条目幸存。坏条目被按名引用(丢掉它会留下悬空引用)或没有幸存兄弟时走既有的级联与零幸存者律,与 36.0.0 同:
93
+ `readEffectiveWire` / `buildEffective` 把整个 `models` 域退成缺省、只报 `domain-defaulted`,`parseDomainSalvaged` 抛 —— 这不是本版的回归。
94
+
95
+ **已知限制(本节说明的边界)**:
96
+ - 整理驱动没设时不只是「静默转关」:阀门派生为关、而 `MEMORY_CONSOLIDATION_INTERVAL_SEC` 或 `MEMORY_CONSOLIDATION_SCOPES` 仍配着 ⇒ 服务端以 `config.env_invalid` 拒起。上文「整理静默转关」只对这两项都没配的部署成立。
97
+ - 判「服务端有没有整理座」看的是服务端把环境变量角色底与目录 `roles` 逐键合并之后的角色表:目录里没写 `summarize` 时,环境变量角色底仍给它一个模型(有便宜槽指便宜槽,没有指主模型),整理照常有座。上文「`consolidate` 这样写而 `summarize` 没写」的例子要在合并之后 `summarize` 也选不到模型时才成立。
98
+ - 「没有焊死的整理座、或变的是别的条目,整理座指纹不变」不是绝对:服务端每次刷新都重算整理阀门与当前选座,派生阀门又取决于整理座是不是主模型。别的条目由显式 standard 变省键而让 `default` 改选时,整理座与主模型的关系可能随之变,阀门读数跟着变,整理那一片仍可能报出变化。
99
+ - 「升级前自检」第 3 步不保证穷尽:设了 `rosters[].models` 的名册会把一个 worker 可见的目录收窄成子集,`{ select }` 还可以同时带 `needs` 等别的条件、引擎一并筛 —— 全局目录里有显式 standard 的可服务条目,不保证某个 worker 看得到它、也不保证它满足全部条件。要逐 worker 对比升级前后该角色的候选与赢家;同时带别的条件、`select.tier` 为 `"standard"` 的选择器也要查。
100
+ - K102 的「`config.d/models.json` 不出现」只对还没有这个文件的新根成立;已有这个文件时,坏值拒写、原文件字节不变。
101
+
102
+ **导出面**:新增 0、删除 0;型变了的既有导出 = `ModelEntry` 及含它的型(`ModelsConfig`、`DomainConfig`、`EffectiveConfig`、`EffectiveWire` 等,`tier` 成可选)。
103
+
104
+ **自 v36.0.0 起运行期代码有改动的公开导出(机器重算;上界 —— 可达 ≠ 一定变,不可达 ⇒ 一定不变;本版新增的导出不入表)**
105
+
106
+ ```text
107
+ DOMAINS [., ./types]
108
+ DOMAIN_SCHEMAS [., ./types]
109
+ FileConfigStore [./node]
110
+ ModelEntry [., ./types]
111
+ ModelsConfig [., ./types]
112
+ NON_LOCAL_READ_DOMAINS [./conformance]
113
+ buildEffective [., ./config-fns]
114
+ changedWriteFields [., ./config-fns]
115
+ deriveLocalExpectation [./conformance]
116
+ deriveWireExpectation [./conformance]
117
+ domainFilePath [./node]
118
+ emptyEffective [., ./config-fns]
119
+ foreignKeysOf [./conformance]
120
+ isDomainName [., ./types]
121
+ loadLocalConfig [./node]
122
+ loadRemoteExec [./node]
123
+ migrateConfigDirectory [./node]
124
+ migrateConfigDocuments [./node]
125
+ migrateEffectiveSnapshot [./one-time-migrations]
126
+ parseDomain [., ./config-fns]
127
+ parseDomainLoud [., ./config-fns]
128
+ parseDomainSalvaged [., ./config-fns]
129
+ planEnvModelTableWrite [.]
130
+ readBundle [./node]
131
+ readConfigDFileReadingSync [./node]
132
+ readEffectiveWire [., ./config-fns]
133
+ remoteExecPath [./node]
134
+ resolveLegExpectation [./conformance]
135
+ runConformance [./conformance]
136
+ salvageEntries [., ./config-fns]
137
+ validateDomain [./node]
138
+ writeBundle [./node]
139
+ writeDomainFile [./node]
140
+ writeDomainFileIf [./node]
141
+ writeRemoteExec [./node]
142
+ ```
143
+
144
+ ## 36.0.0 — 2026-11-29 — major:墓碑表 `RETIRED_ENVS` 尾插十八只编排车道退役环境变量名(`LEADER_*` 十六只、`MINIO_BUCKET`、`MODEL_ROUTER_ID`,全部 `removed` 族,表长 44 → 62:部署 env 设着非空值起服即拒,`workers[].env` / `workers[].secretEnv` 双槽写面、视图面、逐行读口与 SS-M12 行终判同拒)· 两条既有墓碑理由改写为过去时(`LEADER_CONFLICT_ROUNDS` 保留 7.83.0、`UNATTENDED_PERMISSION_MODE` 保留 server 7.109.0 与 `run-local` 现役事实并标退 leader 腿);导出面与公开型面零增删
145
+
146
+ > 档位(按发版纪律「破坏性变更必 bump major」—— 校验收紧与墓碑表加行):**major** —— ① 墓碑表新增十八只 `removed` 族退役环境变量名(运行期:部署 env 仍设着其中任一非空值的在提货本版的服务端起服即拒;同一份在 `workers[].env` 写成非空串或在 `workers[].secretEnv` 以其为映射键的 `workers` 文档,在写面、视图面、逐行读口与 SS-M12 行终判中由上一版受理变拒);② 两条既有墓碑行(`LEADER_CONFLICT_ROUNDS`、`UNATTENDED_PERMISSION_MODE`)理由句改写,对旧现役现在时文字逐字比对的消费方测试会红一次。导出面零增删(`docs/API-SURFACE.md` 不动),公开类型面不变。
147
+ > 提货面:major 不会被 `^35` 区间自己拿到,提货是各仓有意抬版本的一步;本包不验证消费方行为。各消费方的读点与严格清键次序见节末「各消费方」与 `docs/CONSUMER-INTEGRATION.md` §66。
148
+ > 一次性迁移:本版没有新登记的,也没有删码(`SS-M12` 窗于 2026-11-29 关,到期删码在窗关之后的下一个大版本另排;本版不删 `SS-M12` / `SS-M13` / `SS-M14`)。
149
+
150
+ **破坏面一览**:本版 BREAKING 来自墓碑表新增十八只 `removed` 族变量名(及连带的 `workers[].env` / `workers[].secretEnv` 双槽拒收),另含两条既有墓碑理由句改写(文案面)。
151
+
152
+ | 件 | 改前 → 改后 | 消费方怎么改 | 已存数据 |
153
+ |---|---|---|---|
154
+ | 墓碑表 `RETIRED_ENVS` 尾插十八只编排车道退役旋钮(运行期,校验收紧) | 表长 44 → 62,尾插 `LEADER_BUDGET_USD` · `LEADER_DURABLE_REMOTES` · `LEADER_ENABLED` · `LEADER_FANOUT_ENABLED` · `LEADER_MEASURE_GATES` · `LEADER_ORACLE_FLAKY_K` · `LEADER_REPAIR_BUDGET_USD` · `LEADER_REPAIR_LOOP` · `LEADER_REPAIR_LOOP_ATTEMPTS` · `LEADER_REPAIR_ROUNDS` · `LEADER_RESOURCE_SUSPEND` · `LEADER_RUN_STALE_MS` · `LEADER_TIMEOUT_MS` · `LEADER_WORKER_BUDGET_USD` · `LEADER_WORKER_MAX_TURNS` · `LEADER_WORKER_SLICE_BUDGET_USD` · `MINIO_BUCKET` · `MODEL_ROUTER_ID` 十八行 `removed` 族墓碑。改前:部署 env 与 `workers[].env` / `workers[].secretEnv` 写这些键均受理 → 改后:部署 env 设任意非空值起服即拒(`config.env_key_retired` + `removed` 通用尾句,不回显值;空串 = 未设不拒);`workers` 文档在 `env` 写成非空串或在 `secretEnv` 以其为映射键(即使值是合法宿主 env-NAME)时,写面(`WorkerSpec.safeParse` / `validateDomain("workers", …)`)与整域读(`parseDomain` / `parseDomainLoud` / `parseDomainSalvaged`)拒,跨域视图(`buildEffective` / `readEffectiveWire`)抛 `DomainReadRefusedError`(`domain === "workers"`),逐行读口 `readWorkersRows` 扣入 `held`,SS-M12 改写得了的旧形行若带其中任一键终判出 `refused` 收据 | **部署清键先于服务端换版**:先从部署 env 与中心 `workers` 文档双槽(`workers[].env` 与 `workers[].secretEnv`)清掉十八只旧键(编排改走 `POST /v1/runs`;工作区快照桶用独立旋钮 `WORKSPACE_SNAPSHOT_BUCKET`),确认渲染方(web-admin)不再注入这十八键,再换入提货 36.0.0 的服务端(按计划是 7.164.0,同步删除这十八只解析与目录行)。升级前用本版跑 `validateDomain("workers", 文档)` 预检存量 `workers` 文档 | 存量配置文档:在 `workers[].env`(非空值)或 `workers[].secretEnv`(映射键)仍写着这十八键之一的 `workers` 文档由受理变拒(远端拉取腿把 `DomainReadRefusedError` 转为整份配置候选拒收),清掉对应键即恢复。`env` 空串与 `secretEnv` 仅以旧名作宿主 env-NAME **值**而不作映射键的文档不受影响。无需一次性迁移 |
155
+ | 两条既有墓碑理由改写(文案面) | `LEADER_CONFLICT_ROUNDS` 保留 `7.83.0` 与 `result.conflict`,由现役现在时(`goes back to the user: leader returns … and the run status is needs_human`)改为过去时并写明编排车道本身现已退役;`UNATTENDED_PERMISSION_MODE` 保留 `server 7.109.0` 与 `run-local` 及其持久续跑仍适用的事实,将 leader 工人与修复腿标为编排车道退役前的历史范围 | 仅影响对这两条拒启句原文做正则 / 逐字比对的测试(例如服务端 `test/retired-env-tombstones.test.ts` 里比对 `goes back to the user` 的正则须同步改为过去时);按拒启码 `config.env_key_retired` 与键名判的消费方零动作 | 无 |
156
+
157
+ ### 编排车道退役:十八只环境变量进墓碑表(`removed` 族)与 `workers[].env` / `workers[].secretEnv` 双槽拒收
158
+
159
+ > 档位(按发版纪律,本块单独算):**major** —— 墓碑表新增十八行 `removed` 族退役环境变量名;对部署 env 与 `workers[].env` / `workers[].secretEnv` 双槽构成校验收紧(同一份配置由受理变拒)。导出面零增删、类型面不变。
160
+ > 钉:`test/retired-env-leader-lane-36.0.0.test.ts`(新:十八行逐字 · 单行 ASCII / 无版本号 / 无内部编号 / 不手抄通用尾句 · `retiredEnvRefusal` 与 `removed` 通用尾句 · `buildRetiredEnvWire()` 投影 · `workers[].env` / `workers[].secretEnv` 双槽的 `WorkerSpec.safeParse` / `validateDomain` / `parseDomainSalvaged` / `buildEffective` / `readEffectiveWire` / `readWorkersRows` / `SS-M12` 拒收与对照 · 余下 `MINIO_*` / `WORKSPACE_SNAPSHOT_BUCKET` 活键负控)· `test/retired-envs-11.0.0.test.ts`(`REMOVED` 加十八名)· `test/retired-envs-previous-generation-11.2.0.test.ts`(表长 44 → 62)。
161
+
162
+ **变了什么**:编排车道整体退役后,以下十八只旋钮今天不再有任何读者,统一作为 `removed` 三元形 `[名, 理由, "removed"]` 尾插在 `RETIRED_ENVS` 的 `SEND_USER_FILE_SANDBOX_PUT_ENDPOINT` 之后(表总长 44 → 62):
163
+ - `LEADER_*` 十六只:`LEADER_BUDGET_USD` · `LEADER_DURABLE_REMOTES` · `LEADER_ENABLED` · `LEADER_FANOUT_ENABLED` · `LEADER_MEASURE_GATES` · `LEADER_ORACLE_FLAKY_K` · `LEADER_REPAIR_BUDGET_USD` · `LEADER_REPAIR_LOOP` · `LEADER_REPAIR_LOOP_ATTEMPTS` · `LEADER_REPAIR_ROUNDS` · `LEADER_RESOURCE_SUSPEND` · `LEADER_RUN_STALE_MS` · `LEADER_TIMEOUT_MS` · `LEADER_WORKER_BUDGET_USD` · `LEADER_WORKER_MAX_TURNS` · `LEADER_WORKER_SLICE_BUDGET_USD` —— 每行理由句说清该旋钮随编排车道退役、今天不再有任何读者,并指路 `POST /v1/runs`。
164
+ - `MODEL_ROUTER_ID` —— leader 路由腿的模型覆写,随编排车道退役、今天不再有任何读者,指路 `POST /v1/runs`。
165
+ - `MINIO_BUCKET` —— leader 补丁自传桶旋钮,随编排车道退役、今天不再有任何读者;理由句写明工作区快照桶是另一用途的独立旋钮 `WORKSPACE_SNAPSHOT_BUCKET`,不是恢复 leader 补丁上传的改名。余下对象存储旋钮(`MINIO_ENDPOINT` / `MINIO_ACCESS_KEY` / `MINIO_SECRET_KEY` / `MINIO_REGION`)与 `WORKSPACE_SNAPSHOT_BUCKET` 仍是活旋钮,不进表。
166
+
167
+ 十八行理由句均不带点分版本号、不带内部编号,也不手抄尾句:`retiredEnvRefusal` 统一拼接 `removed` 族通用尾句(` — remove the env key(s): the capability itself was retired, there is no replacement name and no rename that restores it.`),带拒启码 `config.env_key_retired`,点名键名且从不回显值;空串按未设不拒。
168
+
169
+ **`workers[].env` 与 `workers[].secretEnv` 双槽的变化与迁移**:
170
+ - `src/types.ts` 中 `WorkerSpec.env` 与 `WorkerSpec.secretEnv`(`WorkerSecretEnv`)均调用 `retiredEnvIssue(rec, ctx)` 查同一张 `RETIRED_ENVS` 表(本版不改 `src/types.ts` 源码,规则随表自动收紧)。
171
+ - `workers[].secretEnv` 的值是合法宿主 env-NAME(如 `"HOST_LEADER_SECRET"`),拒绝依据是**映射键**(服务变量名):映射键命中这十八名之一时,写面(`WorkerSpec.safeParse` / `validateDomain("workers", …)`)、单域读(`parseDomain` / `parseDomainLoud` / `parseDomainSalvaged`)、跨域视图(`buildEffective` / `readEffectiveWire`,抛 `DomainReadRefusedError` 且 `domain === "workers"`、`cause` 为指向 `["workers", i, "secretEnv"]` 的 `ZodError`)、逐行读口(`readWorkersRows`,扣进 `held[]`、好行照留)与 SS-M12 改写后的行终判(出 `refused` 收据、原行不动)均拒,且绝不回显宿主 env-NAME 值。
172
+ - 对照:若旧名只作为 `secretEnv` 的宿主 env-NAME **值**(如 `secretEnv: { MY_APP_TOKEN: "LEADER_ENABLED" }`)而非映射键,不拒;`workers[].env` 里值为空串(`""`)按未设不拒。
173
+ - **迁移与滚动次序(避免起服拒或整份配置候选拒收)**:① 先清理中心 `workers` 域文档 `workers[].env` 与 `workers[].secretEnv` 双槽里的这十八只键(升级前用本版 `validateDomain("workers", doc)` 核验);② web-admin 提货本版、重出墓碑快照并确认渲染器不再往任何 worker 环境注入这十八只键;③ 清理部署 env 里的这十八只键;④ 最后上线提货 36.0.0 的服务端(按计划是 7.164.0,同批删掉这十八只解析与目录行)。
174
+
175
+ **三问**:
176
+ - **谁需要**:编排车道退役后仍留着这十八只旧变量的部署运维与中心管理员 —— 没有墓碑,旧配置从此被静默忽略,运维会误以为旋钮仍在生效。
177
+ - **谁受伤**:仍在部署 env、或中心 `workers[].env` / `workers[].secretEnv` 中写着这十八只旧键之一的部署;未先清键就换入提货 36.0.0 的服务端时,会遇到起服墓碑拒(`config.env_key_retired`)或远端有效配置拉取因 `workers` 域 `DomainReadRefusedError` 整份拒收。
178
+ - **补偿 / 出路**:删除部署 env 与 `workers[].env` / `workers[].secretEnv` 中的这十八只旧键(没有可 rename 的替代名):编排工作改走 `POST /v1/runs`;工作区快照桶配置独立旋钮 `WORKSPACE_SNAPSHOT_BUCKET`。
179
+
180
+ ### 两条既有墓碑理由改写为过去时(`LEADER_CONFLICT_ROUNDS` · `UNATTENDED_PERMISSION_MODE`)
181
+
182
+ > 钉:`test/retired-env-leader-lane-36.0.0.test.ts` D 组 · `test/docs-hygiene.test.ts` 外部版本白名单 `7.83.0` / `7.109.0` 说明同步。
183
+
184
+ - **`LEADER_CONFLICT_ROUNDS`**:版本号 `7.83.0` 不动、保留 `result.conflict` 历史事实,改写为过去时并明确编排车道本身现已退役(`the bounded merge-conflict-resolution agent was deleted in 7.83.0; in the former leader orchestration lane, an unmergeable result went back to the user as result.conflict (branch + conflicting files) with run status needs_human, and the leader orchestration lane itself has since been retired`)。
185
+ - **`UNATTENDED_PERMISSION_MODE`**:版本号 `server 7.109.0` 不动,将 leader 工人与其修复腿标为编排车道退役前的历史范围,同时保留 `run-local` 及其持久续跑至今仍按 `permissionMode "default"` + 按问类作答的现役事实(`since server 7.109.0 unattended legs (run-local and its durable resumes; leader workers and their repair legs were also covered before the leader orchestration lane was retired) always run permissionMode "default" with an approver that answers by ask class: a machine answers only "ordinary" asks, and every other class goes to the leg's approver seat (run-local's terminal prompt) or parks / is refused — there is no mode to choose`)。
186
+
187
+ **三问**:
188
+ - **谁需要**:读拒启句与配置手册的运维 —— 编排车道已退役后,墓碑理由不再用现在时承诺一条已不存在的车道。
189
+ - **谁受伤**:对这两条旧理由做精确子串 / 正则断言的测试(服务端 `test/retired-env-tombstones.test.ts` 含 `goes back to the user` 断言)。
190
+ - **补偿 / 出路**:随提货 36.0.0 把对应测试正则同步为过去时(`went back to the user`),`7.83.0` 与 `result.conflict` 断言保持不变。
191
+
192
+ **三类单列**:
193
+ - **偏离参照**:无。
194
+ - **安全放宽**:无(本版只收紧墓碑拒收面与修正两条既有墓碑文案,不放宽任何既有校验、门控或失败关闭缺省)。
195
+ - **硬破坏**:新增十八只设置非空值即拒启(且 `workers[].env` / `workers[].secretEnv` 双槽写面、视图面、逐行读口与 SS-M12 行终判同拒)的 `removed` 族退役环境变量名;两条既有墓碑理由句改字面。
196
+
197
+ **黑盒判据**(K94 – K98;装上本版、只调公开导出):
198
+ - K94:十八只新名(`LEADER_*` 十六只、`MINIO_BUCKET`、`MODEL_ROUTER_ID`)任一设非空值交 `retiredEnvRefusal` ⇒ 返回带 `[config.env_key_retired]`、键名、对应理由句与 `removed` 通用尾句(`there is no replacement name and no rename that restores it.`)的整句,不回显值;空串返回 `undefined`;`MINIO_ENDPOINT` / `MINIO_ACCESS_KEY` / `MINIO_SECRET_KEY` / `MINIO_REGION` / `WORKSPACE_SNAPSHOT_BUCKET` 均返回 `undefined`。
199
+ - K95:`buildRetiredEnvWire()` 总长 62,这十八项各自形如 `{ name, kind: "removed", reason }` 且不含 `replacement` 键,次序与 `RETIRED_ENVS` 一致。
200
+ - K96:同一份 `workers` 文档在 `workers[0].env` 写任一非空旧键或在 `workers[0].secretEnv` 以任一旧键为映射键(值为合法宿主 env-NAME)⇒ `validateDomain("workers", doc)` 答 `{ ok: false }`、`parseDomainSalvaged("workers", doc)` 抛 `ZodError`、`buildEffective` 与 `readEffectiveWire` 抛 `DomainReadRefusedError`(`domain === "workers"`,消息含具体旧键与 `[config.env_key_retired]`,不回显宿主 env-NAME)、`readWorkersRows` 将该行扣入 `held` 而好行照留;35.2.1 对同一份文档均受理。
201
+ - K97:`workers[0].secretEnv` 仅以旧名作宿主 env-NAME **值**(如 `{ MY_APP_TOKEN: "LEADER_ENABLED" }`)或 `workers[0].env` 将旧键设为空串 ⇒ 写面与视图面照常受理。
202
+ - K98:`retiredEnvRefusal({ LEADER_CONFLICT_ROUNDS: "1" })` 含 `deleted in 7.83.0`、`went back to the user`、`result.conflict`、`has since been retired` 且不含 `goes back to the user`;`retiredEnvRefusal({ UNATTENDED_PERMISSION_MODE: "default" })` 含 `since server 7.109.0`、`run-local and its durable resumes` 与 `before the leader orchestration lane was retired`。
203
+
204
+ ### 各消费方
205
+
206
+ 服务端读点基于读码;web-admin、cli、client-core、sdk 读点为推断(本仓未重读其工作目录实码);动作栏写明各仓提货与部署清键次序。
207
+
208
+ | 消费方 | 读点 | 动作 |
209
+ |---|---|---|
210
+ | sema-server(服务端) | 起服 `retiredEnvRefusal` · 目录 `buildRetiredEnvWire()` · 远端有效配置读腿 `readEffectiveWire`(将 `DomainReadRefusedError` 转为 `ConfigCandidateRefusedError`)· `test/retired-env-tombstones.test.ts`(读码) | 按计划在 7.164.0 提货 `@sema-agent/settings-schema` 36.0.0,**同批删掉十八只旋钮的解析、目录行与编排车道残留**,并更新 `test/retired-env-tombstones.test.ts` 对 `LEADER_CONFLICT_ROUNDS` 的过去时正则。**部署次序**:先清部署 env 与中心 `workers` 双槽并停渲十八键,再换本版服务端 |
211
+ | web-admin | 从本包 `RETIRED_ENVS` 生成的墓碑快照 · worker env 渲染器 · `WorkerSpec` / `validateDomain("workers", …)` 写闸与 `readWorkersRows` 读口(推断) | 提货 36.0.0,**重出墓碑快照并停渲十八只旧键**;清理存量 `workers[].env` 与 `workers[].secretEnv` 双槽里的这十八只键(升级前对存量文档跑 `validateDomain("workers", 文档)` 预检),确认不再注入后再放行提货 36.0.0 的服务端 |
212
+ | cli(终端) | 读包根 `RETIRED_ENVS` 投影引擎退役名全表(推断) | 随提货 36.0.0 自动获得十八行新墓碑与两条改写理由;若本地壳有手写清单或对旧理由逐字断言,同步更新 |
213
+ | client-core / sdk | 不直接读墓碑表(推断) | 零代码动作(钉墓碑总数或旧理由字面的测试除外) |
214
+ | test | 黑盒判据与墓碑总长钉 | 见上面 K94 – K98;墓碑表总长 44 → 62 |
215
+
216
+ ### 版本文件
217
+
218
+ `package.json` · `package-lock.json`(两处)· `conformance/VERSION` · `llms.txt` 与 `llms-full.txt` 头里的「包版本」在单独的版本号提交里同步抬到 36.0.0;README 顶部新增「升级指引:35.2.x → 36.0.0」一节,`docs/CONSUMER-INTEGRATION.md` 开头索引与 §66 同步写入。
219
+
220
+ ### 导出面
221
+
222
+ - **新增导出**:无。**删除**:无。**类型面**:不变。`docs/API-SURFACE.md` 不动。
223
+ - **运行期读数**:`src/` 自 v35.2.1 起只改了 `src/retired-envs.ts`(`RETIRED_ENVS` 增十八行 `removed`、两条既有行理由改写,并新增包内私有 `leaderLaneRetiredWhy` 与 `MINIO_BUCKET_WHY`);经 `WorkerSpec` / `WorkersConfig` / `DOMAIN_SCHEMAS` / `DOMAINS` 反向可达的全部既有公开值导出见下表(已按源码依赖图静态推得,须在门机以 `node test/helpers/affected-exports.ts` 核同)。
224
+
225
+ **自 v35.2.1 起运行期代码有改动的公开导出(机器重算;上界 —— 可达 ≠ 一定变,不可达 ⇒ 一定不变;本版新增的导出不入表)**
226
+
227
+ ```text
228
+ DOMAINS [., ./types]
229
+ DOMAIN_SCHEMAS [., ./types]
230
+ FileConfigStore [./node]
231
+ NON_LOCAL_READ_DOMAINS [./conformance]
232
+ RETIRED_ENVS [.]
233
+ WorkerSpec [., ./types]
234
+ WorkersConfig [., ./types]
235
+ buildEffective [., ./config-fns]
236
+ buildRetiredEnvWire [.]
237
+ changedWriteFields [., ./config-fns]
238
+ deriveLocalExpectation [./conformance]
239
+ deriveWireExpectation [./conformance]
240
+ domainFilePath [./node]
241
+ emptyEffective [., ./config-fns]
242
+ foreignKeysOf [./conformance]
243
+ isDomainName [., ./types]
244
+ loadLocalConfig [./node]
245
+ loadRemoteExec [./node]
246
+ migrateConfigDirectory [./node]
247
+ migrateConfigDocuments [./node]
248
+ migrateEffectiveSnapshot [./one-time-migrations]
249
+ migrateStoredDocuments [./one-time-migrations]
250
+ parseDomain [., ./config-fns]
251
+ parseDomainLoud [., ./config-fns]
252
+ parseDomainSalvaged [., ./config-fns]
253
+ planEnvModelTableWrite [.]
254
+ readBundle [./node]
255
+ readConfigDFileReadingSync [./node]
256
+ readEffectiveWire [., ./config-fns]
257
+ readWorkersRows [.]
258
+ remoteExecPath [./node]
259
+ resolveLegExpectation [./conformance]
260
+ retiredEnvRefusal [.]
261
+ runConformance [./conformance]
262
+ salvageEntries [., ./config-fns]
263
+ validateDomain [./node]
264
+ writeBundle [./node]
265
+ writeDomainFile [./node]
266
+ writeDomainFileIf [./node]
267
+ writeRemoteExec [./node]
268
+ ```
269
+
11
270
  ## 35.2.1 — 2026-11-28 — patch:用量聚合 `aggregateUsage` 的修复 —— 上报里的主体名 / 模型名与对象原型成员同名(`__proto__` / `constructor` / `toString` 这类)时落成普通的一行(修前:两形都把计数写到进程内共享的全局对象上,主体名一形随后抛错);导出面与公开型面零变化
12
271
 
13
272
  > 档位(按发版纪律「文案 / 注释 / 测试 / bug 修复 = patch」):**patch** —— 纯修复。`src/` 只改了 `src/fleet.ts` 里 `aggregateUsage` 建行的写法(改调一只新加的包内私有助手,不导出);公开型面零变化(`aggregateUsage` 的签名、`AggregatedPrincipalUsage` 的型不变),没有新导出、没有删除或改名;不加校验,没有一处校验收紧或放宽(`UsageEntry` / `UsageReport` 的 schema 一字不动,收什么名字照旧)。导出面登记表 `docs/API-SURFACE.md` 不重生成;符合性语料零变化,`conformance/VERSION` 只随版号。
package/README.md CHANGED
@@ -53,6 +53,15 @@ only (`node:crypto`, `node:fs`). The machine gate is `test/runtime-dependencies-
53
53
  > zod 3, nested inside every zod-4 host). The move to zod 4 did not change what any schema accepts or produces —
54
54
  > the conformance corpus reads byte-identically on both — only the wording of validation errors (see CHANGELOG 11.0.0).
55
55
 
56
+ ## 升级指引:35.2.x → 36.0.0(BREAKING:墓碑表 `RETIRED_ENVS` 尾插十八只编排车道退役变量名〔`LEADER_*` 十六只、`MINIO_BUCKET`、`MODEL_ROUTER_ID`〕,部署 env 与 `workers[].env` / `workers[].secretEnv` 双槽由受理变拒;文案:两条既有墓碑理由改过去时)
57
+
58
+ 导出面与公开类型面零变化;会让按 35.2.x 写的部署或文档变红的是墓碑表新增的十八只 `removed` 族变量名(表总长 44 → 62),以及两条既有墓碑理由的改字。逐件的三问、各消费方动作与黑盒判据 K94 – K98 见 CHANGELOG 36.0.0 与 `docs/CONSUMER-INTEGRATION.md` §66。
59
+ 1. **十八只编排车道退役变量进墓碑表**(BREAKING,运行期,校验收紧):`LEADER_BUDGET_USD` · `LEADER_DURABLE_REMOTES` · `LEADER_ENABLED` · `LEADER_FANOUT_ENABLED` · `LEADER_MEASURE_GATES` · `LEADER_ORACLE_FLAKY_K` · `LEADER_REPAIR_BUDGET_USD` · `LEADER_REPAIR_LOOP` · `LEADER_REPAIR_LOOP_ATTEMPTS` · `LEADER_REPAIR_ROUNDS` · `LEADER_RESOURCE_SUSPEND` · `LEADER_RUN_STALE_MS` · `LEADER_TIMEOUT_MS` · `LEADER_WORKER_BUDGET_USD` · `LEADER_WORKER_MAX_TURNS` · `LEADER_WORKER_SLICE_BUDGET_USD` · `MINIO_BUCKET` · `MODEL_ROUTER_ID` 全部以 `removed` 族入表。任意非空值起服即拒(`config.env_key_retired` + `removed` 族通用尾句,不回显值;空串 = 未设不拒)。`LEADER_*` 十六只与 `MODEL_ROUTER_ID` 出路为删键并改走 `POST /v1/runs`;`MINIO_BUCKET` 出路为删键,工作区快照桶用独立旋钮 `WORKSPACE_SNAPSHOT_BUCKET`(另一用途,不是恢复 leader 补丁上传的改名);余下 `MINIO_*` 与 `WORKSPACE_SNAPSHOT_BUCKET` 仍是活旋钮,不在表里。
60
+ 2. **`workers[].env` 与 `workers[].secretEnv` 双槽同拒与部署清键次序**(BREAKING,运行期):`workers` 文档里 `env` 写着这十八键任一非空串、或 `secretEnv` 以这十八键之一为**映射键**(即使值是合法宿主 env-NAME)时,写面(`WorkerSpec.safeParse` / `validateDomain("workers", …)`)与单域读拒,跨域视图(`buildEffective` / `readEffectiveWire`)抛 `DomainReadRefusedError`(`domain === "workers"`,服务端远端配置读腿据此整份拒收候选),`readWorkersRows` 将该台扣进 `held`、好行照留,SS-M12 改写得了的旧形行若带其中任一键终判出 `refused` 收据。**部署次序**:先清中心 `workers[].env` / `workers[].secretEnv` 双槽并由 web-admin 重出墓碑快照且确认不再渲染注入这十八键,再清部署 env,最后上线提货本版的服务端(按计划是 7.164.0,同步删除这十八只解析与目录行)。升级前用本版跑 `validateDomain("workers", 文档)` 预检。
61
+ 3. **两条既有墓碑理由改过去时**(文案,版本号不动):`LEADER_CONFLICT_ROUNDS` 保留 `7.83.0` 与 `result.conflict`,改为过去时并写明编排车道现已退役;`UNATTENDED_PERMISSION_MODE` 保留 `server 7.109.0` 与 `run-local` 现役事实,将 leader 腿标为退役前的历史范围。对旧现役现在时字面写正则的测试同步更新。
62
+
63
+ 本版没有新登记的一次性迁移,也没有删码(`SS-M12` 窗于 2026-11-29 关,到期删码在窗关之后的下一个大版本另排)。
64
+
56
65
  ## 升级指引:35.1.x → 35.2.0(minor,加性:连接器断言铸口的 wire 型与 `compareDialTargets` · 单元表第十三行 `autoCompactEnabled` · 四只上限常量 · 取可改的深副本 `mutableCopyOf`;文书:订正 33.0.0 节三格判据的读法 · 凭据平面 `terminal` 的读法写成一条)
57
66
 
58
67
  只加导出与单元表尾插一行:既有导出的读数不变(除单元表多一行)、没有校验收紧或放宽 —— 不穷举单元表的消费方代码零动作可升。逐件的形、三问、各消费方与黑盒判据 K73 – K90 见 CHANGELOG 35.2.0 与 `docs/CONSUMER-INTEGRATION.md` §12.5、§62 – §65。
@@ -1108,7 +1117,7 @@ settings 单元读不进的成员**不是缺席**(`loosen` 可丢且要响,`tigh
1108
1117
  the one refusal sentence (code `RETIRED_ENV_REFUSAL_CODE` = `config.env_key_retired`; names keys, never values;
1109
1118
  pure — pass the env you are judging); `buildRetiredEnvWire()` is the catalog projection (`retired[]`). The engine's
1110
1119
  boot, the shell starting a local engine and web-admin rendering worker env all judge this one table (including
1111
- `SEND_USER_FILE_SANDBOX_PUT_ENDPOINT` as a `removed` row after the sandbox direct-upload lane was removed — delete the variable; no replacement is needed).
1120
+ `SEND_USER_FILE_SANDBOX_PUT_ENDPOINT` from 35.0.0 and the 18 retired leader orchestration lane knobs — 16 `LEADER_*`, `MINIO_BUCKET`, and `MODEL_ROUTER_ID` — added as `removed` rows in 36.0.0, for 62 rows total).
1112
1121
  - **Multi-tenant scopes** (`api/scopes.ts`, subpath `./api/scopes`): the scope contract — the `Scope`
1113
1122
  entity (`{id,name,createdAt}`, reserved default `"global"` always exists), per-scope `ScopeMember`
1114
1123
  rows (`{scopeId,principal,role}` on the existing viewer<editor<publisher<admin ladder), the JWT
@@ -1 +1 @@
1
- 35.2.1
1
+ 37.0.0
@@ -40,8 +40,7 @@
40
40
  "id": "m0-id",
41
41
  "name": "m0",
42
42
  "provider": "openai",
43
- "quotaWeight": 1,
44
- "tier": "standard"
43
+ "quotaWeight": 1
45
44
  }
46
45
  ],
47
46
  "roles": {},
@@ -114,8 +113,7 @@
114
113
  "id": "m0-id",
115
114
  "name": "m0",
116
115
  "provider": "openai",
117
- "quotaWeight": 1,
118
- "tier": "standard"
116
+ "quotaWeight": 1
119
117
  },
120
118
  {
121
119
  "api": "openai-completions",
@@ -124,8 +122,7 @@
124
122
  "id": "m1-id",
125
123
  "name": "m1",
126
124
  "provider": "openai",
127
- "quotaWeight": 1,
128
- "tier": "standard"
125
+ "quotaWeight": 1
129
126
  }
130
127
  ],
131
128
  "roles": {},
@@ -40,8 +40,7 @@
40
40
  "id": "m0-id",
41
41
  "name": "m0",
42
42
  "provider": "openai",
43
- "quotaWeight": 1,
44
- "tier": "standard"
43
+ "quotaWeight": 1
45
44
  }
46
45
  ],
47
46
  "roles": {
@@ -40,8 +40,7 @@
40
40
  "id": "keep-a-id",
41
41
  "name": "keep-a",
42
42
  "provider": "openai",
43
- "quotaWeight": 1,
44
- "tier": "standard"
43
+ "quotaWeight": 1
45
44
  },
46
45
  {
47
46
  "api": "openai-completions",
@@ -50,8 +49,7 @@
50
49
  "id": "keep-b-id",
51
50
  "name": "keep-b",
52
51
  "provider": "openai",
53
- "quotaWeight": 1,
54
- "tier": "standard"
52
+ "quotaWeight": 1
55
53
  }
56
54
  ],
57
55
  "roles": {},
@@ -85,8 +85,7 @@
85
85
  "id": "m0-id",
86
86
  "name": "m0",
87
87
  "provider": "openai",
88
- "quotaWeight": 1,
89
- "tier": "standard"
88
+ "quotaWeight": 1
90
89
  }
91
90
  ],
92
91
  "roles": {},
@@ -40,8 +40,7 @@
40
40
  "id": "m0-id",
41
41
  "name": "m0",
42
42
  "provider": "openai",
43
- "quotaWeight": 1,
44
- "tier": "standard"
43
+ "quotaWeight": 1
45
44
  }
46
45
  ],
47
46
  "roles": {
@@ -95,8 +94,7 @@
95
94
  "id": "m0-id",
96
95
  "name": "m0",
97
96
  "provider": "openai",
98
- "quotaWeight": 1,
99
- "tier": "standard"
97
+ "quotaWeight": 1
100
98
  }
101
99
  ],
102
100
  "roles": {
@@ -40,8 +40,7 @@
40
40
  "id": "v-a-id",
41
41
  "name": "v-a",
42
42
  "provider": "openai",
43
- "quotaWeight": 1,
44
- "tier": "standard"
43
+ "quotaWeight": 1
45
44
  }
46
45
  ],
47
46
  "roles": {},
@@ -91,8 +90,7 @@
91
90
  "id": "v-a-id",
92
91
  "name": "v-a",
93
92
  "provider": "openai",
94
- "quotaWeight": 1,
95
- "tier": "standard"
93
+ "quotaWeight": 1
96
94
  }
97
95
  ],
98
96
  "roles": {},
@@ -40,8 +40,7 @@
40
40
  "id": "v-b-id",
41
41
  "name": "v-b",
42
42
  "provider": "openai",
43
- "quotaWeight": 1,
44
- "tier": "standard"
43
+ "quotaWeight": 1
45
44
  }
46
45
  ],
47
46
  "roles": {},
@@ -91,8 +90,7 @@
91
90
  "id": "v-b-id",
92
91
  "name": "v-b",
93
92
  "provider": "openai",
94
- "quotaWeight": 1,
95
- "tier": "standard"
93
+ "quotaWeight": 1
96
94
  }
97
95
  ],
98
96
  "roles": {},
@@ -40,8 +40,7 @@
40
40
  "id": "v-a-id",
41
41
  "name": "v-a",
42
42
  "provider": "openai",
43
- "quotaWeight": 1,
44
- "tier": "standard"
43
+ "quotaWeight": 1
45
44
  }
46
45
  ],
47
46
  "roles": {},
@@ -91,8 +90,7 @@
91
90
  "id": "v-a-id",
92
91
  "name": "v-a",
93
92
  "provider": "openai",
94
- "quotaWeight": 1,
95
- "tier": "standard"
93
+ "quotaWeight": 1
96
94
  }
97
95
  ],
98
96
  "roles": {},
@@ -40,8 +40,7 @@
40
40
  "id": "keep-id",
41
41
  "name": "keep",
42
42
  "provider": "openai",
43
- "quotaWeight": 1,
44
- "tier": "standard"
43
+ "quotaWeight": 1
45
44
  }
46
45
  ],
47
46
  "roles": {
@@ -40,8 +40,7 @@
40
40
  "id": "keep-id",
41
41
  "name": "keep",
42
42
  "provider": "openai",
43
- "quotaWeight": 1,
44
- "tier": "standard"
43
+ "quotaWeight": 1
45
44
  }
46
45
  ],
47
46
  "roles": {
@@ -43,8 +43,7 @@
43
43
  "id": "sibling-id",
44
44
  "name": "sibling",
45
45
  "provider": "openai",
46
- "quotaWeight": 1,
47
- "tier": "standard"
46
+ "quotaWeight": 1
48
47
  }
49
48
  ],
50
49
  "roles": {},
@@ -133,8 +132,7 @@
133
132
  "id": "keep-id",
134
133
  "name": "keep",
135
134
  "provider": "openai",
136
- "quotaWeight": 1,
137
- "tier": "standard"
135
+ "quotaWeight": 1
138
136
  },
139
137
  {
140
138
  "api": "openai-completions",
@@ -143,8 +141,7 @@
143
141
  "id": "sibling-id",
144
142
  "name": "sibling",
145
143
  "provider": "openai",
146
- "quotaWeight": 1,
147
- "tier": "standard"
144
+ "quotaWeight": 1
148
145
  }
149
146
  ],
150
147
  "roles": {},
@@ -40,8 +40,7 @@
40
40
  "id": "keep-id",
41
41
  "name": "keep",
42
42
  "provider": "openai",
43
- "quotaWeight": 1,
44
- "tier": "standard"
43
+ "quotaWeight": 1
45
44
  }
46
45
  ],
47
46
  "roles": {
@@ -40,8 +40,7 @@
40
40
  "id": "keep-id",
41
41
  "name": "keep",
42
42
  "provider": "openai",
43
- "quotaWeight": 1,
44
- "tier": "standard"
43
+ "quotaWeight": 1
45
44
  }
46
45
  ],
47
46
  "roles": {
@@ -63,8 +63,7 @@
63
63
  "id": "keep-id",
64
64
  "name": "keep",
65
65
  "provider": "openai",
66
- "quotaWeight": 1,
67
- "tier": "standard"
66
+ "quotaWeight": 1
68
67
  }
69
68
  ],
70
69
  "roles": {},
@@ -40,8 +40,7 @@
40
40
  "id": "keep-id",
41
41
  "name": "keep",
42
42
  "provider": "openai",
43
- "quotaWeight": 1,
44
- "tier": "standard"
43
+ "quotaWeight": 1
45
44
  }
46
45
  ],
47
46
  "roles": {
@@ -43,8 +43,7 @@
43
43
  "id": "claude-x",
44
44
  "name": "claude-1m",
45
45
  "provider": "anthropic",
46
- "quotaWeight": 1,
47
- "tier": "standard"
46
+ "quotaWeight": 1
48
47
  },
49
48
  {
50
49
  "api": "openai-completions",
@@ -53,8 +52,7 @@
53
52
  "id": "plain-id",
54
53
  "name": "plain",
55
54
  "provider": "openai",
56
- "quotaWeight": 1,
57
- "tier": "standard"
55
+ "quotaWeight": 1
58
56
  }
59
57
  ],
60
58
  "roles": {},
@@ -40,8 +40,7 @@
40
40
  "id": "gw-id",
41
41
  "name": "gw",
42
42
  "provider": "openai",
43
- "quotaWeight": 1,
44
- "tier": "standard"
43
+ "quotaWeight": 1
45
44
  }
46
45
  ],
47
46
  "roles": {},
@@ -40,8 +40,7 @@
40
40
  "id": "keep-id",
41
41
  "name": "keep",
42
42
  "provider": "openai",
43
- "quotaWeight": 1,
44
- "tier": "standard"
43
+ "quotaWeight": 1
45
44
  }
46
45
  ],
47
46
  "roles": {
@@ -40,8 +40,7 @@
40
40
  "id": "keep-id",
41
41
  "name": "keep",
42
42
  "provider": "openai",
43
- "quotaWeight": 1,
44
- "tier": "standard"
43
+ "quotaWeight": 1
45
44
  }
46
45
  ],
47
46
  "roles": {
@@ -40,8 +40,7 @@
40
40
  "id": "m1-id",
41
41
  "name": "m1",
42
42
  "provider": "openai",
43
- "quotaWeight": 1,
44
- "tier": "standard"
43
+ "quotaWeight": 1
45
44
  }
46
45
  ],
47
46
  "roles": {},
@@ -40,8 +40,7 @@
40
40
  "id": "keep-id",
41
41
  "name": "keep",
42
42
  "provider": "openai",
43
- "quotaWeight": 1,
44
- "tier": "standard"
43
+ "quotaWeight": 1
45
44
  }
46
45
  ],
47
46
  "roles": {
@@ -44,8 +44,7 @@
44
44
  "id": "m0-id",
45
45
  "name": "m0",
46
46
  "provider": "openai",
47
- "quotaWeight": 1,
48
- "tier": "standard"
47
+ "quotaWeight": 1
49
48
  }
50
49
  ],
51
50
  "roles": {},
@@ -99,8 +98,7 @@
99
98
  "id": "m0-id",
100
99
  "name": "m0",
101
100
  "provider": "openai",
102
- "quotaWeight": 1,
103
- "tier": "standard"
101
+ "quotaWeight": 1
104
102
  }
105
103
  ],
106
104
  "roles": {},
@@ -40,8 +40,7 @@
40
40
  "id": "ascii-ok-id",
41
41
  "name": "ascii-ok",
42
42
  "provider": "openai",
43
- "quotaWeight": 1,
44
- "tier": "standard"
43
+ "quotaWeight": 1
45
44
  }
46
45
  ],
47
46
  "roles": {},
@@ -53,8 +53,7 @@
53
53
  "id": "ok-name-id",
54
54
  "name": "ok-name",
55
55
  "provider": "openai",
56
- "quotaWeight": 1,
57
- "tier": "standard"
56
+ "quotaWeight": 1
58
57
  }
59
58
  ],
60
59
  "roles": {},
@@ -40,8 +40,7 @@
40
40
  "id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-id",
41
41
  "name": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
42
42
  "provider": "openai",
43
- "quotaWeight": 1,
44
- "tier": "standard"
43
+ "quotaWeight": 1
45
44
  },
46
45
  {
47
46
  "api": "openai-completions",
@@ -50,8 +49,7 @@
50
49
  "id": "prefix-shared-name-aaaa-id",
51
50
  "name": "prefix-shared-name-aaaa",
52
51
  "provider": "openai",
53
- "quotaWeight": 1,
54
- "tier": "standard"
52
+ "quotaWeight": 1
55
53
  },
56
54
  {
57
55
  "api": "openai-completions",
@@ -60,8 +58,7 @@
60
58
  "id": "prefix-shared-name-aaab-id",
61
59
  "name": "prefix-shared-name-aaab",
62
60
  "provider": "openai",
63
- "quotaWeight": 1,
64
- "tier": "standard"
61
+ "quotaWeight": 1
65
62
  }
66
63
  ],
67
64
  "roles": {},
@@ -111,8 +108,7 @@
111
108
  "id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-id",
112
109
  "name": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
113
110
  "provider": "openai",
114
- "quotaWeight": 1,
115
- "tier": "standard"
111
+ "quotaWeight": 1
116
112
  },
117
113
  {
118
114
  "api": "openai-completions",
@@ -121,8 +117,7 @@
121
117
  "id": "prefix-shared-name-aaaa-id",
122
118
  "name": "prefix-shared-name-aaaa",
123
119
  "provider": "openai",
124
- "quotaWeight": 1,
125
- "tier": "standard"
120
+ "quotaWeight": 1
126
121
  },
127
122
  {
128
123
  "api": "openai-completions",
@@ -131,8 +126,7 @@
131
126
  "id": "prefix-shared-name-aaab-id",
132
127
  "name": "prefix-shared-name-aaab",
133
128
  "provider": "openai",
134
- "quotaWeight": 1,
135
- "tier": "standard"
129
+ "quotaWeight": 1
136
130
  }
137
131
  ],
138
132
  "roles": {},
@@ -48,8 +48,7 @@
48
48
  "id": "m0-id",
49
49
  "name": "m0",
50
50
  "provider": "openai",
51
- "quotaWeight": 1,
52
- "tier": "standard"
51
+ "quotaWeight": 1
53
52
  }
54
53
  ],
55
54
  "roles": {},
@@ -85,8 +85,7 @@
85
85
  "id": "m0-id",
86
86
  "name": "m0",
87
87
  "provider": "openai",
88
- "quotaWeight": 1,
89
- "tier": "standard"
88
+ "quotaWeight": 1
90
89
  }
91
90
  ],
92
91
  "roles": {},
@@ -35,6 +35,10 @@ const OA_REMOVED = "the OA scenario was removed in 5.0.0";
35
35
  const SCHEDULER_RESIDENT_WHY = "whether anything fires due scheduled records is now one declaration instead of a per-capability opt-out: write SCHEDULER_RESIDENT_TRIGGER=true when a resident process (the terminal's interactive screen) fires them, and leave it unset when none does — then the scheduling tools are not mounted at all";
36
36
  /** 沙箱直传用户文件通道删除后的理由句(原样进拒启句,不带点分版本号)。 */
37
37
  const SEND_USER_FILE_SANDBOX_PUT_ENDPOINT_WHY = "the sandbox direct-upload lane this endpoint configured was removed: files a task sends to the user are now read through the engine's read permission and uploaded by the server itself. Delete this variable; no replacement is needed. Object-store permissions that existed only for sandbox direct uploads can be dropped";
38
+ /** 编排车道删除后随车撤除的旋钮共用的理由句造法(原样进拒启句,不带点分版本号与内部编号)。 */
39
+ const leaderLaneRetiredWhy = (knob) => `the ${knob} was retired with the leader orchestration lane and has no reader today; submit orchestrated work via POST /v1/runs`;
40
+ /** 编排车道补丁桶旋钮删除后的理由句(原样进拒启句,不带点分版本号与内部编号;工作区快照桶是另一用途的独立旋钮)。 */
41
+ const MINIO_BUCKET_WHY = "the leader diff-out patch bucket knob was retired with the leader orchestration lane and has no reader today; workspace snapshots use the separate WORKSPACE_SNAPSHOT_BUCKET knob (a different purpose, not a rename that restores leader patch uploads)";
38
42
  const negativeAliasWhy = (old, positive) => `negative-name alias retired in server 3.0.0 — unset it; the polarity is inverted: ${old}=true is ${positive}=false (the positive name defaults on)`;
39
43
  export const RETIRED_ENVS = deepFreeze([
40
44
  ["TIDB_HOST", "MYSQL_HOST", "renamed"],
@@ -69,8 +73,8 @@ export const RETIRED_ENVS = deepFreeze([
69
73
  ["OA_ISSUE_REPO", OA_REMOVED, "removed"],
70
74
  ["OA_ISSUE_LABELS", OA_REMOVED, "removed"],
71
75
  ["APPROVAL_POLL_MS", "the OA poll-approval lane was removed in 5.0.0; the durable checkpoint lane is the only gate", "removed"],
72
- // 合不上 = 交给用户:冲突解决模型整条通道删除,本键没有替代名。
73
- ["LEADER_CONFLICT_ROUNDS", "the bounded merge-conflict-resolution agent was deleted in 7.83.0; an unmergeable result goes back to the user: leader returns result.conflict (branch + conflicting files) and the run status is needs_human", "removed"],
76
+ // 原编排车道的冲突解决模型整条通道删除(原合不上即交用户),编排车道现已整体删除,本键没有替代名。
77
+ ["LEADER_CONFLICT_ROUNDS", "the bounded merge-conflict-resolution agent was deleted in 7.83.0; in the former leader orchestration lane, an unmergeable result went back to the user as result.conflict (branch + conflicting files) with run status needs_human, and the leader orchestration lane itself has since been retired", "removed"],
74
78
  // 名义「建连」、实际计到响应头的旋钮。替代键计的是同一段,但缺省、`0` 义与重试形都变了。
75
79
  ["MODEL_CONNECT_TIMEOUT_MS", "MODEL_FIRST_BYTE_TIMEOUT_MS", "replaced", "since core 7.33.0 the TCP + TLS connect clock is the transport's own; the wait from sending the request to its response headers — what this key really bounded — is MODEL_FIRST_BYTE_TIMEOUT_MS (unset = core's own default, plus an upload allowance and one widened retry; 0 = no engine clock on that segment and the transport's header / body clocks off too — the TCP + TLS connect keeps the transport's own clock)"],
76
80
  // 旧负名:替代键在、但极性相反(照抄旧值过去恰好是反义)。
@@ -79,7 +83,7 @@ export const RETIRED_ENVS = deepFreeze([
79
83
  ["HOST_BG_DISABLED", "HOST_BG_ENABLED", "replaced", negativeAliasWhy("HOST_BG_DISABLED", "HOST_BG_ENABLED")],
80
84
  ["HOST_EXEC_SPOOL_DISABLED", "HOST_EXEC_SPOOL_ENABLED", "replaced", negativeAliasWhy("HOST_EXEC_SPOOL_DISABLED", "HOST_EXEC_SPOOL_ENABLED")],
81
85
  // 无人值守腿的模式旋钮退役:这些腿的答集是常量,不是旋钮。
82
- ["UNATTENDED_PERMISSION_MODE", "since server 7.109.0 the unattended legs (leader workers and their repair legs, run-local, and their durable resumes) always run permissionMode \"default\" with an approver that answers by ask class: a machine answers only \"ordinary\" asks, and every other class goes to the leg's approver seat (run-local's terminal prompt) or parks / is refused — there is no mode to choose", "removed"],
86
+ ["UNATTENDED_PERMISSION_MODE", "since server 7.109.0 unattended legs (run-local and its durable resumes; leader workers and their repair legs were also covered before the leader orchestration lane was retired) always run permissionMode \"default\" with an approver that answers by ask class: a machine answers only \"ordinary\" asks, and every other class goes to the leg's approver seat (run-local's terminal prompt) or parks / is refused — there is no mode to choose", "removed"],
83
87
  // 执行车道总开关:每个部署都点名自己的车道之后它恒真(「点名了没有」只剩一个答者 REMOTE_EXEC),留着 = 两个键答一个问题;「没有执行环境」也是一个声明(REMOTE_EXEC=none)。
84
88
  ["REQUIRE_EXECUTION_LANE", "REMOTE_EXEC", "replaced", "every deployment names its execution lane; REMOTE_EXEC=none declares one with no execution environment"],
85
89
  // 沙箱车道的 LSP 桥整只删除:e2b / k8s 车道本来就不挂 LSP,这个旋钮没有可 rename 的目标。host 车道的开关是另一个键 LSP_HOST_ENABLED(缺省开,活旋钮,不在本表)。
@@ -108,6 +112,27 @@ export const RETIRED_ENVS = deepFreeze([
108
112
  // 沙箱直传用户文件的通道已删除:任务发给用户的文件改为经引擎读权限由服务端直接读取并上传,不再走沙箱直传端点,没有替代变量名。
109
113
  // 理由句不带点分版本号(原样进拒启句),与上面各行同约定。
110
114
  ["SEND_USER_FILE_SANDBOX_PUT_ENDPOINT", SEND_USER_FILE_SANDBOX_PUT_ENDPOINT_WHY, "removed"],
115
+ // 编排车道整体删除:以下十八只旋钮(LEADER_* 十六只、MINIO_BUCKET、MODEL_ROUTER_ID)不再有任何读者,没有可 rename 的替代变量名。
116
+ // 提了本版契约包的那一版服务端(按计划是 7.164.0;本包不验证服务端行为)同步删掉这些读点与目录行,见之即拒;本包 worker 规格 env / secretEnv 双槽写闸同拒。
117
+ // 余下 MINIO_* 与 WORKSPACE_SNAPSHOT_BUCKET 仍是活旋钮,不在本表;理由句不带点分版本号与内部编号,尾句由 removed 族统一铸出。
118
+ ["LEADER_BUDGET_USD", leaderLaneRetiredWhy("leader replan-lite fanout budget cap"), "removed"],
119
+ ["LEADER_DURABLE_REMOTES", leaderLaneRetiredWhy("leader durable-push remote allowlist"), "removed"],
120
+ ["LEADER_ENABLED", leaderLaneRetiredWhy("leader orchestration endpoint switch"), "removed"],
121
+ ["LEADER_FANOUT_ENABLED", leaderLaneRetiredWhy("leader fanout switch"), "removed"],
122
+ ["LEADER_MEASURE_GATES", leaderLaneRetiredWhy("leader merge measure-gates switch"), "removed"],
123
+ ["LEADER_ORACLE_FLAKY_K", leaderLaneRetiredWhy("leader oracle flaky-settle repeat count"), "removed"],
124
+ ["LEADER_REPAIR_BUDGET_USD", leaderLaneRetiredWhy("leader repair-round budget cap"), "removed"],
125
+ ["LEADER_REPAIR_LOOP", leaderLaneRetiredWhy("leader single-agent repair-loop switch"), "removed"],
126
+ ["LEADER_REPAIR_LOOP_ATTEMPTS", leaderLaneRetiredWhy("leader repair-loop attempt limit"), "removed"],
127
+ ["LEADER_REPAIR_ROUNDS", leaderLaneRetiredWhy("leader repair-rounds limit"), "removed"],
128
+ ["LEADER_RESOURCE_SUSPEND", leaderLaneRetiredWhy("leader worker resource-suspend opt-in switch"), "removed"],
129
+ ["LEADER_RUN_STALE_MS", leaderLaneRetiredWhy("leader stale-run sweep threshold"), "removed"],
130
+ ["LEADER_TIMEOUT_MS", leaderLaneRetiredWhy("leader wall-clock timeout"), "removed"],
131
+ ["LEADER_WORKER_BUDGET_USD", leaderLaneRetiredWhy("leader per-worker budget cap"), "removed"],
132
+ ["LEADER_WORKER_MAX_TURNS", leaderLaneRetiredWhy("leader per-worker turn limit"), "removed"],
133
+ ["LEADER_WORKER_SLICE_BUDGET_USD", leaderLaneRetiredWhy("leader per-slice worker budget cap"), "removed"],
134
+ ["MINIO_BUCKET", MINIO_BUCKET_WHY, "removed"],
135
+ ["MODEL_ROUTER_ID", leaderLaneRetiredWhy("leader router-leg model override"), "removed"],
111
136
  ]);
112
137
  /** 墓碑表 → wire 投影(纯数据)。**同一张表、同序**;族是闭集,穷举 switch(加一族不写这里 ⇒ 编译红)。 */
113
138
  export function buildRetiredEnvWire() {
package/dist/types.d.ts CHANGED
@@ -197,7 +197,7 @@ export declare const ModelEntry: z.ZodObject<{
197
197
  alg: z.ZodLiteral<"libsodium-sealedbox-x25519">;
198
198
  setAt: z.ZodOptional<z.ZodString>;
199
199
  }, z.core.$strip>>;
200
- tier: z.ZodDefault<z.ZodEnum<{
200
+ tier: z.ZodOptional<z.ZodEnum<{
201
201
  cheap: "cheap";
202
202
  standard: "standard";
203
203
  premium: "premium";
@@ -330,7 +330,7 @@ export declare const ModelsConfig: z.ZodObject<{
330
330
  alg: z.ZodLiteral<"libsodium-sealedbox-x25519">;
331
331
  setAt: z.ZodOptional<z.ZodString>;
332
332
  }, z.core.$strip>>;
333
- tier: z.ZodDefault<z.ZodEnum<{
333
+ tier: z.ZodOptional<z.ZodEnum<{
334
334
  cheap: "cheap";
335
335
  standard: "standard";
336
336
  premium: "premium";
@@ -2704,7 +2704,7 @@ export declare const DOMAIN_SCHEMAS: {
2704
2704
  alg: z.ZodLiteral<"libsodium-sealedbox-x25519">;
2705
2705
  setAt: z.ZodOptional<z.ZodString>;
2706
2706
  }, z.core.$strip>>;
2707
- tier: z.ZodDefault<z.ZodEnum<{
2707
+ tier: z.ZodOptional<z.ZodEnum<{
2708
2708
  cheap: "cheap";
2709
2709
  standard: "standard";
2710
2710
  premium: "premium";
package/dist/types.js CHANGED
@@ -492,8 +492,12 @@ export const ModelEntry = z.object({
492
492
  * **二选一**(11.0.0):一个模型的钥匙只有一种写法 —— `sealedApiKey` 与 `apiKeyEnv` 同设 ⇒ 本条目被拒(读写同一只判据,见本
493
493
  * schema 的 superRefine)。切换写法的写者负责清掉另一字段;还带着双设的存量条目读侧逐条丢(`entry-dropped`)、写侧拒。ABSENT = 未托管(纯 env-NAME 现状)。 */
494
494
  sealedApiKey: SealedApiKey.optional(),
495
- /** Price/capability tier — fuels core 1.25 `selectModel({ tier })` role resolution. */
496
- tier: ModelTier.default("standard"),
495
+ /** Price/capability tier — fuels core 1.25 `selectModel({ tier })` role resolution. ABSENT = not declared: this package never fills it in
496
+ * (the parse result has no `tier` key, and no write leg puts one on disk). The engine's selector reads the declaration strictly — a
497
+ * `{ select: { tier } }` query matches only entries that declare that same word, so an undeclared entry is in no named tier, and a query
498
+ * that names no tier does not filter on it. A deployment that relies on an entry being picked by `{ select: { tier: "standard" } }`
499
+ * writes `tier: "standard"` on it (or binds the role by name). A word outside the closed set ({@link ModelTier}) refuses the entry. */
500
+ tier: ModelTier.optional(),
497
501
  /** Capability bits are THREE-STATE: `true` = declared capable, `false` = declared not capable, ABSENT =
498
502
  * not declared — the reader applies its own default (the engine reads it through one predicate). This package never fills an
499
503
  * absent bit in: reading "not written" as "not capable" is a default only a reader may choose. */
@@ -38,6 +38,7 @@
38
38
  > **35.0.0**(major,八处破坏:`a2a` 对端条目 `A2aPeerSpec` 的条目判〔组合方法 `.pick` / `.omit` / `.partial` 运行期抛〕· `a2a` 七只登记键的校验收紧〔坏值 / 不完备的内部条目 / 重复 `id` 文档面整份拒;重复 `id` 视图面整域落缺省〕· MCP 条目 `callerMeta` 坏值整条拒 · 调度店文件读口的结果多必填 `absent`、悬空软链读也抛 · 调度店的记录判官收紧〔声明成员合型、整条是纯 JSON 数据且任何一处的数是有限数〕· 墓碑表加 `SEND_USER_FILE_SANDBOX_PUT_ENDPOINT` · 一次性迁移 SS-M11 窗关删码 · 权益档位 `EntitlementTier.displayName` 坏值整域拒)的 `a2a` 登记键与条目判在 §17 的「登记键与条目判」一条;MCP 条目 `callerMeta` 在 §7 的映射表(`TaskSpec.mcp` 一行)与 `CHANGELOG.md` 35.0.0 节;权益档位可选展示名 `EntitlementTier.displayName` 与上界常量 `ENTITLEMENT_TIER_LIMITS`(包根与 `./types`)在 `CHANGELOG.md` 35.0.0 节;同版加性的自动记忆开关 `autoMemoryEnabled` 在 §58;调度店文件读口的缺席标记 `absent`(`SchedulerStoreFileRead`)、读写同一只符号链接判官、写一次对盘上文件做了什么在 §59;墓碑表加 `SEND_USER_FILE_SANDBOX_PUT_ENDPOINT`(`removed` 族)在 §60;SS-M11 删码在 §61(登记表概览在 §0.4)。
39
39
  > **35.1.0**(minor,全部加性;没有 BREAKING)的 `./conformance` 配置档装载校验向量与只读加载器(`conformance/profile/` 11 份文件;`loadProfileVectors` / `loadBuiltinProfilesAndSchema` 与五只常量)在 §11 末条(详见 `docs/CONFORMANCE.md` §12);同版订正 35.0.0 节六处说漏或写宽的连带变化,§17、§59 – §61 里对应的句子已改准,逐条见 `CHANGELOG.md` 35.1.0「订正 35.0.0 节」。
40
40
  > **35.2.0**(minor,全部加性;没有 BREAKING)的连接器断言铸口 wire 型(严格请求 `ConnectorAssertionRequest` · 应答 · 十四词拒答表 `CONNECTOR_ASSERTION_REFUSALS` 与拒体)与发送目标比较 `compareDialTargets` 在 §62(铸口拒答表与沙箱 git 拒答表同一份派生机关;凭据平面 `terminal` 的读法写成一条,对沙箱 git 既有收方多许低频复查,见 §12.5);单元表第十三行自动压缩开关 `autoCompactEnabled`(`SettingsUnitName` 多一词,穷举它的消费方红一次)在 §63;请求面只收紧座位的四只上限常量在 §64;取可改的深副本 `mutableCopyOf` / `MutableCopy<T>` 在 §65;同版订正 33.0.0 节三格判据的读法见 `CHANGELOG.md` 35.2.0「订正 33.0.0 节」。
41
+ > **36.0.0**(major,BREAKING:墓碑表 `RETIRED_ENVS` 尾插十八只编排车道退役环境变量名〔`LEADER_*` 十六只、`MINIO_BUCKET`、`MODEL_ROUTER_ID`〕,表总长 44 → 62,部署 env 设着非空值起服即拒,`workers[].env` / `workers[].secretEnv` 双槽写面、视图面、逐行读口与 SS-M12 行终判同拒;两条既有墓碑理由 `LEADER_CONFLICT_ROUNDS` / `UNATTENDED_PERMISSION_MODE` 改过去时且版本号不动;导出面与型面零增删)在 §66。
41
42
 
42
43
  ---
43
44
 
@@ -1843,3 +1844,31 @@ WHATWG 解析会做的改写:scheme 与主机名转小写;去默认端口;国际
1843
1844
  | server · cli(终端)· client-core · web-admin | 零读点(推断:没重读) | 不用就零动作;要在闭集上改出自己一份的地方,用它代替手写的深拷贝 |
1844
1845
  | sdk | 契约套件 | 零代码改动 |
1845
1846
  | test | 判据 | 见 `CHANGELOG.md` 本版节深副本小节(K84 – K90) |
1847
+
1848
+ ## 66. 墓碑表新增十八只编排车道退役旋钮与两条既有理由改写(36.0.0 起,`removed` 族,major)—— server、web-admin、cli、client-core、sdk、test 各自的读法
1849
+
1850
+ **新增十八行(紧跟在 `SEND_USER_FILE_SANDBOX_PUT_ENDPOINT` 之后,表总长 44 → 62)**:全部为 `removed` 三元形 `[名, 理由, "removed"]`,无替代名 ——
1851
+ - `LEADER_*` 十六只:`LEADER_BUDGET_USD` · `LEADER_DURABLE_REMOTES` · `LEADER_ENABLED` · `LEADER_FANOUT_ENABLED` · `LEADER_MEASURE_GATES` · `LEADER_ORACLE_FLAKY_K` · `LEADER_REPAIR_BUDGET_USD` · `LEADER_REPAIR_LOOP` · `LEADER_REPAIR_LOOP_ATTEMPTS` · `LEADER_REPAIR_ROUNDS` · `LEADER_RESOURCE_SUSPEND` · `LEADER_RUN_STALE_MS` · `LEADER_TIMEOUT_MS` · `LEADER_WORKER_BUDGET_USD` · `LEADER_WORKER_MAX_TURNS` · `LEADER_WORKER_SLICE_BUDGET_USD`(理由句点明随编排车道退役、今天不再有任何读者,指路 `POST /v1/runs`)。
1852
+ - `MINIO_BUCKET`(理由句点明随编排车道退役、今天不再有任何读者,并说明工作区快照桶是另一用途的独立旋钮 `WORKSPACE_SNAPSHOT_BUCKET`,不是恢复 leader 补丁上传的改名;余下 `MINIO_ENDPOINT` / `MINIO_ACCESS_KEY` / `MINIO_SECRET_KEY` / `MINIO_REGION` 与 `WORKSPACE_SNAPSHOT_BUCKET` 仍是活旋钮,不进表)。
1853
+ - `MODEL_ROUTER_ID`(理由句点明随编排车道退役、今天不再有任何读者,指路 `POST /v1/runs`)。
1854
+
1855
+ 十八条理由句均不带点分版本号与内部编号,且不手抄 `removed` 族通用尾句;通用尾句由 `retiredEnvRefusal` 统一铸出(` — remove the env key(s): the capability itself was retired, there is no replacement name and no rename that restores it.`)。任意非空值都拒,空串 = 未设不拒;拒启句带码 `config.env_key_retired`,点名键且绝不回显值。
1856
+
1857
+ **两条既有墓碑理由改写(版本号不动)**:
1858
+ - `LEADER_CONFLICT_ROUNDS`(保留 `7.83.0` 与 `result.conflict`):由现役现在时改为过去时并写明编排车道现已退役。
1859
+ - `UNATTENDED_PERMISSION_MODE`(保留 `server 7.109.0`):将 leader 工人与修复腿标为编排车道退役前的历史范围,保留 `run-local` 及其持久续跑仍适用的现役事实。
1860
+
1861
+ **`workers[].env` 与 `workers[].secretEnv` 双槽读者随表生效(零代码改动)**:`WorkerSpec.env` 与 `WorkerSpec.secretEnv` 均经 `retiredEnvIssue` 查 `RETIRED_ENVS`。`secretEnv` 的值是合法宿主 env-NAME,拒绝依据是**映射键**(若旧名只出现在 `secretEnv` 的宿主 env-NAME 值位而非映射键,不拒)。双槽任一命中这十八键之一时:
1862
+ - 写面 `WorkerSpec.safeParse` / `validateDomain("workers", …)` 与单域读 `parseDomain` / `parseDomainLoud` / `parseDomainSalvaged` 拒(路径 `["workers", i, "env" | "secretEnv"]`,句子 = 墓碑整句);
1863
+ - 跨域视图 `buildEffective` / `readEffectiveWire` 抛 `DomainReadRefusedError`(`domain === "workers"`,消息点名旧键与 `config.env_key_retired`、不回显宿主 env-NAME;服务端远端配置拉取腿据此整份拒收候选);
1864
+ - 逐行读口 `readWorkersRows` 将该台扣进 `held`、好行照留;SS-M12 改写得了的 15.x 旧形行若带其中任一键,改写后终判不过 ⇒ 出 `refused` 收据且原行不动。
1865
+
1866
+ **部署清键与发布次序**:先清理中心 `workers[].env` / `workers[].secretEnv` 双槽里的这十八只键、由 web-admin 重出墓碑快照并确认渲染器不再注入这十八键,再清部署 env,最后上线提货本版的服务端(按计划是 7.164.0,同步删掉这十八只解析与目录行);否则会遇到起服墓碑拒或整份配置候选拒收。
1867
+
1868
+ | 消费方 | 读点 | 动作 |
1869
+ |---|---|---|
1870
+ | server | 起服 `retiredEnvRefusal` · 目录 `buildRetiredEnvWire()` · 远端读腿 `readEffectiveWire` · `test/retired-env-tombstones.test.ts` | 按计划在 7.164.0 提货 36.0.0 并同批删除十八只旧键解析与目录行;更新 `LEADER_CONFLICT_ROUNDS` 的过去时测试正则;先清部署与中心双槽旧键再上本版服务端 |
1871
+ | web-admin | 从 `RETIRED_ENVS` 生成的墓碑快照 · worker env 渲染器 · `WorkerSpec` / `validateDomain("workers", …)` · `readWorkersRows` | 提货 36.0.0,重出墓碑快照并停渲十八只旧键;清掉存量 `workers[].env` / `workers[].secretEnv` 里的这十八只键(升级前跑 `validateDomain("workers", 文档)` 预检) |
1872
+ | cli | 读包根 `RETIRED_ENVS` 投影引擎退役名全表 | 随提货 36.0.0 生效 |
1873
+ | client-core / sdk | 不读墓碑表 | 无 |
1874
+ | test | 墓碑表行集、总长与改写理由钉 | 见 `CHANGELOG.md` 36.0.0 节(判据 K94 – K98)与墓碑表长度钉(总长 62) |
package/llms-full.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  <!--
2
2
  llms-full.txt — 自包含全文 · 消费方(使用者)视角 · @sema-agent/settings-schema
3
- 重写日期: 2026-11-28 | 包版本: 35.2.1
3
+ 重写日期: 2026-11-29 | 包版本: 37.0.0
4
4
  生成方式: 无生成脚本——按当前树 src/*.ts 导出面 + package.json + README/CHANGELOG 手写事实版。
5
5
  证据约定: 每条"它怎么工作"的断言附 (文件: 符号) 坐标,刻意不用行号(行号逐版腐烂;符号名由
6
6
  typecheck 与 test/package-surface.test.ts、test/docs-hygiene.test.ts 等常驻门钉住)。无证据推断显式标【推断】。
@@ -612,6 +612,8 @@ entitlement/execution/limits = `none`;`projects` = `salvage`,整域档位仍 `"t
612
612
  32.0.0 再加两行:`SCHEDULER_SESSION_WAKEUP` 与 `SCHEDULER_SESSION_LIFETIME`(都是 replaced → `SCHEDULER_RESIDENT_TRIGGER`:调度的两只按能力退出的旋钮并成一只声明 —— 有没有常驻进程在替到点的计划记录触发,终端的交互屏就是一个;
613
613
  没有就不设它,调度类工具整组不挂载;值语义变了,别照抄旧值)。提了本版契约包的那一版服务端起不再读这两只名(按计划 7.156.0;读侧同代:更老的服务端仍当活旋钮读、缺省开,对它们删旧键 = 回到缺省的开)。本包 worker 规格 `env` / `secretEnv` 写闸同拒(不分目标服务端的代),
614
614
  写着它们的 `workers` 文档视图面整域读不进;存量没有一次性迁移,出路是手改那两只键;提了本版契约包的服务端见到任一只旧键即拒启,所以逐台 worker 换服务端与改它的环境是同一步,渲染方在 worker 全部换完之前留在上一版契约包,全部换完再提本版;没法按 worker 分别渲染的渲染方先改环境再升级。
615
+ 35.0.0 再加一行 `SEND_USER_FILE_SANDBOX_PUT_ENDPOINT`(removed:沙箱直传用户文件通道删除,无替代名)。
616
+ 36.0.0 再加十八行(表总长 44 → 62,全部 removed 族:编排车道退役后的 `LEADER_*` 十六只、`MINIO_BUCKET`、`MODEL_ROUTER_ID`;`LEADER_*` 与 `MODEL_ROUTER_ID` 指路 `POST /v1/runs`,`MINIO_BUCKET` 写明工作区快照桶是独立旋钮 `WORKSPACE_SNAPSHOT_BUCKET` 而非恢复 leader 补丁上传的改名;余下 `MINIO_*` 与 `WORKSPACE_SNAPSHOT_BUCKET` 仍是活旋钮),并把既有 `LEADER_CONFLICT_ROUNDS`(保 7.83.0)与 `UNATTENDED_PERMISSION_MODE`(保 server 7.109.0 与 `run-local` 现役事实、标退 leader 腿)的理由改写为过去时。本包 `workers[].env`(非空值)与 `workers[].secretEnv`(映射键,值是合法宿主 env-NAME)双槽写闸与跨域视图(`buildEffective` / `readEffectiveWire`,抛 `DomainReadRefusedError`)、逐行读口(`readWorkersRows`)与 SS-M12 行终判同拒这十八键;上线提货 36.0.0 的服务端(按计划 7.164.0,本包不验证服务端行为)前须先清中心双槽与部署 env 并确认渲染方停渲这十八键。
615
617
 
616
618
  --- 4.10c 沙箱 git 凭据平面(src/sandbox-git.ts + src/api/credentials.ts,主 barrel,不开子路径;14.7.0) ---
617
619
  - 沙箱里的 git 用成员本人的凭据:数据面向 web-admin 的凭据取值口按 run 身份申领句柄、凭句柄兑换。本包只有形与词表,零 IO。
package/llms.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  <!--
2
2
  llms.txt — 消费方(使用者)视角索引 · @sema-agent/settings-schema
3
- 重写日期: 2026-11-28 | 包版本: 35.2.1
3
+ 重写日期: 2026-11-28 | 包版本: 37.0.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 相等、
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sema-agent/settings-schema",
3
- "version": "35.2.1",
3
+ "version": "37.0.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",