@sema-agent/settings-schema 28.0.0 → 30.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 (179) hide show
  1. package/CHANGELOG.md +431 -0
  2. package/README.md +94 -14
  3. package/conformance/VERSION +1 -1
  4. package/conformance/cases/c01-entry-salvage-then-typo/expected.json +2 -2
  5. package/conformance/cases/c02-hosts-clamp-stacked/expected.json +1 -1
  6. package/conformance/cases/c03-literal-dotted-top-key/expected.json +1 -1
  7. package/conformance/cases/c04-all-bad-collection-not-salvaged/expected.json +1 -1
  8. package/conformance/cases/c07-hooks-is-not-a-config-domain/expected.json +1 -1
  9. package/conformance/cases/c08-limits-unknown-carried-64/expected.json +1 -1
  10. package/conformance/cases/c09-limits-unknown-carried-65/expected.json +1 -1
  11. package/conformance/cases/c10-record-key-secret-redacted-twice/expected.json +1 -1
  12. package/conformance/cases/c11-unicode-unknown-keys/expected.json +1 -1
  13. package/conformance/cases/c12-prototype-name-top-keys/expected.json +1 -1
  14. package/conformance/cases/c13-models-field-null/expected.json +1 -1
  15. package/conformance/cases/c14-models-field-empty-array/expected.json +1 -1
  16. package/conformance/cases/c15-models-field-number/expected.json +1 -1
  17. package/conformance/cases/c18-wire-envelope-not-an-object/expected.json +1 -1
  18. package/conformance/cases/c19-wire-envelope-no-version/expected.json +1 -1
  19. package/conformance/cases/c21-governance-empty-object-wins/expected.json +1 -1
  20. package/conformance/cases/c23-mixed-validity-models/expected.json +1 -1
  21. package/conformance/cases/c24-valid-entries-with-unknown-keys/expected.json +1 -1
  22. package/conformance/cases/c25-published-roundtrip-zero-warnings/expected.json +1 -1
  23. package/conformance/cases/c26-hosts-array-1024/expected.json +1 -1
  24. package/conformance/cases/c27-hosts-array-1025/expected.json +1 -1
  25. package/conformance/cases/c28-large-document-over-1mb/expected.json +1 -1
  26. package/conformance/cases/c29-salvage-then-domain-refine-fails/expected.json +1 -1
  27. package/conformance/cases/c30-version-triple-a-first/expected.json +1 -1
  28. package/conformance/cases/c31-version-triple-b-changed/expected.json +1 -1
  29. package/conformance/cases/c32-version-triple-a-restored/expected.json +1 -1
  30. package/conformance/cases/c33-limits-nested-carried-key/expected.json +1 -1
  31. package/conformance/cases/c34-skills-content-vs-manifest/expected.json +1 -1
  32. package/conformance/cases/c36-skills-entry-without-content/expected.json +1 -1
  33. package/conformance/cases/c38-remote-exec-is-a-non-domain-file/expected.json +1 -1
  34. package/conformance/cases/c39-hidden-file-in-config-d/expected.json +1 -1
  35. package/conformance/cases/c40-s712-identity-only-what-reads-out/expected.json +1 -1
  36. package/conformance/cases/c41-s792-encoded-pem-identity/expected.json +1 -1
  37. package/conformance/cases/c42-s792-unknown-key-secret-redacted/expected.json +1 -1
  38. package/conformance/cases/c43-s792-form-and-deep-encoded-pem/expected.json +1 -1
  39. package/conformance/cases/c44-s792-utf8-escape-glued-token/expected.json +1 -1
  40. package/conformance/cases/c45-s792-identity-bounds-and-decode-depth/expected.json +1 -1
  41. package/conformance/cases/c46-s811-host-name-url-userinfo-withheld/expected.json +1 -1
  42. package/conformance/cases/c47-s811-roles-key-url-userinfo-withheld/expected.json +1 -1
  43. package/conformance/cases/c48-s935-model-headers-transported/expected.json +1 -1
  44. package/conformance/cases/c49-s935-model-headers-secret-entry-dropped/expected.json +1 -1
  45. package/conformance/cases/c50-s784-lane-host-legal/expected.json +1 -1
  46. package/conformance/cases/c51-s784-lane-e2b-legal/expected.json +1 -1
  47. package/conformance/cases/c52-s784-lane-k8s-legal/expected.json +1 -1
  48. package/conformance/cases/c53-s784-lane-ssh-legal/expected.json +1 -1
  49. package/conformance/cases/c54-s784-lane-adb-legal/expected.json +1 -1
  50. package/conformance/cases/c55-s784-lane-local-docker-legal/expected.json +1 -1
  51. package/conformance/cases/c56-s784-lane-device-legal/expected.json +1 -1
  52. package/conformance/cases/c57-s784-g1-enabled-no-lane/expected.json +3 -3
  53. package/conformance/cases/c58-s784-g2-multitenant-host/expected.json +3 -3
  54. package/conformance/cases/c59-s784-g3-k8s-missing-image/expected.json +3 -3
  55. package/conformance/cases/c60-s784-g3-e2b-missing-key/expected.json +3 -3
  56. package/conformance/cases/c61-s784-g3-other-lane-key/expected.json +3 -3
  57. package/conformance/cases/c62-s784-g7a-session-tidb/expected.json +3 -3
  58. package/conformance/cases/c63-s784-host-two-replicas/expected.json +3 -3
  59. package/conformance/cases/c64-s784-multitenant-local-store/expected.json +3 -3
  60. package/conformance/cases/c65-s784-pg-without-db/expected.json +3 -3
  61. package/conformance/cases/c66-s784-memory-backend-mismatch/expected.json +3 -3
  62. package/conformance/cases/c67-s784-retired-field-loud/expected.json +3 -3
  63. package/conformance/cases/c68-s784-device-local-store/expected.json +3 -3
  64. package/conformance/cases/c69-deep-encoded-token-past-every-reading/expected.json +1 -1
  65. package/conformance/cases/c70-rewritten-token-in-front-of-encoded-pem-header/expected.json +1 -1
  66. package/conformance/cases/c71-one-scanner-write-reads-display-forms/expected.json +1 -1
  67. package/conformance/cases/c72-dangling-reference-write-seat-refuses/expected.json +1 -1
  68. package/conformance/cases/c73-projects-extended-registration-reads/expected.json +1 -1
  69. package/conformance/cases/c74-projects-over-bound-refused/expected.json +3 -72
  70. package/conformance/cases/c75-projects-patch-remote-uniqueness/expected.json +3 -72
  71. package/conformance/cases/c76-projects-entry-salvage-nested/expected.json +2 -2
  72. package/conformance/cases/c77-prompts-center-artifact-carried/expected.json +1 -1
  73. package/conformance/cases/c78-prompts-empty-bindings-refused/expected.json +2 -2
  74. package/conformance/cases/c78-prompts-empty-bindings-refused/meta.json +1 -1
  75. package/conformance/cases/c79-prompts-bad-worker-artifact-not-salvaged/expected.json +1 -1
  76. package/conformance/cases/c80-prompts-wire-v2-verbatim/expected.json +1 -1
  77. package/conformance/cases/c81-prompts-declaration-bindings-refused/expected.json +2 -2
  78. package/conformance/cases/c82-prompts-v1-catalog-refused/expected.json +2 -2
  79. package/conformance/cases/c83-prompts-bad-overlay-not-salvaged/expected.json +1 -1
  80. package/conformance/cases/c84-sandbox-git-block-carried-verbatim/expected.json +1 -1
  81. package/conformance/cases/c85-sandbox-git-refused-block-still-carried/expected.json +1 -1
  82. package/conformance/cases/c86-a2a-peers-legal/expected.json +1 -1
  83. package/conformance/cases/c87-a2a-credential-refs-not-partially-salvaged/expected.json +1 -1
  84. package/conformance/cases/c88-projects-content-attestation-carried/expected.json +1 -1
  85. package/conformance/cases/c89-projects-content-attestation-malformed/expected.json +1 -1
  86. package/conformance/cases/c90-mcp-assertion-credential-carried/expected.json +143 -0
  87. package/conformance/cases/c90-mcp-assertion-credential-carried/input.json +30 -0
  88. package/conformance/cases/c90-mcp-assertion-credential-carried/meta.json +6 -0
  89. package/conformance/cases/c91-mcp-assertion-header-retired-entry-dropped/expected.json +105 -0
  90. package/conformance/cases/c91-mcp-assertion-header-retired-entry-dropped/input.json +27 -0
  91. package/conformance/cases/c91-mcp-assertion-header-retired-entry-dropped/meta.json +6 -0
  92. package/conformance/cases/c92-mcp-principal-header-with-assertion-dropped/expected.json +105 -0
  93. package/conformance/cases/c92-mcp-principal-header-with-assertion-dropped/input.json +31 -0
  94. package/conformance/cases/c92-mcp-principal-header-with-assertion-dropped/meta.json +6 -0
  95. package/conformance/cases/c93-mcp-header-refs-with-credentials-dropped/expected.json +105 -0
  96. package/conformance/cases/c93-mcp-header-refs-with-credentials-dropped/input.json +33 -0
  97. package/conformance/cases/c93-mcp-header-refs-with-credentials-dropped/meta.json +6 -0
  98. package/conformance/cases/c94-mcp-credentials-env-kind-dropped/expected.json +105 -0
  99. package/conformance/cases/c94-mcp-credentials-env-kind-dropped/input.json +32 -0
  100. package/conformance/cases/c94-mcp-credentials-env-kind-dropped/meta.json +6 -0
  101. package/conformance/cases/c95-mcp-credentials-audience-not-connector-id-dropped/expected.json +105 -0
  102. package/conformance/cases/c95-mcp-credentials-audience-not-connector-id-dropped/input.json +30 -0
  103. package/conformance/cases/c95-mcp-credentials-audience-not-connector-id-dropped/meta.json +6 -0
  104. package/conformance/cases/c96-mcp-credentials-extra-member-dropped/expected.json +105 -0
  105. package/conformance/cases/c96-mcp-credentials-extra-member-dropped/input.json +31 -0
  106. package/conformance/cases/c96-mcp-credentials-extra-member-dropped/meta.json +6 -0
  107. package/conformance/cases/cc01-mcp-toolfaces-non-object/expected.json +1 -1
  108. package/conformance/cases/cc02-mcp-source-key-is-transported/expected.json +1 -1
  109. package/conformance/cases/cc03-model-compat-unknown-subkey/expected.json +1 -1
  110. package/conformance/cases/cli01-model-name-nfc-vs-nfd/expected.json +1 -1
  111. package/conformance/cases/cli02-control-and-zero-width-chars/expected.json +1 -1
  112. package/conformance/cases/cli03-credential-pasted-into-unknown-key/expected.json +1 -1
  113. package/conformance/cases/cli04-env-value-with-newline/expected.json +1 -1
  114. package/conformance/cases/cli04-env-value-with-newline/meta.json +1 -1
  115. package/conformance/cases/cli05-long-and-prefix-colliding-names/expected.json +1 -1
  116. package/conformance/cases/t01-absent-domain-key-not-null/expected.json +1 -1
  117. package/conformance/cases/t01-absent-domain-key-not-null/meta.json +1 -1
  118. package/conformance/cases/t03-prototype-name-key-not-swallowed/expected.json +1 -1
  119. package/conformance/cases/t04-secret-literal-never-in-warning-value/expected.json +1 -1
  120. package/conformance/cases/t04-secret-literal-never-in-warning-value/meta.json +1 -1
  121. package/conformance/cases/z01-every-domain-empty-object/expected.json +1 -1
  122. package/conformance/cases/z01-every-domain-empty-object/meta.json +1 -1
  123. package/conformance/cases/z02-every-domain-unknown-key/expected.json +1 -1
  124. package/dist/api/credentials.js +5 -7
  125. package/dist/api/lifecycle-events.d.ts +266 -0
  126. package/dist/api/lifecycle-events.js +169 -0
  127. package/dist/api/wire-scalars.d.ts +13 -0
  128. package/dist/api/wire-scalars.js +15 -0
  129. package/dist/atomic-write.d.ts +4 -0
  130. package/dist/atomic-write.js +26 -3
  131. package/dist/config-d-file.d.ts +1 -1
  132. package/dist/config-document-refusal.d.ts +4 -4
  133. package/dist/config-fns.d.ts +4 -2
  134. package/dist/config-fns.js +1 -1
  135. package/dist/config-root-documents.d.ts +1 -1
  136. package/dist/config-root-node.js +2 -1
  137. package/dist/conformance/corpus.d.ts +1 -1
  138. package/dist/conformance/derive.d.ts +13 -5
  139. package/dist/conformance/derive.js +37 -21
  140. package/dist/conformance/index.d.ts +1 -1
  141. package/dist/conformance/index.js +1 -1
  142. package/dist/conformance/run.js +8 -9
  143. package/dist/connector-authorize-url.d.ts +23 -0
  144. package/dist/connector-authorize-url.js +129 -0
  145. package/dist/connector-id.d.ts +23 -0
  146. package/dist/connector-id.js +27 -0
  147. package/dist/file-edit.d.ts +44 -0
  148. package/dist/file-edit.js +70 -1
  149. package/dist/file-store.d.ts +12 -7
  150. package/dist/file-store.js +72 -59
  151. package/dist/hooks.d.ts +15 -5
  152. package/dist/hooks.js +13 -3
  153. package/dist/index.d.ts +4 -0
  154. package/dist/index.js +5 -1
  155. package/dist/mcp-entry-credential.d.ts +47 -0
  156. package/dist/mcp-entry-credential.js +73 -0
  157. package/dist/mcp-request-entry.d.ts +32 -13
  158. package/dist/mcp-request-entry.js +104 -58
  159. package/dist/migration-receipt.d.ts +2 -2
  160. package/dist/migration-receipt.js +2 -2
  161. package/dist/one-time-migrations.d.ts +1 -1
  162. package/dist/one-time-migrations.js +68 -91
  163. package/dist/portable-domains.d.ts +18 -12
  164. package/dist/portable-domains.js +17 -12
  165. package/dist/retired-role-words.d.ts +1 -1
  166. package/dist/retired-role-words.js +4 -6
  167. package/dist/scheduler-store-node.d.ts +5 -2
  168. package/dist/scheduler-store-node.js +8 -5
  169. package/dist/sha256.d.ts +5 -0
  170. package/dist/sha256.js +7 -0
  171. package/dist/skills-manifest.js +2 -2
  172. package/dist/types.d.ts +80 -10
  173. package/dist/types.js +37 -44
  174. package/docs/API-SURFACE.md +47 -7
  175. package/docs/CONFORMANCE.md +6 -4
  176. package/docs/CONSUMER-INTEGRATION.md +147 -4
  177. package/llms-full.txt +45 -24
  178. package/llms.txt +27 -14
  179. package/package.json +3 -2
package/dist/types.js CHANGED
@@ -32,7 +32,7 @@ import { Sha256Digest } from "./sha256.js"; // the one `sha256:<hex>` digest for
32
32
  import { EXECUTION_LANES, EXECUTION_LANE_WORDS, LANE_SET_RULE, MEMORY_ENGINE_BACKENDS, SESSION_BACKENDS, STORE_BACKENDS, isBlankCoordinate, laneSetFlaws, retiredLaneWordRefusal } from "./execution-lanes.js"; // 7.0.0 M-R2: the lane / store vocabulary (one exported table)
33
33
  import { LANE_ENV_OWNER, LATE_LANE_ENV_KEYS, laneEnvSeat, laneRowOf } from "./execution-lane-index.js"; // package-private indexes derived from that table (none of them is in the barrel)
34
34
  import { migrationSignpost, retiredFormSentence, retiredKey } from "./retired-form.js"; // 11.0.0: the ONE retired-form sentence + key tombstone (package-private)
35
- import { retiredRoleWordsRefusal } from "./retired-role-words.js"; // 12.0.0: the retired role-word tombstone (package-private; SS-M8)
35
+ import { retiredRoleWordsRefusal } from "./retired-role-words.js"; // 12.0.0: the retired role-word tombstone (package-private)
36
36
  import { buildQuotedIssue, fixed } from "./quoted-issue.js"; // THE minting point of custom issues (package-private)
37
37
  import { RESERVED_MEMBER_NAMES, isReservedMemberName } from "./reserved-member-name.js"; // 18.0.0: the one reserved-member-name table (the record reader and the center-refs resolver ask the same predicate)
38
38
  import { AbsoluteHostPath } from "./host-path.js"; // the one host-path shape judge (a task's cwd and a project's folder / file entries)
@@ -40,6 +40,7 @@ import { RFC3339_DATE_TIME } from "./rfc3339.js"; // the package's one RFC 3339
40
40
  import { DEVICE_RELAY_RULE, deviceRelayFlaws } from "./device-relay.js"; // 16.0.0: the value grammar of the device lane's DEVICE_RELAY_URL (ws(s) URL or the literal none)
41
41
  import { TOOL_WIRE_NAME_MAX_CHARS, isUsableWireName } from "./wire-name.js"; // 18.0.0: the one "usable wire name" judge (the a2a peer name; the request-plane MCP / A2A readers ask the same function)
42
42
  import { deepFreeze } from "./deep-freeze.js";
43
+ import { McpEntryCredential } from "./mcp-entry-credential.js"; // 29.0.0: the http entry's credential reference (the one reading = the engine primitives' readCredentialRef)
43
44
  // COARSE, best-effort literal-secret SHAPE detector (NOT exhaustive — the real boundary is the env-NAME schema
44
45
  // on structured fields). Rejected in free-form value fields (worker `env`, model `extraBody`), URL components,
45
46
  // AND as an env-NAME value (an AWS key id is a valid env-NAME charset yet is a secret VALUE, not a NAME). Case-
@@ -425,20 +426,6 @@ export const PARSE_TRANSPARENT_KEYS = deepFreeze([
425
426
  validatedBy: "engine-ingest",
426
427
  why: "连接器条目声明的按工具轴覆盖层;轴的词表与形只有一只判官 = 引擎根导出 `readMcpToolAxes`(整声明一坏全拒、不默认),投影它的消费方(server 两腿)与写它的连接器都调它,本包只承载 —— 这里再写一份 zod 就是第二只判官,必漂。",
427
428
  },
428
- {
429
- domain: "mcp",
430
- path: "servers[].authForm",
431
- since: "12.2.0",
432
- validatedBy: "consumer",
433
- why: "连接器条目声明的认证形;词表与语义归读它的消费方(connectors 挂载读 / server 投影),本包只承载、不判语义。",
434
- },
435
- {
436
- domain: "mcp",
437
- path: "servers[].entryKind",
438
- since: "12.2.0",
439
- validatedBy: "consumer",
440
- why: "连接器条目声明的条目种类;词表与语义归读它的消费方(connectors 挂载读 / server 投影),本包只承载、不判语义。",
441
- },
442
429
  {
443
430
  domain: "entitlement",
444
431
  path: "subjects[].overrides[].value",
@@ -616,8 +603,8 @@ export const ModelEntry = z.object({
616
603
  // `consolidate` = 记忆整理(core FALLBACK consolidate→summarize)。
617
604
  // 两个词都**不进** roster 标记族(resolve-roster.ts):显式归 cheap 会让 server 把它钉死到 cheapRef,盖掉用户
618
605
  // `models.tiers.flash` 的档位与 core 兜底链 —— 新角色「不派生、走 core 兜底、只由 settings 显式钉」。
619
- // 12.0.0(硬破坏):`team` / `synthesize` 随 core 7.49.0 删掉(引擎对未知角色词响亮拒)—— 零别名、零双读;存着的这两个键由一次性迁移 SS-M8 删,
620
- // 迁移前到达判官的旧词拒句点名它(墓碑在 `./retired-role-words`)。`advisor`(teacher mode)本包从未收(没有消费方)。
606
+ // 12.0.0(硬破坏):`team` / `synthesize` 随 core 7.49.0 删掉(引擎对未知角色词响亮拒)—— 零别名、零双读;存着的这两个键到达判官时,
607
+ // 旧词拒句点名该词与出路(墓碑在 `./retired-role-words`)。`advisor`(teacher mode)本包从未收(没有消费方)。
621
608
  // 子集关系(本表 ⊆ 引擎角色表)由消费方服务端的型面对账钉住(本仓不依赖 core;dev 期的漂移门 ② 对拍 devDependency 那一版引擎)。
622
609
  export const ModelRole = z.enum(["default", "summarize", "subagent", "verifier", "classifier", "consolidate"], {
623
610
  error: (iss) => (iss.code === "invalid_value" ? retiredRoleWordsRefusal([iss.input]) : undefined),
@@ -628,7 +615,7 @@ export const RoleTarget = z.union([
628
615
  z.object({ select: z.object({ tier: ModelTier.optional(), needs: z.array(z.enum(["vision", "reasoning"])).optional(), prefer: z.enum(["cheapest", "premium"]).optional() }) }),
629
616
  ]);
630
617
  /** 角色 → 目标的图(`models.roles` 与 `rosters[].roles` 同一只)。键不认识 ⇒ zod 的「未知键」句;键里有 12.0.0 退役的角色词 ⇒ 那一句点名
631
- * 一次性迁移 SS-M8(同组别的未知键一并点名)。 */
618
+ * 该词与出路(同组别的未知键一并点名)。 */
632
619
  const RoleMap = z.partialRecord(ModelRole, RoleTarget, {
633
620
  // 枚举键的 record 在运行期以 `unrecognized_keys`(带 `keys`)报未知键,zod 的型面只列了 invalid_type / invalid_key —— 按运行期形读(钉:role-words-12.0.0)。
634
621
  error: (iss) => {
@@ -2575,13 +2562,19 @@ const McpEnvRefs = credentialRefs(z.record(ENV_NAME, ENV_NAME)); // target ENV k
2575
2562
  // SAME invariant-① gap as worker.env / model.extraBody / mcp stdio command+args (credentials belong on the
2576
2563
  // VALUE side = an env-NAME ref, never the name). The token charset includes `%`, so an encoded secret could ride
2577
2564
  // the name — containsSecretToken percent-decodes, catching it too. ONE shared schema for every header-name field
2578
- // (headerRefs keys, principalHeader, assertionHeader). R19.
2565
+ // (headerRefs keys, principalHeader). R19.
2579
2566
  const HTTP_HEADER_NAME = z
2580
2567
  .string()
2581
2568
  .regex(/^[A-Za-z0-9!#$%&'*+.^_`|~-]+$/, "must be an HTTP header NAME")
2582
2569
  .refine((s) => !containsSecretToken(s), buildQuotedIssue `HTTP header name must not contain a secret literal — credentials go in the env-NAME value, never the header name`);
2583
2570
  // Header NAME → ENV_NAME holding its value. Header names are tokens (RFC 7230) — not env-name-shaped.
2584
2571
  const McpHeaderRefs = credentialRefs(z.record(HTTP_HEADER_NAME, ENV_NAME));
2572
+ /** The retired `transport.assertionHeader` (29.0.0): one tombstone sentence for every face. */
2573
+ const MCP_ASSERTION_HEADER_RETIRED = {
2574
+ retiredIn: "29.0.0",
2575
+ migration: "SS-M13",
2576
+ now: 'transport.credentials = {"kind":"assertion","audience":"<connector id>"} (the audience is the connector id, used verbatim as the assertion\'s audience; the header is the engine\'s, no entry names it)',
2577
+ };
2585
2578
  export const McpTransport = z.discriminatedUnion("kind", [
2586
2579
  z.object({
2587
2580
  kind: z.literal("stdio"),
@@ -2613,14 +2606,15 @@ export const McpTransport = z.discriminatedUnion("kind", [
2613
2606
  * this is dynamic — the caller's principal, set per-request by the worker — so it's a header NAME, not an
2614
2607
  * env-NAME ref (no secret). Empty → the worker forwards no principal (server sees an anonymous call). */
2615
2608
  principalHeader: HTTP_HEADER_NAME.optional(),
2616
- /** 12.2.0 —— Header NAME the SERVICE fills with the CONNECTOR ASSERTION when proxying a tool call to this (hosted connector)
2617
- * server. Like `principalHeader` it is a header NAME, not an env-NAME ref (no secret), and it answers the same question
2618
- * — "which header carries the identity on this request" — with a different answer, so the two are MUTUALLY EXCLUSIVE:
2619
- * the entry-level check on {@link McpServerSpec} rejects both set. The name goes through the same judge
2620
- * ({@link HTTP_HEADER_NAME}) as `principalHeader` / `headerRefs` keys. This package judges only the SHAPE: how the assertion
2621
- * is minted and verified is the consumers' (connectors / server). Absent = no assertion header. On a stdio transport the key
2622
- * is stripped exactly as `principalHeader` is (the stdio member has no such key). */
2623
- assertionHeader: HTTP_HEADER_NAME.optional(),
2609
+ /** 29.0.0 —— the credential reference of a hosted connector entry: `{ kind: "assertion", audience: <connector id> }` ({@link McpEntryCredential}).
2610
+ * Read once by the engine primitives' `readCredentialRef` (the frozen copy it hands back is what this field holds); the admitted kinds are
2611
+ * `MCP_ENTRY_CREDENTIAL_KINDS` (only `assertion`); `audience` is the connector id, used verbatim as the assertion's audience. The header that
2612
+ * carries the assertion is the engine's (`MCP_ASSERTION_HEADER`) — no entry names it. Absent = no credential reference. Two entry-level rules on
2613
+ * {@link McpServerSpec}: not together with `principalHeader` (an assertion reference), not together with `headerRefs` (any kind: the engine
2614
+ * holds one reference per entry). */
2615
+ credentials: McpEntryCredential.optional(),
2616
+ /** Retired in 29.0.0 (it named the header for the connector assertion; the header is the engine's and the assertion is `credentials`). */
2617
+ assertionHeader: retiredKey("transport.assertionHeader", MCP_ASSERTION_HEADER_RETIRED),
2624
2618
  }),
2625
2619
  ]);
2626
2620
  /** The closed word table for {@link McpServerSpec}.contentOrigin — a MIRROR literal of the engine's
@@ -2694,20 +2688,17 @@ export const McpServerSpec = z.object({
2694
2688
  *
2695
2689
  * **解析透明** —— 形归谁校验、为什么不放这里:{@link PARSE_TRANSPARENT_KEYS}(`mcp.servers[].toolAxes`)。 */
2696
2690
  toolAxes: z.unknown().optional(),
2697
- /** 12.2.0 —— 连接器条目的认证形声明。缺席 = 不铸键;语义归消费方,本包只承载。
2698
- *
2699
- * **解析透明** —— 形归谁校验、为什么不放这里:{@link PARSE_TRANSPARENT_KEYS}(`mcp.servers[].authForm`)。 */
2700
- authForm: z.unknown().optional(),
2701
- /** 12.2.0 —— 连接器条目的种类声明。缺席 = 不铸键;语义归消费方,本包只承载。
2702
- *
2703
- * **解析透明** —— 形归谁校验、为什么不放这里:{@link PARSE_TRANSPARENT_KEYS}(`mcp.servers[].entryKind`)。 */
2704
- entryKind: z.unknown().optional(),
2705
2691
  notes: z.string().optional(),
2706
2692
  }).superRefine((s, ctx) => {
2707
- // 身份头二选一(12.2.0):`principalHeader` 与 `assertionHeader` 回答同一个问题「这台 http 服务器的请求上用哪个头送身份」—— 同设 = 两个答案。
2708
- // 互斥只在这一处判(拒句点名条目名,所以住条目层,不住传输层:传输层看不见 `name`)。
2709
- if (s.transport.kind === "http" && s.transport.principalHeader !== undefined && s.transport.assertionHeader !== undefined)
2710
- ctx.addIssue({ code: "custom", ...buildQuotedIssue `mcp server "${s.name}" sets both principalHeader and assertionHeader — an http entry names ONE header for the identity it sends: keep principalHeader (the end-user principal) or assertionHeader (the connector assertion), not both`, path: ["transport", "assertionHeader"] });
2693
+ // 29.0.0 —— two rules, one each, both in the entry layer (the sentence names the entry; the transport layer cannot see `name`):
2694
+ // · principalHeader ⊥ an assertion reference: the end-user principal header and a connector assertion answer "who is calling" twice;
2695
+ // · headerRefs ⊥ credentials (by presence, whatever the kind): the engine holds ONE credential reference per entry, and static header refs are minted into that same seat.
2696
+ if (s.transport.kind === "http" && s.transport.credentials !== undefined) {
2697
+ if (s.transport.principalHeader !== undefined && s.transport.credentials.kind === "assertion")
2698
+ ctx.addIssue({ code: "custom", ...buildQuotedIssue `mcp server "${s.name}" sets both principalHeader and an assertion reference in credentials — a hosted connector entry identifies its caller by the assertion: keep one of the two`, path: ["transport", "credentials"] });
2699
+ if (s.transport.headerRefs !== undefined)
2700
+ ctx.addIssue({ code: "custom", ...buildQuotedIssue `mcp server "${s.name}" sets both headerRefs and credentials — an entry carries one credential reference: keep one of the two`, path: ["transport", "credentials"] });
2701
+ }
2711
2702
  });
2712
2703
  export const McpConfig = z
2713
2704
  .object({ servers: z.array(McpServerSpec).prefault([]) })
@@ -2831,7 +2822,7 @@ export const PluginsConfig = z
2831
2822
  // 由服务席盖);「哪个场景用哪段」只在 artifact 里 `when.binding` 一处表达;哪一份给哪台 worker 只有 {@link promptArtifactFor} 一只读法。
2832
2823
  // 本包对 artifact 只镜像**结构与上界**(键闭集、类型、上界、`when.binding` 文法),不镜像任何引擎词表(op / band / target / trait / fact / host 词 /
2833
2824
  // target kind)—— 语义只有引擎的 verify 一个判官(传输门宽、语义门准:引擎收的,本包必收;对拍门 = 上游漂移门 ⑤ ⑦)。
2834
- // 13.x 的两轴(声明轴 `bindings` 与 catalog 轴 v1 信封)在 14.0.0 硬退役:型面删除,存量键是墓碑,一次性迁移 SS-M10 只删空的 `bindings: []`。
2825
+ // 13.x 的两轴(声明轴 `bindings` 与 catalog 轴 v1 信封)在 14.0.0 硬退役:型面删除,存量键是墓碑(写面整域拒;读面 `prompts` 整域缺省并经告警通道点名一条 `domain-defaulted`,不接告警通道则无声;一次性迁移 SS-M10 窗关删码后,拒句止于今天的位与出路,没有迁移指路)。
2835
2826
  /** 引擎 `ARTIFACT_LIMITS` 的镜像常量(本包不带引擎运行期依赖 ⇒ 镜像)。对表钉在**镜像的属主**这里:上游漂移门 ⑤ 逐键 === devDependency 钉住的那只引擎的导出。
2836
2827
  * `maxOverlayTextBytes` / `maxTotalTextBytes` 引擎按 UTF-8 字节量;本包的 zod 按字符(UTF-16 码元)量 —— 码元数恒 ≤ UTF-8 字节数,所以本包的门恒宽于引擎、方向对。
2837
2828
  * `maxIntentChars` / `maxRefChars` / `maxSourceRevisionChars` 引擎按 Unicode 码点量;本包用 `withinCodePoints` 同一把尺(不用 zod 的 `.max()`,它的单位随 zod 版本变)。 */
@@ -2959,11 +2950,13 @@ export const PublishedPromptArtifact = z
2959
2950
  .refine(withinCodePoints(PROMPT_ARTIFACT_LIMITS.maxSourceRevisionChars), buildQuotedIssue `sourceRevision is at most ${fixed(String(PROMPT_ARTIFACT_LIMITS.maxSourceRevisionChars))} characters (code points)`),
2960
2951
  })
2961
2952
  .strict();
2962
- /** 13.x 两轴的墓碑(14.0.0):`bindings` / `catalog` 同一行。 */
2953
+ /** 13.x 两轴的墓碑(14.0.0):`bindings` / `catalog` 同一行。14.0.0 之前存下来的旧形没有哪一步替运维改写(一次性迁移 SS-M10 随窗到期删了),
2954
+ * 拒句止于今天的位与出路:键从存储文档里删掉;旧声明与 v1 catalog 在本包里转不成 artifact(声明要经中心的卡编译器,catalog 的 digest 是引擎铸的),
2955
+ * 要中心层就从中心的编辑器重新发布。 */
2963
2956
  const PROMPTS_AXES_RETIRED = {
2964
2957
  retiredIn: "14.0.0",
2965
- now: "the center artifact (prompts.artifact for every worker, prompts.workers.<name> for one worker)",
2966
- migration: "SS-M10",
2958
+ now: "the center artifact (prompts.artifact for every worker, prompts.workers.<name> for one worker) — delete the key from the stored document " +
2959
+ "(the old declarations and the v1 catalog cannot be converted: republish the prompts from the center's editor)",
2967
2960
  };
2968
2961
  /** prompts 域存储形 v2:中心层的身份。web-admin 店(草稿 / 发布快照 / 回滚史)与本地 `config.d/prompts.json` 同形。 */
2969
2962
  export const PromptsConfig = z.object({
@@ -3007,7 +3000,7 @@ export const DOMAIN_SCHEMAS = deepFreeze({
3007
3000
  entitlement: EntitlementConfig,
3008
3001
  execution: ExecutionPolicy, // 0.8.0: S3 execution-lane policy (scope 级; client-advisory until service gate)
3009
3002
  projects: ProjectsConfig, // 0.10.0: 142-S3 project identity ledger + 无仓铸造权威 (scope=tenant 轴; NOT portable — 租户身份数据)
3010
- prompts: PromptsConfig, // 0.10.18 起;14.0.0 单轴:中心 artifact 的身份(`{ artifact?, workers? }`);13.x 两轴的键是墓碑(SS-M10)
3003
+ prompts: PromptsConfig, // 0.10.18 起;14.0.0 单轴:中心 artifact 的身份(`{ artifact?, workers? }`);13.x 两轴的键是墓碑
3011
3004
  limits: LimitsConfig, // 0.19.0: cost/限流族热更新发布位(消费方 #322 批1;本地腿闭集缺口的源头修复)
3012
3005
  a2a: A2aConfig, // 18.0.0: 常驻出站 A2A 对端名册(便携;本地腿 config.d/a2a.json 与中心腿 /effective.a2a 同一个声明座;线上按在场性承运,见 WIRE_CARRIED_DOMAINS)
3013
3006
  // integrations + access: DELETED in 0.6.0 (EXPERT-REDESIGN §9) — parseDomain/effective/路由随之 404。
@@ -4,9 +4,9 @@
4
4
  > 每次全量重算并逐名比对 —— 加 / 删 / 改形一个导出而不重生成本档 ⇒ 红。导出面的每次变动因此以本档的 diff 出现在评审里。
5
5
  > 形:`value` = 运行期拿得到的值;`type` = 只在类型层;`value+type` = 同名的值与类型(zod schema 与它推出的类型)。
6
6
 
7
- 子路径 24 条(资产出口 `./package.json` / `./fleet-paths.json` 不是模块,不列),导出名合计 1522 个(同名在多条子路径上各计一次)。
7
+ 子路径 24 条(资产出口 `./package.json` / `./fleet-paths.json` 不是模块,不列),导出名合计 1562 个(同名在多条子路径上各计一次)。
8
8
 
9
- ## `.`(798)
9
+ ## `.`(831)
10
10
 
11
11
  - `A2aConfig` — value+type
12
12
  - `A2aPeerSpec` — value+type
@@ -42,6 +42,10 @@
42
42
  - `CONFIG_CHANGE_SOURCES` — value
43
43
  - `CONFIG_DOCUMENT_REFUSAL_REASONS` — value
44
44
  - `CONFIG_ROOT_DOCUMENTS` — value
45
+ - `CONNECTOR_AUTHORIZE_QUERY` — value
46
+ - `CONNECTOR_AUTHORIZE_URL_FLAWS` — value
47
+ - `CONNECTOR_ID_MAX` — value
48
+ - `CONNECTOR_ID_RULE` — value
45
49
  - `CONTROL_AND_BIDI_CHARS` — value
46
50
  - `CREDENTIAL_PARAM_NAMES` — value
47
51
  - `CROSS_SESSION_INBOUND_UNSET` — value
@@ -73,6 +77,10 @@
73
77
  - `ConfigPath` — type
74
78
  - `ConfigReader` — type
75
79
  - `ConfigRootDocument` — type
80
+ - `ConnectorAuthorizeBinding` — type
81
+ - `ConnectorAuthorizeQueryName` — type
82
+ - `ConnectorAuthorizeUrlFlaw` — type
83
+ - `ConnectorId` — value+type
76
84
  - `CredentialHandleAnswer` — value+type
77
85
  - `CredentialParamName` — type
78
86
  - `CredentialResolveRequest` — value+type
@@ -216,6 +224,7 @@
216
224
  - `HOOK_CLOUD_WORDS` — value
217
225
  - `HOOK_ENTRY_FIELDS` — value
218
226
  - `HOOK_ENTRY_TYPES` — value
227
+ - `HOOK_ENV_BLANK_REASONS` — value
219
228
  - `HOOK_EVENTS` — value
220
229
  - `HOOK_EVENT_MATCHER_FIELD` — value
221
230
  - `HOOK_EVENT_OWNER` — value
@@ -233,6 +242,7 @@
233
242
  - `HookEntryFields` — type
234
243
  - `HookEntryType` — type
235
244
  - `HookEnvBlank` — type
245
+ - `HookEnvBlankReason` — type
236
246
  - `HookEnvInterpolation` — type
237
247
  - `HookEventName` — value+type
238
248
  - `HookInput` — value+type
@@ -277,11 +287,15 @@
277
287
  - `LAYER_ADMISSION_VERDICTS` — value
278
288
  - `LAYER_PARTS_UNREAD_CODE` — value
279
289
  - `LEASE_STATES` — value
290
+ - `LIFECYCLE_PAGE_REFUSALS` — value
291
+ - `LIFECYCLE_PAGE_REFUSAL_ERRORS` — value
280
292
  - `LaneSetFlaw` — type
281
293
  - `LaneTenancy` — type
282
294
  - `LayerAdmissionVerdict` — type
283
295
  - `LayerPartsUnreadNotice` — type
284
296
  - `LeaseState` — value+type
297
+ - `LifecyclePageRefusal` — value+type
298
+ - `LifecyclePageRefusalError` — type
285
299
  - `LimitsConfig` — value+type
286
300
  - `LogoutRequest` — value+type
287
301
  - `LogoutResponse` — value+type
@@ -289,7 +303,9 @@
289
303
  - `MAX_HASH_DEPTH` — value
290
304
  - `MAX_HASH_WRAPPER_RESERVE` — value
291
305
  - `MCP_CONTENT_ORIGINS` — value
306
+ - `MCP_ENTRY_CREDENTIAL_KINDS` — value
292
307
  - `MCP_POLICY_RULES` — value
308
+ - `MCP_REQUEST_KEY_REFUSALS` — value
293
309
  - `MCP_SERVER_LIST_KEYS` — value
294
310
  - `MEMORY_ENGINE_BACKENDS` — value
295
311
  - `MIN_TRUST_WORDS` — value
@@ -300,11 +316,14 @@
300
316
  - `MarkedMigrationId` — type
301
317
  - `McpConfig` — value+type
302
318
  - `McpContentOrigin` — type
319
+ - `McpEntryCredential` — value+type
320
+ - `McpEntryCredentialKind` — type
303
321
  - `McpEntryKeyIssue` — type
304
322
  - `McpPolicyBlock` — type
305
323
  - `McpPolicyLayer` — type
306
324
  - `McpPolicyRule` — type
307
325
  - `McpPolicyServer` — type
326
+ - `McpRequestKeyRefusal` — type
308
327
  - `McpServerListEntry` — type
309
328
  - `McpServerListKey` — type
310
329
  - `McpServerSpec` — value+type
@@ -342,7 +361,9 @@
342
361
  - `PLAIN_STRING_RECORD_FAULTS` — value
343
362
  - `PLUGIN_ORIGIN` — value
344
363
  - `PRINCIPAL_INC_CLAIM` — value
364
+ - `PRINCIPAL_LIFECYCLE_EVENT_KINDS` — value
345
365
  - `PRINCIPAL_MAX_LENGTH` — value
366
+ - `PRINCIPAL_RECONCILE_MAX_ITEMS` — value
346
367
  - `PRIVATE_KEY_PEM_HEADER` — value
347
368
  - `PROBE_CPU_CORES_MAX` — value
348
369
  - `PROBE_MEM_BYTES_MAX` — value
@@ -380,7 +401,14 @@
380
401
  - `PreToolUseHookInput` — value
381
402
  - `PrincipalCapsWire` — value+type
382
403
  - `PrincipalIncarnation` — value+type
404
+ - `PrincipalLifecycleEvent` — value+type
405
+ - `PrincipalLifecycleEventKind` — type
406
+ - `PrincipalLifecycleEventPage` — value+type
383
407
  - `PrincipalOrgMemoryWire` — value+type
408
+ - `PrincipalReconcileAnswer` — value+type
409
+ - `PrincipalReconcileItem` — value+type
410
+ - `PrincipalReconcileRequest` — value+type
411
+ - `PrincipalStanding` — value+type
384
412
  - `ProjectContextItem` — value+type
385
413
  - `ProjectContextItemKind` — type
386
414
  - `ProjectRegistration` — value+type
@@ -429,6 +457,7 @@
429
457
  - `RemoteExecSpec` — value+type
430
458
  - `RequestMcpTransport` — type
431
459
  - `RequestMcpTransportRead` — type
460
+ - `RequestStringRecordRead` — type
432
461
  - `ReservedMemberName` — type
433
462
  - `ResolvedEffective` — type
434
463
  - `ResolvedMemberAdmission` — type
@@ -640,7 +669,10 @@
640
669
  - `classifyTimeClaims` — value
641
670
  - `collectEnvRefs` — value
642
671
  - `compareGeneration` — value
672
+ - `connectorAuthorizeUrlFlaws` — value
673
+ - `connectorAuthorizeUrlOf` — value
643
674
  - `containsSecretToken` — value
675
+ - `contentDigest` — value
644
676
  - `createSiblingResolver` — value
645
677
  - `credentialParamWordOf` — value
646
678
  - `danglingRefs` — value
@@ -678,6 +710,7 @@
678
710
  - `isAtLeast` — value
679
711
  - `isBlankCoordinate` — value
680
712
  - `isCanonicalGeneration` — value
713
+ - `isConnectorId` — value
681
714
  - `isContentOriginWord` — value
682
715
  - `isCredentialParamName` — value
683
716
  - `isDisclosableIdentity` — value
@@ -744,10 +777,10 @@
744
777
  - `readEngineSignal` — value
745
778
  - `readEnvModelSlots` — value
746
779
  - `readHttpHookAllowlistLayer` — value
747
- - `readMcpIdentityHeaders` — value
748
780
  - `readModelRefusals` — value
749
781
  - `readPlainStringRecord` — value
750
782
  - `readRequestMcpTransport` — value
783
+ - `readRequestStringRecord` — value
751
784
  - `readScopedTokenBinding` — value
752
785
  - `readServingLeaseRequest` — value
753
786
  - `readServingLeaseResponse` — value
@@ -972,10 +1005,11 @@
972
1005
  - `stableHash` — value
973
1006
  - `stableStringify` — value
974
1007
 
975
- ## `./sha256`(3)
1008
+ ## `./sha256`(4)
976
1009
 
977
1010
  - `SHA256_DIGEST_RE` — value
978
1011
  - `Sha256Digest` — value
1012
+ - `contentDigest` — value
979
1013
  - `sha256Hex` — value
980
1014
 
981
1015
  ## `./skills-manifest`(4)
@@ -1125,7 +1159,7 @@
1125
1159
  - `LegName` — type
1126
1160
  - `LegOutcome` — type
1127
1161
  - `LegStance` — type
1128
- - `NON_PORTABLE_DOMAINS` — value
1162
+ - `NON_LOCAL_READ_DOMAINS` — value
1129
1163
  - `OutcomeDivergence` — type
1130
1164
  - `PACKAGE_ROOT` — value
1131
1165
  - `PathDivergence` — type
@@ -1215,8 +1249,9 @@
1215
1249
  - `tightenVerdict` — value
1216
1250
  - `trustRank` — value
1217
1251
 
1218
- ## `./node`(56)
1252
+ ## `./node`(60)
1219
1253
 
1254
+ - `ConditionalWriteResult` — type
1220
1255
  - `ConfigBundle` — type
1221
1256
  - `ConfigDDocumentName` — type
1222
1257
  - `ConfigDFileReason` — type
@@ -1234,7 +1269,9 @@
1234
1269
  - `EnvModelsMint` — type
1235
1270
  - `FileConfigRead` — type
1236
1271
  - `FileConfigStore` — value+type
1272
+ - `LOCAL_READ_DOMAINS` — value
1237
1273
  - `LocalConfig` — type
1274
+ - `LocalReadDomain` — type
1238
1275
  - `MigrateConfigDirectoryOptions` — type
1239
1276
  - `MigrateConfigDocumentsOptions` — type
1240
1277
  - `NON_DOMAIN_CONFIG_FILES` — value
@@ -1270,6 +1307,7 @@
1270
1307
  - `validateRemoteExec` — value
1271
1308
  - `writeBundle` — value
1272
1309
  - `writeDomainFile` — value
1310
+ - `writeDomainFileIf` — value
1273
1311
  - `writeEnvModelsDecision` — value
1274
1312
  - `writeEnvModelsDecisionSync` — value
1275
1313
  - `writeRemoteExec` — value
@@ -1303,7 +1341,7 @@
1303
1341
  - `parseSchedulerStore` — value
1304
1342
  - `serializeSchedulerStore` — value
1305
1343
 
1306
- ## `./hooks`(103)
1344
+ ## `./hooks`(105)
1307
1345
 
1308
1346
  - `AgentHookEntry` — value+type
1309
1347
  - `AssistantTurnError` — value+type
@@ -1330,6 +1368,7 @@
1330
1368
  - `HOOK_CLOUD_WORDS` — value
1331
1369
  - `HOOK_ENTRY_FIELDS` — value
1332
1370
  - `HOOK_ENTRY_TYPES` — value
1371
+ - `HOOK_ENV_BLANK_REASONS` — value
1333
1372
  - `HOOK_EVENTS` — value
1334
1373
  - `HOOK_EVENT_MATCHER_FIELD` — value
1335
1374
  - `HOOK_EVENT_OWNER` — value
@@ -1341,6 +1380,7 @@
1341
1380
  - `HookEntryFields` — type
1342
1381
  - `HookEntryType` — type
1343
1382
  - `HookEnvBlank` — type
1383
+ - `HookEnvBlankReason` — type
1344
1384
  - `HookEnvInterpolation` — type
1345
1385
  - `HookEventName` — value+type
1346
1386
  - `HookInput` — value+type
@@ -106,11 +106,11 @@ expect(report.ok).toBe(true);
106
106
  22.0.0 起两腿在「条目只多带未知键」上分开:读腿丢那一条(`entry-unknown-key`),文档面剥键受理。律对此一臂:这种丢弃不算抢救;
107
107
  受理形删掉那几处坐标上的条目 = 读腿那一格,且那里装着读腿点名的同一条(身份对得上);每处坐标下严写至少剥了一个键;严写告警面减去这些条目内的键
108
108
  = 读腿的剥键 / 承运告警。零幸存者(整域缺省)且全因未知键的 case,冻结的 `domain-defaulted` 不带理由,手登在测试里(一行一条理由、反向核)。
109
- 今天 101 条语料:44 受理(其中 6 条读腿丢了带未知键的条目)、57 拒(读腿抢救过坏条目的 32 条;读腿整条拒的 17 条;带非域名键的 7 条;悬空引用的 1 条)。
109
+ 今天 110 条语料:45 受理(其中 5 条读腿丢了带未知键的条目)、65 拒(读腿抢救过坏条目的 39 条;读腿整条拒的 18 条;带非域名键的 7 条;悬空引用的 1 条)。
110
110
  - **为什么不派生**:严写结局不是读结局的一种表示变换(读腿抢救处严写拒);从 `domains` 期望派生会让一份金样的错同时改写两条腿。
111
111
  每条 case 的严写金样显式入库、各自冻结,`why` 写在金样旁边。
112
112
  - **负控**(`test/conformance-mutation.test.ts` 第十一靶):把 `parseDomainLoud` 换成读腿的宽松解析 ⇒ 严写腿**恰好**红在读腿抢救过的
113
- 那 38 条上(32 条金样拒、宽松受理;6 条金样受理、宽松读丢了带未知键的条目 ⇒ 受理形不同);把非域名键静默跳过 ⇒ 恰好红在那 7 条上。
113
+ 那 44 条上(39 条金样拒、宽松受理;5 条金样受理、宽松读丢了带未知键的条目 ⇒ 受理形不同);把非域名键静默跳过 ⇒ 恰好红在那 7 条上。
114
114
 
115
115
  ## 2. 报告形
116
116
 
@@ -178,7 +178,7 @@ expect(report.ok).toBe(true);
178
178
  ```
179
179
  conformance/
180
180
  VERSION # = 包版本;release 模式三方对齐的那一头
181
- baseline.json # 空文档集的 effective(冻结 golden;非便携域的那一格由它供给)
181
+ baseline.json # 空文档集的 effective(冻结 golden;非本地读取域的那一格由它供给)
182
182
  historical/<包>@<版本>.json # historical 真跑证据(firstRedOn 的唯一出处)
183
183
  cases/<id>/
184
184
  input.json # { meta:{version,updatedAt}, domains:{…}, wirePayload?, localFiles? }
@@ -220,7 +220,7 @@ sema-test 的读数,是本仓自己重跑 `node scripts/conformance-historical.m
220
220
  |---|---|---|
221
221
  | `T1-wire-carried-domains` | wire | `buildEffective` 恒物化每个域;wire 对承运表 `WIRE_CARRIED_DOMAINS`(`prompts`、`a2a`)按**在场性**挂回 —— 线上读口不编造生产方没发的域:缺席进缺席出;在场时 `prompts` 是**未解析的原文档**,`a2a` 是域腿读数。**由常量派生,不手抄域名**;覆盖律要求表里每个域都有语料让两腿在它上面真的分开 |
222
222
  | `T2-skills-representation` | wire | 域形带 `content`,wire 形带 `contentHash`(manifest);判据 schema 随表示走,读法不随 —— 24.0.0 起清单与域文档同一只读法、同两张表(`skills` 不逐条丢、读档 throw),剥键告警两腿同读(此前 wire 腿没有 skills 的剥键告警,派生把它们滤掉) |
223
- | `T3-non-portable-domains` | local-root | `config.d/` 只读 `PORTABLE_DOMAINS`;其余域取 schema 默认 + `unread-config-file{non-portable-domain}`。**由常量派生,不手抄域名** |
223
+ | `T3-non-local-read-domains` | local-root | `config.d/` 只读 `LOCAL_READ_DOMAINS`(便携域集 + `projects`);其余域(workers / hosts / systems / entitlement,即 `NON_LOCAL_READ_DOMAINS`)取 schema 默认 + `unread-config-file{not-a-local-read-domain}`(30.0.0 前这只原因词叫另一个名字,见 CHANGELOG 30.0.0)。**由常量派生,不手抄域名**;29.0.0 前这一格读便携域集,`projects` 因此被当作本地不读 |
224
224
  | `T4-unknown-top-level-key` | wire + local-root | wire 是 open-world,不认识的顶层键**逐字承运**;`domains` 腿按域名取文档故无声;local-root 报 `unread-config-file{not-a-domain}` |
225
225
  | `T5-file-layer-first` | local-root | `config.d/<域>.json` 必须是 JSON **对象**(空文件 / `null` / 数组 / 标量一律 fail-closed),这一层在域解析**之前** |
226
226
  | `T6-file-name-classification` | local-root | `config.d/` 的文件分三类:域文件(读)/ `NON_DOMAIN_CONFIG_FILES`(`remote-exec.json` —— 有自己的读取与校验路径,**不**报未知文件)/ 隐藏文件与非 `.json`(扫描忽略);只有剩下的才报 `not-a-domain` |
@@ -231,6 +231,8 @@ sema-test 的读数,是本仓自己重跑 `node scripts/conformance-historical.m
231
231
  若入参与期望都走同一只哈希函数,把哈希算错会**两侧同样错**,整套 wire 语料照样全绿(一次真实的双向抵消
232
232
  假绿,对抗复审复现)。所以凡该变换**非恒等**的 case,kit **fail-loud 拒绝派生** wire 腿 —— 那条腿必须写
233
233
  显式金样(入库即冻结,哈希一改就红),另有一格变异律压着这只手。其余五条变换只搬 / 只删,不铸新值,照常派生。
234
+ 这只护栏(29.0.0 起)住在派生积木件 `deriveWireExpectation` 自己身上:语料跑器与在跑器之外直接调用积木件的嵌入方同一只判、同一句
235
+ (句子以 `deriveWireExpectation: ` 起头;跑器只在前面加 `conformance corpus: <case>/expected.json#wire cannot be derived — ` 这一段坐标)。
234
236
 
235
237
  ## 7. 规范化与比对(kit 内单铸,消费方零复述)
236
238