dsh-standards 0.0.2 → 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 (598) 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 +17 -4
  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 -18
  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
  598. package/index.mjs +0 -3
@@ -0,0 +1,336 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * level-audit.mjs — one-command self-check against the three DSH adoption levels.
4
+ *
5
+ * What it does:
6
+ * ENTRY runs the existing ENTRY checker (static by default; real G0-G3 boot
7
+ * when --host is supplied) and maps its conclusion to an evidence state.
8
+ * FLOW reads an optional J1-J8 evidence file; with no file it reports the
9
+ * checklist as `not-run` and never invents a pass.
10
+ * BOOST reads an optional LEV evidence file; with no file it reports
11
+ * `not-measured`. It does not run benchmarks for you.
12
+ *
13
+ * The machine source of truth is `spec/levels.json`; this tool only reads it.
14
+ * Zero dependencies: it shells out to the checker already in this repo.
15
+ *
16
+ * Usage:
17
+ * node 40-checker/scripts/level-audit.mjs <plugin-dir>
18
+ * node 40-checker/scripts/level-audit.mjs <bundle-dir> --host <app-boot/lib/index.js> \
19
+ * --base <dsh-base/cordis.patch.yml> --bare <farm> [--timeout 150000]
20
+ * node 40-checker/scripts/level-audit.mjs <dir> --flow-evidence flow.json \
21
+ * --boost-evidence boost.json --format json --out audit.json
22
+ *
23
+ * Exit codes: 0 ENTRY recognized/runtime; 2 ENTRY failed; 3 audit could not run.
24
+ */
25
+ import fs from 'node:fs'
26
+ import path from 'node:path'
27
+ import { spawnSync } from 'node:child_process'
28
+ import { fileURLToPath } from 'node:url'
29
+
30
+ const HERE = path.dirname(fileURLToPath(import.meta.url))
31
+ const STD = path.resolve(HERE, '..', '..')
32
+ const LEVELS_PATH = path.join(STD, 'spec', 'levels.json')
33
+ const CHECKER = path.join(STD, '40-checker', 'bin', 'dsh-plugin-verify.mjs')
34
+
35
+ function usage() {
36
+ console.log(`level-audit — DSH-ENTRY / FLOW / BOOST self-check
37
+
38
+ Usage:
39
+ node 40-checker/scripts/level-audit.mjs <plugin-dir> [options]
40
+
41
+ Options:
42
+ --host <file> app-boot lib/index.js; enables real ENTRY G0-G3
43
+ --base <file> dsh-base cordis.patch.yml
44
+ --bare <dir> bare-module farm for the bundle smoke
45
+ --no-runtime force static ENTRY even when --host is given
46
+ --flow-evidence <file> JSON: { "J1": { "status": "pass|fail|not-run", "evidence": "..." }, ... }
47
+ --boost-evidence <file> JSON: { "LEV-3": { "status": "measured|not-measured|failed", "evidenceCard": { ... } }, ... }
48
+ measured requires a valid evidence card; a status-only row is downgraded to not-measured
49
+ --timeout <ms> checker timeout, default 150000
50
+ --format text|json default text
51
+ --out <file> write the JSON result
52
+ --help show this help
53
+
54
+ The tool never upgrades a skip to a pass. FLOW and BOOST without evidence files
55
+ are reported as not-run / not-measured.`)
56
+ }
57
+
58
+ function parseArgs(argv) {
59
+ const options = {
60
+ dir: null, host: null, base: null, bare: null, runtime: true,
61
+ flowEvidence: null, boostEvidence: null, timeout: 150_000,
62
+ format: 'text', out: null,
63
+ }
64
+ for (let i = 0; i < argv.length; i += 1) {
65
+ const arg = argv[i]
66
+ const next = () => {
67
+ const value = argv[i + 1]
68
+ if (value === undefined) throw new Error(`${arg} needs a value`)
69
+ i += 1
70
+ return value
71
+ }
72
+ if (arg === '--host') options.host = next()
73
+ else if (arg === '--base') options.base = next()
74
+ else if (arg === '--bare') options.bare = next()
75
+ else if (arg === '--no-runtime') options.runtime = false
76
+ else if (arg === '--flow-evidence') options.flowEvidence = next()
77
+ else if (arg === '--boost-evidence') options.boostEvidence = next()
78
+ else if (arg === '--timeout') options.timeout = Number(next())
79
+ else if (arg === '--format') options.format = next()
80
+ else if (arg === '--out') options.out = next()
81
+ else if (arg === '--help' || arg === '-h') { usage(); process.exit(0) }
82
+ else if (arg.startsWith('-')) throw new Error(`unknown option: ${arg}`)
83
+ else if (options.dir === null) options.dir = arg
84
+ else throw new Error(`unexpected argument: ${arg}`)
85
+ }
86
+ if (!options.dir) throw new Error('a plugin directory is required')
87
+ if (!['text', 'json'].includes(options.format)) throw new Error('--format must be text or json')
88
+ if (!Number.isFinite(options.timeout) || options.timeout < 1000) throw new Error('--timeout must be >= 1000')
89
+ options.dir = path.resolve(options.dir)
90
+ if (!fs.existsSync(path.join(options.dir, 'package.json'))) throw new Error(`not a package directory: ${options.dir}`)
91
+ return options
92
+ }
93
+
94
+ function readJson(file, label) {
95
+ try {
96
+ return JSON.parse(fs.readFileSync(file, 'utf8'))
97
+ } catch (error) {
98
+ throw new Error(`${label} is not valid JSON: ${error.message}`)
99
+ }
100
+ }
101
+
102
+ function runChecker(options) {
103
+ const args = [CHECKER, options.dir, '--scope', 'entry', '--format', 'json']
104
+ const canRun = options.runtime && options.host !== null
105
+ args.push('--entry-claim', canRun ? 'runtime' : 'static')
106
+ if (canRun) args.push('--host', options.host)
107
+ if (options.base) args.push('--base', options.base)
108
+ if (options.bare) args.push('--bare', options.bare)
109
+ const run = spawnSync(process.execPath, args, {
110
+ encoding: 'utf8',
111
+ timeout: options.timeout,
112
+ maxBuffer: 64 * 1024 * 1024,
113
+ })
114
+ let report = null
115
+ try {
116
+ report = JSON.parse(run.stdout)
117
+ } catch {
118
+ throw new Error(`checker did not emit JSON (exit ${run.status}): ${(run.stderr || '').slice(-500)}`)
119
+ }
120
+ return {
121
+ invoked: canRun ? 'runtime' : 'static',
122
+ exit: run.status,
123
+ report,
124
+ }
125
+ }
126
+
127
+ function checkById(report, id) {
128
+ return (report.checks ?? []).find(check => check.id === id)
129
+ }
130
+
131
+ function classifyEntry(report, invoked) {
132
+ const conclusion = report.conclusion ?? {}
133
+ const status = conclusion.status
134
+ const failed = (report.checks ?? []).filter(check => check.result === 'FAIL')
135
+ const warnings = (report.checks ?? []).filter(check => check.result === 'WARN')
136
+ const dsc14 = checkById(report, 'DSC-14')
137
+ let state
138
+ if (status === 'fail' || failed.length > 0) state = 'failed'
139
+ else if (status === 'pass' || status === 'warn') state = invoked === 'runtime' && dsc14?.result === 'PASS' ? 'runtime' : 'recognized'
140
+ else state = 'not-run'
141
+ return {
142
+ state,
143
+ claim: invoked,
144
+ checkerStatus: status ?? 'unknown',
145
+ checkerLevel: conclusion.level ?? null,
146
+ failed: failed.map(check => ({ id: check.id, reason: check.reason })),
147
+ warnings: warnings.map(check => ({ id: check.id, reason: check.reason })),
148
+ runtimeEvidence: dsc14 ? { result: dsc14.result, reason: dsc14.reason } : null,
149
+ g4: report.g4 ?? null,
150
+ }
151
+ }
152
+
153
+ function classifyFlow(evidence) {
154
+ const ids = ['J1', 'J2', 'J3', 'J4', 'J5', 'J6', 'J7', 'J8']
155
+ if (!evidence) {
156
+ return {
157
+ state: 'not-run',
158
+ reason: 'no --flow-evidence file; run the J1-J8 journeys and record pass/fail/not-run',
159
+ journeys: Object.fromEntries(ids.map(id => [id, { status: 'not-run' }])),
160
+ }
161
+ }
162
+ const journeys = {}
163
+ for (const id of ids) {
164
+ const row = evidence[id] ?? evidence[id.toLowerCase()]
165
+ const status = row?.status
166
+ journeys[id] = {
167
+ status: ['pass', 'fail', 'not-run', 'manual'].includes(status) ? status : 'not-run',
168
+ evidence: row?.evidence ?? null,
169
+ }
170
+ }
171
+ const failed = ids.filter(id => journeys[id].status === 'fail')
172
+ const passed = ids.filter(id => journeys[id].status === 'pass')
173
+ return {
174
+ state: failed.length > 0 ? 'failed' : passed.length === ids.length ? 'runtime' : 'not-run',
175
+ reason: failed.length > 0
176
+ ? `failed journeys: ${failed.join(', ')}`
177
+ : passed.length === ids.length
178
+ ? 'all J1-J8 have pass evidence'
179
+ : `${passed.length}/8 journeys have pass evidence`,
180
+ journeys,
181
+ }
182
+ }
183
+
184
+ const BOOST_CARD_FIELDS = [
185
+ 'subject', 'host', 'method', 'scope', 'command', 'result', 'negativeControl',
186
+ 'generatedAt', 'expiresAt', 'recordHash', 'claimLevel', 'issuer', 'selfAssessed',
187
+ ]
188
+ const BOOST_CLAIM_LEVELS = new Set(['self-reported', 'self-assessed', 'host-reviewed', 'independent', 'reference'])
189
+ const DATE_RE = /^\d{4}-\d{2}-\d{2}$/
190
+ const HASH_RE = /^sha256:[0-9a-f]{64}$/
191
+
192
+ function validateEvidenceCard(card) {
193
+ if (!card || typeof card !== 'object' || Array.isArray(card)) {
194
+ return { valid: false, missing: ['evidenceCard'], reason: 'missing evidence card' }
195
+ }
196
+ const missing = []
197
+ for (const field of BOOST_CARD_FIELDS) {
198
+ if (card[field] === undefined || card[field] === null || card[field] === '') missing.push(field)
199
+ }
200
+ if (!DATE_RE.test(String(card.generatedAt ?? ''))) missing.push('generatedAt(date)')
201
+ if (!DATE_RE.test(String(card.expiresAt ?? ''))) missing.push('expiresAt(date)')
202
+ if (!HASH_RE.test(String(card.recordHash ?? ''))) missing.push('recordHash(sha256)')
203
+ if (!BOOST_CLAIM_LEVELS.has(String(card.claimLevel ?? ''))) missing.push('claimLevel')
204
+ if (typeof card.selfAssessed !== 'boolean') missing.push('selfAssessed(boolean)')
205
+ if (missing.length > 0) {
206
+ return { valid: false, missing, reason: `evidence card missing/invalid: ${missing.join(', ')}` }
207
+ }
208
+ const generated = Date.parse(`${card.generatedAt}T00:00:00Z`)
209
+ const expires = Date.parse(`${card.expiresAt}T00:00:00Z`)
210
+ if (!Number.isFinite(generated) || !Number.isFinite(expires) || expires < generated) {
211
+ return { valid: false, missing: ['validity'], reason: 'evidence card has invalid generatedAt/expiresAt' }
212
+ }
213
+ return { valid: true, missing: [], reason: null }
214
+ }
215
+
216
+ function classifyBoost(evidence) {
217
+ const ids = ['LEV-1', 'LEV-2', 'LEV-3', 'LEV-4', 'LEV-5', 'LEV-6', 'LEV-7', 'LEV-8']
218
+ if (!evidence) {
219
+ return {
220
+ state: 'not-measured',
221
+ reason: 'no --boost-evidence file; benchmarks/evidence cards are not run by this tool',
222
+ practices: Object.fromEntries(ids.map(id => [id, { status: 'not-measured' }])),
223
+ }
224
+ }
225
+ const practices = {}
226
+ for (const id of ids) {
227
+ const row = evidence[id] ?? evidence[id.toLowerCase()]
228
+ const declared = row?.status
229
+ const card = row?.evidenceCard ?? (row?.evidence && typeof row.evidence === 'object' ? row.evidence : null)
230
+ const cardCheck = validateEvidenceCard(card)
231
+ let status = 'not-measured'
232
+ if (declared === 'failed') status = 'failed'
233
+ else if (declared === 'measured' && cardCheck.valid) status = 'measured'
234
+ practices[id] = {
235
+ status,
236
+ declared: ['measured', 'not-measured', 'failed'].includes(declared) ? declared : 'not-measured',
237
+ evidence: typeof row?.evidence === 'string' ? row.evidence : null,
238
+ evidenceCard: card,
239
+ card: cardCheck,
240
+ }
241
+ }
242
+ const failed = ids.filter(id => practices[id].status === 'failed')
243
+ const measured = ids.filter(id => practices[id].status === 'measured')
244
+ const today = new Date().toISOString().slice(0, 10)
245
+ const stale = measured.filter(id => String(practices[id].evidenceCard.expiresAt) < today)
246
+ const invalid = ids.filter(id => practices[id].declared === 'measured' && !practices[id].card.valid)
247
+ let state = 'not-measured'
248
+ if (failed.length > 0) state = 'failed'
249
+ else if (stale.length > 0) state = 'stale'
250
+ else if (measured.length === ids.length) state = 'measured'
251
+ const reasons = []
252
+ if (failed.length > 0) reasons.push(`failed practices: ${failed.join(', ')}`)
253
+ if (stale.length > 0) reasons.push(`stale evidence cards: ${stale.join(', ')}`)
254
+ if (invalid.length > 0) reasons.push(`measured without a valid evidence card: ${invalid.join(', ')}`)
255
+ if (failed.length === 0 && stale.length === 0 && measured.length !== ids.length) {
256
+ reasons.push(`${measured.length}/8 practices have valid measured evidence cards`)
257
+ }
258
+ return {
259
+ state,
260
+ reason: reasons.join('; '),
261
+ practices,
262
+ validCards: measured.length,
263
+ invalidCards: invalid.length,
264
+ }
265
+ }
266
+
267
+ function nextActions(entry, flow, boost) {
268
+ const actions = []
269
+ for (const failure of entry.failed) actions.push(`ENTRY: fix ${failure.id} — ${failure.reason}`)
270
+ if (entry.g4 && entry.g4.hasClient && entry.g4.ok === false) actions.push(`ENTRY: fix G4 — ${entry.g4.reason}`)
271
+ for (const warning of entry.warnings) actions.push(`ENTRY: consider ${warning.id} — ${warning.reason}`)
272
+ if (entry.state === 'recognized') actions.push('ENTRY: run with --host to replace static recognition with a real G0-G3 boot')
273
+ if (flow.state === 'not-run') actions.push('FLOW: record J1-J8 in a flow-evidence JSON; do not claim FLOW until they run')
274
+ if (boost.state === 'not-measured') actions.push('BOOST: attach LEV evidence cards (subject/host/method/scope/command/result/negativeControl/generatedAt/expiresAt/recordHash/claimLevel/issuer/selfAssessed); a status alone is not measured')
275
+ if (boost.state === 'stale') actions.push('BOOST: refresh stale evidence cards before claiming measured')
276
+ return actions
277
+ }
278
+
279
+ function render(result) {
280
+ const lines = [
281
+ `DSH level audit — ${result.target.dir}`,
282
+ ` ENTRY : ${result.levels.entry.state.padEnd(12)} (${result.levels.entry.checkerLevel ?? 'no level'})`,
283
+ ` FLOW : ${result.levels.flow.state.padEnd(12)} ${result.levels.flow.reason}`,
284
+ ` BOOST : ${result.levels.boost.state.padEnd(12)} ${result.levels.boost.reason}`,
285
+ ]
286
+ if (result.nextActions.length > 0) {
287
+ lines.push('Next:')
288
+ for (const action of result.nextActions) lines.push(` - ${action}`)
289
+ }
290
+ lines.push('Claims: not official, not a certification, not a security audit; static is not runtime.')
291
+ return lines.join('\n')
292
+ }
293
+
294
+ function main() {
295
+ const options = parseArgs(process.argv.slice(2))
296
+ const levels = JSON.parse(fs.readFileSync(LEVELS_PATH, 'utf8'))
297
+ const flowEvidence = options.flowEvidence ? readJson(options.flowEvidence, '--flow-evidence') : null
298
+ const boostEvidence = options.boostEvidence ? readJson(options.boostEvidence, '--boost-evidence') : null
299
+
300
+ const checker = runChecker(options)
301
+ const entry = classifyEntry(checker.report, checker.invoked)
302
+ const flow = classifyFlow(flowEvidence)
303
+ const boost = classifyBoost(boostEvidence)
304
+
305
+ const result = {
306
+ schema: 'dsh-level-audit/1',
307
+ generatedAt: new Date().toISOString(),
308
+ target: { dir: options.dir },
309
+ levelsSpec: { schema: levels.schema, version: levels.version, status: levels.status },
310
+ levels: { entry, flow, boost },
311
+ nextActions: nextActions(entry, flow, boost),
312
+ notClaimed: ['official standard', 'certification', 'security audit', 'ranking', 'production baseline'],
313
+ checker: {
314
+ invoked: checker.invoked,
315
+ exit: checker.exit,
316
+ schema: checker.report.schema,
317
+ anchor: checker.report.anchor,
318
+ coverage: checker.report.coverage,
319
+ },
320
+ }
321
+
322
+ const output = options.format === 'json' ? JSON.stringify(result, null, 2) : render(result)
323
+ if (options.out) {
324
+ fs.mkdirSync(path.dirname(path.resolve(options.out)), { recursive: true })
325
+ fs.writeFileSync(options.out, `${output}\n`)
326
+ }
327
+ process.stdout.write(`${output}\n`)
328
+ process.exit(entry.state === 'failed' ? 2 : entry.state === 'not-run' ? 3 : 0)
329
+ }
330
+
331
+ try {
332
+ main()
333
+ } catch (error) {
334
+ console.error(`level-audit: ${error.message}`)
335
+ process.exit(3)
336
+ }
@@ -0,0 +1,126 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Generate a levels.json sidecar for a format-1 market index.
4
+ *
5
+ * Tier A (index-only): every entry gets index-field validation
6
+ * (exact SemVer, npm/git source pinned, engines.dsh presence).
7
+ * No package is downloaded or executed; level is null.
8
+ * Tier B (static-only): optional pilot JSON files from
9
+ * `dsh-plugin-verify --static-only` are merged in by name@version.
10
+ *
11
+ * Usage:
12
+ * node scripts/m1-sidecar.mjs \
13
+ * --index /tmp/dsh-catalog/index.json \
14
+ * --pilot results/m1 \
15
+ * --out results/m1/levels.json
16
+ */
17
+ import fs from 'node:fs'
18
+ import path from 'node:path'
19
+
20
+ const EXACT = /^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/
21
+ const COMMIT = /^[0-9a-f]{40}$/
22
+
23
+ function parseArgs(argv) {
24
+ const options = { index: null, out: null, pilot: null, indexUrl: 'https://awesome-dsh-plugin.com/index.json' }
25
+ for (let i = 0; i < argv.length; i += 1) {
26
+ const arg = argv[i]
27
+ if (arg === '--index') options.index = argv[++i]
28
+ else if (arg === '--out') options.out = argv[++i]
29
+ else if (arg === '--pilot') options.pilot = argv[++i]
30
+ else if (arg === '--index-url') options.indexUrl = argv[++i]
31
+ else if (arg === '--help' || arg === '-h') { console.log('usage: node scripts/m1-sidecar.mjs --index <format-1.json> [--pilot <dir>] --out <levels.json>'); process.exit(0) }
32
+ else throw new Error(`unknown option: ${arg}`)
33
+ }
34
+ if (!options.index) throw new Error('--index is required')
35
+ if (!options.out) throw new Error('--out is required')
36
+ return options
37
+ }
38
+
39
+ function readPilots(directory) {
40
+ const map = new Map()
41
+ if (!directory || !fs.existsSync(directory)) return map
42
+ for (const entry of fs.readdirSync(directory)) {
43
+ if (!entry.endsWith('.json')) continue
44
+ const file = path.join(directory, entry)
45
+ let report
46
+ try { report = JSON.parse(fs.readFileSync(file, 'utf8')) } catch { continue }
47
+ if (report?.schema !== 'dsh-conformance/1' || !report.subject?.name || !report.subject?.version) continue
48
+ map.set(`${report.subject.name}@${report.subject.version}`, { file, report })
49
+ }
50
+ return map
51
+ }
52
+
53
+ function pilotLevel(report, file) {
54
+ const status = { pass: 'static-only', warn: 'static-only-warn', fail: 'failed', incomplete: 'inconclusive' }[report.conclusion?.status] ?? 'inconclusive'
55
+ return {
56
+ standard: 'DS-C',
57
+ standardVersion: report.standard?.version ?? '1.0.0',
58
+ profile: 'listing',
59
+ status,
60
+ coverage: report.coverage,
61
+ anchor: report.anchor,
62
+ checkedAt: new Date().toISOString().slice(0, 10),
63
+ expiresAt: new Date(Date.now() + 90 * 86400_000).toISOString().slice(0, 10),
64
+ evidenceUrl: `file://${path.resolve(file)}`,
65
+ }
66
+ }
67
+
68
+ function main() {
69
+ const options = parseArgs(process.argv.slice(2))
70
+ const index = JSON.parse(fs.readFileSync(options.index, 'utf8'))
71
+ if (index.format !== 1 || !Array.isArray(index.plugins)) throw new Error('not a format-1 index')
72
+ const pilots = readPilots(options.pilot)
73
+ const levels = {}
74
+ const summary = { total: 0, indexOnly: 0, staticOnly: 0, staticOnlyWarn: 0, failed: 0, inconclusive: 0, withEnginesDsh: 0, npm: 0, git: 0 }
75
+ for (const plugin of [...index.plugins].sort((a, b) => String(a.name).localeCompare(String(b.name)))) {
76
+ const versions = Array.isArray(plugin.versions) ? [...plugin.versions].sort((a, b) => String(a.version).localeCompare(String(b.version))) : []
77
+ for (const version of versions) {
78
+ summary.total += 1
79
+ const source = version.source ?? {}
80
+ const sourcePinned = source.type === 'npm' || (source.type === 'git' && COMMIT.test(source.commit ?? ''))
81
+ const enginesDsh = typeof version.engines?.dsh === 'string' && version.engines.dsh !== ''
82
+ if (enginesDsh) summary.withEnginesDsh += 1
83
+ if (source.type === 'npm') summary.npm += 1
84
+ if (source.type === 'git') summary.git += 1
85
+ const key = `${plugin.name}@${version.version}`
86
+ const pilot = pilots.get(key)
87
+ const base = {
88
+ plugin: plugin.name,
89
+ version: version.version,
90
+ status: 'index-only',
91
+ index: {
92
+ versionExact: EXACT.test(version.version ?? ''),
93
+ sourceType: source.type ?? null,
94
+ sourcePinned,
95
+ enginesDsh,
96
+ hasUpstream: plugin.upstream !== undefined,
97
+ },
98
+ reason: 'package tarball not fetched; only index fields were checked',
99
+ anchor: { indexUrl: options.indexUrl, parser: 'm1-sidecar/1', checkedAt: new Date().toISOString().slice(0, 10) },
100
+ }
101
+ if (pilot) {
102
+ const level = pilotLevel(pilot.report, pilot.file)
103
+ levels[key] = { ...base, status: level.status, reason: '', level }
104
+ if (level.status === 'static-only-warn') summary.staticOnlyWarn += 1
105
+ else if (level.status === 'failed') summary.failed += 1
106
+ else if (level.status === 'inconclusive') summary.inconclusive += 1
107
+ else summary.staticOnly += 1
108
+ } else {
109
+ levels[key] = base
110
+ summary.indexOnly += 1
111
+ }
112
+ }
113
+ }
114
+ const output = {
115
+ schema: 'dsh-levels/1',
116
+ indexUrl: options.indexUrl,
117
+ generatedAt: new Date().toISOString(),
118
+ summary,
119
+ levels,
120
+ }
121
+ fs.mkdirSync(path.dirname(path.resolve(options.out)), { recursive: true })
122
+ fs.writeFileSync(options.out, JSON.stringify(output, null, 2))
123
+ console.log(JSON.stringify({ out: path.resolve(options.out), summary }, null, 2))
124
+ }
125
+
126
+ try { main() } catch (error) { console.error(`m1-sidecar: ${error.message}`); process.exitCode = 3 }
@@ -0,0 +1,213 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * M2 runner (MVP): execute one package's L1-L3 in an isolated child process.
4
+ *
5
+ * This is NOT a security sandbox. It isolates the checker from the developer's
6
+ * real DSH_HOME/profile and kills the process tree on timeout; it does not
7
+ * restrict the child's filesystem or network. The standard's M2 contract
8
+ * (50 §5) still needs a container/image for untrusted packages.
9
+ *
10
+ * Usage:
11
+ * node scripts/m2-runner.mjs \
12
+ * --package /tmp/dsh-host/plugins/ci-diet \
13
+ * --runtime <dsh-checkout>/vendor/cordis/lib/index.js \
14
+ * --runtime-version 0.2.2-alpha.2 \
15
+ * --out results/m2/ci-diet.json
16
+ */
17
+ import fs from 'node:fs'
18
+ import os from 'node:os'
19
+ import path from 'node:path'
20
+ import { spawn, spawnSync } from 'node:child_process'
21
+
22
+ function parse(argv) {
23
+ const options = {
24
+ package: null, runtime: null, runtimeVersion: '0.2.2-alpha.2', cordisVersion: '4.0.6-alpha.1',
25
+ timeoutMs: 60_000, out: null, keep: false, json: false, modules: null, backend: 'process', image: null,
26
+ }
27
+ for (let i = 0; i < argv.length; i += 1) {
28
+ const arg = argv[i]
29
+ if (arg === '--package') options.package = argv[++i]
30
+ else if (arg === '--runtime') options.runtime = argv[++i]
31
+ else if (arg === '--runtime-version') options.runtimeVersion = argv[++i]
32
+ else if (arg === '--cordis-version') options.cordisVersion = argv[++i]
33
+ else if (arg === '--timeout') options.timeoutMs = Number(argv[++i])
34
+ else if (arg === '--out') options.out = argv[++i]
35
+ else if (arg === '--keep') options.keep = true
36
+ else if (arg === '--modules') options.modules = argv[++i]
37
+ else if (arg === '--backend') options.backend = argv[++i]
38
+ else if (arg === '--image') options.image = argv[++i]
39
+ else if (arg === '--json') options.json = true
40
+ else if (arg === '--help' || arg === '-h') { console.log('usage: node scripts/m2-runner.mjs --package <dir> --runtime <cordis-lib> [--backend process|unshare|landlock|unshare-landlock] [--image ref@sha256:<64hex>] [--out level.json]'); process.exit(0) }
41
+ else throw new Error(`unknown option: ${arg}`)
42
+ }
43
+ if (!options.package) throw new Error('--package is required')
44
+ if (!options.runtime) throw new Error('--runtime is required')
45
+ if (!Number.isFinite(options.timeoutMs) || options.timeoutMs < 1000) throw new Error('--timeout must be >= 1000 ms')
46
+ if (!['process', 'unshare', 'landlock', 'unshare-landlock'].includes(options.backend)) throw new Error('--backend must be process, unshare, landlock, or unshare-landlock')
47
+ if (options.image && !/^[^@\s]+@sha256:[0-9a-f]{64}$/.test(options.image)) throw new Error('--image must be ref@sha256:<64 hex>')
48
+ return options
49
+ }
50
+
51
+ function killTree(child, signal = 'SIGKILL') {
52
+ if (!child.pid) return
53
+ if (process.platform === 'win32') {
54
+ spawnSync('taskkill', ['/pid', String(child.pid), '/T', '/F'], { stdio: 'ignore' })
55
+ return
56
+ }
57
+ try { process.kill(-child.pid, signal) } catch { try { child.kill(signal) } catch { /* gone */ } }
58
+ }
59
+
60
+ function runChecker(command, args, cwd, env, timeoutMs) {
61
+ return new Promise((resolve) => {
62
+ const child = spawn(command, args, { cwd, env, detached: process.platform !== 'win32', stdio: ['ignore', 'pipe', 'pipe'] })
63
+ let stdout = ''
64
+ let stderr = ''
65
+ let killed = false
66
+ const timer = setTimeout(() => { killed = true; killTree(child) }, timeoutMs)
67
+ child.stdout.on('data', chunk => { stdout += chunk })
68
+ child.stderr.on('data', chunk => { stderr += chunk })
69
+ child.on('error', error => { clearTimeout(timer); resolve({ code: null, stdout, stderr: `${stderr}${error.message}`, killed }) })
70
+ child.on('close', code => { clearTimeout(timer); resolve({ code, stdout, stderr, killed }) })
71
+ })
72
+ }
73
+
74
+ function linkModules(pkg, modules) {
75
+ if (!modules) return 0
76
+ const source = path.resolve(modules)
77
+ if (!fs.existsSync(source)) throw new Error(`--modules not found: ${source}`)
78
+ const target = path.join(pkg, 'node_modules')
79
+ fs.mkdirSync(target, { recursive: true })
80
+ let linked = 0
81
+ for (const entry of fs.readdirSync(source, { withFileTypes: true })) {
82
+ const from = path.join(source, entry.name)
83
+ const to = path.join(target, entry.name)
84
+ if (entry.isDirectory() && entry.name.startsWith('@')) {
85
+ fs.mkdirSync(to, { recursive: true })
86
+ for (const child of fs.readdirSync(from, { withFileTypes: true })) {
87
+ const dest = path.join(to, child.name)
88
+ if (fs.existsSync(dest)) continue
89
+ try { fs.symlinkSync(path.join(from, child.name), dest, process.platform === 'win32' ? 'junction' : 'dir'); linked += 1 } catch { /* skip */ }
90
+ }
91
+ } else if (!fs.existsSync(to)) {
92
+ try { fs.symlinkSync(from, to, process.platform === 'win32' ? 'junction' : 'dir'); linked += 1 } catch { /* skip */ }
93
+ }
94
+ }
95
+ return linked
96
+ }
97
+
98
+ function ensureLandlock() {
99
+ const source = path.resolve(path.dirname(new URL(import.meta.url).pathname), 'landlock-exec.c')
100
+ const binary = path.join(os.tmpdir(), 'dsh-landlock-exec')
101
+ try {
102
+ const sourceStat = fs.statSync(source)
103
+ const binaryStat = fs.statSync(binary, { throwIfNoEntry: false })
104
+ if (binaryStat && binaryStat.mtimeMs >= sourceStat.mtimeMs) return binary
105
+ } catch { /* compile below */ }
106
+ const result = spawnSync('cc', ['-O2', source, '-o', binary], { stdio: 'inherit' })
107
+ if (result.error || result.status !== 0) throw new Error('cannot build landlock-exec (need a C compiler)')
108
+ return binary
109
+ }
110
+
111
+ function mapStatus(report) {
112
+ const status = report?.conclusion?.status
113
+ if (status === 'pass') return 'verified'
114
+ if (status === 'warn') return 'verified-warn'
115
+ if (status === 'fail') return 'failed'
116
+ return 'inconclusive'
117
+ }
118
+
119
+ async function main() {
120
+ const options = parse(process.argv.slice(2))
121
+ const root = fs.mkdtempSync(path.join(os.tmpdir(), 'dsh-m2-'))
122
+ const home = path.join(root, 'home')
123
+ const work = path.join(root, 'work')
124
+ const pkg = path.join(root, 'package')
125
+ fs.mkdirSync(home, { recursive: true })
126
+ fs.mkdirSync(work, { recursive: true })
127
+ fs.cpSync(path.resolve(options.package), pkg, { recursive: true, dereference: false, filter: source => !source.includes(`${path.sep}.git${path.sep}`) })
128
+ const linkedModules = linkModules(pkg, options.modules)
129
+ const reportPath = path.join(work, 'report.json')
130
+ const cli = path.resolve(path.dirname(new URL(import.meta.url).pathname), '..', 'bin', 'dsh-plugin-verify.mjs')
131
+ const args = [cli, pkg, '--format', 'json', '--treat-as-plugin', '--runtime', path.resolve(options.runtime), '--runtime-version', options.runtimeVersion, '--cordis-version', options.cordisVersion, '--out', reportPath]
132
+ const env = {
133
+ ...process.env,
134
+ DSH_HOME: home,
135
+ HOME: home,
136
+ USERPROFILE: home,
137
+ TMPDIR: path.join(root, 'tmp'),
138
+ TEMP: path.join(root, 'tmp'),
139
+ TMP: path.join(root, 'tmp'),
140
+ }
141
+ fs.mkdirSync(env.TMPDIR, { recursive: true })
142
+ const started = Date.now()
143
+ const needsLandlock = options.backend === 'landlock' || options.backend === 'unshare-landlock'
144
+ const needsUnshare = options.backend === 'unshare' || options.backend === 'unshare-landlock'
145
+ const landlock = needsLandlock ? ensureLandlock() : null
146
+ const command = needsUnshare ? 'unshare' : needsLandlock ? landlock : process.execPath
147
+ const commandArgs = []
148
+ if (needsUnshare) {
149
+ commandArgs.push('-Urn', '--fork', '--pid', '--mount-proc')
150
+ if (needsLandlock) commandArgs.push(landlock)
151
+ }
152
+ if (needsLandlock) commandArgs.push('--rw', home, '--rw', work, '--rw', env.TMPDIR, '--')
153
+ commandArgs.push(process.execPath, ...args)
154
+ const result = await runChecker(command, commandArgs, work, env, options.timeoutMs)
155
+ const elapsedMs = Date.now() - started
156
+ let report = null
157
+ try { report = JSON.parse(fs.readFileSync(reportPath, 'utf8')) } catch { /* report missing */ }
158
+ const imageUnverified = Boolean(options.image)
159
+ const status = result.killed || imageUnverified ? 'inconclusive' : mapStatus(report)
160
+ const level = {
161
+ schema: 'dsh-m2-level/1',
162
+ status,
163
+ standard: report?.standard ?? { id: 'DS-C', version: '1.0.0' },
164
+ subject: report?.subject ?? { name: null, version: null, path: path.resolve(options.package) },
165
+ anchor: report?.anchor ?? null,
166
+ coverage: report?.coverage ?? null,
167
+ conclusion: report?.conclusion ?? null,
168
+ m1: { coverage: report?.coverage ?? null, conclusion: report?.conclusion ?? null },
169
+ reason: imageUnverified ? 'image metadata is unverified; M2 cannot assert verified' : undefined,
170
+ sandbox: {
171
+ runner: 'm2-runner/1',
172
+ node: process.version,
173
+ timeoutMs: options.timeoutMs,
174
+ elapsedMs,
175
+ killed: result.killed,
176
+ exitCode: result.code,
177
+ isolatedHome: true,
178
+ backend: options.backend,
179
+ networkNamespace: needsUnshare,
180
+ fsWriteRestricted: needsLandlock,
181
+ securityBoundary: false,
182
+ containment: options.backend === 'unshare-landlock'
183
+ ? 'landlock-fs+network-namespace+process'
184
+ : options.backend === 'landlock'
185
+ ? 'landlock-fs+process'
186
+ : options.backend === 'unshare'
187
+ ? 'network-namespace+process'
188
+ : 'none',
189
+ linkedModules,
190
+ image: options.image ? { reference: options.image.split('@')[0], digest: `sha256:${options.image.split('@sha256:')[1]}`, verified: false, assertion: 'unverified-metadata', reason: 'OCI/Docker backend not enabled; metadata only; cannot yield verified' } : null,
191
+ note: needsLandlock
192
+ ? 'Landlock restricts writes to HOME/TMP/cwd; read is allowed everywhere. Network isolation only with unshare-landlock.'
193
+ : needsUnshare
194
+ ? 'user+network namespace + process isolation; no filesystem write restriction'
195
+ : 'process isolation only; no filesystem/network restriction',
196
+ },
197
+ checks: report?.checks ?? [],
198
+ stderr: result.stderr.slice(0, 4000),
199
+ ranAt: new Date().toISOString(),
200
+ }
201
+ if (!options.keep) fs.rmSync(root, { recursive: true, force: true })
202
+ const output = JSON.stringify(level, null, 2)
203
+ if (options.out) {
204
+ const out = path.resolve(options.out)
205
+ fs.mkdirSync(path.dirname(out), { recursive: true })
206
+ fs.writeFileSync(out, output)
207
+ }
208
+ if (options.json || !options.out) process.stdout.write(`${output}\n`)
209
+ const exit = status === 'verified' || status === 'verified-warn' ? 0 : status === 'failed' ? 1 : 2
210
+ process.exitCode = exit
211
+ }
212
+
213
+ main().catch(error => { console.error(`m2-runner: ${error.message}`); process.exitCode = 3 })