release-skill 0.9.16 → 0.9.18

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 (356) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/.codebuddy-plugin/plugin.json +1 -1
  3. package/.codex-plugin/plugin.json +2 -2
  4. package/.cursor-plugin/plugin.json +10 -0
  5. package/.kimi-plugin/plugin.json +1 -1
  6. package/.qoder-plugin/plugin.json +10 -0
  7. package/CHANGELOG.md +64 -0
  8. package/INSTALL.md +104 -9
  9. package/INSTALL.zh-CN.md +78 -7
  10. package/README.md +87 -32
  11. package/README.zh-CN.md +71 -30
  12. package/adapters/claude/.claude-plugin/plugin.json +1 -1
  13. package/adapters/claude/bin/consumer-contract-vectors.json +7 -7
  14. package/adapters/claude/bin/error-codes.json +1 -1
  15. package/adapters/claude/bin/foundation-resource-binding.json +1 -1
  16. package/adapters/claude/bin/prebuild-manifest.json +8 -4
  17. package/adapters/claude/bin/prebuilds/darwin-arm64/bound_read.darwin-arm64.node +0 -0
  18. package/adapters/claude/bin/prebuilds/darwin-x64/bound_read.darwin-x64.node +0 -0
  19. package/adapters/claude/bin/prebuilds/linux-arm64-gnu/bound_read.linux-arm64-gnu.node +0 -0
  20. package/adapters/claude/bin/prebuilds/linux-x64-gnu/bound_read.linux-x64-gnu.node +0 -0
  21. package/adapters/claude/bin/registry.json +1 -1
  22. package/adapters/claude/bin/release-skill.bundle.mjs +4950 -1819
  23. package/adapters/claude/bin/rules.json +1 -1
  24. package/adapters/claude/data/hosts/cursor/host-descriptor.json +34 -0
  25. package/adapters/claude/data/hosts/registry.json +1 -0
  26. package/adapters/claude/schemas/release-plan.schema.json +255 -25
  27. package/adapters/claude/schemas/release-project.schema.json +228 -26
  28. package/adapters/claude/skills/release-finish/SKILL.md +29 -15
  29. package/adapters/claude/skills/release-help/SKILL.md +40 -39
  30. package/adapters/claude/skills/release-verify/SKILL.md +2 -2
  31. package/adapters/claude/src/schemas/host-descriptor.schema.json +9 -2
  32. package/adapters/codex/.codex-plugin/plugin.json +2 -2
  33. package/adapters/codex/bin/consumer-contract-vectors.json +7 -7
  34. package/adapters/codex/bin/error-codes.json +1 -1
  35. package/adapters/codex/bin/foundation-resource-binding.json +1 -1
  36. package/adapters/codex/bin/prebuild-manifest.json +8 -4
  37. package/adapters/codex/bin/prebuilds/darwin-arm64/bound_read.darwin-arm64.node +0 -0
  38. package/adapters/codex/bin/prebuilds/darwin-x64/bound_read.darwin-x64.node +0 -0
  39. package/adapters/codex/bin/prebuilds/linux-arm64-gnu/bound_read.linux-arm64-gnu.node +0 -0
  40. package/adapters/codex/bin/prebuilds/linux-x64-gnu/bound_read.linux-x64-gnu.node +0 -0
  41. package/adapters/codex/bin/registry.json +1 -1
  42. package/adapters/codex/bin/release-skill.bundle.mjs +4950 -1819
  43. package/adapters/codex/bin/rules.json +1 -1
  44. package/adapters/codex/data/hosts/cursor/host-descriptor.json +34 -0
  45. package/adapters/codex/data/hosts/registry.json +1 -0
  46. package/adapters/codex/schemas/release-plan.schema.json +255 -25
  47. package/adapters/codex/schemas/release-project.schema.json +228 -26
  48. package/adapters/codex/skills/release-finish/SKILL.md +29 -15
  49. package/adapters/codex/skills/release-help/SKILL.md +40 -39
  50. package/adapters/codex/skills/release-verify/SKILL.md +2 -2
  51. package/adapters/codex/src/schemas/host-descriptor.schema.json +9 -2
  52. package/adapters/cursor/.cursor-plugin/plugin.json +10 -0
  53. package/adapters/cursor/bin/consumer-contract-vectors.json +110 -0
  54. package/adapters/cursor/bin/error-codes.json +161 -0
  55. package/adapters/cursor/bin/foundation-legal/skill-family-contracts/LICENSE +202 -0
  56. package/adapters/cursor/bin/foundation-legal/skill-family-contracts/NOTICE +10 -0
  57. package/adapters/cursor/bin/foundation-legal/skill-family-engineering-kit/LICENSE +202 -0
  58. package/adapters/cursor/bin/foundation-legal/skill-family-engineering-kit/NOTICE +10 -0
  59. package/adapters/cursor/bin/foundation-legal/skill-family-engineering-kit/THIRD_PARTY_NOTICES +142 -0
  60. package/adapters/cursor/bin/foundation-legal/skill-family-harness-node/LICENSE +202 -0
  61. package/adapters/cursor/bin/foundation-legal/skill-family-harness-node/NOTICE +10 -0
  62. package/adapters/cursor/bin/foundation-legal/skill-family-harness-node/native-NOTICE +2 -0
  63. package/adapters/cursor/bin/foundation-resource-binding.json +1 -0
  64. package/adapters/cursor/bin/kernel-protocol.json +60 -0
  65. package/adapters/cursor/bin/license-texts/Apache-2.0.txt +201 -0
  66. package/adapters/cursor/bin/license-texts/MIT.txt +21 -0
  67. package/adapters/cursor/bin/prebuild-manifest.json +83 -0
  68. package/adapters/cursor/bin/prebuilds/darwin-arm64/bound_read.darwin-arm64.node +0 -0
  69. package/adapters/cursor/bin/prebuilds/darwin-x64/bound_read.darwin-x64.node +0 -0
  70. package/adapters/cursor/bin/prebuilds/linux-arm64-gnu/bound_read.linux-arm64-gnu.node +0 -0
  71. package/adapters/cursor/bin/prebuilds/linux-x64-gnu/bound_read.linux-x64-gnu.node +0 -0
  72. package/adapters/cursor/bin/registry.json +347 -0
  73. package/adapters/cursor/bin/release-skill-local-finish.mjs +4 -0
  74. package/adapters/cursor/bin/release-skill.bundle.mjs +151806 -0
  75. package/adapters/cursor/bin/release-skill.mjs +54 -0
  76. package/adapters/cursor/bin/rules.json +104 -0
  77. package/adapters/cursor/bin/schemas/consumer-contract-vector.schema.json +149 -0
  78. package/adapters/cursor/data/hosts/claude/host-descriptor.json +45 -0
  79. package/adapters/cursor/data/hosts/codebuddy/host-descriptor.json +26 -0
  80. package/adapters/cursor/data/hosts/codex/host-descriptor.json +45 -0
  81. package/adapters/cursor/data/hosts/cursor/host-descriptor.json +34 -0
  82. package/adapters/cursor/data/hosts/deepseek-harness/host-descriptor.json +23 -0
  83. package/adapters/cursor/data/hosts/kimi-code/host-descriptor.json +36 -0
  84. package/adapters/cursor/data/hosts/qoder/host-descriptor.json +26 -0
  85. package/adapters/cursor/data/hosts/registry.json +14 -0
  86. package/adapters/cursor/data/hosts/workbuddy/host-descriptor.json +34 -0
  87. package/adapters/cursor/data/licensing/registry.json +211 -0
  88. package/adapters/cursor/data/licensing/schema.json +207 -0
  89. package/adapters/cursor/native/safe-write/binding.gyp +41 -0
  90. package/adapters/cursor/native/safe-write/prebuilds/darwin-arm64/safe_write.node +0 -0
  91. package/adapters/cursor/native/safe-write/prebuilds.json +24 -0
  92. package/adapters/cursor/native/safe-write/src/safe_write.cc +2032 -0
  93. package/adapters/cursor/schemas/.render-manifest.json +41 -0
  94. package/adapters/cursor/schemas/approval-record.schema.json +115 -0
  95. package/adapters/cursor/schemas/artifact-lock.schema.json +111 -0
  96. package/adapters/cursor/schemas/artifact-plan.schema.json +52 -0
  97. package/adapters/cursor/schemas/artifact-policy.schema.json +76 -0
  98. package/adapters/cursor/schemas/evidence-event-v2.schema.json +164 -0
  99. package/adapters/cursor/schemas/evidence-event.schema.json +89 -0
  100. package/adapters/cursor/schemas/postpublish-approval-record.schema.json +47 -0
  101. package/adapters/cursor/schemas/release-plan.schema.json +2226 -0
  102. package/adapters/cursor/schemas/release-project.schema.json +1815 -0
  103. package/adapters/cursor/schemas/release-run.schema.json +777 -0
  104. package/adapters/cursor/skills/release-assess/SKILL.md +61 -0
  105. package/adapters/cursor/skills/release-config/SKILL.md +151 -0
  106. package/adapters/cursor/skills/release-docs/SKILL.md +120 -0
  107. package/adapters/cursor/skills/release-finish/SKILL.md +155 -0
  108. package/adapters/cursor/skills/release-help/SKILL.md +155 -0
  109. package/adapters/cursor/skills/release-marketplace/SKILL.md +157 -0
  110. package/adapters/cursor/skills/release-prepare/SKILL.md +136 -0
  111. package/adapters/cursor/skills/release-publish/SKILL.md +92 -0
  112. package/adapters/cursor/skills/release-reconcile/SKILL.md +81 -0
  113. package/adapters/cursor/skills/release-setup/SKILL.md +132 -0
  114. package/adapters/cursor/skills/release-verify/SKILL.md +110 -0
  115. package/adapters/cursor/src/schemas/adapter-build-manifest.schema.json +41 -0
  116. package/adapters/cursor/src/schemas/adapter-peer-verification-request.schema.json +54 -0
  117. package/adapters/cursor/src/schemas/adapter-peer-verification-result.schema.json +54 -0
  118. package/adapters/cursor/src/schemas/adapter-source.schema.json +47 -0
  119. package/adapters/cursor/src/schemas/audit-baseline-pin.schema.json +163 -0
  120. package/adapters/cursor/src/schemas/declared-read-surface-result.schema.json +61 -0
  121. package/adapters/cursor/src/schemas/engineering-baseline.schema.json +77 -0
  122. package/adapters/cursor/src/schemas/executable-identity-observation.schema.json +162 -0
  123. package/adapters/cursor/src/schemas/filesystem-root-binding.schema.json +14 -0
  124. package/adapters/cursor/src/schemas/filesystem-tree-observation.schema.json +71 -0
  125. package/adapters/cursor/src/schemas/fixed-set-publication-manifest.schema.json +108 -0
  126. package/adapters/cursor/src/schemas/fixed-set-publication-receipt.schema.json +148 -0
  127. package/adapters/cursor/src/schemas/host-capability-fact.schema.json +31 -0
  128. package/adapters/cursor/src/schemas/host-descriptor.schema.json +144 -0
  129. package/adapters/cursor/src/schemas/host-operation-plan.schema.json +57 -0
  130. package/adapters/cursor/src/schemas/host-operation-receipt.schema.json +81 -0
  131. package/adapters/cursor/src/schemas/host-probe-result.schema.json +30 -0
  132. package/adapters/cursor/src/schemas/host-registry.schema.json +18 -0
  133. package/adapters/cursor/src/schemas/host-verification-request.schema.json +67 -0
  134. package/adapters/cursor/src/schemas/host-verification-result.schema.json +149 -0
  135. package/adapters/cursor/src/schemas/managed-file-lock.schema.json +77 -0
  136. package/adapters/cursor/src/schemas/migration-manifest.schema.json +412 -0
  137. package/adapters/cursor/src/schemas/observation-scope.schema.json +91 -0
  138. package/adapters/cursor/src/schemas/operation-request.schema.json +58 -0
  139. package/adapters/cursor/src/schemas/operation-result.schema.json +130 -0
  140. package/adapters/cursor/src/schemas/platform-difference-registry.schema.json +110 -0
  141. package/adapters/cursor/src/schemas/plugin-verification-request.schema.json +499 -0
  142. package/adapters/cursor/src/schemas/plugin-verification-result.schema.json +1217 -0
  143. package/adapters/cursor/src/schemas/profile-adoption-declaration.schema.json +111 -0
  144. package/adapters/cursor/src/schemas/profile-descriptor.schema.json +99 -0
  145. package/adapters/cursor/src/schemas/project-manifest.schema.json +67 -0
  146. package/adapters/cursor/src/schemas/project-profile.schema.json +25 -0
  147. package/adapters/cursor/src/schemas/public-boundary-declaration.schema.json +73 -0
  148. package/adapters/cursor/src/schemas/report-binding.schema.json +42 -0
  149. package/adapters/cursor/src/schemas/report-model.schema.json +308 -0
  150. package/adapters/cursor/src/schemas/skill-family-directory-verification-request.schema.json +100 -0
  151. package/adapters/cursor/src/schemas/skill-family-directory-verification-result.schema.json +193 -0
  152. package/adapters/cursor/src/schemas/source-authority-receipt.schema.json +31 -0
  153. package/adapters/cursor/src/schemas/state-event-envelope.schema.json +38 -0
  154. package/adapters/cursor/src/schemas/state-snapshot-metadata.schema.json +25 -0
  155. package/adapters/cursor/src/schemas/structured-scan-policy.schema.json +97 -0
  156. package/adapters/cursor/src/schemas/surface-scan-policy.schema.json +42 -0
  157. package/adapters/cursor/src/schemas/timeout-policy.schema.json +24 -0
  158. package/adapters/cursor/src/schemas/token-estimate-record.schema.json +75 -0
  159. package/adapters/cursor/src/schemas/token-estimate-result.schema.json +43 -0
  160. package/adapters/cursor/src/schemas/watchdog-termination-envelope.schema.json +156 -0
  161. package/adapters/kimi/.kimi-plugin/plugin.json +1 -1
  162. package/adapters/kimi/bin/consumer-contract-vectors.json +7 -7
  163. package/adapters/kimi/bin/error-codes.json +1 -1
  164. package/adapters/kimi/bin/foundation-resource-binding.json +1 -1
  165. package/adapters/kimi/bin/prebuild-manifest.json +8 -4
  166. package/adapters/kimi/bin/prebuilds/darwin-arm64/bound_read.darwin-arm64.node +0 -0
  167. package/adapters/kimi/bin/prebuilds/darwin-x64/bound_read.darwin-x64.node +0 -0
  168. package/adapters/kimi/bin/prebuilds/linux-arm64-gnu/bound_read.linux-arm64-gnu.node +0 -0
  169. package/adapters/kimi/bin/prebuilds/linux-x64-gnu/bound_read.linux-x64-gnu.node +0 -0
  170. package/adapters/kimi/bin/registry.json +1 -1
  171. package/adapters/kimi/bin/release-skill.bundle.mjs +4950 -1819
  172. package/adapters/kimi/bin/rules.json +1 -1
  173. package/adapters/kimi/data/hosts/cursor/host-descriptor.json +34 -0
  174. package/adapters/kimi/data/hosts/registry.json +1 -0
  175. package/adapters/kimi/schemas/release-plan.schema.json +255 -25
  176. package/adapters/kimi/schemas/release-project.schema.json +228 -26
  177. package/adapters/kimi/skills/release-finish/SKILL.md +29 -15
  178. package/adapters/kimi/skills/release-help/SKILL.md +40 -39
  179. package/adapters/kimi/skills/release-verify/SKILL.md +2 -2
  180. package/adapters/kimi/src/schemas/host-descriptor.schema.json +9 -2
  181. package/adapters/qoder/.qoder-plugin/plugin.json +10 -0
  182. package/adapters/qoder/bin/consumer-contract-vectors.json +110 -0
  183. package/adapters/qoder/bin/error-codes.json +161 -0
  184. package/adapters/qoder/bin/foundation-legal/skill-family-contracts/LICENSE +202 -0
  185. package/adapters/qoder/bin/foundation-legal/skill-family-contracts/NOTICE +10 -0
  186. package/adapters/qoder/bin/foundation-legal/skill-family-engineering-kit/LICENSE +202 -0
  187. package/adapters/qoder/bin/foundation-legal/skill-family-engineering-kit/NOTICE +10 -0
  188. package/adapters/qoder/bin/foundation-legal/skill-family-engineering-kit/THIRD_PARTY_NOTICES +142 -0
  189. package/adapters/qoder/bin/foundation-legal/skill-family-harness-node/LICENSE +202 -0
  190. package/adapters/qoder/bin/foundation-legal/skill-family-harness-node/NOTICE +10 -0
  191. package/adapters/qoder/bin/foundation-legal/skill-family-harness-node/native-NOTICE +2 -0
  192. package/adapters/qoder/bin/foundation-resource-binding.json +1 -0
  193. package/adapters/qoder/bin/kernel-protocol.json +60 -0
  194. package/adapters/qoder/bin/license-texts/Apache-2.0.txt +201 -0
  195. package/adapters/qoder/bin/license-texts/MIT.txt +21 -0
  196. package/adapters/qoder/bin/prebuild-manifest.json +83 -0
  197. package/adapters/qoder/bin/prebuilds/darwin-arm64/bound_read.darwin-arm64.node +0 -0
  198. package/adapters/qoder/bin/prebuilds/darwin-x64/bound_read.darwin-x64.node +0 -0
  199. package/adapters/qoder/bin/prebuilds/linux-arm64-gnu/bound_read.linux-arm64-gnu.node +0 -0
  200. package/adapters/qoder/bin/prebuilds/linux-x64-gnu/bound_read.linux-x64-gnu.node +0 -0
  201. package/adapters/qoder/bin/registry.json +347 -0
  202. package/adapters/qoder/bin/release-skill-local-finish.mjs +4 -0
  203. package/adapters/qoder/bin/release-skill.bundle.mjs +151806 -0
  204. package/adapters/qoder/bin/release-skill.mjs +54 -0
  205. package/adapters/qoder/bin/rules.json +104 -0
  206. package/adapters/qoder/bin/schemas/consumer-contract-vector.schema.json +149 -0
  207. package/adapters/qoder/data/hosts/claude/host-descriptor.json +45 -0
  208. package/adapters/qoder/data/hosts/codebuddy/host-descriptor.json +26 -0
  209. package/adapters/qoder/data/hosts/codex/host-descriptor.json +45 -0
  210. package/adapters/qoder/data/hosts/cursor/host-descriptor.json +34 -0
  211. package/adapters/qoder/data/hosts/deepseek-harness/host-descriptor.json +23 -0
  212. package/adapters/qoder/data/hosts/kimi-code/host-descriptor.json +36 -0
  213. package/adapters/qoder/data/hosts/qoder/host-descriptor.json +26 -0
  214. package/adapters/qoder/data/hosts/registry.json +14 -0
  215. package/adapters/qoder/data/hosts/workbuddy/host-descriptor.json +34 -0
  216. package/adapters/qoder/data/licensing/registry.json +211 -0
  217. package/adapters/qoder/data/licensing/schema.json +207 -0
  218. package/adapters/qoder/native/safe-write/binding.gyp +41 -0
  219. package/adapters/qoder/native/safe-write/prebuilds/darwin-arm64/safe_write.node +0 -0
  220. package/adapters/qoder/native/safe-write/prebuilds.json +24 -0
  221. package/adapters/qoder/native/safe-write/src/safe_write.cc +2032 -0
  222. package/adapters/qoder/schemas/.render-manifest.json +41 -0
  223. package/adapters/qoder/schemas/approval-record.schema.json +115 -0
  224. package/adapters/qoder/schemas/artifact-lock.schema.json +111 -0
  225. package/adapters/qoder/schemas/artifact-plan.schema.json +52 -0
  226. package/adapters/qoder/schemas/artifact-policy.schema.json +76 -0
  227. package/adapters/qoder/schemas/evidence-event-v2.schema.json +164 -0
  228. package/adapters/qoder/schemas/evidence-event.schema.json +89 -0
  229. package/adapters/qoder/schemas/postpublish-approval-record.schema.json +47 -0
  230. package/adapters/qoder/schemas/release-plan.schema.json +2226 -0
  231. package/adapters/qoder/schemas/release-project.schema.json +1815 -0
  232. package/adapters/qoder/schemas/release-run.schema.json +777 -0
  233. package/adapters/qoder/skills/release-assess/SKILL.md +60 -0
  234. package/adapters/qoder/skills/release-config/SKILL.md +150 -0
  235. package/adapters/qoder/skills/release-docs/SKILL.md +119 -0
  236. package/adapters/qoder/skills/release-finish/SKILL.md +154 -0
  237. package/adapters/qoder/skills/release-help/SKILL.md +154 -0
  238. package/adapters/qoder/skills/release-marketplace/SKILL.md +156 -0
  239. package/adapters/qoder/skills/release-prepare/SKILL.md +135 -0
  240. package/adapters/qoder/skills/release-publish/SKILL.md +91 -0
  241. package/adapters/qoder/skills/release-reconcile/SKILL.md +80 -0
  242. package/adapters/qoder/skills/release-setup/SKILL.md +131 -0
  243. package/adapters/qoder/skills/release-verify/SKILL.md +109 -0
  244. package/adapters/qoder/src/schemas/adapter-build-manifest.schema.json +41 -0
  245. package/adapters/qoder/src/schemas/adapter-peer-verification-request.schema.json +54 -0
  246. package/adapters/qoder/src/schemas/adapter-peer-verification-result.schema.json +54 -0
  247. package/adapters/qoder/src/schemas/adapter-source.schema.json +47 -0
  248. package/adapters/qoder/src/schemas/audit-baseline-pin.schema.json +163 -0
  249. package/adapters/qoder/src/schemas/declared-read-surface-result.schema.json +61 -0
  250. package/adapters/qoder/src/schemas/engineering-baseline.schema.json +77 -0
  251. package/adapters/qoder/src/schemas/executable-identity-observation.schema.json +162 -0
  252. package/adapters/qoder/src/schemas/filesystem-root-binding.schema.json +14 -0
  253. package/adapters/qoder/src/schemas/filesystem-tree-observation.schema.json +71 -0
  254. package/adapters/qoder/src/schemas/fixed-set-publication-manifest.schema.json +108 -0
  255. package/adapters/qoder/src/schemas/fixed-set-publication-receipt.schema.json +148 -0
  256. package/adapters/qoder/src/schemas/host-capability-fact.schema.json +31 -0
  257. package/adapters/qoder/src/schemas/host-descriptor.schema.json +144 -0
  258. package/adapters/qoder/src/schemas/host-operation-plan.schema.json +57 -0
  259. package/adapters/qoder/src/schemas/host-operation-receipt.schema.json +81 -0
  260. package/adapters/qoder/src/schemas/host-probe-result.schema.json +30 -0
  261. package/adapters/qoder/src/schemas/host-registry.schema.json +18 -0
  262. package/adapters/qoder/src/schemas/host-verification-request.schema.json +67 -0
  263. package/adapters/qoder/src/schemas/host-verification-result.schema.json +149 -0
  264. package/adapters/qoder/src/schemas/managed-file-lock.schema.json +77 -0
  265. package/adapters/qoder/src/schemas/migration-manifest.schema.json +412 -0
  266. package/adapters/qoder/src/schemas/observation-scope.schema.json +91 -0
  267. package/adapters/qoder/src/schemas/operation-request.schema.json +58 -0
  268. package/adapters/qoder/src/schemas/operation-result.schema.json +130 -0
  269. package/adapters/qoder/src/schemas/platform-difference-registry.schema.json +110 -0
  270. package/adapters/qoder/src/schemas/plugin-verification-request.schema.json +499 -0
  271. package/adapters/qoder/src/schemas/plugin-verification-result.schema.json +1217 -0
  272. package/adapters/qoder/src/schemas/profile-adoption-declaration.schema.json +111 -0
  273. package/adapters/qoder/src/schemas/profile-descriptor.schema.json +99 -0
  274. package/adapters/qoder/src/schemas/project-manifest.schema.json +67 -0
  275. package/adapters/qoder/src/schemas/project-profile.schema.json +25 -0
  276. package/adapters/qoder/src/schemas/public-boundary-declaration.schema.json +73 -0
  277. package/adapters/qoder/src/schemas/report-binding.schema.json +42 -0
  278. package/adapters/qoder/src/schemas/report-model.schema.json +308 -0
  279. package/adapters/qoder/src/schemas/skill-family-directory-verification-request.schema.json +100 -0
  280. package/adapters/qoder/src/schemas/skill-family-directory-verification-result.schema.json +193 -0
  281. package/adapters/qoder/src/schemas/source-authority-receipt.schema.json +31 -0
  282. package/adapters/qoder/src/schemas/state-event-envelope.schema.json +38 -0
  283. package/adapters/qoder/src/schemas/state-snapshot-metadata.schema.json +25 -0
  284. package/adapters/qoder/src/schemas/structured-scan-policy.schema.json +97 -0
  285. package/adapters/qoder/src/schemas/surface-scan-policy.schema.json +42 -0
  286. package/adapters/qoder/src/schemas/timeout-policy.schema.json +24 -0
  287. package/adapters/qoder/src/schemas/token-estimate-record.schema.json +75 -0
  288. package/adapters/qoder/src/schemas/token-estimate-result.schema.json +43 -0
  289. package/adapters/qoder/src/schemas/watchdog-termination-envelope.schema.json +156 -0
  290. package/adapters/workbuddy/.codebuddy-plugin/plugin.json +1 -1
  291. package/adapters/workbuddy/bin/consumer-contract-vectors.json +7 -7
  292. package/adapters/workbuddy/bin/error-codes.json +1 -1
  293. package/adapters/workbuddy/bin/foundation-resource-binding.json +1 -1
  294. package/adapters/workbuddy/bin/prebuild-manifest.json +8 -4
  295. package/adapters/workbuddy/bin/prebuilds/darwin-arm64/bound_read.darwin-arm64.node +0 -0
  296. package/adapters/workbuddy/bin/prebuilds/darwin-x64/bound_read.darwin-x64.node +0 -0
  297. package/adapters/workbuddy/bin/prebuilds/linux-arm64-gnu/bound_read.linux-arm64-gnu.node +0 -0
  298. package/adapters/workbuddy/bin/prebuilds/linux-x64-gnu/bound_read.linux-x64-gnu.node +0 -0
  299. package/adapters/workbuddy/bin/registry.json +1 -1
  300. package/adapters/workbuddy/bin/release-skill.bundle.mjs +4950 -1819
  301. package/adapters/workbuddy/bin/rules.json +1 -1
  302. package/adapters/workbuddy/data/hosts/cursor/host-descriptor.json +34 -0
  303. package/adapters/workbuddy/data/hosts/registry.json +1 -0
  304. package/adapters/workbuddy/schemas/release-plan.schema.json +255 -25
  305. package/adapters/workbuddy/schemas/release-project.schema.json +228 -26
  306. package/adapters/workbuddy/skills/release-finish/SKILL.md +29 -15
  307. package/adapters/workbuddy/skills/release-help/SKILL.md +40 -39
  308. package/adapters/workbuddy/skills/release-verify/SKILL.md +2 -2
  309. package/adapters/workbuddy/src/schemas/host-descriptor.schema.json +9 -2
  310. package/bin/consumer-contract-vectors.json +7 -7
  311. package/bin/error-codes.json +1 -1
  312. package/bin/foundation-resource-binding.json +1 -1
  313. package/bin/prebuild-manifest.json +8 -4
  314. package/bin/prebuilds/darwin-arm64/bound_read.darwin-arm64.node +0 -0
  315. package/bin/prebuilds/darwin-x64/bound_read.darwin-x64.node +0 -0
  316. package/bin/prebuilds/linux-arm64-gnu/bound_read.linux-arm64-gnu.node +0 -0
  317. package/bin/prebuilds/linux-x64-gnu/bound_read.linux-x64-gnu.node +0 -0
  318. package/bin/registry.json +1 -1
  319. package/bin/release-skill-cli.mjs +148 -6
  320. package/bin/release-skill.bundle.mjs +4950 -1819
  321. package/bin/rules.json +1 -1
  322. package/data/hosts/cursor/host-descriptor.json +34 -0
  323. package/data/hosts/registry.json +1 -0
  324. package/package.json +9 -5
  325. package/platform-manifest.json +140 -8
  326. package/references/02-project-config.md +9 -2
  327. package/schemas/release-plan.schema.json +255 -25
  328. package/schemas/release-project.schema.json +228 -26
  329. package/scripts/sync-public-files.mjs +3 -22
  330. package/skills/release-finish/SKILL.md +29 -15
  331. package/skills/release-help/SKILL.md +40 -39
  332. package/skills/release-verify/SKILL.md +2 -2
  333. package/skills-src/release-finish/SKILL.md +29 -15
  334. package/skills-src/release-help/SKILL.md +40 -39
  335. package/skills-src/release-verify/SKILL.md +2 -2
  336. package/src/adapters/contract.mjs +1 -0
  337. package/src/adapters/plugin-marketplace.mjs +201 -9
  338. package/src/commands/post-release-local.mjs +618 -53
  339. package/src/commands/prepare.mjs +74 -9
  340. package/src/commands/publish.mjs +4 -1
  341. package/src/commands/ship.mjs +2 -0
  342. package/src/commands/verify-records.mjs +467 -0
  343. package/src/commands/verify.mjs +73 -0
  344. package/src/core/checkpoints.mjs +5 -2
  345. package/src/core/config.mjs +1 -1
  346. package/src/core/foundation-host-verification.mjs +168 -0
  347. package/src/core/plan.mjs +19 -1
  348. package/src/core/postpublish.mjs +9 -1
  349. package/src/core/run-retention.mjs +1 -1
  350. package/src/core/run.mjs +1 -1
  351. package/src/core/surface-host-bindings.mjs +1 -0
  352. package/src/core/verification-gates.mjs +1 -1
  353. package/src/platforms/registry.mjs +225 -16
  354. package/src/producers/build-adapters.mjs +43 -25
  355. package/src/producers/foundation-resource-projection.mjs +3 -3
  356. package/src/schemas/host-descriptor.schema.json +9 -2
@@ -0,0 +1,31 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://contracts.skill-family.example/v1/host-capability-fact.json",
4
+ "title": "Skill Family host capability fact",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schemaVersion", "kind", "hostId", "capability", "state", "evidence"],
8
+ "properties": {
9
+ "schemaVersion": { "const": 1 },
10
+ "kind": { "const": "skill-family.host-capability-fact" },
11
+ "hostId": { "type": "string", "pattern": "^[a-z][a-z0-9-]{1,63}$" },
12
+ "capability": { "enum": ["cli", "version", "payload", "registry", "discover", "enabled", "reload", "smoke", "uninstall"] },
13
+ "state": { "enum": ["available", "unavailable", "unknown", "error"] },
14
+ "evidence": { "type": "array", "minItems": 1, "maxItems": 8, "items": { "type": "string", "minLength": 1, "maxLength": 300 } },
15
+ "observedVersion": { "type": "string", "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(?:-[0-9A-Za-z.-]+)?(?:\\+[0-9A-Za-z.-]+)?$" },
16
+ "unknownReason": { "enum": ["timeout", "permission-denied", "interactive-required", "spawn-restricted", "not-probed", "driver-limited"] },
17
+ "manualSteps": { "type": "array", "minItems": 1, "maxItems": 8, "items": { "type": "string", "minLength": 1, "maxLength": 300 } }
18
+ },
19
+ "allOf": [
20
+ {
21
+ "if": { "properties": { "state": { "const": "unknown" } }, "required": ["state"] },
22
+ "then": { "properties": { "unknownReason": true, "manualSteps": true }, "required": ["unknownReason", "manualSteps"] },
23
+ "else": { "properties": { "unknownReason": false, "manualSteps": false } }
24
+ },
25
+ {
26
+ "if": { "properties": { "capability": { "const": "version" }, "state": { "const": "available" } }, "required": ["capability", "state"] },
27
+ "then": { "properties": { "observedVersion": true }, "required": ["observedVersion"] },
28
+ "else": { "properties": { "observedVersion": false } }
29
+ }
30
+ ]
31
+ }
@@ -0,0 +1,144 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://contracts.skill-family.example/v1/host-descriptor.json",
4
+ "title": "Skill Family host descriptor",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schemaVersion", "kind", "hostId", "displayName", "support", "pathCategories", "probeCapabilities"],
8
+ "properties": {
9
+ "schemaVersion": { "const": 1 },
10
+ "kind": { "const": "skill-family.host-descriptor" },
11
+ "hostId": { "type": "string", "pattern": "^[a-z][a-z0-9-]{1,63}$" },
12
+ "displayName": { "type": "string", "minLength": 1, "maxLength": 80 },
13
+ "support": { "enum": ["supported", "manual", "unsupported"] },
14
+ "maturity": { "enum": ["stable", "manual", "developer-preview", "unsupported"] },
15
+ "sourceAliases": {
16
+ "type": "array",
17
+ "maxItems": 8,
18
+ "uniqueItems": true,
19
+ "items": { "type": "string", "pattern": "^[a-z][a-z0-9-]{1,63}$" }
20
+ },
21
+ "unsupportedReason": { "type": "string", "minLength": 1 },
22
+ "driverId": { "enum": ["claude-version-v1", "codex-version-v1"] },
23
+ "verification": {
24
+ "type": "object",
25
+ "additionalProperties": false,
26
+ "required": ["driverId", "authStrategy", "credentialMutation"],
27
+ "properties": {
28
+ "driverId": { "enum": ["kimi-code-print-v1", "workbuddy-codebuddy-print-v1", "codebuddy-print-v1", "claude-code-print-v1", "codex-exec-v1", "qodercli-print-v1", "cursor-agent-print-v1"] },
29
+ "authStrategy": { "const": "existing-user-state" },
30
+ "credentialMutation": { "const": "host-managed" }
31
+ }
32
+ },
33
+ "adapterFormat": { "const": "skill-directory-v1" },
34
+ "pathCategories": {
35
+ "type": "array",
36
+ "maxItems": 8,
37
+ "items": {
38
+ "type": "object",
39
+ "additionalProperties": false,
40
+ "required": ["id", "role", "scope", "anchor", "relPath"],
41
+ "properties": {
42
+ "id": { "type": "string", "pattern": "^[a-z][a-z0-9-]{1,63}$" },
43
+ "role": { "const": "skill-root" },
44
+ "scope": { "enum": ["user", "project"] },
45
+ "anchor": { "enum": ["user-home", "project-root"] },
46
+ "relPath": { "$ref": "#/$defs/relativePath" }
47
+ },
48
+ "allOf": [
49
+ { "if": { "properties": { "scope": { "const": "user" } }, "required": ["scope"] }, "then": { "properties": { "anchor": { "const": "user-home" } } } },
50
+ { "if": { "properties": { "scope": { "const": "project" } }, "required": ["scope"] }, "then": { "properties": { "anchor": { "const": "project-root" } } } }
51
+ ]
52
+ }
53
+ },
54
+ "probeCapabilities": {
55
+ "type": "array",
56
+ "items": { "enum": ["cli", "version", "payload", "registry", "discover", "enabled", "reload", "smoke", "uninstall"] },
57
+ "uniqueItems": true
58
+ }
59
+ },
60
+ "$defs": {
61
+ "relativePath": {
62
+ "type": "string",
63
+ "minLength": 1,
64
+ "maxLength": 240,
65
+ "pattern": "^(?!/)(?!.*(?:^|/)\\.\\.(?:/|$))(?!.*\\\\)(?!.*\\u0000)[A-Za-z0-9._-]+(?:/[A-Za-z0-9._-]+)*$"
66
+ }
67
+ },
68
+ "allOf": [
69
+ {
70
+ "if": { "properties": { "hostId": { "const": "kimi-code" } }, "required": ["hostId"] },
71
+ "then": {
72
+ "required": ["verification"],
73
+ "properties": { "verification": { "type": "object", "properties": { "driverId": { "const": "kimi-code-print-v1" } } } }
74
+ }
75
+ },
76
+ {
77
+ "if": { "properties": { "hostId": { "const": "workbuddy" } }, "required": ["hostId"] },
78
+ "then": {
79
+ "required": ["verification"],
80
+ "properties": { "verification": { "type": "object", "properties": { "driverId": { "const": "workbuddy-codebuddy-print-v1" } } } }
81
+ }
82
+ },
83
+ {
84
+ "if": { "properties": { "hostId": { "const": "codebuddy" } }, "required": ["hostId"] },
85
+ "then": {
86
+ "required": ["verification"],
87
+ "properties": { "verification": { "type": "object", "properties": { "driverId": { "const": "codebuddy-print-v1" } } } }
88
+ }
89
+ },
90
+ {
91
+ "if": { "properties": { "hostId": { "const": "claude" } }, "required": ["hostId"] },
92
+ "then": {
93
+ "required": ["verification"],
94
+ "properties": { "verification": { "type": "object", "properties": { "driverId": { "const": "claude-code-print-v1" } } } }
95
+ }
96
+ },
97
+ {
98
+ "if": { "properties": { "hostId": { "const": "codex" } }, "required": ["hostId"] },
99
+ "then": {
100
+ "required": ["verification"],
101
+ "properties": { "verification": { "type": "object", "properties": { "driverId": { "const": "codex-exec-v1" } } } }
102
+ }
103
+ },
104
+ {
105
+ "if": { "properties": { "hostId": { "const": "qoder" } }, "required": ["hostId"] },
106
+ "then": {
107
+ "required": ["verification"],
108
+ "properties": { "verification": { "type": "object", "properties": { "driverId": { "const": "qodercli-print-v1" } } } }
109
+ }
110
+ },
111
+ {
112
+ "if": { "properties": { "hostId": { "const": "cursor" } }, "required": ["hostId"] },
113
+ "then": {
114
+ "required": ["verification"],
115
+ "properties": { "verification": { "type": "object", "properties": { "driverId": { "const": "cursor-agent-print-v1" } } } }
116
+ }
117
+ },
118
+ {
119
+ "if": { "properties": { "hostId": { "enum": ["kimi-code", "workbuddy", "codebuddy", "claude", "codex", "qoder", "cursor"] } }, "required": ["hostId"] },
120
+ "else": { "properties": { "verification": false } }
121
+ },
122
+ {
123
+ "if": { "properties": { "support": { "const": "supported" } }, "required": ["support"] },
124
+ "then": {
125
+ "required": ["driverId", "adapterFormat"],
126
+ "properties": { "unsupportedReason": false, "maturity": { "enum": ["stable"] }, "driverId": true, "adapterFormat": true, "pathCategories": { "type": "array", "minItems": 1 }, "probeCapabilities": { "type": "array", "minItems": 9, "maxItems": 9 } }
127
+ }
128
+ },
129
+ {
130
+ "if": { "properties": { "support": { "const": "manual" } }, "required": ["support"] },
131
+ "then": {
132
+ "required": ["maturity"],
133
+ "properties": { "unsupportedReason": false, "maturity": { "enum": ["manual", "developer-preview"] }, "driverId": false, "adapterFormat": false, "pathCategories": { "type": "array", "maxItems": 8 }, "probeCapabilities": { "type": "array", "minItems": 9, "maxItems": 9 } }
134
+ }
135
+ },
136
+ {
137
+ "if": { "properties": { "support": { "const": "unsupported" } }, "required": ["support"] },
138
+ "then": {
139
+ "required": ["unsupportedReason"],
140
+ "properties": { "unsupportedReason": true, "maturity": { "enum": ["unsupported"] }, "driverId": false, "adapterFormat": false, "pathCategories": { "type": "array", "maxItems": 0 }, "probeCapabilities": { "type": "array", "maxItems": 0 } }
141
+ }
142
+ }
143
+ ]
144
+ }
@@ -0,0 +1,57 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://contracts.skill-family.example/v1/host-operation-plan.json",
4
+ "title": "Skill Family host operation plan",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schemaVersion", "kind", "hostId", "status", "probeFacts", "actions", "writeSet", "digest"],
8
+ "properties": {
9
+ "schemaVersion": { "const": 1 },
10
+ "kind": { "const": "skill-family.host-operation-plan" },
11
+ "hostId": { "type": "string", "pattern": "^[a-z][a-z0-9-]{1,63}$" },
12
+ "status": { "enum": ["planned", "manual", "unsupported"] },
13
+ "operation": { "enum": ["install", "update", "uninstall"] },
14
+ "unsupportedReason": { "type": "string", "minLength": 1 },
15
+ "pathCategory": { "$ref": "#/$defs/category" },
16
+ "probeFacts": { "type": "array", "items": { "$ref": "https://contracts.skill-family.example/v1/host-capability-fact.json" } },
17
+ "actions": { "type": "array", "items": { "$ref": "#/$defs/action" } },
18
+ "writeSet": { "type": "array", "items": { "$ref": "#/$defs/write" } },
19
+ "digest": { "$ref": "#/$defs/sha256" }
20
+ },
21
+ "$defs": {
22
+ "sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
23
+ "relativePath": { "type": "string", "minLength": 1, "maxLength": 240, "pattern": "^(?!/)(?!.*(?:^|/)\\.\\.(?:/|$))(?!.*\\\\)(?!.*\\u0000)[A-Za-z0-9._-]+(?:/[A-Za-z0-9._-]+)*$" },
24
+ "category": {
25
+ "type": "object", "additionalProperties": false, "required": ["id", "scope", "anchor", "relPath"],
26
+ "properties": { "id": { "type": "string", "pattern": "^[a-z][a-z0-9-]{1,63}$" }, "scope": { "enum": ["user", "project"] }, "anchor": { "enum": ["user-home", "project-root"] }, "relPath": { "$ref": "#/$defs/relativePath" } }
27
+ },
28
+ "action": {
29
+ "type": "object", "additionalProperties": false,
30
+ "required": ["sequence", "kind", "categoryId", "scope", "anchor", "target", "expect", "sourceSha256"],
31
+ "properties": {
32
+ "sequence": { "type": "integer", "minimum": 1 }, "kind": { "const": "install-file" },
33
+ "categoryId": { "type": "string", "pattern": "^[a-z][a-z0-9-]{1,63}$" }, "scope": { "enum": ["user", "project"] }, "anchor": { "enum": ["user-home", "project-root"] },
34
+ "target": { "$ref": "#/$defs/relativePath" }, "expect": { "enum": ["absent", "matching"] }, "sourceSha256": { "$ref": "#/$defs/sha256" }, "expectedSha256": { "$ref": "#/$defs/sha256" }
35
+ }
36
+ },
37
+ "write": {
38
+ "type": "object", "additionalProperties": false, "required": ["categoryId", "scope", "anchor", "target", "sourceSha256"],
39
+ "properties": { "categoryId": { "type": "string", "pattern": "^[a-z][a-z0-9-]{1,63}$" }, "scope": { "enum": ["user", "project"] }, "anchor": { "enum": ["user-home", "project-root"] }, "target": { "$ref": "#/$defs/relativePath" }, "sourceSha256": { "$ref": "#/$defs/sha256" }, "expectedSha256": { "$ref": "#/$defs/sha256" } }
40
+ }
41
+ },
42
+ "allOf": [
43
+ {
44
+ "if": { "properties": { "status": { "const": "planned" } }, "required": ["status"] },
45
+ "then": { "required": ["pathCategory"], "properties": { "pathCategory": true, "unsupportedReason": false, "probeFacts": { "type": "array", "minItems": 9, "maxItems": 9 }, "actions": { "type": "array", "minItems": 1 }, "writeSet": { "type": "array", "minItems": 1 } } },
46
+ "else": { "required": ["unsupportedReason"], "properties": { "unsupportedReason": true, "pathCategory": false, "probeFacts": { "type": "array", "maxItems": 0 }, "actions": { "type": "array", "maxItems": 0 }, "writeSet": { "type": "array", "maxItems": 0 } } }
47
+ },
48
+ {
49
+ "if": { "properties": { "status": { "const": "manual" } }, "required": ["status"] },
50
+ "then": { "properties": { "operation": { "enum": ["install", "update", "uninstall"] } } }
51
+ },
52
+ {
53
+ "if": { "properties": { "operation": { "enum": ["update", "uninstall"] } }, "required": ["operation"] },
54
+ "then": { "properties": { "actions": { "type": "array", "items": { "type": "object", "properties": { "expectedSha256": { "$ref": "#/$defs/sha256" } }, "required": ["expectedSha256"] } }, "writeSet": { "type": "array", "items": { "type": "object", "properties": { "expectedSha256": { "$ref": "#/$defs/sha256" } }, "required": ["expectedSha256"] } } } }
55
+ }
56
+ ]
57
+ }
@@ -0,0 +1,81 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://contracts.skill-family.example/v1/host-operation-receipt.json",
4
+ "title": "Skill Family host operation receipt",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schemaVersion", "kind", "hostId", "planDigest", "overall", "writes"],
8
+ "properties": {
9
+ "schemaVersion": { "const": 1 },
10
+ "kind": { "const": "skill-family.host-operation-receipt" },
11
+ "hostId": { "type": "string", "pattern": "^[a-z][a-z0-9-]{1,63}$" },
12
+ "planDigest": { "$ref": "#/$defs/sha256" },
13
+ "overall": { "enum": ["rejected", "failed", "succeeded", "partially_applied"] },
14
+ "reason": { "type": "string", "minLength": 1 },
15
+ "authorizationRef": { "type": "string", "minLength": 1, "maxLength": 200 },
16
+ "writes": { "type": "array", "items": { "$ref": "#/$defs/write" } },
17
+ "closure": { "$ref": "#/$defs/closure" }
18
+ },
19
+ "$defs": {
20
+ "sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
21
+ "relativePath": { "type": "string", "minLength": 1, "maxLength": 240, "pattern": "^(?!/)(?!.*(?:^|/)\\.\\.(?:/|$))(?!.*\\\\)(?!.*\\u0000)[A-Za-z0-9._-]+(?:/[A-Za-z0-9._-]+)*$" },
22
+ "write": {
23
+ "type": "object", "additionalProperties": false, "required": ["target", "outcome"],
24
+ "properties": { "target": { "$ref": "#/$defs/relativePath" }, "outcome": { "enum": ["planned", "attempted", "succeeded", "failed"] }, "sha256": { "$ref": "#/$defs/sha256" }, "reason": { "type": "string", "minLength": 1 } },
25
+ "allOf": [
26
+ { "if": { "properties": { "outcome": { "const": "succeeded" } }, "required": ["outcome"] }, "then": { "properties": { "sha256": true }, "required": ["sha256"] }, "else": { "properties": { "sha256": false } } },
27
+ { "if": { "properties": { "outcome": { "const": "failed" } }, "required": ["outcome"] }, "then": { "properties": { "reason": true }, "required": ["reason"] } }
28
+ ]
29
+ },
30
+ "closure": {
31
+ "type": "object", "additionalProperties": false, "required": ["digestAlgorithm", "digest", "resources"],
32
+ "properties": {
33
+ "digestAlgorithm": { "const": "sha256" }, "digest": { "$ref": "#/$defs/sha256" },
34
+ "resources": { "type": "array", "minItems": 1, "items": { "type": "object", "additionalProperties": false, "required": ["path", "sha256"], "properties": { "path": { "$ref": "#/$defs/relativePath" }, "sha256": { "$ref": "#/$defs/sha256" } } } }
35
+ }
36
+ }
37
+ },
38
+ "allOf": [
39
+ {
40
+ "if": { "properties": { "overall": { "const": "rejected" } }, "required": ["overall"] },
41
+ "then": {
42
+ "required": ["reason"],
43
+ "properties": { "reason": true, "authorizationRef": false, "closure": false, "writes": { "type": "array", "maxItems": 0 } }
44
+ }
45
+ },
46
+ {
47
+ "if": { "properties": { "overall": { "const": "succeeded" } }, "required": ["overall"] },
48
+ "then": {
49
+ "required": ["authorizationRef", "closure"],
50
+ "properties": { "authorizationRef": true, "closure": true, "writes": { "type": "array", "minItems": 1, "items": { "type": "object", "properties": { "outcome": { "const": "succeeded" } }, "required": ["outcome"] } } }
51
+ }
52
+ },
53
+ {
54
+ "if": { "properties": { "overall": { "const": "failed" } }, "required": ["overall"] },
55
+ "then": {
56
+ "required": ["reason"],
57
+ "properties": { "reason": true, "writes": { "type": "array", "contains": { "type": "object", "properties": { "outcome": { "const": "failed" } }, "required": ["outcome"] } } },
58
+ "not": { "properties": { "writes": { "type": "array", "contains": { "type": "object", "properties": { "outcome": { "const": "succeeded" } }, "required": ["outcome"] } } } }
59
+ }
60
+ },
61
+ {
62
+ "if": { "properties": { "overall": { "const": "partially_applied" } }, "required": ["overall"] },
63
+ "then": {
64
+ "required": ["reason", "authorizationRef", "closure"],
65
+ "properties": {
66
+ "reason": true,
67
+ "authorizationRef": true,
68
+ "closure": true,
69
+ "writes": {
70
+ "type": "array",
71
+ "minItems": 2,
72
+ "allOf": [
73
+ { "contains": { "type": "object", "properties": { "outcome": { "const": "succeeded" } }, "required": ["outcome"] } },
74
+ { "contains": { "type": "object", "properties": { "outcome": { "enum": ["failed", "attempted", "planned"] } }, "required": ["outcome"] } }
75
+ ]
76
+ }
77
+ }
78
+ }
79
+ }
80
+ ]
81
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://contracts.skill-family.example/v1/host-probe-result.json",
4
+ "title": "Skill Family host probe result",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schemaVersion", "kind", "hostId", "support", "facts"],
8
+ "properties": {
9
+ "schemaVersion": { "const": 1 },
10
+ "kind": { "const": "skill-family.host-probe-result" },
11
+ "hostId": { "type": "string", "pattern": "^[a-z][a-z0-9-]{1,63}$" },
12
+ "support": { "enum": ["supported", "manual", "unsupported"] },
13
+ "reason": { "type": "string", "minLength": 1 },
14
+ "facts": {
15
+ "type": "array",
16
+ "items": { "$ref": "https://contracts.skill-family.example/v1/host-capability-fact.json" }
17
+ }
18
+ },
19
+ "allOf": [
20
+ {
21
+ "if": { "properties": { "support": { "const": "supported" } }, "required": ["support"] },
22
+ "then": { "properties": { "reason": false, "facts": { "type": "array", "minItems": 9, "maxItems": 9 } } },
23
+ "else": {
24
+ "if": { "properties": { "support": { "const": "manual" } }, "required": ["support"] },
25
+ "then": { "required": ["reason"], "properties": { "reason": true, "facts": { "type": "array", "minItems": 9, "maxItems": 9 } } },
26
+ "else": { "required": ["reason"], "properties": { "reason": true, "facts": { "type": "array", "maxItems": 0 } } }
27
+ }
28
+ }
29
+ ]
30
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://contracts.skill-family.example/v1/host-registry.json",
4
+ "title": "Skill Family host registry",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schemaVersion", "kind", "hosts"],
8
+ "properties": {
9
+ "schemaVersion": { "const": 1 },
10
+ "kind": { "const": "skill-family.host-registry" },
11
+ "hosts": {
12
+ "type": "array",
13
+ "minItems": 1,
14
+ "uniqueItems": true,
15
+ "items": { "type": "string", "pattern": "^[a-z][a-z0-9-]{1,63}$" }
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,67 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://contracts.skill-family.example/v1/host-verification-request.json",
4
+ "title": "Host verification request",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schemaVersion", "kind", "operation", "common", "host", "auth", "execution"],
8
+ "properties": {
9
+ "schemaVersion": { "const": 1 },
10
+ "kind": { "const": "skill-family.host-verification-request" },
11
+ "operation": { "const": "host-verification" },
12
+ "common": { "$ref": "#/$defs/common" },
13
+ "host": { "$ref": "#/$defs/host" },
14
+ "auth": {
15
+ "type": "object",
16
+ "additionalProperties": false,
17
+ "required": ["strategy", "credentialMutation"],
18
+ "properties": {
19
+ "strategy": { "const": "existing-user-state" },
20
+ "credentialMutation": { "const": "host-managed" }
21
+ }
22
+ },
23
+ "execution": {
24
+ "type": "object",
25
+ "additionalProperties": false,
26
+ "required": ["timeoutPolicy", "modelOverridePolicy"],
27
+ "properties": {
28
+ "timeoutPolicy": { "$ref": "https://contracts.skill-family.example/v1/timeout-policy.json" },
29
+ "modelOverridePolicy": { "const": "forbidden" }
30
+ }
31
+ }
32
+ },
33
+ "$defs": {
34
+ "sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
35
+ "digest": { "$ref": "#/$defs/sha256" },
36
+ "opaque": { "type": "string", "minLength": 1, "maxLength": 512 },
37
+ "common": {
38
+ "type": "object",
39
+ "additionalProperties": false,
40
+ "required": ["verificationSetId", "candidateRef", "candidateManifestSha256", "workloadDocumentSha256", "fixtureClosureDigest", "protectedWorkspaceClosureDigest"],
41
+ "properties": {
42
+ "verificationSetId": { "$ref": "#/$defs/opaque" },
43
+ "candidateRef": { "$ref": "#/$defs/opaque" },
44
+ "candidateManifestSha256": { "$ref": "#/$defs/sha256" },
45
+ "workloadDocumentSha256": { "$ref": "#/$defs/sha256" },
46
+ "fixtureClosureDigest": { "$ref": "#/$defs/digest" },
47
+ "protectedWorkspaceClosureDigest": { "$ref": "#/$defs/digest" }
48
+ }
49
+ },
50
+ "host": {
51
+ "type": "object",
52
+ "additionalProperties": false,
53
+ "required": ["hostId", "descriptorSha256", "driverId", "driverVersion", "platformManifestSha256", "adapterClosureDigest", "installedSkillClosureDigest", "effectivePromptSha256", "executableSha256"],
54
+ "properties": {
55
+ "hostId": { "type": "string", "pattern": "^[a-z][a-z0-9-]{1,63}$" },
56
+ "descriptorSha256": { "$ref": "#/$defs/sha256" },
57
+ "driverId": { "type": "string", "pattern": "^[a-z][a-z0-9-]{1,127}$" },
58
+ "driverVersion": { "type": "string", "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(?:-[0-9A-Za-z.-]+)?$" },
59
+ "platformManifestSha256": { "$ref": "#/$defs/sha256" },
60
+ "adapterClosureDigest": { "$ref": "#/$defs/digest" },
61
+ "installedSkillClosureDigest": { "$ref": "#/$defs/digest" },
62
+ "effectivePromptSha256": { "$ref": "#/$defs/sha256" },
63
+ "executableSha256": { "$ref": "#/$defs/sha256" }
64
+ }
65
+ }
66
+ }
67
+ }
@@ -0,0 +1,149 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://contracts.skill-family.example/v1/host-verification-result.json",
4
+ "title": "Host verification result",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schemaVersion", "kind", "operation", "status", "requestDigest", "common", "host", "runtimeIdentities", "execution", "snapshots", "streams", "reason", "requiredActions"],
8
+ "allOf": [
9
+ {
10
+ "if": { "properties": { "status": { "const": "observed" } } },
11
+ "then": {
12
+ "properties": {
13
+ "runtimeIdentities": { "type": "object" },
14
+ "execution": {
15
+ "type": "object",
16
+ "properties": {
17
+ "spawned": { "const": true },
18
+ "exitStatus": { "const": 0 },
19
+ "processStatus": { "const": "EXITED" },
20
+ "terminationReason": { "const": null },
21
+ "watchdogReason": { "const": null },
22
+ "runnerModelOverrideAbsent": { "const": true }
23
+ }
24
+ },
25
+ "snapshots": { "type": "object" },
26
+ "streams": { "type": "object" },
27
+ "reason": { "const": null },
28
+ "requiredActions": { "type": "array", "maxItems": 0 }
29
+ }
30
+ }
31
+ },
32
+ {
33
+ "if": { "properties": { "status": { "const": "indeterminate" } } },
34
+ "then": {
35
+ "properties": {
36
+ "reason": { "const": "boundary-state-indeterminate" },
37
+ "requiredActions": { "type": "array", "minItems": 1 }
38
+ }
39
+ }
40
+ },
41
+ {
42
+ "if": { "properties": { "status": { "const": "rejected" } } },
43
+ "then": {
44
+ "properties": {
45
+ "runtimeIdentities": { "const": null },
46
+ "execution": {
47
+ "type": "object",
48
+ "properties": {
49
+ "spawned": { "const": false },
50
+ "exitStatus": { "const": null },
51
+ "processStatus": { "const": null },
52
+ "terminationReason": { "const": null },
53
+ "watchdogReason": { "const": null }
54
+ }
55
+ },
56
+ "snapshots": { "const": null },
57
+ "streams": { "const": null },
58
+ "reason": { "enum": ["preflight-rejected", "executable-observation-mismatch"] },
59
+ "requiredActions": { "type": "array", "maxItems": 0 }
60
+ }
61
+ }
62
+ },
63
+ {
64
+ "if": { "properties": { "status": { "const": "failed" } } },
65
+ "then": {
66
+ "properties": {
67
+ "reason": { "enum": ["executable-observation-mismatch", "execution-failed", "snapshot-mismatch", "private-evidence-publication-failed"] },
68
+ "requiredActions": { "type": "array", "maxItems": 0 }
69
+ }
70
+ }
71
+ },
72
+ {
73
+ "if": { "properties": { "reason": { "const": "snapshot-mismatch" } } },
74
+ "then": {
75
+ "properties": {
76
+ "execution": {
77
+ "type": "object",
78
+ "properties": { "spawned": { "const": true } }
79
+ }
80
+ }
81
+ }
82
+ }
83
+ ],
84
+ "properties": {
85
+ "schemaVersion": { "const": 1 },
86
+ "kind": { "const": "skill-family.host-verification-result" },
87
+ "operation": { "const": "host-verification" },
88
+ "status": { "enum": ["observed", "rejected", "failed", "indeterminate"] },
89
+ "requestDigest": { "$ref": "https://contracts.skill-family.example/v1/host-verification-request.json#/$defs/sha256" },
90
+ "common": { "$ref": "https://contracts.skill-family.example/v1/host-verification-request.json#/$defs/common" },
91
+ "host": { "$ref": "https://contracts.skill-family.example/v1/host-verification-request.json#/$defs/host" },
92
+ "runtimeIdentities": {
93
+ "type": ["object", "null"],
94
+ "additionalProperties": false,
95
+ "required": ["cliVersion"],
96
+ "properties": { "cliVersion": { "type": "string", "minLength": 1, "maxLength": 256 } }
97
+ },
98
+ "execution": {
99
+ "type": "object",
100
+ "additionalProperties": false,
101
+ "required": ["spawned", "exitStatus", "processStatus", "terminationReason", "watchdogReason", "runnerModelOverrideAbsent"],
102
+ "properties": {
103
+ "spawned": { "type": "boolean" },
104
+ "exitStatus": { "type": ["integer", "null"], "minimum": 0 },
105
+ "processStatus": { "type": ["string", "null"], "enum": ["PLANNED", "STARTING", "RUNNING", "EXITED", "FAILED_TO_START", "TIMED_OUT", "TERMINATED", null] },
106
+ "terminationReason": { "$ref": "https://contracts.skill-family.example/v1/watchdog-termination-envelope.json#/properties/terminationReason", "not": { "const": "output_limit_exceeded" } },
107
+ "watchdogReason": { "$ref": "https://contracts.skill-family.example/v1/watchdog-termination-envelope.json#/properties/watchdogReason", "not": { "const": "output_limit_exceeded" } },
108
+ "runnerModelOverrideAbsent": { "type": "boolean" }
109
+ }
110
+ },
111
+ "snapshots": {
112
+ "type": ["object", "null"],
113
+ "additionalProperties": false,
114
+ "required": ["installedSkill", "fixture", "protectedWorkspace"],
115
+ "properties": {
116
+ "installedSkill": { "$ref": "#/$defs/snapshot" },
117
+ "fixture": { "$ref": "#/$defs/snapshot" },
118
+ "protectedWorkspace": { "$ref": "#/$defs/snapshot" }
119
+ }
120
+ },
121
+ "streams": {
122
+ "type": ["object", "null"],
123
+ "additionalProperties": false,
124
+ "required": ["stdout", "stderr"],
125
+ "properties": { "stdout": { "$ref": "#/$defs/stream" }, "stderr": { "$ref": "#/$defs/stream" } }
126
+ },
127
+ "reason": { "enum": [null, "preflight-rejected", "executable-observation-mismatch", "execution-failed", "snapshot-mismatch", "private-evidence-publication-failed", "boundary-state-indeterminate"] },
128
+ "requiredActions": {
129
+ "type": "array",
130
+ "uniqueItems": true,
131
+ "items": { "enum": ["manual-temporary-root-inspection-required"] }
132
+ }
133
+ },
134
+ "$defs": {
135
+ "snapshot": {
136
+ "type": "object", "additionalProperties": false,
137
+ "required": ["preClosureDigest", "postClosureDigest"],
138
+ "properties": {
139
+ "preClosureDigest": { "$ref": "https://contracts.skill-family.example/v1/host-verification-request.json#/$defs/sha256" },
140
+ "postClosureDigest": { "$ref": "https://contracts.skill-family.example/v1/host-verification-request.json#/$defs/sha256" }
141
+ }
142
+ },
143
+ "stream": {
144
+ "type": "object", "additionalProperties": false,
145
+ "required": ["sha256", "bytes", "sensitivity"],
146
+ "properties": { "sha256": { "$ref": "https://contracts.skill-family.example/v1/host-verification-request.json#/$defs/sha256" }, "bytes": { "type": "integer", "minimum": 0 }, "sensitivity": { "const": "private" } }
147
+ }
148
+ }
149
+ }