dsh-standards 1.6.12 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (364) hide show
  1. package/31-DS-C/346/235/241/346/254/276.md +3 -1
  2. package/31-DSH-ENTRY/345/205/245/351/227/250/350/247/204/350/214/203.md +0 -0
  3. package/34-/344/270/211/345/261/202/345/210/206/347/272/247/346/250/241/345/236/213-GB-GBT-GBZ/347/261/273/346/257/224.md +0 -0
  4. package/40-checker/README.md +0 -0
  5. package/40-checker/bin/dsh-flow-collect.mjs +0 -0
  6. package/40-checker/bin/dsh-plugin-verify.mjs +0 -0
  7. package/40-checker/fixtures/bad/index.mjs +0 -0
  8. package/40-checker/fixtures/bad/package.json +0 -0
  9. package/40-checker/fixtures/bad-manifest/index.js +0 -0
  10. package/40-checker/fixtures/bad-manifest/package.json +0 -0
  11. package/40-checker/fixtures/bundle/cordis.patch.yml +0 -0
  12. package/40-checker/fixtures/bundle/package.json +0 -0
  13. package/40-checker/fixtures/bundle/server.mjs +0 -0
  14. package/40-checker/fixtures/bundle-patch-only/cordis.patch.yml +0 -0
  15. package/40-checker/fixtures/bundle-patch-only/package.json +0 -0
  16. package/40-checker/fixtures/bundle-v0/cordis.patch.yml +0 -0
  17. package/40-checker/fixtures/bundle-v0/package.json +0 -0
  18. package/40-checker/fixtures/bundle-v0/server.mjs +0 -0
  19. package/40-checker/fixtures/c12-command-arg/index.mjs +0 -0
  20. package/40-checker/fixtures/c12-command-arg/package.json +0 -0
  21. package/40-checker/fixtures/c12-comment/index.mjs +0 -0
  22. package/40-checker/fixtures/c12-comment/package.json +0 -0
  23. package/40-checker/fixtures/c12-compare/index.mjs +0 -0
  24. package/40-checker/fixtures/c12-compare/package.json +0 -0
  25. package/40-checker/fixtures/c12-doc-string/index.mjs +0 -0
  26. package/40-checker/fixtures/c12-doc-string/package.json +0 -0
  27. package/40-checker/fixtures/c12-grant/index.mjs +0 -0
  28. package/40-checker/fixtures/c12-grant/package.json +0 -0
  29. package/40-checker/fixtures/c12-string/index.mjs +0 -0
  30. package/40-checker/fixtures/c12-string/package.json +0 -0
  31. package/40-checker/fixtures/client-missing/client.js +0 -0
  32. package/40-checker/fixtures/client-missing/index.js +0 -0
  33. package/40-checker/fixtures/client-missing/package.json +0 -0
  34. package/40-checker/fixtures/declaration-file/index.d.ts +0 -0
  35. package/40-checker/fixtures/declaration-file/index.mjs +0 -0
  36. package/40-checker/fixtures/declaration-file/package.json +0 -0
  37. package/40-checker/fixtures/flow-config/index.js +0 -0
  38. package/40-checker/fixtures/flow-config/package.json +0 -0
  39. package/40-checker/fixtures/fs-write/index.mjs +0 -0
  40. package/40-checker/fixtures/fs-write/package.json +0 -0
  41. package/40-checker/fixtures/good/index.mjs +0 -0
  42. package/40-checker/fixtures/good/package.json +0 -0
  43. package/40-checker/fixtures/hang/index.mjs +0 -0
  44. package/40-checker/fixtures/hang/package.json +0 -0
  45. package/40-checker/fixtures/import-local-side-effect/index.mjs +0 -0
  46. package/40-checker/fixtures/import-local-side-effect/package.json +0 -0
  47. package/40-checker/fixtures/import-local-side-effect/side-effectful.mjs +0 -0
  48. package/40-checker/fixtures/import-open-readonly/index.mjs +0 -0
  49. package/40-checker/fixtures/import-open-readonly/package.json +0 -0
  50. package/40-checker/fixtures/import-package-only/index.mjs +0 -0
  51. package/40-checker/fixtures/import-package-only/package.json +0 -0
  52. package/40-checker/fixtures/import-parse-error/index.mjs +0 -0
  53. package/40-checker/fixtures/import-parse-error/package.json +0 -0
  54. package/40-checker/fixtures/import-side-effect/index.mjs +0 -0
  55. package/40-checker/fixtures/import-side-effect/package.json +0 -0
  56. package/40-checker/fixtures/import-side-effect-nonentry/index.mjs +0 -0
  57. package/40-checker/fixtures/import-side-effect-nonentry/package.json +0 -0
  58. package/40-checker/fixtures/import-side-effect-nonentry/selfcheck.mjs +0 -0
  59. package/40-checker/fixtures/import-void-main/index.mjs +0 -0
  60. package/40-checker/fixtures/import-void-main/package.json +0 -0
  61. package/40-checker/fixtures/known-answer/expected.json +0 -0
  62. package/40-checker/fixtures/market-index-real.json +0 -0
  63. package/40-checker/fixtures/market-index.json +0 -0
  64. package/40-checker/fixtures/negative/bad-entry/package.json +0 -0
  65. package/40-checker/fixtures/negative/no-entry/package.json +0 -0
  66. package/40-checker/fixtures/negative/no-patch/package.json +0 -0
  67. package/40-checker/fixtures/negative/root-missing/cordis.patch.yml +0 -0
  68. package/40-checker/fixtures/negative/root-missing/package.json +0 -0
  69. package/40-checker/fixtures/negative/workspace/package.json +0 -0
  70. package/40-checker/fixtures/no-source/package.json +0 -0
  71. package/40-checker/fixtures/parse-error-nonentry/index.mjs +0 -0
  72. package/40-checker/fixtures/parse-error-nonentry/package.json +0 -0
  73. package/40-checker/fixtures/parse-error-nonentry/references/broken.js +0 -0
  74. package/40-checker/fixtures/security/sec11-cred-declared/index.mjs +0 -0
  75. package/40-checker/fixtures/security/sec11-cred-declared/package.json +0 -0
  76. package/40-checker/fixtures/security/sec11-cred-list/index.mjs +0 -0
  77. package/40-checker/fixtures/security/sec11-cred-list/package.json +0 -0
  78. package/40-checker/fixtures/security/sec11-cred-undeclared/index.mjs +0 -0
  79. package/40-checker/fixtures/security/sec11-cred-undeclared/package.json +0 -0
  80. package/40-checker/fixtures/security/sec15-clean/index.mjs +0 -0
  81. package/40-checker/fixtures/security/sec15-clean/package.json +0 -0
  82. package/40-checker/fixtures/security/sec15-install-cred/index.mjs +0 -0
  83. package/40-checker/fixtures/security/sec15-install-cred/install.js +0 -0
  84. package/40-checker/fixtures/security/sec15-install-cred/package.json +0 -0
  85. package/40-checker/fixtures/security/sec15-install-curl/index.mjs +0 -0
  86. package/40-checker/fixtures/security/sec15-install-curl/package.json +0 -0
  87. package/40-checker/fixtures/security/sec15-install-curl/scripts/install.sh +0 -0
  88. package/40-checker/fixtures/security/sec15-install-danger/index.mjs +0 -0
  89. package/40-checker/fixtures/security/sec15-install-danger/install.js +0 -0
  90. package/40-checker/fixtures/security/sec15-install-danger/package.json +0 -0
  91. package/40-checker/fixtures/security/sec15-install-download-safe/index.js +0 -0
  92. package/40-checker/fixtures/security/sec15-install-download-safe/package.json +0 -0
  93. package/40-checker/fixtures/security/sec15-install-download-safe/scripts/install.js +0 -0
  94. package/40-checker/fixtures/security/sec15-install-download-safe/scripts/local-util.cjs +0 -0
  95. package/40-checker/fixtures/security/sec15-install-dynamic/index.js +0 -0
  96. package/40-checker/fixtures/security/sec15-install-dynamic/package.json +0 -0
  97. package/40-checker/fixtures/security/sec15-install-dynamic/scripts/install.js +0 -0
  98. package/40-checker/fixtures/security/sec15-install-remote-literal/index.js +0 -0
  99. package/40-checker/fixtures/security/sec15-install-remote-literal/package.json +0 -0
  100. package/40-checker/fixtures/security/sec15-install-remote-literal/scripts/install.js +0 -0
  101. package/40-checker/fixtures/security/sec15-install-safe/index.mjs +0 -0
  102. package/40-checker/fixtures/security/sec15-install-safe/install.js +0 -0
  103. package/40-checker/fixtures/security/sec15-install-safe/package.json +0 -0
  104. package/40-checker/fixtures/security/sec15-missing-ref/index.mjs +0 -0
  105. package/40-checker/fixtures/security/sec15-missing-ref/package.json +0 -0
  106. package/40-checker/fixtures/security/sec15-node/index.mjs +0 -0
  107. package/40-checker/fixtures/security/sec15-node/package.json +0 -0
  108. package/40-checker/fixtures/security/sec15-node/scripts/build.mjs +0 -0
  109. package/40-checker/fixtures/security/sec15-pipe/index.mjs +0 -0
  110. package/40-checker/fixtures/security/sec15-pipe/package.json +0 -0
  111. package/40-checker/fixtures/security/sec16-base64-clean/index.mjs +0 -0
  112. package/40-checker/fixtures/security/sec16-base64-clean/package.json +0 -0
  113. package/40-checker/fixtures/security/sec16-base64-eval/index.mjs +0 -0
  114. package/40-checker/fixtures/security/sec16-base64-eval/package.json +0 -0
  115. package/40-checker/fixtures/security/sec16-client/index.mjs +0 -0
  116. package/40-checker/fixtures/security/sec16-client/lib/client.js +0 -0
  117. package/40-checker/fixtures/security/sec16-client/package.json +0 -0
  118. package/40-checker/fixtures/security/sec16-declared/index.mjs +0 -0
  119. package/40-checker/fixtures/security/sec16-declared/package.json +0 -0
  120. package/40-checker/fixtures/security/sec16-eval/index.mjs +0 -0
  121. package/40-checker/fixtures/security/sec16-eval/package.json +0 -0
  122. package/40-checker/fixtures/security/sec16-exec-curl/index.mjs +0 -0
  123. package/40-checker/fixtures/security/sec16-exec-curl/package.json +0 -0
  124. package/40-checker/fixtures/security/sec16-import-only/index.mjs +0 -0
  125. package/40-checker/fixtures/security/sec16-import-only/package.json +0 -0
  126. package/40-checker/fixtures/security/sec16-require/index.mjs +0 -0
  127. package/40-checker/fixtures/security/sec16-require/package.json +0 -0
  128. package/40-checker/fixtures/security/sec16-spawn-shell/index.mjs +0 -0
  129. package/40-checker/fixtures/security/sec16-spawn-shell/package.json +0 -0
  130. package/40-checker/fixtures/security/sec16-subprocess-safe/index.mjs +0 -0
  131. package/40-checker/fixtures/security/sec16-subprocess-safe/package.json +0 -0
  132. package/40-checker/fixtures/security/sec16-vendor-bundle/lib/index.js +0 -0
  133. package/40-checker/fixtures/security/sec16-vendor-bundle/package.json +0 -0
  134. package/40-checker/fixtures/security/sec16-vendor-decoy/lib/index.js +0 -0
  135. package/40-checker/fixtures/security/sec16-vendor-decoy/package.json +0 -0
  136. package/40-checker/fixtures/security/sec16-vendor-path/index.mjs +0 -0
  137. package/40-checker/fixtures/security/sec16-vendor-path/package.json +0 -0
  138. package/40-checker/fixtures/security/sec16-vendor-path/vendor/schemastery.mjs +0 -0
  139. package/40-checker/fixtures/security/sec17-alias-clean/data.txt +0 -0
  140. package/40-checker/fixtures/security/sec17-alias-clean/index.mjs +0 -0
  141. package/40-checker/fixtures/security/sec17-alias-clean/package.json +0 -0
  142. package/40-checker/fixtures/security/sec17-alias-read/index.mjs +0 -0
  143. package/40-checker/fixtures/security/sec17-alias-read/package.json +0 -0
  144. package/40-checker/fixtures/security/sec17-base64-path/index.mjs +0 -0
  145. package/40-checker/fixtures/security/sec17-base64-path/package.json +0 -0
  146. package/40-checker/fixtures/security/sec17-base64-path-clean/data/config.json +0 -0
  147. package/40-checker/fixtures/security/sec17-base64-path-clean/index.mjs +0 -0
  148. package/40-checker/fixtures/security/sec17-base64-path-clean/package.json +0 -0
  149. package/40-checker/fixtures/security/sec17-cred-exfil/index.mjs +0 -0
  150. package/40-checker/fixtures/security/sec17-cred-exfil/package.json +0 -0
  151. package/40-checker/fixtures/security/sec17-env/index.mjs +0 -0
  152. package/40-checker/fixtures/security/sec17-env/package.json +0 -0
  153. package/40-checker/fixtures/security/sec17-home-env/index.js +0 -0
  154. package/40-checker/fixtures/security/sec17-home-env/package.json +0 -0
  155. package/40-checker/fixtures/security/sec17-home-env-clean/index.mjs +0 -0
  156. package/40-checker/fixtures/security/sec17-home-env-clean/package.json +0 -0
  157. package/40-checker/fixtures/security/sec17-seam/index.mjs +0 -0
  158. package/40-checker/fixtures/security/sec17-seam/package.json +0 -0
  159. package/40-checker/fixtures/security/sec17-ssh/index.mjs +0 -0
  160. package/40-checker/fixtures/security/sec17-ssh/package.json +0 -0
  161. package/40-checker/fixtures/security/sec18-bad/index.mjs +0 -0
  162. package/40-checker/fixtures/security/sec18-bad/package.json +0 -0
  163. package/40-checker/fixtures/security/sec18-good/index.mjs +0 -0
  164. package/40-checker/fixtures/security/sec18-good/package.json +0 -0
  165. package/40-checker/fixtures/security/sec18-split-fetch/index.mjs +0 -0
  166. package/40-checker/fixtures/security/sec18-split-fetch/package.json +0 -0
  167. package/40-checker/fixtures/security/sec18-split-fetch-clean/index.mjs +0 -0
  168. package/40-checker/fixtures/security/sec18-split-fetch-clean/package.json +0 -0
  169. package/40-checker/fixtures/security/sec18-undeclared/index.mjs +0 -0
  170. package/40-checker/fixtures/security/sec18-undeclared/package.json +0 -0
  171. package/40-checker/fixtures/security/sec19-blob/index.mjs +0 -0
  172. package/40-checker/fixtures/security/sec19-blob/package.json +0 -0
  173. package/40-checker/fixtures/security/sec19-clean/index.mjs +0 -0
  174. package/40-checker/fixtures/security/sec19-clean/package.json +0 -0
  175. package/40-checker/fixtures/security/sec19-wasm/blob.wasm +0 -0
  176. package/40-checker/fixtures/security/sec19-wasm/index.mjs +0 -0
  177. package/40-checker/fixtures/security/sec19-wasm/package.json +0 -0
  178. package/40-checker/fixtures/security/sec20-unwrapped/index.mjs +0 -0
  179. package/40-checker/fixtures/security/sec20-unwrapped/package.json +0 -0
  180. package/40-checker/fixtures/security/sec20-wrapped/index.mjs +0 -0
  181. package/40-checker/fixtures/security/sec20-wrapped/package.json +0 -0
  182. package/40-checker/fixtures/security/sec21-known/index.mjs +0 -0
  183. package/40-checker/fixtures/security/sec21-known/package.json +0 -0
  184. package/40-checker/fixtures/security/sec21-typosquat/index.mjs +0 -0
  185. package/40-checker/fixtures/security/sec21-typosquat/package.json +0 -0
  186. package/40-checker/fixtures/security/sec22-attested/index.mjs +0 -0
  187. package/40-checker/fixtures/security/sec22-attested/package.json +0 -0
  188. package/40-checker/fixtures/security/sec22-none/index.mjs +0 -0
  189. package/40-checker/fixtures/security/sec22-none/package.json +0 -0
  190. package/40-checker/package.json +0 -0
  191. package/40-checker/samples/README.md +0 -0
  192. package/40-checker/samples/entry18.json +0 -0
  193. package/40-checker/samples/frame.json +0 -0
  194. package/40-checker/scripts/apply-overlay.mjs +0 -0
  195. package/40-checker/scripts/attestation-check.mjs +0 -0
  196. package/40-checker/scripts/build-offline-kit.mjs +0 -0
  197. package/40-checker/scripts/build-sidecar.mjs +0 -0
  198. package/40-checker/scripts/bundle-smoke.mjs +0 -0
  199. package/40-checker/scripts/claim-check.mjs +0 -0
  200. package/40-checker/scripts/clause-map.mjs +0 -0
  201. package/40-checker/scripts/collect-fixtures.mjs +0 -0
  202. package/40-checker/scripts/dashboard.mjs +0 -0
  203. package/40-checker/scripts/dco-check.mjs +0 -0
  204. package/40-checker/scripts/dependabot-check.mjs +0 -0
  205. package/40-checker/scripts/doc-commands-check.mjs +0 -0
  206. package/40-checker/scripts/entry-scan.mjs +0 -0
  207. package/40-checker/scripts/entry-validate.mjs +0 -0
  208. package/40-checker/scripts/entry18-attribution.mjs +0 -0
  209. package/40-checker/scripts/entry18-ci.mjs +0 -0
  210. package/40-checker/scripts/entry18-realweb-summary.mjs +0 -0
  211. package/40-checker/scripts/entry18-web.mjs +0 -0
  212. package/40-checker/scripts/evidence-chain.mjs +0 -0
  213. package/40-checker/scripts/flow-collect.mjs +0 -0
  214. package/40-checker/scripts/flow-index.mjs +0 -0
  215. package/40-checker/scripts/flow-sample-ci.mjs +0 -0
  216. package/40-checker/scripts/governance-check.mjs +0 -0
  217. package/40-checker/scripts/host-farm.mjs +0 -0
  218. package/40-checker/scripts/journey-config-observe.mjs +0 -0
  219. package/40-checker/scripts/journey-disclosure-shape.mjs +0 -0
  220. package/40-checker/scripts/journey-runtime.mjs +0 -0
  221. package/40-checker/scripts/journey.mjs +0 -0
  222. package/40-checker/scripts/label-drift.mjs +0 -0
  223. package/40-checker/scripts/label-sync.mjs +0 -0
  224. package/40-checker/scripts/label-verify.mjs +0 -0
  225. package/40-checker/scripts/land-runtime-artifacts.mjs +0 -0
  226. package/40-checker/scripts/landlock-exec.c +0 -0
  227. package/40-checker/scripts/level-audit.mjs +0 -0
  228. package/40-checker/scripts/m1-sidecar.mjs +0 -0
  229. package/40-checker/scripts/m2-runner.mjs +0 -0
  230. package/40-checker/scripts/repo-anchor-check.mjs +0 -0
  231. package/40-checker/scripts/round-robin.mjs +0 -0
  232. package/40-checker/scripts/run-tests.mjs +0 -0
  233. package/40-checker/scripts/runtime-child.mjs +0 -0
  234. package/40-checker/scripts/sample-frame.mjs +0 -0
  235. package/40-checker/scripts/sample20-ci.mjs +0 -0
  236. package/40-checker/scripts/sample60-ci.mjs +0 -0
  237. package/40-checker/scripts/sign-evidence.mjs +0 -0
  238. package/40-checker/scripts/stale-check.mjs +0 -0
  239. package/40-checker/scripts/surveillance.mjs +0 -0
  240. package/40-checker/scripts/web-probe.mjs +0 -0
  241. package/40-checker/src/author-cli.mjs +0 -0
  242. package/40-checker/src/author-report.mjs +0 -0
  243. package/40-checker/src/bundle-static.mjs +0 -0
  244. package/40-checker/src/cli.mjs +0 -0
  245. package/40-checker/src/client-shape.mjs +0 -0
  246. package/40-checker/src/declarations.mjs +2 -1
  247. package/40-checker/src/flow-evidence.mjs +0 -0
  248. package/40-checker/src/index.mjs +0 -0
  249. package/40-checker/src/install-spec.mjs +0 -0
  250. package/40-checker/src/label.mjs +0 -0
  251. package/40-checker/src/manifest.mjs +0 -0
  252. package/40-checker/src/npm-command.mjs +0 -0
  253. package/40-checker/src/permissions.mjs +0 -0
  254. package/40-checker/src/remediation.mjs +0 -0
  255. package/40-checker/src/report.mjs +0 -0
  256. package/40-checker/src/result.mjs +0 -0
  257. package/40-checker/src/runtime-child.mjs +0 -0
  258. package/40-checker/src/runtime.mjs +0 -0
  259. package/40-checker/src/sandbox-env.mjs +0 -0
  260. package/40-checker/src/sandbox-run.mjs +0 -0
  261. package/40-checker/src/security.mjs +0 -0
  262. package/40-checker/src/semver.mjs +0 -0
  263. package/40-checker/src/signature.mjs +0 -0
  264. package/40-checker/src/util.mjs +0 -0
  265. package/40-checker/vendor/babel/README.md +0 -0
  266. package/40-checker/vendor/babel/index.cjs +0 -0
  267. package/40-checker/vendor/babel/node_modules/@babel/helper-string-parser/LICENSE +0 -0
  268. package/40-checker/vendor/babel/node_modules/@babel/helper-string-parser/README.md +0 -0
  269. package/40-checker/vendor/babel/node_modules/@babel/helper-string-parser/lib/index.d.ts +0 -0
  270. package/40-checker/vendor/babel/node_modules/@babel/helper-string-parser/lib/index.js +0 -0
  271. package/40-checker/vendor/babel/node_modules/@babel/helper-string-parser/package.json +0 -0
  272. package/40-checker/vendor/babel/node_modules/@babel/helper-validator-identifier/LICENSE +0 -0
  273. package/40-checker/vendor/babel/node_modules/@babel/helper-validator-identifier/README.md +0 -0
  274. package/40-checker/vendor/babel/node_modules/@babel/helper-validator-identifier/lib/identifier-browser.js +0 -0
  275. package/40-checker/vendor/babel/node_modules/@babel/helper-validator-identifier/lib/identifier.js +0 -0
  276. package/40-checker/vendor/babel/node_modules/@babel/helper-validator-identifier/lib/index.d.ts +0 -0
  277. package/40-checker/vendor/babel/node_modules/@babel/helper-validator-identifier/lib/index.js +0 -0
  278. package/40-checker/vendor/babel/node_modules/@babel/helper-validator-identifier/package.json +0 -0
  279. package/40-checker/vendor/babel/node_modules/@babel/parser/CHANGELOG.md +0 -0
  280. package/40-checker/vendor/babel/node_modules/@babel/parser/LICENSE +0 -0
  281. package/40-checker/vendor/babel/node_modules/@babel/parser/README.md +0 -0
  282. package/40-checker/vendor/babel/node_modules/@babel/parser/bin/babel-parser.js +0 -0
  283. package/40-checker/vendor/babel/node_modules/@babel/parser/lib/index.d.ts +0 -0
  284. package/40-checker/vendor/babel/node_modules/@babel/parser/lib/index.js +0 -0
  285. package/40-checker/vendor/babel/node_modules/@babel/parser/package.json +0 -0
  286. package/40-checker/vendor/babel/node_modules/@babel/parser/typings/babel-parser.d.ts +0 -0
  287. package/40-checker/vendor/babel/node_modules/@babel/types/LICENSE +0 -0
  288. package/40-checker/vendor/babel/node_modules/@babel/types/README.md +0 -0
  289. package/40-checker/vendor/babel/node_modules/@babel/types/lib/index-legacy.d.ts +0 -0
  290. package/40-checker/vendor/babel/node_modules/@babel/types/lib/index.d.ts +0 -0
  291. package/40-checker/vendor/babel/node_modules/@babel/types/lib/index.js +0 -0
  292. package/40-checker/vendor/babel/node_modules/@babel/types/lib/index.js.flow +0 -0
  293. package/40-checker/vendor/babel/node_modules/@babel/types/package.json +0 -0
  294. package/CHANGELOG.md +21 -0
  295. package/LICENSE +0 -0
  296. package/LICENSE-APACHE +0 -0
  297. package/LICENSE-CC-BY +0 -0
  298. package/NOTICE +0 -0
  299. package/NOTICE.md +0 -0
  300. package/README.en.md +1 -1
  301. package/README.es.md +1 -1
  302. package/README.hi.md +1 -1
  303. package/README.md +5 -3
  304. package/README.pt.md +1 -1
  305. package/SECURITY.md +0 -0
  306. package/bin/dsh-flow-collect.mjs +0 -0
  307. package/bin/dsh-levels.mjs +0 -0
  308. package/bin/dsh-standards.mjs +0 -0
  309. package/docs/BOOST-FIXTURES-2026-11-02.md +0 -0
  310. package/docs/COMPATUM.md +193 -0
  311. package/docs/DEVELOPER-JOURNEY.md +0 -0
  312. package/docs/HOST-J3-BUG-REPORT-DRAFT.md +0 -0
  313. package/docs/HOST-J3-CONFIG-REPRO-2026-11-02.md +0 -0
  314. package/docs/NAMING-FALLBACK.md +0 -0
  315. package/docs/SIGNING.md +0 -0
  316. package/docs/assets/dsh-standards-flow-dark.svg +0 -0
  317. package/docs/assets/dsh-standards-flow-light.svg +0 -0
  318. package/docs/assets/dsh-standards-flow-v3-dark.svg +0 -0
  319. package/docs/assets/dsh-standards-flow-v3-light.svg +0 -0
  320. package/docs/assets/dsh-standards-flow-v4-dark.svg +0 -0
  321. package/docs/assets/dsh-standards-flow-v4-light.svg +0 -0
  322. package/docs/assets/dsh-standards-hero-en-dark.webp +0 -0
  323. package/docs/assets/dsh-standards-hero-en-light.webp +0 -0
  324. package/docs/assets/dsh-standards-hero-zh-dark.webp +0 -0
  325. package/docs/assets/dsh-standards-hero-zh-light.webp +0 -0
  326. package/docs/coverage.md +0 -0
  327. package/docs/fork-policy.md +0 -0
  328. package/docs/full-test-plan-2026-11-02.md +0 -0
  329. package/docs/incident.md +0 -0
  330. package/docs/onboarding.md +0 -0
  331. package/docs/privacy.md +0 -0
  332. package/docs/release.md +0 -0
  333. package/docs/repo-anchors-rc3-2026-11-14.md +0 -0
  334. package/docs/scope-security.md +0 -0
  335. package/docs/status-taxonomy.md +0 -0
  336. package/docs/sunset.md +0 -0
  337. package/docs/translating.md +0 -0
  338. package/examples/compatum/mcp-profile.json +105 -0
  339. package/examples/compatum/permission-rules-profile.json +97 -0
  340. package/examples/compatum/plugin-full.json +155 -0
  341. package/examples/compatum/plugin-min.json +48 -0
  342. package/package.json +3 -1
  343. package/spec/README.md +3 -0
  344. package/spec/boost/README.md +0 -0
  345. package/spec/clauses.json +0 -0
  346. package/spec/compatum-validate.mjs +791 -0
  347. package/spec/compatum.schema.json +939 -0
  348. package/spec/coverage-contract.md +0 -0
  349. package/spec/dsc-clauses.json +0 -0
  350. package/spec/entry/README.md +0 -0
  351. package/spec/examples/boost-card.example.json +0 -0
  352. package/spec/examples/flow-evidence.example.json +0 -0
  353. package/spec/flow/README.md +0 -0
  354. package/spec/flow-evidence.schema.json +0 -0
  355. package/spec/levels.json +0 -0
  356. package/spec/levels.schema.json +0 -0
  357. package/spec/reference-suite.json +0 -0
  358. package/spec/remediation.json +1 -1
  359. package/spec/schemas/advice.schema.json +0 -0
  360. package/spec/schemas/attestation.schema.json +0 -0
  361. package/spec/schemas/boost-card.schema.json +0 -0
  362. package/spec/schemas/conformance.schema.json +0 -0
  363. package/spec/schemas/evidence.schema.json +0 -0
  364. package/spec/schemas/report.schema.json +0 -0
@@ -0,0 +1,939 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://github.com/PerryLink/dsh-standards/spec/compatum.schema.json",
4
+ "title": "Compatum/1 compatibility, capability, and evidence profile",
5
+ "description": "Normative JSON Schema for one compatum/1 block. DSH packages embed the block at package.json#dsh.compatum; other hosts may carry it as vendor metadata. A declaration is disclosure, not enforcement, certification, a badge, a score, or a ranking. Missing is unknown, not none; an empty capabilities array is an explicit none claim but is still a WARN, never a PASS.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "schema",
10
+ "name",
11
+ "version",
12
+ "capabilities",
13
+ "requires",
14
+ "evidence"
15
+ ],
16
+ "properties": {
17
+ "$schema": {
18
+ "type": "string",
19
+ "format": "uri-reference",
20
+ "description": "Optional self-reference to this schema. It is not required in package.json."
21
+ },
22
+ "schema": {
23
+ "const": "compatum/1",
24
+ "description": "Profile identifier. The only accepted value in this version."
25
+ },
26
+ "name": {
27
+ "$ref": "#/$defs/name",
28
+ "description": "Package or server name. For a DSH package it MUST equal package.json#name."
29
+ },
30
+ "version": {
31
+ "$ref": "#/$defs/semver",
32
+ "description": "Exact subject version. For a DSH package it MUST equal package.json#version. A version bump resets the effective level to declared."
33
+ },
34
+ "capabilities": {
35
+ "type": "array",
36
+ "maxItems": 16,
37
+ "items": {
38
+ "$ref": "#/$defs/capability"
39
+ },
40
+ "description": "Closed-set capability declarations. Missing means unknown. Empty is an explicit none claim and remains a WARN with risk unknown, never a PASS. Duplicate IDs and aliases are invalid; the validator checks both."
41
+ },
42
+ "requires": {
43
+ "$ref": "#/$defs/requires"
44
+ },
45
+ "evidence": {
46
+ "type": "array",
47
+ "minItems": 1,
48
+ "items": {
49
+ "$ref": "#/$defs/evidence"
50
+ },
51
+ "description": "At least one record is required so that 'no evidence' is written down rather than inferred. Failures remain evidence and MUST NOT be deleted."
52
+ }
53
+ },
54
+ "$comment": "The machine-readable 16-ID registry, alias map, and effect map live in $defs.capabilityRegistry, $defs.capabilityAliases, and $defs.capabilityEffects. Aliases are accepted only by a checker, never by this schema.",
55
+ "$defs": {
56
+ "name": {
57
+ "type": "string",
58
+ "minLength": 1,
59
+ "maxLength": 214,
60
+ "pattern": "^[A-Za-z0-9@][A-Za-z0-9@._~/-]*$"
61
+ },
62
+ "semver": {
63
+ "type": "string",
64
+ "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$"
65
+ },
66
+ "semverRange": {
67
+ "type": "string",
68
+ "minLength": 1,
69
+ "maxLength": 128,
70
+ "pattern": "^[0-9A-Za-z.*+<>=^~| -]+$"
71
+ },
72
+ "sha256": {
73
+ "type": "string",
74
+ "pattern": "^sha256:[0-9a-f]{64}$"
75
+ },
76
+ "capabilityRegistry": {
77
+ "const": [
78
+ "fs:read",
79
+ "fs:write",
80
+ "shell",
81
+ "subprocess",
82
+ "network:egress",
83
+ "network:ingress",
84
+ "credentials:read",
85
+ "credentials:list",
86
+ "credentials:provider",
87
+ "llm:adapter",
88
+ "sessions:read",
89
+ "sessions:write",
90
+ "system-prompt:write",
91
+ "tools:register",
92
+ "remote:expose",
93
+ "plugin:install"
94
+ ]
95
+ },
96
+ "capabilityAliases": {
97
+ "const": {
98
+ "listen": "network:ingress",
99
+ "exec": "shell",
100
+ "process": "subprocess"
101
+ }
102
+ },
103
+ "capabilityEffects": {
104
+ "const": {
105
+ "fs:read": "read",
106
+ "fs:write": "write",
107
+ "shell": "exec",
108
+ "subprocess": "exec",
109
+ "network:egress": "network",
110
+ "network:ingress": "network",
111
+ "credentials:read": "credential",
112
+ "credentials:list": "credential",
113
+ "credentials:provider": "credential",
114
+ "llm:adapter": "control",
115
+ "sessions:read": "read",
116
+ "sessions:write": "write",
117
+ "system-prompt:write": "write",
118
+ "tools:register": "control",
119
+ "remote:expose": "control",
120
+ "plugin:install": "control"
121
+ }
122
+ },
123
+ "effect": {
124
+ "enum": [
125
+ "read",
126
+ "write",
127
+ "exec",
128
+ "network",
129
+ "credential",
130
+ "control"
131
+ ]
132
+ },
133
+ "capability": {
134
+ "type": "object",
135
+ "additionalProperties": false,
136
+ "required": [
137
+ "id"
138
+ ],
139
+ "properties": {
140
+ "id": {
141
+ "enum": [
142
+ "fs:read",
143
+ "fs:write",
144
+ "shell",
145
+ "subprocess",
146
+ "network:egress",
147
+ "network:ingress",
148
+ "credentials:read",
149
+ "credentials:list",
150
+ "credentials:provider",
151
+ "llm:adapter",
152
+ "sessions:read",
153
+ "sessions:write",
154
+ "system-prompt:write",
155
+ "tools:register",
156
+ "remote:expose",
157
+ "plugin:install"
158
+ ],
159
+ "description": "Canonical ID only. Aliases listen, exec, and process MUST be normalized by the checker and MUST NOT be written here."
160
+ },
161
+ "effect": {
162
+ "$ref": "#/$defs/effect"
163
+ },
164
+ "scope": {
165
+ "enum": [
166
+ "workspace",
167
+ "user",
168
+ "host",
169
+ "remote"
170
+ ]
171
+ },
172
+ "targets": {
173
+ "type": "array",
174
+ "minItems": 1,
175
+ "maxItems": 32,
176
+ "uniqueItems": true,
177
+ "items": {
178
+ "type": "string",
179
+ "minLength": 1,
180
+ "maxLength": 512
181
+ },
182
+ "description": "Paths, domains, tool names, or service names. MUST NOT contain secrets. Use placeholders such as $DSH_HOME rather than absolute user paths."
183
+ },
184
+ "reversible": {
185
+ "type": "boolean"
186
+ },
187
+ "approval": {
188
+ "enum": [
189
+ "none",
190
+ "once",
191
+ "always"
192
+ ]
193
+ },
194
+ "hostOnly": {
195
+ "type": "boolean",
196
+ "description": "True when the target carrier cannot express this capability. A loss explanation belongs in the carrier's own projection metadata."
197
+ },
198
+ "reason": {
199
+ "type": "string",
200
+ "minLength": 1,
201
+ "maxLength": 280
202
+ }
203
+ },
204
+ "allOf": [
205
+ {
206
+ "if": {
207
+ "required": [
208
+ "reversible"
209
+ ],
210
+ "properties": {
211
+ "reversible": {
212
+ "const": false
213
+ }
214
+ }
215
+ },
216
+ "then": {
217
+ "required": [
218
+ "approval"
219
+ ],
220
+ "properties": {
221
+ "approval": {
222
+ "enum": [
223
+ "once",
224
+ "always"
225
+ ]
226
+ }
227
+ }
228
+ }
229
+ },
230
+ {
231
+ "if": {
232
+ "required": [
233
+ "id"
234
+ ],
235
+ "properties": {
236
+ "id": {
237
+ "const": "fs:read"
238
+ }
239
+ }
240
+ },
241
+ "then": {
242
+ "properties": {
243
+ "effect": {
244
+ "const": "read"
245
+ }
246
+ }
247
+ }
248
+ },
249
+ {
250
+ "if": {
251
+ "required": [
252
+ "id"
253
+ ],
254
+ "properties": {
255
+ "id": {
256
+ "const": "fs:write"
257
+ }
258
+ }
259
+ },
260
+ "then": {
261
+ "properties": {
262
+ "effect": {
263
+ "const": "write"
264
+ }
265
+ }
266
+ }
267
+ },
268
+ {
269
+ "if": {
270
+ "required": [
271
+ "id"
272
+ ],
273
+ "properties": {
274
+ "id": {
275
+ "const": "shell"
276
+ }
277
+ }
278
+ },
279
+ "then": {
280
+ "properties": {
281
+ "effect": {
282
+ "const": "exec"
283
+ }
284
+ }
285
+ }
286
+ },
287
+ {
288
+ "if": {
289
+ "required": [
290
+ "id"
291
+ ],
292
+ "properties": {
293
+ "id": {
294
+ "const": "subprocess"
295
+ }
296
+ }
297
+ },
298
+ "then": {
299
+ "properties": {
300
+ "effect": {
301
+ "const": "exec"
302
+ }
303
+ }
304
+ }
305
+ },
306
+ {
307
+ "if": {
308
+ "required": [
309
+ "id"
310
+ ],
311
+ "properties": {
312
+ "id": {
313
+ "const": "network:egress"
314
+ }
315
+ }
316
+ },
317
+ "then": {
318
+ "properties": {
319
+ "effect": {
320
+ "const": "network"
321
+ }
322
+ }
323
+ }
324
+ },
325
+ {
326
+ "if": {
327
+ "required": [
328
+ "id"
329
+ ],
330
+ "properties": {
331
+ "id": {
332
+ "const": "network:ingress"
333
+ }
334
+ }
335
+ },
336
+ "then": {
337
+ "properties": {
338
+ "effect": {
339
+ "const": "network"
340
+ }
341
+ }
342
+ }
343
+ },
344
+ {
345
+ "if": {
346
+ "required": [
347
+ "id"
348
+ ],
349
+ "properties": {
350
+ "id": {
351
+ "const": "credentials:read"
352
+ }
353
+ }
354
+ },
355
+ "then": {
356
+ "properties": {
357
+ "effect": {
358
+ "const": "credential"
359
+ }
360
+ }
361
+ }
362
+ },
363
+ {
364
+ "if": {
365
+ "required": [
366
+ "id"
367
+ ],
368
+ "properties": {
369
+ "id": {
370
+ "const": "credentials:list"
371
+ }
372
+ }
373
+ },
374
+ "then": {
375
+ "properties": {
376
+ "effect": {
377
+ "const": "credential"
378
+ }
379
+ }
380
+ }
381
+ },
382
+ {
383
+ "if": {
384
+ "required": [
385
+ "id"
386
+ ],
387
+ "properties": {
388
+ "id": {
389
+ "const": "credentials:provider"
390
+ }
391
+ }
392
+ },
393
+ "then": {
394
+ "properties": {
395
+ "effect": {
396
+ "const": "credential"
397
+ }
398
+ }
399
+ }
400
+ },
401
+ {
402
+ "if": {
403
+ "required": [
404
+ "id"
405
+ ],
406
+ "properties": {
407
+ "id": {
408
+ "const": "llm:adapter"
409
+ }
410
+ }
411
+ },
412
+ "then": {
413
+ "properties": {
414
+ "effect": {
415
+ "const": "control"
416
+ }
417
+ }
418
+ }
419
+ },
420
+ {
421
+ "if": {
422
+ "required": [
423
+ "id"
424
+ ],
425
+ "properties": {
426
+ "id": {
427
+ "const": "sessions:read"
428
+ }
429
+ }
430
+ },
431
+ "then": {
432
+ "properties": {
433
+ "effect": {
434
+ "const": "read"
435
+ }
436
+ }
437
+ }
438
+ },
439
+ {
440
+ "if": {
441
+ "required": [
442
+ "id"
443
+ ],
444
+ "properties": {
445
+ "id": {
446
+ "const": "sessions:write"
447
+ }
448
+ }
449
+ },
450
+ "then": {
451
+ "properties": {
452
+ "effect": {
453
+ "const": "write"
454
+ }
455
+ }
456
+ }
457
+ },
458
+ {
459
+ "if": {
460
+ "required": [
461
+ "id"
462
+ ],
463
+ "properties": {
464
+ "id": {
465
+ "const": "system-prompt:write"
466
+ }
467
+ }
468
+ },
469
+ "then": {
470
+ "properties": {
471
+ "effect": {
472
+ "const": "write"
473
+ }
474
+ }
475
+ }
476
+ },
477
+ {
478
+ "if": {
479
+ "required": [
480
+ "id"
481
+ ],
482
+ "properties": {
483
+ "id": {
484
+ "const": "tools:register"
485
+ }
486
+ }
487
+ },
488
+ "then": {
489
+ "properties": {
490
+ "effect": {
491
+ "const": "control"
492
+ }
493
+ }
494
+ }
495
+ },
496
+ {
497
+ "if": {
498
+ "required": [
499
+ "id"
500
+ ],
501
+ "properties": {
502
+ "id": {
503
+ "const": "remote:expose"
504
+ }
505
+ }
506
+ },
507
+ "then": {
508
+ "properties": {
509
+ "effect": {
510
+ "const": "control"
511
+ }
512
+ }
513
+ }
514
+ },
515
+ {
516
+ "if": {
517
+ "required": [
518
+ "id"
519
+ ],
520
+ "properties": {
521
+ "id": {
522
+ "const": "plugin:install"
523
+ }
524
+ }
525
+ },
526
+ "then": {
527
+ "properties": {
528
+ "effect": {
529
+ "const": "control"
530
+ }
531
+ }
532
+ }
533
+ }
534
+ ]
535
+ },
536
+ "install": {
537
+ "type": "object",
538
+ "additionalProperties": false,
539
+ "required": [
540
+ "unit",
541
+ "entry",
542
+ "activation",
543
+ "data",
544
+ "uninstall"
545
+ ],
546
+ "properties": {
547
+ "unit": {
548
+ "enum": [
549
+ "bundle",
550
+ "plugin",
551
+ "server",
552
+ "skill",
553
+ "package",
554
+ "directory"
555
+ ]
556
+ },
557
+ "entry": {
558
+ "type": "string",
559
+ "minLength": 1,
560
+ "maxLength": 256
561
+ },
562
+ "activation": {
563
+ "enum": [
564
+ "immediate",
565
+ "hot-reload",
566
+ "restart",
567
+ "next-session"
568
+ ]
569
+ },
570
+ "data": {
571
+ "type": "string",
572
+ "minLength": 1,
573
+ "maxLength": 256,
574
+ "description": "none, storage-domain, $DSH_HOME/<name>, ${PLUGIN_DATA}, or ${CLAUDE_PLUGIN_DATA}."
575
+ },
576
+ "uninstall": {
577
+ "$ref": "#/$defs/uninstall"
578
+ }
579
+ }
580
+ },
581
+ "uninstall": {
582
+ "type": "object",
583
+ "additionalProperties": false,
584
+ "required": [
585
+ "stops",
586
+ "removesCode",
587
+ "removesData",
588
+ "residue"
589
+ ],
590
+ "properties": {
591
+ "stops": {
592
+ "const": true,
593
+ "description": "Stopping running processes or rows is mandatory when the unit can run."
594
+ },
595
+ "removesCode": {
596
+ "const": true,
597
+ "description": "Removing installed code is mandatory."
598
+ },
599
+ "removesData": {
600
+ "enum": [
601
+ true,
602
+ false,
603
+ "ask"
604
+ ],
605
+ "description": "Data handling MUST be explicit; false is a declaration, not a promise that no data exists."
606
+ },
607
+ "residue": {
608
+ "type": "array",
609
+ "maxItems": 32,
610
+ "uniqueItems": true,
611
+ "items": {
612
+ "type": "string",
613
+ "minLength": 1,
614
+ "maxLength": 256
615
+ },
616
+ "description": "Known residue. An empty array is an explicit no-residue claim and must be testable."
617
+ }
618
+ }
619
+ },
620
+ "requires": {
621
+ "type": "object",
622
+ "additionalProperties": false,
623
+ "required": [
624
+ "portable",
625
+ "install"
626
+ ],
627
+ "anyOf": [
628
+ {
629
+ "required": [
630
+ "dsh"
631
+ ]
632
+ },
633
+ {
634
+ "required": [
635
+ "mcp"
636
+ ]
637
+ },
638
+ {
639
+ "required": [
640
+ "claude-code"
641
+ ]
642
+ },
643
+ {
644
+ "required": [
645
+ "codex"
646
+ ]
647
+ },
648
+ {
649
+ "required": [
650
+ "agent-plugins"
651
+ ]
652
+ },
653
+ {
654
+ "required": [
655
+ "agent-skills"
656
+ ]
657
+ },
658
+ {
659
+ "required": [
660
+ "node"
661
+ ]
662
+ }
663
+ ],
664
+ "properties": {
665
+ "portable": {
666
+ "const": "1.0"
667
+ },
668
+ "dsh": {
669
+ "$ref": "#/$defs/semverRange",
670
+ "description": "DSH host range. When package.json#engines.dsh exists the two MUST be equal."
671
+ },
672
+ "node": {
673
+ "$ref": "#/$defs/semverRange"
674
+ },
675
+ "claude-code": {
676
+ "$ref": "#/$defs/semverRange"
677
+ },
678
+ "codex": {
679
+ "$ref": "#/$defs/semverRange"
680
+ },
681
+ "agent-plugins": {
682
+ "type": "string",
683
+ "minLength": 1,
684
+ "maxLength": 64
685
+ },
686
+ "agent-skills": {
687
+ "type": "string",
688
+ "minLength": 1,
689
+ "maxLength": 64
690
+ },
691
+ "mcp": {
692
+ "type": "array",
693
+ "minItems": 1,
694
+ "uniqueItems": true,
695
+ "maxItems": 16,
696
+ "items": {
697
+ "type": "string",
698
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
699
+ },
700
+ "description": "Supported MCP protocol revisions. The client selects the intersection; no intersection means the server is skipped."
701
+ },
702
+ "platform": {
703
+ "type": "array",
704
+ "minItems": 1,
705
+ "uniqueItems": true,
706
+ "maxItems": 3,
707
+ "items": {
708
+ "enum": [
709
+ "linux",
710
+ "darwin",
711
+ "win32"
712
+ ]
713
+ }
714
+ },
715
+ "transport": {
716
+ "type": "array",
717
+ "minItems": 1,
718
+ "uniqueItems": true,
719
+ "maxItems": 3,
720
+ "items": {
721
+ "enum": [
722
+ "stdio",
723
+ "streamable-http",
724
+ "sse"
725
+ ]
726
+ }
727
+ },
728
+ "denies": {
729
+ "type": "array",
730
+ "uniqueItems": true,
731
+ "maxItems": 32,
732
+ "items": {
733
+ "type": "string",
734
+ "pattern": "^[a-z0-9*][a-z0-9*:_-]*:none$"
735
+ },
736
+ "description": "Negative constraints such as network:none. These are not capabilities."
737
+ },
738
+ "install": {
739
+ "$ref": "#/$defs/install"
740
+ }
741
+ }
742
+ },
743
+ "subject": {
744
+ "type": "object",
745
+ "additionalProperties": false,
746
+ "required": [
747
+ "repo",
748
+ "version",
749
+ "commit"
750
+ ],
751
+ "properties": {
752
+ "name": {
753
+ "$ref": "#/$defs/name"
754
+ },
755
+ "repo": {
756
+ "type": "string",
757
+ "format": "uri",
758
+ "minLength": 1,
759
+ "maxLength": 512
760
+ },
761
+ "version": {
762
+ "$ref": "#/$defs/semver"
763
+ },
764
+ "commit": {
765
+ "type": "string",
766
+ "pattern": "^[0-9a-f]{7,40}$"
767
+ },
768
+ "path": {
769
+ "type": "string",
770
+ "minLength": 1,
771
+ "maxLength": 512
772
+ }
773
+ }
774
+ },
775
+ "host": {
776
+ "type": "object",
777
+ "additionalProperties": false,
778
+ "required": [
779
+ "name",
780
+ "version"
781
+ ],
782
+ "properties": {
783
+ "name": {
784
+ "type": "string",
785
+ "minLength": 1,
786
+ "maxLength": 64,
787
+ "pattern": "^[a-z0-9][a-z0-9._-]*$"
788
+ },
789
+ "version": {
790
+ "type": "string",
791
+ "minLength": 1,
792
+ "maxLength": 128,
793
+ "pattern": "^[0-9A-Za-z@][0-9A-Za-z@.+_-]*$"
794
+ }
795
+ },
796
+ "description": "Exact host anchor. A range is not an anchor; tested evidence must name the host version that actually ran."
797
+ },
798
+ "evidence": {
799
+ "type": "object",
800
+ "additionalProperties": false,
801
+ "required": [
802
+ "schema",
803
+ "level",
804
+ "subject",
805
+ "host",
806
+ "checker",
807
+ "result",
808
+ "scope",
809
+ "checkedAt"
810
+ ],
811
+ "anyOf": [
812
+ {
813
+ "required": [
814
+ "reportPath"
815
+ ]
816
+ },
817
+ {
818
+ "required": [
819
+ "sha256"
820
+ ]
821
+ }
822
+ ],
823
+ "properties": {
824
+ "schema": {
825
+ "const": "compatum-evidence/1"
826
+ },
827
+ "level": {
828
+ "enum": [
829
+ "declared",
830
+ "checked",
831
+ "tested"
832
+ ]
833
+ },
834
+ "subject": {
835
+ "$ref": "#/$defs/subject"
836
+ },
837
+ "host": {
838
+ "$ref": "#/$defs/host"
839
+ },
840
+ "checker": {
841
+ "type": "string",
842
+ "minLength": 1,
843
+ "maxLength": 128,
844
+ "description": "Tool and version, for example dsh-standards@1.6.12. For a declared-only record the author may be named here."
845
+ },
846
+ "result": {
847
+ "enum": [
848
+ "PASS",
849
+ "WARN",
850
+ "FAIL",
851
+ "NOT-RUN",
852
+ "BLOCKED",
853
+ "ERROR"
854
+ ],
855
+ "description": "Case-sensitive. NOT-RUN is never a pass."
856
+ },
857
+ "scope": {
858
+ "enum": [
859
+ "install",
860
+ "capability",
861
+ "entry",
862
+ "flow",
863
+ "boost",
864
+ "skill",
865
+ "tool"
866
+ ]
867
+ },
868
+ "checkedAt": {
869
+ "type": "string",
870
+ "format": "date-time"
871
+ },
872
+ "reportPath": {
873
+ "type": "string",
874
+ "minLength": 1,
875
+ "maxLength": 512
876
+ },
877
+ "sha256": {
878
+ "$ref": "#/$defs/sha256",
879
+ "description": "sha256: plus 64 lowercase hex characters over the canonical JSON (RFC 8785 JCS) of the record body, excluding this field."
880
+ },
881
+ "expiresAt": {
882
+ "type": "string",
883
+ "format": "date"
884
+ },
885
+ "stale": {
886
+ "type": "boolean"
887
+ },
888
+ "runId": {
889
+ "type": "string",
890
+ "minLength": 1,
891
+ "maxLength": 256
892
+ },
893
+ "url": {
894
+ "type": "string",
895
+ "format": "uri"
896
+ },
897
+ "command": {
898
+ "type": "string",
899
+ "minLength": 1,
900
+ "maxLength": 1024
901
+ }
902
+ },
903
+ "allOf": [
904
+ {
905
+ "if": {
906
+ "required": [
907
+ "level"
908
+ ],
909
+ "properties": {
910
+ "level": {
911
+ "const": "tested"
912
+ }
913
+ }
914
+ },
915
+ "then": {
916
+ "anyOf": [
917
+ {
918
+ "required": [
919
+ "command"
920
+ ]
921
+ },
922
+ {
923
+ "required": [
924
+ "runId"
925
+ ]
926
+ },
927
+ {
928
+ "required": [
929
+ "url"
930
+ ]
931
+ }
932
+ ]
933
+ }
934
+ }
935
+ ],
936
+ "description": "One record per level and observed run. Failures remain evidence. A version or host change makes older records historical (stale: true), not deleted."
937
+ }
938
+ }
939
+ }