release-skill 0.9.17 → 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 (257) 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 +1 -1
  7. package/CHANGELOG.md +36 -2
  8. package/INSTALL.md +56 -9
  9. package/INSTALL.zh-CN.md +41 -7
  10. package/README.md +31 -20
  11. package/README.zh-CN.md +29 -19
  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 +3560 -1200
  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 +17 -4
  29. package/adapters/claude/skills/release-help/SKILL.md +40 -39
  30. package/adapters/claude/src/schemas/host-descriptor.schema.json +9 -2
  31. package/adapters/codex/.codex-plugin/plugin.json +2 -2
  32. package/adapters/codex/bin/consumer-contract-vectors.json +7 -7
  33. package/adapters/codex/bin/error-codes.json +1 -1
  34. package/adapters/codex/bin/foundation-resource-binding.json +1 -1
  35. package/adapters/codex/bin/prebuild-manifest.json +8 -4
  36. package/adapters/codex/bin/prebuilds/darwin-arm64/bound_read.darwin-arm64.node +0 -0
  37. package/adapters/codex/bin/prebuilds/darwin-x64/bound_read.darwin-x64.node +0 -0
  38. package/adapters/codex/bin/prebuilds/linux-arm64-gnu/bound_read.linux-arm64-gnu.node +0 -0
  39. package/adapters/codex/bin/prebuilds/linux-x64-gnu/bound_read.linux-x64-gnu.node +0 -0
  40. package/adapters/codex/bin/registry.json +1 -1
  41. package/adapters/codex/bin/release-skill.bundle.mjs +3560 -1200
  42. package/adapters/codex/bin/rules.json +1 -1
  43. package/adapters/codex/data/hosts/cursor/host-descriptor.json +34 -0
  44. package/adapters/codex/data/hosts/registry.json +1 -0
  45. package/adapters/codex/schemas/release-plan.schema.json +255 -25
  46. package/adapters/codex/schemas/release-project.schema.json +228 -26
  47. package/adapters/codex/skills/release-finish/SKILL.md +17 -4
  48. package/adapters/codex/skills/release-help/SKILL.md +40 -39
  49. package/adapters/codex/src/schemas/host-descriptor.schema.json +9 -2
  50. package/adapters/cursor/.cursor-plugin/plugin.json +10 -0
  51. package/adapters/cursor/bin/consumer-contract-vectors.json +110 -0
  52. package/adapters/cursor/bin/error-codes.json +161 -0
  53. package/adapters/cursor/bin/foundation-legal/skill-family-contracts/LICENSE +202 -0
  54. package/adapters/cursor/bin/foundation-legal/skill-family-contracts/NOTICE +10 -0
  55. package/adapters/cursor/bin/foundation-legal/skill-family-engineering-kit/LICENSE +202 -0
  56. package/adapters/cursor/bin/foundation-legal/skill-family-engineering-kit/NOTICE +10 -0
  57. package/adapters/cursor/bin/foundation-legal/skill-family-engineering-kit/THIRD_PARTY_NOTICES +142 -0
  58. package/adapters/cursor/bin/foundation-legal/skill-family-harness-node/LICENSE +202 -0
  59. package/adapters/cursor/bin/foundation-legal/skill-family-harness-node/NOTICE +10 -0
  60. package/adapters/cursor/bin/foundation-legal/skill-family-harness-node/native-NOTICE +2 -0
  61. package/adapters/cursor/bin/foundation-resource-binding.json +1 -0
  62. package/adapters/cursor/bin/kernel-protocol.json +60 -0
  63. package/adapters/cursor/bin/license-texts/Apache-2.0.txt +201 -0
  64. package/adapters/cursor/bin/license-texts/MIT.txt +21 -0
  65. package/adapters/cursor/bin/prebuild-manifest.json +83 -0
  66. package/adapters/cursor/bin/prebuilds/darwin-arm64/bound_read.darwin-arm64.node +0 -0
  67. package/adapters/cursor/bin/prebuilds/darwin-x64/bound_read.darwin-x64.node +0 -0
  68. package/adapters/cursor/bin/prebuilds/linux-arm64-gnu/bound_read.linux-arm64-gnu.node +0 -0
  69. package/adapters/cursor/bin/prebuilds/linux-x64-gnu/bound_read.linux-x64-gnu.node +0 -0
  70. package/adapters/cursor/bin/registry.json +347 -0
  71. package/adapters/cursor/bin/release-skill-local-finish.mjs +4 -0
  72. package/adapters/cursor/bin/release-skill.bundle.mjs +151806 -0
  73. package/adapters/cursor/bin/release-skill.mjs +54 -0
  74. package/adapters/cursor/bin/rules.json +104 -0
  75. package/adapters/cursor/bin/schemas/consumer-contract-vector.schema.json +149 -0
  76. package/adapters/cursor/data/hosts/claude/host-descriptor.json +45 -0
  77. package/adapters/cursor/data/hosts/codebuddy/host-descriptor.json +26 -0
  78. package/adapters/cursor/data/hosts/codex/host-descriptor.json +45 -0
  79. package/adapters/cursor/data/hosts/cursor/host-descriptor.json +34 -0
  80. package/adapters/cursor/data/hosts/deepseek-harness/host-descriptor.json +23 -0
  81. package/adapters/cursor/data/hosts/kimi-code/host-descriptor.json +36 -0
  82. package/adapters/cursor/data/hosts/qoder/host-descriptor.json +26 -0
  83. package/adapters/cursor/data/hosts/registry.json +14 -0
  84. package/adapters/cursor/data/hosts/workbuddy/host-descriptor.json +34 -0
  85. package/adapters/cursor/data/licensing/registry.json +211 -0
  86. package/adapters/cursor/data/licensing/schema.json +207 -0
  87. package/adapters/cursor/native/safe-write/binding.gyp +41 -0
  88. package/adapters/cursor/native/safe-write/prebuilds/darwin-arm64/safe_write.node +0 -0
  89. package/adapters/cursor/native/safe-write/prebuilds.json +24 -0
  90. package/adapters/cursor/native/safe-write/src/safe_write.cc +2032 -0
  91. package/adapters/cursor/schemas/.render-manifest.json +41 -0
  92. package/adapters/cursor/schemas/approval-record.schema.json +115 -0
  93. package/adapters/cursor/schemas/artifact-lock.schema.json +111 -0
  94. package/adapters/cursor/schemas/artifact-plan.schema.json +52 -0
  95. package/adapters/cursor/schemas/artifact-policy.schema.json +76 -0
  96. package/adapters/cursor/schemas/evidence-event-v2.schema.json +164 -0
  97. package/adapters/cursor/schemas/evidence-event.schema.json +89 -0
  98. package/adapters/cursor/schemas/postpublish-approval-record.schema.json +47 -0
  99. package/adapters/cursor/schemas/release-plan.schema.json +2226 -0
  100. package/adapters/cursor/schemas/release-project.schema.json +1815 -0
  101. package/adapters/cursor/schemas/release-run.schema.json +777 -0
  102. package/adapters/cursor/skills/release-assess/SKILL.md +61 -0
  103. package/adapters/cursor/skills/release-config/SKILL.md +151 -0
  104. package/adapters/cursor/skills/release-docs/SKILL.md +120 -0
  105. package/adapters/cursor/skills/release-finish/SKILL.md +155 -0
  106. package/adapters/cursor/skills/release-help/SKILL.md +155 -0
  107. package/adapters/cursor/skills/release-marketplace/SKILL.md +157 -0
  108. package/adapters/cursor/skills/release-prepare/SKILL.md +136 -0
  109. package/adapters/cursor/skills/release-publish/SKILL.md +92 -0
  110. package/adapters/cursor/skills/release-reconcile/SKILL.md +81 -0
  111. package/adapters/cursor/skills/release-setup/SKILL.md +132 -0
  112. package/adapters/cursor/skills/release-verify/SKILL.md +110 -0
  113. package/adapters/cursor/src/schemas/adapter-build-manifest.schema.json +41 -0
  114. package/adapters/cursor/src/schemas/adapter-peer-verification-request.schema.json +54 -0
  115. package/adapters/cursor/src/schemas/adapter-peer-verification-result.schema.json +54 -0
  116. package/adapters/cursor/src/schemas/adapter-source.schema.json +47 -0
  117. package/adapters/cursor/src/schemas/audit-baseline-pin.schema.json +163 -0
  118. package/adapters/cursor/src/schemas/declared-read-surface-result.schema.json +61 -0
  119. package/adapters/cursor/src/schemas/engineering-baseline.schema.json +77 -0
  120. package/adapters/cursor/src/schemas/executable-identity-observation.schema.json +162 -0
  121. package/adapters/cursor/src/schemas/filesystem-root-binding.schema.json +14 -0
  122. package/adapters/cursor/src/schemas/filesystem-tree-observation.schema.json +71 -0
  123. package/adapters/cursor/src/schemas/fixed-set-publication-manifest.schema.json +108 -0
  124. package/adapters/cursor/src/schemas/fixed-set-publication-receipt.schema.json +148 -0
  125. package/adapters/cursor/src/schemas/host-capability-fact.schema.json +31 -0
  126. package/adapters/cursor/src/schemas/host-descriptor.schema.json +144 -0
  127. package/adapters/cursor/src/schemas/host-operation-plan.schema.json +57 -0
  128. package/adapters/cursor/src/schemas/host-operation-receipt.schema.json +81 -0
  129. package/adapters/cursor/src/schemas/host-probe-result.schema.json +30 -0
  130. package/adapters/cursor/src/schemas/host-registry.schema.json +18 -0
  131. package/adapters/cursor/src/schemas/host-verification-request.schema.json +67 -0
  132. package/adapters/cursor/src/schemas/host-verification-result.schema.json +149 -0
  133. package/adapters/cursor/src/schemas/managed-file-lock.schema.json +77 -0
  134. package/adapters/cursor/src/schemas/migration-manifest.schema.json +412 -0
  135. package/adapters/cursor/src/schemas/observation-scope.schema.json +91 -0
  136. package/adapters/cursor/src/schemas/operation-request.schema.json +58 -0
  137. package/adapters/cursor/src/schemas/operation-result.schema.json +130 -0
  138. package/adapters/cursor/src/schemas/platform-difference-registry.schema.json +110 -0
  139. package/adapters/cursor/src/schemas/plugin-verification-request.schema.json +499 -0
  140. package/adapters/cursor/src/schemas/plugin-verification-result.schema.json +1217 -0
  141. package/adapters/cursor/src/schemas/profile-adoption-declaration.schema.json +111 -0
  142. package/adapters/cursor/src/schemas/profile-descriptor.schema.json +99 -0
  143. package/adapters/cursor/src/schemas/project-manifest.schema.json +67 -0
  144. package/adapters/cursor/src/schemas/project-profile.schema.json +25 -0
  145. package/adapters/cursor/src/schemas/public-boundary-declaration.schema.json +73 -0
  146. package/adapters/cursor/src/schemas/report-binding.schema.json +42 -0
  147. package/adapters/cursor/src/schemas/report-model.schema.json +308 -0
  148. package/adapters/cursor/src/schemas/skill-family-directory-verification-request.schema.json +100 -0
  149. package/adapters/cursor/src/schemas/skill-family-directory-verification-result.schema.json +193 -0
  150. package/adapters/cursor/src/schemas/source-authority-receipt.schema.json +31 -0
  151. package/adapters/cursor/src/schemas/state-event-envelope.schema.json +38 -0
  152. package/adapters/cursor/src/schemas/state-snapshot-metadata.schema.json +25 -0
  153. package/adapters/cursor/src/schemas/structured-scan-policy.schema.json +97 -0
  154. package/adapters/cursor/src/schemas/surface-scan-policy.schema.json +42 -0
  155. package/adapters/cursor/src/schemas/timeout-policy.schema.json +24 -0
  156. package/adapters/cursor/src/schemas/token-estimate-record.schema.json +75 -0
  157. package/adapters/cursor/src/schemas/token-estimate-result.schema.json +43 -0
  158. package/adapters/cursor/src/schemas/watchdog-termination-envelope.schema.json +156 -0
  159. package/adapters/kimi/.kimi-plugin/plugin.json +1 -1
  160. package/adapters/kimi/bin/consumer-contract-vectors.json +7 -7
  161. package/adapters/kimi/bin/error-codes.json +1 -1
  162. package/adapters/kimi/bin/foundation-resource-binding.json +1 -1
  163. package/adapters/kimi/bin/prebuild-manifest.json +8 -4
  164. package/adapters/kimi/bin/prebuilds/darwin-arm64/bound_read.darwin-arm64.node +0 -0
  165. package/adapters/kimi/bin/prebuilds/darwin-x64/bound_read.darwin-x64.node +0 -0
  166. package/adapters/kimi/bin/prebuilds/linux-arm64-gnu/bound_read.linux-arm64-gnu.node +0 -0
  167. package/adapters/kimi/bin/prebuilds/linux-x64-gnu/bound_read.linux-x64-gnu.node +0 -0
  168. package/adapters/kimi/bin/registry.json +1 -1
  169. package/adapters/kimi/bin/release-skill.bundle.mjs +3560 -1200
  170. package/adapters/kimi/bin/rules.json +1 -1
  171. package/adapters/kimi/data/hosts/cursor/host-descriptor.json +34 -0
  172. package/adapters/kimi/data/hosts/registry.json +1 -0
  173. package/adapters/kimi/schemas/release-plan.schema.json +255 -25
  174. package/adapters/kimi/schemas/release-project.schema.json +228 -26
  175. package/adapters/kimi/skills/release-finish/SKILL.md +17 -4
  176. package/adapters/kimi/skills/release-help/SKILL.md +40 -39
  177. package/adapters/kimi/src/schemas/host-descriptor.schema.json +9 -2
  178. package/adapters/qoder/.qoder-plugin/plugin.json +1 -1
  179. package/adapters/qoder/bin/consumer-contract-vectors.json +7 -7
  180. package/adapters/qoder/bin/error-codes.json +1 -1
  181. package/adapters/qoder/bin/foundation-resource-binding.json +1 -1
  182. package/adapters/qoder/bin/prebuild-manifest.json +8 -4
  183. package/adapters/qoder/bin/prebuilds/darwin-arm64/bound_read.darwin-arm64.node +0 -0
  184. package/adapters/qoder/bin/prebuilds/darwin-x64/bound_read.darwin-x64.node +0 -0
  185. package/adapters/qoder/bin/prebuilds/linux-arm64-gnu/bound_read.linux-arm64-gnu.node +0 -0
  186. package/adapters/qoder/bin/prebuilds/linux-x64-gnu/bound_read.linux-x64-gnu.node +0 -0
  187. package/adapters/qoder/bin/registry.json +1 -1
  188. package/adapters/qoder/bin/release-skill.bundle.mjs +3560 -1200
  189. package/adapters/qoder/bin/rules.json +1 -1
  190. package/adapters/qoder/data/hosts/cursor/host-descriptor.json +34 -0
  191. package/adapters/qoder/data/hosts/registry.json +1 -0
  192. package/adapters/qoder/schemas/release-plan.schema.json +255 -25
  193. package/adapters/qoder/schemas/release-project.schema.json +228 -26
  194. package/adapters/qoder/skills/release-finish/SKILL.md +17 -4
  195. package/adapters/qoder/skills/release-help/SKILL.md +40 -39
  196. package/adapters/qoder/src/schemas/host-descriptor.schema.json +9 -2
  197. package/adapters/workbuddy/.codebuddy-plugin/plugin.json +1 -1
  198. package/adapters/workbuddy/bin/consumer-contract-vectors.json +7 -7
  199. package/adapters/workbuddy/bin/error-codes.json +1 -1
  200. package/adapters/workbuddy/bin/foundation-resource-binding.json +1 -1
  201. package/adapters/workbuddy/bin/prebuild-manifest.json +8 -4
  202. package/adapters/workbuddy/bin/prebuilds/darwin-arm64/bound_read.darwin-arm64.node +0 -0
  203. package/adapters/workbuddy/bin/prebuilds/darwin-x64/bound_read.darwin-x64.node +0 -0
  204. package/adapters/workbuddy/bin/prebuilds/linux-arm64-gnu/bound_read.linux-arm64-gnu.node +0 -0
  205. package/adapters/workbuddy/bin/prebuilds/linux-x64-gnu/bound_read.linux-x64-gnu.node +0 -0
  206. package/adapters/workbuddy/bin/registry.json +1 -1
  207. package/adapters/workbuddy/bin/release-skill.bundle.mjs +3560 -1200
  208. package/adapters/workbuddy/bin/rules.json +1 -1
  209. package/adapters/workbuddy/data/hosts/cursor/host-descriptor.json +34 -0
  210. package/adapters/workbuddy/data/hosts/registry.json +1 -0
  211. package/adapters/workbuddy/schemas/release-plan.schema.json +255 -25
  212. package/adapters/workbuddy/schemas/release-project.schema.json +228 -26
  213. package/adapters/workbuddy/skills/release-finish/SKILL.md +17 -4
  214. package/adapters/workbuddy/skills/release-help/SKILL.md +40 -39
  215. package/adapters/workbuddy/src/schemas/host-descriptor.schema.json +9 -2
  216. package/bin/consumer-contract-vectors.json +7 -7
  217. package/bin/error-codes.json +1 -1
  218. package/bin/foundation-resource-binding.json +1 -1
  219. package/bin/prebuild-manifest.json +8 -4
  220. package/bin/prebuilds/darwin-arm64/bound_read.darwin-arm64.node +0 -0
  221. package/bin/prebuilds/darwin-x64/bound_read.darwin-x64.node +0 -0
  222. package/bin/prebuilds/linux-arm64-gnu/bound_read.linux-arm64-gnu.node +0 -0
  223. package/bin/prebuilds/linux-x64-gnu/bound_read.linux-x64-gnu.node +0 -0
  224. package/bin/registry.json +1 -1
  225. package/bin/release-skill-cli.mjs +25 -1
  226. package/bin/release-skill.bundle.mjs +3560 -1200
  227. package/bin/rules.json +1 -1
  228. package/data/hosts/cursor/host-descriptor.json +34 -0
  229. package/data/hosts/registry.json +1 -0
  230. package/package.json +7 -5
  231. package/platform-manifest.json +75 -9
  232. package/schemas/release-plan.schema.json +255 -25
  233. package/schemas/release-project.schema.json +228 -26
  234. package/scripts/sync-public-files.mjs +3 -22
  235. package/skills/release-finish/SKILL.md +17 -4
  236. package/skills/release-help/SKILL.md +40 -39
  237. package/skills-src/release-finish/SKILL.md +17 -4
  238. package/skills-src/release-help/SKILL.md +40 -39
  239. package/src/adapters/contract.mjs +1 -0
  240. package/src/adapters/plugin-marketplace.mjs +201 -9
  241. package/src/commands/post-release-local.mjs +290 -34
  242. package/src/commands/prepare.mjs +74 -9
  243. package/src/commands/publish.mjs +4 -1
  244. package/src/commands/ship.mjs +2 -0
  245. package/src/commands/verify.mjs +73 -0
  246. package/src/core/checkpoints.mjs +5 -2
  247. package/src/core/config.mjs +1 -1
  248. package/src/core/foundation-host-verification.mjs +168 -0
  249. package/src/core/plan.mjs +19 -1
  250. package/src/core/postpublish.mjs +9 -1
  251. package/src/core/run-retention.mjs +1 -1
  252. package/src/core/surface-host-bindings.mjs +1 -0
  253. package/src/core/verification-gates.mjs +1 -1
  254. package/src/platforms/registry.mjs +225 -16
  255. package/src/producers/build-adapters.mjs +21 -26
  256. package/src/producers/foundation-resource-projection.mjs +3 -3
  257. package/src/schemas/host-descriptor.schema.json +9 -2
@@ -0,0 +1,308 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://contracts.skill-family.example/v1/report-model.json",
4
+ "title": "ReportModel",
5
+ "description": "A caller-authored, machine-validated model that is the only structured source for human-report facts. Harness never interprets business outputs or invents report prose, but it does bind the model to the source operation result's digest, terminal state, and complete stable-coded errors.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "schemaVersion",
10
+ "kind",
11
+ "identity",
12
+ "timeRange",
13
+ "outcome",
14
+ "errors",
15
+ "changes",
16
+ "evidence",
17
+ "risks",
18
+ "unresolved",
19
+ "nextActions",
20
+ "appendices",
21
+ "source",
22
+ "renderer"
23
+ ],
24
+ "properties": {
25
+ "schemaVersion": {
26
+ "const": 1
27
+ },
28
+ "kind": {
29
+ "const": "skill-family.report-model"
30
+ },
31
+ "identity": {
32
+ "type": "object",
33
+ "additionalProperties": false,
34
+ "required": ["runId", "skillFamily", "audience", "locale"],
35
+ "properties": {
36
+ "runId": {
37
+ "type": "string",
38
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$",
39
+ "description": "The machine run/operation identity this report is about."
40
+ },
41
+ "skillFamily": {
42
+ "type": "string",
43
+ "minLength": 1,
44
+ "description": "The skill family whose run produced the underlying machine result."
45
+ },
46
+ "stageId": {
47
+ "type": "string",
48
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$",
49
+ "description": "Optional stage identity echoed from the machine result when present."
50
+ },
51
+ "audience": {
52
+ "enum": ["operator", "reviewer", "consumer"],
53
+ "description": "The declared reader of the report; selection only, never a license to add facts."
54
+ },
55
+ "locale": {
56
+ "enum": ["zh-CN", "en-US"],
57
+ "description": "Frozen rendering locale set; an unsupported locale is a hard failure (SFC3002), never a silent fallback."
58
+ }
59
+ }
60
+ },
61
+ "timeRange": {
62
+ "type": "object",
63
+ "additionalProperties": false,
64
+ "required": ["startedAt", "completedAt"],
65
+ "properties": {
66
+ "startedAt": {
67
+ "type": "string",
68
+ "format": "date-time",
69
+ "description": "RFC 3339 start time copied from the machine result; never invented by the renderer."
70
+ },
71
+ "completedAt": {
72
+ "type": "string",
73
+ "format": "date-time",
74
+ "description": "RFC 3339 terminal time copied from the machine result; never invented by the renderer."
75
+ }
76
+ }
77
+ },
78
+ "outcome": {
79
+ "type": "object",
80
+ "additionalProperties": false,
81
+ "required": ["executionStatus", "summary", "counts"],
82
+ "properties": {
83
+ "executionStatus": {
84
+ "enum": [
85
+ "SUCCEEDED",
86
+ "SUCCEEDED_WITH_WARNINGS",
87
+ "FAILED",
88
+ "BLOCKED",
89
+ "NEEDS_INPUT",
90
+ "SKIPPED",
91
+ "CANCELLED"
92
+ ],
93
+ "description": "The machine execution status, copied verbatim from the machine result vocabulary."
94
+ },
95
+ "summary": {
96
+ "type": "string",
97
+ "minLength": 1,
98
+ "description": "The conclusion sentence(s). A report without a conclusion is a missing element (SFC3002), never an empty render."
99
+ },
100
+ "blockingReason": {
101
+ "type": ["string", "null"],
102
+ "description": "Present only when the machine result carries one (FAILED/BLOCKED); never invented."
103
+ },
104
+ "counts": {
105
+ "type": "object",
106
+ "additionalProperties": false,
107
+ "required": ["changes", "evidence", "risks", "unresolved", "nextActions", "appendices"],
108
+ "properties": {
109
+ "changes": { "type": "integer", "minimum": 0 },
110
+ "evidence": { "type": "integer", "minimum": 0 },
111
+ "risks": { "type": "integer", "minimum": 0 },
112
+ "unresolved": { "type": "integer", "minimum": 0 },
113
+ "nextActions": { "type": "integer", "minimum": 0 },
114
+ "appendices": { "type": "integer", "minimum": 0 }
115
+ },
116
+ "description": "Mechanically derived section counts; must equal the array lengths below. A mismatch is fact drift."
117
+ }
118
+ }
119
+ },
120
+ "errors": {
121
+ "type": "array",
122
+ "description": "The source operation-result errors copied without loss. It must be empty for successful outcomes; when a source result is supplied, Harness requires canonical equality with result.errors.",
123
+ "items": {
124
+ "$ref": "https://contracts.skill-family.example/v1/operation-result.json#/$defs/error"
125
+ }
126
+ },
127
+ "changes": {
128
+ "type": "array",
129
+ "description": "Changed artifacts declared by the machine result; may legitimately be empty. Order is preserved from the machine result.",
130
+ "items": {
131
+ "type": "object",
132
+ "additionalProperties": false,
133
+ "required": ["path", "description"],
134
+ "properties": {
135
+ "path": {
136
+ "type": "string",
137
+ "minLength": 1,
138
+ "description": "Descriptive artifact path as stated by the machine result; rendering never reads or resolves it."
139
+ },
140
+ "description": {
141
+ "type": "string",
142
+ "minLength": 1
143
+ }
144
+ }
145
+ }
146
+ },
147
+ "evidence": {
148
+ "type": "array",
149
+ "minItems": 1,
150
+ "description": "Traceable evidence entries; a report model without at least one evidence entry is a missing element (SFC3002).",
151
+ "items": {
152
+ "type": "object",
153
+ "additionalProperties": false,
154
+ "required": ["id", "title", "reference"],
155
+ "properties": {
156
+ "id": {
157
+ "type": "string",
158
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$",
159
+ "description": "Stable evidence identifier used for in-report referencing."
160
+ },
161
+ "title": {
162
+ "type": "string",
163
+ "minLength": 1
164
+ },
165
+ "reference": {
166
+ "type": "string",
167
+ "minLength": 1,
168
+ "description": "The exact reference target of this evidence. A rendered link may only point at a declared reference or an in-report anchor; any other target is fact drift."
169
+ },
170
+ "note": {
171
+ "type": "string"
172
+ }
173
+ }
174
+ }
175
+ },
176
+ "risks": {
177
+ "type": "array",
178
+ "description": "Declared risks; may be empty, but the section itself is mandatory in every rendered report.",
179
+ "items": {
180
+ "type": "string",
181
+ "minLength": 1
182
+ }
183
+ },
184
+ "unresolved": {
185
+ "type": "array",
186
+ "description": "Unresolved questions carried out of the run; may be empty.",
187
+ "items": {
188
+ "type": "string",
189
+ "minLength": 1
190
+ }
191
+ },
192
+ "nextActions": {
193
+ "type": "array",
194
+ "description": "Follow-up actions; may be empty, but the section itself is mandatory in every rendered report.",
195
+ "items": {
196
+ "type": "string",
197
+ "minLength": 1
198
+ }
199
+ },
200
+ "appendices": {
201
+ "type": "array",
202
+ "description": "Supplementary material copied from the machine result; may be empty. Never a place for renderer-added prose.",
203
+ "items": {
204
+ "type": "object",
205
+ "additionalProperties": false,
206
+ "required": ["title", "body"],
207
+ "properties": {
208
+ "title": {
209
+ "type": "string",
210
+ "minLength": 1
211
+ },
212
+ "body": {
213
+ "type": "string",
214
+ "minLength": 1
215
+ }
216
+ }
217
+ }
218
+ },
219
+ "source": {
220
+ "type": "object",
221
+ "additionalProperties": false,
222
+ "required": ["resultDigest", "resultState"],
223
+ "properties": {
224
+ "resultDigest": {
225
+ "type": "string",
226
+ "pattern": "^[0-9a-f]{64}$",
227
+ "description": "sha256 hex digest over the canonical JSON of the source machine result document."
228
+ },
229
+ "resultState": {
230
+ "enum": ["succeeded", "failed", "rejected"],
231
+ "description": "The terminal state copied verbatim from the source operation result. Harness verifies it and the compatible human executionStatus without interpreting outputs."
232
+ },
233
+ "resultKind": {
234
+ "type": "string",
235
+ "minLength": 1,
236
+ "description": "Optional kind discriminator of the source machine result document."
237
+ }
238
+ }
239
+ },
240
+ "renderer": {
241
+ "type": "object",
242
+ "additionalProperties": false,
243
+ "required": ["name", "version"],
244
+ "properties": {
245
+ "name": {
246
+ "type": "string",
247
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._/-]{0,127}$",
248
+ "description": "Identity of the deterministic renderer that produced the model."
249
+ },
250
+ "version": {
251
+ "type": "string",
252
+ "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$",
253
+ "description": "Exact semver of the renderer; no ranges."
254
+ }
255
+ }
256
+ }
257
+ },
258
+ "allOf": [
259
+ {
260
+ "if": {
261
+ "properties": {
262
+ "outcome": {
263
+ "type": "object",
264
+ "properties": {
265
+ "executionStatus": {
266
+ "enum": ["SUCCEEDED", "SUCCEEDED_WITH_WARNINGS"]
267
+ }
268
+ },
269
+ "required": ["executionStatus"]
270
+ }
271
+ },
272
+ "required": ["outcome"]
273
+ },
274
+ "then": {
275
+ "properties": {
276
+ "errors": {
277
+ "type": "array",
278
+ "maxItems": 0
279
+ }
280
+ }
281
+ }
282
+ },
283
+ {
284
+ "if": {
285
+ "properties": {
286
+ "outcome": {
287
+ "type": "object",
288
+ "properties": {
289
+ "executionStatus": {
290
+ "enum": ["FAILED", "BLOCKED"]
291
+ }
292
+ },
293
+ "required": ["executionStatus"]
294
+ }
295
+ },
296
+ "required": ["outcome"]
297
+ },
298
+ "then": {
299
+ "properties": {
300
+ "errors": {
301
+ "type": "array",
302
+ "minItems": 1
303
+ }
304
+ }
305
+ }
306
+ }
307
+ ]
308
+ }
@@ -0,0 +1,100 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://contracts.skill-family.example/v1/skill-family-directory-verification-request.json",
4
+ "title": "Skill-family directory verification request",
5
+ "description": "A public, closed request for the Kimi skill-family directory adapter. Family roots, member tables, executable identity inputs and authentication sources are private bindings and never occur here.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": ["schemaVersion", "kind", "operation", "verificationSetId", "host", "expectedSkills", "familyTree", "workload", "auth"],
9
+ "properties": {
10
+ "schemaVersion": { "const": 1 },
11
+ "kind": { "const": "skill-family.skill-family-directory-verification-request" },
12
+ "operation": { "const": "skill-family-directory-verification" },
13
+ "verificationSetId": { "$ref": "#/$defs/opaque" },
14
+ "host": { "$ref": "#/$defs/host" },
15
+ "expectedSkills": {
16
+ "type": "array",
17
+ "minItems": 2,
18
+ "maxItems": 128,
19
+ "uniqueItems": true,
20
+ "items": {
21
+ "type": "object",
22
+ "additionalProperties": false,
23
+ "required": ["name", "sourceSha256"],
24
+ "properties": {
25
+ "name": { "$ref": "#/$defs/skillName" },
26
+ "sourceSha256": { "$ref": "#/$defs/sha256" }
27
+ }
28
+ }
29
+ },
30
+ "familyTree": {
31
+ "type": "object",
32
+ "additionalProperties": false,
33
+ "required": ["sourceManifestSha256", "membersDigest"],
34
+ "properties": {
35
+ "sourceManifestSha256": { "$ref": "#/$defs/sha256" },
36
+ "membersDigest": { "$ref": "#/$defs/sha256" }
37
+ }
38
+ },
39
+ "workload": { "$ref": "#/$defs/workload" },
40
+ "auth": { "$ref": "#/$defs/auth" }
41
+ },
42
+ "$defs": {
43
+ "sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
44
+ "opaque": { "type": "string", "minLength": 1, "maxLength": 512, "pattern": "^[^\\u0000\\r\\n]+$" },
45
+ "skillName": { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$" },
46
+ "host": {
47
+ "type": "object",
48
+ "additionalProperties": false,
49
+ "required": ["hostId", "descriptorSha256", "driverId", "driverVersion", "cliVersion"],
50
+ "properties": {
51
+ "hostId": { "const": "kimi-code" },
52
+ "descriptorSha256": { "$ref": "#/$defs/sha256" },
53
+ "driverId": { "const": "kimi-code-print-v1" },
54
+ "driverVersion": { "const": "1.0.0" },
55
+ "cliVersion": { "const": "0.39.1" }
56
+ }
57
+ },
58
+ "semver": { "type": "string", "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(?:-[0-9A-Za-z.-]+)?$" },
59
+ "timeoutPolicy": {
60
+ "$ref": "https://contracts.skill-family.example/v1/timeout-policy.json"
61
+ },
62
+ "workload": {
63
+ "type": "object",
64
+ "additionalProperties": false,
65
+ "required": ["effectivePromptSha256", "fixtureClosureDigest", "protectedWorkspaceClosureDigest", "timeoutPolicy", "modelOverridePolicy", "restrictions"],
66
+ "properties": {
67
+ "effectivePromptSha256": { "$ref": "#/$defs/sha256" },
68
+ "fixtureClosureDigest": { "$ref": "#/$defs/sha256" },
69
+ "protectedWorkspaceClosureDigest": { "$ref": "#/$defs/sha256" },
70
+ "timeoutPolicy": { "$ref": "#/$defs/timeoutPolicy" },
71
+ "modelOverridePolicy": { "const": "forbidden" },
72
+ "restrictions": { "$ref": "#/$defs/restrictions" }
73
+ }
74
+ },
75
+ "restrictions": {
76
+ "type": "object",
77
+ "additionalProperties": false,
78
+ "properties": {
79
+ "approvalPolicy": { "const": "deny-unattended" },
80
+ "tools": { "const": "skill-only" },
81
+ "mcp": { "const": "disabled" },
82
+ "settingsSources": { "const": "empty" },
83
+ "sessionPersistence": { "const": "disabled" },
84
+ "history": { "const": "fresh" },
85
+ "browserIntegration": { "const": "disabled" },
86
+ "maxTurns": { "type": "integer", "minimum": 1, "maximum": 100 },
87
+ "maxBudgetUsd": { "type": "number", "exclusiveMinimum": 0, "maximum": 100 }
88
+ }
89
+ },
90
+ "auth": {
91
+ "type": "object",
92
+ "additionalProperties": false,
93
+ "required": ["strategy", "credentialMutation"],
94
+ "properties": {
95
+ "strategy": { "const": "existing-user-state" },
96
+ "credentialMutation": { "const": "host-managed" }
97
+ }
98
+ }
99
+ }
100
+ }
@@ -0,0 +1,193 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://contracts.skill-family.example/v1/skill-family-directory-verification-result.json",
4
+ "title": "Skill-family directory verification result",
5
+ "description": "A public, closed Kimi directory verification result. It carries only digests and structured observation summaries; family roots, raw streams, credentials and executable identity inputs remain private.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": ["schemaVersion", "kind", "operation", "status", "requestDigest", "host", "facts", "reason", "requiredActions"],
9
+ "properties": {
10
+ "schemaVersion": { "const": 1 },
11
+ "kind": { "const": "skill-family.skill-family-directory-verification-result" },
12
+ "operation": { "const": "skill-family-directory-verification" },
13
+ "status": { "enum": ["observed", "rejected", "failed", "indeterminate"] },
14
+ "requestDigest": { "$ref": "#/$defs/sha256" },
15
+ "host": { "$ref": "https://contracts.skill-family.example/v1/skill-family-directory-verification-request.json#/$defs/host" },
16
+ "facts": { "$ref": "#/$defs/facts" },
17
+ "reason": {
18
+ "enum": [null, "preflight-rejected", "executable-observation-mismatch", "execution-failed", "snapshot-mismatch", "private-evidence-publication-failed", "boundary-state-indeterminate", "source-invalid", "directory-mismatch", "skill-not-discovered", "skill-not-loaded", "official-observation-unavailable"]
19
+ },
20
+ "requiredActions": {
21
+ "type": "array",
22
+ "uniqueItems": true,
23
+ "items": { "enum": ["manual-temporary-root-inspection-required"] }
24
+ }
25
+ },
26
+ "allOf": [
27
+ {
28
+ "if": { "type": "object", "properties": { "status": { "const": "observed" } }, "required": ["status"] },
29
+ "then": {
30
+ "type": "object",
31
+ "properties": {
32
+ "reason": { "const": null },
33
+ "requiredActions": { "type": "array", "maxItems": 0 },
34
+ "facts": {
35
+ "type": "object",
36
+ "properties": {
37
+ "skills": {
38
+ "type": "array",
39
+ "items": {
40
+ "type": "object",
41
+ "required": ["callId", "resultId"],
42
+ "properties": {
43
+ "discovery": { "const": "observed" },
44
+ "load": { "const": "observed" },
45
+ "callId": { "type": "string", "minLength": 1, "maxLength": 512 },
46
+ "resultId": { "type": "string", "minLength": 1, "maxLength": 512 }
47
+ }
48
+ }
49
+ },
50
+ "workload": {
51
+ "type": "object",
52
+ "properties": {
53
+ "execution": {
54
+ "type": "object",
55
+ "properties": {
56
+ "spawned": { "const": true },
57
+ "exitStatus": { "const": 0 },
58
+ "processStatus": { "const": "EXITED" },
59
+ "terminationReason": { "const": null },
60
+ "watchdogReason": { "const": null },
61
+ "runnerModelOverrideAbsent": { "const": true }
62
+ }
63
+ },
64
+ "streams": { "type": "object" },
65
+ "snapshots": { "type": "object" },
66
+ "snapshotsMatch": { "const": true }
67
+ }
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
73
+ },
74
+ {
75
+ "if": { "type": "object", "properties": { "status": { "const": "indeterminate" } }, "required": ["status"] },
76
+ "then": {
77
+ "type": "object",
78
+ "properties": {
79
+ "reason": { "enum": ["boundary-state-indeterminate", "official-observation-unavailable"] },
80
+ "requiredActions": { "const": ["manual-temporary-root-inspection-required"] }
81
+ }
82
+ }
83
+ },
84
+ {
85
+ "if": { "type": "object", "properties": { "status": { "const": "rejected" } }, "required": ["status"] },
86
+ "then": {
87
+ "type": "object",
88
+ "properties": {
89
+ "reason": { "enum": ["preflight-rejected", "executable-observation-mismatch", "source-invalid", "directory-mismatch"] },
90
+ "requiredActions": { "type": "array", "maxItems": 0 },
91
+ "facts": { "type": "object", "properties": { "workload": { "const": null } } }
92
+ }
93
+ }
94
+ },
95
+ {
96
+ "if": { "type": "object", "properties": { "status": { "const": "failed" } }, "required": ["status"] },
97
+ "then": {
98
+ "type": "object",
99
+ "properties": {
100
+ "reason": { "enum": ["execution-failed", "snapshot-mismatch", "private-evidence-publication-failed", "skill-not-discovered", "skill-not-loaded"] },
101
+ "requiredActions": { "type": "array", "maxItems": 0 }
102
+ }
103
+ }
104
+ }
105
+ ],
106
+ "$defs": {
107
+ "sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
108
+ "skillName": { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$" },
109
+ "facts": {
110
+ "type": "object",
111
+ "additionalProperties": false,
112
+ "required": ["familyTree", "skills", "workload"],
113
+ "properties": {
114
+ "familyTree": {
115
+ "type": "object",
116
+ "additionalProperties": false,
117
+ "required": ["sourceManifestSha256", "membersDigest"],
118
+ "properties": {
119
+ "sourceManifestSha256": { "$ref": "#/$defs/sha256" },
120
+ "membersDigest": { "$ref": "#/$defs/sha256" }
121
+ }
122
+ },
123
+ "skills": {
124
+ "type": "array",
125
+ "minItems": 2,
126
+ "maxItems": 128,
127
+ "uniqueItems": true,
128
+ "items": {
129
+ "type": "object",
130
+ "additionalProperties": false,
131
+ "required": ["name", "sourceSha256", "discovery", "load", "callId", "resultId"],
132
+ "properties": {
133
+ "name": { "$ref": "#/$defs/skillName" },
134
+ "sourceSha256": { "$ref": "#/$defs/sha256" },
135
+ "discovery": { "enum": ["observed", "absent", "unknown"] },
136
+ "load": { "enum": ["observed", "absent", "unknown"] },
137
+ "callId": { "type": ["string", "null"], "minLength": 1, "maxLength": 512 },
138
+ "resultId": { "type": ["string", "null"], "minLength": 1, "maxLength": 512 }
139
+ }
140
+ }
141
+ },
142
+ "workload": {
143
+ "type": ["object", "null"],
144
+ "additionalProperties": false,
145
+ "required": ["execution", "streams", "snapshots", "snapshotsMatch"],
146
+ "properties": {
147
+ "execution": { "$ref": "#/$defs/execution" },
148
+ "streams": { "$ref": "#/$defs/streams" },
149
+ "snapshots": { "$ref": "#/$defs/snapshots" },
150
+ "snapshotsMatch": { "type": ["boolean", "null"] }
151
+ }
152
+ }
153
+ }
154
+ },
155
+ "execution": {
156
+ "type": "object",
157
+ "additionalProperties": false,
158
+ "required": ["spawned", "exitStatus", "processStatus", "terminationReason", "watchdogReason", "runnerModelOverrideAbsent"],
159
+ "properties": {
160
+ "spawned": { "type": "boolean" },
161
+ "exitStatus": { "type": ["integer", "null"], "minimum": 0 },
162
+ "processStatus": { "type": ["string", "null"], "enum": ["PLANNED", "STARTING", "RUNNING", "EXITED", "FAILED_TO_START", "TIMED_OUT", "TERMINATED", null] },
163
+ "terminationReason": { "type": ["string", "null"] },
164
+ "watchdogReason": { "type": ["string", "null"] },
165
+ "runnerModelOverrideAbsent": { "type": "boolean" }
166
+ }
167
+ },
168
+ "stream": {
169
+ "type": "object",
170
+ "additionalProperties": false,
171
+ "required": ["sha256", "bytes", "sensitivity"],
172
+ "properties": { "sha256": { "$ref": "#/$defs/sha256" }, "bytes": { "type": "integer", "minimum": 0 }, "sensitivity": { "const": "private" } }
173
+ },
174
+ "streams": {
175
+ "type": ["object", "null"],
176
+ "additionalProperties": false,
177
+ "required": ["stdout", "stderr"],
178
+ "properties": { "stdout": { "$ref": "#/$defs/stream" }, "stderr": { "$ref": "#/$defs/stream" } }
179
+ },
180
+ "snapshot": {
181
+ "type": "object",
182
+ "additionalProperties": false,
183
+ "required": ["preClosureDigest", "postClosureDigest"],
184
+ "properties": { "preClosureDigest": { "$ref": "#/$defs/sha256" }, "postClosureDigest": { "$ref": "#/$defs/sha256" } }
185
+ },
186
+ "snapshots": {
187
+ "type": ["object", "null"],
188
+ "additionalProperties": false,
189
+ "required": ["family", "fixture", "protectedWorkspace"],
190
+ "properties": { "family": { "$ref": "#/$defs/snapshot" }, "fixture": { "$ref": "#/$defs/snapshot" }, "protectedWorkspace": { "$ref": "#/$defs/snapshot" } }
191
+ }
192
+ }
193
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://contracts.skill-family.example/v1/source-authority-receipt.json",
4
+ "title": "Source Authority Receipt",
5
+ "description": "Business-neutral external authority receipt binding one source repository and base commit to an exact, deterministically ordered package subject set.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": ["schemaVersion", "kind", "sourceRepository", "sourceBaseCommit", "subjects"],
9
+ "properties": {
10
+ "schemaVersion": { "const": 1 },
11
+ "kind": { "const": "skill-family.source-authority-receipt" },
12
+ "sourceRepository": { "type": "string", "minLength": 1 },
13
+ "sourceBaseCommit": { "type": "string", "pattern": "^[0-9a-f]{40}$" },
14
+ "subjects": {
15
+ "type": "array",
16
+ "minItems": 1,
17
+ "uniqueItems": true,
18
+ "items": {
19
+ "type": "object",
20
+ "additionalProperties": false,
21
+ "required": ["packageName", "version", "filename", "sha256"],
22
+ "properties": {
23
+ "packageName": { "type": "string", "minLength": 1 },
24
+ "version": { "type": "string", "minLength": 1 },
25
+ "filename": { "type": "string", "minLength": 1 },
26
+ "sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" }
27
+ }
28
+ }
29
+ }
30
+ }
31
+ }