@sema-agent/settings-schema 22.0.0 → 24.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +252 -0
- package/README.md +19 -1
- package/conformance/VERSION +1 -1
- package/conformance/cases/c34-skills-content-vs-manifest/expected.json +31 -17
- package/conformance/cases/c34-skills-content-vs-manifest/meta.json +1 -1
- package/conformance/cases/c36-skills-entry-without-content/expected.json +3 -66
- package/conformance/cases/c36-skills-entry-without-content/meta.json +1 -1
- package/conformance/cases/c37-skills-field-null/expected.json +9 -132
- package/conformance/cases/c37-skills-field-null/meta.json +1 -1
- package/conformance/cases/c87-a2a-credential-refs-not-partially-salvaged/expected.json +4 -12
- package/conformance/cases/c87-a2a-credential-refs-not-partially-salvaged/meta.json +1 -1
- package/dist/config-fns.d.ts +59 -27
- package/dist/config-fns.js +156 -124
- package/dist/conformance/derive.js +3 -4
- package/dist/file-store.d.ts +2 -2
- package/dist/types.d.ts +3 -14
- package/dist/types.js +24 -34
- package/docs/API-SURFACE.md +3 -5
- package/docs/CONFORMANCE.md +1 -1
- package/docs/CONSUMER-INTEGRATION.md +37 -2
- package/llms-full.txt +8 -5
- package/llms.txt +3 -2
- package/package.json +1 -1
|
@@ -1,144 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"domains": {
|
|
3
|
-
"outcome": "
|
|
4
|
-
"
|
|
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
|
|
9
|
+
"why": "拒:skills 文档是 null —— 坏形;读腿整域读不进、skills 读档 throw(24.0.0 起;此前降级成默认 + domain-defaulted);写入席不把 null 当空域存下。"
|
|
77
10
|
},
|
|
78
11
|
"wire": {
|
|
79
|
-
"outcome": "
|
|
80
|
-
"
|
|
81
|
-
|
|
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
|
-
"
|
|
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
|
|
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`
|
|
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
|
}
|
package/dist/config-fns.d.ts
CHANGED
|
@@ -291,19 +291,26 @@ export interface EntrySalvageResult {
|
|
|
291
291
|
/**
|
|
292
292
|
* 从**schema 自身**派生条目集合(数组字段 / Record 字段),逐条判,坏的丢掉并逐条记账。
|
|
293
293
|
*
|
|
294
|
-
*
|
|
295
|
-
*
|
|
296
|
-
*
|
|
294
|
+
* **诊断口,不是读腿**:本函数不查 {@link DOMAIN_ENTRY_SALVAGE} / {@link DOMAIN_READ_FALLBACK} —— 它回答「这份文档里哪几条判不过、为什么」,
|
|
295
|
+
* 不回答「读方该怎么读」。读腿只在表判 `"salvage"` 的域里拿它的结果({@link readView});对 `"none"` 域直接调它照样逐条报。
|
|
296
|
+
* 把它的 `value` 当文档再交给读口,是调用方自己在 `"none"` 域丢了条目,读法没有这一步。
|
|
297
|
+
*
|
|
298
|
+
* 入参是 **schema 而不是域名**:同一个域可以有不止一种文档表示(`skills` 在 wire 上是 manifest,`SkillsManifestSchema`)——
|
|
299
|
+
* 只吃域名的抢救点会把另一种表示漏在门外。吃 schema ⇒ 每种表示同一条律,没有第二实现。
|
|
297
300
|
*
|
|
298
301
|
* 为什么从 schema 派生而不是写一张「域 → 条目字段」表:那张表是第二份真源,开新域必漏。schema 里
|
|
299
302
|
* 「这个字段是一组条目」这件事本来就写着,读它即可 —— 新域天然被覆盖,零登记动作。
|
|
300
303
|
*
|
|
304
|
+
* 🔴 **条目是对象,一张值名单是一个值**(24.0.0):条目集合 = 元素(数组元素 / Record 值)是对象(或全由对象组成的联合)的集合,见 {@link isEntrySchema}。
|
|
305
|
+
* 元素是串 / 数 / 枚举 / 字面量的集合 —— 工具名单(`allowTools` / `disallowedTools`)、范围名单(`scenarios` / `rosters`)、凭据引用(名 → env-NAME)—— 是
|
|
306
|
+
* 作者写下的**一个值**:不下钻、不逐元素剔。剔掉一个元素读出来的就不是作者写的那张名单(拒绝名单被截短 = 更松;凭据引用被截短 = 带着一半凭据去拨远端),
|
|
307
|
+
* 所以坏一个元素 ⇒ 持有它的那一条条目在上一层整条判不过、整条丢;在域顶层 ⇒ 没有可丢的条目,整域读不进。判据只读 schema 的形,不读名字、不登记身份。
|
|
308
|
+
*
|
|
301
309
|
* 🔴 **零幸存者不算「部分损坏」**:一个集合如果所有条目都坏,那它不是「部分损坏的集合」,而是**整个坏掉
|
|
302
310
|
* 的集合** —— 本函数对这种字段**一条都不丢**,原样留着让整域档位去裁。这条不是特判,是「抢救」的定义:
|
|
303
|
-
* 没有要抢救的东西。它同时把一整类 fail-open 陷阱一次性挡住 ——
|
|
304
|
-
* (
|
|
305
|
-
*
|
|
306
|
-
* 造出一个空集合**。
|
|
311
|
+
* 没有要抢救的东西。它同时把一整类 fail-open 陷阱一次性挡住 —— 一个集合**空 = 不设限**时,把「全是坏条目」的集合抢救成
|
|
312
|
+
* 空集合,等于把运维的限制悄悄删了。这里不去枚举「哪些字段空了等于放权」(枚举必漏),而是**从不凭空造出一个空集合**。
|
|
313
|
+
* (「空 = 不设限」最常见的是值名单 —— 它们根本不被逐元素抢救,见上一条;零幸存者律守的是对象集合。)
|
|
307
314
|
*
|
|
308
315
|
* 🔴 **告警不许比它诊断的东西更危险**(复审 R1 两条,红先复现):① Record 的键是用户写的,完全可能就是
|
|
309
316
|
* 一条粘错位置的凭据,所以路径里的键段过 {@link redactSecrets} 才出门(6.3.0 起经 `outgoingPath` 这一道;不变量①:secret 值永不随错误外流,
|
|
@@ -315,19 +322,19 @@ export interface EntrySalvageResult {
|
|
|
315
322
|
* 没有任何域专用分支),再拿抢救后的那一条去判整条。体内丢的子条目以父坐标为前缀上账(`["projects", <id>, "contextItems", 1]`),
|
|
316
323
|
* 体内压缩过的数组以全路径进位移表({@link EntryKeptIndex});整条最终仍判不过 ⇒ 整条丢,它体内的半路账一并作废(一条一个结论),
|
|
317
324
|
* 记账行的判决取**原文**的(拒句坐标是原文档的,不是抢救形里压缩过的下标)。
|
|
318
|
-
* 零幸存者律在**每一层**成立 ——
|
|
319
|
-
* (`skills[].scenarios` / `mcp.servers[].allowTools` …),抢救成 `[]` 就是把限定范围放成全开。账按文档序排(父条目丢在哪个位置,
|
|
325
|
+
* 零幸存者律在**每一层**成立 —— 体内的条目集合全坏 ⇒ 不压成空集合,那一条照原样去判(于是整条丢)。账按文档序排(父条目丢在哪个位置,
|
|
320
326
|
* 体内的子条目就排在哪个位置)。
|
|
321
327
|
*
|
|
322
328
|
* **条目好坏只有一条判据**({@link judgeEntry};22.0.0):过它自己的 schema,**且体内没有键被剥**。带未知键的条目(拼错的收紧键、比本包新的
|
|
323
329
|
* 写者写的前瞻键)是坏条目,与坏形条目同一条律处置 —— 丢它自己、`entry-dropped` 点名(词 `entry-unknown-key`)、零幸存者不丢、体内的嵌套集合先抢救。
|
|
324
330
|
* 第三个参数 `domain` 说**哪个域的扩展命名空间生效**({@link EXTENSION_NAMESPACES}:models 条目上壳写的 `sema*` 不是未知键);必填 ——
|
|
325
|
-
* 缺了就只能把壳写的每一条目录条目当带未知键丢掉,所以不是域名 ⇒ 响亮拒(TypeError),不替调用方猜。
|
|
331
|
+
* 缺了就只能把壳写的每一条目录条目当带未知键丢掉,所以不是域名 ⇒ 响亮拒(TypeError),不替调用方猜。
|
|
326
332
|
*
|
|
327
333
|
* 边界(如实登记):① 只下钻**条目**(集合的元素 / 值),不下钻顶层的普通对象字段(`models.atMention` 不是条目 —— 它里面的未知键不让任何条目丢,
|
|
328
334
|
* 照旧剥键 + `unknown-keys-dropped`);② raw 不是纯 JSON 对象、字段值与 schema 形状对不上(schema 说数组、文档给对象)⇒ 原样返回,交给整域档位裁;
|
|
329
335
|
* ③ 域级判据(重名 / 悬空 ref)不在本函数视野内 —— 丢条目救不了它们,调用方据此回落整域档位;
|
|
330
|
-
* ④ 只认 `ZodArray` / `ZodRecord`
|
|
336
|
+
* ④ 只认 `ZodArray` / `ZodRecord` 两种条目集合形、只认对象(与全由对象组成的联合)作条目 —— 别的形(元组、值名单、`z.lazy` 包着的元素等)
|
|
337
|
+
* 不抢救,退回上一层 / 整域档位(保守方向);⑤ 递归深度止于 schema
|
|
331
338
|
* (本包没有自引用 schema);`z.lazy` 包着的 schema 不展开(`unwrapSchema` 不认它)⇒ 不下钻,那一条按原样判;⑥ 被剥键的扫描与告警面同一只
|
|
332
339
|
* ({@link visitStripped}),同一个深度上界 —— 逐条丢弃域的 schema 里,能被剥键的那一层最深在第 6 段(collab 槽位成员),在上界之内。
|
|
333
340
|
*/
|
|
@@ -551,8 +558,16 @@ export declare function parseDomainSalvaged<K extends DomainName>(domain: K, raw
|
|
|
551
558
|
* `"throw"` = keep fail-loud (defaulting would LOOSEN gates or destructively apply — worse than an outage,
|
|
552
559
|
* consumers fail-static on last-good). A `satisfies Record<DomainName,…>` forces every FUTURE domain to make
|
|
553
560
|
* this call explicitly (compile error until it's classified). Per-domain rationale:
|
|
554
|
-
* -
|
|
561
|
+
* - **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
|
|
562
|
+
* reason) is also `"throw"` here — its empty default widens the same way, for every reader at once. `scenarios` / `plugins` / `skills`.
|
|
563
|
+
* - models/mcp/systems/collab: additive capability catalogs — empty = the
|
|
555
564
|
* capability disappears (fail-closed), no gate is lost.
|
|
565
|
+
* - scenarios: THROW (23.0.0) — an empty `scenarios` revives every built-in scenario an entry overrode, widening the tool surface of each;
|
|
566
|
+
* defaulting would hand that to every reader that has no candidate gate. {@link DOMAIN_ENTRY_SALVAGE} judges the domain `"none"` for the same
|
|
567
|
+
* reason, and a `"none"` domain that then defaulted would be the same loosening one level up (one bad entry ⇒ ALL overrides gone).
|
|
568
|
+
* - plugins: THROW (23.0.0) — an empty `plugins` drops the hooks (guards among them) the references carried; same reasoning as `scenarios`.
|
|
569
|
+
* - 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
|
|
570
|
+
* 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.
|
|
556
571
|
* - hosts: empty host registry = no auto-placement targets (availability-only); self-registration re-lands
|
|
557
572
|
* entries as approved:false = 待批 (fail-closed).
|
|
558
573
|
* - rosters: THROW — a lost roster makes resolveEffectiveForWorker fall back to the FULL models catalog
|
|
@@ -574,10 +589,10 @@ export declare function parseDomainSalvaged<K extends DomainName>(domain: K, raw
|
|
|
574
589
|
export declare const DOMAIN_READ_FALLBACK: {
|
|
575
590
|
readonly models: "default";
|
|
576
591
|
readonly rosters: "throw";
|
|
577
|
-
readonly skills: "
|
|
592
|
+
readonly skills: "throw";
|
|
578
593
|
readonly mcp: "default";
|
|
579
|
-
readonly plugins: "
|
|
580
|
-
readonly scenarios: "
|
|
594
|
+
readonly plugins: "throw";
|
|
595
|
+
readonly scenarios: "throw";
|
|
581
596
|
readonly systems: "default";
|
|
582
597
|
readonly collab: "default";
|
|
583
598
|
readonly workers: "throw";
|
|
@@ -601,6 +616,9 @@ export declare const DOMAIN_READ_FALLBACK: {
|
|
|
601
616
|
* (domain top level, a top-level plain object field) is still stripped and named (`unknown-keys-dropped`).
|
|
602
617
|
* `"none"` = never drop a single entry: the first bad entry makes the whole domain unreadable. An unknown key inside an entry of such a
|
|
603
618
|
* domain is stripped and named, as before 22.0.0 — those domains drop nothing, so the strip warning is the reader's signal.
|
|
619
|
+
* (23.0.0: `scenarios` and `plugins` joined the seven, 24.0.0: `skills` — their entries' absence widens; see the judgment below.)
|
|
620
|
+
* 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
|
|
621
|
+
* holding it — never thinned element by element (24.0.0; see `salvageEntries`).
|
|
604
622
|
* A `satisfies Record<DomainName,…>` forces every FUTURE domain to answer this explicitly (compile error until classified).
|
|
605
623
|
*
|
|
606
624
|
* **View face only.** The document face never salvages: `parseDomain` / `validateDomain` / `writeDomainFile` judge the whole
|
|
@@ -609,12 +627,25 @@ export declare const DOMAIN_READ_FALLBACK: {
|
|
|
609
627
|
* it back would turn every dropped entry into a deletion — read-modify-write faces read the stored document with the document face.
|
|
610
628
|
*
|
|
611
629
|
* Per-domain rationale:
|
|
612
|
-
* -
|
|
613
|
-
*
|
|
614
|
-
*
|
|
615
|
-
*
|
|
630
|
+
* - **The judgment (23.0.0)**: `"salvage"` is for a domain whose entry's ABSENCE can only NARROW what is reachable. A domain whose entry's
|
|
631
|
+
* 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"`:
|
|
632
|
+
* 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
|
|
633
|
+
* domain adds its row AND its judgment).
|
|
634
|
+
* - models/mcp/systems/collab: capability / content catalogs and grants — a dropped entry is
|
|
635
|
+
* one capability gone (fail-closed). The value lists these entries carry (`allowTools`, `scenarios`, `rosters`, `callsWorkers`, …) are
|
|
636
|
+
* read whole: one bad element drops the entry that holds it (one capability gone), never a shorter list; nested OBJECT collections
|
|
637
|
+
* (collab slots / members) are entries in their own right, and the zero-survivor law (never mint an empty collection) holds at every level.
|
|
638
|
+
* - 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.
|
|
639
|
+
* 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
|
|
640
|
+
* the author wrote. The wire manifest is the same domain: it reads both tables through the same reader as the domain document.
|
|
641
|
+
* - 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
|
|
642
|
+
* 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
|
|
643
|
+
* misspelt or forward-looking key.
|
|
644
|
+
* - plugins: NONE (23.0.0) — an entry is the source reference of an executable surface (commands / hooks / MCP); its hooks may be guards
|
|
645
|
+
* (`PreToolUse` / `PermissionRequest`, see `./hooks-config`). A dropped reference takes the guard with it.
|
|
616
646
|
* - hosts: a dropped host is one placement target fewer; a dropped label makes a host match fewer `placement.requires`.
|
|
617
|
-
* - projects: SALVAGE — a registration absent from the ledger
|
|
647
|
+
* - projects: SALVAGE — a registration absent from the ledger is one project fewer (the pinned consumer reads a lookup miss as "no
|
|
648
|
+
* default-scope seed", not as a refused admission: the ledger is an additive registry, not a gate). Throwing the
|
|
618
649
|
* whole domain stops EVERY project of the scope, which protects nothing: one stored registration that a later, tighter
|
|
619
650
|
* schema refuses (12.2.1's UNC judgement on `contextItems[].value`) must not take the scope's other projects with it.
|
|
620
651
|
* Its whenUnreadable stance stays `"throw"` (a ledger that cannot be read at all is never defaulted — see
|
|
@@ -632,15 +663,15 @@ export declare const DOMAIN_READ_FALLBACK: {
|
|
|
632
663
|
* - execution: NONE — a dropped lane / public key changes the execution mandate (放权,不许).
|
|
633
664
|
* - limits: NONE — a dropped allowlist row changes a published ceiling (the domain is the one publishing seat of those ceilings).
|
|
634
665
|
* - 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
|
|
635
|
-
* credential references (`headerRefs`) are
|
|
666
|
+
* credential references (`headerRefs`) are a value collection: a bad reference drops the whole peer, never the reference
|
|
636
667
|
* alone (a peer kept with half of its credentials is the wrong failure direction). */
|
|
637
668
|
export declare const DOMAIN_ENTRY_SALVAGE: {
|
|
638
669
|
readonly models: "salvage";
|
|
639
670
|
readonly rosters: "none";
|
|
640
|
-
readonly skills: "
|
|
671
|
+
readonly skills: "none";
|
|
641
672
|
readonly mcp: "salvage";
|
|
642
|
-
readonly plugins: "
|
|
643
|
-
readonly scenarios: "
|
|
673
|
+
readonly plugins: "none";
|
|
674
|
+
readonly scenarios: "none";
|
|
644
675
|
readonly systems: "salvage";
|
|
645
676
|
readonly collab: "salvage";
|
|
646
677
|
readonly workers: "none";
|
|
@@ -676,9 +707,10 @@ export declare function buildEffective(version: number, getRaw: StoredDocumentRe
|
|
|
676
707
|
* an open-world key.
|
|
677
708
|
*
|
|
678
709
|
* `skills` is the ONE wire divergence: on the wire it is a MANIFEST(content → contentHash,
|
|
679
|
-
* {@link SkillsManifest}),so the full skills-domain schema would
|
|
680
|
-
*
|
|
681
|
-
*
|
|
710
|
+
* {@link SkillsManifest}),so the full skills-domain schema would MISREAD every legal manifest (each entry would read as
|
|
711
|
+
* `content: ""` with `contentHash` stripped as an unknown key) — it validates against
|
|
712
|
+
* {@link SkillsManifestSchema} instead, through the SAME reader as every domain (24.0.0, {@link readViewOr}): the skills domain's two tables
|
|
713
|
+
* answer for the manifest too (`"none"` + `"throw"` ⇒ one unreadable manifest entry makes the payload unreadable), and only `undefined` is absence.
|
|
682
714
|
*
|
|
683
715
|
* 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 —
|
|
684
716
|
* absent on the wire ⇒ absent in the result (an older producer does not know `a2a`; `prompts` is absent whenever nothing is published), present ⇒ the
|