@sema-agent/settings-schema 23.0.0 → 25.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.
@@ -1,144 +1,21 @@
1
1
  {
2
2
  "domains": {
3
- "outcome": "effective",
4
- "effective": {
5
- "a2a": {
6
- "peers": []
7
- },
8
- "collab": {
9
- "templates": []
10
- },
11
- "entitlement": {
12
- "budgetGroups": [],
13
- "groupBindings": [],
14
- "subjects": [],
15
- "tiers": []
16
- },
17
- "execution": {
18
- "allowedLanes": [
19
- "host"
20
- ],
21
- "required": false
22
- },
23
- "governance": {},
24
- "hosts": {
25
- "hosts": []
26
- },
27
- "limits": {},
28
- "mcp": {
29
- "servers": []
30
- },
31
- "models": {
32
- "atMention": {
33
- "mode": "all"
34
- },
35
- "models": [],
36
- "roles": {},
37
- "tierGroups": []
38
- },
39
- "plugins": {
40
- "plugins": []
41
- },
42
- "projects": {
43
- "projects": {}
44
- },
45
- "prompts": {},
46
- "rosters": {
47
- "rosters": []
48
- },
49
- "scenarios": {
50
- "scenarios": []
51
- },
52
- "skills": {
53
- "skills": []
54
- },
55
- "systems": {
56
- "systems": []
57
- },
58
- "workers": {
59
- "workers": []
60
- }
61
- },
62
- "warnings": [
63
- {
64
- "domain": "skills",
65
- "kind": "domain-defaulted"
66
- }
67
- ],
68
- "metadata": {
69
- "version": 7,
70
- "updatedAt": "2026-09-16T00:00:00.000Z"
71
- }
3
+ "outcome": "rejected",
4
+ "stage": "validate"
72
5
  },
73
6
  "strictWrite": {
74
7
  "outcome": "rejected",
75
8
  "stage": "validate",
76
- "why": "拒:skills 文档是 null,读腿整域降级成默认(domain-defaulted);写入席不把 null 当空域存下。"
9
+ "why": "拒:skills 文档是 null —— 坏形;读腿整域读不进、skills 读档 throw(24.0.0 起;此前降级成默认 + domain-defaulted);写入席不把 null 当空域存下。"
77
10
  },
78
11
  "wire": {
79
- "outcome": "effective",
80
- "effective": {
81
- "collab": {
82
- "templates": []
83
- },
84
- "entitlement": {
85
- "budgetGroups": [],
86
- "groupBindings": [],
87
- "subjects": [],
88
- "tiers": []
89
- },
90
- "execution": {
91
- "allowedLanes": [
92
- "host"
93
- ],
94
- "required": false
95
- },
96
- "governance": {},
97
- "hosts": {
98
- "hosts": []
99
- },
100
- "limits": {},
101
- "mcp": {
102
- "servers": []
103
- },
104
- "models": {
105
- "atMention": {
106
- "mode": "all"
107
- },
108
- "models": [],
109
- "roles": {},
110
- "tierGroups": []
111
- },
112
- "plugins": {
113
- "plugins": []
114
- },
115
- "projects": {
116
- "projects": {}
117
- },
118
- "rosters": {
119
- "rosters": []
120
- },
121
- "scenarios": {
122
- "scenarios": []
123
- },
124
- "skills": {
125
- "skills": []
126
- },
127
- "systems": {
128
- "systems": []
129
- },
130
- "workers": {
131
- "workers": []
132
- }
133
- },
134
- "warnings": [],
135
- "metadata": {
136
- "version": 7,
137
- "updatedAt": "2026-09-16T00:00:00.000Z"
138
- },
139
- "why": "wire 腿的 `r.skills ?? {}` 把 null 读成缺席(域腿读成坏形),告警多重集因此不同 ⇒ 不派生,写显式金样"
12
+ "outcome": "rejected",
13
+ "stage": "validate",
14
+ "why": "拒:wire 腿与域腿同一只读法(24.0.0 起清单的缺席只有 undefined 一种,null 是坏形;此前 `r.skills ?? {}` 把 null 读成缺席、零告警),skills 读档 throw;domains 腿是拒绝态,不派生,写显式金样"
140
15
  },
141
16
  "localRoot": {
142
- "derive": true
17
+ "outcome": "rejected",
18
+ "stage": "parse",
19
+ "why": "拒:域腿是拒绝态,不派生;本地腿把 null 写进 `config.d/skills.json`,同样读不进(skills 读档 throw,24.0.0 起;此前派生自域腿的缺省)"
143
20
  }
144
21
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "contributor": "contract",
3
- "claim": "`skills: null`:域腿判它坏形 ⇒ 降级 + 一条 domain-defaulted;wire 腿走 `r.skills ?? {}`,**null 被当成缺席** ⇒ 解析出空清单、**零告警**。同一份输入,一条腿出声一条腿不出声 —— 消费方把两条腿的告警折进同一个面板时,这条差异会变成「有时候有、有时候没有」的幽灵。钉成显式金样。",
3
+ "claim": "`skills: null`:两腿同读 —— 坏形(缺席只有 undefined 一种),skills 读档 throw ⇒ 整份拒(24.0.0 起)。此前域腿降级 + 一条 domain-defaulted,wire 腿走 `r.skills ?? {}` 把 null 当成缺席、解析出空清单、零告警 —— 同一份输入一条腿出声一条腿不出声;清单与域文档改成同一只读法后这层不对称消失。钉成显式金样。",
4
4
  "firstRedOn": []
5
5
  }
@@ -12,15 +12,6 @@
12
12
  "name": "kb",
13
13
  "scenarios": [],
14
14
  "url": "https://kb.example/a2a"
15
- },
16
- {
17
- "allowSkills": [
18
- "search"
19
- ],
20
- "enabled": true,
21
- "name": "narrow",
22
- "scenarios": [],
23
- "url": "https://narrow.example/a2a"
24
15
  }
25
16
  ]
26
17
  },
@@ -93,12 +84,13 @@
93
84
  },
94
85
  {
95
86
  "domain": "a2a",
87
+ "identity": {
88
+ "name": "narrow"
89
+ },
96
90
  "kind": "entry-dropped",
97
91
  "path": [
98
92
  "peers",
99
- 2,
100
- "allowSkills",
101
- 1
93
+ 2
102
94
  ],
103
95
  "reasonCode": "entry-schema-invalid"
104
96
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "contributor": "contract",
3
- "claim": "凭据引用集合不可部分抢救:对端 `half` 的 `headerRefs` 里一条引用坏形(值不是 env-NAME)⇒ **整个对端** `entry-dropped`(域 `a2a`、坐标 `[\"peers\",1]`、身份 `half`),不是只丢那一条引用、留下一个带着一半凭据去拨远端的对端;兄弟 `kb` 原样保留。对照组 `narrow`:非凭据集合(`allowSkills`)里的坏元素照旧逐条丢(坐标 `[\"peers\",2,\"allowSkills\",1]`;丢了只会更窄),对端本身活下来。严写腿整份拒。一个对每个 Record 都逐条抢救的读腿会把 `half` 读成「只带 Authorization 的对端」。",
3
+ "claim": "凭据引用集合不可部分抢救:对端 `half` 的 `headerRefs` 里一条引用坏形(值不是 env-NAME)⇒ **整个对端** `entry-dropped`(域 `a2a`、坐标 `[\"peers\",1]`、身份 `half`),不是只丢那一条引用、留下一个带着一半凭据去拨远端的对端;兄弟 `kb` 原样保留。`narrow`:24.0.0 起值名单(`allowSkills`)与凭据引用同一条律 —— 一张值名单是一个值,坏一个元素 ⇒ **整个对端** `entry-dropped`(坐标 `[\"peers\",2]`、身份 `narrow`),不再只剔那个元素(此前坐标 `[\"peers\",2,\"allowSkills\",1]`、对端带着截短的名单存活)。严写腿整份拒。一个对每个 Record 都逐条抢救的读腿会把 `half` 读成「只带 Authorization 的对端」。",
4
4
  "firstRedOn": []
5
5
  }
@@ -50,15 +50,54 @@ export declare const USER_ROLES: readonly UserRole[];
50
50
  export declare function roleAtLeast(role: UserRole, min: UserRole): boolean;
51
51
  export declare function isRole(v: unknown): v is UserRole;
52
52
  /**
53
- * Minimum role to WRITE a domain. Default = `editor`; `skills` and `mcp` are raised to `publisher`
53
+ * The FLOOR of a domain write: the minimum role any write to the domain needs. Default = `editor`; `skills` and `mcp` are raised to `publisher`
54
54
  * because their content goes straight into the agent's system prompt / tool surface — one edit retargets
55
55
  * the prompt of every worker × scenario that loads it (the mcp/skills design note §3.3, decision §6 Q3 从严).
56
- * Looked up by the [domain] PUT route. Any domain absent here uses {@link DEFAULT_DOMAIN_WRITE_ROLE}.
56
+ * Any domain absent here uses {@link DEFAULT_DOMAIN_WRITE_ROLE}. Nobody reads this table directly: the one reader is
57
+ * {@link writeRoleFor}, which also looks at WHICH fields a write changes ({@link DOMAIN_FIELD_WRITE_ROLE}).
57
58
  */
58
59
  export declare const DEFAULT_DOMAIN_WRITE_ROLE: UserRole;
59
60
  export declare const DOMAIN_WRITE_ROLE: Partial<Record<DomainName, UserRole>>;
60
- /** The minimum role required to write `domain` (the raised gate for skills/mcp, else editor). */
61
- export declare function domainWriteRole(domain: DomainName): UserRole;
61
+ /**
62
+ * The per-field write roles of a domain whose document is a record of entries: ONE role for each field of an entry, exhaustive for the entry's
63
+ * shape (the table is `satisfies`-checked against the entry type, so a field added to the entry without a role is a compile error — a new field
64
+ * cannot default into the floor unseen). `entries` is the document key that holds the record (`projects` ⇒ `{ projects: { <projectId>: <registration> } }`).
65
+ */
66
+ export interface DomainFieldWriteRoles {
67
+ readonly entries: string;
68
+ readonly fields: Readonly<Record<string, UserRole>>;
69
+ }
70
+ /**
71
+ * The domains whose write role depends on WHICH fields a write changes. Same shape of use as {@link DOMAIN_WRITE_ROLE} — a package-owned table,
72
+ * one row per domain, an absent row means "the floor decides" — read only through {@link writeRoleFor}; the changed fields come from
73
+ * {@link changedWriteFields} (the one place that diffs two documents against this table).
74
+ */
75
+ export declare const DOMAIN_FIELD_WRITE_ROLE: Partial<Record<DomainName, DomainFieldWriteRoles>>;
76
+ /**
77
+ * The minimum role to make a write that changes exactly `changedFields` in `domain`: the HIGHEST of the domain's floor ({@link DOMAIN_WRITE_ROLE},
78
+ * else {@link DEFAULT_DOMAIN_WRITE_ROLE}) and the role of each changed field ({@link DOMAIN_FIELD_WRITE_ROLE}). `[]` = a write that changes no
79
+ * field that has a role of its own — the floor alone, which is also the answer to "may this role write anything in the domain at all" (a UI
80
+ * deciding whether to show a write affordance). The PUT, PATCH and mint doors of a domain all ask this ONE function, with the fields
81
+ * {@link changedWriteFields} reports for the document they are about to store. A field name the domain's table does not have — a typo, a
82
+ * field of another domain, any name for a domain with no field table — is a RangeError (the answer would otherwise be the floor, a quiet
83
+ * lowering): a caller's mistake is loud, never an `editor`.
84
+ */
85
+ export declare function writeRoleFor(domain: DomainName, changedFields: readonly string[]): UserRole;
86
+ /**
87
+ * Which fields a write changes: the fields of {@link DOMAIN_FIELD_WRITE_ROLE}`[domain]` whose value differs, in ANY entry, between the stored
88
+ * document `before` and the document about to be stored `after` — in the table's order, each once. This is the one place two documents are
89
+ * diffed against the table, whatever the door: a whole-domain PUT passes the stored and the submitted document; a PATCH passes the stored
90
+ * document and the document {@link applyProjectPatch} returns; a mint passes the stored document and the document with the new entry.
91
+ * Both documents are read through {@link parseDomain}, the reading a write is validated with, so the comparison is between the documents the
92
+ * store would receive: store what you authorized — the parse result, not a second reading of the raw body. A field is changed when it is added
93
+ * (absent → present), removed (present → absent) or its value differs; a new entry changes every field it carries, a removed one every field it
94
+ * carried; resending a field unchanged, or the keys in another order, changes nothing. `before` `undefined` = the domain has no document yet (the
95
+ * only spelling of "nothing stored"). A domain with no field table ⇒ `[]` (the floor alone decides). Fail-closed on the security axis, in ONE
96
+ * arm: a document the domain's schema refuses or cannot read — not an object, a getter or trap that throws, a bad entry, a stored document that
97
+ * no longer passes — or any step of the comparison that fails ⇒ EVERY field of the table, so the write needs the highest role the table names.
98
+ * Never throws.
99
+ */
100
+ export declare function changedWriteFields(domain: DomainName, before: unknown, after: unknown): readonly string[];
62
101
  /** A console user (no secret). */
63
102
  export interface User {
64
103
  username: string;
@@ -291,19 +330,26 @@ export interface EntrySalvageResult {
291
330
  /**
292
331
  * 从**schema 自身**派生条目集合(数组字段 / Record 字段),逐条判,坏的丢掉并逐条记账。
293
332
  *
294
- * 入参是 **schema 而不是域名**:`skills` 在 wire 上不是域 schema 而是 manifest(`SkillsManifestSchema`),
295
- * 在 `buildEffective` 之外单独判 —— 只吃域名的抢救点会把那条腿漏在门外,同一份病只因为换了张 schema
296
- * 就没被覆盖。吃 schema ⇒ 域面与 wire 面共用同一条律,没有第二实现。
333
+ * **诊断口,不是读腿**:本函数不查 {@link DOMAIN_ENTRY_SALVAGE} / {@link DOMAIN_READ_FALLBACK} —— 它回答「这份文档里哪几条判不过、为什么」,
334
+ * 不回答「读方该怎么读」。读腿只在表判 `"salvage"` 的域里拿它的结果({@link readView});对 `"none"` 域直接调它照样逐条报。
335
+ * 把它的 `value` 当文档再交给读口,是调用方自己在 `"none"` 域丢了条目,读法没有这一步。
336
+ *
337
+ * 入参是 **schema 而不是域名**:同一个域可以有不止一种文档表示(`skills` 在 wire 上是 manifest,`SkillsManifestSchema`)——
338
+ * 只吃域名的抢救点会把另一种表示漏在门外。吃 schema ⇒ 每种表示同一条律,没有第二实现。
297
339
  *
298
340
  * 为什么从 schema 派生而不是写一张「域 → 条目字段」表:那张表是第二份真源,开新域必漏。schema 里
299
341
  * 「这个字段是一组条目」这件事本来就写着,读它即可 —— 新域天然被覆盖,零登记动作。
300
342
  *
343
+ * 🔴 **条目是对象,一张值名单是一个值**(24.0.0):条目集合 = 元素(数组元素 / Record 值)是对象(或全由对象组成的联合)的集合,见 {@link isEntrySchema}。
344
+ * 元素是串 / 数 / 枚举 / 字面量的集合 —— 工具名单(`allowTools` / `disallowedTools`)、范围名单(`scenarios` / `rosters`)、凭据引用(名 → env-NAME)—— 是
345
+ * 作者写下的**一个值**:不下钻、不逐元素剔。剔掉一个元素读出来的就不是作者写的那张名单(拒绝名单被截短 = 更松;凭据引用被截短 = 带着一半凭据去拨远端),
346
+ * 所以坏一个元素 ⇒ 持有它的那一条条目在上一层整条判不过、整条丢;在域顶层 ⇒ 没有可丢的条目,整域读不进。判据只读 schema 的形,不读名字、不登记身份。
347
+ *
301
348
  * 🔴 **零幸存者不算「部分损坏」**:一个集合如果所有条目都坏,那它不是「部分损坏的集合」,而是**整个坏掉
302
349
  * 的集合** —— 本函数对这种字段**一条都不丢**,原样留着让整域档位去裁。这条不是特判,是「抢救」的定义:
303
- * 没有要抢救的东西。它同时把一整类 fail-open 陷阱一次性挡住 —— 本 schema 里有若干字段**空 = 不设限**
304
- * (最典型的 `models.atModelAllowlist`:空/缺席 = 所有模型都可 @),把一份「全是坏值」的限制清单抢救成
305
- * 空数组,等于把运维的限制悄悄删了。这里不去枚举「哪些字段空了等于放权」(枚举必漏),而是**从不凭空
306
- * 造出一个空集合**。
350
+ * 没有要抢救的东西。它同时把一整类 fail-open 陷阱一次性挡住 —— 一个集合**空 = 不设限**时,把「全是坏条目」的集合抢救成
351
+ * 空集合,等于把运维的限制悄悄删了。这里不去枚举「哪些字段空了等于放权」(枚举必漏),而是**从不凭空造出一个空集合**。
352
+ * (「空 = 不设限」最常见的是值名单 —— 它们根本不被逐元素抢救,见上一条;零幸存者律守的是对象集合。)
307
353
  *
308
354
  * 🔴 **告警不许比它诊断的东西更危险**(复审 R1 两条,红先复现):① Record 的键是用户写的,完全可能就是
309
355
  * 一条粘错位置的凭据,所以路径里的键段过 {@link redactSecrets} 才出门(6.3.0 起经 `outgoingPath` 这一道;不变量①:secret 值永不随错误外流,
@@ -315,19 +361,19 @@ export interface EntrySalvageResult {
315
361
  * 没有任何域专用分支),再拿抢救后的那一条去判整条。体内丢的子条目以父坐标为前缀上账(`["projects", <id>, "contextItems", 1]`),
316
362
  * 体内压缩过的数组以全路径进位移表({@link EntryKeptIndex});整条最终仍判不过 ⇒ 整条丢,它体内的半路账一并作废(一条一个结论),
317
363
  * 记账行的判决取**原文**的(拒句坐标是原文档的,不是抢救形里压缩过的下标)。
318
- * 零幸存者律在**每一层**成立 —— 体内的集合全坏 ⇒ 不压成空集合,那一条照原样去判(于是整条丢):嵌套里同样有「空 = 不设限」的字段
319
- * (`skills[].scenarios` / `mcp.servers[].allowTools` …),抢救成 `[]` 就是把限定范围放成全开。账按文档序排(父条目丢在哪个位置,
364
+ * 零幸存者律在**每一层**成立 —— 体内的条目集合全坏 ⇒ 不压成空集合,那一条照原样去判(于是整条丢)。账按文档序排(父条目丢在哪个位置,
320
365
  * 体内的子条目就排在哪个位置)。
321
366
  *
322
367
  * **条目好坏只有一条判据**({@link judgeEntry};22.0.0):过它自己的 schema,**且体内没有键被剥**。带未知键的条目(拼错的收紧键、比本包新的
323
368
  * 写者写的前瞻键)是坏条目,与坏形条目同一条律处置 —— 丢它自己、`entry-dropped` 点名(词 `entry-unknown-key`)、零幸存者不丢、体内的嵌套集合先抢救。
324
369
  * 第三个参数 `domain` 说**哪个域的扩展命名空间生效**({@link EXTENSION_NAMESPACES}:models 条目上壳写的 `sema*` 不是未知键);必填 ——
325
- * 缺了就只能把壳写的每一条目录条目当带未知键丢掉,所以不是域名 ⇒ 响亮拒(TypeError),不替调用方猜。wire 上的 skills 清单传 `"skills"`。
370
+ * 缺了就只能把壳写的每一条目录条目当带未知键丢掉,所以不是域名 ⇒ 响亮拒(TypeError),不替调用方猜。
326
371
  *
327
372
  * 边界(如实登记):① 只下钻**条目**(集合的元素 / 值),不下钻顶层的普通对象字段(`models.atMention` 不是条目 —— 它里面的未知键不让任何条目丢,
328
373
  * 照旧剥键 + `unknown-keys-dropped`);② raw 不是纯 JSON 对象、字段值与 schema 形状对不上(schema 说数组、文档给对象)⇒ 原样返回,交给整域档位裁;
329
374
  * ③ 域级判据(重名 / 悬空 ref)不在本函数视野内 —— 丢条目救不了它们,调用方据此回落整域档位;
330
- * ④ 只认 `ZodArray` / `ZodRecord` 两种条目集合形 —— 别的形(元组等)不抢救,退回整域档位(保守方向);⑤ 递归深度止于 schema
375
+ * ④ 只认 `ZodArray` / `ZodRecord` 两种条目集合形、只认对象(与全由对象组成的联合)作条目 —— 别的形(元组、值名单、`z.lazy` 包着的元素等)
376
+ * 不抢救,退回上一层 / 整域档位(保守方向);⑤ 递归深度止于 schema
331
377
  * (本包没有自引用 schema);`z.lazy` 包着的 schema 不展开(`unwrapSchema` 不认它)⇒ 不下钻,那一条按原样判;⑥ 被剥键的扫描与告警面同一只
332
378
  * ({@link visitStripped}),同一个深度上界 —— 逐条丢弃域的 schema 里,能被剥键的那一层最深在第 6 段(collab 槽位成员),在上界之内。
333
379
  */
@@ -551,12 +597,16 @@ export declare function parseDomainSalvaged<K extends DomainName>(domain: K, raw
551
597
  * `"throw"` = keep fail-loud (defaulting would LOOSEN gates or destructively apply — worse than an outage,
552
598
  * consumers fail-static on last-good). A `satisfies Record<DomainName,…>` forces every FUTURE domain to make
553
599
  * this call explicitly (compile error until it's classified). Per-domain rationale:
554
- * - models/skills/mcp/systems/collab: additive capability catalogs — empty = the
600
+ * - **The law (24.0.0, the last domain of the class)**: a domain whose entry's absence WIDENS ({@link DOMAIN_ENTRY_SALVAGE} `"none"` for that
601
+ * reason) is also `"throw"` here — its empty default widens the same way, for every reader at once. `scenarios` / `plugins` / `skills`.
602
+ * - models/mcp/systems/collab: additive capability catalogs — empty = the
555
603
  * capability disappears (fail-closed), no gate is lost.
556
604
  * - scenarios: THROW (23.0.0) — an empty `scenarios` revives every built-in scenario an entry overrode, widening the tool surface of each;
557
605
  * defaulting would hand that to every reader that has no candidate gate. {@link DOMAIN_ENTRY_SALVAGE} judges the domain `"none"` for the same
558
606
  * reason, and a `"none"` domain that then defaulted would be the same loosening one level up (one bad entry ⇒ ALL overrides gone).
559
607
  * - plugins: THROW (23.0.0) — an empty `plugins` drops the hooks (guards among them) the references carried; same reasoning as `scenarios`.
608
+ * - skills: THROW (24.0.0) — an empty `skills` returns every built-in skill a center skill overrode by name (with the built-in's own tool
609
+ * allow list, without the center entry's deny list); same reasoning as `scenarios`. The wire manifest is the same domain and asks this row too.
560
610
  * - hosts: empty host registry = no auto-placement targets (availability-only); self-registration re-lands
561
611
  * entries as approved:false = 待批 (fail-closed).
562
612
  * - rosters: THROW — a lost roster makes resolveEffectiveForWorker fall back to the FULL models catalog
@@ -578,7 +628,7 @@ export declare function parseDomainSalvaged<K extends DomainName>(domain: K, raw
578
628
  export declare const DOMAIN_READ_FALLBACK: {
579
629
  readonly models: "default";
580
630
  readonly rosters: "throw";
581
- readonly skills: "default";
631
+ readonly skills: "throw";
582
632
  readonly mcp: "default";
583
633
  readonly plugins: "throw";
584
634
  readonly scenarios: "throw";
@@ -605,7 +655,9 @@ export declare const DOMAIN_READ_FALLBACK: {
605
655
  * (domain top level, a top-level plain object field) is still stripped and named (`unknown-keys-dropped`).
606
656
  * `"none"` = never drop a single entry: the first bad entry makes the whole domain unreadable. An unknown key inside an entry of such a
607
657
  * domain is stripped and named, as before 22.0.0 — those domains drop nothing, so the strip warning is the reader's signal.
608
- * (23.0.0: `scenarios` and `plugins` joined the seven — their entries' absence widens; see the judgment below.)
658
+ * (23.0.0: `scenarios` and `plugins` joined the seven, 24.0.0: `skills` — their entries' absence widens; see the judgment below.)
659
+ * An entry is an object: a collection whose elements are values (a tool list, a scope list, credential references) is ONE value of the entry
660
+ * holding it — never thinned element by element (24.0.0; see `salvageEntries`).
609
661
  * A `satisfies Record<DomainName,…>` forces every FUTURE domain to answer this explicitly (compile error until classified).
610
662
  *
611
663
  * **View face only.** The document face never salvages: `parseDomain` / `validateDomain` / `writeDomainFile` judge the whole
@@ -618,10 +670,13 @@ export declare const DOMAIN_READ_FALLBACK: {
618
670
  * absence WIDENS — the entry is a restriction, a guard, or an override of a built-in of the same name (its absence revives the built-in) — is `"none"`:
619
671
  * dropping the entry would be the same loosening as stripping its key. The judgment is written on the row (a trailing comment, closed set: a new
620
672
  * domain adds its row AND its judgment).
621
- * - models/skills/mcp/systems/collab: capability / content catalogs and grants — a dropped entry is
622
- * one capability gone (fail-closed). Inside a surviving entry the same holds: the nested collections these entries carry
623
- * are allowlists / scopings (`allowTools`, `scenarios`, `rosters`, `callsWorkers`, …) where one entry fewer only NARROWS,
624
- * and the zero-survivor law (never mint an empty collection — several of these read "empty = all") holds at every level.
673
+ * - models/mcp/systems/collab: capability / content catalogs and grants — a dropped entry is
674
+ * one capability gone (fail-closed). The value lists these entries carry (`allowTools`, `scenarios`, `rosters`, `callsWorkers`, …) are
675
+ * read whole: one bad element drops the entry that holds it (one capability gone), never a shorter list; nested OBJECT collections
676
+ * (collab slots / members) are entries in their own right, and the zero-survivor law (never mint an empty collection) holds at every level.
677
+ * - skills: NONE (24.0.0) — a center skill OVERRIDES the built-in skill of the same name, and carries its own tool allow / deny lists.
678
+ * A dropped skill returns the built-in (its allow list back, the center's deny list gone); a deny list thinned by one element is wider than
679
+ * the author wrote. The wire manifest is the same domain: it reads both tables through the same reader as the domain document.
625
680
  * - scenarios: NONE (23.0.0) — an entry names the tool surface of a scenario, and may carry the name of a built-in scenario (then it OVERRIDES
626
681
  * it, narrowing its tool surface). A dropped entry revives the built-in with its wider surface: the loosening 22.0.0's rule made out of a
627
682
  * misspelt or forward-looking key.
@@ -647,12 +702,12 @@ export declare const DOMAIN_READ_FALLBACK: {
647
702
  * - execution: NONE — a dropped lane / public key changes the execution mandate (放权,不许).
648
703
  * - limits: NONE — a dropped allowlist row changes a published ceiling (the domain is the one publishing seat of those ceilings).
649
704
  * - a2a: SALVAGE (18.0.0) — the peer roster is a capability catalog like mcp: a dropped peer is one remote agent fewer. A peer's
650
- * credential references (`headerRefs`) are in {@link ATOMIC_SALVAGE}: a bad reference drops the whole peer, never the reference
705
+ * credential references (`headerRefs`) are a value collection: a bad reference drops the whole peer, never the reference
651
706
  * alone (a peer kept with half of its credentials is the wrong failure direction). */
652
707
  export declare const DOMAIN_ENTRY_SALVAGE: {
653
708
  readonly models: "salvage";
654
709
  readonly rosters: "none";
655
- readonly skills: "salvage";
710
+ readonly skills: "none";
656
711
  readonly mcp: "salvage";
657
712
  readonly plugins: "none";
658
713
  readonly scenarios: "none";
@@ -691,9 +746,10 @@ export declare function buildEffective(version: number, getRaw: StoredDocumentRe
691
746
  * an open-world key.
692
747
  *
693
748
  * `skills` is the ONE wire divergence: on the wire it is a MANIFEST(content → contentHash,
694
- * {@link SkillsManifest}),so the full skills-domain schema would reject every LEGAL manifest and silently
695
- * default the domain(蒸发整张 skill 清单)— it validates against {@link SkillsManifestSchema} instead,
696
- * same "default" fallback tier as the skills domain itself.
749
+ * {@link SkillsManifest}),so the full skills-domain schema would MISREAD every legal manifest (each entry would read as
750
+ * `content: ""` with `contentHash` stripped as an unknown key) — it validates against
751
+ * {@link SkillsManifestSchema} instead, through the SAME reader as every domain (24.0.0, {@link readViewOr}): the skills domain's two tables
752
+ * answer for the manifest too (`"none"` + `"throw"` ⇒ one unreadable manifest entry makes the payload unreadable), and only `undefined` is absence.
697
753
  *
698
754
  * NEVER FABRICATES a domain the producer did not send (20.0.0): the domains of {@link WIRE_CARRIED_DOMAINS} (`prompts`, `a2a`) are carried by presence —
699
755
  * absent on the wire ⇒ absent in the result (an older producer does not know `a2a`; `prompts` is absent whenever nothing is published), present ⇒ the