dsh-standards 1.6.9 → 1.6.11

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 (355) hide show
  1. package/31-DS-C/346/235/241/346/254/276.md +62 -55
  2. package/31-DSH-ENTRY/345/205/245/351/227/250/350/247/204/350/214/203.md +2 -1
  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 +2 -2
  4. package/40-checker/README.md +6 -6
  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 +1 -1
  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 +4 -1
  197. package/40-checker/scripts/build-sidecar.mjs +78 -9
  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 +5 -1
  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 +7 -6
  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/landlock-exec.c +0 -0
  226. package/40-checker/scripts/level-audit.mjs +0 -0
  227. package/40-checker/scripts/m1-sidecar.mjs +0 -0
  228. package/40-checker/scripts/m2-runner.mjs +5 -2
  229. package/40-checker/scripts/round-robin.mjs +0 -0
  230. package/40-checker/scripts/run-tests.mjs +0 -0
  231. package/40-checker/scripts/runtime-child.mjs +0 -0
  232. package/40-checker/scripts/sample-frame.mjs +0 -0
  233. package/40-checker/scripts/sample20-ci.mjs +0 -0
  234. package/40-checker/scripts/sample60-ci.mjs +0 -0
  235. package/40-checker/scripts/sign-evidence.mjs +0 -0
  236. package/40-checker/scripts/stale-check.mjs +0 -0
  237. package/40-checker/scripts/surveillance.mjs +0 -0
  238. package/40-checker/scripts/web-probe.mjs +0 -0
  239. package/40-checker/src/author-cli.mjs +1 -1
  240. package/40-checker/src/author-report.mjs +0 -0
  241. package/40-checker/src/bundle-static.mjs +0 -0
  242. package/40-checker/src/cli.mjs +11 -3
  243. package/40-checker/src/client-shape.mjs +0 -0
  244. package/40-checker/src/declarations.mjs +69 -5
  245. package/40-checker/src/flow-evidence.mjs +4 -3
  246. package/40-checker/src/index.mjs +1 -1
  247. package/40-checker/src/install-spec.mjs +0 -0
  248. package/40-checker/src/label.mjs +0 -0
  249. package/40-checker/src/manifest.mjs +6 -2
  250. package/40-checker/src/npm-command.mjs +22 -0
  251. package/40-checker/src/permissions.mjs +0 -0
  252. package/40-checker/src/remediation.mjs +0 -0
  253. package/40-checker/src/report.mjs +0 -0
  254. package/40-checker/src/result.mjs +0 -0
  255. package/40-checker/src/runtime-child.mjs +0 -0
  256. package/40-checker/src/runtime.mjs +0 -0
  257. package/40-checker/src/sandbox-env.mjs +0 -0
  258. package/40-checker/src/sandbox-run.mjs +0 -0
  259. package/40-checker/src/security.mjs +0 -0
  260. package/40-checker/src/semver.mjs +0 -0
  261. package/40-checker/src/signature.mjs +0 -0
  262. package/40-checker/src/util.mjs +0 -0
  263. package/40-checker/vendor/babel/README.md +0 -0
  264. package/40-checker/vendor/babel/index.cjs +0 -0
  265. package/40-checker/vendor/babel/node_modules/@babel/helper-string-parser/LICENSE +0 -0
  266. package/40-checker/vendor/babel/node_modules/@babel/helper-string-parser/README.md +0 -0
  267. package/40-checker/vendor/babel/node_modules/@babel/helper-string-parser/lib/index.d.ts +0 -0
  268. package/40-checker/vendor/babel/node_modules/@babel/helper-string-parser/lib/index.js +0 -0
  269. package/40-checker/vendor/babel/node_modules/@babel/helper-string-parser/package.json +0 -0
  270. package/40-checker/vendor/babel/node_modules/@babel/helper-validator-identifier/LICENSE +0 -0
  271. package/40-checker/vendor/babel/node_modules/@babel/helper-validator-identifier/README.md +0 -0
  272. package/40-checker/vendor/babel/node_modules/@babel/helper-validator-identifier/lib/identifier-browser.js +0 -0
  273. package/40-checker/vendor/babel/node_modules/@babel/helper-validator-identifier/lib/identifier.js +0 -0
  274. package/40-checker/vendor/babel/node_modules/@babel/helper-validator-identifier/lib/index.d.ts +0 -0
  275. package/40-checker/vendor/babel/node_modules/@babel/helper-validator-identifier/lib/index.js +0 -0
  276. package/40-checker/vendor/babel/node_modules/@babel/helper-validator-identifier/package.json +0 -0
  277. package/40-checker/vendor/babel/node_modules/@babel/parser/CHANGELOG.md +0 -0
  278. package/40-checker/vendor/babel/node_modules/@babel/parser/LICENSE +0 -0
  279. package/40-checker/vendor/babel/node_modules/@babel/parser/README.md +0 -0
  280. package/40-checker/vendor/babel/node_modules/@babel/parser/bin/babel-parser.js +0 -0
  281. package/40-checker/vendor/babel/node_modules/@babel/parser/lib/index.d.ts +0 -0
  282. package/40-checker/vendor/babel/node_modules/@babel/parser/lib/index.js +0 -0
  283. package/40-checker/vendor/babel/node_modules/@babel/parser/package.json +0 -0
  284. package/40-checker/vendor/babel/node_modules/@babel/parser/typings/babel-parser.d.ts +0 -0
  285. package/40-checker/vendor/babel/node_modules/@babel/types/LICENSE +0 -0
  286. package/40-checker/vendor/babel/node_modules/@babel/types/README.md +0 -0
  287. package/40-checker/vendor/babel/node_modules/@babel/types/lib/index-legacy.d.ts +0 -0
  288. package/40-checker/vendor/babel/node_modules/@babel/types/lib/index.d.ts +0 -0
  289. package/40-checker/vendor/babel/node_modules/@babel/types/lib/index.js +0 -0
  290. package/40-checker/vendor/babel/node_modules/@babel/types/lib/index.js.flow +0 -0
  291. package/40-checker/vendor/babel/node_modules/@babel/types/package.json +0 -0
  292. package/CHANGELOG.md +40 -0
  293. package/LICENSE +0 -0
  294. package/LICENSE-APACHE +0 -0
  295. package/LICENSE-CC-BY +0 -0
  296. package/NOTICE +0 -0
  297. package/NOTICE.md +0 -0
  298. package/README.en.md +11 -5
  299. package/README.es.md +5 -5
  300. package/README.hi.md +5 -5
  301. package/README.md +9 -3
  302. package/README.pt.md +5 -5
  303. package/SECURITY.md +0 -0
  304. package/bin/dsh-flow-collect.mjs +0 -0
  305. package/bin/dsh-levels.mjs +0 -0
  306. package/bin/dsh-standards.mjs +0 -0
  307. package/docs/BOOST-FIXTURES-2026-11-02.md +0 -0
  308. package/docs/DEVELOPER-JOURNEY.md +0 -0
  309. package/docs/HOST-J3-BUG-REPORT-DRAFT.md +0 -0
  310. package/docs/HOST-J3-CONFIG-REPRO-2026-11-02.md +0 -0
  311. package/docs/NAMING-FALLBACK.md +0 -0
  312. package/docs/SIGNING.md +0 -0
  313. package/docs/assets/dsh-standards-flow-dark.svg +0 -0
  314. package/docs/assets/dsh-standards-flow-light.svg +0 -0
  315. package/docs/assets/dsh-standards-flow-v3-dark.svg +0 -0
  316. package/docs/assets/dsh-standards-flow-v3-light.svg +0 -0
  317. package/docs/assets/dsh-standards-flow-v4-dark.svg +0 -0
  318. package/docs/assets/dsh-standards-flow-v4-light.svg +0 -0
  319. package/docs/assets/dsh-standards-hero-en-dark.webp +0 -0
  320. package/docs/assets/dsh-standards-hero-en-light.webp +0 -0
  321. package/docs/assets/dsh-standards-hero-zh-dark.webp +0 -0
  322. package/docs/assets/dsh-standards-hero-zh-light.webp +0 -0
  323. package/docs/coverage.md +1 -1
  324. package/docs/fork-policy.md +0 -0
  325. package/docs/full-test-plan-2026-11-02.md +0 -0
  326. package/docs/incident.md +0 -0
  327. package/docs/onboarding.md +0 -0
  328. package/docs/privacy.md +0 -0
  329. package/docs/release.md +0 -0
  330. package/docs/scope-security.md +0 -0
  331. package/docs/status-taxonomy.md +0 -0
  332. package/docs/sunset.md +0 -0
  333. package/docs/translating.md +0 -0
  334. package/package.json +1 -1
  335. package/spec/README.md +0 -0
  336. package/spec/boost/README.md +0 -0
  337. package/spec/clauses.json +0 -0
  338. package/spec/coverage-contract.md +0 -0
  339. package/spec/dsc-clauses.json +1 -1
  340. package/spec/entry/README.md +0 -0
  341. package/spec/examples/boost-card.example.json +2 -2
  342. package/spec/examples/flow-evidence.example.json +4 -4
  343. package/spec/flow/README.md +0 -0
  344. package/spec/flow-evidence.schema.json +0 -0
  345. package/spec/levels.json +0 -0
  346. package/spec/levels.schema.json +0 -0
  347. package/spec/reference-suite.json +9 -6
  348. package/spec/remediation.json +3 -3
  349. package/spec/schemas/advice.schema.json +0 -0
  350. package/spec/schemas/attestation.schema.json +0 -0
  351. package/spec/schemas/boost-card.schema.json +2 -2
  352. package/spec/schemas/conformance.schema.json +1 -2
  353. package/spec/schemas/evidence.schema.json +0 -0
  354. package/spec/schemas/report.schema.json +0 -0
  355. package/spec/schemas/sidecar.schema.json +0 -228
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -2,7 +2,7 @@
2
2
  "schema": "dsh-entry18-manifest/1",
3
3
  "description": "The 18 deduplicated ENTRY packages: 10 GitHub + 8 npm. id/name/version come from 40-checker/results/entry/18/summary.json. source/spec select the installable artifact: a published npm tarball at the exact version when it exists, otherwise a shallow clone of the repo.",
4
4
  "profile": "base",
5
- "targetDshVersion": "0.2.2-alpha.2",
5
+ "targetDshVersion": "0.2.2-rc.3",
6
6
  "count": 18,
7
7
  "sources": {
8
8
  "github": 10,
File without changes
File without changes
File without changes
@@ -25,6 +25,7 @@ import os from 'node:os'
25
25
  import path from 'node:path'
26
26
  import crypto from 'node:crypto'
27
27
  import { spawnSync } from 'node:child_process'
28
+ import { npmPackInvocation } from '../src/npm-command.mjs'
28
29
  import { fileURLToPath } from 'node:url'
29
30
 
30
31
  const HERE = path.dirname(fileURLToPath(import.meta.url))
@@ -131,7 +132,9 @@ function findTarball(root, explicit, version) {
131
132
  if (fs.existsSync(candidate)) return { file: candidate, temporary: false }
132
133
  }
133
134
  const packDir = fs.mkdtempSync(path.join(os.tmpdir(), 'dsh-standards-pack-'))
134
- const run = spawnSync('npm', ['pack', '--ignore-scripts', '--pack-destination', packDir], {
135
+ const invocation = npmPackInvocation(process.platform, ['pack', '--ignore-scripts', '--pack-destination', packDir])
136
+ const run = spawnSync(invocation.command, invocation.args, {
137
+ shell: invocation.shell,
135
138
  cwd: root,
136
139
  encoding: 'utf8',
137
140
  })
@@ -13,8 +13,15 @@
13
13
  * Entry fields are a superset of the original `dsh-market-sidecar/1` shape
14
14
  * (subject/levels/evidence/validity/lifecycle/selfAssessed are unchanged):
15
15
  * title/repo/license from the published package.json, null when absent
16
- * scope {dsh, cordis, platform} from dsh.engines / npm engines
17
- * / peerDependencies, falling back to the audit anchor
16
+ * scope {dsh, cordis, platform} from the package's OWN
17
+ * declarations (dsh.engines / npm engines / cordis
18
+ * peerDependencies+dependencies); null when the package
19
+ * declares nothing. A check anchor is never copied in:
20
+ * "checked at 0.2.2-rc.3" is not "requires 0.2.2-rc.3".
21
+ * anchor {dsh, cordis, commit, source, suspect}: the five-element
22
+ * anchor the audit actually ran under (from
23
+ * audit.checker.anchor), kept separate from scope so a
24
+ * reader can tell what was checked and what was declared.
18
25
  * checks checker results as {id,result,coverage} only; detailed
19
26
  * reasons stay in the report, never in the sidecar
20
27
  * evidence url/sha256 kept for compatibility; reportUrl/
@@ -56,6 +63,8 @@ const FORBIDDEN = new Set(['advice', 'issuer', 'recordHash', 'verifyUrl', 'score
56
63
  const NOT_CLAIMED = ['official', 'certification', 'security-audit', 'endorsement', 'ordering', 'comparison', 'warranty']
57
64
  const CHECK_KEYS = new Set(['id', 'result', 'coverage'])
58
65
  const SCOPE_KEYS = new Set(['dsh', 'cordis', 'platform'])
66
+ const ANCHOR_KEYS = new Set(['dsh', 'cordis', 'commit', 'source', 'suspect'])
67
+ const ANCHOR_SOURCES = new Set(['cli', 'host', 'default'])
59
68
  const CHECKED_BY_KEYS = new Set(['checker', 'command', 'securityCommand'])
60
69
  const SECURITY_KEYS = new Set(['state', 'checks', 'summary', 'command'])
61
70
  const SECURITY_STATES = new Set(['checked', 'partial', 'not-run'])
@@ -260,19 +269,43 @@ function platformFromPackage(meta) {
260
269
  return [os.join('/'), cpu.join('/')].filter(Boolean).join('-')
261
270
  }
262
271
 
263
- function inferScope(meta, audit) {
264
- const anchor = audit?.checker?.anchor && typeof audit.checker.anchor === 'object' ? audit.checker.anchor : {}
272
+ /**
273
+ * `scope` answers "what does this package declare it runs on?" — it is built
274
+ * only from the package's own manifest fields. A missing declaration stays
275
+ * null; the checker's own anchor must never be presented as a package
276
+ * requirement (that made 28 of 50 entries claim a 0.2.2-rc.3 range they never
277
+ * wrote, and leaked the old 4.0.6-alpha.1 default into 14 cordis scopes).
278
+ */
279
+ function inferScope(meta) {
265
280
  const dshEngines = meta?.dsh?.engines && typeof meta.dsh.engines === 'object' ? meta.dsh.engines : {}
266
281
  const engines = meta?.engines && typeof meta.engines === 'object' ? meta.engines : {}
267
282
  const peer = meta?.peerDependencies && typeof meta.peerDependencies === 'object' ? meta.peerDependencies : {}
268
283
  const deps = meta?.dependencies && typeof meta.dependencies === 'object' ? meta.dependencies : {}
269
284
  return {
270
- dsh: firstString(dshEngines.dsh, engines.dsh, anchor.dsh),
271
- cordis: firstString(dshEngines.cordis, engines.cordis, peer['@deepseek-ai/cordis'], deps['@deepseek-ai/cordis'], anchor.cordis),
285
+ dsh: firstString(dshEngines.dsh, engines.dsh),
286
+ cordis: firstString(dshEngines.cordis, engines.cordis, peer['@deepseek-ai/cordis'], deps['@deepseek-ai/cordis']),
272
287
  platform: platformFromPackage(meta),
273
288
  }
274
289
  }
275
290
 
291
+ /**
292
+ * `anchor` answers "what did the checks run against?" — it is copied from the
293
+ * level audit, never from the package manifest and never defaulted here. A
294
+ * missing audit anchor stays absent; a partial one keeps null axes. `source`
295
+ * and `suspect` are the checker's runtimeSource three-state semantics.
296
+ */
297
+ function inferAnchor(audit) {
298
+ const raw = audit?.checker?.anchor
299
+ if (!raw || typeof raw !== 'object' || Array.isArray(raw)) return null
300
+ const dsh = firstString(raw.dsh)
301
+ const cordis = firstString(raw.cordis)
302
+ const commit = firstString(raw.commit)
303
+ const source = firstString(raw.runtimeSource)
304
+ const suspect = typeof raw.suspect === 'boolean' ? raw.suspect : null
305
+ if (dsh === null && cordis === null && commit === null) return null
306
+ return { dsh, cordis, commit, source, suspect }
307
+ }
308
+
276
309
  function extractChecks(report, name, version) {
277
310
  if (!report || !Array.isArray(report.checks)) return []
278
311
  if (report.subject && typeof report.subject === 'object') {
@@ -495,6 +528,7 @@ function entryFromAudit(audit, options, levelFile) {
495
528
  const command = firstString(options.checkedCommand) ?? (levels.entry.claim === 'runtime'
496
529
  ? 'dsh-levels <package-dir> --format json'
497
530
  : 'dsh-levels <package-dir> --no-runtime --format json')
531
+ const anchor = inferAnchor(audit)
498
532
 
499
533
  return {
500
534
  key: `${name}@${version}`,
@@ -503,7 +537,8 @@ function entryFromAudit(audit, options, levelFile) {
503
537
  title: firstLine(meta.description),
504
538
  repo: normalizeRepo(meta.repository),
505
539
  license: normalizeLicense(meta.license),
506
- scope: inferScope(meta, audit),
540
+ scope: inferScope(meta),
541
+ ...(anchor ? { anchor } : {}),
507
542
  levels,
508
543
  checks,
509
544
  ...(security ? { security } : {}),
@@ -646,6 +681,33 @@ function validateSidecar(sidecar) {
646
681
  }
647
682
  }
648
683
  }
684
+ // Optional and additive: entries produced before the scope/anchor split have
685
+ // no anchor. When present it records the check anchor, never a requirement.
686
+ if (entry.anchor !== undefined) {
687
+ if (!entry.anchor || typeof entry.anchor !== 'object' || Array.isArray(entry.anchor)) {
688
+ throw new Error(`${key}: anchor must be an object`)
689
+ }
690
+ for (const field of Object.keys(entry.anchor)) {
691
+ if (!ANCHOR_KEYS.has(field)) throw new Error(`${key}: anchor.${field} is not part of the sidecar contract`)
692
+ }
693
+ for (const field of ['dsh', 'cordis', 'commit']) {
694
+ const value = entry.anchor[field]
695
+ if (value !== null && value !== undefined && (typeof value !== 'string' || value === '')) {
696
+ throw new Error(`${key}: anchor.${field} must be a non-empty string or null`)
697
+ }
698
+ }
699
+ if (entry.anchor.commit !== undefined && entry.anchor.commit !== null && !HEX40.test(String(entry.anchor.commit))) {
700
+ throw new Error(`${key}: anchor.commit must be 40 hex chars or null`)
701
+ }
702
+ if (entry.anchor.source !== undefined && entry.anchor.source !== null && !ANCHOR_SOURCES.has(entry.anchor.source)) {
703
+ throw new Error(`${key}: anchor.source must be cli, host, default or null`)
704
+ }
705
+ if (entry.anchor.suspect !== undefined && entry.anchor.suspect !== null && typeof entry.anchor.suspect !== 'boolean') {
706
+ throw new Error(`${key}: anchor.suspect must be boolean or null`)
707
+ }
708
+ const recorded = ['dsh', 'cordis', 'commit'].filter(field => entry.anchor[field] !== null && entry.anchor[field] !== undefined)
709
+ if (recorded.length === 0) throw new Error(`${key}: anchor must record at least one of dsh/cordis/commit`)
710
+ }
649
711
  if (entry.checks !== undefined) {
650
712
  if (!Array.isArray(entry.checks)) throw new Error(`${key}: checks must be an array`)
651
713
  const seen = new Set()
@@ -757,9 +819,16 @@ function main() {
757
819
  if (!generatedAt) throw new Error('no --prev and no --levels generatedAt')
758
820
 
759
821
  const checkerPkg = readPackageMeta(ROOT)
760
- const checkerVersion = options.checkerVersion ?? checkerPkg.version
822
+ // A pure --prev refresh only recomputes lifecycle; it must not overwrite the
823
+ // checker metadata that records which build produced the checks. Explicit
824
+ // --checker-version/--checker-sha still win, and --levels rebuilds use the
825
+ // current package version because they add freshly produced checks.
826
+ const prevChecker = prev && !options.levels && prev.checker && typeof prev.checker === 'object' ? prev.checker : null
827
+ const checkerVersion = options.checkerVersion
828
+ ?? (typeof prevChecker?.version === 'string' && prevChecker.version !== '' ? prevChecker.version : checkerPkg.version)
761
829
  if (typeof checkerVersion !== 'string' || checkerVersion === '') throw new Error('cannot determine checker version')
762
- const checkerSha = options.checkerSha ?? gitHead()
830
+ const checkerSha = options.checkerSha
831
+ ?? (prevChecker && Object.hasOwn(prevChecker, 'sha') ? prevChecker.sha : gitHead())
763
832
  if (checkerSha !== null && !HEX40.test(checkerSha)) throw new Error('--checker-sha must be 40 hex chars')
764
833
  try {
765
834
  const parsed = new URL(options.indexUrl)
File without changes
File without changes
File without changes
@@ -9,6 +9,8 @@ import fs from 'node:fs'
9
9
  import path from 'node:path'
10
10
  import { spawnSync } from 'node:child_process'
11
11
  import { fileURLToPath } from 'node:url'
12
+ import { DEFAULT_RUNTIME_VERSION } from '../src/manifest.mjs'
13
+ import { DEFAULT_CORDIS } from '../src/cli.mjs'
12
14
 
13
15
  const HERE = path.dirname(fileURLToPath(import.meta.url))
14
16
  const ROOT = path.resolve(HERE, '..', '..')
@@ -31,7 +33,9 @@ function main() {
31
33
  }
32
34
  const result = {
33
35
  runner: `dsh-plugin-verify@0.1.0 (${process.platform}/${process.arch}, node ${process.version})`,
34
- anchor: { dsh: '0.2.2-alpha.2', cordis: '4.0.6-alpha.1' },
36
+ // The known answers are only comparable between runs that share this
37
+ // anchor; rc.3 / cordis 4.1.0 is the current released baseline.
38
+ anchor: { dsh: DEFAULT_RUNTIME_VERSION, cordis: DEFAULT_CORDIS },
35
39
  results: {
36
40
  good: { status: run(path.join(ROOT, '40-checker/fixtures/good')), artifact: 'fixtures/good' },
37
41
  'bad-manifest': { status: run(path.join(ROOT, '40-checker/fixtures/bad-manifest')), artifact: 'fixtures/bad-manifest' },
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -40,6 +40,7 @@ import {
40
40
  sha256File, sha256Value, treeSha256, validateFlowEvidence,
41
41
  } from '../src/flow-evidence.mjs'
42
42
  import { sanitizedEnv } from '../src/sandbox-env.mjs'
43
+ import { npmCommand } from '../src/npm-command.mjs'
43
44
  import {
44
45
  assertNoCredentialEnv, buildSandboxPlan, runInProcessTree, sandboxArgv,
45
46
  } from '../src/sandbox-run.mjs'
@@ -51,15 +52,15 @@ const JOURNEY_RUNTIME = path.join(HERE, 'journey-runtime.mjs')
51
52
  const GIT = process.platform === 'win32' ? 'git.exe' : 'git'
52
53
 
53
54
  /**
54
- * npm's Windows launcher is `npm.cmd`. Since Node 18.20/20.12 a direct
55
+ * npm's Windows launcher is `npm.cmd`. Since Node 18.20/20.12 a bare
55
56
  * spawnSync('npm.cmd', ...) without a shell fails with EINVAL (the
56
- * CVE-2024-27980 mitigation). Go through the shell, which uses `cmd.exe /c`
57
- * under the hood; Linux stays a direct spawn. Exported so the platform choice
58
- * is testable without running npm.
57
+ * CVE-2024-27980 mitigation). `npm-command.mjs` routes Windows through
58
+ * `cmd.exe /d /s /c`, which also avoids the shell:true DEP0190 warning; POSIX
59
+ * keeps a direct spawn. Exported so the platform choice is testable without
60
+ * running npm.
59
61
  */
60
62
  export function npmPackInvocation(platform = process.platform, args = ['pack', '--ignore-scripts', '--json']) {
61
- if (platform === 'win32') return { command: 'npm.cmd', args, shell: true }
62
- return { command: 'npm', args, shell: false }
63
+ return npmCommand(platform, args)
63
64
  }
64
65
 
65
66
  const STATIC_CHECK_IDS = {
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes