dsh-standards 0.0.3 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (597) hide show
  1. package/40-checker/.github/workflows/plugin-verify.yml +70 -0
  2. package/40-checker/README.md +251 -0
  3. package/40-checker/bin/dsh-levels.mjs +15 -0
  4. package/40-checker/bin/dsh-plugin-verify.mjs +8 -0
  5. package/40-checker/fixtures/bad/index.mjs +12 -0
  6. package/40-checker/fixtures/bad/package.json +15 -0
  7. package/40-checker/fixtures/bad-manifest/index.js +1 -0
  8. package/40-checker/fixtures/bad-manifest/package.json +5 -0
  9. package/40-checker/fixtures/bundle/cordis.patch.yml +3 -0
  10. package/40-checker/fixtures/bundle/package.json +15 -0
  11. package/40-checker/fixtures/bundle/server.mjs +7 -0
  12. package/40-checker/fixtures/bundle-v0/cordis.patch.yml +3 -0
  13. package/40-checker/fixtures/bundle-v0/package.json +21 -0
  14. package/40-checker/fixtures/bundle-v0/server.mjs +7 -0
  15. package/40-checker/fixtures/client-missing/client.js +1 -0
  16. package/40-checker/fixtures/client-missing/index.js +1 -0
  17. package/40-checker/fixtures/client-missing/package.json +6 -0
  18. package/40-checker/fixtures/flow-config/index.js +9 -0
  19. package/40-checker/fixtures/flow-config/package.json +10 -0
  20. package/40-checker/fixtures/fs-write/index.mjs +7 -0
  21. package/40-checker/fixtures/fs-write/package.json +10 -0
  22. package/40-checker/fixtures/good/index.mjs +10 -0
  23. package/40-checker/fixtures/good/package.json +19 -0
  24. package/40-checker/fixtures/hang/index.mjs +5 -0
  25. package/40-checker/fixtures/hang/package.json +10 -0
  26. package/40-checker/fixtures/known-answer/expected.json +18 -0
  27. package/40-checker/fixtures/market-index-real.json +18 -0
  28. package/40-checker/fixtures/market-index.json +18 -0
  29. package/40-checker/fixtures/negative/bad-entry/package.json +1 -0
  30. package/40-checker/fixtures/negative/no-entry/package.json +1 -0
  31. package/40-checker/fixtures/negative/no-patch/package.json +1 -0
  32. package/40-checker/fixtures/negative/root-missing/cordis.patch.yml +2 -0
  33. package/40-checker/fixtures/negative/root-missing/package.json +1 -0
  34. package/40-checker/fixtures/negative/workspace/package.json +1 -0
  35. package/40-checker/package.json +22 -0
  36. package/40-checker/results/boost/REPORT.md +304 -0
  37. package/40-checker/results/boost/lev12458.json +1747 -0
  38. package/40-checker/results/client/README.md +16 -0
  39. package/40-checker/results/entry/18/DDDMUC__dsh-free-search.json +381 -0
  40. package/40-checker/results/entry/18/DDDMUC__dsh-free-search.runtime.json +34 -0
  41. package/40-checker/results/entry/18/Ebony-Vinyl__dsh-our-free-model.json +361 -0
  42. package/40-checker/results/entry/18/Ebony-Vinyl__dsh-our-free-model.runtime.json +34 -0
  43. package/40-checker/results/entry/18/README.md +24 -0
  44. package/40-checker/results/entry/18/RUNTIME.md +18 -0
  45. package/40-checker/results/entry/18/SeaOf0__dsh-redteam-model.json +391 -0
  46. package/40-checker/results/entry/18/YuJunZhiXue__dsh-purge.json +432 -0
  47. package/40-checker/results/entry/18/ci-diet.json +365 -0
  48. package/40-checker/results/entry/18/ci-diet.runtime-attempt.json +38 -0
  49. package/40-checker/results/entry/18/daily-log.json +357 -0
  50. package/40-checker/results/entry/18/daily-log.runtime.json +519 -0
  51. package/40-checker/results/entry/18/fullbase/ATTRIBUTION.md +29 -0
  52. package/40-checker/results/entry/18/fullbase/DDDMUC__dsh-free-search.json +99 -0
  53. package/40-checker/results/entry/18/fullbase/Ebony-Vinyl__dsh-our-free-model.json +95 -0
  54. package/40-checker/results/entry/18/fullbase/REPORT.md +261 -0
  55. package/40-checker/results/entry/18/fullbase/SeaOf0__dsh-redteam-model.json +144 -0
  56. package/40-checker/results/entry/18/fullbase/YuJunZhiXue__dsh-purge.json +106 -0
  57. package/40-checker/results/entry/18/fullbase/ci-diet.json +99 -0
  58. package/40-checker/results/entry/18/fullbase/daily-log.json +94 -0
  59. package/40-checker/results/entry/18/fullbase/howmp__dsh-pentest.json +104 -0
  60. package/40-checker/results/entry/18/fullbase/kingcharleslzy-ai__dsh-purge.json +143 -0
  61. package/40-checker/results/entry/18/fullbase/liguobao__ds-harness-remote.json +134 -0
  62. package/40-checker/results/entry/18/fullbase/mmparko__dsh-purge.json +138 -0
  63. package/40-checker/results/entry/18/fullbase/project-memory.json +108 -0
  64. package/40-checker/results/entry/18/fullbase/qiushi.json +94 -0
  65. package/40-checker/results/entry/18/fullbase/shaobeichen__dsh-pocket.json +94 -0
  66. package/40-checker/results/entry/18/fullbase/status-rotator.json +94 -0
  67. package/40-checker/results/entry/18/fullbase/summary.json +297 -0
  68. package/40-checker/results/entry/18/fullbase/telemetry.json +94 -0
  69. package/40-checker/results/entry/18/fullbase/ui-auth.json +94 -0
  70. package/40-checker/results/entry/18/fullbase/verification.json +94 -0
  71. package/40-checker/results/entry/18/fullbase/ysr666__dsh-vision-router.json +106 -0
  72. package/40-checker/results/entry/18/howmp__dsh-pentest.json +361 -0
  73. package/40-checker/results/entry/18/kingcharleslzy-ai__dsh-purge.json +411 -0
  74. package/40-checker/results/entry/18/liguobao__ds-harness-remote.json +379 -0
  75. package/40-checker/results/entry/18/mmparko__dsh-purge.json +441 -0
  76. package/40-checker/results/entry/18/project-memory.json +361 -0
  77. package/40-checker/results/entry/18/project-memory.runtime.json +519 -0
  78. package/40-checker/results/entry/18/qiushi.json +353 -0
  79. package/40-checker/results/entry/18/qiushi.runtime.json +519 -0
  80. package/40-checker/results/entry/18/realweb/REPORT.md +73 -0
  81. package/40-checker/results/entry/18/realweb/SeaOf0__dsh-redteam-model.json +104 -0
  82. package/40-checker/results/entry/18/realweb/YuJunZhiXue__dsh-purge.json +64 -0
  83. package/40-checker/results/entry/18/realweb/howmp__dsh-pentest.json +65 -0
  84. package/40-checker/results/entry/18/realweb/kingcharleslzy-ai__dsh-purge.json +75 -0
  85. package/40-checker/results/entry/18/realweb/mmparko__dsh-purge.json +70 -0
  86. package/40-checker/results/entry/18/realweb/shaobeichen__dsh-pocket.json +56 -0
  87. package/40-checker/results/entry/18/realweb/summary.json +196 -0
  88. package/40-checker/results/entry/18/realweb/ui-auth.json +56 -0
  89. package/40-checker/results/entry/18/realweb/ysr666__dsh-vision-router.json +61 -0
  90. package/40-checker/results/entry/18/richbase/REPORT.md +70 -0
  91. package/40-checker/results/entry/18/richbase/SeaOf0__dsh-redteam-model.json +61 -0
  92. package/40-checker/results/entry/18/richbase/SeaOf0__dsh-redteam-model.log +38 -0
  93. package/40-checker/results/entry/18/shaobeichen__dsh-pocket.json +363 -0
  94. package/40-checker/results/entry/18/status-rotator.json +362 -0
  95. package/40-checker/results/entry/18/status-rotator.runtime.json +519 -0
  96. package/40-checker/results/entry/18/summary.json +266 -0
  97. package/40-checker/results/entry/18/targetonly/DDDMUC__dsh-free-search.json +34 -0
  98. package/40-checker/results/entry/18/targetonly/Ebony-Vinyl__dsh-our-free-model.json +34 -0
  99. package/40-checker/results/entry/18/targetonly/SeaOf0__dsh-redteam-model.json +84 -0
  100. package/40-checker/results/entry/18/targetonly/YuJunZhiXue__dsh-purge.json +52 -0
  101. package/40-checker/results/entry/18/targetonly/ci-diet.json +34 -0
  102. package/40-checker/results/entry/18/targetonly/daily-log.json +34 -0
  103. package/40-checker/results/entry/18/targetonly/howmp__dsh-pentest.json +46 -0
  104. package/40-checker/results/entry/18/targetonly/kingcharleslzy-ai__dsh-purge.json +61 -0
  105. package/40-checker/results/entry/18/targetonly/liguobao__ds-harness-remote.json +39 -0
  106. package/40-checker/results/entry/18/targetonly/mmparko__dsh-purge.json +57 -0
  107. package/40-checker/results/entry/18/targetonly/project-memory.json +34 -0
  108. package/40-checker/results/entry/18/targetonly/qiushi.json +34 -0
  109. package/40-checker/results/entry/18/targetonly/shaobeichen__dsh-pocket.json +34 -0
  110. package/40-checker/results/entry/18/targetonly/status-rotator.json +34 -0
  111. package/40-checker/results/entry/18/targetonly/summary.json +133 -0
  112. package/40-checker/results/entry/18/targetonly/telemetry.json +34 -0
  113. package/40-checker/results/entry/18/targetonly/ui-auth.json +34 -0
  114. package/40-checker/results/entry/18/targetonly/verification.json +34 -0
  115. package/40-checker/results/entry/18/targetonly/ysr666__dsh-vision-router.json +43 -0
  116. package/40-checker/results/entry/18/telemetry.json +349 -0
  117. package/40-checker/results/entry/18/ui-auth.json +369 -0
  118. package/40-checker/results/entry/18/verification.json +358 -0
  119. package/40-checker/results/entry/18/ysr666__dsh-vision-router.json +409 -0
  120. package/40-checker/results/fixtures/bad.json +347 -0
  121. package/40-checker/results/fixtures/bundle.json +378 -0
  122. package/40-checker/results/fixtures/good-listing.json +382 -0
  123. package/40-checker/results/fixtures/good-static.json +322 -0
  124. package/40-checker/results/fixtures/good.json +375 -0
  125. package/40-checker/results/fixtures/good.sarif +274 -0
  126. package/40-checker/results/flow/README.md +19 -0
  127. package/40-checker/results/flow/j3-j7-fixture.json +51 -0
  128. package/40-checker/results/flow/j5-j8-client-missing.json +45 -0
  129. package/40-checker/results/flow/j5-j8-good.json +45 -0
  130. package/40-checker/results/flow/journey-fixture-bundle.json +90 -0
  131. package/40-checker/results/flow/journey-fixture-j1-j2-j4-j6.json +107 -0
  132. package/40-checker/results/flow/real/DDDMUC__dsh-free-search.json +297 -0
  133. package/40-checker/results/flow/real/REPORT.md +335 -0
  134. package/40-checker/results/flow/real/YuJunZhiXue__dsh-purge.json +317 -0
  135. package/40-checker/results/flow/real/ci-diet.json +351 -0
  136. package/40-checker/results/flow/real/daily-log.json +286 -0
  137. package/40-checker/results/flow/real/index.json +325 -0
  138. package/40-checker/results/flow/real/project-memory.json +290 -0
  139. package/40-checker/results/flow/real/qiushi.json +277 -0
  140. package/40-checker/results/flow/real/status-rotator.json +275 -0
  141. package/40-checker/results/flow/real/telemetry.json +178 -0
  142. package/40-checker/results/flow/real/ui-auth.json +288 -0
  143. package/40-checker/results/flow/real/verification.json +265 -0
  144. package/40-checker/results/governance/co-maintainer-packet.md +85 -0
  145. package/40-checker/results/l1/ci-diet.json +406 -0
  146. package/40-checker/results/l1/npm-dsh-telemetry-redactor-0.1.0.json +390 -0
  147. package/40-checker/results/l1/npm-dsh-verification-receipt-0.1.0.json +406 -0
  148. package/40-checker/results/l1/npm-qiushi-dsh-evidence-audit-0.1.0.json +394 -0
  149. package/40-checker/results/l1/npm-zzerx-dsh-plugin-daily-log-0.4.3.json +405 -0
  150. package/40-checker/results/l1/project-memory.json +402 -0
  151. package/40-checker/results/l1/source-DDDMUC__dsh-free-search.json +422 -0
  152. package/40-checker/results/l1/source-Ebony-Vinyl__dsh-our-free-model.json +421 -0
  153. package/40-checker/results/l1/source-SeaOf0__dsh-redteam-model.json +432 -0
  154. package/40-checker/results/l1/source-YuJunZhiXue__dsh-purge.json +473 -0
  155. package/40-checker/results/l1/source-howmp__dsh-pentest.json +402 -0
  156. package/40-checker/results/l1/source-kingcharleslzy-ai__dsh-purge.json +452 -0
  157. package/40-checker/results/l1/source-liguobao__ds-harness-remote.json +420 -0
  158. package/40-checker/results/l1/source-mmparko__dsh-purge.json +482 -0
  159. package/40-checker/results/l1/source-shaobeichen__dsh-pocket.json +404 -0
  160. package/40-checker/results/l1/source-ysr666__dsh-vision-router.json +384 -0
  161. package/40-checker/results/l1/status-rotator.json +403 -0
  162. package/40-checker/results/l1/ui-auth.json +429 -0
  163. package/40-checker/results/l1/ysr666__dsh-vision-router.published.json +384 -0
  164. package/40-checker/results/lev3/REPORT.md +342 -0
  165. package/40-checker/results/lev3/lev3.json +4835 -0
  166. package/40-checker/results/lev6/REPORT.md +460 -0
  167. package/40-checker/results/lev6/capture-sample.json +241 -0
  168. package/40-checker/results/lev6/capture.jsonl +4 -0
  169. package/40-checker/results/lev6/lev6.json +245 -0
  170. package/40-checker/results/lev6/replication-r1.json +245 -0
  171. package/40-checker/results/levels/README.md +16 -0
  172. package/40-checker/results/levels/dsh-plugin-doctor.json +141 -0
  173. package/40-checker/results/levels/dsh-plugin-guide.json +136 -0
  174. package/40-checker/results/m1/dsh-ci-diet-0.5.2.json +352 -0
  175. package/40-checker/results/m1/dsh-status-rotator-0.38.0.json +349 -0
  176. package/40-checker/results/m1/dsh-telemetry-redactor-0.1.0.json +336 -0
  177. package/40-checker/results/m1/dsh-ui-auth-0.7.1.json +356 -0
  178. package/40-checker/results/m1/dsh-verification-receipt-0.1.0.json +344 -0
  179. package/40-checker/results/m1/index-level.json +13 -0
  180. package/40-checker/results/m1/levels.json +72100 -0
  181. package/40-checker/results/m1/qiushi-dsh-evidence-audit-0.1.0.json +339 -0
  182. package/40-checker/results/m1/yolk_vat-y-dsh-project-memory-0.6.7.json +348 -0
  183. package/40-checker/results/m1/zzerx-dsh-plugin-daily-log-0.4.3.json +344 -0
  184. package/40-checker/results/m2/dsh-ci-diet.json +421 -0
  185. package/40-checker/results/m2/dsh-ci-diet.unshare-landlock.json +424 -0
  186. package/40-checker/results/m2/dsh-ci-diet.unshare.json +423 -0
  187. package/40-checker/results/m2/fixture-bundle.image.json +404 -0
  188. package/40-checker/results/m2/fixture-bundle.json +392 -0
  189. package/40-checker/results/m2/fixture-bundle.landlock.json +396 -0
  190. package/40-checker/results/m2/fixture-bundle.unshare.json +395 -0
  191. package/40-checker/results/m2/fs-write.json +338 -0
  192. package/40-checker/results/m2/hang.json +31 -0
  193. package/40-checker/results/m2/hang.unshare-landlock.json +34 -0
  194. package/40-checker/results/m2/hang.unshare.json +33 -0
  195. package/40-checker/results/m2/project-memory.json +417 -0
  196. package/40-checker/results/m2/status-rotator.json +418 -0
  197. package/40-checker/results/m2/ui-auth.json +444 -0
  198. package/40-checker/results/negative/bad-entry.json +345 -0
  199. package/40-checker/results/negative/no-entry.json +345 -0
  200. package/40-checker/results/negative/no-patch.json +344 -0
  201. package/40-checker/results/negative/root-missing.json +344 -0
  202. package/40-checker/results/negative/root-missing.runtime.json +30 -0
  203. package/40-checker/results/negative/summary.json +51 -0
  204. package/40-checker/results/negative/workspace.json +344 -0
  205. package/40-checker/results/patched/Ebony-Vinyl__dsh-our-free-model.json +334 -0
  206. package/40-checker/results/patched/Ebony-Vinyl__dsh-our-free-model.overlay.json +335 -0
  207. package/40-checker/results/patched/SeaOf0__dsh-redteam-model.json +315 -0
  208. package/40-checker/results/patched/SeaOf0__dsh-redteam-model.overlay.json +316 -0
  209. package/40-checker/results/patched/mmparko__dsh-purge.json +357 -0
  210. package/40-checker/results/patched/mmparko__dsh-purge.overlay.json +358 -0
  211. package/40-checker/results/patched/shaobeichen__dsh-pocket.json +315 -0
  212. package/40-checker/results/patched/shaobeichen__dsh-pocket.overlay.json +316 -0
  213. package/40-checker/results/real/DDDMUC__dsh-free-search.json +344 -0
  214. package/40-checker/results/real/Ebony-Vinyl__dsh-our-free-model.json +343 -0
  215. package/40-checker/results/real/SeaOf0__dsh-redteam-model.json +354 -0
  216. package/40-checker/results/real/YuJunZhiXue__dsh-purge.json +395 -0
  217. package/40-checker/results/real/howmp__dsh-pentest.json +324 -0
  218. package/40-checker/results/real/kingcharleslzy-ai__dsh-purge.json +374 -0
  219. package/40-checker/results/real/liguobao__ds-harness-remote.json +342 -0
  220. package/40-checker/results/real/mmparko__dsh-purge.json +404 -0
  221. package/40-checker/results/real/shaobeichen__dsh-pocket.json +326 -0
  222. package/40-checker/results/real/ysr666__dsh-vision-router.json +372 -0
  223. package/40-checker/results/real/ysr666__dsh-vision-router.listing.json +378 -0
  224. package/40-checker/results/round-robin/compare.json +52 -0
  225. package/40-checker/results/round-robin/runner-a.json +9 -0
  226. package/40-checker/results/round-robin/runner-b.json +9 -0
  227. package/40-checker/results/sample20/123dbl__dsh-side-session.json +344 -0
  228. package/40-checker/results/sample20/173787247__dsh-wsl-dns.json +360 -0
  229. package/40-checker/results/sample20/863683348__dsh-insight.json +375 -0
  230. package/40-checker/results/sample20/Ansellwan__DSH-Custom-Wallpaper.json +344 -0
  231. package/40-checker/results/sample20/Jamailar__beav-deepseek-harness.json +341 -0
  232. package/40-checker/results/sample20/ManoloRemiddi__DSH-Metafolder-Plugin.json +344 -0
  233. package/40-checker/results/sample20/NEAZ71eve__dsh-tool-github.json +384 -0
  234. package/40-checker/results/sample20/README.md +3 -0
  235. package/40-checker/results/sample20/RINGOLINK__dsh-desktop-shell.json +352 -0
  236. package/40-checker/results/sample20/Zxznb666__dsh-qoder-cn-subagent.json +349 -0
  237. package/40-checker/results/sample20/agent-mobile__dsh-mobile-gateway.json +353 -0
  238. package/40-checker/results/sample20/fangqiing__dsh-knowledge-lite.json +359 -0
  239. package/40-checker/results/sample20/fzy0517__deepseek-harness-session-cleaner.json +344 -0
  240. package/40-checker/results/sample20/gjy1992__dsh-diagram.json +350 -0
  241. package/40-checker/results/sample20/mrme000m__dsh-prime-orchestrator.json +414 -0
  242. package/40-checker/results/sample20/redstonedust__dsh-solidworks-copilot.json +362 -0
  243. package/40-checker/results/sample20/summary.json +234 -0
  244. package/40-checker/results/sample20/w2112515__dsh-remote-host.json +344 -0
  245. package/40-checker/results/sample20/wkfedor__deepseek-harness-voice-input.json +350 -0
  246. package/40-checker/results/sample20/xfgil__dsh-hot-reloader.json +344 -0
  247. package/40-checker/results/sample20/yizhiyizhi0128__dsh-peak-scheduler.json +360 -0
  248. package/40-checker/results/sample20-ci/123dbl__dsh-side-session.json +344 -0
  249. package/40-checker/results/sample20-ci/173787247__dsh-wsl-dns.json +360 -0
  250. package/40-checker/results/sample20-ci/863683348__dsh-insight.json +375 -0
  251. package/40-checker/results/sample20-ci/Ansellwan__DSH-Custom-Wallpaper.json +344 -0
  252. package/40-checker/results/sample20-ci/Jamailar__beav-deepseek-harness.json +367 -0
  253. package/40-checker/results/sample20-ci/ManoloRemiddi__DSH-Metafolder-Plugin.json +344 -0
  254. package/40-checker/results/sample20-ci/NEAZ71eve__dsh-tool-github.json +392 -0
  255. package/40-checker/results/sample20-ci/README.md +5 -0
  256. package/40-checker/results/sample20-ci/RINGOLINK__dsh-desktop-shell.json +361 -0
  257. package/40-checker/results/sample20-ci/Zxznb666__dsh-qoder-cn-subagent.json +349 -0
  258. package/40-checker/results/sample20-ci/agent-mobile__dsh-mobile-gateway.json +384 -0
  259. package/40-checker/results/sample20-ci/fangqiing__dsh-knowledge-lite.json +360 -0
  260. package/40-checker/results/sample20-ci/fzy0517__deepseek-harness-session-cleaner.json +354 -0
  261. package/40-checker/results/sample20-ci/gjy1992__dsh-diagram.json +381 -0
  262. package/40-checker/results/sample20-ci/mrme000m__dsh-prime-orchestrator.json +452 -0
  263. package/40-checker/results/sample20-ci/redstonedust__dsh-solidworks-copilot.json +371 -0
  264. package/40-checker/results/sample20-ci/summary.json +195 -0
  265. package/40-checker/results/sample20-ci/w2112515__dsh-remote-host.json +399 -0
  266. package/40-checker/results/sample20-ci/wkfedor__deepseek-harness-voice-input.json +358 -0
  267. package/40-checker/results/sample20-ci/xfgil__dsh-hot-reloader.json +344 -0
  268. package/40-checker/results/sample20-ci/yizhiyizhi0128__dsh-peak-scheduler.json +370 -0
  269. package/40-checker/results/sample20-ci/zed1902209846-dotcom__DPwhale-plugin.json +231 -0
  270. package/40-checker/results/sample60/123dbl__dsh-side-session.json +344 -0
  271. package/40-checker/results/sample60/173787247__dsh-wsl-dns.json +360 -0
  272. package/40-checker/results/sample60/863683348__dsh-insight.json +375 -0
  273. package/40-checker/results/sample60/Anionex__dsh-turn-rewind.json +349 -0
  274. package/40-checker/results/sample60/Ansellwan__DSH-Custom-Wallpaper.json +344 -0
  275. package/40-checker/results/sample60/Ebony-Vinyl__EAC-Pack.json +352 -0
  276. package/40-checker/results/sample60/EricWang1358__dsh-web-studyhub.json +376 -0
  277. package/40-checker/results/sample60/GanyuanRan__Aegis.json +349 -0
  278. package/40-checker/results/sample60/HiSeax__dsh-codely.json +358 -0
  279. package/40-checker/results/sample60/Jamailar__beav-deepseek-harness.json +341 -0
  280. package/40-checker/results/sample60/ManoloRemiddi__DSH-Metafolder-Plugin.json +344 -0
  281. package/40-checker/results/sample60/MichengAI__dsh-archive-manager.json +357 -0
  282. package/40-checker/results/sample60/MichengAI__dsh-im-connect.json +347 -0
  283. package/40-checker/results/sample60/MindLab-Research__dsh-generative-ui.json +350 -0
  284. package/40-checker/results/sample60/NEAZ71eve__dsh-tool-github.json +384 -0
  285. package/40-checker/results/sample60/README.md +7 -0
  286. package/40-checker/results/sample60/RINGOLINK__dsh-desktop-shell.json +352 -0
  287. package/40-checker/results/sample60/SeanTolstoyevski__dsh-code-review.json +352 -0
  288. package/40-checker/results/sample60/Tasihi89__dsh-talk-map.json +344 -0
  289. package/40-checker/results/sample60/Tyan66666__billion-context-dsh.json +469 -0
  290. package/40-checker/results/sample60/V1ki__dsh-plugin-subscriptions.json +350 -0
  291. package/40-checker/results/sample60/Yu-tao-Li__dsh-computer-use-win.json +341 -0
  292. package/40-checker/results/sample60/ZSeven-W__dsh-ios.json +344 -0
  293. package/40-checker/results/sample60/Zxznb666__dsh-qoder-cn-subagent.json +349 -0
  294. package/40-checker/results/sample60/agent-mobile__dsh-mobile-gateway.json +353 -0
  295. package/40-checker/results/sample60/c3cvld7aag__fujiang-dsh.json +361 -0
  296. package/40-checker/results/sample60/cxzrdxy__dsh-file-explorer.json +389 -0
  297. package/40-checker/results/sample60/dhicoc__dsh-reverse-skill.json +341 -0
  298. package/40-checker/results/sample60/fangqiing__dsh-knowledge-lite.json +359 -0
  299. package/40-checker/results/sample60/fwerkor__local-shell-mcp.json +369 -0
  300. package/40-checker/results/sample60/fzy0517__deepseek-harness-session-cleaner.json +344 -0
  301. package/40-checker/results/sample60/gjy1992__dsh-diagram.json +350 -0
  302. package/40-checker/results/sample60/howmp__dsh-pentest.json +341 -0
  303. package/40-checker/results/sample60/linhay__harmony-next.skills.json +344 -0
  304. package/40-checker/results/sample60/liustack__modsearch.json +371 -0
  305. package/40-checker/results/sample60/mmparko__dsh-purge.json +372 -0
  306. package/40-checker/results/sample60/mrme000m__dsh-prime-orchestrator.json +414 -0
  307. package/40-checker/results/sample60/omdsh-dev__dsh_workflow.json +439 -0
  308. package/40-checker/results/sample60/redstonedust__dsh-solidworks-copilot.json +362 -0
  309. package/40-checker/results/sample60/seriousz158__dsh-memory.json +350 -0
  310. package/40-checker/results/sample60/shanliuling__dsh-image-gen.json +353 -0
  311. package/40-checker/results/sample60/shanliuling__skills-link.json +344 -0
  312. package/40-checker/results/sample60/shengsheng90__DSH-taskboard.json +341 -0
  313. package/40-checker/results/sample60/sjh9714__dsh-win32.json +374 -0
  314. package/40-checker/results/sample60/skymecode__deepseek-harness-for-vscode.json +351 -0
  315. package/40-checker/results/sample60/sopaco__terrain.json +352 -0
  316. package/40-checker/results/sample60/summary.json +658 -0
  317. package/40-checker/results/sample60/tinqiao-oss__engramory.json +352 -0
  318. package/40-checker/results/sample60/tong-io__tongflow.json +359 -0
  319. package/40-checker/results/sample60/vibeinging__dsh-desktop.json +382 -0
  320. package/40-checker/results/sample60/w2112515__dsh-remote-host.json +344 -0
  321. package/40-checker/results/sample60/wkfedor__deepseek-harness-voice-input.json +350 -0
  322. package/40-checker/results/sample60/wz20__dsh-dafeiyu-dot.json +349 -0
  323. package/40-checker/results/sample60/xfgil__dsh-hot-reloader.json +344 -0
  324. package/40-checker/results/sample60/yi-yezhiqiu__dsh-prompt-market.json +360 -0
  325. package/40-checker/results/sample60/yizhiyizhi0128__dsh-peak-scheduler.json +360 -0
  326. package/40-checker/results/sample60/yjh051108__dsh-routing-suite.json +366 -0
  327. package/40-checker/results/sample60-ci/123dbl__dsh-side-session.json +344 -0
  328. package/40-checker/results/sample60-ci/173787247__dsh-wsl-dns.json +360 -0
  329. package/40-checker/results/sample60-ci/863683348__dsh-insight.json +375 -0
  330. package/40-checker/results/sample60-ci/Anionex__dsh-turn-rewind.json +379 -0
  331. package/40-checker/results/sample60-ci/Ansellwan__DSH-Custom-Wallpaper.json +344 -0
  332. package/40-checker/results/sample60-ci/Ebony-Vinyl__EAC-Pack.json +362 -0
  333. package/40-checker/results/sample60-ci/EricWang1358__dsh-web-studyhub.json +378 -0
  334. package/40-checker/results/sample60-ci/GanyuanRan__Aegis.json +349 -0
  335. package/40-checker/results/sample60-ci/HiSeax__dsh-codely.json +368 -0
  336. package/40-checker/results/sample60-ci/Jamailar__beav-deepseek-harness.json +367 -0
  337. package/40-checker/results/sample60-ci/LiarMTTT__TavernWeave.json +231 -0
  338. package/40-checker/results/sample60-ci/ManoloRemiddi__DSH-Metafolder-Plugin.json +344 -0
  339. package/40-checker/results/sample60-ci/MichengAI__dsh-archive-manager.json +395 -0
  340. package/40-checker/results/sample60-ci/MichengAI__dsh-im-connect.json +404 -0
  341. package/40-checker/results/sample60-ci/MindLab-Research__dsh-generative-ui.json +410 -0
  342. package/40-checker/results/sample60-ci/NEAZ71eve__dsh-tool-github.json +392 -0
  343. package/40-checker/results/sample60-ci/README.md +7 -0
  344. package/40-checker/results/sample60-ci/RINGOLINK__dsh-desktop-shell.json +361 -0
  345. package/40-checker/results/sample60-ci/Ruler4396__dsh-launcher.json +231 -0
  346. package/40-checker/results/sample60-ci/SeanTolstoyevski__dsh-code-review.json +363 -0
  347. package/40-checker/results/sample60-ci/Tasihi89__dsh-talk-map.json +372 -0
  348. package/40-checker/results/sample60-ci/Tyan66666__billion-context-dsh.json +469 -0
  349. package/40-checker/results/sample60-ci/V1ki__dsh-plugin-subscriptions.json +368 -0
  350. package/40-checker/results/sample60-ci/Yu-tao-Li__dsh-computer-use-win.json +349 -0
  351. package/40-checker/results/sample60-ci/ZSeven-W__dsh-ios.json +344 -0
  352. package/40-checker/results/sample60-ci/Zxznb666__dsh-qoder-cn-subagent.json +349 -0
  353. package/40-checker/results/sample60-ci/agent-mobile__dsh-mobile-gateway.json +384 -0
  354. package/40-checker/results/sample60-ci/c3cvld7aag__fujiang-dsh.json +361 -0
  355. package/40-checker/results/sample60-ci/cxzrdxy__dsh-file-explorer.json +399 -0
  356. package/40-checker/results/sample60-ci/dhicoc__dsh-reverse-skill.json +352 -0
  357. package/40-checker/results/sample60-ci/fangqiing__dsh-knowledge-lite.json +360 -0
  358. package/40-checker/results/sample60-ci/fwerkor__local-shell-mcp.json +387 -0
  359. package/40-checker/results/sample60-ci/fzy0517__deepseek-harness-session-cleaner.json +354 -0
  360. package/40-checker/results/sample60-ci/gjy1992__dsh-diagram.json +381 -0
  361. package/40-checker/results/sample60-ci/howmp__dsh-pentest.json +361 -0
  362. package/40-checker/results/sample60-ci/linhay__harmony-next.skills.json +344 -0
  363. package/40-checker/results/sample60-ci/liustack__modsearch.json +382 -0
  364. package/40-checker/results/sample60-ci/mmparko__dsh-purge.json +441 -0
  365. package/40-checker/results/sample60-ci/mrme000m__dsh-prime-orchestrator.json +452 -0
  366. package/40-checker/results/sample60-ci/omdsh-dev__dsh_workflow.json +439 -0
  367. package/40-checker/results/sample60-ci/plastic-labs__honcho.json +231 -0
  368. package/40-checker/results/sample60-ci/redstonedust__dsh-solidworks-copilot.json +371 -0
  369. package/40-checker/results/sample60-ci/seriousz158__dsh-memory.json +351 -0
  370. package/40-checker/results/sample60-ci/shanliuling__dsh-image-gen.json +382 -0
  371. package/40-checker/results/sample60-ci/shanliuling__skills-link.json +344 -0
  372. package/40-checker/results/sample60-ci/shengsheng90__DSH-taskboard.json +370 -0
  373. package/40-checker/results/sample60-ci/sjh9714__dsh-win32.json +410 -0
  374. package/40-checker/results/sample60-ci/skymecode__deepseek-harness-for-vscode.json +391 -0
  375. package/40-checker/results/sample60-ci/sopaco__deepwiki-rs.json +231 -0
  376. package/40-checker/results/sample60-ci/sopaco__terrain.json +352 -0
  377. package/40-checker/results/sample60-ci/summary.json +555 -0
  378. package/40-checker/results/sample60-ci/tinqiao-oss__engramory.json +362 -0
  379. package/40-checker/results/sample60-ci/tong-io__tongflow.json +393 -0
  380. package/40-checker/results/sample60-ci/vibeinging__dsh-desktop.json +555 -0
  381. package/40-checker/results/sample60-ci/w2112515__dsh-remote-host.json +399 -0
  382. package/40-checker/results/sample60-ci/wkfedor__deepseek-harness-voice-input.json +358 -0
  383. package/40-checker/results/sample60-ci/wz20__dsh-dafeiyu-dot.json +390 -0
  384. package/40-checker/results/sample60-ci/xfgil__dsh-hot-reloader.json +344 -0
  385. package/40-checker/results/sample60-ci/yi-yezhiqiu__dsh-prompt-market.json +373 -0
  386. package/40-checker/results/sample60-ci/yizhiyizhi0128__dsh-peak-scheduler.json +370 -0
  387. package/40-checker/results/sample60-ci/yjh051108__dsh-routing-suite.json +437 -0
  388. package/40-checker/results/sample60-ci/zed1902209846-dotcom__DPwhale-plugin.json +231 -0
  389. package/40-checker/results/triage/REPORT.md +317 -0
  390. package/40-checker/results/triage/evidence/g2-rejections.txt +63 -0
  391. package/40-checker/results/triage/evidence/purge-baseline-0.2.1-rc.5.json +51 -0
  392. package/40-checker/results/triage/evidence/purge-baseline-0.2.2-alpha.2.json +51 -0
  393. package/40-checker/results/triage/evidence/purge-postinstall.txt +62 -0
  394. package/40-checker/results/triage/evidence/purge-with-profile-0.2.1-rc.5.json +71 -0
  395. package/40-checker/results/triage/evidence/purge-with-profile-0.2.2-alpha.2.json +71 -0
  396. package/40-checker/results/triage/evidence/semver-matrix.json +32 -0
  397. package/40-checker/results/triage/triage.json +295 -0
  398. package/40-checker/results/webapp/README.md +10 -0
  399. package/40-checker/results/webapp/summary.json +46 -0
  400. package/40-checker/results/webapp/web-auth.json +19 -0
  401. package/40-checker/results/webruntime/DDDMUC__dsh-free-search/client-export.json +7 -0
  402. package/40-checker/results/webruntime/DDDMUC__dsh-free-search/installed-package.json +123 -0
  403. package/40-checker/results/webruntime/DDDMUC__dsh-free-search/probe.json +129 -0
  404. package/40-checker/results/webruntime/DDDMUC__dsh-free-search/shot.png +0 -0
  405. package/40-checker/results/webruntime/DDDMUC__dsh-free-search/summary.md +16 -0
  406. package/40-checker/results/webruntime/Ebony-Vinyl__dsh-our-free-model/client-export.json +7 -0
  407. package/40-checker/results/webruntime/Ebony-Vinyl__dsh-our-free-model/installed-package.json +76 -0
  408. package/40-checker/results/webruntime/Ebony-Vinyl__dsh-our-free-model/probe.json +129 -0
  409. package/40-checker/results/webruntime/Ebony-Vinyl__dsh-our-free-model/shot.png +0 -0
  410. package/40-checker/results/webruntime/Ebony-Vinyl__dsh-our-free-model/summary.md +16 -0
  411. package/40-checker/results/webruntime/REPORT.md +253 -0
  412. package/40-checker/results/webruntime/SeaOf0__dsh-redteam-model/client-export.json +7 -0
  413. package/40-checker/results/webruntime/SeaOf0__dsh-redteam-model/installed-package.json +97 -0
  414. package/40-checker/results/webruntime/SeaOf0__dsh-redteam-model/probe.json +129 -0
  415. package/40-checker/results/webruntime/SeaOf0__dsh-redteam-model/shot.png +0 -0
  416. package/40-checker/results/webruntime/SeaOf0__dsh-redteam-model/summary.md +16 -0
  417. package/40-checker/results/webruntime/YuJunZhiXue__dsh-purge/client-export.json +7 -0
  418. package/40-checker/results/webruntime/YuJunZhiXue__dsh-purge/installed-package.json +98 -0
  419. package/40-checker/results/webruntime/YuJunZhiXue__dsh-purge/probe.json +136 -0
  420. package/40-checker/results/webruntime/YuJunZhiXue__dsh-purge/shot.png +0 -0
  421. package/40-checker/results/webruntime/YuJunZhiXue__dsh-purge/summary.md +16 -0
  422. package/40-checker/results/webruntime/ci-diet/client-export.json +10 -0
  423. package/40-checker/results/webruntime/ci-diet/installed-package.json +100 -0
  424. package/40-checker/results/webruntime/ci-diet/probe.json +129 -0
  425. package/40-checker/results/webruntime/ci-diet/shot.png +0 -0
  426. package/40-checker/results/webruntime/ci-diet/summary.md +16 -0
  427. package/40-checker/results/webruntime/daily-log/client-export.json +10 -0
  428. package/40-checker/results/webruntime/daily-log/installed-package.json +113 -0
  429. package/40-checker/results/webruntime/daily-log/probe.json +129 -0
  430. package/40-checker/results/webruntime/daily-log/shot.png +0 -0
  431. package/40-checker/results/webruntime/daily-log/summary.md +16 -0
  432. package/40-checker/results/webruntime/howmp__dsh-pentest/client-export.json +7 -0
  433. package/40-checker/results/webruntime/howmp__dsh-pentest/installed-package.json +90 -0
  434. package/40-checker/results/webruntime/howmp__dsh-pentest/probe.json +129 -0
  435. package/40-checker/results/webruntime/howmp__dsh-pentest/shot.png +0 -0
  436. package/40-checker/results/webruntime/howmp__dsh-pentest/summary.md +16 -0
  437. package/40-checker/results/webruntime/kingcharleslzy-ai__dsh-purge/client-export.json +7 -0
  438. package/40-checker/results/webruntime/kingcharleslzy-ai__dsh-purge/installed-package.json +164 -0
  439. package/40-checker/results/webruntime/kingcharleslzy-ai__dsh-purge/probe.json +129 -0
  440. package/40-checker/results/webruntime/kingcharleslzy-ai__dsh-purge/shot.png +0 -0
  441. package/40-checker/results/webruntime/kingcharleslzy-ai__dsh-purge/summary.md +16 -0
  442. package/40-checker/results/webruntime/liguobao__ds-harness-remote/client-export.json +7 -0
  443. package/40-checker/results/webruntime/liguobao__ds-harness-remote/installed-package.json +166 -0
  444. package/40-checker/results/webruntime/liguobao__ds-harness-remote/probe.json +129 -0
  445. package/40-checker/results/webruntime/liguobao__ds-harness-remote/shot.png +0 -0
  446. package/40-checker/results/webruntime/liguobao__ds-harness-remote/summary.md +16 -0
  447. package/40-checker/results/webruntime/local-pre-ci/README.md +67 -0
  448. package/40-checker/results/webruntime/local-pre-ci/client-exports.json +158 -0
  449. package/40-checker/results/webruntime/local-pre-ci/dsh-free-search.probe.json +119 -0
  450. package/40-checker/results/webruntime/local-pre-ci/dsh-pocket.probe.json +119 -0
  451. package/40-checker/results/webruntime/local-pre-ci/dsh-redteam-model.probe.json +119 -0
  452. package/40-checker/results/webruntime/local-pre-ci/qiushi-shell-only.probe.json +104 -0
  453. package/40-checker/results/webruntime/local-pre-ci/ui-auth-no-login.fail.json +52 -0
  454. package/40-checker/results/webruntime/local-pre-ci/ui-auth.probe.json +123 -0
  455. package/40-checker/results/webruntime/mmparko__dsh-purge/client-export.json +7 -0
  456. package/40-checker/results/webruntime/mmparko__dsh-purge/installed-package.json +95 -0
  457. package/40-checker/results/webruntime/mmparko__dsh-purge/probe.json +136 -0
  458. package/40-checker/results/webruntime/mmparko__dsh-purge/shot.png +0 -0
  459. package/40-checker/results/webruntime/mmparko__dsh-purge/summary.md +16 -0
  460. package/40-checker/results/webruntime/project-memory/client-export.json +7 -0
  461. package/40-checker/results/webruntime/project-memory/installed-package.json +118 -0
  462. package/40-checker/results/webruntime/project-memory/probe.json +129 -0
  463. package/40-checker/results/webruntime/project-memory/shot.png +0 -0
  464. package/40-checker/results/webruntime/project-memory/summary.md +16 -0
  465. package/40-checker/results/webruntime/qiushi/client-export.json +7 -0
  466. package/40-checker/results/webruntime/qiushi/installed-package.json +84 -0
  467. package/40-checker/results/webruntime/qiushi/probe.json +114 -0
  468. package/40-checker/results/webruntime/qiushi/shot.png +0 -0
  469. package/40-checker/results/webruntime/qiushi/summary.md +16 -0
  470. package/40-checker/results/webruntime/shaobeichen__dsh-pocket/client-export.json +7 -0
  471. package/40-checker/results/webruntime/shaobeichen__dsh-pocket/installed-package.json +85 -0
  472. package/40-checker/results/webruntime/shaobeichen__dsh-pocket/probe.json +129 -0
  473. package/40-checker/results/webruntime/shaobeichen__dsh-pocket/shot.png +0 -0
  474. package/40-checker/results/webruntime/shaobeichen__dsh-pocket/summary.md +16 -0
  475. package/40-checker/results/webruntime/status-rotator/client-export.json +7 -0
  476. package/40-checker/results/webruntime/status-rotator/installed-package.json +107 -0
  477. package/40-checker/results/webruntime/status-rotator/probe.json +129 -0
  478. package/40-checker/results/webruntime/status-rotator/shot.png +0 -0
  479. package/40-checker/results/webruntime/status-rotator/summary.md +16 -0
  480. package/40-checker/results/webruntime/summary.json +323 -0
  481. package/40-checker/results/webruntime/telemetry/probe.json +20 -0
  482. package/40-checker/results/webruntime/telemetry/summary.md +4 -0
  483. package/40-checker/results/webruntime/ui-auth/client-export.json +7 -0
  484. package/40-checker/results/webruntime/ui-auth/installed-package.json +94 -0
  485. package/40-checker/results/webruntime/ui-auth/probe.json +129 -0
  486. package/40-checker/results/webruntime/ui-auth/shot.png +0 -0
  487. package/40-checker/results/webruntime/ui-auth/summary.md +16 -0
  488. package/40-checker/results/webruntime/verification/probe.json +20 -0
  489. package/40-checker/results/webruntime/verification/summary.md +4 -0
  490. package/40-checker/results/webruntime/ysr666__dsh-vision-router/client-export.json +7 -0
  491. package/40-checker/results/webruntime/ysr666__dsh-vision-router/installed-package.json +142 -0
  492. package/40-checker/results/webruntime/ysr666__dsh-vision-router/probe.json +129 -0
  493. package/40-checker/results/webruntime/ysr666__dsh-vision-router/shot.png +0 -0
  494. package/40-checker/results/webruntime/ysr666__dsh-vision-router/summary.md +16 -0
  495. package/40-checker/samples/README.md +8 -0
  496. package/40-checker/samples/entry18.json +139 -0
  497. package/40-checker/samples/frame.json +485 -0
  498. package/40-checker/scripts/apply-overlay.mjs +59 -0
  499. package/40-checker/scripts/attestation-check.mjs +151 -0
  500. package/40-checker/scripts/bundle-smoke.mjs +126 -0
  501. package/40-checker/scripts/claim-check.mjs +145 -0
  502. package/40-checker/scripts/clause-map.mjs +94 -0
  503. package/40-checker/scripts/collect-fixtures.mjs +44 -0
  504. package/40-checker/scripts/dashboard.mjs +85 -0
  505. package/40-checker/scripts/dco-check.mjs +147 -0
  506. package/40-checker/scripts/dependabot-check.mjs +40 -0
  507. package/40-checker/scripts/doc-commands-check.mjs +92 -0
  508. package/40-checker/scripts/entry-scan.mjs +190 -0
  509. package/40-checker/scripts/entry-validate.mjs +291 -0
  510. package/40-checker/scripts/entry18-attribution.mjs +66 -0
  511. package/40-checker/scripts/entry18-ci.mjs +685 -0
  512. package/40-checker/scripts/entry18-realweb-summary.mjs +71 -0
  513. package/40-checker/scripts/entry18-web.mjs +307 -0
  514. package/40-checker/scripts/evidence-chain.mjs +100 -0
  515. package/40-checker/scripts/flow-index.mjs +82 -0
  516. package/40-checker/scripts/flow-sample-ci.mjs +529 -0
  517. package/40-checker/scripts/governance-check.mjs +210 -0
  518. package/40-checker/scripts/host-farm.mjs +165 -0
  519. package/40-checker/scripts/journey-config-observe.mjs +109 -0
  520. package/40-checker/scripts/journey-disclosure-shape.mjs +83 -0
  521. package/40-checker/scripts/journey-runtime.mjs +178 -0
  522. package/40-checker/scripts/journey.mjs +76 -0
  523. package/40-checker/scripts/label-drift.mjs +74 -0
  524. package/40-checker/scripts/label-sync.mjs +87 -0
  525. package/40-checker/scripts/label-verify.mjs +90 -0
  526. package/40-checker/scripts/landlock-exec.c +101 -0
  527. package/40-checker/scripts/level-audit.mjs +336 -0
  528. package/40-checker/scripts/m1-sidecar.mjs +126 -0
  529. package/40-checker/scripts/m2-runner.mjs +213 -0
  530. package/40-checker/scripts/round-robin.mjs +88 -0
  531. package/40-checker/scripts/sample-frame.mjs +72 -0
  532. package/40-checker/scripts/sample20-ci.mjs +25 -0
  533. package/40-checker/scripts/sample60-ci.mjs +25 -0
  534. package/40-checker/scripts/stale-check.mjs +59 -0
  535. package/40-checker/scripts/surveillance.mjs +88 -0
  536. package/40-checker/scripts/web-probe.mjs +504 -0
  537. package/40-checker/src/cli.mjs +300 -0
  538. package/40-checker/src/client-shape.mjs +37 -0
  539. package/40-checker/src/declarations.mjs +242 -0
  540. package/40-checker/src/index.mjs +8 -0
  541. package/40-checker/src/install-spec.mjs +67 -0
  542. package/40-checker/src/label.mjs +130 -0
  543. package/40-checker/src/manifest.mjs +364 -0
  544. package/40-checker/src/permissions.mjs +60 -0
  545. package/40-checker/src/report.mjs +204 -0
  546. package/40-checker/src/result.mjs +60 -0
  547. package/40-checker/src/runtime.mjs +299 -0
  548. package/40-checker/src/semver.mjs +128 -0
  549. package/40-checker/src/util.mjs +148 -0
  550. package/40-checker/test/attestation.test.mjs +59 -0
  551. package/40-checker/test/checks.test.mjs +172 -0
  552. package/40-checker/test/claim.test.mjs +28 -0
  553. package/40-checker/test/client-shape.test.mjs +35 -0
  554. package/40-checker/test/dco.test.mjs +51 -0
  555. package/40-checker/test/entry-validate.test.mjs +172 -0
  556. package/40-checker/test/governance.test.mjs +76 -0
  557. package/40-checker/test/label.test.mjs +97 -0
  558. package/40-checker/test/level-audit.test.mjs +99 -0
  559. package/40-checker/test/levels.test.mjs +31 -0
  560. package/40-checker/test/ops.test.mjs +117 -0
  561. package/40-checker/test/permissions.test.mjs +40 -0
  562. package/40-checker/test/semver.test.mjs +32 -0
  563. package/40-checker/test/verify.test.mjs +57 -0
  564. package/LICENSE +28 -0
  565. package/LICENSE-APACHE +190 -0
  566. package/LICENSE-CC-BY +23 -0
  567. package/NOTICE.md +11 -0
  568. package/README.md +146 -3
  569. package/bin/dsh-levels.mjs +4 -0
  570. package/bin/dsh-standards.mjs +18 -0
  571. package/docs/BOOST-FIXTURES-2026-11-02.md +38 -0
  572. package/docs/DEVELOPER-JOURNEY.md +40 -0
  573. package/docs/HOST-J3-BUG-REPORT-DRAFT.md +27 -0
  574. package/docs/HOST-J3-CONFIG-REPRO-2026-11-02.md +36 -0
  575. package/docs/NAMING-FALLBACK.md +11 -0
  576. package/docs/fork-policy.md +12 -0
  577. package/docs/full-test-plan-2026-11-02.md +207 -0
  578. package/docs/incident.md +37 -0
  579. package/docs/onboarding.md +27 -0
  580. package/docs/privacy.md +12 -0
  581. package/docs/release.md +16 -0
  582. package/docs/scope-security.md +62 -0
  583. package/docs/status-taxonomy.md +54 -0
  584. package/docs/sunset.md +44 -0
  585. package/docs/translating.md +12 -0
  586. package/package.json +49 -12
  587. package/spec/README.md +27 -0
  588. package/spec/boost/README.md +8 -0
  589. package/spec/clauses.json +253 -0
  590. package/spec/entry/README.md +9 -0
  591. package/spec/flow/README.md +8 -0
  592. package/spec/levels.json +371 -0
  593. package/spec/levels.schema.json +45 -0
  594. package/spec/reference-suite.json +35 -0
  595. package/spec/schemas/attestation.schema.json +284 -0
  596. package/spec/schemas/evidence.schema.json +331 -0
  597. package/spec/schemas/report.schema.json +64 -0
@@ -0,0 +1,172 @@
1
+ import { test } from 'node:test'
2
+ import assert from 'node:assert/strict'
3
+ import { spawnSync } from 'node:child_process'
4
+ import { fileURLToPath } from 'node:url'
5
+ import path from 'node:path'
6
+ import fs from 'node:fs'
7
+ import os from 'node:os'
8
+
9
+ const HERE = path.dirname(fileURLToPath(import.meta.url))
10
+ const STD = path.resolve(HERE, '..', '..')
11
+ const SCRIPT = path.join(STD, '40-checker', 'scripts', 'entry-validate.mjs')
12
+ const FIXTURES = path.join(STD, 'adoption', 'entry', 'fixtures')
13
+
14
+ function run(name, withMeta = true) {
15
+ const dir = path.join(FIXTURES, name)
16
+ const args = [SCRIPT, dir, '--json']
17
+ const meta = path.join(dir, 'meta.json')
18
+ if (withMeta && fs.existsSync(meta)) args.push('--meta', meta)
19
+ return spawnSync(process.execPath, args, { encoding: 'utf8', timeout: 30_000 })
20
+ }
21
+
22
+ function result(name, withMeta = true) {
23
+ const out = run(name, withMeta)
24
+ assert.ok(out.stdout, out.stderr)
25
+ return { out, json: JSON.parse(out.stdout) }
26
+ }
27
+
28
+ test('entry-validate: the good fixture passes C1-C8', () => {
29
+ const { out, json } = result('good')
30
+ assert.equal(out.status, 0, out.stderr)
31
+ assert.equal(json.conclusion.status, 'pass')
32
+ assert.deepEqual(json.conclusion.failed, [])
33
+ assert.deepEqual(json.conclusion.notRun, [])
34
+ })
35
+
36
+ test('entry-validate: missing meta is incomplete, never a pass', () => {
37
+ const { out, json } = result('no-meta', false)
38
+ assert.equal(out.status, 3)
39
+ assert.equal(json.conclusion.status, 'incomplete')
40
+ assert.ok(json.conclusion.notRun.includes('C1'))
41
+ assert.ok(json.conclusion.notRun.includes('C7'))
42
+ })
43
+
44
+ const failures = [
45
+ ['client-only', 'C2'],
46
+ ['missing-patch', 'C2'],
47
+ ['engines-star', 'C4'],
48
+ ['client-no-export', 'C5'],
49
+ ['no-metadata', 'C6'],
50
+ ['no-version', 'C7'],
51
+ ['forbidden-label', 'C8'],
52
+ ]
53
+
54
+ for (const [name, id] of failures) {
55
+ test(`entry-validate: ${name} fails ${id}`, () => {
56
+ const { out, json } = result(name)
57
+ assert.equal(out.status, 2, out.stderr)
58
+ assert.equal(json.conclusion.status, 'fail')
59
+ assert.ok(json.conclusion.failed.includes(id), JSON.stringify(json.conclusion))
60
+ })
61
+ }
62
+
63
+ test('entry-validate: a peer range is an accepted C4 source', () => {
64
+ const { out, json } = result('peer-ok')
65
+ assert.equal(out.status, 0, out.stderr)
66
+ assert.equal(json.checks.find(row => row.id === 'C4').status, 'pass')
67
+ })
68
+
69
+ test('entry-validate: a declared but uncommitted build output is a warning, not a fail', () => {
70
+ const { out, json } = result('build-output')
71
+ assert.equal(out.status, 0, out.stderr)
72
+ assert.equal(json.conclusion.status, 'pass-with-warnings')
73
+ assert.ok(json.conclusion.warnings.includes('C5'))
74
+ assert.equal(json.checks.find(row => row.id === 'C6').status, 'pass')
75
+ assert.deepEqual(json.conclusion.failed, [])
76
+ })
77
+
78
+ test('entry-validate: an ordered dsh.bundle.patch list is accepted', () => {
79
+ const { out, json } = result('patch-list')
80
+ assert.equal(out.status, 0, out.stderr)
81
+ assert.equal(json.checks.find(row => row.id === 'C2').status, 'pass')
82
+ assert.equal(json.conclusion.status, 'pass')
83
+ })
84
+
85
+ function hostEvidence(status) {
86
+ const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'dsh-entry-host-'))
87
+ const file = path.join(dir, 'host.json')
88
+ fs.writeFileSync(file, JSON.stringify({
89
+ status,
90
+ command: 'dsh plugin --profile test add @dsh-fixtures/entry-good',
91
+ host: 'dsh 0.2.2-alpha.2 / cordis 4.0.6-alpha.1',
92
+ evidence: 'https://example.invalid/host-install/1',
93
+ generatedAt: '2026-11-02',
94
+ }))
95
+ return { dir, file, cleanup: () => fs.rmSync(dir, { recursive: true, force: true }) }
96
+ }
97
+
98
+ test('entry-validate: a passed host install upgrades C3 to pass', () => {
99
+ const h = hostEvidence('pass')
100
+ try {
101
+ const out = spawnSync(process.execPath, [SCRIPT, path.join(FIXTURES, 'good'), '--json', '--meta', path.join(FIXTURES, 'good', 'meta.json'), '--host-evidence', h.file], { encoding: 'utf8', timeout: 30_000 })
102
+ assert.equal(out.status, 0, out.stderr)
103
+ const json = JSON.parse(out.stdout)
104
+ assert.equal(json.checks.find(row => row.id === 'C3').status, 'pass')
105
+ assert.equal(json.conclusion.status, 'pass')
106
+ } finally { h.cleanup() }
107
+ })
108
+
109
+ test('entry-validate: a failed host install fails C3', () => {
110
+ const h = hostEvidence('fail')
111
+ try {
112
+ const out = spawnSync(process.execPath, [SCRIPT, path.join(FIXTURES, 'good'), '--json', '--meta', path.join(FIXTURES, 'good', 'meta.json'), '--host-evidence', h.file], { encoding: 'utf8', timeout: 30_000 })
113
+ assert.equal(out.status, 2)
114
+ const json = JSON.parse(out.stdout)
115
+ assert.equal(json.checks.find(row => row.id === 'C3').status, 'fail')
116
+ assert.ok(json.conclusion.failed.includes('C3'))
117
+ } finally { h.cleanup() }
118
+ })
119
+
120
+ test('entry-validate: a blocked host install is incomplete, not a pass', () => {
121
+ const h = hostEvidence('blocked')
122
+ try {
123
+ const out = spawnSync(process.execPath, [SCRIPT, path.join(FIXTURES, 'good'), '--json', '--meta', path.join(FIXTURES, 'good', 'meta.json'), '--host-evidence', h.file], { encoding: 'utf8', timeout: 30_000 })
124
+ assert.equal(out.status, 3)
125
+ const json = JSON.parse(out.stdout)
126
+ assert.equal(json.checks.find(row => row.id === 'C3').status, 'blocked')
127
+ assert.ok(json.conclusion.blocked.includes('C3'))
128
+ assert.equal(json.conclusion.status, 'incomplete')
129
+ } finally { h.cleanup() }
130
+ })
131
+
132
+ test('entry-validate: C3 is flow-only when no host evidence is supplied', () => {
133
+ const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'dsh-c3-flow-'))
134
+ try {
135
+ const meta = JSON.parse(fs.readFileSync(path.join(FIXTURES, 'good', 'meta.json'), 'utf8'))
136
+ delete meta.installCommand
137
+ const metaFile = path.join(dir, 'meta.json')
138
+ fs.writeFileSync(metaFile, JSON.stringify(meta))
139
+ const out = spawnSync(process.execPath, [SCRIPT, path.join(FIXTURES, 'good'), '--json', '--meta', metaFile], { encoding: 'utf8', timeout: 30_000 })
140
+ assert.equal(out.status, 0, out.stderr)
141
+ const json = JSON.parse(out.stdout)
142
+ assert.equal(json.checks.find(row => row.id === 'C3').status, 'not-applicable')
143
+ assert.equal(json.conclusion.status, 'pass')
144
+ } finally { fs.rmSync(dir, { recursive: true, force: true }) }
145
+ })
146
+
147
+ test('entry-validate: host evidence can mark C3 not-applicable for a host/directory sample', () => {
148
+ const h = hostEvidence('not-applicable')
149
+ try {
150
+ const out = spawnSync(process.execPath, [SCRIPT, path.join(FIXTURES, 'good'), '--json', '--meta', path.join(FIXTURES, 'good', 'meta.json'), '--host-evidence', h.file], { encoding: 'utf8', timeout: 30_000 })
151
+ assert.equal(out.status, 0, out.stderr)
152
+ const json = JSON.parse(out.stdout)
153
+ assert.equal(json.checks.find(row => row.id === 'C3').status, 'not-applicable')
154
+ assert.equal(json.conclusion.status, 'pass')
155
+ } finally { h.cleanup() }
156
+ })
157
+
158
+ test('entry-validate: a missing license is A7 advisory, not a C6 fail', () => {
159
+ const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'dsh-c6-license-'))
160
+ try {
161
+ const src = path.join(FIXTURES, 'good')
162
+ for (const name of ['index.js', 'client.js', 'cordis.patch.yml', 'meta.json']) fs.copyFileSync(path.join(src, name), path.join(dir, name))
163
+ const pkg = JSON.parse(fs.readFileSync(path.join(src, 'package.json'), 'utf8'))
164
+ delete pkg.license
165
+ fs.writeFileSync(path.join(dir, 'package.json'), JSON.stringify(pkg))
166
+ const out = spawnSync(process.execPath, [SCRIPT, dir, '--json', '--meta', path.join(dir, 'meta.json')], { encoding: 'utf8', timeout: 30_000 })
167
+ assert.equal(out.status, 0, out.stderr)
168
+ const json = JSON.parse(out.stdout)
169
+ assert.equal(json.checks.find(row => row.id === 'C6').status, 'pass')
170
+ assert.ok(json.advisories.some(row => row.id === 'A7'))
171
+ } finally { fs.rmSync(dir, { recursive: true, force: true }) }
172
+ })
@@ -0,0 +1,76 @@
1
+ import test from 'node:test'
2
+ import assert from 'node:assert/strict'
3
+ import fs from 'node:fs'
4
+ import path from 'node:path'
5
+ import { fileURLToPath } from 'node:url'
6
+ import { validateGovernance } from '../scripts/governance-check.mjs'
7
+
8
+ const HERE = path.dirname(fileURLToPath(import.meta.url))
9
+ const ROOT = path.resolve(HERE, '..', '..')
10
+ const read = (rel) => JSON.parse(fs.readFileSync(path.join(ROOT, rel), 'utf8'))
11
+
12
+ function fixture() {
13
+ return {
14
+ roles: read('governance/roles.json'),
15
+ contributors: read('governance/contributors.json'),
16
+ reviewers: read('governance/reviewers.json'),
17
+ coi: read('governance/coi.json'),
18
+ }
19
+ }
20
+
21
+ test('governance: the checked-in files pass', () => {
22
+ const result = validateGovernance(fixture())
23
+ assert.deepEqual(result.errors, [])
24
+ })
25
+
26
+ test('governance: exactly one human organizer is required', () => {
27
+ const data = fixture()
28
+ data.roles.roles.organizer.bot = true
29
+ data.roles.roles.organizer.humanOnly = false
30
+ const result = validateGovernance(data)
31
+ assert.ok(result.errors.some((e) => /organizer must be humanOnly/.test(e)))
32
+ })
33
+
34
+ test('governance: AI must not decide spec semantics', () => {
35
+ const data = fixture()
36
+ data.roles.matrix['ai-steward']['spec.decide'] = 'allow'
37
+ const result = validateGovernance(data)
38
+ assert.ok(result.errors.some((e) => /must not hold spec\.decide/.test(e)))
39
+ })
40
+
41
+ test('governance: AI merge must be allowlist-only', () => {
42
+ const data = fixture()
43
+ data.roles.matrix['ai-steward']['repo.merge.main'] = 'allow'
44
+ const result = validateGovernance(data)
45
+ assert.ok(result.errors.some((e) => /allow-with-allowlist/.test(e)))
46
+ })
47
+
48
+ test('governance: class A approver must be human', () => {
49
+ const data = fixture()
50
+ data.roles.decisions.A.approver = ['ai-steward']
51
+ const result = validateGovernance(data)
52
+ assert.ok(result.errors.some((e) => /decision A approver/.test(e)))
53
+ })
54
+
55
+ test('governance: AI merge denylist protects spec and governance', () => {
56
+ const data = fixture()
57
+ data.roles.ai.mergeDenylist = ['spec/']
58
+ const result = validateGovernance(data)
59
+ assert.ok(result.errors.some((e) => /governance\//.test(e)))
60
+ })
61
+
62
+ test('governance: a contributor needs DCO and the current terms', () => {
63
+ const data = fixture()
64
+ data.contributors.contributors[0].signedOff = false
65
+ data.contributors.contributors[0].terms = 'dsh-ct/0'
66
+ const result = validateGovernance(data)
67
+ assert.ok(result.errors.some((e) => /no DCO sign-off/.test(e)))
68
+ assert.ok(result.errors.some((e) => /terms mismatch/.test(e)))
69
+ })
70
+
71
+ test('governance: reviewer must reference a human role', () => {
72
+ const data = fixture()
73
+ data.reviewers.reviewers[0].role = 'ai-steward'
74
+ const result = validateGovernance(data)
75
+ assert.ok(result.errors.some((e) => /human role/.test(e)))
76
+ })
@@ -0,0 +1,97 @@
1
+ import { test } from 'node:test'
2
+ import assert from 'node:assert/strict'
3
+ import { spawnSync } from 'node:child_process'
4
+ import { fileURLToPath } from 'node:url'
5
+ import path from 'node:path'
6
+ import fs from 'node:fs'
7
+ import os from 'node:os'
8
+
9
+ const HERE = path.dirname(fileURLToPath(import.meta.url))
10
+ const STD = path.resolve(HERE, '..', '..')
11
+ const SYNC = path.join(STD, '40-checker', 'scripts', 'label-sync.mjs')
12
+ const DRIFT = path.join(STD, '40-checker', 'scripts', 'label-drift.mjs')
13
+ const VERIFY = path.join(STD, '40-checker', 'scripts', 'label-verify.mjs')
14
+ const SAMPLE = path.join(STD, 'adoption', 'market', 'sample-source.json')
15
+
16
+ function tempDir() {
17
+ return fs.mkdtempSync(path.join(os.tmpdir(), 'dsh-label-test-'))
18
+ }
19
+
20
+ function run(script, args) {
21
+ return spawnSync(process.execPath, [script, ...args], { encoding: 'utf8', timeout: 30_000 })
22
+ }
23
+
24
+ test('label-sync: writes a valid index from the sample source', () => {
25
+ const dir = tempDir()
26
+ try {
27
+ const out = path.join(dir, 'labels')
28
+ const sync = run(SYNC, ['--source', SAMPLE, '--out', out])
29
+ assert.equal(sync.status, 0, sync.stderr)
30
+ const index = JSON.parse(fs.readFileSync(path.join(out, 'index.json'), 'utf8'))
31
+ assert.equal(index.schema, 'dsh-label-index/1')
32
+ assert.equal(index.records.length, 1)
33
+ assert.match(index.records[0].recordHash, /^sha256:[0-9a-f]{64}$/)
34
+ const drift = run(DRIFT, ['--index', path.join(out, 'index.json'), '--now', '2026-11-02'])
35
+ assert.equal(drift.status, 0, drift.stdout + drift.stderr)
36
+ const verify = run(VERIFY, ['--index', path.join(out, 'index.json'), '--hash', index.records[0].recordHash, '--json'])
37
+ assert.equal(verify.status, 0, verify.stderr)
38
+ const view = JSON.parse(verify.stdout)
39
+ assert.equal(view.ok, true)
40
+ assert.equal(view.claimLevel, 'reference')
41
+ assert.equal(Object.prototype.hasOwnProperty.call(view, 'grade'), false)
42
+ } finally {
43
+ fs.rmSync(dir, { recursive: true, force: true })
44
+ }
45
+ })
46
+
47
+ test('label-drift: an expired label is stale and fails', () => {
48
+ const dir = tempDir()
49
+ try {
50
+ const out = path.join(dir, 'labels')
51
+ assert.equal(run(SYNC, ['--source', SAMPLE, '--out', out]).status, 0)
52
+ const drift = run(DRIFT, ['--index', path.join(out, 'index.json'), '--now', '2028-01-01', '--json'])
53
+ assert.equal(drift.status, 1)
54
+ const result = JSON.parse(drift.stdout)
55
+ assert.equal(result.stale, 1)
56
+ assert.equal(result.ok, false)
57
+ } finally {
58
+ fs.rmSync(dir, { recursive: true, force: true })
59
+ }
60
+ })
61
+
62
+ test('label-sync: a grade or a wrong hash is rejected', () => {
63
+ const dir = tempDir()
64
+ try {
65
+ const source = JSON.parse(fs.readFileSync(SAMPLE, 'utf8'))
66
+ const badGrade = structuredClone(source)
67
+ badGrade[0].grade = 'A'
68
+ const gradeFile = path.join(dir, 'bad-grade.json')
69
+ fs.writeFileSync(gradeFile, JSON.stringify(badGrade))
70
+ const grade = run(SYNC, ['--source', gradeFile, '--check'])
71
+ assert.equal(grade.status, 1)
72
+ assert.match(grade.stderr, /forbidden field: grade/)
73
+
74
+ const badHash = structuredClone(source)
75
+ badHash[0].recordHash = `sha256:${'0'.repeat(64)}`
76
+ const hashFile = path.join(dir, 'bad-hash.json')
77
+ fs.writeFileSync(hashFile, JSON.stringify(badHash))
78
+ const hash = run(SYNC, ['--source', hashFile, '--check'])
79
+ assert.equal(hash.status, 1)
80
+ assert.match(hash.stderr, /recordHash does not match/)
81
+ } finally {
82
+ fs.rmSync(dir, { recursive: true, force: true })
83
+ }
84
+ })
85
+
86
+ test('label-verify: an unknown hash is a 404, not a fake pass', () => {
87
+ const dir = tempDir()
88
+ try {
89
+ const out = path.join(dir, 'labels')
90
+ assert.equal(run(SYNC, ['--source', SAMPLE, '--out', out]).status, 0)
91
+ const verify = run(VERIFY, ['--index', path.join(out, 'index.json'), '--hash', `sha256:${'f'.repeat(64)}`])
92
+ assert.equal(verify.status, 2)
93
+ assert.match(verify.stderr, /not found/)
94
+ } finally {
95
+ fs.rmSync(dir, { recursive: true, force: true })
96
+ }
97
+ })
@@ -0,0 +1,99 @@
1
+ import { test } from 'node:test'
2
+ import assert from 'node:assert/strict'
3
+ import { spawnSync } from 'node:child_process'
4
+ import { fileURLToPath } from 'node:url'
5
+ import path from 'node:path'
6
+
7
+ const HERE = path.dirname(fileURLToPath(import.meta.url))
8
+ const STD = path.resolve(HERE, '..', '..')
9
+ const SCRIPT = path.join(STD, '40-checker', 'scripts', 'level-audit.mjs')
10
+ const GOOD = path.join(STD, '40-checker', 'fixtures', 'good')
11
+
12
+ test('level-audit: static ENTRY is recognized, FLOW/BOOST are not upgraded', () => {
13
+ const run = spawnSync(process.execPath, [SCRIPT, GOOD, '--format', 'json'], { encoding: 'utf8', timeout: 30_000 })
14
+ assert.equal(run.status, 0, run.stderr)
15
+ const result = JSON.parse(run.stdout)
16
+ assert.equal(result.schema, 'dsh-level-audit/1')
17
+ assert.equal(result.levelsSpec.schema, 'dsh-levels/1')
18
+ assert.equal(result.levels.entry.state, 'recognized')
19
+ assert.equal(result.levels.flow.state, 'not-run')
20
+ assert.equal(result.levels.boost.state, 'not-measured')
21
+ assert.deepEqual(result.notClaimed.includes('certification'), true)
22
+ })
23
+
24
+ test('level-audit: a missing package exits 3 and does not print a fake pass', () => {
25
+ const run = spawnSync(process.execPath, [SCRIPT, '/no/such/package', '--format', 'json'], { encoding: 'utf8', timeout: 30_000 })
26
+ assert.equal(run.status, 3)
27
+ assert.match(run.stderr, /not a package directory/)
28
+ })
29
+
30
+ import fs from 'node:fs'
31
+ import os from 'node:os'
32
+
33
+ const BOOST_IDS = ['LEV-1', 'LEV-2', 'LEV-3', 'LEV-4', 'LEV-5', 'LEV-6', 'LEV-7', 'LEV-8']
34
+
35
+ function writeBoostEvidence(rows) {
36
+ const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'dsh-boost-evidence-'))
37
+ const file = path.join(dir, 'boost.json')
38
+ fs.writeFileSync(file, JSON.stringify(rows))
39
+ return { dir, file, cleanup: () => fs.rmSync(dir, { recursive: true, force: true }) }
40
+ }
41
+
42
+ function validCard(expiresAt = '2099-01-01', generatedAt = '2026-11-01') {
43
+ return {
44
+ subject: 'fixture@1.0.0',
45
+ host: 'fixture-host',
46
+ method: 'fixture',
47
+ scope: 'fixture',
48
+ command: 'node fixture.mjs',
49
+ result: 'pass',
50
+ negativeControl: 'control fails as expected',
51
+ generatedAt,
52
+ expiresAt,
53
+ recordHash: `sha256:${'a'.repeat(64)}`,
54
+ claimLevel: 'self-reported',
55
+ issuer: 'fixture',
56
+ selfAssessed: true,
57
+ }
58
+ }
59
+
60
+ test('level-audit: status-only BOOST rows are not measured without evidence cards', () => {
61
+ const rows = Object.fromEntries(BOOST_IDS.map(id => [id, { status: 'measured', evidence: 'looks fine' }]))
62
+ const fixture = writeBoostEvidence(rows)
63
+ try {
64
+ const run = spawnSync(process.execPath, [SCRIPT, GOOD, '--format', 'json', '--boost-evidence', fixture.file], { encoding: 'utf8', timeout: 30_000 })
65
+ assert.equal(run.status, 0, run.stderr)
66
+ const result = JSON.parse(run.stdout)
67
+ assert.equal(result.levels.boost.state, 'not-measured')
68
+ assert.equal(result.levels.boost.practices['LEV-1'].card.valid, false)
69
+ } finally {
70
+ fixture.cleanup()
71
+ }
72
+ })
73
+
74
+ test('level-audit: BOOST is measured only with eight valid evidence cards', () => {
75
+ const rows = Object.fromEntries(BOOST_IDS.map(id => [id, { status: 'measured', evidenceCard: validCard() }]))
76
+ const fixture = writeBoostEvidence(rows)
77
+ try {
78
+ const run = spawnSync(process.execPath, [SCRIPT, GOOD, '--format', 'json', '--boost-evidence', fixture.file], { encoding: 'utf8', timeout: 30_000 })
79
+ assert.equal(run.status, 0, run.stderr)
80
+ const result = JSON.parse(run.stdout)
81
+ assert.equal(result.levels.boost.state, 'measured')
82
+ assert.equal(result.levels.boost.validCards, 8)
83
+ } finally {
84
+ fixture.cleanup()
85
+ }
86
+ })
87
+
88
+ test('level-audit: expired BOOST cards are stale, not measured', () => {
89
+ const rows = Object.fromEntries(BOOST_IDS.map(id => [id, { status: 'measured', evidenceCard: validCard('2020-01-01', '2019-01-01') }]))
90
+ const fixture = writeBoostEvidence(rows)
91
+ try {
92
+ const run = spawnSync(process.execPath, [SCRIPT, GOOD, '--format', 'json', '--boost-evidence', fixture.file], { encoding: 'utf8', timeout: 30_000 })
93
+ assert.equal(run.status, 0, run.stderr)
94
+ const result = JSON.parse(run.stdout)
95
+ assert.equal(result.levels.boost.state, 'stale')
96
+ } finally {
97
+ fixture.cleanup()
98
+ }
99
+ })
@@ -0,0 +1,31 @@
1
+ import { test } from 'node:test'
2
+ import assert from 'node:assert/strict'
3
+ import { readFileSync } from 'node:fs'
4
+ import { fileURLToPath } from 'node:url'
5
+ import path from 'node:path'
6
+
7
+ const HERE = path.dirname(fileURLToPath(import.meta.url))
8
+ const STD = path.resolve(HERE, '..', '..')
9
+ const levels = JSON.parse(readFileSync(path.join(STD, 'spec', 'levels.json'), 'utf8'))
10
+
11
+ test('levels: exactly three levels with the expected ids and analogies', () => {
12
+ assert.equal(levels.schema, 'dsh-levels/1')
13
+ assert.equal(levels.nonOfficial, true)
14
+ assert.deepEqual(levels.levels.map(level => level.id), ['entry', 'flow', 'boost'])
15
+ assert.deepEqual(levels.levels.map(level => level.analogy), ['GB', 'GB/T', 'GB/Z'])
16
+ })
17
+
18
+ test('levels: ENTRY has G0-G5, FLOW has J1-J8, BOOST has LEV-1..LEV-8', () => {
19
+ const gates = Object.fromEntries(levels.levels.map(level => [level.id, level.gates.map(gate => gate.id)]))
20
+ assert.deepEqual(gates.entry, ['G0', 'G1', 'G2', 'G3', 'G4', 'G5'])
21
+ assert.deepEqual(gates.flow, ['J1', 'J2', 'J3', 'J4', 'J5', 'J6', 'J7', 'J8'])
22
+ assert.deepEqual(gates.boost, ['LEV-1', 'LEV-2', 'LEV-3', 'LEV-4', 'LEV-5', 'LEV-6', 'LEV-7', 'LEV-8'])
23
+ })
24
+
25
+ test('levels: evidence states include not-run and never imply a pass', () => {
26
+ const all = new Set(levels.levels.flatMap(level => level.evidenceStates))
27
+ assert.equal(all.has('not-run'), true)
28
+ assert.equal(all.has('runtime'), true)
29
+ assert.equal(all.has('measured'), true)
30
+ assert.equal(levels.axes.rules.some(rule => rule.includes('skip is not a pass')), true)
31
+ })
@@ -0,0 +1,117 @@
1
+ import test from 'node:test'
2
+ import assert from 'node:assert/strict'
3
+ import fs from 'node:fs'
4
+ import os from 'node:os'
5
+ import path from 'node:path'
6
+ import { fileURLToPath } from 'node:url'
7
+ import { validateClauseMap } from '../scripts/clause-map.mjs'
8
+ import { effective } from '../scripts/stale-check.mjs'
9
+ import { appendRecord, verifyChain } from '../scripts/evidence-chain.mjs'
10
+ import { buildDashboard } from '../scripts/dashboard.mjs'
11
+ import { inspect } from '../scripts/surveillance.mjs'
12
+
13
+ const HERE = path.dirname(fileURLToPath(import.meta.url))
14
+ const ROOT = path.resolve(HERE, '..', '..')
15
+ const read = (rel) => JSON.parse(fs.readFileSync(path.join(ROOT, rel), 'utf8'))
16
+
17
+ test('clause map: the checked-in map covers every gate', () => {
18
+ const result = validateClauseMap({ levels: read('spec/levels.json'), clauses: read('spec/clauses.json') })
19
+ assert.deepEqual(result.errors, [])
20
+ assert.deepEqual(result.covered.entry.sort(), ['G0', 'G1', 'G2', 'G3', 'G4', 'G5'])
21
+ })
22
+
23
+ test('clause map: a missing gate is an error', () => {
24
+ const levels = read('spec/levels.json')
25
+ const clauses = read('spec/clauses.json')
26
+ clauses.clauses = clauses.clauses.filter((c) => !c.gates.includes('G4'))
27
+ const result = validateClauseMap({ levels, clauses })
28
+ assert.ok(result.errors.some((e) => /G4/.test(e)))
29
+ })
30
+
31
+ test('stale: an active expired record is expired', () => {
32
+ const r = effective({ status: 'active', expiresAt: '2020-01-01' }, new Date('2026-11-01T00:00:00Z'))
33
+ assert.equal(r.status, 'expired')
34
+ assert.equal(r.stale, true)
35
+ })
36
+
37
+ test('stale: a draft is not valid but not “stale”', () => {
38
+ const r = effective({ status: 'draft', expiresAt: '2030-01-01' }, new Date('2026-11-01T00:00:00Z'))
39
+ assert.equal(r.status, 'draft')
40
+ assert.equal(r.stale, false)
41
+ })
42
+
43
+ test('evidence chain: append then verify', () => {
44
+ const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'dsh-chain-'))
45
+ const record = path.join(dir, 'record.json')
46
+ fs.writeFileSync(record, '{"ok":true}')
47
+ const chain = path.join(dir, 'chain.jsonl')
48
+ appendRecord({ chain, record, ts: '2026-11-02T00:00:00Z' })
49
+ appendRecord({ chain, record, ts: '2026-11-02T00:00:01Z' })
50
+ const result = verifyChain(fs.readFileSync(chain, 'utf8').split('\n'))
51
+ assert.deepEqual(result.errors, [])
52
+ assert.equal(result.entries, 2)
53
+ fs.rmSync(dir, { recursive: true, force: true })
54
+ })
55
+
56
+ test('evidence chain: tampering is detected', () => {
57
+ const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'dsh-chain-'))
58
+ const record = path.join(dir, 'record.json')
59
+ fs.writeFileSync(record, '{"ok":true}')
60
+ const chain = path.join(dir, 'chain.jsonl')
61
+ appendRecord({ chain, record, ts: '2026-11-02T00:00:00Z' })
62
+ const lines = fs.readFileSync(chain, 'utf8').split('\n')
63
+ lines[0] = lines[0].replace(/("recordSha256":")([0-9a-f])/, (m, a, b) => a + (b === '0' ? '1' : '0'))
64
+ const result = verifyChain(lines)
65
+ assert.ok(result.errors.length > 0)
66
+ fs.rmSync(dir, { recursive: true, force: true })
67
+ })
68
+
69
+ test('dashboard: never claims official/security/production', () => {
70
+ const d = buildDashboard(ROOT)
71
+ assert.equal(d.schema, 'dsh-dashboard/1')
72
+ assert.ok(d.notClaimed.includes('security audit'))
73
+ assert.equal(d.flow.packages, 10)
74
+ })
75
+
76
+ test('surveillance: expired record becomes an issue', () => {
77
+ const report = inspect({ attestations: [{ attestationId: 'DSH-ATT-2020-001', status: 'active', expiresAt: '2020-01-01', verifyUrl: 'https://example.com', claimLevel: 'self-reported' }] }, new Date('2026-11-01T00:00:00Z'))
78
+ assert.ok(report.issues.some((i) => i.issues.includes('expired')))
79
+ })
80
+
81
+ test('round-robin: independent matching runs are comparable', async () => {
82
+ const { compare } = await import('../scripts/round-robin.mjs')
83
+ const expected = { good: { expected: 'warn' }, bad: { expected: 'fail' } }
84
+ const r = compare({
85
+ a: { runner: 'runner-a', results: { good: { status: 'warn' }, bad: { status: 'fail' } } },
86
+ b: { runner: 'runner-b', results: { good: { status: 'warn' }, bad: { status: 'fail' } } },
87
+ expected,
88
+ })
89
+ assert.equal(r.comparable, true)
90
+ })
91
+
92
+ test('round-robin: two not-run results are not comparable', async () => {
93
+ const { compare } = await import('../scripts/round-robin.mjs')
94
+ const r = compare({
95
+ a: { runner: 'runner-a', results: { good: { status: 'not-run' } } },
96
+ b: { runner: 'runner-b', results: { good: { status: 'not-run' } } },
97
+ expected: { good: { expected: 'warn' } },
98
+ })
99
+ assert.equal(r.comparable, false)
100
+ })
101
+
102
+ test('flow index: aggregates result files without upgrading a verdict', async () => {
103
+ const { buildFlowIndex } = await import('../scripts/flow-index.mjs')
104
+ const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'dsh-flow-index-'))
105
+ const row = (id, pass, fail) => ({
106
+ schema: 'dsh-flow-real/1', id, package: id, version: '1.0.0', source: 'fixture', why: 'test',
107
+ verdicts: { J1: pass ? 'pass' : 'fail', J2: 'not-run', J4: 'not-run', J6: 'not-run' },
108
+ classification: 'clean', conclusion: 'partial', caveats: [], summary: { checks: { pass, fail, blocked: 0, notRun: 6 }, verdicts: { pass: pass ? 1 : 0, fail: fail, blocked: 0, partial: 0, notRun: 3 } },
109
+ })
110
+ fs.writeFileSync(path.join(dir, 'a.json'), JSON.stringify(row('a', 1, 0)))
111
+ fs.writeFileSync(path.join(dir, 'b.json'), JSON.stringify(row('b', 0, 1)))
112
+ const index = buildFlowIndex(dir)
113
+ assert.equal(index.totals.packages, 2)
114
+ assert.equal(index.totals.checks.fail, 1)
115
+ assert.equal(index.totals.verdicts.fail, 1)
116
+ fs.rmSync(dir, { recursive: true, force: true })
117
+ })
@@ -0,0 +1,40 @@
1
+ import test from 'node:test'
2
+ import assert from 'node:assert/strict'
3
+ import { checkCredentials } from '../src/declarations.mjs'
4
+ import { validateCommitments, validateDisclosure, COMMITMENT_IDS } from '../src/permissions.mjs'
5
+
6
+ const manifest = {
7
+ dsh: {
8
+ commitmentsVersion: 1,
9
+ commitments: Object.fromEntries(COMMITMENT_IDS.map(id => [id, true])),
10
+ disclosure: {
11
+ endpoints: ['https://api.example.com'],
12
+ retention: 'none',
13
+ systemPrompt: 'unchanged',
14
+ },
15
+ capabilities: ['network:egress'],
16
+ },
17
+ }
18
+
19
+ test('all 9 commitments validate as booleans', () => {
20
+ const details = validateCommitments(manifest)
21
+ assert.equal(details.length, 1)
22
+ assert.equal(details[0].result, 'PASS')
23
+ })
24
+
25
+ test('missing commitment is a warning, not a failure', () => {
26
+ const details = validateCommitments({ dsh: { commitments: { 'no-session-upload': true } } })
27
+ assert.ok(details.some(item => item.result === 'WARN' && item.reason.includes('missing commitment')))
28
+ })
29
+
30
+ test('disclosure endpoints must be https URLs', () => {
31
+ const details = validateDisclosure({ dsh: { disclosure: { endpoints: ['http://insecure.example.com'] } } })
32
+ assert.ok(details.some(item => item.result === 'WARN'))
33
+ })
34
+
35
+ test('checkCredentials reads both declaration fields', () => {
36
+ const check = checkCredentials(manifest, [])
37
+ assert.equal(check.result, 'PASS')
38
+ assert.ok(check.details.some(item => item.item === 'C-12.6' && item.result === 'PASS'))
39
+ assert.ok(check.details.some(item => item.item === 'C-12.7' && item.result === 'PASS'))
40
+ })
@@ -0,0 +1,32 @@
1
+ import test from 'node:test'
2
+ import assert from 'node:assert/strict'
3
+ import { compareVersions, parseVersion, satisfies, validRange } from '../src/semver.mjs'
4
+
5
+ test('parseVersion accepts exact semver and prerelease', () => {
6
+ assert.deepEqual(parseVersion('0.2.2-alpha.2'), { major: 0, minor: 2, patch: 2, prerelease: ['alpha', '2'] })
7
+ assert.equal(parseVersion('^0.2.2'), null)
8
+ })
9
+
10
+ test('compareVersions orders release above prerelease', () => {
11
+ assert.equal(compareVersions(parseVersion('0.2.2'), parseVersion('0.2.2-alpha.2')), 1)
12
+ assert.equal(compareVersions(parseVersion('0.2.2-alpha.2'), parseVersion('0.2.2-alpha.1')), 1)
13
+ assert.equal(compareVersions(parseVersion('0.2.0-rc.2'), parseVersion('0.2.0-0')), 1)
14
+ })
15
+
16
+ test('satisfies handles the ranges used by real plugins', () => {
17
+ assert.equal(satisfies('0.2.2-alpha.2', '>=0.2.2-alpha.2 <0.3.0'), true)
18
+ assert.equal(satisfies('0.2.2-alpha.2', '>=0.1.5-rc.1 <0.2.0-0 || >=0.2.0-rc.2 <0.3.0-0'), true)
19
+ assert.equal(satisfies('0.2.2-alpha.2', '^0.2.2-alpha.2'), true)
20
+ assert.equal(satisfies('0.2.2-alpha.2', '~0.2.2'), false)
21
+ assert.equal(satisfies('0.2.2-alpha.2', '^0.2.2'), false)
22
+ assert.equal(satisfies('0.2.2-alpha.2', '>=0.3.0'), false)
23
+ assert.equal(satisfies('0.2.2-alpha.2', 'workspace:^'), false)
24
+ assert.equal(satisfies('24.0.0', '^22.19.0 || >=24.0.0'), true)
25
+ })
26
+
27
+ test('validRange rejects empty and malformed ranges', () => {
28
+ assert.equal(validRange('>=0.2.2 <0.3.0'), true)
29
+ assert.equal(validRange(''), false)
30
+ assert.equal(validRange('workspace:^'), false)
31
+ assert.equal(validRange('not-a-range'), false)
32
+ })