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.
- package/40-checker/.github/workflows/plugin-verify.yml +70 -0
- package/40-checker/README.md +251 -0
- package/40-checker/bin/dsh-levels.mjs +15 -0
- package/40-checker/bin/dsh-plugin-verify.mjs +8 -0
- package/40-checker/fixtures/bad/index.mjs +12 -0
- package/40-checker/fixtures/bad/package.json +15 -0
- package/40-checker/fixtures/bad-manifest/index.js +1 -0
- package/40-checker/fixtures/bad-manifest/package.json +5 -0
- package/40-checker/fixtures/bundle/cordis.patch.yml +3 -0
- package/40-checker/fixtures/bundle/package.json +15 -0
- package/40-checker/fixtures/bundle/server.mjs +7 -0
- package/40-checker/fixtures/bundle-v0/cordis.patch.yml +3 -0
- package/40-checker/fixtures/bundle-v0/package.json +21 -0
- package/40-checker/fixtures/bundle-v0/server.mjs +7 -0
- package/40-checker/fixtures/client-missing/client.js +1 -0
- package/40-checker/fixtures/client-missing/index.js +1 -0
- package/40-checker/fixtures/client-missing/package.json +6 -0
- package/40-checker/fixtures/flow-config/index.js +9 -0
- package/40-checker/fixtures/flow-config/package.json +10 -0
- package/40-checker/fixtures/fs-write/index.mjs +7 -0
- package/40-checker/fixtures/fs-write/package.json +10 -0
- package/40-checker/fixtures/good/index.mjs +10 -0
- package/40-checker/fixtures/good/package.json +19 -0
- package/40-checker/fixtures/hang/index.mjs +5 -0
- package/40-checker/fixtures/hang/package.json +10 -0
- package/40-checker/fixtures/known-answer/expected.json +18 -0
- package/40-checker/fixtures/market-index-real.json +18 -0
- package/40-checker/fixtures/market-index.json +18 -0
- package/40-checker/fixtures/negative/bad-entry/package.json +1 -0
- package/40-checker/fixtures/negative/no-entry/package.json +1 -0
- package/40-checker/fixtures/negative/no-patch/package.json +1 -0
- package/40-checker/fixtures/negative/root-missing/cordis.patch.yml +2 -0
- package/40-checker/fixtures/negative/root-missing/package.json +1 -0
- package/40-checker/fixtures/negative/workspace/package.json +1 -0
- package/40-checker/package.json +22 -0
- package/40-checker/results/boost/REPORT.md +304 -0
- package/40-checker/results/boost/lev12458.json +1747 -0
- package/40-checker/results/client/README.md +16 -0
- package/40-checker/results/entry/18/DDDMUC__dsh-free-search.json +381 -0
- package/40-checker/results/entry/18/DDDMUC__dsh-free-search.runtime.json +34 -0
- package/40-checker/results/entry/18/Ebony-Vinyl__dsh-our-free-model.json +361 -0
- package/40-checker/results/entry/18/Ebony-Vinyl__dsh-our-free-model.runtime.json +34 -0
- package/40-checker/results/entry/18/README.md +24 -0
- package/40-checker/results/entry/18/RUNTIME.md +18 -0
- package/40-checker/results/entry/18/SeaOf0__dsh-redteam-model.json +391 -0
- package/40-checker/results/entry/18/YuJunZhiXue__dsh-purge.json +432 -0
- package/40-checker/results/entry/18/ci-diet.json +365 -0
- package/40-checker/results/entry/18/ci-diet.runtime-attempt.json +38 -0
- package/40-checker/results/entry/18/daily-log.json +357 -0
- package/40-checker/results/entry/18/daily-log.runtime.json +519 -0
- package/40-checker/results/entry/18/fullbase/ATTRIBUTION.md +29 -0
- package/40-checker/results/entry/18/fullbase/DDDMUC__dsh-free-search.json +99 -0
- package/40-checker/results/entry/18/fullbase/Ebony-Vinyl__dsh-our-free-model.json +95 -0
- package/40-checker/results/entry/18/fullbase/REPORT.md +261 -0
- package/40-checker/results/entry/18/fullbase/SeaOf0__dsh-redteam-model.json +144 -0
- package/40-checker/results/entry/18/fullbase/YuJunZhiXue__dsh-purge.json +106 -0
- package/40-checker/results/entry/18/fullbase/ci-diet.json +99 -0
- package/40-checker/results/entry/18/fullbase/daily-log.json +94 -0
- package/40-checker/results/entry/18/fullbase/howmp__dsh-pentest.json +104 -0
- package/40-checker/results/entry/18/fullbase/kingcharleslzy-ai__dsh-purge.json +143 -0
- package/40-checker/results/entry/18/fullbase/liguobao__ds-harness-remote.json +134 -0
- package/40-checker/results/entry/18/fullbase/mmparko__dsh-purge.json +138 -0
- package/40-checker/results/entry/18/fullbase/project-memory.json +108 -0
- package/40-checker/results/entry/18/fullbase/qiushi.json +94 -0
- package/40-checker/results/entry/18/fullbase/shaobeichen__dsh-pocket.json +94 -0
- package/40-checker/results/entry/18/fullbase/status-rotator.json +94 -0
- package/40-checker/results/entry/18/fullbase/summary.json +297 -0
- package/40-checker/results/entry/18/fullbase/telemetry.json +94 -0
- package/40-checker/results/entry/18/fullbase/ui-auth.json +94 -0
- package/40-checker/results/entry/18/fullbase/verification.json +94 -0
- package/40-checker/results/entry/18/fullbase/ysr666__dsh-vision-router.json +106 -0
- package/40-checker/results/entry/18/howmp__dsh-pentest.json +361 -0
- package/40-checker/results/entry/18/kingcharleslzy-ai__dsh-purge.json +411 -0
- package/40-checker/results/entry/18/liguobao__ds-harness-remote.json +379 -0
- package/40-checker/results/entry/18/mmparko__dsh-purge.json +441 -0
- package/40-checker/results/entry/18/project-memory.json +361 -0
- package/40-checker/results/entry/18/project-memory.runtime.json +519 -0
- package/40-checker/results/entry/18/qiushi.json +353 -0
- package/40-checker/results/entry/18/qiushi.runtime.json +519 -0
- package/40-checker/results/entry/18/realweb/REPORT.md +73 -0
- package/40-checker/results/entry/18/realweb/SeaOf0__dsh-redteam-model.json +104 -0
- package/40-checker/results/entry/18/realweb/YuJunZhiXue__dsh-purge.json +64 -0
- package/40-checker/results/entry/18/realweb/howmp__dsh-pentest.json +65 -0
- package/40-checker/results/entry/18/realweb/kingcharleslzy-ai__dsh-purge.json +75 -0
- package/40-checker/results/entry/18/realweb/mmparko__dsh-purge.json +70 -0
- package/40-checker/results/entry/18/realweb/shaobeichen__dsh-pocket.json +56 -0
- package/40-checker/results/entry/18/realweb/summary.json +196 -0
- package/40-checker/results/entry/18/realweb/ui-auth.json +56 -0
- package/40-checker/results/entry/18/realweb/ysr666__dsh-vision-router.json +61 -0
- package/40-checker/results/entry/18/richbase/REPORT.md +70 -0
- package/40-checker/results/entry/18/richbase/SeaOf0__dsh-redteam-model.json +61 -0
- package/40-checker/results/entry/18/richbase/SeaOf0__dsh-redteam-model.log +38 -0
- package/40-checker/results/entry/18/shaobeichen__dsh-pocket.json +363 -0
- package/40-checker/results/entry/18/status-rotator.json +362 -0
- package/40-checker/results/entry/18/status-rotator.runtime.json +519 -0
- package/40-checker/results/entry/18/summary.json +266 -0
- package/40-checker/results/entry/18/targetonly/DDDMUC__dsh-free-search.json +34 -0
- package/40-checker/results/entry/18/targetonly/Ebony-Vinyl__dsh-our-free-model.json +34 -0
- package/40-checker/results/entry/18/targetonly/SeaOf0__dsh-redteam-model.json +84 -0
- package/40-checker/results/entry/18/targetonly/YuJunZhiXue__dsh-purge.json +52 -0
- package/40-checker/results/entry/18/targetonly/ci-diet.json +34 -0
- package/40-checker/results/entry/18/targetonly/daily-log.json +34 -0
- package/40-checker/results/entry/18/targetonly/howmp__dsh-pentest.json +46 -0
- package/40-checker/results/entry/18/targetonly/kingcharleslzy-ai__dsh-purge.json +61 -0
- package/40-checker/results/entry/18/targetonly/liguobao__ds-harness-remote.json +39 -0
- package/40-checker/results/entry/18/targetonly/mmparko__dsh-purge.json +57 -0
- package/40-checker/results/entry/18/targetonly/project-memory.json +34 -0
- package/40-checker/results/entry/18/targetonly/qiushi.json +34 -0
- package/40-checker/results/entry/18/targetonly/shaobeichen__dsh-pocket.json +34 -0
- package/40-checker/results/entry/18/targetonly/status-rotator.json +34 -0
- package/40-checker/results/entry/18/targetonly/summary.json +133 -0
- package/40-checker/results/entry/18/targetonly/telemetry.json +34 -0
- package/40-checker/results/entry/18/targetonly/ui-auth.json +34 -0
- package/40-checker/results/entry/18/targetonly/verification.json +34 -0
- package/40-checker/results/entry/18/targetonly/ysr666__dsh-vision-router.json +43 -0
- package/40-checker/results/entry/18/telemetry.json +349 -0
- package/40-checker/results/entry/18/ui-auth.json +369 -0
- package/40-checker/results/entry/18/verification.json +358 -0
- package/40-checker/results/entry/18/ysr666__dsh-vision-router.json +409 -0
- package/40-checker/results/fixtures/bad.json +347 -0
- package/40-checker/results/fixtures/bundle.json +378 -0
- package/40-checker/results/fixtures/good-listing.json +382 -0
- package/40-checker/results/fixtures/good-static.json +322 -0
- package/40-checker/results/fixtures/good.json +375 -0
- package/40-checker/results/fixtures/good.sarif +274 -0
- package/40-checker/results/flow/README.md +19 -0
- package/40-checker/results/flow/j3-j7-fixture.json +51 -0
- package/40-checker/results/flow/j5-j8-client-missing.json +45 -0
- package/40-checker/results/flow/j5-j8-good.json +45 -0
- package/40-checker/results/flow/journey-fixture-bundle.json +90 -0
- package/40-checker/results/flow/journey-fixture-j1-j2-j4-j6.json +107 -0
- package/40-checker/results/flow/real/DDDMUC__dsh-free-search.json +297 -0
- package/40-checker/results/flow/real/REPORT.md +335 -0
- package/40-checker/results/flow/real/YuJunZhiXue__dsh-purge.json +317 -0
- package/40-checker/results/flow/real/ci-diet.json +351 -0
- package/40-checker/results/flow/real/daily-log.json +286 -0
- package/40-checker/results/flow/real/index.json +325 -0
- package/40-checker/results/flow/real/project-memory.json +290 -0
- package/40-checker/results/flow/real/qiushi.json +277 -0
- package/40-checker/results/flow/real/status-rotator.json +275 -0
- package/40-checker/results/flow/real/telemetry.json +178 -0
- package/40-checker/results/flow/real/ui-auth.json +288 -0
- package/40-checker/results/flow/real/verification.json +265 -0
- package/40-checker/results/governance/co-maintainer-packet.md +85 -0
- package/40-checker/results/l1/ci-diet.json +406 -0
- package/40-checker/results/l1/npm-dsh-telemetry-redactor-0.1.0.json +390 -0
- package/40-checker/results/l1/npm-dsh-verification-receipt-0.1.0.json +406 -0
- package/40-checker/results/l1/npm-qiushi-dsh-evidence-audit-0.1.0.json +394 -0
- package/40-checker/results/l1/npm-zzerx-dsh-plugin-daily-log-0.4.3.json +405 -0
- package/40-checker/results/l1/project-memory.json +402 -0
- package/40-checker/results/l1/source-DDDMUC__dsh-free-search.json +422 -0
- package/40-checker/results/l1/source-Ebony-Vinyl__dsh-our-free-model.json +421 -0
- package/40-checker/results/l1/source-SeaOf0__dsh-redteam-model.json +432 -0
- package/40-checker/results/l1/source-YuJunZhiXue__dsh-purge.json +473 -0
- package/40-checker/results/l1/source-howmp__dsh-pentest.json +402 -0
- package/40-checker/results/l1/source-kingcharleslzy-ai__dsh-purge.json +452 -0
- package/40-checker/results/l1/source-liguobao__ds-harness-remote.json +420 -0
- package/40-checker/results/l1/source-mmparko__dsh-purge.json +482 -0
- package/40-checker/results/l1/source-shaobeichen__dsh-pocket.json +404 -0
- package/40-checker/results/l1/source-ysr666__dsh-vision-router.json +384 -0
- package/40-checker/results/l1/status-rotator.json +403 -0
- package/40-checker/results/l1/ui-auth.json +429 -0
- package/40-checker/results/l1/ysr666__dsh-vision-router.published.json +384 -0
- package/40-checker/results/lev3/REPORT.md +342 -0
- package/40-checker/results/lev3/lev3.json +4835 -0
- package/40-checker/results/lev6/REPORT.md +460 -0
- package/40-checker/results/lev6/capture-sample.json +241 -0
- package/40-checker/results/lev6/capture.jsonl +4 -0
- package/40-checker/results/lev6/lev6.json +245 -0
- package/40-checker/results/lev6/replication-r1.json +245 -0
- package/40-checker/results/levels/README.md +16 -0
- package/40-checker/results/levels/dsh-plugin-doctor.json +141 -0
- package/40-checker/results/levels/dsh-plugin-guide.json +136 -0
- package/40-checker/results/m1/dsh-ci-diet-0.5.2.json +352 -0
- package/40-checker/results/m1/dsh-status-rotator-0.38.0.json +349 -0
- package/40-checker/results/m1/dsh-telemetry-redactor-0.1.0.json +336 -0
- package/40-checker/results/m1/dsh-ui-auth-0.7.1.json +356 -0
- package/40-checker/results/m1/dsh-verification-receipt-0.1.0.json +344 -0
- package/40-checker/results/m1/index-level.json +13 -0
- package/40-checker/results/m1/levels.json +72100 -0
- package/40-checker/results/m1/qiushi-dsh-evidence-audit-0.1.0.json +339 -0
- package/40-checker/results/m1/yolk_vat-y-dsh-project-memory-0.6.7.json +348 -0
- package/40-checker/results/m1/zzerx-dsh-plugin-daily-log-0.4.3.json +344 -0
- package/40-checker/results/m2/dsh-ci-diet.json +421 -0
- package/40-checker/results/m2/dsh-ci-diet.unshare-landlock.json +424 -0
- package/40-checker/results/m2/dsh-ci-diet.unshare.json +423 -0
- package/40-checker/results/m2/fixture-bundle.image.json +404 -0
- package/40-checker/results/m2/fixture-bundle.json +392 -0
- package/40-checker/results/m2/fixture-bundle.landlock.json +396 -0
- package/40-checker/results/m2/fixture-bundle.unshare.json +395 -0
- package/40-checker/results/m2/fs-write.json +338 -0
- package/40-checker/results/m2/hang.json +31 -0
- package/40-checker/results/m2/hang.unshare-landlock.json +34 -0
- package/40-checker/results/m2/hang.unshare.json +33 -0
- package/40-checker/results/m2/project-memory.json +417 -0
- package/40-checker/results/m2/status-rotator.json +418 -0
- package/40-checker/results/m2/ui-auth.json +444 -0
- package/40-checker/results/negative/bad-entry.json +345 -0
- package/40-checker/results/negative/no-entry.json +345 -0
- package/40-checker/results/negative/no-patch.json +344 -0
- package/40-checker/results/negative/root-missing.json +344 -0
- package/40-checker/results/negative/root-missing.runtime.json +30 -0
- package/40-checker/results/negative/summary.json +51 -0
- package/40-checker/results/negative/workspace.json +344 -0
- package/40-checker/results/patched/Ebony-Vinyl__dsh-our-free-model.json +334 -0
- package/40-checker/results/patched/Ebony-Vinyl__dsh-our-free-model.overlay.json +335 -0
- package/40-checker/results/patched/SeaOf0__dsh-redteam-model.json +315 -0
- package/40-checker/results/patched/SeaOf0__dsh-redteam-model.overlay.json +316 -0
- package/40-checker/results/patched/mmparko__dsh-purge.json +357 -0
- package/40-checker/results/patched/mmparko__dsh-purge.overlay.json +358 -0
- package/40-checker/results/patched/shaobeichen__dsh-pocket.json +315 -0
- package/40-checker/results/patched/shaobeichen__dsh-pocket.overlay.json +316 -0
- package/40-checker/results/real/DDDMUC__dsh-free-search.json +344 -0
- package/40-checker/results/real/Ebony-Vinyl__dsh-our-free-model.json +343 -0
- package/40-checker/results/real/SeaOf0__dsh-redteam-model.json +354 -0
- package/40-checker/results/real/YuJunZhiXue__dsh-purge.json +395 -0
- package/40-checker/results/real/howmp__dsh-pentest.json +324 -0
- package/40-checker/results/real/kingcharleslzy-ai__dsh-purge.json +374 -0
- package/40-checker/results/real/liguobao__ds-harness-remote.json +342 -0
- package/40-checker/results/real/mmparko__dsh-purge.json +404 -0
- package/40-checker/results/real/shaobeichen__dsh-pocket.json +326 -0
- package/40-checker/results/real/ysr666__dsh-vision-router.json +372 -0
- package/40-checker/results/real/ysr666__dsh-vision-router.listing.json +378 -0
- package/40-checker/results/round-robin/compare.json +52 -0
- package/40-checker/results/round-robin/runner-a.json +9 -0
- package/40-checker/results/round-robin/runner-b.json +9 -0
- package/40-checker/results/sample20/123dbl__dsh-side-session.json +344 -0
- package/40-checker/results/sample20/173787247__dsh-wsl-dns.json +360 -0
- package/40-checker/results/sample20/863683348__dsh-insight.json +375 -0
- package/40-checker/results/sample20/Ansellwan__DSH-Custom-Wallpaper.json +344 -0
- package/40-checker/results/sample20/Jamailar__beav-deepseek-harness.json +341 -0
- package/40-checker/results/sample20/ManoloRemiddi__DSH-Metafolder-Plugin.json +344 -0
- package/40-checker/results/sample20/NEAZ71eve__dsh-tool-github.json +384 -0
- package/40-checker/results/sample20/README.md +3 -0
- package/40-checker/results/sample20/RINGOLINK__dsh-desktop-shell.json +352 -0
- package/40-checker/results/sample20/Zxznb666__dsh-qoder-cn-subagent.json +349 -0
- package/40-checker/results/sample20/agent-mobile__dsh-mobile-gateway.json +353 -0
- package/40-checker/results/sample20/fangqiing__dsh-knowledge-lite.json +359 -0
- package/40-checker/results/sample20/fzy0517__deepseek-harness-session-cleaner.json +344 -0
- package/40-checker/results/sample20/gjy1992__dsh-diagram.json +350 -0
- package/40-checker/results/sample20/mrme000m__dsh-prime-orchestrator.json +414 -0
- package/40-checker/results/sample20/redstonedust__dsh-solidworks-copilot.json +362 -0
- package/40-checker/results/sample20/summary.json +234 -0
- package/40-checker/results/sample20/w2112515__dsh-remote-host.json +344 -0
- package/40-checker/results/sample20/wkfedor__deepseek-harness-voice-input.json +350 -0
- package/40-checker/results/sample20/xfgil__dsh-hot-reloader.json +344 -0
- package/40-checker/results/sample20/yizhiyizhi0128__dsh-peak-scheduler.json +360 -0
- package/40-checker/results/sample20-ci/123dbl__dsh-side-session.json +344 -0
- package/40-checker/results/sample20-ci/173787247__dsh-wsl-dns.json +360 -0
- package/40-checker/results/sample20-ci/863683348__dsh-insight.json +375 -0
- package/40-checker/results/sample20-ci/Ansellwan__DSH-Custom-Wallpaper.json +344 -0
- package/40-checker/results/sample20-ci/Jamailar__beav-deepseek-harness.json +367 -0
- package/40-checker/results/sample20-ci/ManoloRemiddi__DSH-Metafolder-Plugin.json +344 -0
- package/40-checker/results/sample20-ci/NEAZ71eve__dsh-tool-github.json +392 -0
- package/40-checker/results/sample20-ci/README.md +5 -0
- package/40-checker/results/sample20-ci/RINGOLINK__dsh-desktop-shell.json +361 -0
- package/40-checker/results/sample20-ci/Zxznb666__dsh-qoder-cn-subagent.json +349 -0
- package/40-checker/results/sample20-ci/agent-mobile__dsh-mobile-gateway.json +384 -0
- package/40-checker/results/sample20-ci/fangqiing__dsh-knowledge-lite.json +360 -0
- package/40-checker/results/sample20-ci/fzy0517__deepseek-harness-session-cleaner.json +354 -0
- package/40-checker/results/sample20-ci/gjy1992__dsh-diagram.json +381 -0
- package/40-checker/results/sample20-ci/mrme000m__dsh-prime-orchestrator.json +452 -0
- package/40-checker/results/sample20-ci/redstonedust__dsh-solidworks-copilot.json +371 -0
- package/40-checker/results/sample20-ci/summary.json +195 -0
- package/40-checker/results/sample20-ci/w2112515__dsh-remote-host.json +399 -0
- package/40-checker/results/sample20-ci/wkfedor__deepseek-harness-voice-input.json +358 -0
- package/40-checker/results/sample20-ci/xfgil__dsh-hot-reloader.json +344 -0
- package/40-checker/results/sample20-ci/yizhiyizhi0128__dsh-peak-scheduler.json +370 -0
- package/40-checker/results/sample20-ci/zed1902209846-dotcom__DPwhale-plugin.json +231 -0
- package/40-checker/results/sample60/123dbl__dsh-side-session.json +344 -0
- package/40-checker/results/sample60/173787247__dsh-wsl-dns.json +360 -0
- package/40-checker/results/sample60/863683348__dsh-insight.json +375 -0
- package/40-checker/results/sample60/Anionex__dsh-turn-rewind.json +349 -0
- package/40-checker/results/sample60/Ansellwan__DSH-Custom-Wallpaper.json +344 -0
- package/40-checker/results/sample60/Ebony-Vinyl__EAC-Pack.json +352 -0
- package/40-checker/results/sample60/EricWang1358__dsh-web-studyhub.json +376 -0
- package/40-checker/results/sample60/GanyuanRan__Aegis.json +349 -0
- package/40-checker/results/sample60/HiSeax__dsh-codely.json +358 -0
- package/40-checker/results/sample60/Jamailar__beav-deepseek-harness.json +341 -0
- package/40-checker/results/sample60/ManoloRemiddi__DSH-Metafolder-Plugin.json +344 -0
- package/40-checker/results/sample60/MichengAI__dsh-archive-manager.json +357 -0
- package/40-checker/results/sample60/MichengAI__dsh-im-connect.json +347 -0
- package/40-checker/results/sample60/MindLab-Research__dsh-generative-ui.json +350 -0
- package/40-checker/results/sample60/NEAZ71eve__dsh-tool-github.json +384 -0
- package/40-checker/results/sample60/README.md +7 -0
- package/40-checker/results/sample60/RINGOLINK__dsh-desktop-shell.json +352 -0
- package/40-checker/results/sample60/SeanTolstoyevski__dsh-code-review.json +352 -0
- package/40-checker/results/sample60/Tasihi89__dsh-talk-map.json +344 -0
- package/40-checker/results/sample60/Tyan66666__billion-context-dsh.json +469 -0
- package/40-checker/results/sample60/V1ki__dsh-plugin-subscriptions.json +350 -0
- package/40-checker/results/sample60/Yu-tao-Li__dsh-computer-use-win.json +341 -0
- package/40-checker/results/sample60/ZSeven-W__dsh-ios.json +344 -0
- package/40-checker/results/sample60/Zxznb666__dsh-qoder-cn-subagent.json +349 -0
- package/40-checker/results/sample60/agent-mobile__dsh-mobile-gateway.json +353 -0
- package/40-checker/results/sample60/c3cvld7aag__fujiang-dsh.json +361 -0
- package/40-checker/results/sample60/cxzrdxy__dsh-file-explorer.json +389 -0
- package/40-checker/results/sample60/dhicoc__dsh-reverse-skill.json +341 -0
- package/40-checker/results/sample60/fangqiing__dsh-knowledge-lite.json +359 -0
- package/40-checker/results/sample60/fwerkor__local-shell-mcp.json +369 -0
- package/40-checker/results/sample60/fzy0517__deepseek-harness-session-cleaner.json +344 -0
- package/40-checker/results/sample60/gjy1992__dsh-diagram.json +350 -0
- package/40-checker/results/sample60/howmp__dsh-pentest.json +341 -0
- package/40-checker/results/sample60/linhay__harmony-next.skills.json +344 -0
- package/40-checker/results/sample60/liustack__modsearch.json +371 -0
- package/40-checker/results/sample60/mmparko__dsh-purge.json +372 -0
- package/40-checker/results/sample60/mrme000m__dsh-prime-orchestrator.json +414 -0
- package/40-checker/results/sample60/omdsh-dev__dsh_workflow.json +439 -0
- package/40-checker/results/sample60/redstonedust__dsh-solidworks-copilot.json +362 -0
- package/40-checker/results/sample60/seriousz158__dsh-memory.json +350 -0
- package/40-checker/results/sample60/shanliuling__dsh-image-gen.json +353 -0
- package/40-checker/results/sample60/shanliuling__skills-link.json +344 -0
- package/40-checker/results/sample60/shengsheng90__DSH-taskboard.json +341 -0
- package/40-checker/results/sample60/sjh9714__dsh-win32.json +374 -0
- package/40-checker/results/sample60/skymecode__deepseek-harness-for-vscode.json +351 -0
- package/40-checker/results/sample60/sopaco__terrain.json +352 -0
- package/40-checker/results/sample60/summary.json +658 -0
- package/40-checker/results/sample60/tinqiao-oss__engramory.json +352 -0
- package/40-checker/results/sample60/tong-io__tongflow.json +359 -0
- package/40-checker/results/sample60/vibeinging__dsh-desktop.json +382 -0
- package/40-checker/results/sample60/w2112515__dsh-remote-host.json +344 -0
- package/40-checker/results/sample60/wkfedor__deepseek-harness-voice-input.json +350 -0
- package/40-checker/results/sample60/wz20__dsh-dafeiyu-dot.json +349 -0
- package/40-checker/results/sample60/xfgil__dsh-hot-reloader.json +344 -0
- package/40-checker/results/sample60/yi-yezhiqiu__dsh-prompt-market.json +360 -0
- package/40-checker/results/sample60/yizhiyizhi0128__dsh-peak-scheduler.json +360 -0
- package/40-checker/results/sample60/yjh051108__dsh-routing-suite.json +366 -0
- package/40-checker/results/sample60-ci/123dbl__dsh-side-session.json +344 -0
- package/40-checker/results/sample60-ci/173787247__dsh-wsl-dns.json +360 -0
- package/40-checker/results/sample60-ci/863683348__dsh-insight.json +375 -0
- package/40-checker/results/sample60-ci/Anionex__dsh-turn-rewind.json +379 -0
- package/40-checker/results/sample60-ci/Ansellwan__DSH-Custom-Wallpaper.json +344 -0
- package/40-checker/results/sample60-ci/Ebony-Vinyl__EAC-Pack.json +362 -0
- package/40-checker/results/sample60-ci/EricWang1358__dsh-web-studyhub.json +378 -0
- package/40-checker/results/sample60-ci/GanyuanRan__Aegis.json +349 -0
- package/40-checker/results/sample60-ci/HiSeax__dsh-codely.json +368 -0
- package/40-checker/results/sample60-ci/Jamailar__beav-deepseek-harness.json +367 -0
- package/40-checker/results/sample60-ci/LiarMTTT__TavernWeave.json +231 -0
- package/40-checker/results/sample60-ci/ManoloRemiddi__DSH-Metafolder-Plugin.json +344 -0
- package/40-checker/results/sample60-ci/MichengAI__dsh-archive-manager.json +395 -0
- package/40-checker/results/sample60-ci/MichengAI__dsh-im-connect.json +404 -0
- package/40-checker/results/sample60-ci/MindLab-Research__dsh-generative-ui.json +410 -0
- package/40-checker/results/sample60-ci/NEAZ71eve__dsh-tool-github.json +392 -0
- package/40-checker/results/sample60-ci/README.md +7 -0
- package/40-checker/results/sample60-ci/RINGOLINK__dsh-desktop-shell.json +361 -0
- package/40-checker/results/sample60-ci/Ruler4396__dsh-launcher.json +231 -0
- package/40-checker/results/sample60-ci/SeanTolstoyevski__dsh-code-review.json +363 -0
- package/40-checker/results/sample60-ci/Tasihi89__dsh-talk-map.json +372 -0
- package/40-checker/results/sample60-ci/Tyan66666__billion-context-dsh.json +469 -0
- package/40-checker/results/sample60-ci/V1ki__dsh-plugin-subscriptions.json +368 -0
- package/40-checker/results/sample60-ci/Yu-tao-Li__dsh-computer-use-win.json +349 -0
- package/40-checker/results/sample60-ci/ZSeven-W__dsh-ios.json +344 -0
- package/40-checker/results/sample60-ci/Zxznb666__dsh-qoder-cn-subagent.json +349 -0
- package/40-checker/results/sample60-ci/agent-mobile__dsh-mobile-gateway.json +384 -0
- package/40-checker/results/sample60-ci/c3cvld7aag__fujiang-dsh.json +361 -0
- package/40-checker/results/sample60-ci/cxzrdxy__dsh-file-explorer.json +399 -0
- package/40-checker/results/sample60-ci/dhicoc__dsh-reverse-skill.json +352 -0
- package/40-checker/results/sample60-ci/fangqiing__dsh-knowledge-lite.json +360 -0
- package/40-checker/results/sample60-ci/fwerkor__local-shell-mcp.json +387 -0
- package/40-checker/results/sample60-ci/fzy0517__deepseek-harness-session-cleaner.json +354 -0
- package/40-checker/results/sample60-ci/gjy1992__dsh-diagram.json +381 -0
- package/40-checker/results/sample60-ci/howmp__dsh-pentest.json +361 -0
- package/40-checker/results/sample60-ci/linhay__harmony-next.skills.json +344 -0
- package/40-checker/results/sample60-ci/liustack__modsearch.json +382 -0
- package/40-checker/results/sample60-ci/mmparko__dsh-purge.json +441 -0
- package/40-checker/results/sample60-ci/mrme000m__dsh-prime-orchestrator.json +452 -0
- package/40-checker/results/sample60-ci/omdsh-dev__dsh_workflow.json +439 -0
- package/40-checker/results/sample60-ci/plastic-labs__honcho.json +231 -0
- package/40-checker/results/sample60-ci/redstonedust__dsh-solidworks-copilot.json +371 -0
- package/40-checker/results/sample60-ci/seriousz158__dsh-memory.json +351 -0
- package/40-checker/results/sample60-ci/shanliuling__dsh-image-gen.json +382 -0
- package/40-checker/results/sample60-ci/shanliuling__skills-link.json +344 -0
- package/40-checker/results/sample60-ci/shengsheng90__DSH-taskboard.json +370 -0
- package/40-checker/results/sample60-ci/sjh9714__dsh-win32.json +410 -0
- package/40-checker/results/sample60-ci/skymecode__deepseek-harness-for-vscode.json +391 -0
- package/40-checker/results/sample60-ci/sopaco__deepwiki-rs.json +231 -0
- package/40-checker/results/sample60-ci/sopaco__terrain.json +352 -0
- package/40-checker/results/sample60-ci/summary.json +555 -0
- package/40-checker/results/sample60-ci/tinqiao-oss__engramory.json +362 -0
- package/40-checker/results/sample60-ci/tong-io__tongflow.json +393 -0
- package/40-checker/results/sample60-ci/vibeinging__dsh-desktop.json +555 -0
- package/40-checker/results/sample60-ci/w2112515__dsh-remote-host.json +399 -0
- package/40-checker/results/sample60-ci/wkfedor__deepseek-harness-voice-input.json +358 -0
- package/40-checker/results/sample60-ci/wz20__dsh-dafeiyu-dot.json +390 -0
- package/40-checker/results/sample60-ci/xfgil__dsh-hot-reloader.json +344 -0
- package/40-checker/results/sample60-ci/yi-yezhiqiu__dsh-prompt-market.json +373 -0
- package/40-checker/results/sample60-ci/yizhiyizhi0128__dsh-peak-scheduler.json +370 -0
- package/40-checker/results/sample60-ci/yjh051108__dsh-routing-suite.json +437 -0
- package/40-checker/results/sample60-ci/zed1902209846-dotcom__DPwhale-plugin.json +231 -0
- package/40-checker/results/triage/REPORT.md +317 -0
- package/40-checker/results/triage/evidence/g2-rejections.txt +63 -0
- package/40-checker/results/triage/evidence/purge-baseline-0.2.1-rc.5.json +51 -0
- package/40-checker/results/triage/evidence/purge-baseline-0.2.2-alpha.2.json +51 -0
- package/40-checker/results/triage/evidence/purge-postinstall.txt +62 -0
- package/40-checker/results/triage/evidence/purge-with-profile-0.2.1-rc.5.json +71 -0
- package/40-checker/results/triage/evidence/purge-with-profile-0.2.2-alpha.2.json +71 -0
- package/40-checker/results/triage/evidence/semver-matrix.json +32 -0
- package/40-checker/results/triage/triage.json +295 -0
- package/40-checker/results/webapp/README.md +10 -0
- package/40-checker/results/webapp/summary.json +46 -0
- package/40-checker/results/webapp/web-auth.json +19 -0
- package/40-checker/results/webruntime/DDDMUC__dsh-free-search/client-export.json +7 -0
- package/40-checker/results/webruntime/DDDMUC__dsh-free-search/installed-package.json +123 -0
- package/40-checker/results/webruntime/DDDMUC__dsh-free-search/probe.json +129 -0
- package/40-checker/results/webruntime/DDDMUC__dsh-free-search/shot.png +0 -0
- package/40-checker/results/webruntime/DDDMUC__dsh-free-search/summary.md +16 -0
- package/40-checker/results/webruntime/Ebony-Vinyl__dsh-our-free-model/client-export.json +7 -0
- package/40-checker/results/webruntime/Ebony-Vinyl__dsh-our-free-model/installed-package.json +76 -0
- package/40-checker/results/webruntime/Ebony-Vinyl__dsh-our-free-model/probe.json +129 -0
- package/40-checker/results/webruntime/Ebony-Vinyl__dsh-our-free-model/shot.png +0 -0
- package/40-checker/results/webruntime/Ebony-Vinyl__dsh-our-free-model/summary.md +16 -0
- package/40-checker/results/webruntime/REPORT.md +253 -0
- package/40-checker/results/webruntime/SeaOf0__dsh-redteam-model/client-export.json +7 -0
- package/40-checker/results/webruntime/SeaOf0__dsh-redteam-model/installed-package.json +97 -0
- package/40-checker/results/webruntime/SeaOf0__dsh-redteam-model/probe.json +129 -0
- package/40-checker/results/webruntime/SeaOf0__dsh-redteam-model/shot.png +0 -0
- package/40-checker/results/webruntime/SeaOf0__dsh-redteam-model/summary.md +16 -0
- package/40-checker/results/webruntime/YuJunZhiXue__dsh-purge/client-export.json +7 -0
- package/40-checker/results/webruntime/YuJunZhiXue__dsh-purge/installed-package.json +98 -0
- package/40-checker/results/webruntime/YuJunZhiXue__dsh-purge/probe.json +136 -0
- package/40-checker/results/webruntime/YuJunZhiXue__dsh-purge/shot.png +0 -0
- package/40-checker/results/webruntime/YuJunZhiXue__dsh-purge/summary.md +16 -0
- package/40-checker/results/webruntime/ci-diet/client-export.json +10 -0
- package/40-checker/results/webruntime/ci-diet/installed-package.json +100 -0
- package/40-checker/results/webruntime/ci-diet/probe.json +129 -0
- package/40-checker/results/webruntime/ci-diet/shot.png +0 -0
- package/40-checker/results/webruntime/ci-diet/summary.md +16 -0
- package/40-checker/results/webruntime/daily-log/client-export.json +10 -0
- package/40-checker/results/webruntime/daily-log/installed-package.json +113 -0
- package/40-checker/results/webruntime/daily-log/probe.json +129 -0
- package/40-checker/results/webruntime/daily-log/shot.png +0 -0
- package/40-checker/results/webruntime/daily-log/summary.md +16 -0
- package/40-checker/results/webruntime/howmp__dsh-pentest/client-export.json +7 -0
- package/40-checker/results/webruntime/howmp__dsh-pentest/installed-package.json +90 -0
- package/40-checker/results/webruntime/howmp__dsh-pentest/probe.json +129 -0
- package/40-checker/results/webruntime/howmp__dsh-pentest/shot.png +0 -0
- package/40-checker/results/webruntime/howmp__dsh-pentest/summary.md +16 -0
- package/40-checker/results/webruntime/kingcharleslzy-ai__dsh-purge/client-export.json +7 -0
- package/40-checker/results/webruntime/kingcharleslzy-ai__dsh-purge/installed-package.json +164 -0
- package/40-checker/results/webruntime/kingcharleslzy-ai__dsh-purge/probe.json +129 -0
- package/40-checker/results/webruntime/kingcharleslzy-ai__dsh-purge/shot.png +0 -0
- package/40-checker/results/webruntime/kingcharleslzy-ai__dsh-purge/summary.md +16 -0
- package/40-checker/results/webruntime/liguobao__ds-harness-remote/client-export.json +7 -0
- package/40-checker/results/webruntime/liguobao__ds-harness-remote/installed-package.json +166 -0
- package/40-checker/results/webruntime/liguobao__ds-harness-remote/probe.json +129 -0
- package/40-checker/results/webruntime/liguobao__ds-harness-remote/shot.png +0 -0
- package/40-checker/results/webruntime/liguobao__ds-harness-remote/summary.md +16 -0
- package/40-checker/results/webruntime/local-pre-ci/README.md +67 -0
- package/40-checker/results/webruntime/local-pre-ci/client-exports.json +158 -0
- package/40-checker/results/webruntime/local-pre-ci/dsh-free-search.probe.json +119 -0
- package/40-checker/results/webruntime/local-pre-ci/dsh-pocket.probe.json +119 -0
- package/40-checker/results/webruntime/local-pre-ci/dsh-redteam-model.probe.json +119 -0
- package/40-checker/results/webruntime/local-pre-ci/qiushi-shell-only.probe.json +104 -0
- package/40-checker/results/webruntime/local-pre-ci/ui-auth-no-login.fail.json +52 -0
- package/40-checker/results/webruntime/local-pre-ci/ui-auth.probe.json +123 -0
- package/40-checker/results/webruntime/mmparko__dsh-purge/client-export.json +7 -0
- package/40-checker/results/webruntime/mmparko__dsh-purge/installed-package.json +95 -0
- package/40-checker/results/webruntime/mmparko__dsh-purge/probe.json +136 -0
- package/40-checker/results/webruntime/mmparko__dsh-purge/shot.png +0 -0
- package/40-checker/results/webruntime/mmparko__dsh-purge/summary.md +16 -0
- package/40-checker/results/webruntime/project-memory/client-export.json +7 -0
- package/40-checker/results/webruntime/project-memory/installed-package.json +118 -0
- package/40-checker/results/webruntime/project-memory/probe.json +129 -0
- package/40-checker/results/webruntime/project-memory/shot.png +0 -0
- package/40-checker/results/webruntime/project-memory/summary.md +16 -0
- package/40-checker/results/webruntime/qiushi/client-export.json +7 -0
- package/40-checker/results/webruntime/qiushi/installed-package.json +84 -0
- package/40-checker/results/webruntime/qiushi/probe.json +114 -0
- package/40-checker/results/webruntime/qiushi/shot.png +0 -0
- package/40-checker/results/webruntime/qiushi/summary.md +16 -0
- package/40-checker/results/webruntime/shaobeichen__dsh-pocket/client-export.json +7 -0
- package/40-checker/results/webruntime/shaobeichen__dsh-pocket/installed-package.json +85 -0
- package/40-checker/results/webruntime/shaobeichen__dsh-pocket/probe.json +129 -0
- package/40-checker/results/webruntime/shaobeichen__dsh-pocket/shot.png +0 -0
- package/40-checker/results/webruntime/shaobeichen__dsh-pocket/summary.md +16 -0
- package/40-checker/results/webruntime/status-rotator/client-export.json +7 -0
- package/40-checker/results/webruntime/status-rotator/installed-package.json +107 -0
- package/40-checker/results/webruntime/status-rotator/probe.json +129 -0
- package/40-checker/results/webruntime/status-rotator/shot.png +0 -0
- package/40-checker/results/webruntime/status-rotator/summary.md +16 -0
- package/40-checker/results/webruntime/summary.json +323 -0
- package/40-checker/results/webruntime/telemetry/probe.json +20 -0
- package/40-checker/results/webruntime/telemetry/summary.md +4 -0
- package/40-checker/results/webruntime/ui-auth/client-export.json +7 -0
- package/40-checker/results/webruntime/ui-auth/installed-package.json +94 -0
- package/40-checker/results/webruntime/ui-auth/probe.json +129 -0
- package/40-checker/results/webruntime/ui-auth/shot.png +0 -0
- package/40-checker/results/webruntime/ui-auth/summary.md +16 -0
- package/40-checker/results/webruntime/verification/probe.json +20 -0
- package/40-checker/results/webruntime/verification/summary.md +4 -0
- package/40-checker/results/webruntime/ysr666__dsh-vision-router/client-export.json +7 -0
- package/40-checker/results/webruntime/ysr666__dsh-vision-router/installed-package.json +142 -0
- package/40-checker/results/webruntime/ysr666__dsh-vision-router/probe.json +129 -0
- package/40-checker/results/webruntime/ysr666__dsh-vision-router/shot.png +0 -0
- package/40-checker/results/webruntime/ysr666__dsh-vision-router/summary.md +16 -0
- package/40-checker/samples/README.md +8 -0
- package/40-checker/samples/entry18.json +139 -0
- package/40-checker/samples/frame.json +485 -0
- package/40-checker/scripts/apply-overlay.mjs +59 -0
- package/40-checker/scripts/attestation-check.mjs +151 -0
- package/40-checker/scripts/bundle-smoke.mjs +126 -0
- package/40-checker/scripts/claim-check.mjs +145 -0
- package/40-checker/scripts/clause-map.mjs +94 -0
- package/40-checker/scripts/collect-fixtures.mjs +44 -0
- package/40-checker/scripts/dashboard.mjs +85 -0
- package/40-checker/scripts/dco-check.mjs +147 -0
- package/40-checker/scripts/dependabot-check.mjs +40 -0
- package/40-checker/scripts/doc-commands-check.mjs +92 -0
- package/40-checker/scripts/entry-scan.mjs +190 -0
- package/40-checker/scripts/entry-validate.mjs +291 -0
- package/40-checker/scripts/entry18-attribution.mjs +66 -0
- package/40-checker/scripts/entry18-ci.mjs +685 -0
- package/40-checker/scripts/entry18-realweb-summary.mjs +71 -0
- package/40-checker/scripts/entry18-web.mjs +307 -0
- package/40-checker/scripts/evidence-chain.mjs +100 -0
- package/40-checker/scripts/flow-index.mjs +82 -0
- package/40-checker/scripts/flow-sample-ci.mjs +529 -0
- package/40-checker/scripts/governance-check.mjs +210 -0
- package/40-checker/scripts/host-farm.mjs +165 -0
- package/40-checker/scripts/journey-config-observe.mjs +109 -0
- package/40-checker/scripts/journey-disclosure-shape.mjs +83 -0
- package/40-checker/scripts/journey-runtime.mjs +178 -0
- package/40-checker/scripts/journey.mjs +76 -0
- package/40-checker/scripts/label-drift.mjs +74 -0
- package/40-checker/scripts/label-sync.mjs +87 -0
- package/40-checker/scripts/label-verify.mjs +90 -0
- package/40-checker/scripts/landlock-exec.c +101 -0
- package/40-checker/scripts/level-audit.mjs +336 -0
- package/40-checker/scripts/m1-sidecar.mjs +126 -0
- package/40-checker/scripts/m2-runner.mjs +213 -0
- package/40-checker/scripts/round-robin.mjs +88 -0
- package/40-checker/scripts/sample-frame.mjs +72 -0
- package/40-checker/scripts/sample20-ci.mjs +25 -0
- package/40-checker/scripts/sample60-ci.mjs +25 -0
- package/40-checker/scripts/stale-check.mjs +59 -0
- package/40-checker/scripts/surveillance.mjs +88 -0
- package/40-checker/scripts/web-probe.mjs +504 -0
- package/40-checker/src/cli.mjs +300 -0
- package/40-checker/src/client-shape.mjs +37 -0
- package/40-checker/src/declarations.mjs +242 -0
- package/40-checker/src/index.mjs +8 -0
- package/40-checker/src/install-spec.mjs +67 -0
- package/40-checker/src/label.mjs +130 -0
- package/40-checker/src/manifest.mjs +364 -0
- package/40-checker/src/permissions.mjs +60 -0
- package/40-checker/src/report.mjs +204 -0
- package/40-checker/src/result.mjs +60 -0
- package/40-checker/src/runtime.mjs +299 -0
- package/40-checker/src/semver.mjs +128 -0
- package/40-checker/src/util.mjs +148 -0
- package/40-checker/test/attestation.test.mjs +59 -0
- package/40-checker/test/checks.test.mjs +172 -0
- package/40-checker/test/claim.test.mjs +28 -0
- package/40-checker/test/client-shape.test.mjs +35 -0
- package/40-checker/test/dco.test.mjs +51 -0
- package/40-checker/test/entry-validate.test.mjs +172 -0
- package/40-checker/test/governance.test.mjs +76 -0
- package/40-checker/test/label.test.mjs +97 -0
- package/40-checker/test/level-audit.test.mjs +99 -0
- package/40-checker/test/levels.test.mjs +31 -0
- package/40-checker/test/ops.test.mjs +117 -0
- package/40-checker/test/permissions.test.mjs +40 -0
- package/40-checker/test/semver.test.mjs +32 -0
- package/40-checker/test/verify.test.mjs +57 -0
- package/LICENSE +28 -0
- package/LICENSE-APACHE +190 -0
- package/LICENSE-CC-BY +23 -0
- package/NOTICE.md +11 -0
- package/README.md +146 -3
- package/bin/dsh-levels.mjs +4 -0
- package/bin/dsh-standards.mjs +17 -4
- package/docs/BOOST-FIXTURES-2026-11-02.md +38 -0
- package/docs/DEVELOPER-JOURNEY.md +40 -0
- package/docs/HOST-J3-BUG-REPORT-DRAFT.md +27 -0
- package/docs/HOST-J3-CONFIG-REPRO-2026-11-02.md +36 -0
- package/docs/NAMING-FALLBACK.md +11 -0
- package/docs/fork-policy.md +12 -0
- package/docs/full-test-plan-2026-11-02.md +207 -0
- package/docs/incident.md +37 -0
- package/docs/onboarding.md +27 -0
- package/docs/privacy.md +12 -0
- package/docs/release.md +16 -0
- package/docs/scope-security.md +62 -0
- package/docs/status-taxonomy.md +54 -0
- package/docs/sunset.md +44 -0
- package/docs/translating.md +12 -0
- package/package.json +49 -18
- package/spec/README.md +27 -0
- package/spec/boost/README.md +8 -0
- package/spec/clauses.json +253 -0
- package/spec/entry/README.md +9 -0
- package/spec/flow/README.md +8 -0
- package/spec/levels.json +371 -0
- package/spec/levels.schema.json +45 -0
- package/spec/reference-suite.json +35 -0
- package/spec/schemas/attestation.schema.json +284 -0
- package/spec/schemas/evidence.schema.json +331 -0
- package/spec/schemas/report.schema.json +64 -0
- package/index.mjs +0 -3
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import path from 'node:path'
|
|
2
|
+
|
|
3
|
+
export const PACKAGE_MANDATORY = [
|
|
4
|
+
'DSC-01', 'DSC-02', 'DSC-04', 'DSC-05', 'DSC-06', 'DSC-07', 'DSC-08', 'DSC-09', 'DSC-11', 'DSC-12', 'DSC-13',
|
|
5
|
+
]
|
|
6
|
+
export const LISTING_MANDATORY = [...PACKAGE_MANDATORY, 'DSC-03']
|
|
7
|
+
export const MVP_CHECKS = ['DSC-01', 'DSC-02', 'DSC-04', 'DSC-05', 'DSC-06', 'DSC-07', 'DSC-08', 'DSC-09']
|
|
8
|
+
export const STATIC_MANDATORY = ['DSC-01', 'DSC-02', 'DSC-03', 'DSC-11', 'DSC-12', 'DSC-13']
|
|
9
|
+
export const ENTRY_RUN = ['DSC-01', 'DSC-02', 'DSC-03', 'DSC-11', 'DSC-12', 'DSC-13', 'DSC-14']
|
|
10
|
+
export const ENTRY_BLOCKING = ['C-1.1', 'C-1.2', 'C-1.4', 'C-3.1', 'C-3.2', 'C-3.5']
|
|
11
|
+
export const ENTRY_RUNTIME_BLOCKING = [...ENTRY_BLOCKING, 'C-2.2', 'C-2.3']
|
|
12
|
+
|
|
13
|
+
function mandatoryFor(scope, profile, staticOnly, entryClaim) {
|
|
14
|
+
if (scope === 'mvp') return MVP_CHECKS
|
|
15
|
+
if (scope === 'entry') return ENTRY_RUN.filter(id => (entryClaim !== 'static' || id !== 'DSC-14') && (id !== 'DSC-03' || profile === 'listing' || profile === 'both'))
|
|
16
|
+
if (staticOnly) return STATIC_MANDATORY
|
|
17
|
+
return profile === 'listing' || profile === 'both' ? LISTING_MANDATORY : PACKAGE_MANDATORY
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function adjustEntryCheck(item, entryClaim) {
|
|
21
|
+
if (['DSC-11', 'DSC-12', 'DSC-13'].includes(item.id) && item.result === 'FAIL') {
|
|
22
|
+
return { ...item, result: 'WARN', reason: 'entry treats safety/brand fields as WARN; they do not block loadability' }
|
|
23
|
+
}
|
|
24
|
+
if (item.id !== 'DSC-02' || item.result !== 'FAIL') return item
|
|
25
|
+
const details = item.details ?? []
|
|
26
|
+
if (entryClaim === 'static') return { ...item, result: 'WARN', reason: 'entry static claim: version declaration is WARN, not blocking' }
|
|
27
|
+
const hard = details.some(detail => detail.result === 'FAIL' && ['C-2.2', 'C-2.3'].includes(detail.item))
|
|
28
|
+
if (hard) return item
|
|
29
|
+
return { ...item, result: 'WARN', reason: 'C-2.1 version declaration missing/invalid; entry treats it as WARN (C-2.2/C-2.3 remain blocking)' }
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function allowedNa(check, scope, profile, kind) {
|
|
33
|
+
if (check.result !== 'NA') return false
|
|
34
|
+
if (check.id === 'DSC-03' && scope !== 'mvp' && profile === 'package') return true
|
|
35
|
+
if (check.id === 'DSC-14' && ['client', 'preset', 'skill', 'theme', 'mcp-config', 'unknown'].includes(kind)) return true
|
|
36
|
+
if (['DSC-04', 'DSC-05', 'DSC-06', 'DSC-07', 'DSC-08', 'DSC-09'].includes(check.id) && ['bundle', 'client', 'preset', 'skill', 'theme', 'mcp-config', 'unknown'].includes(kind)) return true
|
|
37
|
+
return false
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function buildReport({ subject, anchor, checks, g4 = null, scope, profile, kind, staticOnly = false, entryRuntime = 'require', entryClaim = 'runtime' }) {
|
|
41
|
+
const mandatory = mandatoryFor(scope, profile, staticOnly, entryClaim)
|
|
42
|
+
const adjustedChecks = scope === 'entry' ? checks.map(item => adjustEntryCheck(item, entryClaim)) : checks
|
|
43
|
+
const runtimeIds = new Set(['DSC-04', 'DSC-05', 'DSC-06', 'DSC-07', 'DSC-08', 'DSC-09'])
|
|
44
|
+
const effectiveChecks = staticOnly
|
|
45
|
+
? adjustedChecks.map(item => runtimeIds.has(item.id) ? { ...item, result: 'NA', coverage: 'not-run', reason: 'out of scope for M1 static-only' } : item)
|
|
46
|
+
: adjustedChecks
|
|
47
|
+
const byId = new Map(effectiveChecks.map(item => [item.id, item]))
|
|
48
|
+
const selected = mandatory.map(id => byId.get(id)).filter(Boolean)
|
|
49
|
+
const missing = mandatory.filter(id => !byId.has(id))
|
|
50
|
+
const failed = selected.filter(item => item.result === 'FAIL')
|
|
51
|
+
const errored = selected.filter(item => item.result === 'ERROR')
|
|
52
|
+
const notRun = selected.filter(item => !allowedNa(item, scope, profile, kind) && (item.coverage === 'not-run' || item.coverage === 'partial'))
|
|
53
|
+
const notRunIds = [...new Set([...missing, ...errored.map(item => item.id), ...notRun.map(item => item.id)])]
|
|
54
|
+
const warnings = selected.filter(item => item.result === 'WARN')
|
|
55
|
+
const pass = selected.filter(item => item.result === 'PASS')
|
|
56
|
+
|
|
57
|
+
let status
|
|
58
|
+
let exitCode
|
|
59
|
+
if (failed.length > 0) { status = 'fail'; exitCode = 1 }
|
|
60
|
+
else if (notRunIds.length > 0) { status = 'incomplete'; exitCode = 2 }
|
|
61
|
+
else if (warnings.length > 0) { status = 'warn'; exitCode = 0 }
|
|
62
|
+
else { status = 'pass'; exitCode = 0 }
|
|
63
|
+
|
|
64
|
+
let level = null
|
|
65
|
+
if (scope === 'entry') {
|
|
66
|
+
const run = byId.get('DSC-14')
|
|
67
|
+
if (entryClaim === 'static') {
|
|
68
|
+
level = (status === 'pass' || status === 'warn') ? `DSH-ENTRY recognized${status === 'warn' ? ' (warnings)' : ''}` : null
|
|
69
|
+
} else if ((status === 'pass' || status === 'warn') && run?.result === 'PASS') {
|
|
70
|
+
level = `DSH-ENTRY runtime${entryRuntime === 'server-entry' ? ' (server-entry)' : ''}${status === 'warn' ? ' (warnings)' : ''}`
|
|
71
|
+
} else if (status === 'pass' || status === 'warn') {
|
|
72
|
+
level = `DSH-ENTRY static${status === 'warn' ? ' (warnings)' : ''}`
|
|
73
|
+
}
|
|
74
|
+
} else if (scope !== 'mvp' && (status === 'pass' || status === 'warn')) {
|
|
75
|
+
const suffix = status === 'warn' ? ', warnings' : ''
|
|
76
|
+
level = staticOnly ? `DS-C static${status === 'warn' ? ' (warnings)' : ''}` : profile === 'listing' || profile === 'both' ? `DS-C (listing${suffix})` : `DS-C (package${suffix})`
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
const reasonParts = []
|
|
80
|
+
if (failed.length > 0) reasonParts.push(`FAIL: ${failed.map(item => item.id).join(', ')}`)
|
|
81
|
+
if (notRunIds.length > 0) reasonParts.push(`not run: ${notRunIds.join(', ')}`)
|
|
82
|
+
if (warnings.length > 0) reasonParts.push(`WARN: ${warnings.map(item => item.id).join(', ')}`)
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
schema: 'dsh-conformance/1',
|
|
86
|
+
standard: { id: 'DS-C', version: '1.0.0' },
|
|
87
|
+
subject,
|
|
88
|
+
anchor,
|
|
89
|
+
g4,
|
|
90
|
+
checks: effectiveChecks,
|
|
91
|
+
coverage: {
|
|
92
|
+
mandatory: mandatory.length,
|
|
93
|
+
pass: pass.length,
|
|
94
|
+
warn: warnings.length,
|
|
95
|
+
fail: failed.length,
|
|
96
|
+
na: selected.filter(item => item.result === 'NA').length,
|
|
97
|
+
notRun: notRunIds.length,
|
|
98
|
+
error: errored.length,
|
|
99
|
+
entryBlocking: scope === 'entry' ? (() => {
|
|
100
|
+
const blocking = entryClaim === 'static' ? ENTRY_BLOCKING : ENTRY_RUNTIME_BLOCKING
|
|
101
|
+
const failedItems = effectiveChecks.flatMap(item => (item.details ?? []).filter(detail => detail.result === 'FAIL' && blocking.includes(detail.item)).map(detail => detail.item))
|
|
102
|
+
return { required: blocking.length, failed: failedItems, pass: failedItems.length === 0 }
|
|
103
|
+
})() : null,
|
|
104
|
+
},
|
|
105
|
+
conclusion: {
|
|
106
|
+
level,
|
|
107
|
+
status,
|
|
108
|
+
exitCode,
|
|
109
|
+
profile,
|
|
110
|
+
scope,
|
|
111
|
+
subset: scope === 'mvp' ? 'MVP-13' : null,
|
|
112
|
+
staticOnly,
|
|
113
|
+
entryRuntime: scope === 'entry' ? entryRuntime : null,
|
|
114
|
+
entryClaim: scope === 'entry' ? entryClaim : null,
|
|
115
|
+
reason: reasonParts.join('; '),
|
|
116
|
+
},
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
const ICON = { PASS: 'PASS', WARN: 'WARN', FAIL: 'FAIL', NA: 'NA ', ERROR: 'ERR ' }
|
|
121
|
+
|
|
122
|
+
export function formatText(report) {
|
|
123
|
+
const lines = []
|
|
124
|
+
const { subject, anchor, conclusion, coverage } = report
|
|
125
|
+
lines.push(`DS-C check — ${subject.name ?? '<unknown>'}@${subject.version ?? '?'} (${subject.kind}${subject.kindInferred ? ', inferred' : ''})`)
|
|
126
|
+
lines.push(`anchor: repo=${anchor.repo} commit=${anchor.commit.slice(0, 12)} dsh=${anchor.dsh} cordis=${anchor.cordis}`)
|
|
127
|
+
lines.push(`scope=${conclusion.scope} profile=${conclusion.profile} status=${conclusion.status} exit=${conclusion.exitCode}${conclusion.subset ? ` subset=${conclusion.subset}` : ''}${conclusion.staticOnly ? ' static-only' : ''}`)
|
|
128
|
+
if (conclusion.level) lines.push(`level: ${conclusion.level}`)
|
|
129
|
+
lines.push('')
|
|
130
|
+
lines.push('id result clause layer reason')
|
|
131
|
+
for (const item of report.checks) {
|
|
132
|
+
const reason = (item.reason || '').replace(/\s+/g, ' ').slice(0, 120)
|
|
133
|
+
lines.push(`${item.id.padEnd(7)} ${ICON[item.result] ?? item.result} ${item.clause.padEnd(6)} ${item.layer.padEnd(6)} ${reason}`)
|
|
134
|
+
for (const detail of item.details ?? []) {
|
|
135
|
+
if (detail.result === 'PASS') continue
|
|
136
|
+
lines.push(` - ${detail.item}: ${detail.result} ${String(detail.reason).slice(0, 140)}`)
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
lines.push('')
|
|
140
|
+
lines.push(`coverage: mandatory=${coverage.mandatory} pass=${coverage.pass} warn=${coverage.warn} fail=${coverage.fail} na=${coverage.na} notRun=${coverage.notRun}`)
|
|
141
|
+
if (conclusion.reason) lines.push(`reason: ${conclusion.reason}`)
|
|
142
|
+
if (conclusion.status === 'incomplete') lines.push('NOT A DS-C PASS: at least one mandatory check did not run (see notRun).')
|
|
143
|
+
lines.push('')
|
|
144
|
+
return `${lines.join('\n')}\n`
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
function sarifLevel(item) {
|
|
148
|
+
if (item.result === 'FAIL' || item.result === 'ERROR') return 'error'
|
|
149
|
+
if (item.result === 'WARN') return 'warning'
|
|
150
|
+
return 'note'
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
function locationOf(item) {
|
|
154
|
+
const evidence = item.evidence?.find(value => /^[^:]+:\d+$/.test(value))
|
|
155
|
+
if (!evidence) return undefined
|
|
156
|
+
const index = evidence.lastIndexOf(':')
|
|
157
|
+
const file = evidence.slice(0, index)
|
|
158
|
+
const line = Number(evidence.slice(index + 1))
|
|
159
|
+
return {
|
|
160
|
+
physicalLocation: {
|
|
161
|
+
artifactLocation: { uri: file.replace(/\\/g, '/') },
|
|
162
|
+
region: { startLine: Number.isFinite(line) && line > 0 ? line : 1 },
|
|
163
|
+
},
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export function formatSarif(report) {
|
|
168
|
+
const rules = report.checks.map(item => ({
|
|
169
|
+
id: item.id,
|
|
170
|
+
name: item.id,
|
|
171
|
+
shortDescription: { text: `${item.clause} ${item.layer}` },
|
|
172
|
+
fullDescription: { text: `${item.clause} conformance check; coverage=${item.coverage}${item.advisory ? '; advisory' : ''}` },
|
|
173
|
+
properties: { clause: item.clause, layer: item.layer, coverage: item.coverage, advisory: item.advisory === true },
|
|
174
|
+
}))
|
|
175
|
+
const results = report.checks
|
|
176
|
+
.filter(item => item.result !== 'PASS' && item.result !== 'NA')
|
|
177
|
+
.map(item => ({
|
|
178
|
+
ruleId: item.id,
|
|
179
|
+
level: sarifLevel(item),
|
|
180
|
+
message: { text: item.reason || `${item.result} ${item.clause}` },
|
|
181
|
+
locations: locationOf(item) ? [locationOf(item)] : [],
|
|
182
|
+
properties: { clause: item.clause, result: item.result, coverage: item.coverage, advisory: item.advisory === true },
|
|
183
|
+
}))
|
|
184
|
+
return {
|
|
185
|
+
$schema: 'https://json.schemastore.org/sarif-2.1.0.json',
|
|
186
|
+
version: '2.1.0',
|
|
187
|
+
runs: [{
|
|
188
|
+
tool: { driver: { name: 'dsh-plugin-verify', version: '0.1.0', informationUri: 'https://github.com/dsh-community/dsh-plugin-verify', rules } },
|
|
189
|
+
properties: { standard: report.standard, anchor: report.anchor, conclusion: report.conclusion, subject: report.subject },
|
|
190
|
+
results,
|
|
191
|
+
}],
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export function writeReport(report, format) {
|
|
196
|
+
if (format === 'json') return JSON.stringify(report, null, 2)
|
|
197
|
+
if (format === 'sarif') return JSON.stringify(formatSarif(report), null, 2)
|
|
198
|
+
return formatText(report)
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export function defaultOutPath(dir, format) {
|
|
202
|
+
const extension = format === 'json' ? 'json' : format === 'sarif' ? 'sarif' : 'txt'
|
|
203
|
+
return path.join(dir, `dsh-ds-c.${extension}`)
|
|
204
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/** Shared result shape for every check. */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @param {object} input
|
|
5
|
+
* @param {string} input.id
|
|
6
|
+
* @param {string} input.clause
|
|
7
|
+
* @param {string} input.layer
|
|
8
|
+
* @param {'PASS'|'WARN'|'FAIL'|'NA'|'ERROR'} input.result
|
|
9
|
+
* @param {string} [input.reason]
|
|
10
|
+
* @param {string[]} [input.evidence]
|
|
11
|
+
* @param {object[]} [input.details]
|
|
12
|
+
* @param {'full'|'partial'|'not-run'} [input.coverage]
|
|
13
|
+
* @param {'M'|'M+H'|'H'} [input.method]
|
|
14
|
+
* @param {boolean} [input.advisory]
|
|
15
|
+
*/
|
|
16
|
+
export function check(input) {
|
|
17
|
+
return {
|
|
18
|
+
id: input.id,
|
|
19
|
+
clause: input.clause,
|
|
20
|
+
layer: input.layer,
|
|
21
|
+
result: input.result,
|
|
22
|
+
coverage: input.coverage ?? (input.result === 'NA' ? 'not-run' : 'full'),
|
|
23
|
+
reason: input.reason ?? '',
|
|
24
|
+
evidence: input.evidence ?? [],
|
|
25
|
+
details: input.details ?? [],
|
|
26
|
+
method: input.method ?? 'M',
|
|
27
|
+
advisory: input.advisory === true,
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @param {string} item e.g. "C-1.1"
|
|
33
|
+
* @param {'PASS'|'WARN'|'FAIL'|'NA'|'ERROR'} result
|
|
34
|
+
* @param {string} reason
|
|
35
|
+
* @param {string[]} [evidence]
|
|
36
|
+
*/
|
|
37
|
+
export function detail(item, result, reason, evidence = []) {
|
|
38
|
+
return { item, result, reason, evidence }
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const RANK = { ERROR: 5, FAIL: 4, WARN: 3, PASS: 2, NA: 1 }
|
|
42
|
+
|
|
43
|
+
export function worst(results) {
|
|
44
|
+
let current = 'NA'
|
|
45
|
+
for (const result of results) {
|
|
46
|
+
if (!result) continue
|
|
47
|
+
if (RANK[result] > RANK[current]) current = result
|
|
48
|
+
}
|
|
49
|
+
return current
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function countByResult(checks) {
|
|
53
|
+
const counts = { PASS: 0, WARN: 0, FAIL: 0, NA: 0, ERROR: 0 }
|
|
54
|
+
for (const item of checks) counts[item.result] = (counts[item.result] ?? 0) + 1
|
|
55
|
+
return counts
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function notRun(check, reason) {
|
|
59
|
+
return { ...check, result: 'ERROR', coverage: 'not-run', reason }
|
|
60
|
+
}
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
import path from 'node:path'
|
|
2
|
+
import { pathToFileURL } from 'node:url'
|
|
3
|
+
import { check, detail, worst } from './result.mjs'
|
|
4
|
+
import { regexHits } from './util.mjs'
|
|
5
|
+
|
|
6
|
+
const ACTIVE = 2
|
|
7
|
+
|
|
8
|
+
function classifyImportError(message) {
|
|
9
|
+
const missing = /Cannot find (?:module|package) ['"]([^'"]+)['"]/.exec(message)
|
|
10
|
+
if (missing) {
|
|
11
|
+
const specifier = missing[1]
|
|
12
|
+
// A missing relative file is a packaging bug; a missing bare package is
|
|
13
|
+
// an environment/host-farm gap (the checker cannot tell whether the
|
|
14
|
+
// package manager would have installed it).
|
|
15
|
+
return specifier.startsWith('.') || specifier.startsWith('/') ? 'fail' : 'blocked'
|
|
16
|
+
}
|
|
17
|
+
if (/timed out/.test(message)) return 'blocked'
|
|
18
|
+
return 'fail'
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function makeStub() {
|
|
22
|
+
const fn = function stub() {}
|
|
23
|
+
return new Proxy(fn, {
|
|
24
|
+
get(_target, property) {
|
|
25
|
+
if (property === 'then') return undefined
|
|
26
|
+
if (property === 'toJSON') return () => ({})
|
|
27
|
+
if (property === Symbol.toPrimitive) return () => ''
|
|
28
|
+
if (property === Symbol.iterator) return function* empty() {}
|
|
29
|
+
return makeStub()
|
|
30
|
+
},
|
|
31
|
+
apply() { return makeStub() },
|
|
32
|
+
construct() { return makeStub() },
|
|
33
|
+
})
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function withTimeout(promise, timeoutMs, label) {
|
|
37
|
+
let timer
|
|
38
|
+
const timeout = new Promise((_, reject) => {
|
|
39
|
+
timer = setTimeout(() => reject(new Error(`${label} timed out after ${timeoutMs}ms`)), timeoutMs)
|
|
40
|
+
if (typeof timer.unref === 'function') timer.unref()
|
|
41
|
+
})
|
|
42
|
+
return Promise.race([promise, timeout]).finally(() => clearTimeout(timer))
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function declaredInject(module) {
|
|
46
|
+
const value = module?.inject ?? module?.default?.inject
|
|
47
|
+
if (Array.isArray(value)) return value.filter(item => typeof item === 'string')
|
|
48
|
+
if (value && typeof value === 'object') return Object.keys(value)
|
|
49
|
+
return []
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function declaredProvide(module) {
|
|
53
|
+
const value = module?.provide ?? module?.default?.provide
|
|
54
|
+
if (typeof value === 'string') return [value]
|
|
55
|
+
if (Array.isArray(value)) return value.filter(item => typeof item === 'string')
|
|
56
|
+
return []
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function pluginOf(module) {
|
|
60
|
+
if (typeof module?.default === 'function') return module.default
|
|
61
|
+
if (typeof module?.apply === 'function') return module
|
|
62
|
+
if (typeof module === 'function') return module
|
|
63
|
+
return null
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
function implFiber(impl) {
|
|
67
|
+
return impl?.ctx?.fiber ?? impl?.fiber ?? null
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
function storeEntries(ctx) {
|
|
71
|
+
const store = ctx.reflect.store ?? {}
|
|
72
|
+
return Reflect.ownKeys(store).map(key => store[key]).filter(Boolean)
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
function ownedService(ctx, fiber, name) {
|
|
76
|
+
return storeEntries(ctx).find(impl => impl?.name === name && implFiber(impl) === fiber) ?? null
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
function serviceNames(ctx, fiber) {
|
|
80
|
+
return new Set(storeEntries(ctx).filter(impl => implFiber(impl) === fiber).map(impl => impl.name))
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function makeNa(reason) {
|
|
84
|
+
return [
|
|
85
|
+
check({ id: 'DSC-04', clause: 'C-4', layer: 'L1', result: 'NA', reason }),
|
|
86
|
+
check({ id: 'DSC-05', clause: 'C-5', layer: 'L1', result: 'NA', reason }),
|
|
87
|
+
check({ id: 'DSC-06', clause: 'C-6', layer: 'L1+L2', result: 'NA', reason }),
|
|
88
|
+
check({ id: 'DSC-07', clause: 'C-7', layer: 'L2', result: 'NA', reason }),
|
|
89
|
+
check({ id: 'DSC-08', clause: 'C-8', layer: 'L3', result: 'NA', reason }),
|
|
90
|
+
check({ id: 'DSC-09', clause: 'C-9', layer: 'L1', result: 'NA', reason }),
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
function makeNotRun(reason, skip = []) {
|
|
95
|
+
return ['DSC-04', 'DSC-05', 'DSC-06', 'DSC-07', 'DSC-08', 'DSC-09'].filter(id => !skip.includes(id)).map(id => {
|
|
96
|
+
const clause = { 'DSC-04': 'C-4', 'DSC-05': 'C-5', 'DSC-06': 'C-6', 'DSC-07': 'C-7', 'DSC-08': 'C-8', 'DSC-09': 'C-9' }[id]
|
|
97
|
+
const layer = { 'DSC-04': 'L1', 'DSC-05': 'L1', 'DSC-06': 'L1+L2', 'DSC-07': 'L2', 'DSC-08': 'L3', 'DSC-09': 'L1' }[id]
|
|
98
|
+
return check({ id, clause, layer, result: 'ERROR', coverage: 'not-run', reason })
|
|
99
|
+
})
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Run L1-L3 in a child-free context. This is a best-effort harness: any
|
|
104
|
+
* failure that cannot be attributed to the plugin (missing host packages,
|
|
105
|
+
* incomplete stubs) is reported as ERROR/blocked, never FAIL.
|
|
106
|
+
*
|
|
107
|
+
* @param {object} input
|
|
108
|
+
* @param {string} input.dir
|
|
109
|
+
* @param {object} input.manifest
|
|
110
|
+
* @param {string} input.kind
|
|
111
|
+
* @param {object|null} input.entry
|
|
112
|
+
* @param {string} input.runtimePath
|
|
113
|
+
* @param {number} [input.timeoutMs]
|
|
114
|
+
* @param {object[]} [input.sources]
|
|
115
|
+
*/
|
|
116
|
+
export async function runRuntimeChecks(input) {
|
|
117
|
+
const { dir, manifest, kind, entry, runtimePath, timeoutMs = 10_000, sources = [] } = input
|
|
118
|
+
if (kind !== 'plugin') return makeNa(`kind=${kind}; L1-L3 apply to plugin entries only`)
|
|
119
|
+
if (!runtimePath) return makeNotRun('no --runtime supplied; L1-L3 not run')
|
|
120
|
+
if (!entry?.exists) return makeNotRun('no resolvable runtime entry; L1-L3 not run')
|
|
121
|
+
|
|
122
|
+
let Context
|
|
123
|
+
try {
|
|
124
|
+
const runtime = await import(pathToFileURL(path.resolve(runtimePath)).href)
|
|
125
|
+
Context = runtime.Context ?? runtime.default?.Context
|
|
126
|
+
if (typeof Context !== 'function') throw new Error('runtime module does not export Context')
|
|
127
|
+
} catch (error) {
|
|
128
|
+
return makeNotRun(`runtime import failed: ${error.message}`)
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
let module
|
|
132
|
+
try {
|
|
133
|
+
module = await import(pathToFileURL(entry.absolute).href)
|
|
134
|
+
} catch (error) {
|
|
135
|
+
const message = error?.message ?? String(error)
|
|
136
|
+
if (classifyImportError(message) === 'blocked') {
|
|
137
|
+
return makeNotRun(`plugin import blocked by missing host dependency: ${message.split('\n')[0]}`)
|
|
138
|
+
}
|
|
139
|
+
return [
|
|
140
|
+
check({ id: 'DSC-04', clause: 'C-4', layer: 'L1', result: 'FAIL', reason: `entry import failed: ${message}`, evidence: [entry.relative] }),
|
|
141
|
+
...makeNotRun('C-4 failed; L1-L3 short-circuited', ['DSC-04']),
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
const plugin = pluginOf(module)
|
|
146
|
+
if (!plugin) return makeNa('entry does not export a function, { apply }, or default class')
|
|
147
|
+
|
|
148
|
+
let ctx
|
|
149
|
+
let fiber
|
|
150
|
+
let beforeStore = null
|
|
151
|
+
let beforeRegistry = 0
|
|
152
|
+
try {
|
|
153
|
+
ctx = new Context()
|
|
154
|
+
for (const name of declaredInject(module)) {
|
|
155
|
+
if (ctx.get(name, false) === undefined) {
|
|
156
|
+
try { ctx.provide(name, makeStub()) } catch { /* already provided by the root */ }
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
beforeStore = new Set(Reflect.ownKeys(ctx.reflect.store ?? {}))
|
|
160
|
+
beforeRegistry = ctx.registry.size
|
|
161
|
+
fiber = ctx.plugin(plugin)
|
|
162
|
+
await withTimeout(Promise.resolve(fiber), timeoutMs, 'plugin load')
|
|
163
|
+
} catch (error) {
|
|
164
|
+
const message = error?.message ?? String(error)
|
|
165
|
+
const stubGap = /is not a function|Cannot read propert(?:y|ies) of (?:undefined|null)/.test(message)
|
|
166
|
+
const blocked = classifyImportError(message) === 'blocked' || stubGap
|
|
167
|
+
return [
|
|
168
|
+
check({ id: 'DSC-04', clause: 'C-4', layer: 'L1', result: blocked ? 'ERROR' : 'FAIL', coverage: blocked ? 'not-run' : 'full', reason: `load failed: ${message}`, evidence: [entry.relative] }),
|
|
169
|
+
...makeNotRun('C-4 did not reach ACTIVE', ['DSC-04']),
|
|
170
|
+
]
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
const active = fiber.state === ACTIVE
|
|
174
|
+
const loadCheck = check({
|
|
175
|
+
id: 'DSC-04', clause: 'C-4', layer: 'L1',
|
|
176
|
+
result: active ? 'PASS' : 'FAIL',
|
|
177
|
+
reason: active ? '' : `fiber state ${fiber.state} is not ACTIVE (2)`,
|
|
178
|
+
evidence: [entry.relative],
|
|
179
|
+
})
|
|
180
|
+
if (!active) return [loadCheck, ...makeNotRun('C-4 did not reach ACTIVE', ['DSC-04'])]
|
|
181
|
+
|
|
182
|
+
const realFiber = fiber.ctx?.fiber ?? Object.getPrototypeOf(fiber) ?? fiber
|
|
183
|
+
const declared = declaredProvide(module)
|
|
184
|
+
const measured = serviceNames(ctx, realFiber)
|
|
185
|
+
const provideDetails = []
|
|
186
|
+
for (const name of declared) {
|
|
187
|
+
const impl = ownedService(ctx, realFiber, name)
|
|
188
|
+
if (impl) provideDetails.push(detail('C-5.2', 'PASS', `service ${name} is owned by the plugin fiber`))
|
|
189
|
+
else if (storeEntries(ctx).some(entry => entry?.name === name)) provideDetails.push(detail('C-5.2', 'FAIL', `service ${name} is owned by another fiber`))
|
|
190
|
+
else provideDetails.push(detail('C-5.2', 'FAIL', `declared provide ${name} was not registered`))
|
|
191
|
+
}
|
|
192
|
+
if (declared.length === 0) provideDetails.push(detail('C-5.1', 'NA', 'no provide declaration'))
|
|
193
|
+
const provideResult = declared.length === 0 ? 'NA' : worst(provideDetails.map(item => item.result))
|
|
194
|
+
const provideCheck = check({
|
|
195
|
+
id: 'DSC-05', clause: 'C-5', layer: 'L1', result: provideResult,
|
|
196
|
+
reason: provideDetails.filter(item => item.result !== 'PASS' && item.result !== 'NA').map(item => `${item.item}: ${item.reason}`).join(' | '),
|
|
197
|
+
details: provideDetails,
|
|
198
|
+
})
|
|
199
|
+
|
|
200
|
+
const effects = fiber.getEffects()
|
|
201
|
+
const labels = effects.map(effect => effect?.label ?? 'anonymous')
|
|
202
|
+
const privateHits = regexHits(sources, /(?:ctx\.events\._hooks|ctx\.reflect\.store|ctx\.registry\._internal|fiber\._disposables)\s*(?:\.|\[)[^\n]{0,40}=/g)
|
|
203
|
+
const effectDetails = []
|
|
204
|
+
if (effects.length === 0 && (declared.length > 0 || labels.length === 0)) effectDetails.push(detail('C-6.2', 'WARN', 'no registered effects observed'))
|
|
205
|
+
else effectDetails.push(detail('C-6.2', 'PASS', `${effects.length} registered effect(s)`))
|
|
206
|
+
if (labels.length > 0 && labels.every(label => label === 'anonymous')) effectDetails.push(detail('C-6.2', 'WARN', 'all effects are anonymous'))
|
|
207
|
+
if (privateHits.length > 0) effectDetails.push(detail('C-6.1', 'FAIL', 'direct write to a Cordis private registration surface', privateHits.slice(0, 3).map(hit => `${hit.file}:${hit.line}`)))
|
|
208
|
+
const effectResult = worst(effectDetails.map(item => item.result))
|
|
209
|
+
const effectCheck = check({
|
|
210
|
+
id: 'DSC-06', clause: 'C-6', layer: 'L1+L2', result: effectResult,
|
|
211
|
+
reason: effectDetails.filter(item => item.result !== 'PASS').map(item => `${item.item}: ${item.reason}`).join(' | '),
|
|
212
|
+
details: effectDetails,
|
|
213
|
+
})
|
|
214
|
+
|
|
215
|
+
let unloadDetails = []
|
|
216
|
+
let unloadResult = 'PASS'
|
|
217
|
+
try {
|
|
218
|
+
await withTimeout(Promise.resolve(fiber.dispose()), timeoutMs, 'fiber dispose')
|
|
219
|
+
const afterEffects = fiber.getEffects().length
|
|
220
|
+
const afterStore = new Set(Reflect.ownKeys(ctx.reflect.store ?? {}))
|
|
221
|
+
const afterRegistry = ctx.registry.size
|
|
222
|
+
unloadDetails = [
|
|
223
|
+
detail('C-7.1', afterEffects === 0 ? 'PASS' : 'FAIL', `getEffects().length=${afterEffects}`),
|
|
224
|
+
detail('C-7.2', [...beforeStore].every(key => afterStore.has(key)) ? 'PASS' : 'FAIL', 'service store returned to baseline'),
|
|
225
|
+
detail('C-7.3', beforeRegistry === afterRegistry ? 'PASS' : 'FAIL', `registry.size ${beforeRegistry} -> ${afterRegistry}`),
|
|
226
|
+
]
|
|
227
|
+
unloadResult = worst(unloadDetails.map(item => item.result))
|
|
228
|
+
} catch (error) {
|
|
229
|
+
unloadDetails = [detail('C-7.5', 'FAIL', `dispose failed: ${error.message}`)]
|
|
230
|
+
unloadResult = 'FAIL'
|
|
231
|
+
}
|
|
232
|
+
const unloadCheck = check({
|
|
233
|
+
id: 'DSC-07', clause: 'C-7', layer: 'L2', result: unloadResult,
|
|
234
|
+
reason: unloadDetails.filter(item => item.result !== 'PASS').map(item => `${item.item}: ${item.reason}`).join(' | '),
|
|
235
|
+
details: unloadDetails,
|
|
236
|
+
})
|
|
237
|
+
|
|
238
|
+
let restartResult = 'PASS'
|
|
239
|
+
let restartDetails = []
|
|
240
|
+
try {
|
|
241
|
+
const ctxR = new Context()
|
|
242
|
+
for (const name of declaredInject(module)) {
|
|
243
|
+
if (ctxR.get(name, false) === undefined) {
|
|
244
|
+
try { ctxR.provide(name, makeStub()) } catch { /* ignore */ }
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
const fiberR = ctxR.plugin(plugin)
|
|
248
|
+
await withTimeout(Promise.resolve(fiberR), timeoutMs, 'restart fixture load')
|
|
249
|
+
const beforeRestart = fiberR.getEffects().length
|
|
250
|
+
const revisionBefore = typeof fiberR._revision === 'number' ? fiberR._revision : null
|
|
251
|
+
const epochBefore = fiberR._runner?.epoch
|
|
252
|
+
await withTimeout(Promise.resolve(fiberR.restart()), timeoutMs, 'fiber restart')
|
|
253
|
+
const revisionAfter = typeof fiberR._revision === 'number' ? fiberR._revision : null
|
|
254
|
+
const epochAfter = fiberR._runner?.epoch
|
|
255
|
+
const afterRestart = fiberR.getEffects()
|
|
256
|
+
restartDetails.push(detail('C-8.1', fiberR.state === ACTIVE ? 'PASS' : 'FAIL', `state after restart=${fiberR.state}`))
|
|
257
|
+
restartDetails.push(detail('C-8.1', afterRestart.length === beforeRestart ? 'PASS' : 'WARN', `effect count ${beforeRestart} -> ${afterRestart.length}`))
|
|
258
|
+
const advanced = (revisionBefore !== null && revisionAfter !== null && revisionAfter > revisionBefore) || (epochBefore !== undefined && epochAfter !== undefined && epochAfter !== epochBefore)
|
|
259
|
+
restartDetails.push(detail('C-8.2', advanced ? 'PASS' : 'WARN', `revision ${revisionBefore} -> ${revisionAfter}; epoch ${String(epochBefore)} -> ${String(epochAfter)}`))
|
|
260
|
+
const ctx2 = new Context()
|
|
261
|
+
for (const name of declaredInject(module)) {
|
|
262
|
+
if (ctx2.get(name, false) === undefined) {
|
|
263
|
+
try { ctx2.provide(name, makeStub()) } catch { /* ignore */ }
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
const fiber2 = ctx2.plugin(plugin)
|
|
267
|
+
await withTimeout(Promise.resolve(fiber2), timeoutMs, 'cold remount')
|
|
268
|
+
restartDetails.push(detail('C-8.3', fiber2.state === ACTIVE ? 'PASS' : 'FAIL', `cold remount state=${fiber2.state}`))
|
|
269
|
+
} catch (error) {
|
|
270
|
+
restartDetails.push(detail('C-8.1', 'FAIL', `restart/remount failed: ${error.message}`))
|
|
271
|
+
}
|
|
272
|
+
restartResult = worst(restartDetails.map(item => item.result))
|
|
273
|
+
const restartCheck = check({
|
|
274
|
+
id: 'DSC-08', clause: 'C-8', layer: 'L3', result: restartResult,
|
|
275
|
+
reason: restartDetails.filter(item => item.result !== 'PASS').map(item => `${item.item}: ${item.reason}`).join(' | '),
|
|
276
|
+
details: restartDetails,
|
|
277
|
+
})
|
|
278
|
+
|
|
279
|
+
const crossDetails = []
|
|
280
|
+
for (const name of declared) {
|
|
281
|
+
if (!measured.has(name)) crossDetails.push(detail('C-9.1', 'FAIL', `declared provide ${name} is missing from measured services`))
|
|
282
|
+
}
|
|
283
|
+
for (const name of measured) {
|
|
284
|
+
if (!declared.includes(name)) crossDetails.push(detail('C-9.2', 'WARN', `measured service ${name} is not declared`))
|
|
285
|
+
}
|
|
286
|
+
const inject = declaredInject(module)
|
|
287
|
+
for (const name of inject) {
|
|
288
|
+
const hits = regexHits(sources, new RegExp(`ctx\\.${name.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}\\b`, 'g'))
|
|
289
|
+
if (hits.length === 0) crossDetails.push(detail('C-9.3', 'WARN', `inject declares ${name} but no static ctx.${name} read was found`))
|
|
290
|
+
}
|
|
291
|
+
const crossResult = crossDetails.length === 0 ? 'PASS' : worst(crossDetails.map(item => item.result))
|
|
292
|
+
const crossCheck = check({
|
|
293
|
+
id: 'DSC-09', clause: 'C-9', layer: 'L1', result: crossResult,
|
|
294
|
+
reason: crossDetails.filter(item => item.result !== 'PASS').map(item => `${item.item}: ${item.reason}`).join(' | '),
|
|
295
|
+
details: crossDetails,
|
|
296
|
+
})
|
|
297
|
+
|
|
298
|
+
return [loadCheck, provideCheck, effectCheck, unloadCheck, restartCheck, crossCheck]
|
|
299
|
+
}
|